Version 1.13.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-07 23:15+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:1007 ../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:2653
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:1224 ../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:3027 ../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:1253 ../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:3103 ../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:1258 ../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:1263 ../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:1268 ../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:4183
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:385 ../fish/guestfish-actions.pod:393
2379 #: ../fish/guestfish-actions.pod:400 ../fish/guestfish-actions.pod:407
2380 #: ../fish/guestfish-actions.pod:1099 ../fish/guestfish-actions.pod:1103
2381 #: ../fish/guestfish-actions.pod:1107 ../fish/guestfish-actions.pod:1111
2382 #: ../fish/guestfish-actions.pod:1119 ../fish/guestfish-actions.pod:1123
2383 #: ../fish/guestfish-actions.pod:1127 ../fish/guestfish-actions.pod:1137
2384 #: ../fish/guestfish-actions.pod:1141 ../fish/guestfish-actions.pod:1145
2385 #: ../fish/guestfish-actions.pod:1235 ../fish/guestfish-actions.pod:1239
2386 #: ../fish/guestfish-actions.pod:1244 ../fish/guestfish-actions.pod:1249
2387 #: ../fish/guestfish-actions.pod:1291 ../fish/guestfish-actions.pod:1295
2388 #: ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1933
2389 #: ../fish/guestfish-actions.pod:1939 ../fish/guestfish-actions.pod:1947
2390 #: ../fish/guestfish-actions.pod:1954 ../fish/guestfish-actions.pod:1961
2391 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
2392 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
2393 #: ../inspector/virt-inspector.pod:384 ../inspector/virt-inspector.pod:388
2394 #: ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286
2395 #: ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301
2396 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
2397 #: ../src/guestfs-actions.pod:583 ../src/guestfs-actions.pod:591
2398 #: ../src/guestfs-actions.pod:598 ../src/guestfs-actions.pod:605
2399 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1666
2400 #: ../src/guestfs-actions.pod:1670 ../src/guestfs-actions.pod:1674
2401 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1686
2402 #: ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1700
2403 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1708
2404 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850
2405 #: ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860
2406 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1925
2407 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:2859
2408 #: ../src/guestfs-actions.pod:2865 ../src/guestfs-actions.pod:2873
2409 #: ../src/guestfs-actions.pod:2880 ../src/guestfs-actions.pod:2887
2410 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2411 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2412 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
2413 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
2414 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
2415 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
2416 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
2417 #: ../src/guestfs.pod:1644 ../src/guestfs.pod:1649 ../src/guestfs.pod:1653
2418 #: ../src/guestfs.pod:1755 ../src/guestfs.pod:1760 ../src/guestfs.pod:1764
2419 #: ../src/guestfs.pod:1774 ../src/guestfs.pod:2048 ../src/guestfs.pod:2053
2420 #: ../src/guestfs.pod:2059 ../src/guestfs.pod:2067 ../src/guestfs.pod:2421
2421 #: ../src/guestfs.pod:2427 ../src/guestfs.pod:2432 ../src/guestfs.pod:2438
2422 #: ../src/guestfs.pod:2819 ../src/guestfs.pod:2824 ../src/guestfs.pod:2828
2423 #: ../src/guestfs.pod:2832 ../src/guestfs.pod:2836 ../src/guestfs.pod:2850
2424 #: ../src/guestfs.pod:2855 ../src/guestfs.pod:3080 ../src/guestfs.pod:3084
2425 #: ../src/guestfs.pod:3088 ../src/guestfs.pod:3092
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:1075
3026 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:2966
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:1249 ../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:3099
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:1251 ../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:3101
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:3108
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:3113
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:3118
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:1287 ../fish/guestfish-actions.pod:1929
3505 #: ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:1917
3506 #: ../src/guestfs-actions.pod:2855 ../src/guestfs.pod:1640
3507 #: ../tools/virt-win-reg.pl:706
3508 msgid "Notes:"
3509 msgstr ""
3510
3511 #. type: textblock
3512 #: ../examples/guestfs-recipes.pod:134
3513 msgid ""
3514 "The final dot of the command is not a printing error.  It means we want to "
3515 "copy out to the current directory."
3516 msgstr ""
3517
3518 #. type: textblock
3519 #: ../examples/guestfs-recipes.pod:139
3520 msgid "This creates a directory called C<home> under the current directory."
3521 msgstr ""
3522
3523 #. type: textblock
3524 #: ../examples/guestfs-recipes.pod:143
3525 msgid ""
3526 "If the guest is a Windows guest then you can use drive letters and "
3527 "backslashes, but you must prefix the path with C<win:> and quote it to "
3528 "protect it from the shell, like this:"
3529 msgstr ""
3530
3531 #. type: verbatim
3532 #: ../examples/guestfs-recipes.pod:147
3533 #, no-wrap
3534 msgid ""
3535 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3536 "\n"
3537 msgstr ""
3538
3539 #. type: textblock
3540 #: ../examples/guestfs-recipes.pod:149
3541 msgid "To get the output as a compressed tarball, do:"
3542 msgstr ""
3543
3544 #. type: verbatim
3545 #: ../examples/guestfs-recipes.pod:151
3546 #, no-wrap
3547 msgid ""
3548 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3549 "\n"
3550 msgstr ""
3551
3552 #. type: textblock
3553 #: ../examples/guestfs-recipes.pod:153
3554 msgid ""
3555 "Although it sounds tempting, this is usually not a reliable way to get a "
3556 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
3557 "org/FAQ.html#backup"
3558 msgstr ""
3559
3560 #. type: =head1
3561 #: ../examples/guestfs-recipes.pod:157
3562 msgid "Find out which user is using the most space"
3563 msgstr ""
3564
3565 #. type: textblock
3566 #: ../examples/guestfs-recipes.pod:159
3567 msgid ""
3568 "This simple script examines a Linux guest to find out which user is using "
3569 "the most space in their home directory:"
3570 msgstr ""
3571
3572 #. type: verbatim
3573 #: ../examples/guestfs-recipes.pod:162
3574 #, no-wrap
3575 msgid ""
3576 " #!/bin/sh -\n"
3577 " \n"
3578 msgstr ""
3579
3580 #. type: verbatim
3581 #: ../examples/guestfs-recipes.pod:164
3582 #, no-wrap
3583 msgid ""
3584 " set -e\n"
3585 " \n"
3586 msgstr ""
3587
3588 #. type: verbatim
3589 #: ../examples/guestfs-recipes.pod:166
3590 #, no-wrap
3591 msgid ""
3592 " vm=\"$1\"\n"
3593 " dir=/home\n"
3594 " \n"
3595 msgstr ""
3596
3597 #. type: verbatim
3598 #: ../examples/guestfs-recipes.pod:169
3599 #, no-wrap
3600 msgid ""
3601 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3602 " \n"
3603 msgstr ""
3604
3605 #. type: verbatim
3606 #: ../examples/guestfs-recipes.pod:171
3607 #, no-wrap
3608 msgid ""
3609 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3610 "     echo -n \"$dir/$d\"\n"
3611 "     echo -ne '\\t'\n"
3612 "     guestfish --remote du \"$dir/$d\";\n"
3613 " done | sort -nr -k 2\n"
3614 " \n"
3615 msgstr ""
3616
3617 #. type: verbatim
3618 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3619 #, no-wrap
3620 msgid ""
3621 " guestfish --remote exit\n"
3622 "\n"
3623 msgstr ""
3624
3625 #. type: =head1
3626 #: ../examples/guestfs-recipes.pod:179
3627 msgid "Get DHCP address from a VM"
3628 msgstr ""
3629
3630 #. type: textblock
3631 #: ../examples/guestfs-recipes.pod:181
3632 msgid ""
3633 "The link below explains the many different possible techniques for getting "
3634 "the last assigned DHCP address of a virtual machine."
3635 msgstr ""
3636
3637 #. type: textblock
3638 #: ../examples/guestfs-recipes.pod:184
3639 msgid ""
3640 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
3641 "a-virtual-machine-disk-image/#content"
3642 msgstr ""
3643
3644 #. type: textblock
3645 #: ../examples/guestfs-recipes.pod:186
3646 msgid ""
3647 "In the libguestfs source examples directory you will find the latest version "
3648 "of the C<virt-dhcp-address.c> program."
3649 msgstr ""
3650
3651 #. type: =head1
3652 #: ../examples/guestfs-recipes.pod:189
3653 msgid "Get the operating system product name string"
3654 msgstr ""
3655
3656 #. type: textblock
3657 #: ../examples/guestfs-recipes.pod:191
3658 msgid "Save the following script into a file called C<product-name.sh>:"
3659 msgstr ""
3660
3661 #. type: verbatim
3662 #: ../examples/guestfs-recipes.pod:193
3663 #, no-wrap
3664 msgid ""
3665 " #!/bin/sh -\n"
3666 " set -e\n"
3667 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3668 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3669 " guestfish --remote inspect-get-product-name \"$root\"\n"
3670 " guestfish --remote exit\n"
3671 "\n"
3672 msgstr ""
3673
3674 #. type: textblock
3675 #: ../examples/guestfs-recipes.pod:200
3676 msgid "Make the script executable and run it on a named guest:"
3677 msgstr ""
3678
3679 #. type: verbatim
3680 #: ../examples/guestfs-recipes.pod:202
3681 #, no-wrap
3682 msgid ""
3683 " # product-name.sh RHEL60x64\n"
3684 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
3685 "\n"
3686 msgstr ""
3687
3688 #. type: textblock
3689 #: ../examples/guestfs-recipes.pod:205
3690 msgid ""
3691 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
3692 "C<xpath> command line tool or from your favourite programming language:"
3693 msgstr ""
3694
3695 #. type: verbatim
3696 #: ../examples/guestfs-recipes.pod:209
3697 #, no-wrap
3698 msgid ""
3699 " # virt-inspector RHEL60x64 > xml\n"
3700 " # xpath '//product_name' < xml\n"
3701 " Found 1 nodes:\n"
3702 " -- NODE --\n"
3703 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
3704 "\n"
3705 msgstr ""
3706
3707 #. type: =head1
3708 #: ../examples/guestfs-recipes.pod:215
3709 msgid "Get the default boot kernel for a Linux VM"
3710 msgstr ""
3711
3712 #. type: textblock
3713 #: ../examples/guestfs-recipes.pod:217
3714 msgid ""
3715 "The link below contains a program to print the default boot kernel for a "
3716 "Linux VM."
3717 msgstr ""
3718
3719 #. type: textblock
3720 #: ../examples/guestfs-recipes.pod:220
3721 msgid ""
3722 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
3723 "kernel-for-a-vm/#content"
3724 msgstr ""
3725
3726 #. type: textblock
3727 #: ../examples/guestfs-recipes.pod:222
3728 msgid ""
3729 "It uses Augeas, and the technique is generally applicable for many different "
3730 "tasks, such as:"
3731 msgstr ""
3732
3733 #. type: textblock
3734 #: ../examples/guestfs-recipes.pod:229
3735 msgid "listing the user accounts in the guest"
3736 msgstr ""
3737
3738 #. type: textblock
3739 #: ../examples/guestfs-recipes.pod:233
3740 msgid "what repositories is it configured to use"
3741 msgstr ""
3742
3743 #. type: textblock
3744 #: ../examples/guestfs-recipes.pod:237
3745 msgid "what NTP servers does it connect to"
3746 msgstr ""
3747
3748 #. type: textblock
3749 #: ../examples/guestfs-recipes.pod:241
3750 msgid "what were the boot messages last time it booted"
3751 msgstr ""
3752
3753 #. type: textblock
3754 #: ../examples/guestfs-recipes.pod:245
3755 msgid "listing who was logged in recently"
3756 msgstr ""
3757
3758 #. type: textblock
3759 #: ../examples/guestfs-recipes.pod:249
3760 msgid "http://augeas.net/"
3761 msgstr ""
3762
3763 #. type: =head1
3764 #: ../examples/guestfs-recipes.pod:251
3765 msgid "Install RPMs in a guest"
3766 msgstr ""
3767
3768 #. type: textblock
3769 #: ../examples/guestfs-recipes.pod:253
3770 msgid ""
3771 "The link below contains a method to install RPMs in a guest.  In fact the "
3772 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
3773 "installs them next time the guest is booted.  You could use this technique "
3774 "to install vital security updates in an offline guest."
3775 msgstr ""
3776
3777 #. type: textblock
3778 #: ../examples/guestfs-recipes.pod:259
3779 msgid ""
3780 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
3781 msgstr ""
3782
3783 #. type: =head1
3784 #: ../examples/guestfs-recipes.pod:261
3785 msgid "List applications installed in a VM"
3786 msgstr ""
3787
3788 #. type: textblock
3789 #: ../examples/guestfs-recipes.pod:263
3790 msgid "Save the following to a file C<list-apps.sh>:"
3791 msgstr ""
3792
3793 #. type: verbatim
3794 #: ../examples/guestfs-recipes.pod:265
3795 #, no-wrap
3796 msgid ""
3797 " #!/bin/sh -\n"
3798 " set -e\n"
3799 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3800 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3801 " guestfish --remote inspect-list-applications \"$root\"\n"
3802 " guestfish --remote exit\n"
3803 "\n"
3804 msgstr ""
3805
3806 #. type: textblock
3807 #: ../examples/guestfs-recipes.pod:272
3808 msgid ""
3809 "Make the file executable and then you can run it on any named virtual "
3810 "machine:"
3811 msgstr ""
3812
3813 #. type: verbatim
3814 #: ../examples/guestfs-recipes.pod:275
3815 #, no-wrap
3816 msgid ""
3817 " # list-apps.sh WinGuest\n"
3818 " [0] = {\n"
3819 "   app_name: Mozilla Firefox (3.6.12)\n"
3820 "   app_display_name: Mozilla Firefox (3.6.12)\n"
3821 "   app_epoch: 0\n"
3822 "   app_version: 3.6.12 (en-GB)\n"
3823 "   app_release:\n"
3824 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
3825 "   app_trans_path:\n"
3826 "   app_publisher: Mozilla\n"
3827 "   app_url: http://www.mozilla.com/en-GB/\n"
3828 "   app_source_package:\n"
3829 "   app_summary:\n"
3830 "   app_description: Mozilla Firefox\n"
3831 " }\n"
3832 " [1] = {\n"
3833 "   app_name: VLC media player\n"
3834 "   app_display_name: VLC media player 1.1.5\n"
3835 "   app_epoch: 0\n"
3836 "   app_version: 1.1.5\n"
3837 "   app_release:\n"
3838 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
3839 "   app_trans_path:\n"
3840 "   app_publisher: VideoLAN\n"
3841 "   app_url: http://www.videolan.org/\n"
3842 "   app_source_package:\n"
3843 "   app_summary:\n"
3844 "   app_description:\n"
3845 " }\n"
3846 "\n"
3847 msgstr ""
3848
3849 #. type: textblock
3850 #: ../examples/guestfs-recipes.pod:305
3851 msgid ""
3852 "If you want to run the script on disk images (instead of libvirt virtual "
3853 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
3854 ">."
3855 msgstr ""
3856
3857 #. type: =head1
3858 #: ../examples/guestfs-recipes.pod:309
3859 msgid "List files and directories in a VM"
3860 msgstr ""
3861
3862 #. type: textblock
3863 #: ../examples/guestfs-recipes.pod:311
3864 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
3865 msgstr ""
3866
3867 #. type: verbatim
3868 #: ../examples/guestfs-recipes.pod:313
3869 #, no-wrap
3870 msgid ""
3871 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
3872 "\n"
3873 msgstr ""
3874
3875 #. type: =head1
3876 #: ../examples/guestfs-recipes.pod:315
3877 msgid "List services in a Windows VM"
3878 msgstr ""
3879
3880 #. type: textblock
3881 #: ../examples/guestfs-recipes.pod:317
3882 msgid ""
3883 "The link below contains a script that can be used to list out the services "
3884 "from a Windows VM, and whether those services run at boot time or are loaded "
3885 "on demand."
3886 msgstr ""
3887
3888 #. type: textblock
3889 #: ../examples/guestfs-recipes.pod:321
3890 msgid ""
3891 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
3892 "#content"
3893 msgstr ""
3894
3895 #. type: =head1
3896 #: ../examples/guestfs-recipes.pod:323
3897 msgid "Make a disk image sparse"
3898 msgstr ""
3899
3900 #. type: textblock
3901 #: ../examples/guestfs-recipes.pod:325
3902 msgid ""
3903 "The link below contains some guides for making a disk image sparse (or "
3904 "reintroducing sparseness)."
3905 msgstr ""
3906
3907 #. type: textblock
3908 #: ../examples/guestfs-recipes.pod:328
3909 msgid ""
3910 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
3911 msgstr ""
3912
3913 #. type: =head1
3914 #: ../examples/guestfs-recipes.pod:330
3915 msgid "Monitor disk usage over time"
3916 msgstr ""
3917
3918 #. type: textblock
3919 #: ../examples/guestfs-recipes.pod:332
3920 msgid ""
3921 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
3922 "The link below contains a guide."
3923 msgstr ""
3924
3925 #. type: textblock
3926 #: ../examples/guestfs-recipes.pod:335
3927 msgid "http://virt-tools.org/learning/advanced-virt-df/"
3928 msgstr ""
3929
3930 #. type: =head1
3931 #: ../examples/guestfs-recipes.pod:337
3932 msgid "Reading the Windows Event Log from Windows Vista (or later)"
3933 msgstr ""
3934
3935 #. type: textblock
3936 #: ../examples/guestfs-recipes.pod:339
3937 msgid ""
3938 "L<guestfish(1)> plus the tools described in the link below can be used to "
3939 "read out the Windows Event Log from any virtual machine running Windows "
3940 "Vista or a later version."
3941 msgstr ""
3942
3943 #. type: textblock
3944 #: ../examples/guestfs-recipes.pod:343
3945 msgid ""
3946 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
3947 "guestfish/#content"
3948 msgstr ""
3949
3950 #. type: =head1
3951 #: ../examples/guestfs-recipes.pod:345
3952 msgid "Remove root password (Linux)"
3953 msgstr ""
3954
3955 #. type: textblock
3956 #: ../examples/guestfs-recipes.pod:347
3957 msgid ""
3958 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
3959 "files.  One use is to remove the root password from a Linux guest:"
3960 msgstr ""
3961
3962 #. type: verbatim
3963 #: ../examples/guestfs-recipes.pod:350
3964 #, no-wrap
3965 msgid ""
3966 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3967 "\n"
3968 msgstr ""
3969
3970 #. type: =head1
3971 #: ../examples/guestfs-recipes.pod:352
3972 msgid "Remove Administrator password (Windows)"
3973 msgstr ""
3974
3975 #. type: textblock
3976 #: ../examples/guestfs-recipes.pod:354
3977 msgid ""
3978 "The link below contains one technique for removing the Administrator "
3979 "password from a Windows VM, or to be more precise, it gives you a command "
3980 "prompt the next time you log in which you can use to bypass any security:"
3981 msgstr ""
3982
3983 #. type: textblock
3984 #: ../examples/guestfs-recipes.pod:359
3985 msgid ""
3986 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
3987 "administrator-password-with-guestfish/"
3988 msgstr ""
3989
3990 #. type: =head1
3991 #: ../examples/guestfs-recipes.pod:361
3992 msgid "Unpack a live CD"
3993 msgstr ""
3994
3995 #. type: textblock
3996 #: ../examples/guestfs-recipes.pod:363
3997 msgid ""
3998 "Linux live CDs often contain multiple layers of disk images wrapped like a "
3999 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4000 "layers, as outlined in the guide below."
4001 msgstr ""
4002
4003 #. type: textblock
4004 #: ../examples/guestfs-recipes.pod:367
4005 msgid ""
4006 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4007 "cd/#content"
4008 msgstr ""
4009
4010 #. type: =head1
4011 #: ../examples/guestfs-recipes.pod:369
4012 msgid "Uploading and downloading files"
4013 msgstr ""
4014
4015 #. type: textblock
4016 #: ../examples/guestfs-recipes.pod:371
4017 msgid ""
4018 "The link below contains general tips on uploading (copying in)  and "
4019 "downloading (copying out) files from VMs."
4020 msgstr ""
4021
4022 #. type: textblock
4023 #: ../examples/guestfs-recipes.pod:374
4024 msgid ""
4025 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4026 msgstr ""
4027
4028 #. type: =head1
4029 #: ../examples/guestfs-recipes.pod:376
4030 msgid "Use libguestfs tools on VMware ESX guests"
4031 msgstr ""
4032
4033 #. type: textblock
4034 #: ../examples/guestfs-recipes.pod:378
4035 msgid ""
4036 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4037 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../examples/guestfs-recipes.pod:382
4042 msgid ""
4043 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4044 "guests/#content"
4045 msgstr ""
4046
4047 #. type: textblock
4048 #: ../examples/guestfs-recipes.pod:386
4049 msgid ""
4050 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4051 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4052 "(3)>, L<http://libguestfs.org/>."
4053 msgstr ""
4054
4055 #. type: textblock
4056 #: ../examples/guestfs-recipes.pod:402
4057 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4058 msgstr ""
4059
4060 #. type: =head2
4061 #: ../fish/guestfish-actions.pod:1
4062 msgid "add-cdrom"
4063 msgstr ""
4064
4065 #. type: verbatim
4066 #: ../fish/guestfish-actions.pod:3
4067 #, no-wrap
4068 msgid ""
4069 " add-cdrom filename\n"
4070 "\n"
4071 msgstr ""
4072
4073 #. type: textblock
4074 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4075 msgid "This function adds a virtual CD-ROM disk image to the guest."
4076 msgstr ""
4077
4078 #. type: textblock
4079 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4080 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4081 msgstr ""
4082
4083 #. type: textblock
4084 #: ../fish/guestfish-actions.pod:15
4085 msgid ""
4086 "This call checks for the existence of C<filename>.  This stops you from "
4087 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4088 "and C<http:> URLs.  To specify those, use the general L</config> call "
4089 "instead."
4090 msgstr ""
4091
4092 #. type: textblock
4093 #: ../fish/guestfish-actions.pod:22
4094 msgid ""
4095 "If you just want to add an ISO file (often you use this as an efficient way "
4096 "to transfer large files into the guest), then you should probably use L</add-"
4097 "drive-ro> instead."
4098 msgstr ""
4099
4100 #. type: textblock
4101 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4102 #: ../fish/guestfish-actions.pod:177
4103 msgid ""
4104 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4105 "instead."
4106 msgstr ""
4107
4108 #. type: textblock
4109 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4110 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:986
4111 #: ../fish/guestfish-actions.pod:1346 ../fish/guestfish-actions.pod:1360
4112 #: ../fish/guestfish-actions.pod:3085 ../fish/guestfish-actions.pod:3292
4113 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3454
4114 #: ../fish/guestfish-actions.pod:4355 ../fish/guestfish-actions.pod:4378
4115 #: ../fish/guestfish-actions.pod:4400 ../fish/guestfish-actions.pod:4438
4116 #: ../fish/guestfish-actions.pod:5087 ../fish/guestfish-actions.pod:5185
4117 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252
4118 #: ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1503
4119 #: ../src/guestfs-actions.pod:2002 ../src/guestfs-actions.pod:2023
4120 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4921
4121 #: ../src/guestfs-actions.pod:5150 ../src/guestfs-actions.pod:5250
4122 #: ../src/guestfs-actions.pod:6516 ../src/guestfs-actions.pod:6560
4123 #: ../src/guestfs-actions.pod:6594 ../src/guestfs-actions.pod:6657
4124 #: ../src/guestfs-actions.pod:7589 ../src/guestfs-actions.pod:7698
4125 #: ../src/guestfs-actions.pod:7873
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:568 ../fish/guestfish-actions.pod:1968
4219 #: ../fish/guestfish-actions.pod:3134 ../fish/guestfish-actions.pod:3307
4220 #: ../fish/guestfish-actions.pod:3442
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:3096
4298 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4655
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 (can be expensive)."
4605 msgstr ""
4606
4607 #. type: =item
4608 #: ../fish/guestfish-actions.pod:266 ../src/guestfs-actions.pod:404
4609 msgid "C<AUG_NO_STDINC> = 8"
4610 msgstr ""
4611
4612 #. type: textblock
4613 #: ../fish/guestfish-actions.pod:268 ../src/guestfs-actions.pod:406
4614 msgid "Do not use standard load path for modules."
4615 msgstr ""
4616
4617 #. type: =item
4618 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:408
4619 msgid "C<AUG_SAVE_NOOP> = 16"
4620 msgstr ""
4621
4622 #. type: textblock
4623 #: ../fish/guestfish-actions.pod:272 ../src/guestfs-actions.pod:410
4624 msgid "Make save a no-op, just record what would have been changed."
4625 msgstr ""
4626
4627 #. type: =item
4628 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:412
4629 msgid "C<AUG_NO_LOAD> = 32"
4630 msgstr ""
4631
4632 #. type: textblock
4633 #: ../fish/guestfish-actions.pod:276
4634 msgid "Do not load the tree in L</aug-init>."
4635 msgstr ""
4636
4637 #. type: textblock
4638 #: ../fish/guestfish-actions.pod:280
4639 msgid "To close the handle, you can call L</aug-close>."
4640 msgstr ""
4641
4642 #. type: textblock
4643 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:420
4644 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4645 msgstr ""
4646
4647 #. type: =head2
4648 #: ../fish/guestfish-actions.pod:284
4649 msgid "aug-insert"
4650 msgstr ""
4651
4652 #. type: verbatim
4653 #: ../fish/guestfish-actions.pod:286
4654 #, no-wrap
4655 msgid ""
4656 " aug-insert augpath label true|false\n"
4657 "\n"
4658 msgstr ""
4659
4660 #. type: textblock
4661 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:434
4662 msgid ""
4663 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4664 "or after C<path> (depending on the boolean flag C<before>)."
4665 msgstr ""
4666
4667 #. type: textblock
4668 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:438
4669 msgid ""
4670 "C<path> must match exactly one existing node in the tree, and C<label> must "
4671 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4672 msgstr ""
4673
4674 #. type: =head2
4675 #: ../fish/guestfish-actions.pod:296
4676 msgid "aug-load"
4677 msgstr ""
4678
4679 #. type: verbatim
4680 #: ../fish/guestfish-actions.pod:298
4681 #, no-wrap
4682 msgid ""
4683 " aug-load\n"
4684 "\n"
4685 msgstr ""
4686
4687 #. type: textblock
4688 #: ../fish/guestfish-actions.pod:300 ../src/guestfs-actions.pod:451
4689 msgid "Load files into the tree."
4690 msgstr ""
4691
4692 #. type: textblock
4693 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:453
4694 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4695 msgstr ""
4696
4697 #. type: =head2
4698 #: ../fish/guestfish-actions.pod:305
4699 msgid "aug-ls"
4700 msgstr ""
4701
4702 #. type: verbatim
4703 #: ../fish/guestfish-actions.pod:307
4704 #, no-wrap
4705 msgid ""
4706 " aug-ls augpath\n"
4707 "\n"
4708 msgstr ""
4709
4710 #. type: textblock
4711 #: ../fish/guestfish-actions.pod:309
4712 msgid ""
4713 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4714 "resulting nodes into alphabetical order."
4715 msgstr ""
4716
4717 #. type: =head2
4718 #: ../fish/guestfish-actions.pod:312
4719 msgid "aug-match"
4720 msgstr ""
4721
4722 #. type: verbatim
4723 #: ../fish/guestfish-actions.pod:314
4724 #, no-wrap
4725 msgid ""
4726 " aug-match augpath\n"
4727 "\n"
4728 msgstr ""
4729
4730 #. type: textblock
4731 #: ../fish/guestfish-actions.pod:316 ../src/guestfs-actions.pod:481
4732 msgid ""
4733 "Returns a list of paths which match the path expression C<path>.  The "
4734 "returned paths are sufficiently qualified so that they match exactly one "
4735 "node in the current tree."
4736 msgstr ""
4737
4738 #. type: =head2
4739 #: ../fish/guestfish-actions.pod:320
4740 msgid "aug-mv"
4741 msgstr ""
4742
4743 #. type: verbatim
4744 #: ../fish/guestfish-actions.pod:322
4745 #, no-wrap
4746 msgid ""
4747 " aug-mv src dest\n"
4748 "\n"
4749 msgstr ""
4750
4751 #. type: textblock
4752 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:498
4753 msgid ""
4754 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4755 "C<dest> is overwritten if it exists."
4756 msgstr ""
4757
4758 #. type: =head2
4759 #: ../fish/guestfish-actions.pod:327
4760 msgid "aug-rm"
4761 msgstr ""
4762
4763 #. type: verbatim
4764 #: ../fish/guestfish-actions.pod:329
4765 #, no-wrap
4766 msgid ""
4767 " aug-rm augpath\n"
4768 "\n"
4769 msgstr ""
4770
4771 #. type: textblock
4772 #: ../fish/guestfish-actions.pod:331 ../src/guestfs-actions.pod:511
4773 msgid "Remove C<path> and all of its children."
4774 msgstr ""
4775
4776 #. type: textblock
4777 #: ../fish/guestfish-actions.pod:333 ../src/guestfs-actions.pod:513
4778 msgid "On success this returns the number of entries which were removed."
4779 msgstr ""
4780
4781 #. type: =head2
4782 #: ../fish/guestfish-actions.pod:335
4783 msgid "aug-save"
4784 msgstr ""
4785
4786 #. type: verbatim
4787 #: ../fish/guestfish-actions.pod:337
4788 #, no-wrap
4789 msgid ""
4790 " aug-save\n"
4791 "\n"
4792 msgstr ""
4793
4794 #. type: textblock
4795 #: ../fish/guestfish-actions.pod:339 ../src/guestfs-actions.pod:524
4796 msgid "This writes all pending changes to disk."
4797 msgstr ""
4798
4799 #. type: textblock
4800 #: ../fish/guestfish-actions.pod:341
4801 msgid ""
4802 "The flags which were passed to L</aug-init> affect exactly how files are "
4803 "saved."
4804 msgstr ""
4805
4806 #. type: =head2
4807 #: ../fish/guestfish-actions.pod:344
4808 msgid "aug-set"
4809 msgstr ""
4810
4811 #. type: verbatim
4812 #: ../fish/guestfish-actions.pod:346
4813 #, no-wrap
4814 msgid ""
4815 " aug-set augpath val\n"
4816 "\n"
4817 msgstr ""
4818
4819 #. type: textblock
4820 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:540
4821 msgid "Set the value associated with C<path> to C<val>."
4822 msgstr ""
4823
4824 #. type: textblock
4825 #: ../fish/guestfish-actions.pod:350
4826 msgid ""
4827 "In the Augeas API, it is possible to clear a node by setting the value to "
4828 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4829 "this call.  Instead you must use the L</aug-clear> call."
4830 msgstr ""
4831
4832 #. type: =head2
4833 #: ../fish/guestfish-actions.pod:355
4834 msgid "available"
4835 msgstr ""
4836
4837 #. type: verbatim
4838 #: ../fish/guestfish-actions.pod:357
4839 #, no-wrap
4840 msgid ""
4841 " available 'groups ...'\n"
4842 "\n"
4843 msgstr ""
4844
4845 #. type: textblock
4846 #: ../fish/guestfish-actions.pod:359 ../src/guestfs-actions.pod:557
4847 msgid ""
4848 "This command is used to check the availability of some groups of "
4849 "functionality in the appliance, which not all builds of the libguestfs "
4850 "appliance will be able to provide."
4851 msgstr ""
4852
4853 #. type: textblock
4854 #: ../fish/guestfish-actions.pod:363
4855 msgid ""
4856 "The libguestfs groups, and the functions that those groups correspond to, "
4857 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4858 "runtime by calling L</available-all-groups>."
4859 msgstr ""
4860
4861 #. type: textblock
4862 #: ../fish/guestfish-actions.pod:368 ../src/guestfs-actions.pod:566
4863 msgid ""
4864 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4865 "\"]> would check for the availability of the Linux inotify functions and "
4866 "Augeas (configuration file editing) functions."
4867 msgstr ""
4868
4869 #. type: textblock
4870 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
4871 msgid "The command returns no error if I<all> requested groups are available."
4872 msgstr ""
4873
4874 #. type: textblock
4875 #: ../fish/guestfish-actions.pod:375 ../src/guestfs-actions.pod:573
4876 msgid ""
4877 "It fails with an error if one or more of the requested groups is unavailable "
4878 "in the appliance."
4879 msgstr ""
4880
4881 #. type: textblock
4882 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
4883 msgid ""
4884 "If an unknown group name is included in the list of groups then an error is "
4885 "always returned."
4886 msgstr ""
4887
4888 #. type: textblock
4889 #: ../fish/guestfish-actions.pod:381 ../src/guestfs-actions.pod:579
4890 msgid "I<Notes:>"
4891 msgstr ""
4892
4893 #. type: textblock
4894 #: ../fish/guestfish-actions.pod:387
4895 msgid "You must call L</launch> before calling this function."
4896 msgstr ""
4897
4898 #. type: textblock
4899 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:587
4900 msgid ""
4901 "The reason is because we don't know what groups are supported by the "
4902 "appliance/daemon until it is running and can be queried."
4903 msgstr ""
4904
4905 #. type: textblock
4906 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:593
4907 msgid ""
4908 "If a group of functions is available, this does not necessarily mean that "
4909 "they will work.  You still have to check for errors when calling individual "
4910 "API functions even if they are available."
4911 msgstr ""
4912
4913 #. type: textblock
4914 #: ../fish/guestfish-actions.pod:402 ../src/guestfs-actions.pod:600
4915 msgid ""
4916 "It is usually the job of distro packagers to build complete functionality "
4917 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4918 "with all requirements satisfied, will support everything."
4919 msgstr ""
4920
4921 #. type: textblock
4922 #: ../fish/guestfish-actions.pod:409
4923 msgid ""
4924 "This call was added in version C<1.0.80>.  In previous versions of "
4925 "libguestfs all you could do would be to speculatively execute a command to "
4926 "find out if the daemon implemented it.  See also L</version>."
4927 msgstr ""
4928
4929 #. type: =head2
4930 #: ../fish/guestfish-actions.pod:416
4931 msgid "available-all-groups"
4932 msgstr ""
4933
4934 #. type: verbatim
4935 #: ../fish/guestfish-actions.pod:418
4936 #, no-wrap
4937 msgid ""
4938 " available-all-groups\n"
4939 "\n"
4940 msgstr ""
4941
4942 #. type: textblock
4943 #: ../fish/guestfish-actions.pod:420
4944 msgid ""
4945 "This command returns a list of all optional groups that this daemon knows "
4946 "about.  Note this returns both supported and unsupported groups.  To find "
4947 "out which ones the daemon can actually support you have to call L</"
4948 "available> on each member of the returned list."
4949 msgstr ""
4950
4951 #. type: textblock
4952 #: ../fish/guestfish-actions.pod:426
4953 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
4954 msgstr ""
4955
4956 #. type: =head2
4957 #: ../fish/guestfish-actions.pod:428
4958 msgid "base64-in"
4959 msgstr ""
4960
4961 #. type: verbatim
4962 #: ../fish/guestfish-actions.pod:430
4963 #, no-wrap
4964 msgid ""
4965 " base64-in (base64file|-) filename\n"
4966 "\n"
4967 msgstr ""
4968
4969 #. type: textblock
4970 #: ../fish/guestfish-actions.pod:432 ../src/guestfs-actions.pod:644
4971 msgid ""
4972 "This command uploads base64-encoded data from C<base64file> to C<filename>."
4973 msgstr ""
4974
4975 #. type: textblock
4976 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
4977 #: ../fish/guestfish-actions.pod:693 ../fish/guestfish-actions.pod:862
4978 #: ../fish/guestfish-actions.pod:881 ../fish/guestfish-actions.pod:1255
4979 #: ../fish/guestfish-actions.pod:4658 ../fish/guestfish-actions.pod:4670
4980 #: ../fish/guestfish-actions.pod:4681 ../fish/guestfish-actions.pod:4692
4981 #: ../fish/guestfish-actions.pod:4744 ../fish/guestfish-actions.pod:4753
4982 #: ../fish/guestfish-actions.pod:4807 ../fish/guestfish-actions.pod:4830
4983 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
4984 msgstr ""
4985
4986 #. type: =head2
4987 #: ../fish/guestfish-actions.pod:437
4988 msgid "base64-out"
4989 msgstr ""
4990
4991 #. type: verbatim
4992 #: ../fish/guestfish-actions.pod:439
4993 #, no-wrap
4994 msgid ""
4995 " base64-out filename (base64file|-)\n"
4996 "\n"
4997 msgstr ""
4998
4999 #. type: textblock
5000 #: ../fish/guestfish-actions.pod:441 ../src/guestfs-actions.pod:658
5001 msgid ""
5002 "This command downloads the contents of C<filename>, writing it out to local "
5003 "file C<base64file> encoded as base64."
5004 msgstr ""
5005
5006 #. type: =head2
5007 #: ../fish/guestfish-actions.pod:446
5008 msgid "blockdev-flushbufs"
5009 msgstr ""
5010
5011 #. type: verbatim
5012 #: ../fish/guestfish-actions.pod:448
5013 #, no-wrap
5014 msgid ""
5015 " blockdev-flushbufs device\n"
5016 "\n"
5017 msgstr ""
5018
5019 #. type: textblock
5020 #: ../fish/guestfish-actions.pod:450 ../src/guestfs-actions.pod:671
5021 msgid ""
5022 "This tells the kernel to flush internal buffers associated with C<device>."
5023 msgstr ""
5024
5025 #. type: textblock
5026 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
5027 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
5028 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
5029 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
5030 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
5031 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
5032 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
5033 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
5034 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
5035 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
5036 msgid "This uses the L<blockdev(8)> command."
5037 msgstr ""
5038
5039 #. type: =head2
5040 #: ../fish/guestfish-actions.pod:455
5041 msgid "blockdev-getbsz"
5042 msgstr ""
5043
5044 #. type: verbatim
5045 #: ../fish/guestfish-actions.pod:457
5046 #, no-wrap
5047 msgid ""
5048 " blockdev-getbsz device\n"
5049 "\n"
5050 msgstr ""
5051
5052 #. type: textblock
5053 #: ../fish/guestfish-actions.pod:459 ../src/guestfs-actions.pod:686
5054 msgid "This returns the block size of a device."
5055 msgstr ""
5056
5057 #. type: textblock
5058 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
5059 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
5060 msgid ""
5061 "(Note this is different from both I<size in blocks> and I<filesystem block "
5062 "size>)."
5063 msgstr ""
5064
5065 #. type: =head2
5066 #: ../fish/guestfish-actions.pod:466
5067 msgid "blockdev-getro"
5068 msgstr ""
5069
5070 #. type: verbatim
5071 #: ../fish/guestfish-actions.pod:468
5072 #, no-wrap
5073 msgid ""
5074 " blockdev-getro device\n"
5075 "\n"
5076 msgstr ""
5077
5078 #. type: textblock
5079 #: ../fish/guestfish-actions.pod:470 ../src/guestfs-actions.pod:703
5080 msgid ""
5081 "Returns a boolean indicating if the block device is read-only (true if read-"
5082 "only, false if not)."
5083 msgstr ""
5084
5085 #. type: =head2
5086 #: ../fish/guestfish-actions.pod:475
5087 msgid "blockdev-getsize64"
5088 msgstr ""
5089
5090 #. type: verbatim
5091 #: ../fish/guestfish-actions.pod:477
5092 #, no-wrap
5093 msgid ""
5094 " blockdev-getsize64 device\n"
5095 "\n"
5096 msgstr ""
5097
5098 #. type: textblock
5099 #: ../fish/guestfish-actions.pod:479 ../src/guestfs-actions.pod:718
5100 msgid "This returns the size of the device in bytes."
5101 msgstr ""
5102
5103 #. type: textblock
5104 #: ../fish/guestfish-actions.pod:481
5105 msgid "See also L</blockdev-getsz>."
5106 msgstr ""
5107
5108 #. type: =head2
5109 #: ../fish/guestfish-actions.pod:485
5110 msgid "blockdev-getss"
5111 msgstr ""
5112
5113 #. type: verbatim
5114 #: ../fish/guestfish-actions.pod:487
5115 #, no-wrap
5116 msgid ""
5117 " blockdev-getss device\n"
5118 "\n"
5119 msgstr ""
5120
5121 #. type: textblock
5122 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:734
5123 msgid ""
5124 "This returns the size of sectors on a block device.  Usually 512, but can be "
5125 "larger for modern devices."
5126 msgstr ""
5127
5128 #. type: textblock
5129 #: ../fish/guestfish-actions.pod:492
5130 msgid ""
5131 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5132 msgstr ""
5133
5134 #. type: =head2
5135 #: ../fish/guestfish-actions.pod:497
5136 msgid "blockdev-getsz"
5137 msgstr ""
5138
5139 #. type: verbatim
5140 #: ../fish/guestfish-actions.pod:499
5141 #, no-wrap
5142 msgid ""
5143 " blockdev-getsz device\n"
5144 "\n"
5145 msgstr ""
5146
5147 #. type: textblock
5148 #: ../fish/guestfish-actions.pod:501 ../src/guestfs-actions.pod:752
5149 msgid ""
5150 "This returns the size of the device in units of 512-byte sectors (even if "
5151 "the sectorsize isn't 512 bytes ... weird)."
5152 msgstr ""
5153
5154 #. type: textblock
5155 #: ../fish/guestfish-actions.pod:504
5156 msgid ""
5157 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5158 "blockdev-getsize64> for the more useful I<size in bytes>."
5159 msgstr ""
5160
5161 #. type: =head2
5162 #: ../fish/guestfish-actions.pod:510
5163 msgid "blockdev-rereadpt"
5164 msgstr ""
5165
5166 #. type: verbatim
5167 #: ../fish/guestfish-actions.pod:512
5168 #, no-wrap
5169 msgid ""
5170 " blockdev-rereadpt device\n"
5171 "\n"
5172 msgstr ""
5173
5174 #. type: textblock
5175 #: ../fish/guestfish-actions.pod:514 ../src/guestfs-actions.pod:771
5176 msgid "Reread the partition table on C<device>."
5177 msgstr ""
5178
5179 #. type: =head2
5180 #: ../fish/guestfish-actions.pod:518
5181 msgid "blockdev-setbsz"
5182 msgstr ""
5183
5184 #. type: verbatim
5185 #: ../fish/guestfish-actions.pod:520
5186 #, no-wrap
5187 msgid ""
5188 " blockdev-setbsz device blocksize\n"
5189 "\n"
5190 msgstr ""
5191
5192 #. type: textblock
5193 #: ../fish/guestfish-actions.pod:522 ../src/guestfs-actions.pod:786
5194 msgid "This sets the block size of a device."
5195 msgstr ""
5196
5197 #. type: =head2
5198 #: ../fish/guestfish-actions.pod:529
5199 msgid "blockdev-setro"
5200 msgstr ""
5201
5202 #. type: verbatim
5203 #: ../fish/guestfish-actions.pod:531
5204 #, no-wrap
5205 msgid ""
5206 " blockdev-setro device\n"
5207 "\n"
5208 msgstr ""
5209
5210 #. type: textblock
5211 #: ../fish/guestfish-actions.pod:533 ../src/guestfs-actions.pod:803
5212 msgid "Sets the block device named C<device> to read-only."
5213 msgstr ""
5214
5215 #. type: =head2
5216 #: ../fish/guestfish-actions.pod:537
5217 msgid "blockdev-setrw"
5218 msgstr ""
5219
5220 #. type: verbatim
5221 #: ../fish/guestfish-actions.pod:539
5222 #, no-wrap
5223 msgid ""
5224 " blockdev-setrw device\n"
5225 "\n"
5226 msgstr ""
5227
5228 #. type: textblock
5229 #: ../fish/guestfish-actions.pod:541 ../src/guestfs-actions.pod:817
5230 msgid "Sets the block device named C<device> to read-write."
5231 msgstr ""
5232
5233 #. type: =head2
5234 #: ../fish/guestfish-actions.pod:545
5235 msgid "btrfs-filesystem-resize"
5236 msgstr ""
5237
5238 #. type: verbatim
5239 #: ../fish/guestfish-actions.pod:547
5240 #, no-wrap
5241 msgid ""
5242 " btrfs-filesystem-resize mountpoint [size:..]\n"
5243 "\n"
5244 msgstr ""
5245
5246 #. type: textblock
5247 #: ../fish/guestfish-actions.pod:549 ../src/guestfs-actions.pod:839
5248 msgid "This command resizes a btrfs filesystem."
5249 msgstr ""
5250
5251 #. type: textblock
5252 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:841
5253 msgid ""
5254 "Note that unlike other resize calls, the filesystem has to be mounted and "
5255 "the parameter is the mountpoint not the device (this is a requirement of "
5256 "btrfs itself)."
5257 msgstr ""
5258
5259 #. type: textblock
5260 #: ../fish/guestfish-actions.pod:555 ../fish/guestfish-actions.pod:3417
5261 #: ../src/guestfs-actions.pod:845 ../src/guestfs-actions.pod:5189
5262 msgid "The optional parameters are:"
5263 msgstr ""
5264
5265 #. type: =item
5266 #: ../fish/guestfish-actions.pod:559 ../fish/guestfish-actions.pod:3421
5267 #: ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:5193
5268 msgid "C<size>"
5269 msgstr ""
5270
5271 #. type: textblock
5272 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:851
5273 msgid ""
5274 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5275 "resized to the maximum size."
5276 msgstr ""
5277
5278 #. type: textblock
5279 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5280 msgid "See also L<btrfs(8)>."
5281 msgstr ""
5282
5283 #. type: =head2
5284 #: ../fish/guestfish-actions.pod:570
5285 msgid "case-sensitive-path"
5286 msgstr ""
5287
5288 #. type: verbatim
5289 #: ../fish/guestfish-actions.pod:572
5290 #, no-wrap
5291 msgid ""
5292 " case-sensitive-path path\n"
5293 "\n"
5294 msgstr ""
5295
5296 #. type: textblock
5297 #: ../fish/guestfish-actions.pod:574 ../src/guestfs-actions.pod:890
5298 msgid ""
5299 "This can be used to resolve case insensitive paths on a filesystem which is "
5300 "case sensitive.  The use case is to resolve paths which you have read from "
5301 "Windows configuration files or the Windows Registry, to the true path."
5302 msgstr ""
5303
5304 #. type: textblock
5305 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5306 msgid ""
5307 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5308 "(and probably others), which is that although the underlying filesystem is "
5309 "case-insensitive, the driver exports the filesystem to Linux as case-"
5310 "sensitive."
5311 msgstr ""
5312
5313 #. type: textblock
5314 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5315 msgid ""
5316 "One consequence of this is that special directories such as C<c:\\windows> "
5317 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5318 "precise details of how they were created.  In Windows itself this would not "
5319 "be a problem."
5320 msgstr ""
5321
5322 #. type: textblock
5323 #: ../fish/guestfish-actions.pod:590 ../src/guestfs-actions.pod:906
5324 msgid ""
5325 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5326 "#posixfilenames1>"
5327 msgstr ""
5328
5329 #. type: textblock
5330 #: ../fish/guestfish-actions.pod:593 ../src/guestfs-actions.pod:909
5331 msgid ""
5332 "This function resolves the true case of each element in the path and returns "
5333 "the case-sensitive path."
5334 msgstr ""
5335
5336 #. type: textblock
5337 #: ../fish/guestfish-actions.pod:596
5338 msgid ""
5339 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5340 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5341 "the directories were originally created under Windows)."
5342 msgstr ""
5343
5344 #. type: textblock
5345 #: ../fish/guestfish-actions.pod:601 ../src/guestfs-actions.pod:917
5346 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5347 msgstr ""
5348
5349 #. type: textblock
5350 #: ../fish/guestfish-actions.pod:604
5351 msgid "See also L</realpath>."
5352 msgstr ""
5353
5354 #. type: =head2
5355 #: ../fish/guestfish-actions.pod:606
5356 msgid "cat"
5357 msgstr ""
5358
5359 #. type: verbatim
5360 #: ../fish/guestfish-actions.pod:608
5361 #, no-wrap
5362 msgid ""
5363 " cat path\n"
5364 "\n"
5365 msgstr ""
5366
5367 #. type: textblock
5368 #: ../fish/guestfish-actions.pod:610 ../fish/guestfish-actions.pod:3837
5369 #: ../src/guestfs-actions.pod:933 ../src/guestfs-actions.pod:5832
5370 msgid "Return the contents of the file named C<path>."
5371 msgstr ""
5372
5373 #. type: textblock
5374 #: ../fish/guestfish-actions.pod:612
5375 msgid ""
5376 "Note that this function cannot correctly handle binary files (specifically, "
5377 "files containing C<\\0> character which is treated as end of string).  For "
5378 "those you need to use the L</read-file> or L</download> functions which have "
5379 "a more complex interface."
5380 msgstr ""
5381
5382 #. type: textblock
5383 #: ../fish/guestfish-actions.pod:617 ../fish/guestfish-actions.pod:752
5384 #: ../fish/guestfish-actions.pod:764 ../fish/guestfish-actions.pod:940
5385 #: ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:1017
5386 #: ../fish/guestfish-actions.pod:1027 ../fish/guestfish-actions.pod:1219
5387 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:1536
5388 #: ../fish/guestfish-actions.pod:1564 ../fish/guestfish-actions.pod:1579
5389 #: ../fish/guestfish-actions.pod:1589 ../fish/guestfish-actions.pod:1608
5390 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
5391 #: ../fish/guestfish-actions.pod:3798 ../fish/guestfish-actions.pod:3815
5392 #: ../fish/guestfish-actions.pod:3830 ../fish/guestfish-actions.pod:4499
5393 #: ../fish/guestfish-actions.pod:4545 ../fish/guestfish-actions.pod:4630
5394 #: ../fish/guestfish-actions.pod:4645 ../fish/guestfish-actions.pod:5051
5395 #: ../fish/guestfish-actions.pod:5063 ../fish/guestfish-actions.pod:5081
5396 #: ../fish/guestfish-actions.pod:5098 ../fish/guestfish-actions.pod:5108
5397 #: ../fish/guestfish-actions.pod:5157 ../fish/guestfish-actions.pod:5167
5398 #: ../fish/guestfish-actions.pod:5196 ../fish/guestfish-actions.pod:5206
5399 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1122
5400 #: ../src/guestfs-actions.pod:1142 ../src/guestfs-actions.pod:1438
5401 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1560
5402 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1825
5403 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:2315
5404 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:2382
5405 #: ../src/guestfs-actions.pod:2399 ../src/guestfs-actions.pod:2428
5406 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5640
5407 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5797
5408 #: ../src/guestfs-actions.pod:5821 ../src/guestfs-actions.pod:6772
5409 #: ../src/guestfs-actions.pod:6827 ../src/guestfs-actions.pod:6973
5410 #: ../src/guestfs-actions.pod:6997 ../src/guestfs-actions.pod:7662
5411 #: ../src/guestfs-actions.pod:7682 ../src/guestfs-actions.pod:7715
5412 #: ../src/guestfs-actions.pod:7734 ../src/guestfs-actions.pod:7753
5413 #: ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7858
5414 #: ../src/guestfs-actions.pod:7904 ../src/guestfs-actions.pod:7923
5415 msgid ""
5416 "Because of the message protocol, there is a transfer limit of somewhere "
5417 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5418 msgstr ""
5419
5420 #. type: =head2
5421 #: ../fish/guestfish-actions.pod:620
5422 msgid "checksum"
5423 msgstr ""
5424
5425 #. type: verbatim
5426 #: ../fish/guestfish-actions.pod:622
5427 #, no-wrap
5428 msgid ""
5429 " checksum csumtype path\n"
5430 "\n"
5431 msgstr ""
5432
5433 #. type: textblock
5434 #: ../fish/guestfish-actions.pod:624 ../src/guestfs-actions.pod:955
5435 msgid ""
5436 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5437 msgstr ""
5438
5439 #. type: textblock
5440 #: ../fish/guestfish-actions.pod:627 ../src/guestfs-actions.pod:958
5441 msgid ""
5442 "The type of checksum to compute is given by the C<csumtype> parameter which "
5443 "must have one of the following values:"
5444 msgstr ""
5445
5446 #. type: =item
5447 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5448 msgid "C<crc>"
5449 msgstr ""
5450
5451 #. type: textblock
5452 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:965
5453 msgid ""
5454 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5455 "C<cksum> command."
5456 msgstr ""
5457
5458 #. type: =item
5459 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5460 msgid "C<md5>"
5461 msgstr ""
5462
5463 #. type: textblock
5464 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5465 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5466 msgstr ""
5467
5468 #. type: =item
5469 #: ../fish/guestfish-actions.pod:641 ../src/guestfs-actions.pod:972
5470 msgid "C<sha1>"
5471 msgstr ""
5472
5473 #. type: textblock
5474 #: ../fish/guestfish-actions.pod:643 ../src/guestfs-actions.pod:974
5475 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5476 msgstr ""
5477
5478 #. type: =item
5479 #: ../fish/guestfish-actions.pod:645 ../src/guestfs-actions.pod:976
5480 msgid "C<sha224>"
5481 msgstr ""
5482
5483 #. type: textblock
5484 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:978
5485 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5486 msgstr ""
5487
5488 #. type: =item
5489 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:980
5490 msgid "C<sha256>"
5491 msgstr ""
5492
5493 #. type: textblock
5494 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:982
5495 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5496 msgstr ""
5497
5498 #. type: =item
5499 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:984
5500 msgid "C<sha384>"
5501 msgstr ""
5502
5503 #. type: textblock
5504 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:986
5505 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5506 msgstr ""
5507
5508 #. type: =item
5509 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:988
5510 msgid "C<sha512>"
5511 msgstr ""
5512
5513 #. type: textblock
5514 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:990
5515 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5516 msgstr ""
5517
5518 #. type: textblock
5519 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:994
5520 msgid "The checksum is returned as a printable string."
5521 msgstr ""
5522
5523 #. type: textblock
5524 #: ../fish/guestfish-actions.pod:665
5525 msgid "To get the checksum for a device, use L</checksum-device>."
5526 msgstr ""
5527
5528 #. type: textblock
5529 #: ../fish/guestfish-actions.pod:667
5530 msgid "To get the checksums for many files, use L</checksums-out>."
5531 msgstr ""
5532
5533 #. type: =head2
5534 #: ../fish/guestfish-actions.pod:669
5535 msgid "checksum-device"
5536 msgstr ""
5537
5538 #. type: verbatim
5539 #: ../fish/guestfish-actions.pod:671
5540 #, no-wrap
5541 msgid ""
5542 " checksum-device csumtype device\n"
5543 "\n"
5544 msgstr ""
5545
5546 #. type: textblock
5547 #: ../fish/guestfish-actions.pod:673
5548 msgid ""
5549 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5550 "device named C<device>.  For the types of checksums supported see the L</"
5551 "checksum> command."
5552 msgstr ""
5553
5554 #. type: =head2
5555 #: ../fish/guestfish-actions.pod:677
5556 msgid "checksums-out"
5557 msgstr ""
5558
5559 #. type: verbatim
5560 #: ../fish/guestfish-actions.pod:679
5561 #, no-wrap
5562 msgid ""
5563 " checksums-out csumtype directory (sumsfile|-)\n"
5564 "\n"
5565 msgstr ""
5566
5567 #. type: textblock
5568 #: ../fish/guestfish-actions.pod:681 ../src/guestfs-actions.pod:1029
5569 msgid ""
5570 "This command computes the checksums of all regular files in C<directory> and "
5571 "then emits a list of those checksums to the local output file C<sumsfile>."
5572 msgstr ""
5573
5574 #. type: textblock
5575 #: ../fish/guestfish-actions.pod:685 ../src/guestfs-actions.pod:1033
5576 msgid ""
5577 "This can be used for verifying the integrity of a virtual machine.  However "
5578 "to be properly secure you should pay attention to the output of the checksum "
5579 "command (it uses the ones from GNU coreutils).  In particular when the "
5580 "filename is not printable, coreutils uses a special backslash syntax.  For "
5581 "more information, see the GNU coreutils info file."
5582 msgstr ""
5583
5584 #. type: =head2
5585 #: ../fish/guestfish-actions.pod:695
5586 msgid "chmod"
5587 msgstr ""
5588
5589 #. type: verbatim
5590 #: ../fish/guestfish-actions.pod:697
5591 #, no-wrap
5592 msgid ""
5593 " chmod mode path\n"
5594 "\n"
5595 msgstr ""
5596
5597 #. type: textblock
5598 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1052
5599 msgid ""
5600 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5601 "supported."
5602 msgstr ""
5603
5604 #. type: textblock
5605 #: ../fish/guestfish-actions.pod:702 ../src/guestfs-actions.pod:1055
5606 msgid ""
5607 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5608 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5609 "C<700>."
5610 msgstr ""
5611
5612 #. type: textblock
5613 #: ../fish/guestfish-actions.pod:706 ../fish/guestfish-actions.pod:3060
5614 #: ../fish/guestfish-actions.pod:3199 ../fish/guestfish-actions.pod:3209
5615 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:1059
5616 #: ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4795
5617 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:4833
5618 msgid "The mode actually set is affected by the umask."
5619 msgstr ""
5620
5621 #. type: =head2
5622 #: ../fish/guestfish-actions.pod:708
5623 msgid "chown"
5624 msgstr ""
5625
5626 #. type: verbatim
5627 #: ../fish/guestfish-actions.pod:710
5628 #, no-wrap
5629 msgid ""
5630 " chown owner group path\n"
5631 "\n"
5632 msgstr ""
5633
5634 #. type: textblock
5635 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1073
5636 msgid "Change the file owner to C<owner> and group to C<group>."
5637 msgstr ""
5638
5639 #. type: textblock
5640 #: ../fish/guestfish-actions.pod:714 ../fish/guestfish-actions.pod:2495
5641 #: ../src/guestfs-actions.pod:1075 ../src/guestfs-actions.pod:3657
5642 msgid ""
5643 "Only numeric uid and gid are supported.  If you want to use names, you will "
5644 "need to locate and parse the password file yourself (Augeas support makes "
5645 "this relatively easy)."
5646 msgstr ""
5647
5648 #. type: =head2
5649 #: ../fish/guestfish-actions.pod:718
5650 msgid "command"
5651 msgstr ""
5652
5653 #. type: verbatim
5654 #: ../fish/guestfish-actions.pod:720
5655 #, no-wrap
5656 msgid ""
5657 " command 'arguments ...'\n"
5658 "\n"
5659 msgstr ""
5660
5661 #. type: textblock
5662 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1089
5663 msgid ""
5664 "This call runs a command from the guest filesystem.  The filesystem must be "
5665 "mounted, and must contain a compatible operating system (ie. something "
5666 "Linux, with the same or compatible processor architecture)."
5667 msgstr ""
5668
5669 #. type: textblock
5670 #: ../fish/guestfish-actions.pod:727
5671 msgid ""
5672 "The single parameter is an argv-style list of arguments.  The first element "
5673 "is the name of the program to run.  Subsequent elements are parameters.  The "
5674 "list must be non-empty (ie. must contain a program name).  Note that the "
5675 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5676 msgstr ""
5677
5678 #. type: textblock
5679 #: ../fish/guestfish-actions.pod:734 ../src/guestfs-actions.pod:1101
5680 msgid "The return value is anything printed to I<stdout> by the command."
5681 msgstr ""
5682
5683 #. type: textblock
5684 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1104
5685 msgid ""
5686 "If the command returns a non-zero exit status, then this function returns an "
5687 "error message.  The error message string is the content of I<stderr> from "
5688 "the command."
5689 msgstr ""
5690
5691 #. type: textblock
5692 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1108
5693 msgid ""
5694 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5695 "bin>.  If you require a program from another location, you should provide "
5696 "the full path in the first parameter."
5697 msgstr ""
5698
5699 #. type: textblock
5700 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5701 msgid ""
5702 "Shared libraries and data files required by the program must be available on "
5703 "filesystems which are mounted in the correct places.  It is the caller's "
5704 "responsibility to ensure all filesystems that are needed are mounted at the "
5705 "right locations."
5706 msgstr ""
5707
5708 #. type: =head2
5709 #: ../fish/guestfish-actions.pod:755
5710 msgid "command-lines"
5711 msgstr ""
5712
5713 #. type: verbatim
5714 #: ../fish/guestfish-actions.pod:757
5715 #, no-wrap
5716 msgid ""
5717 " command-lines 'arguments ...'\n"
5718 "\n"
5719 msgstr ""
5720
5721 #. type: textblock
5722 #: ../fish/guestfish-actions.pod:759
5723 msgid ""
5724 "This is the same as L</command>, but splits the result into a list of lines."
5725 msgstr ""
5726
5727 #. type: textblock
5728 #: ../fish/guestfish-actions.pod:762
5729 msgid "See also: L</sh-lines>"
5730 msgstr ""
5731
5732 #. type: =head2
5733 #: ../fish/guestfish-actions.pod:767
5734 msgid "config"
5735 msgstr ""
5736
5737 #. type: verbatim
5738 #: ../fish/guestfish-actions.pod:769
5739 #, no-wrap
5740 msgid ""
5741 " config qemuparam qemuvalue\n"
5742 "\n"
5743 msgstr ""
5744
5745 #. type: textblock
5746 #: ../fish/guestfish-actions.pod:771 ../src/guestfs-actions.pod:1154
5747 msgid ""
5748 "This can be used to add arbitrary qemu command line parameters of the form "
5749 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5750 "setting some parameters which would interfere with parameters that we use."
5751 msgstr ""
5752
5753 #. type: textblock
5754 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
5755 msgid "The first character of C<param> string must be a C<-> (dash)."
5756 msgstr ""
5757
5758 #. type: textblock
5759 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1161
5760 msgid "C<value> can be NULL."
5761 msgstr ""
5762
5763 #. type: =head2
5764 #: ../fish/guestfish-actions.pod:780
5765 msgid "copy-size"
5766 msgstr ""
5767
5768 #. type: verbatim
5769 #: ../fish/guestfish-actions.pod:782
5770 #, no-wrap
5771 msgid ""
5772 " copy-size src dest size\n"
5773 "\n"
5774 msgstr ""
5775
5776 #. type: textblock
5777 #: ../fish/guestfish-actions.pod:784 ../src/guestfs-actions.pod:1175
5778 msgid ""
5779 "This command copies exactly C<size> bytes from one source device or file "
5780 "C<src> to another destination device or file C<dest>."
5781 msgstr ""
5782
5783 #. type: textblock
5784 #: ../fish/guestfish-actions.pod:787 ../src/guestfs-actions.pod:1178
5785 msgid ""
5786 "Note this will fail if the source is too short or if the destination is not "
5787 "large enough."
5788 msgstr ""
5789
5790 #. type: =head2
5791 #: ../fish/guestfish-actions.pod:790
5792 msgid "cp"
5793 msgstr ""
5794
5795 #. type: verbatim
5796 #: ../fish/guestfish-actions.pod:792
5797 #, no-wrap
5798 msgid ""
5799 " cp src dest\n"
5800 "\n"
5801 msgstr ""
5802
5803 #. type: textblock
5804 #: ../fish/guestfish-actions.pod:794 ../src/guestfs-actions.pod:1197
5805 msgid ""
5806 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5807 "destination filename or destination directory."
5808 msgstr ""
5809
5810 #. type: =head2
5811 #: ../fish/guestfish-actions.pod:797
5812 msgid "cp-a"
5813 msgstr ""
5814
5815 #. type: verbatim
5816 #: ../fish/guestfish-actions.pod:799
5817 #, no-wrap
5818 msgid ""
5819 " cp-a src dest\n"
5820 "\n"
5821 msgstr ""
5822
5823 #. type: textblock
5824 #: ../fish/guestfish-actions.pod:801 ../src/guestfs-actions.pod:1211
5825 msgid ""
5826 "This copies a file or directory from C<src> to C<dest> recursively using the "
5827 "C<cp -a> command."
5828 msgstr ""
5829
5830 #. type: =head2
5831 #: ../fish/guestfish-actions.pod:804
5832 msgid "dd"
5833 msgstr ""
5834
5835 #. type: verbatim
5836 #: ../fish/guestfish-actions.pod:806
5837 #, no-wrap
5838 msgid ""
5839 " dd src dest\n"
5840 "\n"
5841 msgstr ""
5842
5843 #. type: textblock
5844 #: ../fish/guestfish-actions.pod:808 ../src/guestfs-actions.pod:1225
5845 msgid ""
5846 "This command copies from one source device or file C<src> to another "
5847 "destination device or file C<dest>.  Normally you would use this to copy to "
5848 "or from a device or partition, for example to duplicate a filesystem."
5849 msgstr ""
5850
5851 #. type: textblock
5852 #: ../fish/guestfish-actions.pod:813
5853 msgid ""
5854 "If the destination is a device, it must be as large or larger than the "
5855 "source file or device, otherwise the copy will fail.  This command cannot do "
5856 "partial copies (see L</copy-size>)."
5857 msgstr ""
5858
5859 #. type: =head2
5860 #: ../fish/guestfish-actions.pod:817
5861 msgid "df"
5862 msgstr ""
5863
5864 #. type: verbatim
5865 #: ../fish/guestfish-actions.pod:819
5866 #, no-wrap
5867 msgid ""
5868 " df\n"
5869 "\n"
5870 msgstr ""
5871
5872 #. type: textblock
5873 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1243
5874 msgid "This command runs the C<df> command to report disk space used."
5875 msgstr ""
5876
5877 #. type: textblock
5878 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:834
5879 msgid ""
5880 "This command is mostly useful for interactive sessions.  It is I<not> "
5881 "intended that you try to parse the output string.  Use L</statvfs> from "
5882 "programs."
5883 msgstr ""
5884
5885 #. type: =head2
5886 #: ../fish/guestfish-actions.pod:827
5887 msgid "df-h"
5888 msgstr ""
5889
5890 #. type: verbatim
5891 #: ../fish/guestfish-actions.pod:829
5892 #, no-wrap
5893 msgid ""
5894 " df-h\n"
5895 "\n"
5896 msgstr ""
5897
5898 #. type: textblock
5899 #: ../fish/guestfish-actions.pod:831 ../src/guestfs-actions.pod:1259
5900 msgid ""
5901 "This command runs the C<df -h> command to report disk space used in human-"
5902 "readable format."
5903 msgstr ""
5904
5905 #. type: =head2
5906 #: ../fish/guestfish-actions.pod:838
5907 msgid "dmesg"
5908 msgstr ""
5909
5910 #. type: verbatim
5911 #: ../fish/guestfish-actions.pod:840
5912 #, no-wrap
5913 msgid ""
5914 " dmesg\n"
5915 "\n"
5916 msgstr ""
5917
5918 #. type: textblock
5919 #: ../fish/guestfish-actions.pod:842 ../src/guestfs-actions.pod:1276
5920 msgid ""
5921 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5922 "This is sometimes useful for extended debugging of problems."
5923 msgstr ""
5924
5925 #. type: textblock
5926 #: ../fish/guestfish-actions.pod:846
5927 msgid ""
5928 "Another way to get the same information is to enable verbose messages with "
5929 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
5930 "before running the program."
5931 msgstr ""
5932
5933 #. type: =head2
5934 #: ../fish/guestfish-actions.pod:851
5935 msgid "download"
5936 msgstr ""
5937
5938 #. type: verbatim
5939 #: ../fish/guestfish-actions.pod:853
5940 #, no-wrap
5941 msgid ""
5942 " download remotefilename (filename|-)\n"
5943 "\n"
5944 msgstr ""
5945
5946 #. type: textblock
5947 #: ../fish/guestfish-actions.pod:855 ../fish/guestfish-actions.pod:868
5948 #: ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1322
5949 msgid ""
5950 "Download file C<remotefilename> and save it as C<filename> on the local "
5951 "machine."
5952 msgstr ""
5953
5954 #. type: textblock
5955 #: ../fish/guestfish-actions.pod:858 ../fish/guestfish-actions.pod:4803
5956 #: ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:7232
5957 msgid "C<filename> can also be a named pipe."
5958 msgstr ""
5959
5960 #. type: textblock
5961 #: ../fish/guestfish-actions.pod:860
5962 msgid "See also L</upload>, L</cat>."
5963 msgstr ""
5964
5965 #. type: =head2
5966 #: ../fish/guestfish-actions.pod:864
5967 msgid "download-offset"
5968 msgstr ""
5969
5970 #. type: verbatim
5971 #: ../fish/guestfish-actions.pod:866
5972 #, no-wrap
5973 msgid ""
5974 " download-offset remotefilename (filename|-) offset size\n"
5975 "\n"
5976 msgstr ""
5977
5978 #. type: textblock
5979 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1325
5980 msgid ""
5981 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5982 "region must be within the file or device)."
5983 msgstr ""
5984
5985 #. type: textblock
5986 #: ../fish/guestfish-actions.pod:874
5987 msgid ""
5988 "Note that there is no limit on the amount of data that can be downloaded "
5989 "with this call, unlike with L</pread>, and this call always reads the full "
5990 "amount unless an error occurs."
5991 msgstr ""
5992
5993 #. type: textblock
5994 #: ../fish/guestfish-actions.pod:879
5995 msgid "See also L</download>, L</pread>."
5996 msgstr ""
5997
5998 #. type: =head2
5999 #: ../fish/guestfish-actions.pod:883
6000 msgid "drop-caches"
6001 msgstr ""
6002
6003 #. type: verbatim
6004 #: ../fish/guestfish-actions.pod:885
6005 #, no-wrap
6006 msgid ""
6007 " drop-caches whattodrop\n"
6008 "\n"
6009 msgstr ""
6010
6011 #. type: textblock
6012 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1350
6013 msgid ""
6014 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6015 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6016 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6017 msgstr ""
6018
6019 #. type: textblock
6020 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6021 msgid "Setting C<whattodrop> to 3 should drop everything."
6022 msgstr ""
6023
6024 #. type: textblock
6025 #: ../fish/guestfish-actions.pod:894 ../src/guestfs-actions.pod:1357
6026 msgid ""
6027 "This automatically calls L<sync(2)> before the operation, so that the "
6028 "maximum guest memory is freed."
6029 msgstr ""
6030
6031 #. type: =head2
6032 #: ../fish/guestfish-actions.pod:897
6033 msgid "du"
6034 msgstr ""
6035
6036 #. type: verbatim
6037 #: ../fish/guestfish-actions.pod:899
6038 #, no-wrap
6039 msgid ""
6040 " du path\n"
6041 "\n"
6042 msgstr ""
6043
6044 #. type: textblock
6045 #: ../fish/guestfish-actions.pod:901 ../src/guestfs-actions.pod:1370
6046 msgid ""
6047 "This command runs the C<du -s> command to estimate file space usage for "
6048 "C<path>."
6049 msgstr ""
6050
6051 #. type: textblock
6052 #: ../fish/guestfish-actions.pod:904 ../src/guestfs-actions.pod:1373
6053 msgid ""
6054 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6055 "estimate includes the contents of the directory and all subdirectories "
6056 "(recursively)."
6057 msgstr ""
6058
6059 #. type: textblock
6060 #: ../fish/guestfish-actions.pod:908 ../src/guestfs-actions.pod:1377
6061 msgid ""
6062 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6063 msgstr ""
6064
6065 #. type: =head2
6066 #: ../fish/guestfish-actions.pod:911
6067 msgid "e2fsck-f"
6068 msgstr ""
6069
6070 #. type: verbatim
6071 #: ../fish/guestfish-actions.pod:913
6072 #, no-wrap
6073 msgid ""
6074 " e2fsck-f device\n"
6075 "\n"
6076 msgstr ""
6077
6078 #. type: textblock
6079 #: ../fish/guestfish-actions.pod:915 ../src/guestfs-actions.pod:1395
6080 msgid ""
6081 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6082 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6083 "clean (I<-f>)."
6084 msgstr ""
6085
6086 #. type: textblock
6087 #: ../fish/guestfish-actions.pod:919
6088 msgid ""
6089 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6090 "should use L</fsck>."
6091 msgstr ""
6092
6093 #. type: =head2
6094 #: ../fish/guestfish-actions.pod:922
6095 msgid "echo-daemon"
6096 msgstr ""
6097
6098 #. type: verbatim
6099 #: ../fish/guestfish-actions.pod:924
6100 #, no-wrap
6101 msgid ""
6102 " echo-daemon 'words ...'\n"
6103 "\n"
6104 msgstr ""
6105
6106 #. type: textblock
6107 #: ../fish/guestfish-actions.pod:926 ../src/guestfs-actions.pod:1412
6108 msgid ""
6109 "This command concatenates the list of C<words> passed with single spaces "
6110 "between them and returns the resulting string."
6111 msgstr ""
6112
6113 #. type: textblock
6114 #: ../fish/guestfish-actions.pod:929 ../src/guestfs-actions.pod:1415
6115 msgid "You can use this command to test the connection through to the daemon."
6116 msgstr ""
6117
6118 #. type: textblock
6119 #: ../fish/guestfish-actions.pod:931
6120 msgid "See also L</ping-daemon>."
6121 msgstr ""
6122
6123 #. type: =head2
6124 #: ../fish/guestfish-actions.pod:933
6125 msgid "egrep"
6126 msgstr ""
6127
6128 #. type: verbatim
6129 #: ../fish/guestfish-actions.pod:935
6130 #, no-wrap
6131 msgid ""
6132 " egrep regex path\n"
6133 "\n"
6134 msgstr ""
6135
6136 #. type: textblock
6137 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1431
6138 msgid ""
6139 "This calls the external C<egrep> program and returns the matching lines."
6140 msgstr ""
6141
6142 #. type: =head2
6143 #: ../fish/guestfish-actions.pod:943
6144 msgid "egrepi"
6145 msgstr ""
6146
6147 #. type: verbatim
6148 #: ../fish/guestfish-actions.pod:945
6149 #, no-wrap
6150 msgid ""
6151 " egrepi regex path\n"
6152 "\n"
6153 msgstr ""
6154
6155 #. type: textblock
6156 #: ../fish/guestfish-actions.pod:947 ../src/guestfs-actions.pod:1450
6157 msgid ""
6158 "This calls the external C<egrep -i> program and returns the matching lines."
6159 msgstr ""
6160
6161 #. type: =head2
6162 #: ../fish/guestfish-actions.pod:953
6163 msgid "equal"
6164 msgstr ""
6165
6166 #. type: verbatim
6167 #: ../fish/guestfish-actions.pod:955
6168 #, no-wrap
6169 msgid ""
6170 " equal file1 file2\n"
6171 "\n"
6172 msgstr ""
6173
6174 #. type: textblock
6175 #: ../fish/guestfish-actions.pod:957 ../src/guestfs-actions.pod:1469
6176 msgid ""
6177 "This compares the two files C<file1> and C<file2> and returns true if their "
6178 "content is exactly equal, or false otherwise."
6179 msgstr ""
6180
6181 #. type: textblock
6182 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1472
6183 msgid "The external L<cmp(1)> program is used for the comparison."
6184 msgstr ""
6185
6186 #. type: =head2
6187 #: ../fish/guestfish-actions.pod:962
6188 msgid "exists"
6189 msgstr ""
6190
6191 #. type: verbatim
6192 #: ../fish/guestfish-actions.pod:964
6193 #, no-wrap
6194 msgid ""
6195 " exists path\n"
6196 "\n"
6197 msgstr ""
6198
6199 #. type: textblock
6200 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1484
6201 msgid ""
6202 "This returns C<true> if and only if there is a file, directory (or anything) "
6203 "with the given C<path> name."
6204 msgstr ""
6205
6206 #. type: textblock
6207 #: ../fish/guestfish-actions.pod:969
6208 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6209 msgstr ""
6210
6211 #. type: =head2
6212 #: ../fish/guestfish-actions.pod:971
6213 msgid "fallocate"
6214 msgstr ""
6215
6216 #. type: verbatim
6217 #: ../fish/guestfish-actions.pod:973
6218 #, no-wrap
6219 msgid ""
6220 " fallocate path len\n"
6221 "\n"
6222 msgstr ""
6223
6224 #. type: textblock
6225 #: ../fish/guestfish-actions.pod:975 ../fish/guestfish-actions.pod:994
6226 #: ../src/guestfs-actions.pod:1507 ../src/guestfs-actions.pod:1526
6227 msgid ""
6228 "This command preallocates a file (containing zero bytes) named C<path> of "
6229 "size C<len> bytes.  If the file exists already, it is overwritten."
6230 msgstr ""
6231
6232 #. type: textblock
6233 #: ../fish/guestfish-actions.pod:979 ../src/guestfs-actions.pod:1511
6234 msgid ""
6235 "Do not confuse this with the guestfish-specific C<alloc> command which "
6236 "allocates a file in the host and attaches it as a device."
6237 msgstr ""
6238
6239 #. type: textblock
6240 #: ../fish/guestfish-actions.pod:983
6241 msgid ""
6242 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6243 "instead."
6244 msgstr ""
6245
6246 #. type: =head2
6247 #: ../fish/guestfish-actions.pod:990
6248 msgid "fallocate64"
6249 msgstr ""
6250
6251 #. type: verbatim
6252 #: ../fish/guestfish-actions.pod:992
6253 #, no-wrap
6254 msgid ""
6255 " fallocate64 path len\n"
6256 "\n"
6257 msgstr ""
6258
6259 #. type: textblock
6260 #: ../fish/guestfish-actions.pod:998
6261 msgid ""
6262 "Note that this call allocates disk blocks for the file.  To create a sparse "
6263 "file use L</truncate-size> instead."
6264 msgstr ""
6265
6266 #. type: textblock
6267 #: ../fish/guestfish-actions.pod:1001
6268 msgid ""
6269 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6270 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6271 "maximum size of files created through that call to 1GB."
6272 msgstr ""
6273
6274 #. type: textblock
6275 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1538
6276 msgid ""
6277 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6278 "commands which create a file in the host and attach it as a device."
6279 msgstr ""
6280
6281 #. type: =head2
6282 #: ../fish/guestfish-actions.pod:1010
6283 msgid "fgrep"
6284 msgstr ""
6285
6286 #. type: verbatim
6287 #: ../fish/guestfish-actions.pod:1012
6288 #, no-wrap
6289 msgid ""
6290 " fgrep pattern path\n"
6291 "\n"
6292 msgstr ""
6293
6294 #. type: textblock
6295 #: ../fish/guestfish-actions.pod:1014 ../src/guestfs-actions.pod:1553
6296 msgid ""
6297 "This calls the external C<fgrep> program and returns the matching lines."
6298 msgstr ""
6299
6300 #. type: =head2
6301 #: ../fish/guestfish-actions.pod:1020
6302 msgid "fgrepi"
6303 msgstr ""
6304
6305 #. type: verbatim
6306 #: ../fish/guestfish-actions.pod:1022
6307 #, no-wrap
6308 msgid ""
6309 " fgrepi pattern path\n"
6310 "\n"
6311 msgstr ""
6312
6313 #. type: textblock
6314 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1572
6315 msgid ""
6316 "This calls the external C<fgrep -i> program and returns the matching lines."
6317 msgstr ""
6318
6319 #. type: =head2
6320 #: ../fish/guestfish-actions.pod:1030
6321 msgid "file"
6322 msgstr ""
6323
6324 #. type: verbatim
6325 #: ../fish/guestfish-actions.pod:1032
6326 #, no-wrap
6327 msgid ""
6328 " file path\n"
6329 "\n"
6330 msgstr ""
6331
6332 #. type: textblock
6333 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1590
6334 msgid ""
6335 "This call uses the standard L<file(1)> command to determine the type or "
6336 "contents of the file."
6337 msgstr ""
6338
6339 #. type: textblock
6340 #: ../fish/guestfish-actions.pod:1037 ../src/guestfs-actions.pod:1593
6341 msgid ""
6342 "This call will also transparently look inside various types of compressed "
6343 "file."
6344 msgstr ""
6345
6346 #. type: textblock
6347 #: ../fish/guestfish-actions.pod:1040 ../src/guestfs-actions.pod:1596
6348 msgid ""
6349 "The exact command which runs is C<file -zb path>.  Note in particular that "
6350 "the filename is not prepended to the output (the I<-b> option)."
6351 msgstr ""
6352
6353 #. type: textblock
6354 #: ../fish/guestfish-actions.pod:1044 ../src/guestfs-actions.pod:1600
6355 msgid ""
6356 "The output depends on the output of the underlying L<file(1)> command and it "
6357 "can change in future in ways beyond our control.  In other words, the output "
6358 "is not guaranteed by the ABI."
6359 msgstr ""
6360
6361 #. type: textblock
6362 #: ../fish/guestfish-actions.pod:1048
6363 msgid ""
6364 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6365 "(etc), L</is-zero>."
6366 msgstr ""
6367
6368 #. type: =head2
6369 #: ../fish/guestfish-actions.pod:1051
6370 msgid "file-architecture"
6371 msgstr ""
6372
6373 #. type: verbatim
6374 #: ../fish/guestfish-actions.pod:1053
6375 #, no-wrap
6376 msgid ""
6377 " file-architecture filename\n"
6378 "\n"
6379 msgstr ""
6380
6381 #. type: textblock
6382 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1618
6383 msgid ""
6384 "This detects the architecture of the binary C<filename>, and returns it if "
6385 "known."
6386 msgstr ""
6387
6388 #. type: textblock
6389 #: ../fish/guestfish-actions.pod:1058 ../src/guestfs-actions.pod:1621
6390 msgid "Currently defined architectures are:"
6391 msgstr ""
6392
6393 #. type: =item
6394 #: ../fish/guestfish-actions.pod:1062 ../src/guestfs-actions.pod:1625
6395 msgid "\"i386\""
6396 msgstr ""
6397
6398 #. type: textblock
6399 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1627
6400 msgid ""
6401 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6402 "irrespective of the precise processor requirements of the binary."
6403 msgstr ""
6404
6405 #. type: =item
6406 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6407 msgid "\"x86_64\""
6408 msgstr ""
6409
6410 #. type: textblock
6411 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6412 msgid "64 bit x86-64."
6413 msgstr ""
6414
6415 #. type: =item
6416 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1634
6417 msgid "\"sparc\""
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:1073 ../src/guestfs-actions.pod:1636
6422 msgid "32 bit SPARC."
6423 msgstr ""
6424
6425 #. type: =item
6426 #: ../fish/guestfish-actions.pod:1075 ../src/guestfs-actions.pod:1638
6427 msgid "\"sparc64\""
6428 msgstr ""
6429
6430 #. type: textblock
6431 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1640
6432 msgid "64 bit SPARC V9 and above."
6433 msgstr ""
6434
6435 #. type: =item
6436 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1642
6437 msgid "\"ia64\""
6438 msgstr ""
6439
6440 #. type: textblock
6441 #: ../fish/guestfish-actions.pod:1081 ../src/guestfs-actions.pod:1644
6442 msgid "Intel Itanium."
6443 msgstr ""
6444
6445 #. type: =item
6446 #: ../fish/guestfish-actions.pod:1083 ../src/guestfs-actions.pod:1646
6447 msgid "\"ppc\""
6448 msgstr ""
6449
6450 #. type: textblock
6451 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1648
6452 msgid "32 bit Power PC."
6453 msgstr ""
6454
6455 #. type: =item
6456 #: ../fish/guestfish-actions.pod:1087 ../src/guestfs-actions.pod:1650
6457 msgid "\"ppc64\""
6458 msgstr ""
6459
6460 #. type: textblock
6461 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1652
6462 msgid "64 bit Power PC."
6463 msgstr ""
6464
6465 #. type: textblock
6466 #: ../fish/guestfish-actions.pod:1093 ../src/guestfs-actions.pod:1656
6467 msgid "Libguestfs may return other architecture strings in future."
6468 msgstr ""
6469
6470 #. type: textblock
6471 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1658
6472 msgid "The function works on at least the following types of files:"
6473 msgstr ""
6474
6475 #. type: textblock
6476 #: ../fish/guestfish-actions.pod:1101 ../src/guestfs-actions.pod:1664
6477 msgid "many types of Un*x and Linux binary"
6478 msgstr ""
6479
6480 #. type: textblock
6481 #: ../fish/guestfish-actions.pod:1105 ../src/guestfs-actions.pod:1668
6482 msgid "many types of Un*x and Linux shared library"
6483 msgstr ""
6484
6485 #. type: textblock
6486 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1672
6487 msgid "Windows Win32 and Win64 binaries"
6488 msgstr ""
6489
6490 #. type: textblock
6491 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1676
6492 msgid "Windows Win32 and Win64 DLLs"
6493 msgstr ""
6494
6495 #. type: textblock
6496 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1678
6497 msgid "Win32 binaries and DLLs return C<i386>."
6498 msgstr ""
6499
6500 #. type: textblock
6501 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1680
6502 msgid "Win64 binaries and DLLs return C<x86_64>."
6503 msgstr ""
6504
6505 #. type: textblock
6506 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1684
6507 msgid "Linux kernel modules"
6508 msgstr ""
6509
6510 #. type: textblock
6511 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1688
6512 msgid "Linux new-style initrd images"
6513 msgstr ""
6514
6515 #. type: textblock
6516 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1692
6517 msgid "some non-x86 Linux vmlinuz kernels"
6518 msgstr ""
6519
6520 #. type: textblock
6521 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1696
6522 msgid "What it can't do currently:"
6523 msgstr ""
6524
6525 #. type: textblock
6526 #: ../fish/guestfish-actions.pod:1139 ../src/guestfs-actions.pod:1702
6527 msgid "static libraries (libfoo.a)"
6528 msgstr ""
6529
6530 #. type: textblock
6531 #: ../fish/guestfish-actions.pod:1143 ../src/guestfs-actions.pod:1706
6532 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6533 msgstr ""
6534
6535 #. type: textblock
6536 #: ../fish/guestfish-actions.pod:1147 ../src/guestfs-actions.pod:1710
6537 msgid "x86 Linux vmlinuz kernels"
6538 msgstr ""
6539
6540 #. type: textblock
6541 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1712
6542 msgid ""
6543 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6544 "compressed code, and are horribly hard to unpack.  If you want to find the "
6545 "architecture of a kernel, use the architecture of the associated initrd or "
6546 "kernel module(s) instead."
6547 msgstr ""
6548
6549 #. type: =head2
6550 #: ../fish/guestfish-actions.pod:1156
6551 msgid "filesize"
6552 msgstr ""
6553
6554 #. type: verbatim
6555 #: ../fish/guestfish-actions.pod:1158
6556 #, no-wrap
6557 msgid ""
6558 " filesize file\n"
6559 "\n"
6560 msgstr ""
6561
6562 #. type: textblock
6563 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1730
6564 msgid "This command returns the size of C<file> in bytes."
6565 msgstr ""
6566
6567 #. type: textblock
6568 #: ../fish/guestfish-actions.pod:1162
6569 msgid ""
6570 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
6571 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
6572 msgstr ""
6573
6574 #. type: =head2
6575 #: ../fish/guestfish-actions.pod:1166
6576 msgid "fill"
6577 msgstr ""
6578
6579 #. type: verbatim
6580 #: ../fish/guestfish-actions.pod:1168
6581 #, no-wrap
6582 msgid ""
6583 " fill c len path\n"
6584 "\n"
6585 msgstr ""
6586
6587 #. type: textblock
6588 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1748
6589 msgid ""
6590 "This command creates a new file called C<path>.  The initial content of the "
6591 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6592 "[0..255]>."
6593 msgstr ""
6594
6595 #. type: textblock
6596 #: ../fish/guestfish-actions.pod:1174
6597 msgid ""
6598 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6599 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6600 "L</fill-pattern>."
6601 msgstr ""
6602
6603 #. type: =head2
6604 #: ../fish/guestfish-actions.pod:1179
6605 msgid "fill-pattern"
6606 msgstr ""
6607
6608 #. type: verbatim
6609 #: ../fish/guestfish-actions.pod:1181
6610 #, no-wrap
6611 msgid ""
6612 " fill-pattern pattern len path\n"
6613 "\n"
6614 msgstr ""
6615
6616 #. type: textblock
6617 #: ../fish/guestfish-actions.pod:1183
6618 msgid ""
6619 "This function is like L</fill> except that it creates a new file of length "
6620 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6621 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6622 "bytes."
6623 msgstr ""
6624
6625 #. type: =head2
6626 #: ../fish/guestfish-actions.pod:1188
6627 msgid "find"
6628 msgstr ""
6629
6630 #. type: verbatim
6631 #: ../fish/guestfish-actions.pod:1190
6632 #, no-wrap
6633 msgid ""
6634 " find directory\n"
6635 "\n"
6636 msgstr ""
6637
6638 #. type: textblock
6639 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1794
6640 msgid ""
6641 "This command lists out all files and directories, recursively, starting at "
6642 "C<directory>.  It is essentially equivalent to running the shell command "
6643 "C<find directory -print> but some post-processing happens on the output, "
6644 "described below."
6645 msgstr ""
6646
6647 #. type: textblock
6648 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
6649 msgid ""
6650 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6651 "structure was:"
6652 msgstr ""
6653
6654 #. type: verbatim
6655 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1802
6656 #, no-wrap
6657 msgid ""
6658 " /tmp/a\n"
6659 " /tmp/b\n"
6660 " /tmp/c/d\n"
6661 "\n"
6662 msgstr ""
6663
6664 #. type: textblock
6665 #: ../fish/guestfish-actions.pod:1204
6666 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6667 msgstr ""
6668
6669 #. type: verbatim
6670 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:1809
6671 #, no-wrap
6672 msgid ""
6673 " a\n"
6674 " b\n"
6675 " c\n"
6676 " c/d\n"
6677 "\n"
6678 msgstr ""
6679
6680 #. type: textblock
6681 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
6682 msgid "If C<directory> is not a directory, then this command returns an error."
6683 msgstr ""
6684
6685 #. type: textblock
6686 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1817
6687 msgid "The returned list is sorted."
6688 msgstr ""
6689
6690 #. type: textblock
6691 #: ../fish/guestfish-actions.pod:1217
6692 msgid "See also L</find0>."
6693 msgstr ""
6694
6695 #. type: =head2
6696 #: ../fish/guestfish-actions.pod:1222
6697 msgid "find0"
6698 msgstr ""
6699
6700 #. type: verbatim
6701 #: ../fish/guestfish-actions.pod:1224
6702 #, no-wrap
6703 msgid ""
6704 " find0 directory (files|-)\n"
6705 "\n"
6706 msgstr ""
6707
6708 #. type: textblock
6709 #: ../fish/guestfish-actions.pod:1226 ../src/guestfs-actions.pod:1837
6710 msgid ""
6711 "This command lists out all files and directories, recursively, starting at "
6712 "C<directory>, placing the resulting list in the external file called "
6713 "C<files>."
6714 msgstr ""
6715
6716 #. type: textblock
6717 #: ../fish/guestfish-actions.pod:1230
6718 msgid ""
6719 "This command works the same way as L</find> with the following exceptions:"
6720 msgstr ""
6721
6722 #. type: textblock
6723 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1848
6724 msgid "The resulting list is written to an external file."
6725 msgstr ""
6726
6727 #. type: textblock
6728 #: ../fish/guestfish-actions.pod:1241 ../src/guestfs-actions.pod:1852
6729 msgid ""
6730 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6731 "L<find(1)> option I<-print0>."
6732 msgstr ""
6733
6734 #. type: textblock
6735 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
6736 msgid "This command is not limited in the number of names that it can return."
6737 msgstr ""
6738
6739 #. type: textblock
6740 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
6741 msgid "The result list is not sorted."
6742 msgstr ""
6743
6744 #. type: =head2
6745 #: ../fish/guestfish-actions.pod:1257
6746 msgid "findfs-label"
6747 msgstr ""
6748
6749 #. type: verbatim
6750 #: ../fish/guestfish-actions.pod:1259
6751 #, no-wrap
6752 msgid ""
6753 " findfs-label label\n"
6754 "\n"
6755 msgstr ""
6756
6757 #. type: textblock
6758 #: ../fish/guestfish-actions.pod:1261 ../src/guestfs-actions.pod:1876
6759 msgid ""
6760 "This command searches the filesystems and returns the one which has the "
6761 "given label.  An error is returned if no such filesystem can be found."
6762 msgstr ""
6763
6764 #. type: textblock
6765 #: ../fish/guestfish-actions.pod:1265
6766 msgid "To find the label of a filesystem, use L</vfs-label>."
6767 msgstr ""
6768
6769 #. type: =head2
6770 #: ../fish/guestfish-actions.pod:1267
6771 msgid "findfs-uuid"
6772 msgstr ""
6773
6774 #. type: verbatim
6775 #: ../fish/guestfish-actions.pod:1269
6776 #, no-wrap
6777 msgid ""
6778 " findfs-uuid uuid\n"
6779 "\n"
6780 msgstr ""
6781
6782 #. type: textblock
6783 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1893
6784 msgid ""
6785 "This command searches the filesystems and returns the one which has the "
6786 "given UUID.  An error is returned if no such filesystem can be found."
6787 msgstr ""
6788
6789 #. type: textblock
6790 #: ../fish/guestfish-actions.pod:1275
6791 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
6792 msgstr ""
6793
6794 #. type: =head2
6795 #: ../fish/guestfish-actions.pod:1277
6796 msgid "fsck"
6797 msgstr ""
6798
6799 #. type: verbatim
6800 #: ../fish/guestfish-actions.pod:1279
6801 #, no-wrap
6802 msgid ""
6803 " fsck fstype device\n"
6804 "\n"
6805 msgstr ""
6806
6807 #. type: textblock
6808 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1911
6809 msgid ""
6810 "This runs the filesystem checker (fsck) on C<device> which should have "
6811 "filesystem type C<fstype>."
6812 msgstr ""
6813
6814 #. type: textblock
6815 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:1914
6816 msgid ""
6817 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6818 "codes from C<fsck>."
6819 msgstr ""
6820
6821 #. type: textblock
6822 #: ../fish/guestfish-actions.pod:1293 ../src/guestfs-actions.pod:1923
6823 msgid "Multiple status codes can be summed together."
6824 msgstr ""
6825
6826 #. type: textblock
6827 #: ../fish/guestfish-actions.pod:1297 ../src/guestfs-actions.pod:1927
6828 msgid ""
6829 "A non-zero return code can mean \"success\", for example if errors have been "
6830 "corrected on the filesystem."
6831 msgstr ""
6832
6833 #. type: textblock
6834 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
6835 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6836 msgstr ""
6837
6838 #. type: textblock
6839 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
6840 msgid ""
6841 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6842 msgstr ""
6843
6844 #. type: =head2
6845 #: ../fish/guestfish-actions.pod:1309
6846 msgid "get-append"
6847 msgstr ""
6848
6849 #. type: verbatim
6850 #: ../fish/guestfish-actions.pod:1311
6851 #, no-wrap
6852 msgid ""
6853 " get-append\n"
6854 "\n"
6855 msgstr ""
6856
6857 #. type: textblock
6858 #: ../fish/guestfish-actions.pod:1313 ../src/guestfs-actions.pod:1948
6859 msgid ""
6860 "Return the additional kernel options which are added to the guest kernel "
6861 "command line."
6862 msgstr ""
6863
6864 #. type: textblock
6865 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:1951
6866 msgid "If C<NULL> then no options are added."
6867 msgstr ""
6868
6869 #. type: =head2
6870 #: ../fish/guestfish-actions.pod:1318
6871 msgid "get-attach-method"
6872 msgstr ""
6873
6874 #. type: verbatim
6875 #: ../fish/guestfish-actions.pod:1320
6876 #, no-wrap
6877 msgid ""
6878 " get-attach-method\n"
6879 "\n"
6880 msgstr ""
6881
6882 #. type: textblock
6883 #: ../fish/guestfish-actions.pod:1322
6884 msgid "Return the current attach method.  See L</set-attach-method>."
6885 msgstr ""
6886
6887 #. type: =head2
6888 #: ../fish/guestfish-actions.pod:1324
6889 msgid "get-autosync"
6890 msgstr ""
6891
6892 #. type: verbatim
6893 #: ../fish/guestfish-actions.pod:1326
6894 #, no-wrap
6895 msgid ""
6896 " get-autosync\n"
6897 "\n"
6898 msgstr ""
6899
6900 #. type: textblock
6901 #: ../fish/guestfish-actions.pod:1328 ../src/guestfs-actions.pod:1976
6902 msgid "Get the autosync flag."
6903 msgstr ""
6904
6905 #. type: =head2
6906 #: ../fish/guestfish-actions.pod:1330
6907 msgid "get-direct"
6908 msgstr ""
6909
6910 #. type: verbatim
6911 #: ../fish/guestfish-actions.pod:1332
6912 #, no-wrap
6913 msgid ""
6914 " get-direct\n"
6915 "\n"
6916 msgstr ""
6917
6918 #. type: textblock
6919 #: ../fish/guestfish-actions.pod:1334 ../src/guestfs-actions.pod:1987
6920 msgid "Return the direct appliance mode flag."
6921 msgstr ""
6922
6923 #. type: =head2
6924 #: ../fish/guestfish-actions.pod:1336
6925 msgid "get-e2label"
6926 msgstr ""
6927
6928 #. type: verbatim
6929 #: ../fish/guestfish-actions.pod:1338
6930 #, no-wrap
6931 msgid ""
6932 " get-e2label device\n"
6933 "\n"
6934 msgstr ""
6935
6936 #. type: textblock
6937 #: ../fish/guestfish-actions.pod:1340 ../src/guestfs-actions.pod:2006
6938 msgid ""
6939 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6940 msgstr ""
6941
6942 #. type: textblock
6943 #: ../fish/guestfish-actions.pod:1343
6944 msgid ""
6945 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
6946 "instead."
6947 msgstr ""
6948
6949 #. type: =head2
6950 #: ../fish/guestfish-actions.pod:1350
6951 msgid "get-e2uuid"
6952 msgstr ""
6953
6954 #. type: verbatim
6955 #: ../fish/guestfish-actions.pod:1352
6956 #, no-wrap
6957 msgid ""
6958 " get-e2uuid device\n"
6959 "\n"
6960 msgstr ""
6961
6962 #. type: textblock
6963 #: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod:2027
6964 msgid ""
6965 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6966 msgstr ""
6967
6968 #. type: textblock
6969 #: ../fish/guestfish-actions.pod:1357
6970 msgid ""
6971 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
6972 "instead."
6973 msgstr ""
6974
6975 #. type: =head2
6976 #: ../fish/guestfish-actions.pod:1364
6977 msgid "get-memsize"
6978 msgstr ""
6979
6980 #. type: verbatim
6981 #: ../fish/guestfish-actions.pod:1366
6982 #, no-wrap
6983 msgid ""
6984 " get-memsize\n"
6985 "\n"
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2040
6990 msgid ""
6991 "This gets the memory size in megabytes allocated to the qemu subprocess."
6992 msgstr ""
6993
6994 #. type: textblock
6995 #: ../fish/guestfish-actions.pod:1371
6996 msgid ""
6997 "If L</set-memsize> was not called on this handle, and if "
6998 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6999 "value for memsize."
7000 msgstr ""
7001
7002 #. type: textblock
7003 #: ../fish/guestfish-actions.pod:1375 ../fish/guestfish-actions.pod:1432
7004 #: ../fish/guestfish-actions.pod:4163 ../fish/guestfish-actions.pod:4265
7005 #: ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2139
7006 #: ../src/guestfs-actions.pod:6293 ../src/guestfs-actions.pod:6419
7007 msgid ""
7008 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7009 msgstr ""
7010
7011 #. type: =head2
7012 #: ../fish/guestfish-actions.pod:1378
7013 msgid "get-network"
7014 msgstr ""
7015
7016 #. type: verbatim
7017 #: ../fish/guestfish-actions.pod:1380
7018 #, no-wrap
7019 msgid ""
7020 " get-network\n"
7021 "\n"
7022 msgstr ""
7023
7024 #. type: textblock
7025 #: ../fish/guestfish-actions.pod:1382 ../src/guestfs-actions.pod:2059
7026 msgid "This returns the enable network flag."
7027 msgstr ""
7028
7029 #. type: =head2
7030 #: ../fish/guestfish-actions.pod:1384
7031 msgid "get-path"
7032 msgstr ""
7033
7034 #. type: verbatim
7035 #: ../fish/guestfish-actions.pod:1386
7036 #, no-wrap
7037 msgid ""
7038 " get-path\n"
7039 "\n"
7040 msgstr ""
7041
7042 #. type: textblock
7043 #: ../fish/guestfish-actions.pod:1388 ../src/guestfs-actions.pod:2070
7044 msgid "Return the current search path."
7045 msgstr ""
7046
7047 #. type: textblock
7048 #: ../fish/guestfish-actions.pod:1390 ../src/guestfs-actions.pod:2072
7049 msgid ""
7050 "This is always non-NULL.  If it wasn't set already, then this will return "
7051 "the default path."
7052 msgstr ""
7053
7054 #. type: =head2
7055 #: ../fish/guestfish-actions.pod:1393
7056 msgid "get-pgroup"
7057 msgstr ""
7058
7059 #. type: verbatim
7060 #: ../fish/guestfish-actions.pod:1395
7061 #, no-wrap
7062 msgid ""
7063 " get-pgroup\n"
7064 "\n"
7065 msgstr ""
7066
7067 #. type: textblock
7068 #: ../fish/guestfish-actions.pod:1397 ../src/guestfs-actions.pod:2085
7069 msgid "This returns the process group flag."
7070 msgstr ""
7071
7072 #. type: =head2
7073 #: ../fish/guestfish-actions.pod:1399
7074 msgid "get-pid"
7075 msgstr ""
7076
7077 #. type: =head2
7078 #: ../fish/guestfish-actions.pod:1401
7079 msgid "pid"
7080 msgstr ""
7081
7082 #. type: verbatim
7083 #: ../fish/guestfish-actions.pod:1403
7084 #, no-wrap
7085 msgid ""
7086 " get-pid\n"
7087 "\n"
7088 msgstr ""
7089
7090 #. type: textblock
7091 #: ../fish/guestfish-actions.pod:1405 ../src/guestfs-actions.pod:2096
7092 msgid ""
7093 "Return the process ID of the qemu subprocess.  If there is no qemu "
7094 "subprocess, then this will return an error."
7095 msgstr ""
7096
7097 #. type: textblock
7098 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2099
7099 msgid "This is an internal call used for debugging and testing."
7100 msgstr ""
7101
7102 #. type: =head2
7103 #: ../fish/guestfish-actions.pod:1410
7104 msgid "get-qemu"
7105 msgstr ""
7106
7107 #. type: verbatim
7108 #: ../fish/guestfish-actions.pod:1412
7109 #, no-wrap
7110 msgid ""
7111 " get-qemu\n"
7112 "\n"
7113 msgstr ""
7114
7115 #. type: textblock
7116 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2110
7117 msgid "Return the current qemu binary."
7118 msgstr ""
7119
7120 #. type: textblock
7121 #: ../fish/guestfish-actions.pod:1416 ../src/guestfs-actions.pod:2112
7122 msgid ""
7123 "This is always non-NULL.  If it wasn't set already, then this will return "
7124 "the default qemu binary name."
7125 msgstr ""
7126
7127 #. type: =head2
7128 #: ../fish/guestfish-actions.pod:1419
7129 msgid "get-recovery-proc"
7130 msgstr ""
7131
7132 #. type: verbatim
7133 #: ../fish/guestfish-actions.pod:1421
7134 #, no-wrap
7135 msgid ""
7136 " get-recovery-proc\n"
7137 "\n"
7138 msgstr ""
7139
7140 #. type: textblock
7141 #: ../fish/guestfish-actions.pod:1423 ../src/guestfs-actions.pod:2125
7142 msgid "Return the recovery process enabled flag."
7143 msgstr ""
7144
7145 #. type: =head2
7146 #: ../fish/guestfish-actions.pod:1425
7147 msgid "get-selinux"
7148 msgstr ""
7149
7150 #. type: verbatim
7151 #: ../fish/guestfish-actions.pod:1427
7152 #, no-wrap
7153 msgid ""
7154 " get-selinux\n"
7155 "\n"
7156 msgstr ""
7157
7158 #. type: textblock
7159 #: ../fish/guestfish-actions.pod:1429
7160 msgid ""
7161 "This returns the current setting of the selinux flag which is passed to the "
7162 "appliance at boot time.  See L</set-selinux>."
7163 msgstr ""
7164
7165 #. type: =head2
7166 #: ../fish/guestfish-actions.pod:1435
7167 msgid "get-state"
7168 msgstr ""
7169
7170 #. type: verbatim
7171 #: ../fish/guestfish-actions.pod:1437
7172 #, no-wrap
7173 msgid ""
7174 " get-state\n"
7175 "\n"
7176 msgstr ""
7177
7178 #. type: textblock
7179 #: ../fish/guestfish-actions.pod:1439 ../src/guestfs-actions.pod:2151
7180 msgid ""
7181 "This returns the current state as an opaque integer.  This is only useful "
7182 "for printing debug and internal error messages."
7183 msgstr ""
7184
7185 #. type: textblock
7186 #: ../fish/guestfish-actions.pod:1442 ../fish/guestfish-actions.pod:2362
7187 #: ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2418
7188 #: ../fish/guestfish-actions.pod:2434 ../src/guestfs-actions.pod:2154
7189 #: ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3463
7190 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3551
7191 msgid "For more information on states, see L<guestfs(3)>."
7192 msgstr ""
7193
7194 #. type: =head2
7195 #: ../fish/guestfish-actions.pod:1444
7196 msgid "get-trace"
7197 msgstr ""
7198
7199 #. type: verbatim
7200 #: ../fish/guestfish-actions.pod:1446
7201 #, no-wrap
7202 msgid ""
7203 " get-trace\n"
7204 "\n"
7205 msgstr ""
7206
7207 #. type: textblock
7208 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2165
7209 msgid "Return the command trace flag."
7210 msgstr ""
7211
7212 #. type: =head2
7213 #: ../fish/guestfish-actions.pod:1450
7214 msgid "get-umask"
7215 msgstr ""
7216
7217 #. type: verbatim
7218 #: ../fish/guestfish-actions.pod:1452
7219 #, no-wrap
7220 msgid ""
7221 " get-umask\n"
7222 "\n"
7223 msgstr ""
7224
7225 #. type: textblock
7226 #: ../fish/guestfish-actions.pod:1454
7227 msgid ""
7228 "Return the current umask.  By default the umask is C<022> unless it has been "
7229 "set by calling L</umask>."
7230 msgstr ""
7231
7232 #. type: =head2
7233 #: ../fish/guestfish-actions.pod:1457
7234 msgid "get-verbose"
7235 msgstr ""
7236
7237 #. type: verbatim
7238 #: ../fish/guestfish-actions.pod:1459
7239 #, no-wrap
7240 msgid ""
7241 " get-verbose\n"
7242 "\n"
7243 msgstr ""
7244
7245 #. type: textblock
7246 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2188
7247 msgid "This returns the verbose messages flag."
7248 msgstr ""
7249
7250 #. type: =head2
7251 #: ../fish/guestfish-actions.pod:1463
7252 msgid "getcon"
7253 msgstr ""
7254
7255 #. type: verbatim
7256 #: ../fish/guestfish-actions.pod:1465
7257 #, no-wrap
7258 msgid ""
7259 " getcon\n"
7260 "\n"
7261 msgstr ""
7262
7263 #. type: textblock
7264 #: ../fish/guestfish-actions.pod:1467 ../src/guestfs-actions.pod:2199
7265 msgid "This gets the SELinux security context of the daemon."
7266 msgstr ""
7267
7268 #. type: textblock
7269 #: ../fish/guestfish-actions.pod:1469
7270 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7271 msgstr ""
7272
7273 #. type: =head2
7274 #: ../fish/guestfish-actions.pod:1472
7275 msgid "getxattr"
7276 msgstr ""
7277
7278 #. type: verbatim
7279 #: ../fish/guestfish-actions.pod:1474
7280 #, no-wrap
7281 msgid ""
7282 " getxattr path name\n"
7283 "\n"
7284 msgstr ""
7285
7286 #. type: textblock
7287 #: ../fish/guestfish-actions.pod:1476
7288 msgid ""
7289 "Get a single extended attribute from file C<path> named C<name>.  This call "
7290 "follows symlinks.  If you want to lookup an extended attribute for the "
7291 "symlink itself, use L</lgetxattr>."
7292 msgstr ""
7293
7294 #. type: textblock
7295 #: ../fish/guestfish-actions.pod:1480 ../fish/guestfish-actions.pod:2507
7296 msgid ""
7297 "Normally it is better to get all extended attributes from a file in one go "
7298 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7299 "buggy and do not provide a way to list out attributes.  For these "
7300 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7301 "attributes you want in advance and call this function."
7302 msgstr ""
7303
7304 #. type: textblock
7305 #: ../fish/guestfish-actions.pod:1487 ../fish/guestfish-actions.pod:2514
7306 #: ../src/guestfs-actions.pod:2228 ../src/guestfs-actions.pod:3684
7307 msgid ""
7308 "Extended attribute values are blobs of binary data.  If there is no extended "
7309 "attribute named C<name>, this returns an error."
7310 msgstr ""
7311
7312 #. type: textblock
7313 #: ../fish/guestfish-actions.pod:1490
7314 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7315 msgstr ""
7316
7317 #. type: =head2
7318 #: ../fish/guestfish-actions.pod:1492
7319 msgid "getxattrs"
7320 msgstr ""
7321
7322 #. type: verbatim
7323 #: ../fish/guestfish-actions.pod:1494
7324 #, no-wrap
7325 msgid ""
7326 " getxattrs path\n"
7327 "\n"
7328 msgstr ""
7329
7330 #. type: textblock
7331 #: ../fish/guestfish-actions.pod:1496 ../src/guestfs-actions.pod:2245
7332 msgid ""
7333 "This call lists the extended attributes of the file or directory C<path>."
7334 msgstr ""
7335
7336 #. type: textblock
7337 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2248
7338 msgid ""
7339 "At the system call level, this is a combination of the L<listxattr(2)> and "
7340 "L<getxattr(2)> calls."
7341 msgstr ""
7342
7343 #. type: textblock
7344 #: ../fish/guestfish-actions.pod:1502
7345 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7346 msgstr ""
7347
7348 #. type: =head2
7349 #: ../fish/guestfish-actions.pod:1504
7350 msgid "glob-expand"
7351 msgstr ""
7352
7353 #. type: verbatim
7354 #: ../fish/guestfish-actions.pod:1506
7355 #, no-wrap
7356 msgid ""
7357 " glob-expand pattern\n"
7358 "\n"
7359 msgstr ""
7360
7361 #. type: textblock
7362 #: ../fish/guestfish-actions.pod:1508 ../src/guestfs-actions.pod:2265
7363 msgid ""
7364 "This command searches for all the pathnames matching C<pattern> according to "
7365 "the wildcard expansion rules used by the shell."
7366 msgstr ""
7367
7368 #. type: textblock
7369 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2269
7370 msgid ""
7371 "If no paths match, then this returns an empty list (note: not an error)."
7372 msgstr ""
7373
7374 #. type: textblock
7375 #: ../fish/guestfish-actions.pod:1515 ../src/guestfs-actions.pod:2272
7376 msgid ""
7377 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7378 "GLOB_BRACE>.  See that manual page for more details."
7379 msgstr ""
7380
7381 #. type: =head2
7382 #: ../fish/guestfish-actions.pod:1519
7383 msgid "grep"
7384 msgstr ""
7385
7386 #. type: verbatim
7387 #: ../fish/guestfish-actions.pod:1521
7388 #, no-wrap
7389 msgid ""
7390 " grep regex path\n"
7391 "\n"
7392 msgstr ""
7393
7394 #. type: textblock
7395 #: ../fish/guestfish-actions.pod:1523 ../src/guestfs-actions.pod:2289
7396 msgid "This calls the external C<grep> program and returns the matching lines."
7397 msgstr ""
7398
7399 #. type: =head2
7400 #: ../fish/guestfish-actions.pod:1529
7401 msgid "grepi"
7402 msgstr ""
7403
7404 #. type: verbatim
7405 #: ../fish/guestfish-actions.pod:1531
7406 #, no-wrap
7407 msgid ""
7408 " grepi regex path\n"
7409 "\n"
7410 msgstr ""
7411
7412 #. type: textblock
7413 #: ../fish/guestfish-actions.pod:1533 ../src/guestfs-actions.pod:2308
7414 msgid ""
7415 "This calls the external C<grep -i> program and returns the matching lines."
7416 msgstr ""
7417
7418 #. type: =head2
7419 #: ../fish/guestfish-actions.pod:1539
7420 msgid "grub-install"
7421 msgstr ""
7422
7423 #. type: verbatim
7424 #: ../fish/guestfish-actions.pod:1541
7425 #, no-wrap
7426 msgid ""
7427 " grub-install root device\n"
7428 "\n"
7429 msgstr ""
7430
7431 #. type: textblock
7432 #: ../fish/guestfish-actions.pod:1543 ../src/guestfs-actions.pod:2327
7433 msgid ""
7434 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7435 "the root directory being C<root>."
7436 msgstr ""
7437
7438 #. type: textblock
7439 #: ../fish/guestfish-actions.pod:1546 ../src/guestfs-actions.pod:2330
7440 msgid ""
7441 "Note: If grub-install reports the error \"No suitable drive was found in the "
7442 "generated device map.\" it may be that you need to create a C</boot/grub/"
7443 "device.map> file first that contains the mapping between grub device names "
7444 "and Linux device names.  It is usually sufficient to create a file "
7445 "containing:"
7446 msgstr ""
7447
7448 #. type: verbatim
7449 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2337
7450 #, no-wrap
7451 msgid ""
7452 " (hd0) /dev/vda\n"
7453 "\n"
7454 msgstr ""
7455
7456 #. type: textblock
7457 #: ../fish/guestfish-actions.pod:1555 ../src/guestfs-actions.pod:2339
7458 msgid "replacing C</dev/vda> with the name of the installation device."
7459 msgstr ""
7460
7461 #. type: =head2
7462 #: ../fish/guestfish-actions.pod:1557
7463 msgid "head"
7464 msgstr ""
7465
7466 #. type: verbatim
7467 #: ../fish/guestfish-actions.pod:1559
7468 #, no-wrap
7469 msgid ""
7470 " head path\n"
7471 "\n"
7472 msgstr ""
7473
7474 #. type: textblock
7475 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2351
7476 msgid ""
7477 "This command returns up to the first 10 lines of a file as a list of strings."
7478 msgstr ""
7479
7480 #. type: =head2
7481 #: ../fish/guestfish-actions.pod:1567
7482 msgid "head-n"
7483 msgstr ""
7484
7485 #. type: verbatim
7486 #: ../fish/guestfish-actions.pod:1569
7487 #, no-wrap
7488 msgid ""
7489 " head-n nrlines path\n"
7490 "\n"
7491 msgstr ""
7492
7493 #. type: textblock
7494 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2370
7495 msgid ""
7496 "If the parameter C<nrlines> is a positive number, this returns the first "
7497 "C<nrlines> lines of the file C<path>."
7498 msgstr ""
7499
7500 #. type: textblock
7501 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2373
7502 msgid ""
7503 "If the parameter C<nrlines> is a negative number, this returns lines from "
7504 "the file C<path>, excluding the last C<nrlines> lines."
7505 msgstr ""
7506
7507 #. type: textblock
7508 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:4643
7509 #: ../src/guestfs-actions.pod:2376 ../src/guestfs-actions.pod:6991
7510 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7511 msgstr ""
7512
7513 #. type: =head2
7514 #: ../fish/guestfish-actions.pod:1582
7515 msgid "hexdump"
7516 msgstr ""
7517
7518 #. type: verbatim
7519 #: ../fish/guestfish-actions.pod:1584
7520 #, no-wrap
7521 msgid ""
7522 " hexdump path\n"
7523 "\n"
7524 msgstr ""
7525
7526 #. type: textblock
7527 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2393
7528 msgid ""
7529 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7530 "readable, canonical hex dump of the file."
7531 msgstr ""
7532
7533 #. type: =head2
7534 #: ../fish/guestfish-actions.pod:1592
7535 msgid "initrd-cat"
7536 msgstr ""
7537
7538 #. type: verbatim
7539 #: ../fish/guestfish-actions.pod:1594
7540 #, no-wrap
7541 msgid ""
7542 " initrd-cat initrdpath filename\n"
7543 "\n"
7544 msgstr ""
7545
7546 #. type: textblock
7547 #: ../fish/guestfish-actions.pod:1596 ../src/guestfs-actions.pod:2412
7548 msgid ""
7549 "This command unpacks the file C<filename> from the initrd file called "
7550 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7551 "character."
7552 msgstr ""
7553
7554 #. type: textblock
7555 #: ../fish/guestfish-actions.pod:1600 ../src/guestfs-actions.pod:2416
7556 msgid ""
7557 "For example, in guestfish you could use the following command to examine the "
7558 "boot script (usually called C</init>)  contained in a Linux initrd or "
7559 "initramfs image:"
7560 msgstr ""
7561
7562 #. type: verbatim
7563 #: ../fish/guestfish-actions.pod:1604 ../src/guestfs-actions.pod:2420
7564 #, no-wrap
7565 msgid ""
7566 " initrd-cat /boot/initrd-<version>.img init\n"
7567 "\n"
7568 msgstr ""
7569
7570 #. type: textblock
7571 #: ../fish/guestfish-actions.pod:1606
7572 msgid "See also L</initrd-list>."
7573 msgstr ""
7574
7575 #. type: =head2
7576 #: ../fish/guestfish-actions.pod:1611
7577 msgid "initrd-list"
7578 msgstr ""
7579
7580 #. type: verbatim
7581 #: ../fish/guestfish-actions.pod:1613
7582 #, no-wrap
7583 msgid ""
7584 " initrd-list path\n"
7585 "\n"
7586 msgstr ""
7587
7588 #. type: textblock
7589 #: ../fish/guestfish-actions.pod:1615 ../src/guestfs-actions.pod:2439
7590 msgid "This command lists out files contained in an initrd."
7591 msgstr ""
7592
7593 #. type: textblock
7594 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2441
7595 msgid ""
7596 "The files are listed without any initial C</> character.  The files are "
7597 "listed in the order they appear (not necessarily alphabetical).  Directory "
7598 "names are listed as separate items."
7599 msgstr ""
7600
7601 #. type: textblock
7602 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2445
7603 msgid ""
7604 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7605 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7606 "files)."
7607 msgstr ""
7608
7609 #. type: =head2
7610 #: ../fish/guestfish-actions.pod:1625
7611 msgid "inotify-add-watch"
7612 msgstr ""
7613
7614 #. type: verbatim
7615 #: ../fish/guestfish-actions.pod:1627
7616 #, no-wrap
7617 msgid ""
7618 " inotify-add-watch path mask\n"
7619 "\n"
7620 msgstr ""
7621
7622 #. type: textblock
7623 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2462
7624 msgid "Watch C<path> for the events listed in C<mask>."
7625 msgstr ""
7626
7627 #. type: textblock
7628 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2464
7629 msgid ""
7630 "Note that if C<path> is a directory then events within that directory are "
7631 "watched, but this does I<not> happen recursively (in subdirectories)."
7632 msgstr ""
7633
7634 #. type: textblock
7635 #: ../fish/guestfish-actions.pod:1635 ../src/guestfs-actions.pod:2468
7636 msgid ""
7637 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7638 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7639 msgstr ""
7640
7641 #. type: =head2
7642 #: ../fish/guestfish-actions.pod:1639
7643 msgid "inotify-close"
7644 msgstr ""
7645
7646 #. type: verbatim
7647 #: ../fish/guestfish-actions.pod:1641
7648 #, no-wrap
7649 msgid ""
7650 " inotify-close\n"
7651 "\n"
7652 msgstr ""
7653
7654 #. type: textblock
7655 #: ../fish/guestfish-actions.pod:1643 ../src/guestfs-actions.pod:2481
7656 msgid ""
7657 "This closes the inotify handle which was previously opened by inotify_init.  "
7658 "It removes all watches, throws away any pending events, and deallocates all "
7659 "resources."
7660 msgstr ""
7661
7662 #. type: =head2
7663 #: ../fish/guestfish-actions.pod:1647
7664 msgid "inotify-files"
7665 msgstr ""
7666
7667 #. type: verbatim
7668 #: ../fish/guestfish-actions.pod:1649
7669 #, no-wrap
7670 msgid ""
7671 " inotify-files\n"
7672 "\n"
7673 msgstr ""
7674
7675 #. type: textblock
7676 #: ../fish/guestfish-actions.pod:1651
7677 msgid ""
7678 "This function is a helpful wrapper around L</inotify-read> which just "
7679 "returns a list of pathnames of objects that were touched.  The returned "
7680 "pathnames are sorted and deduplicated."
7681 msgstr ""
7682
7683 #. type: =head2
7684 #: ../fish/guestfish-actions.pod:1655
7685 msgid "inotify-init"
7686 msgstr ""
7687
7688 #. type: verbatim
7689 #: ../fish/guestfish-actions.pod:1657
7690 #, no-wrap
7691 msgid ""
7692 " inotify-init maxevents\n"
7693 "\n"
7694 msgstr ""
7695
7696 #. type: textblock
7697 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2510
7698 msgid ""
7699 "This command creates a new inotify handle.  The inotify subsystem can be "
7700 "used to notify events which happen to objects in the guest filesystem."
7701 msgstr ""
7702
7703 #. type: textblock
7704 #: ../fish/guestfish-actions.pod:1663
7705 msgid ""
7706 "C<maxevents> is the maximum number of events which will be queued up between "
7707 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
7708 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
7709 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
7710 "but records the fact that it threw them away by setting a flag "
7711 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
7712 msgstr ""
7713
7714 #. type: textblock
7715 #: ../fish/guestfish-actions.pod:1673
7716 msgid ""
7717 "Before any events are generated, you have to add some watches to the "
7718 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
7719 "L</inotify-watch-all>."
7720 msgstr ""
7721
7722 #. type: textblock
7723 #: ../fish/guestfish-actions.pod:1679
7724 msgid ""
7725 "Queued up events should be read periodically by calling L</inotify-read> (or "
7726 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
7727 "If you don't read the events out often enough then you risk the internal "
7728 "queue overflowing."
7729 msgstr ""
7730
7731 #. type: textblock
7732 #: ../fish/guestfish-actions.pod:1686
7733 msgid ""
7734 "The handle should be closed after use by calling L</inotify-close>.  This "
7735 "also removes any watches automatically."
7736 msgstr ""
7737
7738 #. type: textblock
7739 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2541
7740 msgid ""
7741 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7742 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7743 "that there is one global inotify handle per libguestfs instance."
7744 msgstr ""
7745
7746 #. type: =head2
7747 #: ../fish/guestfish-actions.pod:1695
7748 msgid "inotify-read"
7749 msgstr ""
7750
7751 #. type: verbatim
7752 #: ../fish/guestfish-actions.pod:1697
7753 #, no-wrap
7754 msgid ""
7755 " inotify-read\n"
7756 "\n"
7757 msgstr ""
7758
7759 #. type: textblock
7760 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2555
7761 msgid ""
7762 "Return the complete queue of events that have happened since the previous "
7763 "read call."
7764 msgstr ""
7765
7766 #. type: textblock
7767 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2558
7768 msgid "If no events have happened, this returns an empty list."
7769 msgstr ""
7770
7771 #. type: textblock
7772 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
7773 msgid ""
7774 "I<Note>: In order to make sure that all events have been read, you must call "
7775 "this function repeatedly until it returns an empty list.  The reason is that "
7776 "the call will read events up to the maximum appliance-to-host message size "
7777 "and leave remaining events in the queue."
7778 msgstr ""
7779
7780 #. type: =head2
7781 #: ../fish/guestfish-actions.pod:1710
7782 msgid "inotify-rm-watch"
7783 msgstr ""
7784
7785 #. type: verbatim
7786 #: ../fish/guestfish-actions.pod:1712
7787 #, no-wrap
7788 msgid ""
7789 " inotify-rm-watch wd\n"
7790 "\n"
7791 msgstr ""
7792
7793 #. type: textblock
7794 #: ../fish/guestfish-actions.pod:1714
7795 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
7796 msgstr ""
7797
7798 #. type: =head2
7799 #: ../fish/guestfish-actions.pod:1717
7800 msgid "inspect-get-arch"
7801 msgstr ""
7802
7803 #. type: verbatim
7804 #: ../fish/guestfish-actions.pod:1719
7805 #, no-wrap
7806 msgid ""
7807 " inspect-get-arch root\n"
7808 "\n"
7809 msgstr ""
7810
7811 #. type: textblock
7812 #: ../fish/guestfish-actions.pod:1721
7813 msgid ""
7814 "This returns the architecture of the inspected operating system.  The "
7815 "possible return values are listed under L</file-architecture>."
7816 msgstr ""
7817
7818 #. type: textblock
7819 #: ../fish/guestfish-actions.pod:1725 ../src/guestfs-actions.pod:2595
7820 msgid ""
7821 "If the architecture could not be determined, then the string C<unknown> is "
7822 "returned."
7823 msgstr ""
7824
7825 #. type: textblock
7826 #: ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1811
7827 #: ../fish/guestfish-actions.pod:1890 ../fish/guestfish-actions.pod:1902
7828 #: ../fish/guestfish-actions.pod:1986 ../fish/guestfish-actions.pod:2047
7829 #: ../fish/guestfish-actions.pod:2068 ../fish/guestfish-actions.pod:2082
7830 #: ../fish/guestfish-actions.pod:2122 ../fish/guestfish-actions.pod:2154
7831 #: ../fish/guestfish-actions.pod:2167 ../fish/guestfish-actions.pod:2180
7832 #: ../fish/guestfish-actions.pod:2190 ../fish/guestfish-actions.pod:2200
7833 #: ../fish/guestfish-actions.pod:2212 ../fish/guestfish-actions.pod:2308
7834 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:2598
7835 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:2792
7836 #: ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:2942
7837 #: ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:3053
7838 #: ../src/guestfs-actions.pod:3074 ../src/guestfs-actions.pod:3127
7839 #: ../src/guestfs-actions.pod:3167 ../src/guestfs-actions.pod:3187
7840 #: ../src/guestfs-actions.pod:3207 ../src/guestfs-actions.pod:3224
7841 #: ../src/guestfs-actions.pod:3240 ../src/guestfs-actions.pod:3258
7842 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3401
7843 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7844 msgstr ""
7845
7846 #. type: =head2
7847 #: ../fish/guestfish-actions.pod:1730
7848 msgid "inspect-get-distro"
7849 msgstr ""
7850
7851 #. type: verbatim
7852 #: ../fish/guestfish-actions.pod:1732
7853 #, no-wrap
7854 msgid ""
7855 " inspect-get-distro root\n"
7856 "\n"
7857 msgstr ""
7858
7859 #. type: textblock
7860 #: ../fish/guestfish-actions.pod:1734 ../src/guestfs-actions.pod:2611
7861 msgid ""
7862 "This returns the distro (distribution) of the inspected operating system."
7863 msgstr ""
7864
7865 #. type: textblock
7866 #: ../fish/guestfish-actions.pod:1737 ../src/guestfs-actions.pod:2614
7867 msgid "Currently defined distros are:"
7868 msgstr ""
7869
7870 #. type: =item
7871 #: ../fish/guestfish-actions.pod:1741 ../src/guestfs-actions.pod:2618
7872 msgid "\"archlinux\""
7873 msgstr ""
7874
7875 #. type: textblock
7876 #: ../fish/guestfish-actions.pod:1743 ../src/guestfs-actions.pod:2620
7877 msgid "Arch Linux."
7878 msgstr ""
7879
7880 #. type: =item
7881 #: ../fish/guestfish-actions.pod:1745 ../src/guestfs-actions.pod:2622
7882 msgid "\"centos\""
7883 msgstr ""
7884
7885 #. type: textblock
7886 #: ../fish/guestfish-actions.pod:1747 ../src/guestfs-actions.pod:2624
7887 msgid "CentOS."
7888 msgstr ""
7889
7890 #. type: =item
7891 #: ../fish/guestfish-actions.pod:1749 ../src/guestfs-actions.pod:2626
7892 msgid "\"debian\""
7893 msgstr ""
7894
7895 #. type: textblock
7896 #: ../fish/guestfish-actions.pod:1751 ../src/guestfs-actions.pod:2628
7897 msgid "Debian."
7898 msgstr ""
7899
7900 #. type: =item
7901 #: ../fish/guestfish-actions.pod:1753 ../src/guestfs-actions.pod:2630
7902 msgid "\"fedora\""
7903 msgstr ""
7904
7905 #. type: textblock
7906 #: ../fish/guestfish-actions.pod:1755 ../src/guestfs-actions.pod:2632
7907 msgid "Fedora."
7908 msgstr ""
7909
7910 #. type: =item
7911 #: ../fish/guestfish-actions.pod:1757 ../src/guestfs-actions.pod:2634
7912 msgid "\"gentoo\""
7913 msgstr ""
7914
7915 #. type: textblock
7916 #: ../fish/guestfish-actions.pod:1759 ../src/guestfs-actions.pod:2636
7917 msgid "Gentoo."
7918 msgstr ""
7919
7920 #. type: =item
7921 #: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638
7922 msgid "\"linuxmint\""
7923 msgstr ""
7924
7925 #. type: textblock
7926 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2640
7927 msgid "Linux Mint."
7928 msgstr ""
7929
7930 #. type: =item
7931 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2642
7932 msgid "\"mandriva\""
7933 msgstr ""
7934
7935 #. type: textblock
7936 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2644
7937 msgid "Mandriva."
7938 msgstr ""
7939
7940 #. type: =item
7941 #: ../fish/guestfish-actions.pod:1769 ../src/guestfs-actions.pod:2646
7942 msgid "\"meego\""
7943 msgstr ""
7944
7945 #. type: textblock
7946 #: ../fish/guestfish-actions.pod:1771 ../src/guestfs-actions.pod:2648
7947 msgid "MeeGo."
7948 msgstr ""
7949
7950 #. type: =item
7951 #: ../fish/guestfish-actions.pod:1773 ../src/guestfs-actions.pod:2650
7952 msgid "\"pardus\""
7953 msgstr ""
7954
7955 #. type: textblock
7956 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2652
7957 msgid "Pardus."
7958 msgstr ""
7959
7960 #. type: =item
7961 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2654
7962 msgid "\"redhat-based\""
7963 msgstr ""
7964
7965 #. type: textblock
7966 #: ../fish/guestfish-actions.pod:1779 ../src/guestfs-actions.pod:2656
7967 msgid "Some Red Hat-derived distro."
7968 msgstr ""
7969
7970 #. type: =item
7971 #: ../fish/guestfish-actions.pod:1781 ../src/guestfs-actions.pod:2658
7972 msgid "\"rhel\""
7973 msgstr ""
7974
7975 #. type: textblock
7976 #: ../fish/guestfish-actions.pod:1783 ../src/guestfs-actions.pod:2660
7977 msgid "Red Hat Enterprise Linux."
7978 msgstr ""
7979
7980 #. type: =item
7981 #: ../fish/guestfish-actions.pod:1785 ../src/guestfs-actions.pod:2662
7982 msgid "\"scientificlinux\""
7983 msgstr ""
7984
7985 #. type: textblock
7986 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2664
7987 msgid "Scientific Linux."
7988 msgstr ""
7989
7990 #. type: =item
7991 #: ../fish/guestfish-actions.pod:1789 ../src/guestfs-actions.pod:2666
7992 msgid "\"slackware\""
7993 msgstr ""
7994
7995 #. type: textblock
7996 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2668
7997 msgid "Slackware."
7998 msgstr ""
7999
8000 #. type: =item
8001 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2670
8002 msgid "\"ubuntu\""
8003 msgstr ""
8004
8005 #. type: textblock
8006 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2672
8007 msgid "Ubuntu."
8008 msgstr ""
8009
8010 #. type: =item
8011 #: ../fish/guestfish-actions.pod:1797 ../fish/guestfish-actions.pod:1881
8012 #: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:2674
8013 #: ../src/guestfs-actions.pod:2783 ../src/guestfs-actions.pod:3158
8014 msgid "\"unknown\""
8015 msgstr ""
8016
8017 #. type: textblock
8018 #: ../fish/guestfish-actions.pod:1799 ../src/guestfs-actions.pod:2676
8019 msgid "The distro could not be determined."
8020 msgstr ""
8021
8022 #. type: =item
8023 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:2137
8024 #: ../src/guestfs-actions.pod:2678 ../src/guestfs-actions.pod:3150
8025 msgid "\"windows\""
8026 msgstr ""
8027
8028 #. type: textblock
8029 #: ../fish/guestfish-actions.pod:1803 ../src/guestfs-actions.pod:2680
8030 msgid ""
8031 "Windows does not have distributions.  This string is returned if the OS type "
8032 "is Windows."
8033 msgstr ""
8034
8035 #. type: textblock
8036 #: ../fish/guestfish-actions.pod:1808 ../fish/guestfish-actions.pod:1887
8037 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:2685
8038 #: ../src/guestfs-actions.pod:2789 ../src/guestfs-actions.pod:3164
8039 msgid ""
8040 "Future versions of libguestfs may return other strings here.  The caller "
8041 "should be prepared to handle any string."
8042 msgstr ""
8043
8044 #. type: =head2
8045 #: ../fish/guestfish-actions.pod:1813
8046 msgid "inspect-get-drive-mappings"
8047 msgstr ""
8048
8049 #. type: verbatim
8050 #: ../fish/guestfish-actions.pod:1815
8051 #, no-wrap
8052 msgid ""
8053 " inspect-get-drive-mappings root\n"
8054 "\n"
8055 msgstr ""
8056
8057 #. type: textblock
8058 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2701
8059 msgid ""
8060 "This call is useful for Windows which uses a primitive system of assigning "
8061 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8062 "Windows Registry to find out how disks/partitions are mapped to drive "
8063 "letters, and returns a hash table as in the example below:"
8064 msgstr ""
8065
8066 #. type: verbatim
8067 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2707
8068 #, no-wrap
8069 msgid ""
8070 " C      =>     /dev/vda2\n"
8071 " E      =>     /dev/vdb1\n"
8072 " F      =>     /dev/vdc1\n"
8073 "\n"
8074 msgstr ""
8075
8076 #. type: textblock
8077 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2711
8078 msgid ""
8079 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8080 "and just contains the drive letter, without the customary colon separator "
8081 "character."
8082 msgstr ""
8083
8084 #. type: textblock
8085 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2715
8086 msgid ""
8087 "In future we may support other operating systems that also used drive "
8088 "letters, but the keys for those might not be case insensitive and might be "
8089 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8090 "C<h1> etc."
8091 msgstr ""
8092
8093 #. type: textblock
8094 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8095 msgid ""
8096 "For Windows guests, currently only hard drive mappings are returned.  "
8097 "Removable disks (eg. DVD-ROMs) are ignored."
8098 msgstr ""
8099
8100 #. type: textblock
8101 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2723
8102 msgid ""
8103 "For guests that do not use drive mappings, or if the drive mappings could "
8104 "not be determined, this returns an empty hash table."
8105 msgstr ""
8106
8107 #. type: textblock
8108 #: ../fish/guestfish-actions.pod:1842
8109 msgid ""
8110 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8111 "get-mountpoints>, L</inspect-get-filesystems>."
8112 msgstr ""
8113
8114 #. type: =head2
8115 #: ../fish/guestfish-actions.pod:1846
8116 msgid "inspect-get-filesystems"
8117 msgstr ""
8118
8119 #. type: verbatim
8120 #: ../fish/guestfish-actions.pod:1848
8121 #, no-wrap
8122 msgid ""
8123 " inspect-get-filesystems root\n"
8124 "\n"
8125 msgstr ""
8126
8127 #. type: textblock
8128 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2744
8129 msgid ""
8130 "This returns a list of all the filesystems that we think are associated with "
8131 "this operating system.  This includes the root filesystem, other ordinary "
8132 "filesystems, and non-mounted devices like swap partitions."
8133 msgstr ""
8134
8135 #. type: textblock
8136 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8137 msgid ""
8138 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8139 "to be shared between operating systems."
8140 msgstr ""
8141
8142 #. type: textblock
8143 #: ../fish/guestfish-actions.pod:1858
8144 msgid ""
8145 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8146 "get-mountpoints>."
8147 msgstr ""
8148
8149 #. type: =head2
8150 #: ../fish/guestfish-actions.pod:1861
8151 msgid "inspect-get-format"
8152 msgstr ""
8153
8154 #. type: verbatim
8155 #: ../fish/guestfish-actions.pod:1863
8156 #, no-wrap
8157 msgid ""
8158 " inspect-get-format root\n"
8159 "\n"
8160 msgstr ""
8161
8162 #. type: textblock
8163 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2767
8164 msgid ""
8165 "This returns the format of the inspected operating system.  You can use it "
8166 "to detect install images, live CDs and similar."
8167 msgstr ""
8168
8169 #. type: textblock
8170 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2770
8171 msgid "Currently defined formats are:"
8172 msgstr ""
8173
8174 #. type: =item
8175 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2774
8176 msgid "\"installed\""
8177 msgstr ""
8178
8179 #. type: textblock
8180 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2776
8181 msgid "This is an installed operating system."
8182 msgstr ""
8183
8184 #. type: =item
8185 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2778
8186 msgid "\"installer\""
8187 msgstr ""
8188
8189 #. type: textblock
8190 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2780
8191 msgid ""
8192 "The disk image being inspected is not an installed operating system, but a "
8193 "I<bootable> install disk, live CD, or similar."
8194 msgstr ""
8195
8196 #. type: textblock
8197 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8198 msgid "The format of this disk image is not known."
8199 msgstr ""
8200
8201 #. type: =head2
8202 #: ../fish/guestfish-actions.pod:1892
8203 msgid "inspect-get-hostname"
8204 msgstr ""
8205
8206 #. type: verbatim
8207 #: ../fish/guestfish-actions.pod:1894
8208 #, no-wrap
8209 msgid ""
8210 " inspect-get-hostname root\n"
8211 "\n"
8212 msgstr ""
8213
8214 #. type: textblock
8215 #: ../fish/guestfish-actions.pod:1896 ../src/guestfs-actions.pod:2805
8216 msgid ""
8217 "This function returns the hostname of the operating system as found by "
8218 "inspection of the guest's configuration files."
8219 msgstr ""
8220
8221 #. type: textblock
8222 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2808
8223 msgid ""
8224 "If the hostname could not be determined, then the string C<unknown> is "
8225 "returned."
8226 msgstr ""
8227
8228 #. type: =head2
8229 #: ../fish/guestfish-actions.pod:1904
8230 msgid "inspect-get-icon"
8231 msgstr ""
8232
8233 #. type: verbatim
8234 #: ../fish/guestfish-actions.pod:1906
8235 #, no-wrap
8236 msgid ""
8237 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8238 "\n"
8239 msgstr ""
8240
8241 #. type: textblock
8242 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2834
8243 msgid ""
8244 "This function returns an icon corresponding to the inspected operating "
8245 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8246 "to PNG if necessary)."
8247 msgstr ""
8248
8249 #. type: textblock
8250 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2838
8251 msgid ""
8252 "If it was not possible to get an icon this function returns a zero-length "
8253 "(non-NULL) buffer.  I<Callers must check for this case>."
8254 msgstr ""
8255
8256 #. type: textblock
8257 #: ../fish/guestfish-actions.pod:1915 ../src/guestfs-actions.pod:2841
8258 msgid ""
8259 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8260 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8261 "this file will be returned.  You can disable favicons by passing the "
8262 "optional C<favicon> boolean as false (default is true)."
8263 msgstr ""
8264
8265 #. type: textblock
8266 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2847
8267 msgid ""
8268 "If finding the favicon fails, then we look in other places in the guest for "
8269 "a suitable icon."
8270 msgstr ""
8271
8272 #. type: textblock
8273 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2850
8274 msgid ""
8275 "If the optional C<highquality> boolean is true then only high quality icons "
8276 "are returned, which means only icons of high resolution with an alpha "
8277 "channel.  The default (false) is to return any icon we can, even if it is of "
8278 "substandard quality."
8279 msgstr ""
8280
8281 #. type: textblock
8282 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2861
8283 msgid ""
8284 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8285 "before you call this, since it needs to read information from the guest "
8286 "filesystem during the call."
8287 msgstr ""
8288
8289 #. type: textblock
8290 #: ../fish/guestfish-actions.pod:1941 ../src/guestfs-actions.pod:2867
8291 msgid ""
8292 "B<Security:> The icon data comes from the untrusted guest, and should be "
8293 "treated with caution.  PNG files have been known to contain exploits.  "
8294 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8295 "trying to process or display the icon."
8296 msgstr ""
8297
8298 #. type: textblock
8299 #: ../fish/guestfish-actions.pod:1949 ../src/guestfs-actions.pod:2875
8300 msgid ""
8301 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8302 "tries to return the largest, highest quality icon available.  The "
8303 "application must scale the icon to the required size."
8304 msgstr ""
8305
8306 #. type: textblock
8307 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:2882
8308 msgid ""
8309 "Extracting icons from Windows guests requires the external C<wrestool> "
8310 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8311 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8312 "installed separately."
8313 msgstr ""
8314
8315 #. type: textblock
8316 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2889
8317 msgid ""
8318 "Operating system icons are usually trademarks.  Seek legal advice before "
8319 "using trademarks in applications."
8320 msgstr ""
8321
8322 #. type: =head2
8323 #: ../fish/guestfish-actions.pod:1970
8324 msgid "inspect-get-major-version"
8325 msgstr ""
8326
8327 #. type: verbatim
8328 #: ../fish/guestfish-actions.pod:1972
8329 #, no-wrap
8330 msgid ""
8331 " inspect-get-major-version root\n"
8332 "\n"
8333 msgstr ""
8334
8335 #. type: textblock
8336 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:2930
8337 msgid ""
8338 "This returns the major version number of the inspected operating system."
8339 msgstr ""
8340
8341 #. type: textblock
8342 #: ../fish/guestfish-actions.pod:1977 ../src/guestfs-actions.pod:2933
8343 msgid ""
8344 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8345 "popular public names used by the operating system.  Notably the operating "
8346 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8347 "1).  You can find out the real versions corresponding to releases of Windows "
8348 "by consulting Wikipedia or MSDN."
8349 msgstr ""
8350
8351 #. type: textblock
8352 #: ../fish/guestfish-actions.pod:1984 ../fish/guestfish-actions.pod:1995
8353 #: ../src/guestfs-actions.pod:2940 ../src/guestfs-actions.pod:2957
8354 msgid "If the version could not be determined, then C<0> is returned."
8355 msgstr ""
8356
8357 #. type: =head2
8358 #: ../fish/guestfish-actions.pod:1988
8359 msgid "inspect-get-minor-version"
8360 msgstr ""
8361
8362 #. type: verbatim
8363 #: ../fish/guestfish-actions.pod:1990
8364 #, no-wrap
8365 msgid ""
8366 " inspect-get-minor-version root\n"
8367 "\n"
8368 msgstr ""
8369
8370 #. type: textblock
8371 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:2954
8372 msgid ""
8373 "This returns the minor version number of the inspected operating system."
8374 msgstr ""
8375
8376 #. type: textblock
8377 #: ../fish/guestfish-actions.pod:1997
8378 msgid ""
8379 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8380 "get-major-version>."
8381 msgstr ""
8382
8383 #. type: =head2
8384 #: ../fish/guestfish-actions.pod:2000
8385 msgid "inspect-get-mountpoints"
8386 msgstr ""
8387
8388 #. type: verbatim
8389 #: ../fish/guestfish-actions.pod:2002
8390 #, no-wrap
8391 msgid ""
8392 " inspect-get-mountpoints root\n"
8393 "\n"
8394 msgstr ""
8395
8396 #. type: textblock
8397 #: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:2972
8398 msgid ""
8399 "This returns a hash of where we think the filesystems associated with this "
8400 "operating system should be mounted.  Callers should note that this is at "
8401 "best an educated guess made by reading configuration files such as C</etc/"
8402 "fstab>.  I<In particular note> that this may return filesystems which are "
8403 "non-existent or not mountable and callers should be prepared to handle or "
8404 "ignore failures if they try to mount them."
8405 msgstr ""
8406
8407 #. type: textblock
8408 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:2981
8409 msgid ""
8410 "Each element in the returned hashtable has a key which is the path of the "
8411 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8412 "mounted there (eg. C</dev/sda1>)."
8413 msgstr ""
8414
8415 #. type: textblock
8416 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8417 msgid ""
8418 "Non-mounted devices such as swap devices are I<not> returned in this list."
8419 msgstr ""
8420
8421 #. type: textblock
8422 #: ../fish/guestfish-actions.pod:2021
8423 msgid ""
8424 "For operating systems like Windows which still use drive letters, this call "
8425 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8426 "information about the mapping of drive letters to partitions, see L</inspect-"
8427 "get-drive-mappings>."
8428 msgstr ""
8429
8430 #. type: textblock
8431 #: ../fish/guestfish-actions.pod:2027
8432 msgid ""
8433 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8434 "get-filesystems>."
8435 msgstr ""
8436
8437 #. type: =head2
8438 #: ../fish/guestfish-actions.pod:2030
8439 msgid "inspect-get-package-format"
8440 msgstr ""
8441
8442 #. type: verbatim
8443 #: ../fish/guestfish-actions.pod:2032
8444 #, no-wrap
8445 msgid ""
8446 " inspect-get-package-format root\n"
8447 "\n"
8448 msgstr ""
8449
8450 #. type: textblock
8451 #: ../fish/guestfish-actions.pod:2034
8452 msgid ""
8453 "This function and L</inspect-get-package-management> return the package "
8454 "format and package management tool used by the inspected operating system.  "
8455 "For example for Fedora these functions would return C<rpm> (package format) "
8456 "and C<yum> (package management)."
8457 msgstr ""
8458
8459 #. type: textblock
8460 #: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3018
8461 msgid ""
8462 "This returns the string C<unknown> if we could not determine the package "
8463 "format I<or> if the operating system does not have a real packaging system "
8464 "(eg. Windows)."
8465 msgstr ""
8466
8467 #. type: textblock
8468 #: ../fish/guestfish-actions.pod:2044 ../src/guestfs-actions.pod:3022
8469 msgid ""
8470 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8471 "Future versions of libguestfs may return other strings."
8472 msgstr ""
8473
8474 #. type: =head2
8475 #: ../fish/guestfish-actions.pod:2049
8476 msgid "inspect-get-package-management"
8477 msgstr ""
8478
8479 #. type: verbatim
8480 #: ../fish/guestfish-actions.pod:2051
8481 #, no-wrap
8482 msgid ""
8483 " inspect-get-package-management root\n"
8484 "\n"
8485 msgstr ""
8486
8487 #. type: textblock
8488 #: ../fish/guestfish-actions.pod:2053
8489 msgid ""
8490 "L</inspect-get-package-format> and this function return the package format "
8491 "and package management tool used by the inspected operating system.  For "
8492 "example for Fedora these functions would return C<rpm> (package format) and "
8493 "C<yum> (package management)."
8494 msgstr ""
8495
8496 #. type: textblock
8497 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3044
8498 msgid ""
8499 "This returns the string C<unknown> if we could not determine the package "
8500 "management tool I<or> if the operating system does not have a real packaging "
8501 "system (eg. Windows)."
8502 msgstr ""
8503
8504 #. type: textblock
8505 #: ../fish/guestfish-actions.pod:2063 ../src/guestfs-actions.pod:3048
8506 msgid ""
8507 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8508 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8509 "libguestfs may return other strings."
8510 msgstr ""
8511
8512 #. type: =head2
8513 #: ../fish/guestfish-actions.pod:2070
8514 msgid "inspect-get-product-name"
8515 msgstr ""
8516
8517 #. type: verbatim
8518 #: ../fish/guestfish-actions.pod:2072
8519 #, no-wrap
8520 msgid ""
8521 " inspect-get-product-name root\n"
8522 "\n"
8523 msgstr ""
8524
8525 #. type: textblock
8526 #: ../fish/guestfish-actions.pod:2074 ../src/guestfs-actions.pod:3066
8527 msgid ""
8528 "This returns the product name of the inspected operating system.  The "
8529 "product name is generally some freeform string which can be displayed to the "
8530 "user, but should not be parsed by programs."
8531 msgstr ""
8532
8533 #. type: textblock
8534 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
8535 msgid ""
8536 "If the product name could not be determined, then the string C<unknown> is "
8537 "returned."
8538 msgstr ""
8539
8540 #. type: =head2
8541 #: ../fish/guestfish-actions.pod:2084
8542 msgid "inspect-get-product-variant"
8543 msgstr ""
8544
8545 #. type: verbatim
8546 #: ../fish/guestfish-actions.pod:2086
8547 #, no-wrap
8548 msgid ""
8549 " inspect-get-product-variant root\n"
8550 "\n"
8551 msgstr ""
8552
8553 #. type: textblock
8554 #: ../fish/guestfish-actions.pod:2088 ../src/guestfs-actions.pod:3087
8555 msgid "This returns the product variant of the inspected operating system."
8556 msgstr ""
8557
8558 #. type: textblock
8559 #: ../fish/guestfish-actions.pod:2091 ../src/guestfs-actions.pod:3090
8560 msgid ""
8561 "For Windows guests, this returns the contents of the Registry key C<HKLM"
8562 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
8563 "is usually a string such as C<Client> or C<Server> (other values are "
8564 "possible).  This can be used to distinguish consumer and enterprise versions "
8565 "of Windows that have the same version number (for example, Windows 7 and "
8566 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8567 "the latter is C<Server>)."
8568 msgstr ""
8569
8570 #. type: textblock
8571 #: ../fish/guestfish-actions.pod:2100 ../src/guestfs-actions.pod:3099
8572 msgid ""
8573 "For enterprise Linux guests, in future we intend this to return the product "
8574 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8575 "implemented at present."
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:2104 ../src/guestfs-actions.pod:3103
8580 msgid ""
8581 "If the product variant could not be determined, then the string C<unknown> "
8582 "is returned."
8583 msgstr ""
8584
8585 #. type: textblock
8586 #: ../fish/guestfish-actions.pod:2107
8587 msgid ""
8588 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8589 "get-product-name>, L</inspect-get-major-version>."
8590 msgstr ""
8591
8592 #. type: =head2
8593 #: ../fish/guestfish-actions.pod:2111
8594 msgid "inspect-get-roots"
8595 msgstr ""
8596
8597 #. type: verbatim
8598 #: ../fish/guestfish-actions.pod:2113
8599 #, no-wrap
8600 msgid ""
8601 " inspect-get-roots\n"
8602 "\n"
8603 msgstr ""
8604
8605 #. type: textblock
8606 #: ../fish/guestfish-actions.pod:2115
8607 msgid ""
8608 "This function is a convenient way to get the list of root devices, as "
8609 "returned from a previous call to L</inspect-os>, but without redoing the "
8610 "whole inspection process."
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../fish/guestfish-actions.pod:2119
8615 msgid ""
8616 "This returns an empty list if either no root devices were found or the "
8617 "caller has not called L</inspect-os>."
8618 msgstr ""
8619
8620 #. type: =head2
8621 #: ../fish/guestfish-actions.pod:2124
8622 msgid "inspect-get-type"
8623 msgstr ""
8624
8625 #. type: verbatim
8626 #: ../fish/guestfish-actions.pod:2126
8627 #, no-wrap
8628 msgid ""
8629 " inspect-get-type root\n"
8630 "\n"
8631 msgstr ""
8632
8633 #. type: textblock
8634 #: ../fish/guestfish-actions.pod:2128 ../src/guestfs-actions.pod:3141
8635 msgid ""
8636 "This returns the type of the inspected operating system.  Currently defined "
8637 "types are:"
8638 msgstr ""
8639
8640 #. type: =item
8641 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
8642 msgid "\"linux\""
8643 msgstr ""
8644
8645 #. type: textblock
8646 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3148
8647 msgid "Any Linux-based operating system."
8648 msgstr ""
8649
8650 #. type: textblock
8651 #: ../fish/guestfish-actions.pod:2139 ../src/guestfs-actions.pod:3152
8652 msgid "Any Microsoft Windows operating system."
8653 msgstr ""
8654
8655 #. type: =item
8656 #: ../fish/guestfish-actions.pod:2141 ../src/guestfs-actions.pod:3154
8657 msgid "\"freebsd\""
8658 msgstr ""
8659
8660 #. type: textblock
8661 #: ../fish/guestfish-actions.pod:2143 ../src/guestfs-actions.pod:3156
8662 msgid "FreeBSD."
8663 msgstr ""
8664
8665 #. type: textblock
8666 #: ../fish/guestfish-actions.pod:2147 ../src/guestfs-actions.pod:3160
8667 msgid "The operating system type could not be determined."
8668 msgstr ""
8669
8670 #. type: =head2
8671 #: ../fish/guestfish-actions.pod:2156
8672 msgid "inspect-get-windows-current-control-set"
8673 msgstr ""
8674
8675 #. type: verbatim
8676 #: ../fish/guestfish-actions.pod:2158
8677 #, no-wrap
8678 msgid ""
8679 " inspect-get-windows-current-control-set root\n"
8680 "\n"
8681 msgstr ""
8682
8683 #. type: textblock
8684 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3180
8685 msgid ""
8686 "This returns the Windows CurrentControlSet of the inspected guest.  The "
8687 "CurrentControlSet is a registry key name such as C<ControlSet001>."
8688 msgstr ""
8689
8690 #. type: textblock
8691 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3183
8692 msgid ""
8693 "This call assumes that the guest is Windows and that the Registry could be "
8694 "examined by inspection.  If this is not the case then an error is returned."
8695 msgstr ""
8696
8697 #. type: =head2
8698 #: ../fish/guestfish-actions.pod:2169
8699 msgid "inspect-get-windows-systemroot"
8700 msgstr ""
8701
8702 #. type: verbatim
8703 #: ../fish/guestfish-actions.pod:2171
8704 #, no-wrap
8705 msgid ""
8706 " inspect-get-windows-systemroot root\n"
8707 "\n"
8708 msgstr ""
8709
8710 #. type: textblock
8711 #: ../fish/guestfish-actions.pod:2173 ../src/guestfs-actions.pod:3200
8712 msgid ""
8713 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8714 "is a directory path such as C</WINDOWS>."
8715 msgstr ""
8716
8717 #. type: textblock
8718 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3203
8719 msgid ""
8720 "This call assumes that the guest is Windows and that the systemroot could be "
8721 "determined by inspection.  If this is not the case then an error is returned."
8722 msgstr ""
8723
8724 #. type: =head2
8725 #: ../fish/guestfish-actions.pod:2182
8726 msgid "inspect-is-live"
8727 msgstr ""
8728
8729 #. type: verbatim
8730 #: ../fish/guestfish-actions.pod:2184
8731 #, no-wrap
8732 msgid ""
8733 " inspect-is-live root\n"
8734 "\n"
8735 msgstr ""
8736
8737 #. type: textblock
8738 #: ../fish/guestfish-actions.pod:2186
8739 msgid ""
8740 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8741 "then this returns true if a live image was detected on the disk."
8742 msgstr ""
8743
8744 #. type: =head2
8745 #: ../fish/guestfish-actions.pod:2192
8746 msgid "inspect-is-multipart"
8747 msgstr ""
8748
8749 #. type: verbatim
8750 #: ../fish/guestfish-actions.pod:2194
8751 #, no-wrap
8752 msgid ""
8753 " inspect-is-multipart root\n"
8754 "\n"
8755 msgstr ""
8756
8757 #. type: textblock
8758 #: ../fish/guestfish-actions.pod:2196
8759 msgid ""
8760 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8761 "then this returns true if the disk is part of a set."
8762 msgstr ""
8763
8764 #. type: =head2
8765 #: ../fish/guestfish-actions.pod:2202
8766 msgid "inspect-is-netinst"
8767 msgstr ""
8768
8769 #. type: verbatim
8770 #: ../fish/guestfish-actions.pod:2204
8771 #, no-wrap
8772 msgid ""
8773 " inspect-is-netinst root\n"
8774 "\n"
8775 msgstr ""
8776
8777 #. type: textblock
8778 #: ../fish/guestfish-actions.pod:2206
8779 msgid ""
8780 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8781 "then this returns true if the disk is a network installer, ie. not a self-"
8782 "contained install CD but one which is likely to require network access to "
8783 "complete the install."
8784 msgstr ""
8785
8786 #. type: =head2
8787 #: ../fish/guestfish-actions.pod:2214
8788 msgid "inspect-list-applications"
8789 msgstr ""
8790
8791 #. type: verbatim
8792 #: ../fish/guestfish-actions.pod:2216
8793 #, no-wrap
8794 msgid ""
8795 " inspect-list-applications root\n"
8796 "\n"
8797 msgstr ""
8798
8799 #. type: textblock
8800 #: ../fish/guestfish-actions.pod:2218 ../src/guestfs-actions.pod:3270
8801 msgid "Return the list of applications installed in the operating system."
8802 msgstr ""
8803
8804 #. type: textblock
8805 #: ../fish/guestfish-actions.pod:2220
8806 msgid ""
8807 "I<Note:> This call works differently from other parts of the inspection "
8808 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
8809 "then mount up the disks, before calling this.  Listing applications is a "
8810 "significantly more difficult operation which requires access to the full "
8811 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
8812 "are just returning data cached in the libguestfs handle, this call actually "
8813 "reads parts of the mounted filesystems during the call."
8814 msgstr ""
8815
8816 #. type: textblock
8817 #: ../fish/guestfish-actions.pod:2230 ../src/guestfs-actions.pod:3282
8818 msgid ""
8819 "This returns an empty list if the inspection code was not able to determine "
8820 "the list of applications."
8821 msgstr ""
8822
8823 #. type: textblock
8824 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3285
8825 msgid "The application structure contains the following fields:"
8826 msgstr ""
8827
8828 #. type: =item
8829 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3289
8830 msgid "C<app_name>"
8831 msgstr ""
8832
8833 #. type: textblock
8834 #: ../fish/guestfish-actions.pod:2239 ../src/guestfs-actions.pod:3291
8835 msgid ""
8836 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8837 "guests, this is the package name."
8838 msgstr ""
8839
8840 #. type: =item
8841 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
8842 msgid "C<app_display_name>"
8843 msgstr ""
8844
8845 #. type: textblock
8846 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
8847 msgid ""
8848 "The display name of the application, sometimes localized to the install "
8849 "language of the guest operating system."
8850 msgstr ""
8851
8852 #. type: textblock
8853 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
8854 msgid ""
8855 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8856 "to display something can use C<app_name> instead."
8857 msgstr ""
8858
8859 #. type: =item
8860 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3302
8861 msgid "C<app_epoch>"
8862 msgstr ""
8863
8864 #. type: textblock
8865 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
8866 msgid ""
8867 "For package managers which use epochs, this contains the epoch of the "
8868 "package (an integer).  If unavailable, this is returned as C<0>."
8869 msgstr ""
8870
8871 #. type: =item
8872 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
8873 msgid "C<app_version>"
8874 msgstr ""
8875
8876 #. type: textblock
8877 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
8878 msgid ""
8879 "The version string of the application or package.  If unavailable this is "
8880 "returned as an empty string C<\"\">."
8881 msgstr ""
8882
8883 #. type: =item
8884 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
8885 msgid "C<app_release>"
8886 msgstr ""
8887
8888 #. type: textblock
8889 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
8890 msgid ""
8891 "The release string of the application or package, for package managers that "
8892 "use this.  If unavailable this is returned as an empty string C<\"\">."
8893 msgstr ""
8894
8895 #. type: =item
8896 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3318
8897 msgid "C<app_install_path>"
8898 msgstr ""
8899
8900 #. type: textblock
8901 #: ../fish/guestfish-actions.pod:2268 ../src/guestfs-actions.pod:3320
8902 msgid ""
8903 "The installation path of the application (on operating systems such as "
8904 "Windows which use installation paths).  This path is in the format used by "
8905 "the guest operating system, it is not a libguestfs path."
8906 msgstr ""
8907
8908 #. type: textblock
8909 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
8910 msgid "If unavailable this is returned as an empty string C<\"\">."
8911 msgstr ""
8912
8913 #. type: =item
8914 #: ../fish/guestfish-actions.pod:2275 ../src/guestfs-actions.pod:3327
8915 msgid "C<app_trans_path>"
8916 msgstr ""
8917
8918 #. type: textblock
8919 #: ../fish/guestfish-actions.pod:2277 ../src/guestfs-actions.pod:3329
8920 msgid ""
8921 "The install path translated into a libguestfs path.  If unavailable this is "
8922 "returned as an empty string C<\"\">."
8923 msgstr ""
8924
8925 #. type: =item
8926 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
8927 msgid "C<app_publisher>"
8928 msgstr ""
8929
8930 #. type: textblock
8931 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
8932 msgid ""
8933 "The name of the publisher of the application, for package managers that use "
8934 "this.  If unavailable this is returned as an empty string C<\"\">."
8935 msgstr ""
8936
8937 #. type: =item
8938 #: ../fish/guestfish-actions.pod:2286 ../src/guestfs-actions.pod:3338
8939 msgid "C<app_url>"
8940 msgstr ""
8941
8942 #. type: textblock
8943 #: ../fish/guestfish-actions.pod:2288 ../src/guestfs-actions.pod:3340
8944 msgid ""
8945 "The URL (eg. upstream URL) of the application.  If unavailable this is "
8946 "returned as an empty string C<\"\">."
8947 msgstr ""
8948
8949 #. type: =item
8950 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
8951 msgid "C<app_source_package>"
8952 msgstr ""
8953
8954 #. type: textblock
8955 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
8956 msgid ""
8957 "For packaging systems which support this, the name of the source package.  "
8958 "If unavailable this is returned as an empty string C<\"\">."
8959 msgstr ""
8960
8961 #. type: =item
8962 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
8963 msgid "C<app_summary>"
8964 msgstr ""
8965
8966 #. type: textblock
8967 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
8968 msgid ""
8969 "A short (usually one line) description of the application or package.  If "
8970 "unavailable this is returned as an empty string C<\"\">."
8971 msgstr ""
8972
8973 #. type: =item
8974 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
8975 msgid "C<app_description>"
8976 msgstr ""
8977
8978 #. type: textblock
8979 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
8980 msgid ""
8981 "A longer description of the application or package.  If unavailable this is "
8982 "returned as an empty string C<\"\">."
8983 msgstr ""
8984
8985 #. type: =head2
8986 #: ../fish/guestfish-actions.pod:2310
8987 msgid "inspect-os"
8988 msgstr ""
8989
8990 #. type: verbatim
8991 #: ../fish/guestfish-actions.pod:2312
8992 #, no-wrap
8993 msgid ""
8994 " inspect-os\n"
8995 "\n"
8996 msgstr ""
8997
8998 #. type: textblock
8999 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3373
9000 msgid ""
9001 "This function uses other libguestfs functions and certain heuristics to "
9002 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9003 "for operating systems."
9004 msgstr ""
9005
9006 #. type: textblock
9007 #: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3377
9008 msgid "The list returned is empty if no operating systems were found."
9009 msgstr ""
9010
9011 #. type: textblock
9012 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3379
9013 msgid ""
9014 "If one operating system was found, then this returns a list with a single "
9015 "element, which is the name of the root filesystem of this operating system.  "
9016 "It is also possible for this function to return a list containing more than "
9017 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9018 "element being the root filesystem of one of the operating systems."
9019 msgstr ""
9020
9021 #. type: textblock
9022 #: ../fish/guestfish-actions.pod:2327
9023 msgid ""
9024 "You can pass the root string(s) returned to other L</inspect-get-*> "
9025 "functions in order to query further information about each operating system, "
9026 "such as the name and version."
9027 msgstr ""
9028
9029 #. type: textblock
9030 #: ../fish/guestfish-actions.pod:2332
9031 msgid ""
9032 "This function uses other libguestfs features such as L</mount-ro> and L</"
9033 "umount-all> in order to mount and unmount filesystems and look at the "
9034 "contents.  This should be called with no disks currently mounted.  The "
9035 "function may also use Augeas, so any existing Augeas handle will be closed."
9036 msgstr ""
9037
9038 #. type: textblock
9039 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3397
9040 msgid ""
9041 "This function cannot decrypt encrypted disks.  The caller must do that first "
9042 "(supplying the necessary keys) if the disk is encrypted."
9043 msgstr ""
9044
9045 #. type: textblock
9046 #: ../fish/guestfish-actions.pod:2344 ../fish/guestfish-actions.pod:2542
9047 #: ../fish/guestfish-actions.pod:2601
9048 msgid "See also L</list-filesystems>."
9049 msgstr ""
9050
9051 #. type: =head2
9052 #: ../fish/guestfish-actions.pod:2346
9053 msgid "is-blockdev"
9054 msgstr ""
9055
9056 #. type: verbatim
9057 #: ../fish/guestfish-actions.pod:2348
9058 #, no-wrap
9059 msgid ""
9060 " is-blockdev path\n"
9061 "\n"
9062 msgstr ""
9063
9064 #. type: textblock
9065 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3417
9066 msgid ""
9067 "This returns C<true> if and only if there is a block device with the given "
9068 "C<path> name."
9069 msgstr ""
9070
9071 #. type: textblock
9072 #: ../fish/guestfish-actions.pod:2353 ../fish/guestfish-actions.pod:2371
9073 #: ../fish/guestfish-actions.pod:2390 ../fish/guestfish-actions.pod:2399
9074 #: ../fish/guestfish-actions.pod:2409 ../fish/guestfish-actions.pod:2443
9075 #: ../fish/guestfish-actions.pod:2452
9076 msgid "See also L</stat>."
9077 msgstr ""
9078
9079 #. type: =head2
9080 #: ../fish/guestfish-actions.pod:2355
9081 msgid "is-busy"
9082 msgstr ""
9083
9084 #. type: verbatim
9085 #: ../fish/guestfish-actions.pod:2357
9086 #, no-wrap
9087 msgid ""
9088 " is-busy\n"
9089 "\n"
9090 msgstr ""
9091
9092 #. type: textblock
9093 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3431
9094 msgid ""
9095 "This returns true iff this handle is busy processing a command (in the "
9096 "C<BUSY> state)."
9097 msgstr ""
9098
9099 #. type: =head2
9100 #: ../fish/guestfish-actions.pod:2364
9101 msgid "is-chardev"
9102 msgstr ""
9103
9104 #. type: verbatim
9105 #: ../fish/guestfish-actions.pod:2366
9106 #, no-wrap
9107 msgid ""
9108 " is-chardev path\n"
9109 "\n"
9110 msgstr ""
9111
9112 #. type: textblock
9113 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3446
9114 msgid ""
9115 "This returns C<true> if and only if there is a character device with the "
9116 "given C<path> name."
9117 msgstr ""
9118
9119 #. type: =head2
9120 #: ../fish/guestfish-actions.pod:2373
9121 msgid "is-config"
9122 msgstr ""
9123
9124 #. type: verbatim
9125 #: ../fish/guestfish-actions.pod:2375
9126 #, no-wrap
9127 msgid ""
9128 " is-config\n"
9129 "\n"
9130 msgstr ""
9131
9132 #. type: textblock
9133 #: ../fish/guestfish-actions.pod:2377 ../src/guestfs-actions.pod:3460
9134 msgid ""
9135 "This returns true iff this handle is being configured (in the C<CONFIG> "
9136 "state)."
9137 msgstr ""
9138
9139 #. type: =head2
9140 #: ../fish/guestfish-actions.pod:2382
9141 msgid "is-dir"
9142 msgstr ""
9143
9144 #. type: verbatim
9145 #: ../fish/guestfish-actions.pod:2384
9146 #, no-wrap
9147 msgid ""
9148 " is-dir path\n"
9149 "\n"
9150 msgstr ""
9151
9152 #. type: textblock
9153 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3475
9154 msgid ""
9155 "This returns C<true> if and only if there is a directory with the given "
9156 "C<path> name.  Note that it returns false for other objects like files."
9157 msgstr ""
9158
9159 #. type: =head2
9160 #: ../fish/guestfish-actions.pod:2392
9161 msgid "is-fifo"
9162 msgstr ""
9163
9164 #. type: verbatim
9165 #: ../fish/guestfish-actions.pod:2394
9166 #, no-wrap
9167 msgid ""
9168 " is-fifo path\n"
9169 "\n"
9170 msgstr ""
9171
9172 #. type: textblock
9173 #: ../fish/guestfish-actions.pod:2396 ../src/guestfs-actions.pod:3491
9174 msgid ""
9175 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9176 "given C<path> name."
9177 msgstr ""
9178
9179 #. type: =head2
9180 #: ../fish/guestfish-actions.pod:2401
9181 msgid "is-file"
9182 msgstr ""
9183
9184 #. type: verbatim
9185 #: ../fish/guestfish-actions.pod:2403
9186 #, no-wrap
9187 msgid ""
9188 " is-file path\n"
9189 "\n"
9190 msgstr ""
9191
9192 #. type: textblock
9193 #: ../fish/guestfish-actions.pod:2405 ../src/guestfs-actions.pod:3506
9194 msgid ""
9195 "This returns C<true> if and only if there is a regular file with the given "
9196 "C<path> name.  Note that it returns false for other objects like directories."
9197 msgstr ""
9198
9199 #. type: =head2
9200 #: ../fish/guestfish-actions.pod:2411
9201 msgid "is-launching"
9202 msgstr ""
9203
9204 #. type: verbatim
9205 #: ../fish/guestfish-actions.pod:2413
9206 #, no-wrap
9207 msgid ""
9208 " is-launching\n"
9209 "\n"
9210 msgstr ""
9211
9212 #. type: textblock
9213 #: ../fish/guestfish-actions.pod:2415 ../src/guestfs-actions.pod:3521
9214 msgid ""
9215 "This returns true iff this handle is launching the subprocess (in the "
9216 "C<LAUNCHING> state)."
9217 msgstr ""
9218
9219 #. type: =head2
9220 #: ../fish/guestfish-actions.pod:2420
9221 msgid "is-lv"
9222 msgstr ""
9223
9224 #. type: verbatim
9225 #: ../fish/guestfish-actions.pod:2422
9226 #, no-wrap
9227 msgid ""
9228 " is-lv device\n"
9229 "\n"
9230 msgstr ""
9231
9232 #. type: textblock
9233 #: ../fish/guestfish-actions.pod:2424 ../src/guestfs-actions.pod:3536
9234 msgid ""
9235 "This command tests whether C<device> is a logical volume, and returns true "
9236 "iff this is the case."
9237 msgstr ""
9238
9239 #. type: =head2
9240 #: ../fish/guestfish-actions.pod:2427
9241 msgid "is-ready"
9242 msgstr ""
9243
9244 #. type: verbatim
9245 #: ../fish/guestfish-actions.pod:2429
9246 #, no-wrap
9247 msgid ""
9248 " is-ready\n"
9249 "\n"
9250 msgstr ""
9251
9252 #. type: textblock
9253 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3548
9254 msgid ""
9255 "This returns true iff this handle is ready to accept commands (in the "
9256 "C<READY> state)."
9257 msgstr ""
9258
9259 #. type: =head2
9260 #: ../fish/guestfish-actions.pod:2436
9261 msgid "is-socket"
9262 msgstr ""
9263
9264 #. type: verbatim
9265 #: ../fish/guestfish-actions.pod:2438
9266 #, no-wrap
9267 msgid ""
9268 " is-socket path\n"
9269 "\n"
9270 msgstr ""
9271
9272 #. type: textblock
9273 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3563
9274 msgid ""
9275 "This returns C<true> if and only if there is a Unix domain socket with the "
9276 "given C<path> name."
9277 msgstr ""
9278
9279 #. type: =head2
9280 #: ../fish/guestfish-actions.pod:2445
9281 msgid "is-symlink"
9282 msgstr ""
9283
9284 #. type: verbatim
9285 #: ../fish/guestfish-actions.pod:2447
9286 #, no-wrap
9287 msgid ""
9288 " is-symlink path\n"
9289 "\n"
9290 msgstr ""
9291
9292 #. type: textblock
9293 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3578
9294 msgid ""
9295 "This returns C<true> if and only if there is a symbolic link with the given "
9296 "C<path> name."
9297 msgstr ""
9298
9299 #. type: =head2
9300 #: ../fish/guestfish-actions.pod:2454
9301 msgid "is-zero"
9302 msgstr ""
9303
9304 #. type: verbatim
9305 #: ../fish/guestfish-actions.pod:2456
9306 #, no-wrap
9307 msgid ""
9308 " is-zero path\n"
9309 "\n"
9310 msgstr ""
9311
9312 #. type: textblock
9313 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3593
9314 msgid ""
9315 "This returns true iff the file exists and the file is empty or it contains "
9316 "all zero bytes."
9317 msgstr ""
9318
9319 #. type: =head2
9320 #: ../fish/guestfish-actions.pod:2461
9321 msgid "is-zero-device"
9322 msgstr ""
9323
9324 #. type: verbatim
9325 #: ../fish/guestfish-actions.pod:2463
9326 #, no-wrap
9327 msgid ""
9328 " is-zero-device device\n"
9329 "\n"
9330 msgstr ""
9331
9332 #. type: textblock
9333 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3606
9334 msgid "This returns true iff the device exists and contains all zero bytes."
9335 msgstr ""
9336
9337 #. type: textblock
9338 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3608
9339 msgid "Note that for large devices this can take a long time to run."
9340 msgstr ""
9341
9342 #. type: =head2
9343 #: ../fish/guestfish-actions.pod:2469
9344 msgid "kill-subprocess"
9345 msgstr ""
9346
9347 #. type: verbatim
9348 #: ../fish/guestfish-actions.pod:2471
9349 #, no-wrap
9350 msgid ""
9351 " kill-subprocess\n"
9352 "\n"
9353 msgstr ""
9354
9355 #. type: textblock
9356 #: ../fish/guestfish-actions.pod:2473 ../src/guestfs-actions.pod:3619
9357 msgid "This kills the qemu subprocess.  You should never need to call this."
9358 msgstr ""
9359
9360 #. type: =head2
9361 #: ../fish/guestfish-actions.pod:2475
9362 msgid "launch"
9363 msgstr ""
9364
9365 #. type: =head2
9366 #: ../fish/guestfish-actions.pod:2477
9367 msgid "run"
9368 msgstr ""
9369
9370 #. type: verbatim
9371 #: ../fish/guestfish-actions.pod:2479
9372 #, no-wrap
9373 msgid ""
9374 " launch\n"
9375 "\n"
9376 msgstr ""
9377
9378 #. type: textblock
9379 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3630
9380 msgid ""
9381 "Internally libguestfs is implemented by running a virtual machine using "
9382 "L<qemu(1)>."
9383 msgstr ""
9384
9385 #. type: textblock
9386 #: ../fish/guestfish-actions.pod:2484 ../src/guestfs-actions.pod:3633
9387 msgid ""
9388 "You should call this after configuring the handle (eg. adding drives) but "
9389 "before performing any actions."
9390 msgstr ""
9391
9392 #. type: =head2
9393 #: ../fish/guestfish-actions.pod:2487
9394 msgid "lchown"
9395 msgstr ""
9396
9397 #. type: verbatim
9398 #: ../fish/guestfish-actions.pod:2489
9399 #, no-wrap
9400 msgid ""
9401 " lchown owner group path\n"
9402 "\n"
9403 msgstr ""
9404
9405 #. type: textblock
9406 #: ../fish/guestfish-actions.pod:2491
9407 msgid ""
9408 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
9409 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9410 "target."
9411 msgstr ""
9412
9413 #. type: =head2
9414 #: ../fish/guestfish-actions.pod:2499
9415 msgid "lgetxattr"
9416 msgstr ""
9417
9418 #. type: verbatim
9419 #: ../fish/guestfish-actions.pod:2501
9420 #, no-wrap
9421 msgid ""
9422 " lgetxattr path name\n"
9423 "\n"
9424 msgstr ""
9425
9426 #. type: textblock
9427 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3673
9428 msgid ""
9429 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
9430 "is a symlink, then this call returns an extended attribute from the symlink."
9431 msgstr ""
9432
9433 #. type: textblock
9434 #: ../fish/guestfish-actions.pod:2517
9435 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
9436 msgstr ""
9437
9438 #. type: =head2
9439 #: ../fish/guestfish-actions.pod:2519
9440 msgid "lgetxattrs"
9441 msgstr ""
9442
9443 #. type: verbatim
9444 #: ../fish/guestfish-actions.pod:2521
9445 #, no-wrap
9446 msgid ""
9447 " lgetxattrs path\n"
9448 "\n"
9449 msgstr ""
9450
9451 #. type: textblock
9452 #: ../fish/guestfish-actions.pod:2523
9453 msgid ""
9454 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
9455 "it returns the extended attributes of the link itself."
9456 msgstr ""
9457
9458 #. type: =head2
9459 #: ../fish/guestfish-actions.pod:2527
9460 msgid "list-9p"
9461 msgstr ""
9462
9463 #. type: verbatim
9464 #: ../fish/guestfish-actions.pod:2529
9465 #, no-wrap
9466 msgid ""
9467 " list-9p\n"
9468 "\n"
9469 msgstr ""
9470
9471 #. type: textblock
9472 #: ../fish/guestfish-actions.pod:2531 ../src/guestfs-actions.pod:3716
9473 msgid ""
9474 "List all 9p filesystems attached to the guest.  A list of mount tags is "
9475 "returned."
9476 msgstr ""
9477
9478 #. type: =head2
9479 #: ../fish/guestfish-actions.pod:2534
9480 msgid "list-devices"
9481 msgstr ""
9482
9483 #. type: verbatim
9484 #: ../fish/guestfish-actions.pod:2536
9485 #, no-wrap
9486 msgid ""
9487 " list-devices\n"
9488 "\n"
9489 msgstr ""
9490
9491 #. type: textblock
9492 #: ../fish/guestfish-actions.pod:2538 ../src/guestfs-actions.pod:3730
9493 msgid "List all the block devices."
9494 msgstr ""
9495
9496 #. type: textblock
9497 #: ../fish/guestfish-actions.pod:2540 ../src/guestfs-actions.pod:3732
9498 msgid "The full block device names are returned, eg. C</dev/sda>."
9499 msgstr ""
9500
9501 #. type: =head2
9502 #: ../fish/guestfish-actions.pod:2544
9503 msgid "list-dm-devices"
9504 msgstr ""
9505
9506 #. type: verbatim
9507 #: ../fish/guestfish-actions.pod:2546
9508 #, no-wrap
9509 msgid ""
9510 " list-dm-devices\n"
9511 "\n"
9512 msgstr ""
9513
9514 #. type: textblock
9515 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3747
9516 msgid "List all device mapper devices."
9517 msgstr ""
9518
9519 #. type: textblock
9520 #: ../fish/guestfish-actions.pod:2550
9521 msgid ""
9522 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9523 "previous call to L</luks-open>."
9524 msgstr ""
9525
9526 #. type: textblock
9527 #: ../fish/guestfish-actions.pod:2553
9528 msgid ""
9529 "Device mapper devices which correspond to logical volumes are I<not> "
9530 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9531 msgstr ""
9532
9533 #. type: =head2
9534 #: ../fish/guestfish-actions.pod:2557
9535 msgid "list-filesystems"
9536 msgstr ""
9537
9538 #. type: verbatim
9539 #: ../fish/guestfish-actions.pod:2559
9540 #, no-wrap
9541 msgid ""
9542 " list-filesystems\n"
9543 "\n"
9544 msgstr ""
9545
9546 #. type: textblock
9547 #: ../fish/guestfish-actions.pod:2561 ../src/guestfs-actions.pod:3767
9548 msgid ""
9549 "This inspection command looks for filesystems on partitions, block devices "
9550 "and logical volumes, returning a list of devices containing filesystems and "
9551 "their type."
9552 msgstr ""
9553
9554 #. type: textblock
9555 #: ../fish/guestfish-actions.pod:2565 ../src/guestfs-actions.pod:3771
9556 msgid ""
9557 "The return value is a hash, where the keys are the devices containing "
9558 "filesystems, and the values are the filesystem types.  For example:"
9559 msgstr ""
9560
9561 #. type: verbatim
9562 #: ../fish/guestfish-actions.pod:2569 ../src/guestfs-actions.pod:3775
9563 #, no-wrap
9564 msgid ""
9565 " \"/dev/sda1\" => \"ntfs\"\n"
9566 " \"/dev/sda2\" => \"ext2\"\n"
9567 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9568 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9569 "\n"
9570 msgstr ""
9571
9572 #. type: textblock
9573 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
9574 msgid ""
9575 "The value can have the special value \"unknown\", meaning the content of the "
9576 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9577 msgstr ""
9578
9579 #. type: textblock
9580 #: ../fish/guestfish-actions.pod:2578
9581 msgid ""
9582 "This command runs other libguestfs commands, which might include L</mount> "
9583 "and L</umount>, and therefore you should use this soon after launch and only "
9584 "when nothing is mounted."
9585 msgstr ""
9586
9587 #. type: textblock
9588 #: ../fish/guestfish-actions.pod:2582
9589 msgid ""
9590 "Not all of the filesystems returned will be mountable.  In particular, swap "
9591 "partitions are returned in the list.  Also this command does not check that "
9592 "each filesystem found is valid and mountable, and some filesystems might be "
9593 "mountable but require special options.  Filesystems may not all belong to a "
9594 "single logical operating system (use L</inspect-os> to look for OSes)."
9595 msgstr ""
9596
9597 #. type: =head2
9598 #: ../fish/guestfish-actions.pod:2590
9599 msgid "list-partitions"
9600 msgstr ""
9601
9602 #. type: verbatim
9603 #: ../fish/guestfish-actions.pod:2592
9604 #, no-wrap
9605 msgid ""
9606 " list-partitions\n"
9607 "\n"
9608 msgstr ""
9609
9610 #. type: textblock
9611 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3809
9612 msgid "List all the partitions detected on all block devices."
9613 msgstr ""
9614
9615 #. type: textblock
9616 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3811
9617 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9618 msgstr ""
9619
9620 #. type: textblock
9621 #: ../fish/guestfish-actions.pod:2598
9622 msgid ""
9623 "This does not return logical volumes.  For that you will need to call L</"
9624 "lvs>."
9625 msgstr ""
9626
9627 #. type: =head2
9628 #: ../fish/guestfish-actions.pod:2603
9629 msgid "ll"
9630 msgstr ""
9631
9632 #. type: verbatim
9633 #: ../fish/guestfish-actions.pod:2605
9634 #, no-wrap
9635 msgid ""
9636 " ll directory\n"
9637 "\n"
9638 msgstr ""
9639
9640 #. type: textblock
9641 #: ../fish/guestfish-actions.pod:2607 ../src/guestfs-actions.pod:3830
9642 msgid ""
9643 "List the files in C<directory> (relative to the root directory, there is no "
9644 "cwd) in the format of 'ls -la'."
9645 msgstr ""
9646
9647 #. type: textblock
9648 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3833
9649 msgid ""
9650 "This command is mostly useful for interactive sessions.  It is I<not> "
9651 "intended that you try to parse the output string."
9652 msgstr ""
9653
9654 #. type: =head2
9655 #: ../fish/guestfish-actions.pod:2613
9656 msgid "ln"
9657 msgstr ""
9658
9659 #. type: verbatim
9660 #: ../fish/guestfish-actions.pod:2615
9661 #, no-wrap
9662 msgid ""
9663 " ln target linkname\n"
9664 "\n"
9665 msgstr ""
9666
9667 #. type: textblock
9668 #: ../fish/guestfish-actions.pod:2617 ../src/guestfs-actions.pod:3848
9669 msgid "This command creates a hard link using the C<ln> command."
9670 msgstr ""
9671
9672 #. type: =head2
9673 #: ../fish/guestfish-actions.pod:2619
9674 msgid "ln-f"
9675 msgstr ""
9676
9677 #. type: verbatim
9678 #: ../fish/guestfish-actions.pod:2621
9679 #, no-wrap
9680 msgid ""
9681 " ln-f target linkname\n"
9682 "\n"
9683 msgstr ""
9684
9685 #. type: textblock
9686 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3861
9687 msgid ""
9688 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
9689 "option removes the link (C<linkname>) if it exists already."
9690 msgstr ""
9691
9692 #. type: =head2
9693 #: ../fish/guestfish-actions.pod:2626
9694 msgid "ln-s"
9695 msgstr ""
9696
9697 #. type: verbatim
9698 #: ../fish/guestfish-actions.pod:2628
9699 #, no-wrap
9700 msgid ""
9701 " ln-s target linkname\n"
9702 "\n"
9703 msgstr ""
9704
9705 #. type: textblock
9706 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3875
9707 msgid "This command creates a symbolic link using the C<ln -s> command."
9708 msgstr ""
9709
9710 #. type: =head2
9711 #: ../fish/guestfish-actions.pod:2632
9712 msgid "ln-sf"
9713 msgstr ""
9714
9715 #. type: verbatim
9716 #: ../fish/guestfish-actions.pod:2634
9717 #, no-wrap
9718 msgid ""
9719 " ln-sf target linkname\n"
9720 "\n"
9721 msgstr ""
9722
9723 #. type: textblock
9724 #: ../fish/guestfish-actions.pod:2636 ../src/guestfs-actions.pod:3888
9725 msgid ""
9726 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
9727 "option removes the link (C<linkname>) if it exists already."
9728 msgstr ""
9729
9730 #. type: =head2
9731 #: ../fish/guestfish-actions.pod:2639
9732 msgid "lremovexattr"
9733 msgstr ""
9734
9735 #. type: verbatim
9736 #: ../fish/guestfish-actions.pod:2641
9737 #, no-wrap
9738 msgid ""
9739 " lremovexattr xattr path\n"
9740 "\n"
9741 msgstr ""
9742
9743 #. type: textblock
9744 #: ../fish/guestfish-actions.pod:2643
9745 msgid ""
9746 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
9747 "it removes an extended attribute of the link itself."
9748 msgstr ""
9749
9750 #. type: =head2
9751 #: ../fish/guestfish-actions.pod:2647
9752 msgid "ls"
9753 msgstr ""
9754
9755 #. type: verbatim
9756 #: ../fish/guestfish-actions.pod:2649
9757 #, no-wrap
9758 msgid ""
9759 " ls directory\n"
9760 "\n"
9761 msgstr ""
9762
9763 #. type: textblock
9764 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3916
9765 msgid ""
9766 "List the files in C<directory> (relative to the root directory, there is no "
9767 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
9768 msgstr ""
9769
9770 #. type: textblock
9771 #: ../fish/guestfish-actions.pod:2655
9772 msgid ""
9773 "This command is mostly useful for interactive sessions.  Programs should "
9774 "probably use L</readdir> instead."
9775 msgstr ""
9776
9777 #. type: =head2
9778 #: ../fish/guestfish-actions.pod:2658
9779 msgid "lsetxattr"
9780 msgstr ""
9781
9782 #. type: verbatim
9783 #: ../fish/guestfish-actions.pod:2660
9784 #, no-wrap
9785 msgid ""
9786 " lsetxattr xattr val vallen path\n"
9787 "\n"
9788 msgstr ""
9789
9790 #. type: textblock
9791 #: ../fish/guestfish-actions.pod:2662
9792 msgid ""
9793 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
9794 "sets an extended attribute of the link itself."
9795 msgstr ""
9796
9797 #. type: =head2
9798 #: ../fish/guestfish-actions.pod:2666
9799 msgid "lstat"
9800 msgstr ""
9801
9802 #. type: verbatim
9803 #: ../fish/guestfish-actions.pod:2668
9804 #, no-wrap
9805 msgid ""
9806 " lstat path\n"
9807 "\n"
9808 msgstr ""
9809
9810 #. type: textblock
9811 #: ../fish/guestfish-actions.pod:2670 ../fish/guestfish-actions.pod:4478
9812 #: ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:6731
9813 msgid "Returns file information for the given C<path>."
9814 msgstr ""
9815
9816 #. type: textblock
9817 #: ../fish/guestfish-actions.pod:2672
9818 msgid ""
9819 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
9820 "the link is stat-ed, not the file it refers to."
9821 msgstr ""
9822
9823 #. type: textblock
9824 #: ../fish/guestfish-actions.pod:2676 ../src/guestfs-actions.pod:3958
9825 msgid "This is the same as the C<lstat(2)> system call."
9826 msgstr ""
9827
9828 #. type: =head2
9829 #: ../fish/guestfish-actions.pod:2678
9830 msgid "lstatlist"
9831 msgstr ""
9832
9833 #. type: verbatim
9834 #: ../fish/guestfish-actions.pod:2680
9835 #, no-wrap
9836 msgid ""
9837 " lstatlist path 'names ...'\n"
9838 "\n"
9839 msgstr ""
9840
9841 #. type: textblock
9842 #: ../fish/guestfish-actions.pod:2682
9843 msgid ""
9844 "This call allows you to perform the L</lstat> operation on multiple files, "
9845 "where all files are in the directory C<path>.  C<names> is the list of files "
9846 "from this directory."
9847 msgstr ""
9848
9849 #. type: textblock
9850 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3977
9851 msgid ""
9852 "On return you get a list of stat structs, with a one-to-one correspondence "
9853 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9854 "then the C<ino> field of that structure is set to C<-1>."
9855 msgstr ""
9856
9857 #. type: textblock
9858 #: ../fish/guestfish-actions.pod:2691
9859 msgid ""
9860 "This call is intended for programs that want to efficiently list a directory "
9861 "contents without making many round-trips.  See also L</lxattrlist> for a "
9862 "similarly efficient call for getting extended attributes.  Very long "
9863 "directory listings might cause the protocol message size to be exceeded, "
9864 "causing this call to fail.  The caller must split up such requests into "
9865 "smaller groups of names."
9866 msgstr ""
9867
9868 #. type: =head2
9869 #: ../fish/guestfish-actions.pod:2699
9870 msgid "luks-add-key"
9871 msgstr ""
9872
9873 #. type: verbatim
9874 #: ../fish/guestfish-actions.pod:2701
9875 #, no-wrap
9876 msgid ""
9877 " luks-add-key device keyslot\n"
9878 "\n"
9879 msgstr ""
9880
9881 #. type: textblock
9882 #: ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:4005
9883 msgid ""
9884 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9885 "existing key, and is used to access the device.  C<newkey> is the new key to "
9886 "add.  C<keyslot> is the key slot that will be replaced."
9887 msgstr ""
9888
9889 #. type: textblock
9890 #: ../fish/guestfish-actions.pod:2708
9891 msgid ""
9892 "Note that if C<keyslot> already contains a key, then this command will "
9893 "fail.  You have to use L</luks-kill-slot> first to remove that key."
9894 msgstr ""
9895
9896 #. type: textblock
9897 #: ../fish/guestfish-actions.pod:2712 ../fish/guestfish-actions.pod:2734
9898 #: ../fish/guestfish-actions.pod:2747 ../fish/guestfish-actions.pod:2761
9899 #: ../fish/guestfish-actions.pod:2787 ../fish/guestfish-actions.pod:2797
9900 msgid ""
9901 "This command has one or more key or passphrase parameters.  Guestfish will "
9902 "prompt for these separately."
9903 msgstr ""
9904
9905 #. type: =head2
9906 #: ../fish/guestfish-actions.pod:2715
9907 msgid "luks-close"
9908 msgstr ""
9909
9910 #. type: verbatim
9911 #: ../fish/guestfish-actions.pod:2717
9912 #, no-wrap
9913 msgid ""
9914 " luks-close device\n"
9915 "\n"
9916 msgstr ""
9917
9918 #. type: textblock
9919 #: ../fish/guestfish-actions.pod:2719
9920 msgid ""
9921 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
9922 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
9923 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
9924 "block device."
9925 msgstr ""
9926
9927 #. type: =head2
9928 #: ../fish/guestfish-actions.pod:2725
9929 msgid "luks-format"
9930 msgstr ""
9931
9932 #. type: verbatim
9933 #: ../fish/guestfish-actions.pod:2727
9934 #, no-wrap
9935 msgid ""
9936 " luks-format device keyslot\n"
9937 "\n"
9938 msgstr ""
9939
9940 #. type: textblock
9941 #: ../fish/guestfish-actions.pod:2729 ../src/guestfs-actions.pod:4046
9942 msgid ""
9943 "This command erases existing data on C<device> and formats the device as a "
9944 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9945 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9946 msgstr ""
9947
9948 #. type: textblock
9949 #: ../fish/guestfish-actions.pod:2737 ../fish/guestfish-actions.pod:2750
9950 #: ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:3498
9951 #: ../fish/guestfish-actions.pod:4024 ../fish/guestfish-actions.pod:4349
9952 #: ../fish/guestfish-actions.pod:4372 ../fish/guestfish-actions.pod:4394
9953 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:4053
9954 #: ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4219
9955 #: ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:6110
9956 #: ../src/guestfs-actions.pod:6545 ../src/guestfs-actions.pod:6575
9957 #: ../src/guestfs-actions.pod:6608 ../src/guestfs-actions.pod:7799
9958 msgid ""
9959 "B<This command is dangerous.  Without careful use you can easily destroy all "
9960 "your data>."
9961 msgstr ""
9962
9963 #. type: =head2
9964 #: ../fish/guestfish-actions.pod:2740
9965 msgid "luks-format-cipher"
9966 msgstr ""
9967
9968 #. type: verbatim
9969 #: ../fish/guestfish-actions.pod:2742
9970 #, no-wrap
9971 msgid ""
9972 " luks-format-cipher device keyslot cipher\n"
9973 "\n"
9974 msgstr ""
9975
9976 #. type: textblock
9977 #: ../fish/guestfish-actions.pod:2744
9978 msgid ""
9979 "This command is the same as L</luks-format> but it also allows you to set "
9980 "the C<cipher> used."
9981 msgstr ""
9982
9983 #. type: =head2
9984 #: ../fish/guestfish-actions.pod:2753
9985 msgid "luks-kill-slot"
9986 msgstr ""
9987
9988 #. type: verbatim
9989 #: ../fish/guestfish-actions.pod:2755
9990 #, no-wrap
9991 msgid ""
9992 " luks-kill-slot device keyslot\n"
9993 "\n"
9994 msgstr ""
9995
9996 #. type: textblock
9997 #: ../fish/guestfish-actions.pod:2757 ../src/guestfs-actions.pod:4093
9998 msgid ""
9999 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10000 "device C<device>.  C<key> must be one of the I<other> keys."
10001 msgstr ""
10002
10003 #. type: =head2
10004 #: ../fish/guestfish-actions.pod:2764
10005 msgid "luks-open"
10006 msgstr ""
10007
10008 #. type: verbatim
10009 #: ../fish/guestfish-actions.pod:2766
10010 #, no-wrap
10011 msgid ""
10012 " luks-open device mapname\n"
10013 "\n"
10014 msgstr ""
10015
10016 #. type: textblock
10017 #: ../fish/guestfish-actions.pod:2768 ../src/guestfs-actions.pod:4113
10018 msgid ""
10019 "This command opens a block device which has been encrypted according to the "
10020 "Linux Unified Key Setup (LUKS) standard."
10021 msgstr ""
10022
10023 #. type: textblock
10024 #: ../fish/guestfish-actions.pod:2771 ../src/guestfs-actions.pod:4116
10025 msgid "C<device> is the encrypted block device or partition."
10026 msgstr ""
10027
10028 #. type: textblock
10029 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10030 msgid ""
10031 "The caller must supply one of the keys associated with the LUKS block "
10032 "device, in the C<key> parameter."
10033 msgstr ""
10034
10035 #. type: textblock
10036 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10037 msgid ""
10038 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10039 "writes to this block device are decrypted from and encrypted to the "
10040 "underlying C<device> respectively."
10041 msgstr ""
10042
10043 #. type: textblock
10044 #: ../fish/guestfish-actions.pod:2780
10045 msgid ""
10046 "If this block device contains LVM volume groups, then calling L</vgscan> "
10047 "followed by L</vg-activate-all> will make them visible."
10048 msgstr ""
10049
10050 #. type: textblock
10051 #: ../fish/guestfish-actions.pod:2784
10052 msgid "Use L</list-dm-devices> to list all device mapper devices."
10053 msgstr ""
10054
10055 #. type: =head2
10056 #: ../fish/guestfish-actions.pod:2790
10057 msgid "luks-open-ro"
10058 msgstr ""
10059
10060 #. type: verbatim
10061 #: ../fish/guestfish-actions.pod:2792
10062 #, no-wrap
10063 msgid ""
10064 " luks-open-ro device mapname\n"
10065 "\n"
10066 msgstr ""
10067
10068 #. type: textblock
10069 #: ../fish/guestfish-actions.pod:2794
10070 msgid ""
10071 "This is the same as L</luks-open> except that a read-only mapping is created."
10072 msgstr ""
10073
10074 #. type: =head2
10075 #: ../fish/guestfish-actions.pod:2800
10076 msgid "lvcreate"
10077 msgstr ""
10078
10079 #. type: verbatim
10080 #: ../fish/guestfish-actions.pod:2802
10081 #, no-wrap
10082 msgid ""
10083 " lvcreate logvol volgroup mbytes\n"
10084 "\n"
10085 msgstr ""
10086
10087 #. type: textblock
10088 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4167
10089 msgid ""
10090 "This creates an LVM logical volume called C<logvol> on the volume group "
10091 "C<volgroup>, with C<size> megabytes."
10092 msgstr ""
10093
10094 #. type: =head2
10095 #: ../fish/guestfish-actions.pod:2807
10096 msgid "lvm-canonical-lv-name"
10097 msgstr ""
10098
10099 #. type: verbatim
10100 #: ../fish/guestfish-actions.pod:2809
10101 #, no-wrap
10102 msgid ""
10103 " lvm-canonical-lv-name lvname\n"
10104 "\n"
10105 msgstr ""
10106
10107 #. type: textblock
10108 #: ../fish/guestfish-actions.pod:2811 ../src/guestfs-actions.pod:4180
10109 msgid ""
10110 "This converts alternative naming schemes for LVs that you might find to the "
10111 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10112 "LV>."
10113 msgstr ""
10114
10115 #. type: textblock
10116 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4184
10117 msgid ""
10118 "This command returns an error if the C<lvname> parameter does not refer to a "
10119 "logical volume."
10120 msgstr ""
10121
10122 #. type: textblock
10123 #: ../fish/guestfish-actions.pod:2818
10124 msgid "See also L</is-lv>."
10125 msgstr ""
10126
10127 #. type: =head2
10128 #: ../fish/guestfish-actions.pod:2820
10129 msgid "lvm-clear-filter"
10130 msgstr ""
10131
10132 #. type: verbatim
10133 #: ../fish/guestfish-actions.pod:2822
10134 #, no-wrap
10135 msgid ""
10136 " lvm-clear-filter\n"
10137 "\n"
10138 msgstr ""
10139
10140 #. type: textblock
10141 #: ../fish/guestfish-actions.pod:2824
10142 msgid ""
10143 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10144 "block device."
10145 msgstr ""
10146
10147 #. type: textblock
10148 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2858
10149 #: ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4244
10150 msgid ""
10151 "This command also clears the LVM cache and performs a volume group scan."
10152 msgstr ""
10153
10154 #. type: =head2
10155 #: ../fish/guestfish-actions.pod:2830
10156 msgid "lvm-remove-all"
10157 msgstr ""
10158
10159 #. type: verbatim
10160 #: ../fish/guestfish-actions.pod:2832
10161 #, no-wrap
10162 msgid ""
10163 " lvm-remove-all\n"
10164 "\n"
10165 msgstr ""
10166
10167 #. type: textblock
10168 #: ../fish/guestfish-actions.pod:2834 ../src/guestfs-actions.pod:4214
10169 msgid ""
10170 "This command removes all LVM logical volumes, volume groups and physical "
10171 "volumes."
10172 msgstr ""
10173
10174 #. type: =head2
10175 #: ../fish/guestfish-actions.pod:2840
10176 msgid "lvm-set-filter"
10177 msgstr ""
10178
10179 #. type: verbatim
10180 #: ../fish/guestfish-actions.pod:2842
10181 #, no-wrap
10182 msgid ""
10183 " lvm-set-filter 'devices ...'\n"
10184 "\n"
10185 msgstr ""
10186
10187 #. type: textblock
10188 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4230
10189 msgid ""
10190 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10191 "block devices in the list C<devices>, and will ignore all other attached "
10192 "block devices."
10193 msgstr ""
10194
10195 #. type: textblock
10196 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4234
10197 msgid ""
10198 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10199 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10200 "there are two types of duplication possible: either cloned PVs/VGs which "
10201 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10202 "same name.  In normal operation you cannot create this situation, but you "
10203 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10204 "inside the LVM metadata."
10205 msgstr ""
10206
10207 #. type: textblock
10208 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4247
10209 msgid "You can filter whole block devices or individual partitions."
10210 msgstr ""
10211
10212 #. type: textblock
10213 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4249
10214 msgid ""
10215 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10216 "filesystem), even if you are not filtering out that VG."
10217 msgstr ""
10218
10219 #. type: =head2
10220 #: ../fish/guestfish-actions.pod:2867
10221 msgid "lvremove"
10222 msgstr ""
10223
10224 #. type: verbatim
10225 #: ../fish/guestfish-actions.pod:2869
10226 #, no-wrap
10227 msgid ""
10228 " lvremove device\n"
10229 "\n"
10230 msgstr ""
10231
10232 #. type: textblock
10233 #: ../fish/guestfish-actions.pod:2871 ../src/guestfs-actions.pod:4263
10234 msgid ""
10235 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10236 "LV, such as C</dev/VG/LV>."
10237 msgstr ""
10238
10239 #. type: textblock
10240 #: ../fish/guestfish-actions.pod:2874 ../src/guestfs-actions.pod:4266
10241 msgid ""
10242 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10243 "dev/VG>."
10244 msgstr ""
10245
10246 #. type: =head2
10247 #: ../fish/guestfish-actions.pod:2877
10248 msgid "lvrename"
10249 msgstr ""
10250
10251 #. type: verbatim
10252 #: ../fish/guestfish-actions.pod:2879
10253 #, no-wrap
10254 msgid ""
10255 " lvrename logvol newlogvol\n"
10256 "\n"
10257 msgstr ""
10258
10259 #. type: textblock
10260 #: ../fish/guestfish-actions.pod:2881 ../src/guestfs-actions.pod:4280
10261 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10262 msgstr ""
10263
10264 #. type: =head2
10265 #: ../fish/guestfish-actions.pod:2883
10266 msgid "lvresize"
10267 msgstr ""
10268
10269 #. type: verbatim
10270 #: ../fish/guestfish-actions.pod:2885
10271 #, no-wrap
10272 msgid ""
10273 " lvresize device mbytes\n"
10274 "\n"
10275 msgstr ""
10276
10277 #. type: textblock
10278 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4293
10279 msgid ""
10280 "This resizes (expands or shrinks) an existing LVM logical volume to "
10281 "C<mbytes>.  When reducing, data in the reduced part is lost."
10282 msgstr ""
10283
10284 #. type: =head2
10285 #: ../fish/guestfish-actions.pod:2891
10286 msgid "lvresize-free"
10287 msgstr ""
10288
10289 #. type: verbatim
10290 #: ../fish/guestfish-actions.pod:2893
10291 #, no-wrap
10292 msgid ""
10293 " lvresize-free lv percent\n"
10294 "\n"
10295 msgstr ""
10296
10297 #. type: textblock
10298 #: ../fish/guestfish-actions.pod:2895 ../src/guestfs-actions.pod:4308
10299 msgid ""
10300 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10301 "remaining free space in the volume group.  Commonly you would call this with "
10302 "pc = 100 which expands the logical volume as much as possible, using all "
10303 "remaining free space in the volume group."
10304 msgstr ""
10305
10306 #. type: =head2
10307 #: ../fish/guestfish-actions.pod:2901
10308 msgid "lvs"
10309 msgstr ""
10310
10311 #. type: verbatim
10312 #: ../fish/guestfish-actions.pod:2903
10313 #, no-wrap
10314 msgid ""
10315 " lvs\n"
10316 "\n"
10317 msgstr ""
10318
10319 #. type: textblock
10320 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4323
10321 msgid ""
10322 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10323 "(8)> command."
10324 msgstr ""
10325
10326 #. type: textblock
10327 #: ../fish/guestfish-actions.pod:2908 ../src/guestfs-actions.pod:4326
10328 msgid ""
10329 "This returns a list of the logical volume device names (eg. C</dev/"
10330 "VolGroup00/LogVol00>)."
10331 msgstr ""
10332
10333 #. type: textblock
10334 #: ../fish/guestfish-actions.pod:2911
10335 msgid "See also L</lvs-full>, L</list-filesystems>."
10336 msgstr ""
10337
10338 #. type: =head2
10339 #: ../fish/guestfish-actions.pod:2913
10340 msgid "lvs-full"
10341 msgstr ""
10342
10343 #. type: verbatim
10344 #: ../fish/guestfish-actions.pod:2915
10345 #, no-wrap
10346 msgid ""
10347 " lvs-full\n"
10348 "\n"
10349 msgstr ""
10350
10351 #. type: textblock
10352 #: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4342
10353 msgid ""
10354 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10355 "(8)> command.  The \"full\" version includes all fields."
10356 msgstr ""
10357
10358 #. type: =head2
10359 #: ../fish/guestfish-actions.pod:2920
10360 msgid "lvuuid"
10361 msgstr ""
10362
10363 #. type: verbatim
10364 #: ../fish/guestfish-actions.pod:2922
10365 #, no-wrap
10366 msgid ""
10367 " lvuuid device\n"
10368 "\n"
10369 msgstr ""
10370
10371 #. type: textblock
10372 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4357
10373 msgid "This command returns the UUID of the LVM LV C<device>."
10374 msgstr ""
10375
10376 #. type: =head2
10377 #: ../fish/guestfish-actions.pod:2926
10378 msgid "lxattrlist"
10379 msgstr ""
10380
10381 #. type: verbatim
10382 #: ../fish/guestfish-actions.pod:2928
10383 #, no-wrap
10384 msgid ""
10385 " lxattrlist path 'names ...'\n"
10386 "\n"
10387 msgstr ""
10388
10389 #. type: textblock
10390 #: ../fish/guestfish-actions.pod:2930 ../src/guestfs-actions.pod:4371
10391 msgid ""
10392 "This call allows you to get the extended attributes of multiple files, where "
10393 "all files are in the directory C<path>.  C<names> is the list of files from "
10394 "this directory."
10395 msgstr ""
10396
10397 #. type: textblock
10398 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4375
10399 msgid ""
10400 "On return you get a flat list of xattr structs which must be interpreted "
10401 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10402 "C<attrval> in this struct is zero-length to indicate there was an error "
10403 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10404 "number (the number of following attributes for this file, which could be C<"
10405 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10406 "for the first named file.  This repeats for the second and subsequent files."
10407 msgstr ""
10408
10409 #. type: textblock
10410 #: ../fish/guestfish-actions.pod:2944
10411 msgid ""
10412 "This call is intended for programs that want to efficiently list a directory "
10413 "contents without making many round-trips.  See also L</lstatlist> for a "
10414 "similarly efficient call for getting standard stats.  Very long directory "
10415 "listings might cause the protocol message size to be exceeded, causing this "
10416 "call to fail.  The caller must split up such requests into smaller groups of "
10417 "names."
10418 msgstr ""
10419
10420 #. type: =head2
10421 #: ../fish/guestfish-actions.pod:2952
10422 msgid "mkdir"
10423 msgstr ""
10424
10425 #. type: verbatim
10426 #: ../fish/guestfish-actions.pod:2954
10427 #, no-wrap
10428 msgid ""
10429 " mkdir path\n"
10430 "\n"
10431 msgstr ""
10432
10433 #. type: textblock
10434 #: ../fish/guestfish-actions.pod:2956 ../src/guestfs-actions.pod:4405
10435 msgid "Create a directory named C<path>."
10436 msgstr ""
10437
10438 #. type: =head2
10439 #: ../fish/guestfish-actions.pod:2958
10440 msgid "mkdir-mode"
10441 msgstr ""
10442
10443 #. type: verbatim
10444 #: ../fish/guestfish-actions.pod:2960
10445 #, no-wrap
10446 msgid ""
10447 " mkdir-mode path mode\n"
10448 "\n"
10449 msgstr ""
10450
10451 #. type: textblock
10452 #: ../fish/guestfish-actions.pod:2962 ../src/guestfs-actions.pod:4418
10453 msgid ""
10454 "This command creates a directory, setting the initial permissions of the "
10455 "directory to C<mode>."
10456 msgstr ""
10457
10458 #. type: textblock
10459 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4421
10460 msgid ""
10461 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10462 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10463 "other ways."
10464 msgstr ""
10465
10466 #. type: textblock
10467 #: ../fish/guestfish-actions.pod:2969
10468 msgid "See also L</mkdir>, L</umask>"
10469 msgstr ""
10470
10471 #. type: =head2
10472 #: ../fish/guestfish-actions.pod:2971
10473 msgid "mkdir-p"
10474 msgstr ""
10475
10476 #. type: verbatim
10477 #: ../fish/guestfish-actions.pod:2973
10478 #, no-wrap
10479 msgid ""
10480 " mkdir-p path\n"
10481 "\n"
10482 msgstr ""
10483
10484 #. type: textblock
10485 #: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4437
10486 msgid ""
10487 "Create a directory named C<path>, creating any parent directories as "
10488 "necessary.  This is like the C<mkdir -p> shell command."
10489 msgstr ""
10490
10491 #. type: =head2
10492 #: ../fish/guestfish-actions.pod:2978
10493 msgid "mkdtemp"
10494 msgstr ""
10495
10496 #. type: verbatim
10497 #: ../fish/guestfish-actions.pod:2980
10498 #, no-wrap
10499 msgid ""
10500 " mkdtemp template\n"
10501 "\n"
10502 msgstr ""
10503
10504 #. type: textblock
10505 #: ../fish/guestfish-actions.pod:2982 ../src/guestfs-actions.pod:4450
10506 msgid ""
10507 "This command creates a temporary directory.  The C<template> parameter "
10508 "should be a full pathname for the temporary directory name with the final "
10509 "six characters being \"XXXXXX\"."
10510 msgstr ""
10511
10512 #. type: textblock
10513 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
10514 msgid ""
10515 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10516 "being suitable for Windows filesystems."
10517 msgstr ""
10518
10519 #. type: textblock
10520 #: ../fish/guestfish-actions.pod:2990 ../src/guestfs-actions.pod:4458
10521 msgid "The name of the temporary directory that was created is returned."
10522 msgstr ""
10523
10524 #. type: textblock
10525 #: ../fish/guestfish-actions.pod:2993 ../src/guestfs-actions.pod:4461
10526 msgid "The temporary directory is created with mode 0700 and is owned by root."
10527 msgstr ""
10528
10529 #. type: textblock
10530 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4464
10531 msgid ""
10532 "The caller is responsible for deleting the temporary directory and its "
10533 "contents after use."
10534 msgstr ""
10535
10536 #. type: textblock
10537 #: ../fish/guestfish-actions.pod:2999 ../src/guestfs-actions.pod:4467
10538 msgid "See also: L<mkdtemp(3)>"
10539 msgstr ""
10540
10541 #. type: =head2
10542 #: ../fish/guestfish-actions.pod:3001
10543 msgid "mke2fs-J"
10544 msgstr ""
10545
10546 #. type: verbatim
10547 #: ../fish/guestfish-actions.pod:3003
10548 #, no-wrap
10549 msgid ""
10550 " mke2fs-J fstype blocksize device journal\n"
10551 "\n"
10552 msgstr ""
10553
10554 #. type: textblock
10555 #: ../fish/guestfish-actions.pod:3005 ../src/guestfs-actions.pod:4483
10556 msgid ""
10557 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10558 "C<journal>.  It is equivalent to the command:"
10559 msgstr ""
10560
10561 #. type: verbatim
10562 #: ../fish/guestfish-actions.pod:3009 ../src/guestfs-actions.pod:4487
10563 #, no-wrap
10564 msgid ""
10565 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10566 "\n"
10567 msgstr ""
10568
10569 #. type: textblock
10570 #: ../fish/guestfish-actions.pod:3011
10571 msgid "See also L</mke2journal>."
10572 msgstr ""
10573
10574 #. type: =head2
10575 #: ../fish/guestfish-actions.pod:3013
10576 msgid "mke2fs-JL"
10577 msgstr ""
10578
10579 #. type: verbatim
10580 #: ../fish/guestfish-actions.pod:3015
10581 #, no-wrap
10582 msgid ""
10583 " mke2fs-JL fstype blocksize device label\n"
10584 "\n"
10585 msgstr ""
10586
10587 #. type: textblock
10588 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4504
10589 msgid ""
10590 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10591 "the journal labeled C<label>."
10592 msgstr ""
10593
10594 #. type: textblock
10595 #: ../fish/guestfish-actions.pod:3020
10596 msgid "See also L</mke2journal-L>."
10597 msgstr ""
10598
10599 #. type: =head2
10600 #: ../fish/guestfish-actions.pod:3022
10601 msgid "mke2fs-JU"
10602 msgstr ""
10603
10604 #. type: verbatim
10605 #: ../fish/guestfish-actions.pod:3024
10606 #, no-wrap
10607 msgid ""
10608 " mke2fs-JU fstype blocksize device uuid\n"
10609 "\n"
10610 msgstr ""
10611
10612 #. type: textblock
10613 #: ../fish/guestfish-actions.pod:3026 ../src/guestfs-actions.pod:4522
10614 msgid ""
10615 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10616 "the journal with UUID C<uuid>."
10617 msgstr ""
10618
10619 #. type: textblock
10620 #: ../fish/guestfish-actions.pod:3029
10621 msgid "See also L</mke2journal-U>."
10622 msgstr ""
10623
10624 #. type: =head2
10625 #: ../fish/guestfish-actions.pod:3031
10626 msgid "mke2journal"
10627 msgstr ""
10628
10629 #. type: verbatim
10630 #: ../fish/guestfish-actions.pod:3033
10631 #, no-wrap
10632 msgid ""
10633 " mke2journal blocksize device\n"
10634 "\n"
10635 msgstr ""
10636
10637 #. type: textblock
10638 #: ../fish/guestfish-actions.pod:3035 ../src/guestfs-actions.pod:4538
10639 msgid ""
10640 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10641 "command:"
10642 msgstr ""
10643
10644 #. type: verbatim
10645 #: ../fish/guestfish-actions.pod:3038 ../src/guestfs-actions.pod:4541
10646 #, no-wrap
10647 msgid ""
10648 " mke2fs -O journal_dev -b blocksize device\n"
10649 "\n"
10650 msgstr ""
10651
10652 #. type: =head2
10653 #: ../fish/guestfish-actions.pod:3040
10654 msgid "mke2journal-L"
10655 msgstr ""
10656
10657 #. type: verbatim
10658 #: ../fish/guestfish-actions.pod:3042
10659 #, no-wrap
10660 msgid ""
10661 " mke2journal-L blocksize label device\n"
10662 "\n"
10663 msgstr ""
10664
10665 #. type: textblock
10666 #: ../fish/guestfish-actions.pod:3044 ../src/guestfs-actions.pod:4555
10667 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10668 msgstr ""
10669
10670 #. type: =head2
10671 #: ../fish/guestfish-actions.pod:3046
10672 msgid "mke2journal-U"
10673 msgstr ""
10674
10675 #. type: verbatim
10676 #: ../fish/guestfish-actions.pod:3048
10677 #, no-wrap
10678 msgid ""
10679 " mke2journal-U blocksize uuid device\n"
10680 "\n"
10681 msgstr ""
10682
10683 #. type: textblock
10684 #: ../fish/guestfish-actions.pod:3050 ../src/guestfs-actions.pod:4569
10685 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10686 msgstr ""
10687
10688 #. type: =head2
10689 #: ../fish/guestfish-actions.pod:3052
10690 msgid "mkfifo"
10691 msgstr ""
10692
10693 #. type: verbatim
10694 #: ../fish/guestfish-actions.pod:3054
10695 #, no-wrap
10696 msgid ""
10697 " mkfifo mode path\n"
10698 "\n"
10699 msgstr ""
10700
10701 #. type: textblock
10702 #: ../fish/guestfish-actions.pod:3056
10703 msgid ""
10704 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10705 "is just a convenient wrapper around L</mknod>."
10706 msgstr ""
10707
10708 #. type: =head2
10709 #: ../fish/guestfish-actions.pod:3062
10710 msgid "mkfs"
10711 msgstr ""
10712
10713 #. type: verbatim
10714 #: ../fish/guestfish-actions.pod:3064
10715 #, no-wrap
10716 msgid ""
10717 " mkfs fstype device\n"
10718 "\n"
10719 msgstr ""
10720
10721 #. type: textblock
10722 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4599
10723 msgid ""
10724 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10725 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10726 msgstr ""
10727
10728 #. type: =head2
10729 #: ../fish/guestfish-actions.pod:3070
10730 msgid "mkfs-b"
10731 msgstr ""
10732
10733 #. type: verbatim
10734 #: ../fish/guestfish-actions.pod:3072
10735 #, no-wrap
10736 msgid ""
10737 " mkfs-b fstype blocksize device\n"
10738 "\n"
10739 msgstr ""
10740
10741 #. type: textblock
10742 #: ../fish/guestfish-actions.pod:3074
10743 msgid ""
10744 "This call is similar to L</mkfs>, but it allows you to control the block "
10745 "size of the resulting filesystem.  Supported block sizes depend on the "
10746 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10747 msgstr ""
10748
10749 #. type: textblock
10750 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3106
10751 #: ../src/guestfs-actions.pod:4627 ../src/guestfs-actions.pod:4665
10752 msgid ""
10753 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10754 "cluster size."
10755 msgstr ""
10756
10757 #. type: textblock
10758 #: ../fish/guestfish-actions.pod:3082
10759 msgid ""
10760 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
10761 "instead."
10762 msgstr ""
10763
10764 #. type: =head2
10765 #: ../fish/guestfish-actions.pod:3089
10766 msgid "mkfs-opts"
10767 msgstr ""
10768
10769 #. type: verbatim
10770 #: ../fish/guestfish-actions.pod:3091
10771 #, no-wrap
10772 msgid ""
10773 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
10774 "\n"
10775 msgstr ""
10776
10777 #. type: textblock
10778 #: ../fish/guestfish-actions.pod:3093 ../src/guestfs-actions.pod:4652
10779 msgid ""
10780 "This function creates a filesystem on C<device>.  The filesystem type is "
10781 "C<fstype>, for example C<ext3>."
10782 msgstr ""
10783
10784 #. type: =item
10785 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4659
10786 msgid "C<blocksize>"
10787 msgstr ""
10788
10789 #. type: textblock
10790 #: ../fish/guestfish-actions.pod:3102 ../src/guestfs-actions.pod:4661
10791 msgid ""
10792 "The filesystem block size.  Supported block sizes depend on the filesystem "
10793 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10794 "filesystems."
10795 msgstr ""
10796
10797 #. type: textblock
10798 #: ../fish/guestfish-actions.pod:3109 ../src/guestfs-actions.pod:4668
10799 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10800 msgstr ""
10801
10802 #. type: =item
10803 #: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4670
10804 msgid "C<features>"
10805 msgstr ""
10806
10807 #. type: textblock
10808 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4672
10809 msgid "This passes the I<-O> parameter to the external mkfs program."
10810 msgstr ""
10811
10812 #. type: textblock
10813 #: ../fish/guestfish-actions.pod:3115 ../src/guestfs-actions.pod:4674
10814 msgid ""
10815 "For certain filesystem types, this allows extra filesystem features to be "
10816 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10817 msgstr ""
10818
10819 #. type: textblock
10820 #: ../fish/guestfish-actions.pod:3119 ../src/guestfs-actions.pod:4678
10821 msgid ""
10822 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10823 "type."
10824 msgstr ""
10825
10826 #. type: =item
10827 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4681
10828 msgid "C<inode>"
10829 msgstr ""
10830
10831 #. type: textblock
10832 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
10833 msgid ""
10834 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10835 "sets the inode size (only for ext2/3/4 filesystems at present)."
10836 msgstr ""
10837
10838 #. type: =item
10839 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
10840 msgid "C<sectorsize>"
10841 msgstr ""
10842
10843 #. type: textblock
10844 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
10845 msgid ""
10846 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10847 "sets sector size for ufs filesystem."
10848 msgstr ""
10849
10850 #. type: =head2
10851 #: ../fish/guestfish-actions.pod:3136
10852 msgid "mkmountpoint"
10853 msgstr ""
10854
10855 #. type: verbatim
10856 #: ../fish/guestfish-actions.pod:3138
10857 #, no-wrap
10858 msgid ""
10859 " mkmountpoint exemptpath\n"
10860 "\n"
10861 msgstr ""
10862
10863 #. type: textblock
10864 #: ../fish/guestfish-actions.pod:3140
10865 msgid ""
10866 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10867 "to create extra mountpoints before mounting the first filesystem."
10868 msgstr ""
10869
10870 #. type: textblock
10871 #: ../fish/guestfish-actions.pod:3144 ../src/guestfs-actions.pod:4731
10872 msgid ""
10873 "These calls are I<only> necessary in some very limited circumstances, mainly "
10874 "the case where you want to mount a mix of unrelated and/or read-only "
10875 "filesystems together."
10876 msgstr ""
10877
10878 #. type: textblock
10879 #: ../fish/guestfish-actions.pod:3148 ../src/guestfs-actions.pod:4735
10880 msgid ""
10881 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10882 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10883 "inside that.  You can unpack this as follows in guestfish:"
10884 msgstr ""
10885
10886 #. type: verbatim
10887 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
10888 #, no-wrap
10889 msgid ""
10890 " add-ro Fedora-11-i686-Live.iso\n"
10891 " run\n"
10892 " mkmountpoint /cd\n"
10893 " mkmountpoint /sqsh\n"
10894 " mkmountpoint /ext3fs\n"
10895 " mount /dev/sda /cd\n"
10896 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10897 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10898 "\n"
10899 msgstr ""
10900
10901 #. type: textblock
10902 #: ../fish/guestfish-actions.pod:3162 ../src/guestfs-actions.pod:4749
10903 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10904 msgstr ""
10905
10906 #. type: textblock
10907 #: ../fish/guestfish-actions.pod:3164
10908 msgid ""
10909 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10910 "unexpected errors if you try to mix these calls.  It is safest to manually "
10911 "unmount filesystems and remove mountpoints after use."
10912 msgstr ""
10913
10914 #. type: textblock
10915 #: ../fish/guestfish-actions.pod:3168
10916 msgid ""
10917 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10918 "for this to work for manual mountpoints, you must ensure that the innermost "
10919 "mountpoints have the longest pathnames, as in the example code above."
10920 msgstr ""
10921
10922 #. type: textblock
10923 #: ../fish/guestfish-actions.pod:3173 ../src/guestfs-actions.pod:4760
10924 msgid ""
10925 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10926 msgstr ""
10927
10928 #. type: textblock
10929 #: ../fish/guestfish-actions.pod:3175
10930 msgid ""
10931 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
10932 "L</umount-all> to be called when the handle is closed which can also trigger "
10933 "these issues."
10934 msgstr ""
10935
10936 #. type: =head2
10937 #: ../fish/guestfish-actions.pod:3179
10938 msgid "mknod"
10939 msgstr ""
10940
10941 #. type: verbatim
10942 #: ../fish/guestfish-actions.pod:3181
10943 #, no-wrap
10944 msgid ""
10945 " mknod mode devmajor devminor path\n"
10946 "\n"
10947 msgstr ""
10948
10949 #. type: textblock
10950 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4779
10951 msgid ""
10952 "This call creates block or character special devices, or named pipes (FIFOs)."
10953 msgstr ""
10954
10955 #. type: textblock
10956 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4782
10957 msgid ""
10958 "The C<mode> parameter should be the mode, using the standard constants.  "
10959 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10960 "used when creating block and character special devices."
10961 msgstr ""
10962
10963 #. type: textblock
10964 #: ../fish/guestfish-actions.pod:3191
10965 msgid ""
10966 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10967 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10968 "regular file).  These constants are available in the standard Linux header "
10969 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
10970 "wrappers around this command which bitwise OR in the appropriate constant "
10971 "for you."
10972 msgstr ""
10973
10974 #. type: =head2
10975 #: ../fish/guestfish-actions.pod:3201
10976 msgid "mknod-b"
10977 msgstr ""
10978
10979 #. type: verbatim
10980 #: ../fish/guestfish-actions.pod:3203
10981 #, no-wrap
10982 msgid ""
10983 " mknod-b mode devmajor devminor path\n"
10984 "\n"
10985 msgstr ""
10986
10987 #. type: textblock
10988 #: ../fish/guestfish-actions.pod:3205
10989 msgid ""
10990 "This call creates a block device node called C<path> with mode C<mode> and "
10991 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10992 "wrapper around L</mknod>."
10993 msgstr ""
10994
10995 #. type: =head2
10996 #: ../fish/guestfish-actions.pod:3211
10997 msgid "mknod-c"
10998 msgstr ""
10999
11000 #. type: verbatim
11001 #: ../fish/guestfish-actions.pod:3213
11002 #, no-wrap
11003 msgid ""
11004 " mknod-c mode devmajor devminor path\n"
11005 "\n"
11006 msgstr ""
11007
11008 #. type: textblock
11009 #: ../fish/guestfish-actions.pod:3215
11010 msgid ""
11011 "This call creates a char device node called C<path> with mode C<mode> and "
11012 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11013 "wrapper around L</mknod>."
11014 msgstr ""
11015
11016 #. type: =head2
11017 #: ../fish/guestfish-actions.pod:3221
11018 msgid "mkswap"
11019 msgstr ""
11020
11021 #. type: verbatim
11022 #: ../fish/guestfish-actions.pod:3223
11023 #, no-wrap
11024 msgid ""
11025 " mkswap device\n"
11026 "\n"
11027 msgstr ""
11028
11029 #. type: textblock
11030 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4845
11031 msgid "Create a swap partition on C<device>."
11032 msgstr ""
11033
11034 #. type: =head2
11035 #: ../fish/guestfish-actions.pod:3227
11036 msgid "mkswap-L"
11037 msgstr ""
11038
11039 #. type: verbatim
11040 #: ../fish/guestfish-actions.pod:3229
11041 #, no-wrap
11042 msgid ""
11043 " mkswap-L label device\n"
11044 "\n"
11045 msgstr ""
11046
11047 #. type: textblock
11048 #: ../fish/guestfish-actions.pod:3231 ../src/guestfs-actions.pod:4858
11049 msgid "Create a swap partition on C<device> with label C<label>."
11050 msgstr ""
11051
11052 #. type: textblock
11053 #: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4860
11054 msgid ""
11055 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11056 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11057 "or swap tools."
11058 msgstr ""
11059
11060 #. type: =head2
11061 #: ../fish/guestfish-actions.pod:3237
11062 msgid "mkswap-U"
11063 msgstr ""
11064
11065 #. type: verbatim
11066 #: ../fish/guestfish-actions.pod:3239
11067 #, no-wrap
11068 msgid ""
11069 " mkswap-U uuid device\n"
11070 "\n"
11071 msgstr ""
11072
11073 #. type: textblock
11074 #: ../fish/guestfish-actions.pod:3241 ../src/guestfs-actions.pod:4875
11075 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11076 msgstr ""
11077
11078 #. type: =head2
11079 #: ../fish/guestfish-actions.pod:3243
11080 msgid "mkswap-file"
11081 msgstr ""
11082
11083 #. type: verbatim
11084 #: ../fish/guestfish-actions.pod:3245
11085 #, no-wrap
11086 msgid ""
11087 " mkswap-file path\n"
11088 "\n"
11089 msgstr ""
11090
11091 #. type: textblock
11092 #: ../fish/guestfish-actions.pod:3247 ../src/guestfs-actions.pod:4887
11093 msgid "Create a swap file."
11094 msgstr ""
11095
11096 #. type: textblock
11097 #: ../fish/guestfish-actions.pod:3249
11098 msgid ""
11099 "This command just writes a swap file signature to an existing file.  To "
11100 "create the file itself, use something like L</fallocate>."
11101 msgstr ""
11102
11103 #. type: =head2
11104 #: ../fish/guestfish-actions.pod:3252
11105 msgid "modprobe"
11106 msgstr ""
11107
11108 #. type: verbatim
11109 #: ../fish/guestfish-actions.pod:3254
11110 #, no-wrap
11111 msgid ""
11112 " modprobe modulename\n"
11113 "\n"
11114 msgstr ""
11115
11116 #. type: textblock
11117 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:4902
11118 msgid "This loads a kernel module in the appliance."
11119 msgstr ""
11120
11121 #. type: textblock
11122 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4904
11123 msgid ""
11124 "The kernel module must have been whitelisted when libguestfs was built (see "
11125 "C<appliance/kmod.whitelist.in> in the source)."
11126 msgstr ""
11127
11128 #. type: =head2
11129 #: ../fish/guestfish-actions.pod:3261
11130 msgid "mount"
11131 msgstr ""
11132
11133 #. type: verbatim
11134 #: ../fish/guestfish-actions.pod:3263
11135 #, no-wrap
11136 msgid ""
11137 " mount device mountpoint\n"
11138 "\n"
11139 msgstr ""
11140
11141 #. type: textblock
11142 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:4925
11143 msgid ""
11144 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11145 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11146 "those block devices contain partitions, they will have the usual names (eg. "
11147 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11148 msgstr ""
11149
11150 #. type: textblock
11151 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:4931
11152 msgid ""
11153 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11154 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11155 "mounted on directories which already exist."
11156 msgstr ""
11157
11158 #. type: textblock
11159 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4936
11160 msgid ""
11161 "The mounted filesystem is writable, if we have sufficient permissions on the "
11162 "underlying device."
11163 msgstr ""
11164
11165 #. type: textblock
11166 #: ../fish/guestfish-actions.pod:3279
11167 msgid ""
11168 "B<Important note:> When you use this call, the filesystem options C<sync> "
11169 "and C<noatime> are set implicitly.  This was originally done because we "
11170 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11171 "very large negative performance impact and negligible effect on "
11172 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11173 "code that needs performance, and instead use L</mount-options> (use an empty "
11174 "string for the first parameter if you don't want any options)."
11175 msgstr ""
11176
11177 #. type: textblock
11178 #: ../fish/guestfish-actions.pod:3289
11179 msgid ""
11180 "I<This function is deprecated.> In new code, use the L</mount_options> call "
11181 "instead."
11182 msgstr ""
11183
11184 #. type: =head2
11185 #: ../fish/guestfish-actions.pod:3296
11186 msgid "mount-9p"
11187 msgstr ""
11188
11189 #. type: verbatim
11190 #: ../fish/guestfish-actions.pod:3298
11191 #, no-wrap
11192 msgid ""
11193 " mount-9p mounttag mountpoint [options:..]\n"
11194 "\n"
11195 msgstr ""
11196
11197 #. type: textblock
11198 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:4968
11199 msgid ""
11200 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11201 "C<mountpoint>."
11202 msgstr ""
11203
11204 #. type: textblock
11205 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:4971
11206 msgid ""
11207 "If required, C<trans=virtio> will be automatically added to the options.  "
11208 "Any other options required can be passed in the optional C<options> "
11209 "parameter."
11210 msgstr ""
11211
11212 #. type: =head2
11213 #: ../fish/guestfish-actions.pod:3309
11214 msgid "mount-loop"
11215 msgstr ""
11216
11217 #. type: verbatim
11218 #: ../fish/guestfish-actions.pod:3311
11219 #, no-wrap
11220 msgid ""
11221 " mount-loop file mountpoint\n"
11222 "\n"
11223 msgstr ""
11224
11225 #. type: textblock
11226 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5010
11227 msgid ""
11228 "This command lets you mount C<file> (a filesystem image in a file) on a "
11229 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11230 "mountpoint>."
11231 msgstr ""
11232
11233 #. type: =head2
11234 #: ../fish/guestfish-actions.pod:3317
11235 msgid "mount-options"
11236 msgstr ""
11237
11238 #. type: verbatim
11239 #: ../fish/guestfish-actions.pod:3319
11240 #, no-wrap
11241 msgid ""
11242 " mount-options options device mountpoint\n"
11243 "\n"
11244 msgstr ""
11245
11246 #. type: textblock
11247 #: ../fish/guestfish-actions.pod:3321
11248 msgid ""
11249 "This is the same as the L</mount> command, but it allows you to set the "
11250 "mount options as for the L<mount(8)> I<-o> flag."
11251 msgstr ""
11252
11253 #. type: textblock
11254 #: ../fish/guestfish-actions.pod:3325 ../src/guestfs-actions.pod:5030
11255 msgid ""
11256 "If the C<options> parameter is an empty string, then no options are passed "
11257 "(all options default to whatever the filesystem uses)."
11258 msgstr ""
11259
11260 #. type: =head2
11261 #: ../fish/guestfish-actions.pod:3329
11262 msgid "mount-ro"
11263 msgstr ""
11264
11265 #. type: verbatim
11266 #: ../fish/guestfish-actions.pod:3331
11267 #, no-wrap
11268 msgid ""
11269 " mount-ro device mountpoint\n"
11270 "\n"
11271 msgstr ""
11272
11273 #. type: textblock
11274 #: ../fish/guestfish-actions.pod:3333
11275 msgid ""
11276 "This is the same as the L</mount> command, but it mounts the filesystem with "
11277 "the read-only (I<-o ro>) flag."
11278 msgstr ""
11279
11280 #. type: =head2
11281 #: ../fish/guestfish-actions.pod:3336
11282 msgid "mount-vfs"
11283 msgstr ""
11284
11285 #. type: verbatim
11286 #: ../fish/guestfish-actions.pod:3338
11287 #, no-wrap
11288 msgid ""
11289 " mount-vfs options vfstype device mountpoint\n"
11290 "\n"
11291 msgstr ""
11292
11293 #. type: textblock
11294 #: ../fish/guestfish-actions.pod:3340
11295 msgid ""
11296 "This is the same as the L</mount> command, but it allows you to set both the "
11297 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11298 msgstr ""
11299
11300 #. type: =head2
11301 #: ../fish/guestfish-actions.pod:3344
11302 msgid "mountpoints"
11303 msgstr ""
11304
11305 #. type: verbatim
11306 #: ../fish/guestfish-actions.pod:3346
11307 #, no-wrap
11308 msgid ""
11309 " mountpoints\n"
11310 "\n"
11311 msgstr ""
11312
11313 #. type: textblock
11314 #: ../fish/guestfish-actions.pod:3348
11315 msgid ""
11316 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11317 "This one returns a hash table (map) of device name to directory where the "
11318 "device is mounted."
11319 msgstr ""
11320
11321 #. type: =head2
11322 #: ../fish/guestfish-actions.pod:3352
11323 msgid "mounts"
11324 msgstr ""
11325
11326 #. type: verbatim
11327 #: ../fish/guestfish-actions.pod:3354
11328 #, no-wrap
11329 msgid ""
11330 " mounts\n"
11331 "\n"
11332 msgstr ""
11333
11334 #. type: textblock
11335 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5091
11336 msgid ""
11337 "This returns the list of currently mounted filesystems.  It returns the list "
11338 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11339 msgstr ""
11340
11341 #. type: textblock
11342 #: ../fish/guestfish-actions.pod:3359 ../src/guestfs-actions.pod:5094
11343 msgid "Some internal mounts are not shown."
11344 msgstr ""
11345
11346 #. type: textblock
11347 #: ../fish/guestfish-actions.pod:3361
11348 msgid "See also: L</mountpoints>"
11349 msgstr ""
11350
11351 #. type: =head2
11352 #: ../fish/guestfish-actions.pod:3363
11353 msgid "mv"
11354 msgstr ""
11355
11356 #. type: verbatim
11357 #: ../fish/guestfish-actions.pod:3365
11358 #, no-wrap
11359 msgid ""
11360 " mv src dest\n"
11361 "\n"
11362 msgstr ""
11363
11364 #. type: textblock
11365 #: ../fish/guestfish-actions.pod:3367 ../src/guestfs-actions.pod:5111
11366 msgid ""
11367 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11368 "destination filename or destination directory."
11369 msgstr ""
11370
11371 #. type: =head2
11372 #: ../fish/guestfish-actions.pod:3370
11373 msgid "ntfs-3g-probe"
11374 msgstr ""
11375
11376 #. type: verbatim
11377 #: ../fish/guestfish-actions.pod:3372
11378 #, no-wrap
11379 msgid ""
11380 " ntfs-3g-probe true|false device\n"
11381 "\n"
11382 msgstr ""
11383
11384 #. type: textblock
11385 #: ../fish/guestfish-actions.pod:3374 ../src/guestfs-actions.pod:5125
11386 msgid ""
11387 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11388 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11389 "write, and some cannot be mounted at all)."
11390 msgstr ""
11391
11392 #. type: textblock
11393 #: ../fish/guestfish-actions.pod:3378 ../src/guestfs-actions.pod:5129
11394 msgid ""
11395 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11396 "can be mounted read-write.  Set it to false if you want to test if the "
11397 "volume can be mounted read-only."
11398 msgstr ""
11399
11400 #. type: textblock
11401 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5133
11402 msgid ""
11403 "The return value is an integer which C<0> if the operation would succeed, or "
11404 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11405 msgstr ""
11406
11407 #. type: =head2
11408 #: ../fish/guestfish-actions.pod:3386
11409 msgid "ntfsresize"
11410 msgstr ""
11411
11412 #. type: verbatim
11413 #: ../fish/guestfish-actions.pod:3388
11414 #, no-wrap
11415 msgid ""
11416 " ntfsresize device\n"
11417 "\n"
11418 msgstr ""
11419
11420 #. type: textblock
11421 #: ../fish/guestfish-actions.pod:3390 ../fish/guestfish-actions.pod:3414
11422 #: ../src/guestfs-actions.pod:5154 ../src/guestfs-actions.pod:5186
11423 msgid ""
11424 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11425 "size of the underlying device."
11426 msgstr ""
11427
11428 #. type: textblock
11429 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5157
11430 msgid ""
11431 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
11432 "consistency check (for safety).  You have to boot into Windows to perform "
11433 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
11434 "resize filesystems which have been marked in this way.  So in effect it is "
11435 "not possible to call ntfsresize multiple times on a single filesystem "
11436 "without booting into Windows between each resize."
11437 msgstr ""
11438
11439 #. type: textblock
11440 #: ../fish/guestfish-actions.pod:3401 ../fish/guestfish-actions.pod:3440
11441 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5212
11442 msgid "See also L<ntfsresize(8)>."
11443 msgstr ""
11444
11445 #. type: textblock
11446 #: ../fish/guestfish-actions.pod:3403 ../fish/guestfish-actions.pod:3451
11447 msgid ""
11448 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
11449 "call instead."
11450 msgstr ""
11451
11452 #. type: =head2
11453 #: ../fish/guestfish-actions.pod:3410
11454 msgid "ntfsresize-opts"
11455 msgstr ""
11456
11457 #. type: verbatim
11458 #: ../fish/guestfish-actions.pod:3412
11459 #, no-wrap
11460 msgid ""
11461 " ntfsresize-opts device [size:..] [force:..]\n"
11462 "\n"
11463 msgstr ""
11464
11465 #. type: textblock
11466 #: ../fish/guestfish-actions.pod:3423 ../src/guestfs-actions.pod:5195
11467 msgid ""
11468 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
11469 "resized to fit the container (eg. partition)."
11470 msgstr ""
11471
11472 #. type: =item
11473 #: ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:5198
11474 msgid "C<force>"
11475 msgstr ""
11476
11477 #. type: textblock
11478 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
11479 msgid ""
11480 "If this option is true, then force the resize of the filesystem even if the "
11481 "filesystem is marked as requiring a consistency check."
11482 msgstr ""
11483
11484 #. type: textblock
11485 #: ../fish/guestfish-actions.pod:3431
11486 msgid ""
11487 "After the resize operation, the filesystem is always marked as requiring a "
11488 "consistency check (for safety).  You have to boot into Windows to perform "
11489 "this check and clear this condition.  If you I<don't> set the C<force> "
11490 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
11491 "a single filesystem without booting into Windows between each resize."
11492 msgstr ""
11493
11494 #. type: =head2
11495 #: ../fish/guestfish-actions.pod:3444
11496 msgid "ntfsresize-size"
11497 msgstr ""
11498
11499 #. type: verbatim
11500 #: ../fish/guestfish-actions.pod:3446
11501 #, no-wrap
11502 msgid ""
11503 " ntfsresize-size device size\n"
11504 "\n"
11505 msgstr ""
11506
11507 #. type: textblock
11508 #: ../fish/guestfish-actions.pod:3448
11509 msgid ""
11510 "This command is the same as L</ntfsresize> except that it allows you to "
11511 "specify the new size (in bytes) explicitly."
11512 msgstr ""
11513
11514 #. type: =head2
11515 #: ../fish/guestfish-actions.pod:3458
11516 msgid "part-add"
11517 msgstr ""
11518
11519 #. type: verbatim
11520 #: ../fish/guestfish-actions.pod:3460
11521 #, no-wrap
11522 msgid ""
11523 " part-add device prlogex startsect endsect\n"
11524 "\n"
11525 msgstr ""
11526
11527 #. type: textblock
11528 #: ../fish/guestfish-actions.pod:3462
11529 msgid ""
11530 "This command adds a partition to C<device>.  If there is no partition table "
11531 "on the device, call L</part-init> first."
11532 msgstr ""
11533
11534 #. type: textblock
11535 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5273
11536 msgid ""
11537 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11538 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11539 "C<logical>) and C<e> (or C<extended>) partition types."
11540 msgstr ""
11541
11542 #. type: textblock
11543 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
11544 msgid ""
11545 "C<startsect> and C<endsect> are the start and end of the partition in "
11546 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11547 "from the end of the disk (C<-1> is the last sector)."
11548 msgstr ""
11549
11550 #. type: textblock
11551 #: ../fish/guestfish-actions.pod:3474
11552 msgid ""
11553 "Creating a partition which covers the whole disk is not so easy.  Use L</"
11554 "part-disk> to do that."
11555 msgstr ""
11556
11557 #. type: =head2
11558 #: ../fish/guestfish-actions.pod:3477
11559 msgid "part-del"
11560 msgstr ""
11561
11562 #. type: verbatim
11563 #: ../fish/guestfish-actions.pod:3479
11564 #, no-wrap
11565 msgid ""
11566 " part-del device partnum\n"
11567 "\n"
11568 msgstr ""
11569
11570 #. type: textblock
11571 #: ../fish/guestfish-actions.pod:3481 ../src/guestfs-actions.pod:5296
11572 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11573 msgstr ""
11574
11575 #. type: textblock
11576 #: ../fish/guestfish-actions.pod:3483 ../src/guestfs-actions.pod:5298
11577 msgid ""
11578 "Note that in the case of MBR partitioning, deleting an extended partition "
11579 "also deletes any logical partitions it contains."
11580 msgstr ""
11581
11582 #. type: =head2
11583 #: ../fish/guestfish-actions.pod:3487
11584 msgid "part-disk"
11585 msgstr ""
11586
11587 #. type: verbatim
11588 #: ../fish/guestfish-actions.pod:3489
11589 #, no-wrap
11590 msgid ""
11591 " part-disk device parttype\n"
11592 "\n"
11593 msgstr ""
11594
11595 #. type: textblock
11596 #: ../fish/guestfish-actions.pod:3491
11597 msgid ""
11598 "This command is simply a combination of L</part-init> followed by L</part-"
11599 "add> to create a single primary partition covering the whole disk."
11600 msgstr ""
11601
11602 #. type: textblock
11603 #: ../fish/guestfish-actions.pod:3495
11604 msgid ""
11605 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11606 "possible values are described in L</part-init>."
11607 msgstr ""
11608
11609 #. type: =head2
11610 #: ../fish/guestfish-actions.pod:3501
11611 msgid "part-get-bootable"
11612 msgstr ""
11613
11614 #. type: verbatim
11615 #: ../fish/guestfish-actions.pod:3503
11616 #, no-wrap
11617 msgid ""
11618 " part-get-bootable device partnum\n"
11619 "\n"
11620 msgstr ""
11621
11622 #. type: textblock
11623 #: ../fish/guestfish-actions.pod:3505 ../src/guestfs-actions.pod:5334
11624 msgid ""
11625 "This command returns true if the partition C<partnum> on C<device> has the "
11626 "bootable flag set."
11627 msgstr ""
11628
11629 #. type: textblock
11630 #: ../fish/guestfish-actions.pod:3508
11631 msgid "See also L</part-set-bootable>."
11632 msgstr ""
11633
11634 #. type: =head2
11635 #: ../fish/guestfish-actions.pod:3510
11636 msgid "part-get-mbr-id"
11637 msgstr ""
11638
11639 #. type: verbatim
11640 #: ../fish/guestfish-actions.pod:3512
11641 #, no-wrap
11642 msgid ""
11643 " part-get-mbr-id device partnum\n"
11644 "\n"
11645 msgstr ""
11646
11647 #. type: textblock
11648 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5350
11649 msgid ""
11650 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11651 "partition C<partnum>."
11652 msgstr ""
11653
11654 #. type: textblock
11655 #: ../fish/guestfish-actions.pod:3517 ../fish/guestfish-actions.pod:3661
11656 msgid ""
11657 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11658 "undefined results for other partition table types (see L</part-get-"
11659 "parttype>)."
11660 msgstr ""
11661
11662 #. type: =head2
11663 #: ../fish/guestfish-actions.pod:3521
11664 msgid "part-get-parttype"
11665 msgstr ""
11666
11667 #. type: verbatim
11668 #: ../fish/guestfish-actions.pod:3523
11669 #, no-wrap
11670 msgid ""
11671 " part-get-parttype device\n"
11672 "\n"
11673 msgstr ""
11674
11675 #. type: textblock
11676 #: ../fish/guestfish-actions.pod:3525 ../src/guestfs-actions.pod:5367
11677 msgid ""
11678 "This command examines the partition table on C<device> and returns the "
11679 "partition table type (format) being used."
11680 msgstr ""
11681
11682 #. type: textblock
11683 #: ../fish/guestfish-actions.pod:3528
11684 msgid ""
11685 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11686 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11687 "possible, although unusual.  See L</part-init> for a full list."
11688 msgstr ""
11689
11690 #. type: =head2
11691 #: ../fish/guestfish-actions.pod:3533
11692 msgid "part-init"
11693 msgstr ""
11694
11695 #. type: verbatim
11696 #: ../fish/guestfish-actions.pod:3535
11697 #, no-wrap
11698 msgid ""
11699 " part-init device parttype\n"
11700 "\n"
11701 msgstr ""
11702
11703 #. type: textblock
11704 #: ../fish/guestfish-actions.pod:3537 ../src/guestfs-actions.pod:5387
11705 msgid ""
11706 "This creates an empty partition table on C<device> of one of the partition "
11707 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11708 "(for large disks)."
11709 msgstr ""
11710
11711 #. type: textblock
11712 #: ../fish/guestfish-actions.pod:3541
11713 msgid ""
11714 "Initially there are no partitions.  Following this, you should call L</part-"
11715 "add> for each partition required."
11716 msgstr ""
11717
11718 #. type: textblock
11719 #: ../fish/guestfish-actions.pod:3544 ../src/guestfs-actions.pod:5394
11720 msgid "Possible values for C<parttype> are:"
11721 msgstr ""
11722
11723 #. type: =item
11724 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5398
11725 msgid "B<efi>"
11726 msgstr ""
11727
11728 #. type: =item
11729 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5400
11730 msgid "B<gpt>"
11731 msgstr ""
11732
11733 #. type: textblock
11734 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5402
11735 msgid "Intel EFI / GPT partition table."
11736 msgstr ""
11737
11738 #. type: textblock
11739 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5404
11740 msgid ""
11741 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11742 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11743 "the C<mbr> format."
11744 msgstr ""
11745
11746 #. type: =item
11747 #: ../fish/guestfish-actions.pod:3558 ../src/guestfs-actions.pod:5408
11748 msgid "B<mbr>"
11749 msgstr ""
11750
11751 #. type: =item
11752 #: ../fish/guestfish-actions.pod:3560 ../src/guestfs-actions.pod:5410
11753 msgid "B<msdos>"
11754 msgstr ""
11755
11756 #. type: textblock
11757 #: ../fish/guestfish-actions.pod:3562 ../src/guestfs-actions.pod:5412
11758 msgid ""
11759 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11760 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11761 "TB.  For large disks we recommend using C<gpt>."
11762 msgstr ""
11763
11764 #. type: textblock
11765 #: ../fish/guestfish-actions.pod:3569 ../src/guestfs-actions.pod:5419
11766 msgid ""
11767 "Other partition table types that may work but are not supported include:"
11768 msgstr ""
11769
11770 #. type: =item
11771 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
11772 msgid "B<aix>"
11773 msgstr ""
11774
11775 #. type: textblock
11776 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5426
11777 msgid "AIX disk labels."
11778 msgstr ""
11779
11780 #. type: =item
11781 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5428
11782 msgid "B<amiga>"
11783 msgstr ""
11784
11785 #. type: =item
11786 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5430
11787 msgid "B<rdb>"
11788 msgstr ""
11789
11790 #. type: textblock
11791 #: ../fish/guestfish-actions.pod:3582 ../src/guestfs-actions.pod:5432
11792 msgid "Amiga \"Rigid Disk Block\" format."
11793 msgstr ""
11794
11795 #. type: =item
11796 #: ../fish/guestfish-actions.pod:3584 ../src/guestfs-actions.pod:5434
11797 msgid "B<bsd>"
11798 msgstr ""
11799
11800 #. type: textblock
11801 #: ../fish/guestfish-actions.pod:3586 ../src/guestfs-actions.pod:5436
11802 msgid "BSD disk labels."
11803 msgstr ""
11804
11805 #. type: =item
11806 #: ../fish/guestfish-actions.pod:3588 ../src/guestfs-actions.pod:5438
11807 msgid "B<dasd>"
11808 msgstr ""
11809
11810 #. type: textblock
11811 #: ../fish/guestfish-actions.pod:3590 ../src/guestfs-actions.pod:5440
11812 msgid "DASD, used on IBM mainframes."
11813 msgstr ""
11814
11815 #. type: =item
11816 #: ../fish/guestfish-actions.pod:3592 ../src/guestfs-actions.pod:5442
11817 msgid "B<dvh>"
11818 msgstr ""
11819
11820 #. type: textblock
11821 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5444
11822 msgid "MIPS/SGI volumes."
11823 msgstr ""
11824
11825 #. type: =item
11826 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5446
11827 msgid "B<mac>"
11828 msgstr ""
11829
11830 #. type: textblock
11831 #: ../fish/guestfish-actions.pod:3598 ../src/guestfs-actions.pod:5448
11832 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11833 msgstr ""
11834
11835 #. type: =item
11836 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5450
11837 msgid "B<pc98>"
11838 msgstr ""
11839
11840 #. type: textblock
11841 #: ../fish/guestfish-actions.pod:3602 ../src/guestfs-actions.pod:5452
11842 msgid "NEC PC-98 format, common in Japan apparently."
11843 msgstr ""
11844
11845 #. type: =item
11846 #: ../fish/guestfish-actions.pod:3604 ../src/guestfs-actions.pod:5454
11847 msgid "B<sun>"
11848 msgstr ""
11849
11850 #. type: textblock
11851 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5456
11852 msgid "Sun disk labels."
11853 msgstr ""
11854
11855 #. type: =head2
11856 #: ../fish/guestfish-actions.pod:3610
11857 msgid "part-list"
11858 msgstr ""
11859
11860 #. type: verbatim
11861 #: ../fish/guestfish-actions.pod:3612
11862 #, no-wrap
11863 msgid ""
11864 " part-list device\n"
11865 "\n"
11866 msgstr ""
11867
11868 #. type: textblock
11869 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5470
11870 msgid ""
11871 "This command parses the partition table on C<device> and returns the list of "
11872 "partitions found."
11873 msgstr ""
11874
11875 #. type: textblock
11876 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5473
11877 msgid "The fields in the returned structure are:"
11878 msgstr ""
11879
11880 #. type: =item
11881 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5477
11882 msgid "B<part_num>"
11883 msgstr ""
11884
11885 #. type: textblock
11886 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5479
11887 msgid "Partition number, counting from 1."
11888 msgstr ""
11889
11890 #. type: =item
11891 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5481
11892 msgid "B<part_start>"
11893 msgstr ""
11894
11895 #. type: textblock
11896 #: ../fish/guestfish-actions.pod:3627
11897 msgid ""
11898 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11899 "the device's sector size, see L</blockdev-getss>."
11900 msgstr ""
11901
11902 #. type: =item
11903 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
11904 msgid "B<part_end>"
11905 msgstr ""
11906
11907 #. type: textblock
11908 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5488
11909 msgid "End of the partition in bytes."
11910 msgstr ""
11911
11912 #. type: =item
11913 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5490
11914 msgid "B<part_size>"
11915 msgstr ""
11916
11917 #. type: textblock
11918 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5492
11919 msgid "Size of the partition in bytes."
11920 msgstr ""
11921
11922 #. type: =head2
11923 #: ../fish/guestfish-actions.pod:3640
11924 msgid "part-set-bootable"
11925 msgstr ""
11926
11927 #. type: verbatim
11928 #: ../fish/guestfish-actions.pod:3642
11929 #, no-wrap
11930 msgid ""
11931 " part-set-bootable device partnum true|false\n"
11932 "\n"
11933 msgstr ""
11934
11935 #. type: textblock
11936 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5510
11937 msgid ""
11938 "This sets the bootable flag on partition numbered C<partnum> on device "
11939 "C<device>.  Note that partitions are numbered from 1."
11940 msgstr ""
11941
11942 #. type: textblock
11943 #: ../fish/guestfish-actions.pod:3647 ../src/guestfs-actions.pod:5513
11944 msgid ""
11945 "The bootable flag is used by some operating systems (notably Windows) to "
11946 "determine which partition to boot from.  It is by no means universally "
11947 "recognized."
11948 msgstr ""
11949
11950 #. type: =head2
11951 #: ../fish/guestfish-actions.pod:3651
11952 msgid "part-set-mbr-id"
11953 msgstr ""
11954
11955 #. type: verbatim
11956 #: ../fish/guestfish-actions.pod:3653
11957 #, no-wrap
11958 msgid ""
11959 " part-set-mbr-id device partnum idbyte\n"
11960 "\n"
11961 msgstr ""
11962
11963 #. type: textblock
11964 #: ../fish/guestfish-actions.pod:3655 ../src/guestfs-actions.pod:5529
11965 msgid ""
11966 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11967 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11968 "documentation are in fact hexadecimal numbers, but usually documented "
11969 "without any leading \"0x\" which might be confusing."
11970 msgstr ""
11971
11972 #. type: =head2
11973 #: ../fish/guestfish-actions.pod:3665
11974 msgid "part-set-name"
11975 msgstr ""
11976
11977 #. type: verbatim
11978 #: ../fish/guestfish-actions.pod:3667
11979 #, no-wrap
11980 msgid ""
11981 " part-set-name device partnum name\n"
11982 "\n"
11983 msgstr ""
11984
11985 #. type: textblock
11986 #: ../fish/guestfish-actions.pod:3669 ../src/guestfs-actions.pod:5551
11987 msgid ""
11988 "This sets the partition name on partition numbered C<partnum> on device "
11989 "C<device>.  Note that partitions are numbered from 1."
11990 msgstr ""
11991
11992 #. type: textblock
11993 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5554
11994 msgid ""
11995 "The partition name can only be set on certain types of partition table.  "
11996 "This works on C<gpt> but not on C<mbr> partitions."
11997 msgstr ""
11998
11999 #. type: =head2
12000 #: ../fish/guestfish-actions.pod:3675
12001 msgid "part-to-dev"
12002 msgstr ""
12003
12004 #. type: verbatim
12005 #: ../fish/guestfish-actions.pod:3677
12006 #, no-wrap
12007 msgid ""
12008 " part-to-dev partition\n"
12009 "\n"
12010 msgstr ""
12011
12012 #. type: textblock
12013 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5567
12014 msgid ""
12015 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12016 "partition number, returning the device name (eg. \"/dev/sdb\")."
12017 msgstr ""
12018
12019 #. type: textblock
12020 #: ../fish/guestfish-actions.pod:3683
12021 msgid ""
12022 "The named partition must exist, for example as a string returned from L</"
12023 "list-partitions>."
12024 msgstr ""
12025
12026 #. type: =head2
12027 #: ../fish/guestfish-actions.pod:3686
12028 msgid "ping-daemon"
12029 msgstr ""
12030
12031 #. type: verbatim
12032 #: ../fish/guestfish-actions.pod:3688
12033 #, no-wrap
12034 msgid ""
12035 " ping-daemon\n"
12036 "\n"
12037 msgstr ""
12038
12039 #. type: textblock
12040 #: ../fish/guestfish-actions.pod:3690 ../src/guestfs-actions.pod:5584
12041 msgid ""
12042 "This is a test probe into the guestfs daemon running inside the qemu "
12043 "subprocess.  Calling this function checks that the daemon responds to the "
12044 "ping message, without affecting the daemon or attached block device(s) in "
12045 "any other way."
12046 msgstr ""
12047
12048 #. type: =head2
12049 #: ../fish/guestfish-actions.pod:3695
12050 msgid "pread"
12051 msgstr ""
12052
12053 #. type: verbatim
12054 #: ../fish/guestfish-actions.pod:3697
12055 #, no-wrap
12056 msgid ""
12057 " pread path count offset\n"
12058 "\n"
12059 msgstr ""
12060
12061 #. type: textblock
12062 #: ../fish/guestfish-actions.pod:3699 ../src/guestfs-actions.pod:5602
12063 msgid ""
12064 "This command lets you read part of a file.  It reads C<count> bytes of the "
12065 "file, starting at C<offset>, from file C<path>."
12066 msgstr ""
12067
12068 #. type: textblock
12069 #: ../fish/guestfish-actions.pod:3702 ../fish/guestfish-actions.pod:3717
12070 #: ../src/guestfs-actions.pod:5605 ../src/guestfs-actions.pod:5631
12071 msgid ""
12072 "This may read fewer bytes than requested.  For further details see the "
12073 "L<pread(2)> system call."
12074 msgstr ""
12075
12076 #. type: textblock
12077 #: ../fish/guestfish-actions.pod:3705
12078 msgid "See also L</pwrite>, L</pread-device>."
12079 msgstr ""
12080
12081 #. type: =head2
12082 #: ../fish/guestfish-actions.pod:3710
12083 msgid "pread-device"
12084 msgstr ""
12085
12086 #. type: verbatim
12087 #: ../fish/guestfish-actions.pod:3712
12088 #, no-wrap
12089 msgid ""
12090 " pread-device device count offset\n"
12091 "\n"
12092 msgstr ""
12093
12094 #. type: textblock
12095 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5628
12096 msgid ""
12097 "This command lets you read part of a file.  It reads C<count> bytes of "
12098 "C<device>, starting at C<offset>."
12099 msgstr ""
12100
12101 #. type: textblock
12102 #: ../fish/guestfish-actions.pod:3720
12103 msgid "See also L</pread>."
12104 msgstr ""
12105
12106 #. type: =head2
12107 #: ../fish/guestfish-actions.pod:3725
12108 msgid "pvcreate"
12109 msgstr ""
12110
12111 #. type: verbatim
12112 #: ../fish/guestfish-actions.pod:3727
12113 #, no-wrap
12114 msgid ""
12115 " pvcreate device\n"
12116 "\n"
12117 msgstr ""
12118
12119 #. type: textblock
12120 #: ../fish/guestfish-actions.pod:3729 ../src/guestfs-actions.pod:5651
12121 msgid ""
12122 "This creates an LVM physical volume on the named C<device>, where C<device> "
12123 "should usually be a partition name such as C</dev/sda1>."
12124 msgstr ""
12125
12126 #. type: =head2
12127 #: ../fish/guestfish-actions.pod:3733
12128 msgid "pvremove"
12129 msgstr ""
12130
12131 #. type: verbatim
12132 #: ../fish/guestfish-actions.pod:3735
12133 #, no-wrap
12134 msgid ""
12135 " pvremove device\n"
12136 "\n"
12137 msgstr ""
12138
12139 #. type: textblock
12140 #: ../fish/guestfish-actions.pod:3737 ../src/guestfs-actions.pod:5665
12141 msgid ""
12142 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12143 "it."
12144 msgstr ""
12145
12146 #. type: textblock
12147 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5668
12148 msgid ""
12149 "The implementation uses the C<pvremove> command which refuses to wipe "
12150 "physical volumes that contain any volume groups, so you have to remove those "
12151 "first."
12152 msgstr ""
12153
12154 #. type: =head2
12155 #: ../fish/guestfish-actions.pod:3744
12156 msgid "pvresize"
12157 msgstr ""
12158
12159 #. type: verbatim
12160 #: ../fish/guestfish-actions.pod:3746
12161 #, no-wrap
12162 msgid ""
12163 " pvresize device\n"
12164 "\n"
12165 msgstr ""
12166
12167 #. type: textblock
12168 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5682
12169 msgid ""
12170 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12171 "the new size of the underlying device."
12172 msgstr ""
12173
12174 #. type: =head2
12175 #: ../fish/guestfish-actions.pod:3751
12176 msgid "pvresize-size"
12177 msgstr ""
12178
12179 #. type: verbatim
12180 #: ../fish/guestfish-actions.pod:3753
12181 #, no-wrap
12182 msgid ""
12183 " pvresize-size device size\n"
12184 "\n"
12185 msgstr ""
12186
12187 #. type: textblock
12188 #: ../fish/guestfish-actions.pod:3755
12189 msgid ""
12190 "This command is the same as L</pvresize> except that it allows you to "
12191 "specify the new size (in bytes) explicitly."
12192 msgstr ""
12193
12194 #. type: =head2
12195 #: ../fish/guestfish-actions.pod:3758
12196 msgid "pvs"
12197 msgstr ""
12198
12199 #. type: verbatim
12200 #: ../fish/guestfish-actions.pod:3760
12201 #, no-wrap
12202 msgid ""
12203 " pvs\n"
12204 "\n"
12205 msgstr ""
12206
12207 #. type: textblock
12208 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5708
12209 msgid ""
12210 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12211 "(8)> command."
12212 msgstr ""
12213
12214 #. type: textblock
12215 #: ../fish/guestfish-actions.pod:3765 ../src/guestfs-actions.pod:5711
12216 msgid ""
12217 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12218 "sda2>)."
12219 msgstr ""
12220
12221 #. type: textblock
12222 #: ../fish/guestfish-actions.pod:3768
12223 msgid "See also L</pvs-full>."
12224 msgstr ""
12225
12226 #. type: =head2
12227 #: ../fish/guestfish-actions.pod:3770
12228 msgid "pvs-full"
12229 msgstr ""
12230
12231 #. type: verbatim
12232 #: ../fish/guestfish-actions.pod:3772
12233 #, no-wrap
12234 msgid ""
12235 " pvs-full\n"
12236 "\n"
12237 msgstr ""
12238
12239 #. type: textblock
12240 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5727
12241 msgid ""
12242 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12243 "(8)> command.  The \"full\" version includes all fields."
12244 msgstr ""
12245
12246 #. type: =head2
12247 #: ../fish/guestfish-actions.pod:3777
12248 msgid "pvuuid"
12249 msgstr ""
12250
12251 #. type: verbatim
12252 #: ../fish/guestfish-actions.pod:3779
12253 #, no-wrap
12254 msgid ""
12255 " pvuuid device\n"
12256 "\n"
12257 msgstr ""
12258
12259 #. type: textblock
12260 #: ../fish/guestfish-actions.pod:3781 ../src/guestfs-actions.pod:5742
12261 msgid "This command returns the UUID of the LVM PV C<device>."
12262 msgstr ""
12263
12264 #. type: =head2
12265 #: ../fish/guestfish-actions.pod:3783
12266 msgid "pwrite"
12267 msgstr ""
12268
12269 #. type: verbatim
12270 #: ../fish/guestfish-actions.pod:3785
12271 #, no-wrap
12272 msgid ""
12273 " pwrite path content offset\n"
12274 "\n"
12275 msgstr ""
12276
12277 #. type: textblock
12278 #: ../fish/guestfish-actions.pod:3787 ../src/guestfs-actions.pod:5758
12279 msgid ""
12280 "This command writes to part of a file.  It writes the data buffer C<content> "
12281 "to the file C<path> starting at offset C<offset>."
12282 msgstr ""
12283
12284 #. type: textblock
12285 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5761
12286 msgid ""
12287 "This command implements the L<pwrite(2)> system call, and like that system "
12288 "call it may not write the full data requested.  The return value is the "
12289 "number of bytes that were actually written to the file.  This could even be "
12290 "0, although short writes are unlikely for regular files in ordinary "
12291 "circumstances."
12292 msgstr ""
12293
12294 #. type: textblock
12295 #: ../fish/guestfish-actions.pod:3796
12296 msgid "See also L</pread>, L</pwrite-device>."
12297 msgstr ""
12298
12299 #. type: =head2
12300 #: ../fish/guestfish-actions.pod:3801
12301 msgid "pwrite-device"
12302 msgstr ""
12303
12304 #. type: verbatim
12305 #: ../fish/guestfish-actions.pod:3803
12306 #, no-wrap
12307 msgid ""
12308 " pwrite-device device content offset\n"
12309 "\n"
12310 msgstr ""
12311
12312 #. type: textblock
12313 #: ../fish/guestfish-actions.pod:3805 ../src/guestfs-actions.pod:5785
12314 msgid ""
12315 "This command writes to part of a device.  It writes the data buffer "
12316 "C<content> to C<device> starting at offset C<offset>."
12317 msgstr ""
12318
12319 #. type: textblock
12320 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5788
12321 msgid ""
12322 "This command implements the L<pwrite(2)> system call, and like that system "
12323 "call it may not write the full data requested (although short writes to disk "
12324 "devices and partitions are probably impossible with standard Linux kernels)."
12325 msgstr ""
12326
12327 #. type: textblock
12328 #: ../fish/guestfish-actions.pod:3813
12329 msgid "See also L</pwrite>."
12330 msgstr ""
12331
12332 #. type: =head2
12333 #: ../fish/guestfish-actions.pod:3818
12334 msgid "read-file"
12335 msgstr ""
12336
12337 #. type: verbatim
12338 #: ../fish/guestfish-actions.pod:3820
12339 #, no-wrap
12340 msgid ""
12341 " read-file path\n"
12342 "\n"
12343 msgstr ""
12344
12345 #. type: textblock
12346 #: ../fish/guestfish-actions.pod:3822 ../src/guestfs-actions.pod:5809
12347 msgid "This calls returns the contents of the file C<path> as a buffer."
12348 msgstr ""
12349
12350 #. type: textblock
12351 #: ../fish/guestfish-actions.pod:3825
12352 msgid ""
12353 "Unlike L</cat>, this function can correctly handle files that contain "
12354 "embedded ASCII NUL characters.  However unlike L</download>, this function "
12355 "is limited in the total size of file that can be handled."
12356 msgstr ""
12357
12358 #. type: =head2
12359 #: ../fish/guestfish-actions.pod:3833
12360 msgid "read-lines"
12361 msgstr ""
12362
12363 #. type: verbatim
12364 #: ../fish/guestfish-actions.pod:3835
12365 #, no-wrap
12366 msgid ""
12367 " read-lines path\n"
12368 "\n"
12369 msgstr ""
12370
12371 #. type: textblock
12372 #: ../fish/guestfish-actions.pod:3839 ../src/guestfs-actions.pod:5834
12373 msgid ""
12374 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12375 "C<CRLF> character sequences are I<not> returned."
12376 msgstr ""
12377
12378 #. type: textblock
12379 #: ../fish/guestfish-actions.pod:3842
12380 msgid ""
12381 "Note that this function cannot correctly handle binary files (specifically, "
12382 "files containing C<\\0> character which is treated as end of line).  For "
12383 "those you need to use the L</read-file> function which has a more complex "
12384 "interface."
12385 msgstr ""
12386
12387 #. type: =head2
12388 #: ../fish/guestfish-actions.pod:3847
12389 msgid "readdir"
12390 msgstr ""
12391
12392 #. type: verbatim
12393 #: ../fish/guestfish-actions.pod:3849
12394 #, no-wrap
12395 msgid ""
12396 " readdir dir\n"
12397 "\n"
12398 msgstr ""
12399
12400 #. type: textblock
12401 #: ../fish/guestfish-actions.pod:3851 ../src/guestfs-actions.pod:5854
12402 msgid "This returns the list of directory entries in directory C<dir>."
12403 msgstr ""
12404
12405 #. type: textblock
12406 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5856
12407 msgid ""
12408 "All entries in the directory are returned, including C<.> and C<..>.  The "
12409 "entries are I<not> sorted, but returned in the same order as the underlying "
12410 "filesystem."
12411 msgstr ""
12412
12413 #. type: textblock
12414 #: ../fish/guestfish-actions.pod:3857 ../src/guestfs-actions.pod:5860
12415 msgid ""
12416 "Also this call returns basic file type information about each file.  The "
12417 "C<ftyp> field will contain one of the following characters:"
12418 msgstr ""
12419
12420 #. type: =item
12421 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
12422 msgid "'b'"
12423 msgstr ""
12424
12425 #. type: textblock
12426 #: ../fish/guestfish-actions.pod:3864 ../src/guestfs-actions.pod:5867
12427 msgid "Block special"
12428 msgstr ""
12429
12430 #. type: =item
12431 #: ../fish/guestfish-actions.pod:3866 ../src/guestfs-actions.pod:5869
12432 msgid "'c'"
12433 msgstr ""
12434
12435 #. type: textblock
12436 #: ../fish/guestfish-actions.pod:3868 ../src/guestfs-actions.pod:5871
12437 msgid "Char special"
12438 msgstr ""
12439
12440 #. type: =item
12441 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5873
12442 msgid "'d'"
12443 msgstr ""
12444
12445 #. type: textblock
12446 #: ../fish/guestfish-actions.pod:3872 ../src/guestfs-actions.pod:5875
12447 msgid "Directory"
12448 msgstr ""
12449
12450 #. type: =item
12451 #: ../fish/guestfish-actions.pod:3874 ../src/guestfs-actions.pod:5877
12452 msgid "'f'"
12453 msgstr ""
12454
12455 #. type: textblock
12456 #: ../fish/guestfish-actions.pod:3876 ../src/guestfs-actions.pod:5879
12457 msgid "FIFO (named pipe)"
12458 msgstr ""
12459
12460 #. type: =item
12461 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:5881
12462 msgid "'l'"
12463 msgstr ""
12464
12465 #. type: textblock
12466 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5883
12467 msgid "Symbolic link"
12468 msgstr ""
12469
12470 #. type: =item
12471 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:5885
12472 msgid "'r'"
12473 msgstr ""
12474
12475 #. type: textblock
12476 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5887
12477 msgid "Regular file"
12478 msgstr ""
12479
12480 #. type: =item
12481 #: ../fish/guestfish-actions.pod:3886 ../src/guestfs-actions.pod:5889
12482 msgid "'s'"
12483 msgstr ""
12484
12485 #. type: textblock
12486 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5891
12487 msgid "Socket"
12488 msgstr ""
12489
12490 #. type: =item
12491 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:5893
12492 msgid "'u'"
12493 msgstr ""
12494
12495 #. type: textblock
12496 #: ../fish/guestfish-actions.pod:3892 ../src/guestfs-actions.pod:5895
12497 msgid "Unknown file type"
12498 msgstr ""
12499
12500 #. type: =item
12501 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:5897
12502 msgid "'?'"
12503 msgstr ""
12504
12505 #. type: textblock
12506 #: ../fish/guestfish-actions.pod:3896 ../src/guestfs-actions.pod:5899
12507 msgid ""
12508 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12509 msgstr ""
12510
12511 #. type: textblock
12512 #: ../fish/guestfish-actions.pod:3901
12513 msgid ""
12514 "This function is primarily intended for use by programs.  To get a simple "
12515 "list of names, use L</ls>.  To get a printable directory for human "
12516 "consumption, use L</ll>."
12517 msgstr ""
12518
12519 #. type: =head2
12520 #: ../fish/guestfish-actions.pod:3905
12521 msgid "readlink"
12522 msgstr ""
12523
12524 #. type: verbatim
12525 #: ../fish/guestfish-actions.pod:3907
12526 #, no-wrap
12527 msgid ""
12528 " readlink path\n"
12529 "\n"
12530 msgstr ""
12531
12532 #. type: textblock
12533 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:5920
12534 msgid "This command reads the target of a symbolic link."
12535 msgstr ""
12536
12537 #. type: =head2
12538 #: ../fish/guestfish-actions.pod:3911
12539 msgid "readlinklist"
12540 msgstr ""
12541
12542 #. type: verbatim
12543 #: ../fish/guestfish-actions.pod:3913
12544 #, no-wrap
12545 msgid ""
12546 " readlinklist path 'names ...'\n"
12547 "\n"
12548 msgstr ""
12549
12550 #. type: textblock
12551 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5934
12552 msgid ""
12553 "This call allows you to do a C<readlink> operation on multiple files, where "
12554 "all files are in the directory C<path>.  C<names> is the list of files from "
12555 "this directory."
12556 msgstr ""
12557
12558 #. type: textblock
12559 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5938
12560 msgid ""
12561 "On return you get a list of strings, with a one-to-one correspondence to the "
12562 "C<names> list.  Each string is the value of the symbolic link."
12563 msgstr ""
12564
12565 #. type: textblock
12566 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:5942
12567 msgid ""
12568 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12569 "result string is the empty string C<\"\">.  However the whole operation is "
12570 "completed even if there were C<readlink(2)> errors, and so you can call this "
12571 "function with names where you don't know if they are symbolic links already "
12572 "(albeit slightly less efficient)."
12573 msgstr ""
12574
12575 #. type: textblock
12576 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:5949
12577 msgid ""
12578 "This call is intended for programs that want to efficiently list a directory "
12579 "contents without making many round-trips.  Very long directory listings "
12580 "might cause the protocol message size to be exceeded, causing this call to "
12581 "fail.  The caller must split up such requests into smaller groups of names."
12582 msgstr ""
12583
12584 #. type: =head2
12585 #: ../fish/guestfish-actions.pod:3937
12586 msgid "realpath"
12587 msgstr ""
12588
12589 #. type: verbatim
12590 #: ../fish/guestfish-actions.pod:3939
12591 #, no-wrap
12592 msgid ""
12593 " realpath path\n"
12594 "\n"
12595 msgstr ""
12596
12597 #. type: textblock
12598 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:5968
12599 msgid ""
12600 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12601 "has no C<.>, C<..> or symbolic link path elements."
12602 msgstr ""
12603
12604 #. type: =head2
12605 #: ../fish/guestfish-actions.pod:3944
12606 msgid "removexattr"
12607 msgstr ""
12608
12609 #. type: verbatim
12610 #: ../fish/guestfish-actions.pod:3946
12611 #, no-wrap
12612 msgid ""
12613 " removexattr xattr path\n"
12614 "\n"
12615 msgstr ""
12616
12617 #. type: textblock
12618 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:5983
12619 msgid ""
12620 "This call removes the extended attribute named C<xattr> of the file C<path>."
12621 msgstr ""
12622
12623 #. type: textblock
12624 #: ../fish/guestfish-actions.pod:3951
12625 msgid "See also: L</lremovexattr>, L<attr(5)>."
12626 msgstr ""
12627
12628 #. type: =head2
12629 #: ../fish/guestfish-actions.pod:3953
12630 msgid "resize2fs"
12631 msgstr ""
12632
12633 #. type: verbatim
12634 #: ../fish/guestfish-actions.pod:3955
12635 #, no-wrap
12636 msgid ""
12637 " resize2fs device\n"
12638 "\n"
12639 msgstr ""
12640
12641 #. type: textblock
12642 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:5998
12643 msgid ""
12644 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12645 "underlying device."
12646 msgstr ""
12647
12648 #. type: textblock
12649 #: ../fish/guestfish-actions.pod:3960
12650 msgid ""
12651 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12652 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12653 "gives an error about this and sometimes not.  In any case, it is always safe "
12654 "to call L</e2fsck-f> before calling this function."
12655 msgstr ""
12656
12657 #. type: =head2
12658 #: ../fish/guestfish-actions.pod:3966
12659 msgid "resize2fs-M"
12660 msgstr ""
12661
12662 #. type: verbatim
12663 #: ../fish/guestfish-actions.pod:3968
12664 #, no-wrap
12665 msgid ""
12666 " resize2fs-M device\n"
12667 "\n"
12668 msgstr ""
12669
12670 #. type: textblock
12671 #: ../fish/guestfish-actions.pod:3970
12672 msgid ""
12673 "This command is the same as L</resize2fs>, but the filesystem is resized to "
12674 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
12675 "command."
12676 msgstr ""
12677
12678 #. type: textblock
12679 #: ../fish/guestfish-actions.pod:3974
12680 msgid ""
12681 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
12682 "and read the C<Block size> and C<Block count> values.  These two numbers, "
12683 "multiplied together, give the resulting size of the minimal filesystem in "
12684 "bytes."
12685 msgstr ""
12686
12687 #. type: =head2
12688 #: ../fish/guestfish-actions.pod:3979
12689 msgid "resize2fs-size"
12690 msgstr ""
12691
12692 #. type: verbatim
12693 #: ../fish/guestfish-actions.pod:3981
12694 #, no-wrap
12695 msgid ""
12696 " resize2fs-size device size\n"
12697 "\n"
12698 msgstr ""
12699
12700 #. type: textblock
12701 #: ../fish/guestfish-actions.pod:3983
12702 msgid ""
12703 "This command is the same as L</resize2fs> except that it allows you to "
12704 "specify the new size (in bytes) explicitly."
12705 msgstr ""
12706
12707 #. type: =head2
12708 #: ../fish/guestfish-actions.pod:3986
12709 msgid "rm"
12710 msgstr ""
12711
12712 #. type: verbatim
12713 #: ../fish/guestfish-actions.pod:3988
12714 #, no-wrap
12715 msgid ""
12716 " rm path\n"
12717 "\n"
12718 msgstr ""
12719
12720 #. type: textblock
12721 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6050
12722 msgid "Remove the single file C<path>."
12723 msgstr ""
12724
12725 #. type: =head2
12726 #: ../fish/guestfish-actions.pod:3992
12727 msgid "rm-rf"
12728 msgstr ""
12729
12730 #. type: verbatim
12731 #: ../fish/guestfish-actions.pod:3994
12732 #, no-wrap
12733 msgid ""
12734 " rm-rf path\n"
12735 "\n"
12736 msgstr ""
12737
12738 #. type: textblock
12739 #: ../fish/guestfish-actions.pod:3996 ../src/guestfs-actions.pod:6062
12740 msgid ""
12741 "Remove the file or directory C<path>, recursively removing the contents if "
12742 "its a directory.  This is like the C<rm -rf> shell command."
12743 msgstr ""
12744
12745 #. type: =head2
12746 #: ../fish/guestfish-actions.pod:4000
12747 msgid "rmdir"
12748 msgstr ""
12749
12750 #. type: verbatim
12751 #: ../fish/guestfish-actions.pod:4002
12752 #, no-wrap
12753 msgid ""
12754 " rmdir path\n"
12755 "\n"
12756 msgstr ""
12757
12758 #. type: textblock
12759 #: ../fish/guestfish-actions.pod:4004 ../src/guestfs-actions.pod:6076
12760 msgid "Remove the single directory C<path>."
12761 msgstr ""
12762
12763 #. type: =head2
12764 #: ../fish/guestfish-actions.pod:4006
12765 msgid "rmmountpoint"
12766 msgstr ""
12767
12768 #. type: verbatim
12769 #: ../fish/guestfish-actions.pod:4008
12770 #, no-wrap
12771 msgid ""
12772 " rmmountpoint exemptpath\n"
12773 "\n"
12774 msgstr ""
12775
12776 #. type: textblock
12777 #: ../fish/guestfish-actions.pod:4010
12778 msgid ""
12779 "This calls removes a mountpoint that was previously created with L</"
12780 "mkmountpoint>.  See L</mkmountpoint> for full details."
12781 msgstr ""
12782
12783 #. type: =head2
12784 #: ../fish/guestfish-actions.pod:4014
12785 msgid "scrub-device"
12786 msgstr ""
12787
12788 #. type: verbatim
12789 #: ../fish/guestfish-actions.pod:4016
12790 #, no-wrap
12791 msgid ""
12792 " scrub-device device\n"
12793 "\n"
12794 msgstr ""
12795
12796 #. type: textblock
12797 #: ../fish/guestfish-actions.pod:4018 ../src/guestfs-actions.pod:6102
12798 msgid ""
12799 "This command writes patterns over C<device> to make data retrieval more "
12800 "difficult."
12801 msgstr ""
12802
12803 #. type: textblock
12804 #: ../fish/guestfish-actions.pod:4021 ../fish/guestfish-actions.pod:4036
12805 #: ../fish/guestfish-actions.pod:4049 ../src/guestfs-actions.pod:6105
12806 #: ../src/guestfs-actions.pod:6126 ../src/guestfs-actions.pod:6145
12807 msgid ""
12808 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12809 "more details."
12810 msgstr ""
12811
12812 #. type: =head2
12813 #: ../fish/guestfish-actions.pod:4027
12814 msgid "scrub-file"
12815 msgstr ""
12816
12817 #. type: verbatim
12818 #: ../fish/guestfish-actions.pod:4029
12819 #, no-wrap
12820 msgid ""
12821 " scrub-file file\n"
12822 "\n"
12823 msgstr ""
12824
12825 #. type: textblock
12826 #: ../fish/guestfish-actions.pod:4031 ../src/guestfs-actions.pod:6121
12827 msgid ""
12828 "This command writes patterns over a file to make data retrieval more "
12829 "difficult."
12830 msgstr ""
12831
12832 #. type: textblock
12833 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6124
12834 msgid "The file is I<removed> after scrubbing."
12835 msgstr ""
12836
12837 #. type: =head2
12838 #: ../fish/guestfish-actions.pod:4039
12839 msgid "scrub-freespace"
12840 msgstr ""
12841
12842 #. type: verbatim
12843 #: ../fish/guestfish-actions.pod:4041
12844 #, no-wrap
12845 msgid ""
12846 " scrub-freespace dir\n"
12847 "\n"
12848 msgstr ""
12849
12850 #. type: textblock
12851 #: ../fish/guestfish-actions.pod:4043
12852 msgid ""
12853 "This command creates the directory C<dir> and then fills it with files until "
12854 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
12855 "deletes them.  The intention is to scrub any free space on the partition "
12856 "containing C<dir>."
12857 msgstr ""
12858
12859 #. type: =head2
12860 #: ../fish/guestfish-actions.pod:4052
12861 msgid "set-append"
12862 msgstr ""
12863
12864 #. type: =head2
12865 #: ../fish/guestfish-actions.pod:4054
12866 msgid "append"
12867 msgstr ""
12868
12869 #. type: verbatim
12870 #: ../fish/guestfish-actions.pod:4056
12871 #, no-wrap
12872 msgid ""
12873 " set-append append\n"
12874 "\n"
12875 msgstr ""
12876
12877 #. type: textblock
12878 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6158
12879 msgid ""
12880 "This function is used to add additional options to the guest kernel command "
12881 "line."
12882 msgstr ""
12883
12884 #. type: textblock
12885 #: ../fish/guestfish-actions.pod:4061 ../src/guestfs-actions.pod:6161
12886 msgid ""
12887 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12888 "environment variable."
12889 msgstr ""
12890
12891 #. type: textblock
12892 #: ../fish/guestfish-actions.pod:4064 ../src/guestfs-actions.pod:6164
12893 msgid ""
12894 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12895 "(libguestfs always adds a few of its own)."
12896 msgstr ""
12897
12898 #. type: =head2
12899 #: ../fish/guestfish-actions.pod:4067
12900 msgid "set-attach-method"
12901 msgstr ""
12902
12903 #. type: =head2
12904 #: ../fish/guestfish-actions.pod:4069
12905 msgid "attach-method"
12906 msgstr ""
12907
12908 #. type: verbatim
12909 #: ../fish/guestfish-actions.pod:4071
12910 #, no-wrap
12911 msgid ""
12912 " set-attach-method attachmethod\n"
12913 "\n"
12914 msgstr ""
12915
12916 #. type: textblock
12917 #: ../fish/guestfish-actions.pod:4073 ../src/guestfs-actions.pod:6177
12918 msgid ""
12919 "Set the method that libguestfs uses to connect to the back end guestfsd "
12920 "daemon.  Possible methods are:"
12921 msgstr ""
12922
12923 #. type: =item
12924 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
12925 #: ../src/guestfs.pod:2688
12926 msgid "C<appliance>"
12927 msgstr ""
12928
12929 #. type: textblock
12930 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6184
12931 msgid ""
12932 "Launch an appliance and connect to it.  This is the ordinary method and the "
12933 "default."
12934 msgstr ""
12935
12936 #. type: =item
12937 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
12938 msgid "C<unix:I<path>>"
12939 msgstr ""
12940
12941 #. type: textblock
12942 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
12943 msgid "Connect to the Unix domain socket I<path>."
12944 msgstr ""
12945
12946 #. type: textblock
12947 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6191
12948 msgid ""
12949 "This method lets you connect to an existing daemon or (using virtio-serial) "
12950 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
12951 "RUNNING DAEMONS>."
12952 msgstr ""
12953
12954 #. type: =head2
12955 #: ../fish/guestfish-actions.pod:4093
12956 msgid "set-autosync"
12957 msgstr ""
12958
12959 #. type: =head2
12960 #: ../fish/guestfish-actions.pod:4095
12961 msgid "autosync"
12962 msgstr ""
12963
12964 #. type: verbatim
12965 #: ../fish/guestfish-actions.pod:4097
12966 #, no-wrap
12967 msgid ""
12968 " set-autosync true|false\n"
12969 "\n"
12970 msgstr ""
12971
12972 #. type: textblock
12973 #: ../fish/guestfish-actions.pod:4099 ../src/guestfs-actions.pod:6207
12974 msgid ""
12975 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12976 "effort attempt to make filesystems consistent and synchronized when the "
12977 "handle is closed (also if the program exits without closing handles)."
12978 msgstr ""
12979
12980 #. type: textblock
12981 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
12982 msgid ""
12983 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12984 "disabled by default)."
12985 msgstr ""
12986
12987 #. type: =head2
12988 #: ../fish/guestfish-actions.pod:4107
12989 msgid "set-direct"
12990 msgstr ""
12991
12992 #. type: =head2
12993 #: ../fish/guestfish-actions.pod:4109
12994 msgid "direct"
12995 msgstr ""
12996
12997 #. type: verbatim
12998 #: ../fish/guestfish-actions.pod:4111
12999 #, no-wrap
13000 msgid ""
13001 " set-direct true|false\n"
13002 "\n"
13003 msgstr ""
13004
13005 #. type: textblock
13006 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6225
13007 msgid ""
13008 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13009 "passed directly through to the appliance once it is launched."
13010 msgstr ""
13011
13012 #. type: textblock
13013 #: ../fish/guestfish-actions.pod:4117
13014 msgid ""
13015 "One consequence of this is that log messages aren't caught by the library "
13016 "and handled by L</set-log-message-callback>, but go straight to stdout."
13017 msgstr ""
13018
13019 #. type: textblock
13020 #: ../fish/guestfish-actions.pod:4121 ../src/guestfs-actions.pod:6233
13021 msgid "You probably don't want to use this unless you know what you are doing."
13022 msgstr ""
13023
13024 #. type: textblock
13025 #: ../fish/guestfish-actions.pod:4124 ../src/guestfs-actions.pod:6236
13026 msgid "The default is disabled."
13027 msgstr ""
13028
13029 #. type: =head2
13030 #: ../fish/guestfish-actions.pod:4126
13031 msgid "set-e2label"
13032 msgstr ""
13033
13034 #. type: verbatim
13035 #: ../fish/guestfish-actions.pod:4128
13036 #, no-wrap
13037 msgid ""
13038 " set-e2label device label\n"
13039 "\n"
13040 msgstr ""
13041
13042 #. type: textblock
13043 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6249
13044 msgid ""
13045 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13046 "C<label>.  Filesystem labels are limited to 16 characters."
13047 msgstr ""
13048
13049 #. type: textblock
13050 #: ../fish/guestfish-actions.pod:4134
13051 msgid ""
13052 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13053 "label on a filesystem."
13054 msgstr ""
13055
13056 #. type: =head2
13057 #: ../fish/guestfish-actions.pod:4137
13058 msgid "set-e2uuid"
13059 msgstr ""
13060
13061 #. type: verbatim
13062 #: ../fish/guestfish-actions.pod:4139
13063 #, no-wrap
13064 msgid ""
13065 " set-e2uuid device uuid\n"
13066 "\n"
13067 msgstr ""
13068
13069 #. type: textblock
13070 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6267
13071 msgid ""
13072 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13073 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13074 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13075 msgstr ""
13076
13077 #. type: textblock
13078 #: ../fish/guestfish-actions.pod:4146
13079 msgid ""
13080 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13081 "UUID of a filesystem."
13082 msgstr ""
13083
13084 #. type: =head2
13085 #: ../fish/guestfish-actions.pod:4149
13086 msgid "set-memsize"
13087 msgstr ""
13088
13089 #. type: =head2
13090 #: ../fish/guestfish-actions.pod:4151
13091 msgid "memsize"
13092 msgstr ""
13093
13094 #. type: verbatim
13095 #: ../fish/guestfish-actions.pod:4153
13096 #, no-wrap
13097 msgid ""
13098 " set-memsize memsize\n"
13099 "\n"
13100 msgstr ""
13101
13102 #. type: textblock
13103 #: ../fish/guestfish-actions.pod:4155
13104 msgid ""
13105 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13106 "This only has any effect if called before L</launch>."
13107 msgstr ""
13108
13109 #. type: textblock
13110 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6289
13111 msgid ""
13112 "You can also change this by setting the environment variable "
13113 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13114 msgstr ""
13115
13116 #. type: =head2
13117 #: ../fish/guestfish-actions.pod:4166
13118 msgid "set-network"
13119 msgstr ""
13120
13121 #. type: =head2
13122 #: ../fish/guestfish-actions.pod:4168
13123 msgid "network"
13124 msgstr ""
13125
13126 #. type: verbatim
13127 #: ../fish/guestfish-actions.pod:4170
13128 #, no-wrap
13129 msgid ""
13130 " set-network true|false\n"
13131 "\n"
13132 msgstr ""
13133
13134 #. type: textblock
13135 #: ../fish/guestfish-actions.pod:4172 ../src/guestfs-actions.pod:6306
13136 msgid ""
13137 "If C<network> is true, then the network is enabled in the libguestfs "
13138 "appliance.  The default is false."
13139 msgstr ""
13140
13141 #. type: textblock
13142 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6309
13143 msgid ""
13144 "This affects whether commands are able to access the network (see L<guestfs"
13145 "(3)/RUNNING COMMANDS>)."
13146 msgstr ""
13147
13148 #. type: textblock
13149 #: ../fish/guestfish-actions.pod:4178
13150 msgid ""
13151 "You must call this before calling L</launch>, otherwise it has no effect."
13152 msgstr ""
13153
13154 #. type: =head2
13155 #: ../fish/guestfish-actions.pod:4181
13156 msgid "set-path"
13157 msgstr ""
13158
13159 #. type: verbatim
13160 #: ../fish/guestfish-actions.pod:4185
13161 #, no-wrap
13162 msgid ""
13163 " set-path searchpath\n"
13164 "\n"
13165 msgstr ""
13166
13167 #. type: textblock
13168 #: ../fish/guestfish-actions.pod:4187 ../src/guestfs-actions.pod:6325
13169 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13170 msgstr ""
13171
13172 #. type: textblock
13173 #: ../fish/guestfish-actions.pod:4189 ../src/guestfs-actions.pod:6327
13174 msgid ""
13175 "The default is C<$libdir/guestfs> unless overridden by setting "
13176 "C<LIBGUESTFS_PATH> environment variable."
13177 msgstr ""
13178
13179 #. type: textblock
13180 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13181 msgid "Setting C<path> to C<NULL> restores the default path."
13182 msgstr ""
13183
13184 #. type: =head2
13185 #: ../fish/guestfish-actions.pod:4194
13186 msgid "set-pgroup"
13187 msgstr ""
13188
13189 #. type: =head2
13190 #: ../fish/guestfish-actions.pod:4196
13191 msgid "pgroup"
13192 msgstr ""
13193
13194 #. type: verbatim
13195 #: ../fish/guestfish-actions.pod:4198
13196 #, no-wrap
13197 msgid ""
13198 " set-pgroup true|false\n"
13199 "\n"
13200 msgstr ""
13201
13202 #. type: textblock
13203 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6342
13204 msgid ""
13205 "If C<pgroup> is true, child processes are placed into their own process "
13206 "group."
13207 msgstr ""
13208
13209 #. type: textblock
13210 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6345
13211 msgid ""
13212 "The practical upshot of this is that signals like C<SIGINT> (from users "
13213 "pressing C<^C>) won't be received by the child process."
13214 msgstr ""
13215
13216 #. type: textblock
13217 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6348
13218 msgid ""
13219 "The default for this flag is false, because usually you want C<^C> to kill "
13220 "the subprocess."
13221 msgstr ""
13222
13223 #. type: =head2
13224 #: ../fish/guestfish-actions.pod:4209
13225 msgid "set-qemu"
13226 msgstr ""
13227
13228 #. type: =head2
13229 #: ../fish/guestfish-actions.pod:4211
13230 msgid "qemu"
13231 msgstr ""
13232
13233 #. type: verbatim
13234 #: ../fish/guestfish-actions.pod:4213
13235 #, no-wrap
13236 msgid ""
13237 " set-qemu qemu\n"
13238 "\n"
13239 msgstr ""
13240
13241 #. type: textblock
13242 #: ../fish/guestfish-actions.pod:4215 ../src/guestfs-actions.pod:6361
13243 msgid "Set the qemu binary that we will use."
13244 msgstr ""
13245
13246 #. type: textblock
13247 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6363
13248 msgid ""
13249 "The default is chosen when the library was compiled by the configure script."
13250 msgstr ""
13251
13252 #. type: textblock
13253 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13254 msgid ""
13255 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13256 "variable."
13257 msgstr ""
13258
13259 #. type: textblock
13260 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6369
13261 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13262 msgstr ""
13263
13264 #. type: textblock
13265 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
13266 msgid ""
13267 "Note that you should call this function as early as possible after creating "
13268 "the handle.  This is because some pre-launch operations depend on testing "
13269 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13270 "don't retest features, and so you might see inconsistent results.  Using the "
13271 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13272 "the qemu binary at the same time as the handle is created."
13273 msgstr ""
13274
13275 #. type: =head2
13276 #: ../fish/guestfish-actions.pod:4233
13277 msgid "set-recovery-proc"
13278 msgstr ""
13279
13280 #. type: =head2
13281 #: ../fish/guestfish-actions.pod:4235
13282 msgid "recovery-proc"
13283 msgstr ""
13284
13285 #. type: verbatim
13286 #: ../fish/guestfish-actions.pod:4237
13287 #, no-wrap
13288 msgid ""
13289 " set-recovery-proc true|false\n"
13290 "\n"
13291 msgstr ""
13292
13293 #. type: textblock
13294 #: ../fish/guestfish-actions.pod:4239
13295 msgid ""
13296 "If this is called with the parameter C<false> then L</launch> does not "
13297 "create a recovery process.  The purpose of the recovery process is to stop "
13298 "runaway qemu processes in the case where the main program aborts abruptly."
13299 msgstr ""
13300
13301 #. type: textblock
13302 #: ../fish/guestfish-actions.pod:4244
13303 msgid ""
13304 "This only has any effect if called before L</launch>, and the default is "
13305 "true."
13306 msgstr ""
13307
13308 #. type: textblock
13309 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6397
13310 msgid ""
13311 "About the only time when you would want to disable this is if the main "
13312 "process will fork itself into the background (\"daemonize\" itself).  In "
13313 "this case the recovery process thinks that the main program has disappeared "
13314 "and so kills qemu, which is not very helpful."
13315 msgstr ""
13316
13317 #. type: =head2
13318 #: ../fish/guestfish-actions.pod:4253
13319 msgid "set-selinux"
13320 msgstr ""
13321
13322 #. type: =head2
13323 #: ../fish/guestfish-actions.pod:4255
13324 msgid "selinux"
13325 msgstr ""
13326
13327 #. type: verbatim
13328 #: ../fish/guestfish-actions.pod:4257
13329 #, no-wrap
13330 msgid ""
13331 " set-selinux true|false\n"
13332 "\n"
13333 msgstr ""
13334
13335 #. type: textblock
13336 #: ../fish/guestfish-actions.pod:4259 ../src/guestfs-actions.pod:6413
13337 msgid ""
13338 "This sets the selinux flag that is passed to the appliance at boot time.  "
13339 "The default is C<selinux=0> (disabled)."
13340 msgstr ""
13341
13342 #. type: textblock
13343 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6416
13344 msgid ""
13345 "Note that if SELinux is enabled, it is always in Permissive mode "
13346 "(C<enforcing=0>)."
13347 msgstr ""
13348
13349 #. type: =head2
13350 #: ../fish/guestfish-actions.pod:4268
13351 msgid "set-trace"
13352 msgstr ""
13353
13354 #. type: =head2
13355 #: ../fish/guestfish-actions.pod:4270
13356 msgid "trace"
13357 msgstr ""
13358
13359 #. type: verbatim
13360 #: ../fish/guestfish-actions.pod:4272
13361 #, no-wrap
13362 msgid ""
13363 " set-trace true|false\n"
13364 "\n"
13365 msgstr ""
13366
13367 #. type: textblock
13368 #: ../fish/guestfish-actions.pod:4274 ../src/guestfs-actions.pod:6432
13369 msgid ""
13370 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
13371 "return values are traced."
13372 msgstr ""
13373
13374 #. type: textblock
13375 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6435
13376 msgid ""
13377 "If you want to trace C API calls into libguestfs (and other libraries) then "
13378 "possibly a better way is to use the external ltrace(1) command."
13379 msgstr ""
13380
13381 #. type: textblock
13382 #: ../fish/guestfish-actions.pod:4281 ../src/guestfs-actions.pod:6439
13383 msgid ""
13384 "Command traces are disabled unless the environment variable "
13385 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13386 msgstr ""
13387
13388 #. type: textblock
13389 #: ../fish/guestfish-actions.pod:4284
13390 msgid ""
13391 "Trace messages are normally sent to C<stderr>, unless you register a "
13392 "callback to send them somewhere else (see L</set-event-callback>)."
13393 msgstr ""
13394
13395 #. type: =head2
13396 #: ../fish/guestfish-actions.pod:4288
13397 msgid "set-verbose"
13398 msgstr ""
13399
13400 #. type: =head2
13401 #: ../fish/guestfish-actions.pod:4290
13402 msgid "verbose"
13403 msgstr ""
13404
13405 #. type: verbatim
13406 #: ../fish/guestfish-actions.pod:4292
13407 #, no-wrap
13408 msgid ""
13409 " set-verbose true|false\n"
13410 "\n"
13411 msgstr ""
13412
13413 #. type: textblock
13414 #: ../fish/guestfish-actions.pod:4294 ../src/guestfs-actions.pod:6456
13415 msgid "If C<verbose> is true, this turns on verbose messages."
13416 msgstr ""
13417
13418 #. type: textblock
13419 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6458
13420 msgid ""
13421 "Verbose messages are disabled unless the environment variable "
13422 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13423 msgstr ""
13424
13425 #. type: textblock
13426 #: ../fish/guestfish-actions.pod:4299
13427 msgid ""
13428 "Verbose messages are normally sent to C<stderr>, unless you register a "
13429 "callback to send them somewhere else (see L</set-event-callback>)."
13430 msgstr ""
13431
13432 #. type: =head2
13433 #: ../fish/guestfish-actions.pod:4303
13434 msgid "setcon"
13435 msgstr ""
13436
13437 #. type: verbatim
13438 #: ../fish/guestfish-actions.pod:4305
13439 #, no-wrap
13440 msgid ""
13441 " setcon context\n"
13442 "\n"
13443 msgstr ""
13444
13445 #. type: textblock
13446 #: ../fish/guestfish-actions.pod:4307 ../src/guestfs-actions.pod:6475
13447 msgid ""
13448 "This sets the SELinux security context of the daemon to the string "
13449 "C<context>."
13450 msgstr ""
13451
13452 #. type: textblock
13453 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6478
13454 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13455 msgstr ""
13456
13457 #. type: =head2
13458 #: ../fish/guestfish-actions.pod:4312
13459 msgid "setxattr"
13460 msgstr ""
13461
13462 #. type: verbatim
13463 #: ../fish/guestfish-actions.pod:4314
13464 #, no-wrap
13465 msgid ""
13466 " setxattr xattr val vallen path\n"
13467 "\n"
13468 msgstr ""
13469
13470 #. type: textblock
13471 #: ../fish/guestfish-actions.pod:4316 ../src/guestfs-actions.pod:6493
13472 msgid ""
13473 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13474 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13475 msgstr ""
13476
13477 #. type: textblock
13478 #: ../fish/guestfish-actions.pod:4320
13479 msgid "See also: L</lsetxattr>, L<attr(5)>."
13480 msgstr ""
13481
13482 #. type: =head2
13483 #: ../fish/guestfish-actions.pod:4322
13484 msgid "sfdisk"
13485 msgstr ""
13486
13487 #. type: verbatim
13488 #: ../fish/guestfish-actions.pod:4324
13489 #, no-wrap
13490 msgid ""
13491 " sfdisk device cyls heads sectors 'lines ...'\n"
13492 "\n"
13493 msgstr ""
13494
13495 #. type: textblock
13496 #: ../fish/guestfish-actions.pod:4326 ../src/guestfs-actions.pod:6520
13497 msgid ""
13498 "This is a direct interface to the L<sfdisk(8)> program for creating "
13499 "partitions on block devices."
13500 msgstr ""
13501
13502 #. type: textblock
13503 #: ../fish/guestfish-actions.pod:4329 ../src/guestfs-actions.pod:6523
13504 msgid "C<device> should be a block device, for example C</dev/sda>."
13505 msgstr ""
13506
13507 #. type: textblock
13508 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6525
13509 msgid ""
13510 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13511 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
13512 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13513 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13514 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13515 "the kernel) cannot work out the right geometry and you will need to tell it."
13516 msgstr ""
13517
13518 #. type: textblock
13519 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6533
13520 msgid ""
13521 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13522 "refer to the L<sfdisk(8)> manpage."
13523 msgstr ""
13524
13525 #. type: textblock
13526 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6536
13527 msgid ""
13528 "To create a single partition occupying the whole disk, you would pass "
13529 "C<lines> as a single element list, when the single element being the string "
13530 "C<,> (comma)."
13531 msgstr ""
13532
13533 #. type: textblock
13534 #: ../fish/guestfish-actions.pod:4346
13535 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13536 msgstr ""
13537
13538 #. type: textblock
13539 #: ../fish/guestfish-actions.pod:4352 ../fish/guestfish-actions.pod:4375
13540 #: ../fish/guestfish-actions.pod:4397
13541 msgid ""
13542 "I<This function is deprecated.> In new code, use the L</part_add> call "
13543 "instead."
13544 msgstr ""
13545
13546 #. type: =head2
13547 #: ../fish/guestfish-actions.pod:4359
13548 msgid "sfdiskM"
13549 msgstr ""
13550
13551 #. type: verbatim
13552 #: ../fish/guestfish-actions.pod:4361
13553 #, no-wrap
13554 msgid ""
13555 " sfdiskM device 'lines ...'\n"
13556 "\n"
13557 msgstr ""
13558
13559 #. type: textblock
13560 #: ../fish/guestfish-actions.pod:4363
13561 msgid ""
13562 "This is a simplified interface to the L</sfdisk> command, where partition "
13563 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13564 "you don't need to specify the cyls, heads and sectors parameters which were "
13565 "rarely if ever used anyway."
13566 msgstr ""
13567
13568 #. type: textblock
13569 #: ../fish/guestfish-actions.pod:4369
13570 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13571 msgstr ""
13572
13573 #. type: =head2
13574 #: ../fish/guestfish-actions.pod:4382
13575 msgid "sfdisk-N"
13576 msgstr ""
13577
13578 #. type: verbatim
13579 #: ../fish/guestfish-actions.pod:4384
13580 #, no-wrap
13581 msgid ""
13582 " sfdisk-N device partnum cyls heads sectors line\n"
13583 "\n"
13584 msgstr ""
13585
13586 #. type: textblock
13587 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6598
13588 msgid ""
13589 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13590 "(note: C<n> counts from 1)."
13591 msgstr ""
13592
13593 #. type: textblock
13594 #: ../fish/guestfish-actions.pod:4389
13595 msgid ""
13596 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13597 "cyls/heads/sectors parameters."
13598 msgstr ""
13599
13600 #. type: textblock
13601 #: ../fish/guestfish-actions.pod:4392
13602 msgid "See also: L</part-add>"
13603 msgstr ""
13604
13605 #. type: =head2
13606 #: ../fish/guestfish-actions.pod:4404
13607 msgid "sfdisk-disk-geometry"
13608 msgstr ""
13609
13610 #. type: verbatim
13611 #: ../fish/guestfish-actions.pod:4406
13612 #, no-wrap
13613 msgid ""
13614 " sfdisk-disk-geometry device\n"
13615 "\n"
13616 msgstr ""
13617
13618 #. type: textblock
13619 #: ../fish/guestfish-actions.pod:4408
13620 msgid ""
13621 "This displays the disk geometry of C<device> read from the partition table.  "
13622 "Especially in the case where the underlying block device has been resized, "
13623 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
13624 "kernel-geometry>)."
13625 msgstr ""
13626
13627 #. type: textblock
13628 #: ../fish/guestfish-actions.pod:4413 ../fish/guestfish-actions.pod:4422
13629 #: ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6640
13630 msgid "The result is in human-readable format, and not designed to be parsed."
13631 msgstr ""
13632
13633 #. type: =head2
13634 #: ../fish/guestfish-actions.pod:4416
13635 msgid "sfdisk-kernel-geometry"
13636 msgstr ""
13637
13638 #. type: verbatim
13639 #: ../fish/guestfish-actions.pod:4418
13640 #, no-wrap
13641 msgid ""
13642 " sfdisk-kernel-geometry device\n"
13643 "\n"
13644 msgstr ""
13645
13646 #. type: textblock
13647 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6638
13648 msgid "This displays the kernel's idea of the geometry of C<device>."
13649 msgstr ""
13650
13651 #. type: =head2
13652 #: ../fish/guestfish-actions.pod:4425
13653 msgid "sfdisk-l"
13654 msgstr ""
13655
13656 #. type: verbatim
13657 #: ../fish/guestfish-actions.pod:4427
13658 #, no-wrap
13659 msgid ""
13660 " sfdisk-l device\n"
13661 "\n"
13662 msgstr ""
13663
13664 #. type: textblock
13665 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6661
13666 msgid ""
13667 "This displays the partition table on C<device>, in the human-readable output "
13668 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13669 msgstr ""
13670
13671 #. type: textblock
13672 #: ../fish/guestfish-actions.pod:4433
13673 msgid "See also: L</part-list>"
13674 msgstr ""
13675
13676 #. type: textblock
13677 #: ../fish/guestfish-actions.pod:4435
13678 msgid ""
13679 "I<This function is deprecated.> In new code, use the L</part_list> call "
13680 "instead."
13681 msgstr ""
13682
13683 #. type: =head2
13684 #: ../fish/guestfish-actions.pod:4442
13685 msgid "sh"
13686 msgstr ""
13687
13688 #. type: verbatim
13689 #: ../fish/guestfish-actions.pod:4444
13690 #, no-wrap
13691 msgid ""
13692 " sh command\n"
13693 "\n"
13694 msgstr ""
13695
13696 #. type: textblock
13697 #: ../fish/guestfish-actions.pod:4446 ../src/guestfs-actions.pod:6678
13698 msgid ""
13699 "This call runs a command from the guest filesystem via the guest's C</bin/"
13700 "sh>."
13701 msgstr ""
13702
13703 #. type: textblock
13704 #: ../fish/guestfish-actions.pod:4449
13705 msgid "This is like L</command>, but passes the command to:"
13706 msgstr ""
13707
13708 #. type: verbatim
13709 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
13710 #, no-wrap
13711 msgid ""
13712 " /bin/sh -c \"command\"\n"
13713 "\n"
13714 msgstr ""
13715
13716 #. type: textblock
13717 #: ../fish/guestfish-actions.pod:4453 ../src/guestfs-actions.pod:6685
13718 msgid ""
13719 "Depending on the guest's shell, this usually results in wildcards being "
13720 "expanded, shell expressions being interpolated and so on."
13721 msgstr ""
13722
13723 #. type: textblock
13724 #: ../fish/guestfish-actions.pod:4457
13725 msgid "All the provisos about L</command> apply to this call."
13726 msgstr ""
13727
13728 #. type: =head2
13729 #: ../fish/guestfish-actions.pod:4459
13730 msgid "sh-lines"
13731 msgstr ""
13732
13733 #. type: verbatim
13734 #: ../fish/guestfish-actions.pod:4461
13735 #, no-wrap
13736 msgid ""
13737 " sh-lines command\n"
13738 "\n"
13739 msgstr ""
13740
13741 #. type: textblock
13742 #: ../fish/guestfish-actions.pod:4463
13743 msgid "This is the same as L</sh>, but splits the result into a list of lines."
13744 msgstr ""
13745
13746 #. type: textblock
13747 #: ../fish/guestfish-actions.pod:4466
13748 msgid "See also: L</command-lines>"
13749 msgstr ""
13750
13751 #. type: =head2
13752 #: ../fish/guestfish-actions.pod:4468
13753 msgid "sleep"
13754 msgstr ""
13755
13756 #. type: verbatim
13757 #: ../fish/guestfish-actions.pod:4470
13758 #, no-wrap
13759 msgid ""
13760 " sleep secs\n"
13761 "\n"
13762 msgstr ""
13763
13764 #. type: textblock
13765 #: ../fish/guestfish-actions.pod:4472 ../src/guestfs-actions.pod:6719
13766 msgid "Sleep for C<secs> seconds."
13767 msgstr ""
13768
13769 #. type: =head2
13770 #: ../fish/guestfish-actions.pod:4474
13771 msgid "stat"
13772 msgstr ""
13773
13774 #. type: verbatim
13775 #: ../fish/guestfish-actions.pod:4476
13776 #, no-wrap
13777 msgid ""
13778 " stat path\n"
13779 "\n"
13780 msgstr ""
13781
13782 #. type: textblock
13783 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6733
13784 msgid "This is the same as the C<stat(2)> system call."
13785 msgstr ""
13786
13787 #. type: =head2
13788 #: ../fish/guestfish-actions.pod:4482
13789 msgid "statvfs"
13790 msgstr ""
13791
13792 #. type: verbatim
13793 #: ../fish/guestfish-actions.pod:4484
13794 #, no-wrap
13795 msgid ""
13796 " statvfs path\n"
13797 "\n"
13798 msgstr ""
13799
13800 #. type: textblock
13801 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6747
13802 msgid ""
13803 "Returns file system statistics for any mounted file system.  C<path> should "
13804 "be a file or directory in the mounted file system (typically it is the mount "
13805 "point itself, but it doesn't need to be)."
13806 msgstr ""
13807
13808 #. type: textblock
13809 #: ../fish/guestfish-actions.pod:4490 ../src/guestfs-actions.pod:6751
13810 msgid "This is the same as the C<statvfs(2)> system call."
13811 msgstr ""
13812
13813 #. type: =head2
13814 #: ../fish/guestfish-actions.pod:4492
13815 msgid "strings"
13816 msgstr ""
13817
13818 #. type: verbatim
13819 #: ../fish/guestfish-actions.pod:4494
13820 #, no-wrap
13821 msgid ""
13822 " strings path\n"
13823 "\n"
13824 msgstr ""
13825
13826 #. type: textblock
13827 #: ../fish/guestfish-actions.pod:4496 ../src/guestfs-actions.pod:6765
13828 msgid ""
13829 "This runs the L<strings(1)> command on a file and returns the list of "
13830 "printable strings found."
13831 msgstr ""
13832
13833 #. type: =head2
13834 #: ../fish/guestfish-actions.pod:4502
13835 msgid "strings-e"
13836 msgstr ""
13837
13838 #. type: verbatim
13839 #: ../fish/guestfish-actions.pod:4504
13840 #, no-wrap
13841 msgid ""
13842 " strings-e encoding path\n"
13843 "\n"
13844 msgstr ""
13845
13846 #. type: textblock
13847 #: ../fish/guestfish-actions.pod:4506
13848 msgid ""
13849 "This is like the L</strings> command, but allows you to specify the encoding "
13850 "of strings that are looked for in the source file C<path>."
13851 msgstr ""
13852
13853 #. type: textblock
13854 #: ../fish/guestfish-actions.pod:4510 ../src/guestfs-actions.pod:6788
13855 msgid "Allowed encodings are:"
13856 msgstr ""
13857
13858 #. type: =item
13859 #: ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6792
13860 msgid "s"
13861 msgstr ""
13862
13863 #. type: textblock
13864 #: ../fish/guestfish-actions.pod:4516
13865 msgid ""
13866 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13867 "ISO-8859-X (this is what L</strings> uses)."
13868 msgstr ""
13869
13870 #. type: =item
13871 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
13872 msgid "S"
13873 msgstr ""
13874
13875 #. type: textblock
13876 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6799
13877 msgid "Single 8-bit-byte characters."
13878 msgstr ""
13879
13880 #. type: =item
13881 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6801
13882 msgid "b"
13883 msgstr ""
13884
13885 #. type: textblock
13886 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6803
13887 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13888 msgstr ""
13889
13890 #. type: =item
13891 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
13892 msgid "l (lower case letter L)"
13893 msgstr ""
13894
13895 #. type: textblock
13896 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
13897 msgid ""
13898 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13899 "examining binaries in Windows guests."
13900 msgstr ""
13901
13902 #. type: =item
13903 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
13904 msgid "B"
13905 msgstr ""
13906
13907 #. type: textblock
13908 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
13909 msgid "32-bit big endian such as UCS-4BE."
13910 msgstr ""
13911
13912 #. type: =item
13913 #: ../fish/guestfish-actions.pod:4537 ../src/guestfs-actions.pod:6815
13914 msgid "L"
13915 msgstr ""
13916
13917 #. type: textblock
13918 #: ../fish/guestfish-actions.pod:4539 ../src/guestfs-actions.pod:6817
13919 msgid "32-bit little endian such as UCS-4LE."
13920 msgstr ""
13921
13922 #. type: textblock
13923 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6821
13924 msgid "The returned strings are transcoded to UTF-8."
13925 msgstr ""
13926
13927 #. type: =head2
13928 #: ../fish/guestfish-actions.pod:4548
13929 msgid "swapoff-device"
13930 msgstr ""
13931
13932 #. type: verbatim
13933 #: ../fish/guestfish-actions.pod:4550
13934 #, no-wrap
13935 msgid ""
13936 " swapoff-device device\n"
13937 "\n"
13938 msgstr ""
13939
13940 #. type: textblock
13941 #: ../fish/guestfish-actions.pod:4552
13942 msgid ""
13943 "This command disables the libguestfs appliance swap device or partition "
13944 "named C<device>.  See L</swapon-device>."
13945 msgstr ""
13946
13947 #. type: =head2
13948 #: ../fish/guestfish-actions.pod:4556
13949 msgid "swapoff-file"
13950 msgstr ""
13951
13952 #. type: verbatim
13953 #: ../fish/guestfish-actions.pod:4558
13954 #, no-wrap
13955 msgid ""
13956 " swapoff-file file\n"
13957 "\n"
13958 msgstr ""
13959
13960 #. type: textblock
13961 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6852
13962 msgid "This command disables the libguestfs appliance swap on file."
13963 msgstr ""
13964
13965 #. type: =head2
13966 #: ../fish/guestfish-actions.pod:4562
13967 msgid "swapoff-label"
13968 msgstr ""
13969
13970 #. type: verbatim
13971 #: ../fish/guestfish-actions.pod:4564
13972 #, no-wrap
13973 msgid ""
13974 " swapoff-label label\n"
13975 "\n"
13976 msgstr ""
13977
13978 #. type: textblock
13979 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:6864
13980 msgid ""
13981 "This command disables the libguestfs appliance swap on labeled swap "
13982 "partition."
13983 msgstr ""
13984
13985 #. type: =head2
13986 #: ../fish/guestfish-actions.pod:4569
13987 msgid "swapoff-uuid"
13988 msgstr ""
13989
13990 #. type: verbatim
13991 #: ../fish/guestfish-actions.pod:4571
13992 #, no-wrap
13993 msgid ""
13994 " swapoff-uuid uuid\n"
13995 "\n"
13996 msgstr ""
13997
13998 #. type: textblock
13999 #: ../fish/guestfish-actions.pod:4573 ../src/guestfs-actions.pod:6877
14000 msgid ""
14001 "This command disables the libguestfs appliance swap partition with the given "
14002 "UUID."
14003 msgstr ""
14004
14005 #. type: =head2
14006 #: ../fish/guestfish-actions.pod:4576
14007 msgid "swapon-device"
14008 msgstr ""
14009
14010 #. type: verbatim
14011 #: ../fish/guestfish-actions.pod:4578
14012 #, no-wrap
14013 msgid ""
14014 " swapon-device device\n"
14015 "\n"
14016 msgstr ""
14017
14018 #. type: textblock
14019 #: ../fish/guestfish-actions.pod:4580
14020 msgid ""
14021 "This command enables the libguestfs appliance to use the swap device or "
14022 "partition named C<device>.  The increased memory is made available for all "
14023 "commands, for example those run using L</command> or L</sh>."
14024 msgstr ""
14025
14026 #. type: textblock
14027 #: ../fish/guestfish-actions.pod:4585 ../src/guestfs-actions.pod:6895
14028 msgid ""
14029 "Note that you should not swap to existing guest swap partitions unless you "
14030 "know what you are doing.  They may contain hibernation information, or other "
14031 "information that the guest doesn't want you to trash.  You also risk leaking "
14032 "information about the host to the guest this way.  Instead, attach a new "
14033 "host device to the guest and swap on that."
14034 msgstr ""
14035
14036 #. type: =head2
14037 #: ../fish/guestfish-actions.pod:4592
14038 msgid "swapon-file"
14039 msgstr ""
14040
14041 #. type: verbatim
14042 #: ../fish/guestfish-actions.pod:4594
14043 #, no-wrap
14044 msgid ""
14045 " swapon-file file\n"
14046 "\n"
14047 msgstr ""
14048
14049 #. type: textblock
14050 #: ../fish/guestfish-actions.pod:4596
14051 msgid ""
14052 "This command enables swap to a file.  See L</swapon-device> for other notes."
14053 msgstr ""
14054
14055 #. type: =head2
14056 #: ../fish/guestfish-actions.pod:4599
14057 msgid "swapon-label"
14058 msgstr ""
14059
14060 #. type: verbatim
14061 #: ../fish/guestfish-actions.pod:4601
14062 #, no-wrap
14063 msgid ""
14064 " swapon-label label\n"
14065 "\n"
14066 msgstr ""
14067
14068 #. type: textblock
14069 #: ../fish/guestfish-actions.pod:4603
14070 msgid ""
14071 "This command enables swap to a labeled swap partition.  See L</swapon-"
14072 "device> for other notes."
14073 msgstr ""
14074
14075 #. type: =head2
14076 #: ../fish/guestfish-actions.pod:4606
14077 msgid "swapon-uuid"
14078 msgstr ""
14079
14080 #. type: verbatim
14081 #: ../fish/guestfish-actions.pod:4608
14082 #, no-wrap
14083 msgid ""
14084 " swapon-uuid uuid\n"
14085 "\n"
14086 msgstr ""
14087
14088 #. type: textblock
14089 #: ../fish/guestfish-actions.pod:4610
14090 msgid ""
14091 "This command enables swap to a swap partition with the given UUID.  See L</"
14092 "swapon-device> for other notes."
14093 msgstr ""
14094
14095 #. type: =head2
14096 #: ../fish/guestfish-actions.pod:4613
14097 msgid "sync"
14098 msgstr ""
14099
14100 #. type: verbatim
14101 #: ../fish/guestfish-actions.pod:4615
14102 #, no-wrap
14103 msgid ""
14104 " sync\n"
14105 "\n"
14106 msgstr ""
14107
14108 #. type: textblock
14109 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6950
14110 msgid ""
14111 "This syncs the disk, so that any writes are flushed through to the "
14112 "underlying disk image."
14113 msgstr ""
14114
14115 #. type: textblock
14116 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6953
14117 msgid ""
14118 "You should always call this if you have modified a disk image, before "
14119 "closing the handle."
14120 msgstr ""
14121
14122 #. type: =head2
14123 #: ../fish/guestfish-actions.pod:4623
14124 msgid "tail"
14125 msgstr ""
14126
14127 #. type: verbatim
14128 #: ../fish/guestfish-actions.pod:4625
14129 #, no-wrap
14130 msgid ""
14131 " tail path\n"
14132 "\n"
14133 msgstr ""
14134
14135 #. type: textblock
14136 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6966
14137 msgid ""
14138 "This command returns up to the last 10 lines of a file as a list of strings."
14139 msgstr ""
14140
14141 #. type: =head2
14142 #: ../fish/guestfish-actions.pod:4633
14143 msgid "tail-n"
14144 msgstr ""
14145
14146 #. type: verbatim
14147 #: ../fish/guestfish-actions.pod:4635
14148 #, no-wrap
14149 msgid ""
14150 " tail-n nrlines path\n"
14151 "\n"
14152 msgstr ""
14153
14154 #. type: textblock
14155 #: ../fish/guestfish-actions.pod:4637 ../src/guestfs-actions.pod:6985
14156 msgid ""
14157 "If the parameter C<nrlines> is a positive number, this returns the last "
14158 "C<nrlines> lines of the file C<path>."
14159 msgstr ""
14160
14161 #. type: textblock
14162 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:6988
14163 msgid ""
14164 "If the parameter C<nrlines> is a negative number, this returns lines from "
14165 "the file C<path>, starting with the C<-nrlines>th line."
14166 msgstr ""
14167
14168 #. type: =head2
14169 #: ../fish/guestfish-actions.pod:4648
14170 msgid "tar-in"
14171 msgstr ""
14172
14173 #. type: verbatim
14174 #: ../fish/guestfish-actions.pod:4650
14175 #, no-wrap
14176 msgid ""
14177 " tar-in (tarfile|-) directory\n"
14178 "\n"
14179 msgstr ""
14180
14181 #. type: textblock
14182 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7009
14183 msgid ""
14184 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14185 "tar file) into C<directory>."
14186 msgstr ""
14187
14188 #. type: textblock
14189 #: ../fish/guestfish-actions.pod:4655
14190 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14191 msgstr ""
14192
14193 #. type: =head2
14194 #: ../fish/guestfish-actions.pod:4660
14195 msgid "tar-out"
14196 msgstr ""
14197
14198 #. type: verbatim
14199 #: ../fish/guestfish-actions.pod:4662
14200 #, no-wrap
14201 msgid ""
14202 " tar-out directory (tarfile|-)\n"
14203 "\n"
14204 msgstr ""
14205
14206 #. type: textblock
14207 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7026
14208 msgid ""
14209 "This command packs the contents of C<directory> and downloads it to local "
14210 "file C<tarfile>."
14211 msgstr ""
14212
14213 #. type: textblock
14214 #: ../fish/guestfish-actions.pod:4667
14215 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14216 msgstr ""
14217
14218 #. type: =head2
14219 #: ../fish/guestfish-actions.pod:4672
14220 msgid "tgz-in"
14221 msgstr ""
14222
14223 #. type: verbatim
14224 #: ../fish/guestfish-actions.pod:4674
14225 #, no-wrap
14226 msgid ""
14227 " tgz-in (tarball|-) directory\n"
14228 "\n"
14229 msgstr ""
14230
14231 #. type: textblock
14232 #: ../fish/guestfish-actions.pod:4676 ../src/guestfs-actions.pod:7043
14233 msgid ""
14234 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14235 "tar file) into C<directory>."
14236 msgstr ""
14237
14238 #. type: textblock
14239 #: ../fish/guestfish-actions.pod:4679
14240 msgid "To upload an uncompressed tarball, use L</tar-in>."
14241 msgstr ""
14242
14243 #. type: =head2
14244 #: ../fish/guestfish-actions.pod:4683
14245 msgid "tgz-out"
14246 msgstr ""
14247
14248 #. type: verbatim
14249 #: ../fish/guestfish-actions.pod:4685
14250 #, no-wrap
14251 msgid ""
14252 " tgz-out directory (tarball|-)\n"
14253 "\n"
14254 msgstr ""
14255
14256 #. type: textblock
14257 #: ../fish/guestfish-actions.pod:4687 ../src/guestfs-actions.pod:7059
14258 msgid ""
14259 "This command packs the contents of C<directory> and downloads it to local "
14260 "file C<tarball>."
14261 msgstr ""
14262
14263 #. type: textblock
14264 #: ../fish/guestfish-actions.pod:4690
14265 msgid "To download an uncompressed tarball, use L</tar-out>."
14266 msgstr ""
14267
14268 #. type: =head2
14269 #: ../fish/guestfish-actions.pod:4694
14270 msgid "touch"
14271 msgstr ""
14272
14273 #. type: verbatim
14274 #: ../fish/guestfish-actions.pod:4696
14275 #, no-wrap
14276 msgid ""
14277 " touch path\n"
14278 "\n"
14279 msgstr ""
14280
14281 #. type: textblock
14282 #: ../fish/guestfish-actions.pod:4698 ../src/guestfs-actions.pod:7074
14283 msgid ""
14284 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14285 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14286 "length file."
14287 msgstr ""
14288
14289 #. type: textblock
14290 #: ../fish/guestfish-actions.pod:4702 ../src/guestfs-actions.pod:7078
14291 msgid ""
14292 "This command only works on regular files, and will fail on other file types "
14293 "such as directories, symbolic links, block special etc."
14294 msgstr ""
14295
14296 #. type: =head2
14297 #: ../fish/guestfish-actions.pod:4705
14298 msgid "truncate"
14299 msgstr ""
14300
14301 #. type: verbatim
14302 #: ../fish/guestfish-actions.pod:4707
14303 #, no-wrap
14304 msgid ""
14305 " truncate path\n"
14306 "\n"
14307 msgstr ""
14308
14309 #. type: textblock
14310 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7091
14311 msgid ""
14312 "This command truncates C<path> to a zero-length file.  The file must exist "
14313 "already."
14314 msgstr ""
14315
14316 #. type: =head2
14317 #: ../fish/guestfish-actions.pod:4712
14318 msgid "truncate-size"
14319 msgstr ""
14320
14321 #. type: verbatim
14322 #: ../fish/guestfish-actions.pod:4714
14323 #, no-wrap
14324 msgid ""
14325 " truncate-size path size\n"
14326 "\n"
14327 msgstr ""
14328
14329 #. type: textblock
14330 #: ../fish/guestfish-actions.pod:4716 ../src/guestfs-actions.pod:7105
14331 msgid ""
14332 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14333 "already."
14334 msgstr ""
14335
14336 #. type: textblock
14337 #: ../fish/guestfish-actions.pod:4719
14338 msgid ""
14339 "If the current file size is less than C<size> then the file is extended to "
14340 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14341 "blocks are not allocated for the file until you write to it).  To create a "
14342 "non-sparse file of zeroes, use L</fallocate64> instead."
14343 msgstr ""
14344
14345 #. type: =head2
14346 #: ../fish/guestfish-actions.pod:4725
14347 msgid "tune2fs-l"
14348 msgstr ""
14349
14350 #. type: verbatim
14351 #: ../fish/guestfish-actions.pod:4727
14352 #, no-wrap
14353 msgid ""
14354 " tune2fs-l device\n"
14355 "\n"
14356 msgstr ""
14357
14358 #. type: textblock
14359 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7124
14360 msgid ""
14361 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14362 "C<device>."
14363 msgstr ""
14364
14365 #. type: textblock
14366 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7127
14367 msgid ""
14368 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14369 "for more details.  The list of fields returned isn't clearly defined, and "
14370 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14371 "and the filesystem itself."
14372 msgstr ""
14373
14374 #. type: =head2
14375 #: ../fish/guestfish-actions.pod:4737
14376 msgid "txz-in"
14377 msgstr ""
14378
14379 #. type: verbatim
14380 #: ../fish/guestfish-actions.pod:4739
14381 #, no-wrap
14382 msgid ""
14383 " txz-in (tarball|-) directory\n"
14384 "\n"
14385 msgstr ""
14386
14387 #. type: textblock
14388 #: ../fish/guestfish-actions.pod:4741 ../src/guestfs-actions.pod:7147
14389 msgid ""
14390 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14391 "tar file) into C<directory>."
14392 msgstr ""
14393
14394 #. type: =head2
14395 #: ../fish/guestfish-actions.pod:4746
14396 msgid "txz-out"
14397 msgstr ""
14398
14399 #. type: verbatim
14400 #: ../fish/guestfish-actions.pod:4748
14401 #, no-wrap
14402 msgid ""
14403 " txz-out directory (tarball|-)\n"
14404 "\n"
14405 msgstr ""
14406
14407 #. type: textblock
14408 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7161
14409 msgid ""
14410 "This command packs the contents of C<directory> and downloads it to local "
14411 "file C<tarball> (as an xz compressed tar archive)."
14412 msgstr ""
14413
14414 #. type: =head2
14415 #: ../fish/guestfish-actions.pod:4755
14416 msgid "umask"
14417 msgstr ""
14418
14419 #. type: verbatim
14420 #: ../fish/guestfish-actions.pod:4757
14421 #, no-wrap
14422 msgid ""
14423 " umask mask\n"
14424 "\n"
14425 msgstr ""
14426
14427 #. type: textblock
14428 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7174
14429 msgid ""
14430 "This function sets the mask used for creating new files and device nodes to "
14431 "C<mask & 0777>."
14432 msgstr ""
14433
14434 #. type: textblock
14435 #: ../fish/guestfish-actions.pod:4762 ../src/guestfs-actions.pod:7177
14436 msgid ""
14437 "Typical umask values would be C<022> which creates new files with "
14438 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14439 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14440 msgstr ""
14441
14442 #. type: textblock
14443 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
14444 msgid ""
14445 "The default umask is C<022>.  This is important because it means that "
14446 "directories and device nodes will be created with C<0644> or C<0755> mode "
14447 "even if you specify C<0777>."
14448 msgstr ""
14449
14450 #. type: textblock
14451 #: ../fish/guestfish-actions.pod:4771
14452 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
14453 msgstr ""
14454
14455 #. type: textblock
14456 #: ../fish/guestfish-actions.pod:4774 ../src/guestfs-actions.pod:7189
14457 msgid "This call returns the previous umask."
14458 msgstr ""
14459
14460 #. type: =head2
14461 #: ../fish/guestfish-actions.pod:4776
14462 msgid "umount"
14463 msgstr ""
14464
14465 #. type: =head2
14466 #: ../fish/guestfish-actions.pod:4778
14467 msgid "unmount"
14468 msgstr ""
14469
14470 #. type: verbatim
14471 #: ../fish/guestfish-actions.pod:4780
14472 #, no-wrap
14473 msgid ""
14474 " umount pathordevice\n"
14475 "\n"
14476 msgstr ""
14477
14478 #. type: textblock
14479 #: ../fish/guestfish-actions.pod:4782 ../src/guestfs-actions.pod:7201
14480 msgid ""
14481 "This unmounts the given filesystem.  The filesystem may be specified either "
14482 "by its mountpoint (path) or the device which contains the filesystem."
14483 msgstr ""
14484
14485 #. type: =head2
14486 #: ../fish/guestfish-actions.pod:4786
14487 msgid "umount-all"
14488 msgstr ""
14489
14490 #. type: =head2
14491 #: ../fish/guestfish-actions.pod:4788
14492 msgid "unmount-all"
14493 msgstr ""
14494
14495 #. type: verbatim
14496 #: ../fish/guestfish-actions.pod:4790
14497 #, no-wrap
14498 msgid ""
14499 " umount-all\n"
14500 "\n"
14501 msgstr ""
14502
14503 #. type: textblock
14504 #: ../fish/guestfish-actions.pod:4792 ../src/guestfs-actions.pod:7214
14505 msgid "This unmounts all mounted filesystems."
14506 msgstr ""
14507
14508 #. type: textblock
14509 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7216
14510 msgid "Some internal mounts are not unmounted by this call."
14511 msgstr ""
14512
14513 #. type: =head2
14514 #: ../fish/guestfish-actions.pod:4796
14515 msgid "upload"
14516 msgstr ""
14517
14518 #. type: verbatim
14519 #: ../fish/guestfish-actions.pod:4798
14520 #, no-wrap
14521 msgid ""
14522 " upload (filename|-) remotefilename\n"
14523 "\n"
14524 msgstr ""
14525
14526 #. type: textblock
14527 #: ../fish/guestfish-actions.pod:4800 ../fish/guestfish-actions.pod:4813
14528 #: ../src/guestfs-actions.pod:7229 ../src/guestfs-actions.pod:7253
14529 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14530 msgstr ""
14531
14532 #. type: textblock
14533 #: ../fish/guestfish-actions.pod:4805
14534 msgid "See also L</download>."
14535 msgstr ""
14536
14537 #. type: =head2
14538 #: ../fish/guestfish-actions.pod:4809
14539 msgid "upload-offset"
14540 msgstr ""
14541
14542 #. type: verbatim
14543 #: ../fish/guestfish-actions.pod:4811
14544 #, no-wrap
14545 msgid ""
14546 " upload-offset (filename|-) remotefilename offset\n"
14547 "\n"
14548 msgstr ""
14549
14550 #. type: textblock
14551 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7256
14552 msgid ""
14553 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14554 "The intention is to overwrite parts of existing files or devices, although "
14555 "if a non-existant file is specified then it is created with a \"hole\" "
14556 "before C<offset>.  The size of the data written is implicit in the size of "
14557 "the source C<filename>."
14558 msgstr ""
14559
14560 #. type: textblock
14561 #: ../fish/guestfish-actions.pod:4823
14562 msgid ""
14563 "Note that there is no limit on the amount of data that can be uploaded with "
14564 "this call, unlike with L</pwrite>, and this call always writes the full "
14565 "amount unless an error occurs."
14566 msgstr ""
14567
14568 #. type: textblock
14569 #: ../fish/guestfish-actions.pod:4828
14570 msgid "See also L</upload>, L</pwrite>."
14571 msgstr ""
14572
14573 #. type: =head2
14574 #: ../fish/guestfish-actions.pod:4832
14575 msgid "utimens"
14576 msgstr ""
14577
14578 #. type: verbatim
14579 #: ../fish/guestfish-actions.pod:4834
14580 #, no-wrap
14581 msgid ""
14582 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14583 "\n"
14584 msgstr ""
14585
14586 #. type: textblock
14587 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7289
14588 msgid "This command sets the timestamps of a file with nanosecond precision."
14589 msgstr ""
14590
14591 #. type: textblock
14592 #: ../fish/guestfish-actions.pod:4839 ../src/guestfs-actions.pod:7292
14593 msgid ""
14594 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14595 "from the epoch."
14596 msgstr ""
14597
14598 #. type: textblock
14599 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7295
14600 msgid ""
14601 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14602 "nanoseconds from the epoch."
14603 msgstr ""
14604
14605 #. type: textblock
14606 #: ../fish/guestfish-actions.pod:4845 ../src/guestfs-actions.pod:7298
14607 msgid ""
14608 "If the C<*nsecs> field contains the special value C<-1> then the "
14609 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14610 "ignored in this case)."
14611 msgstr ""
14612
14613 #. type: textblock
14614 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7302
14615 msgid ""
14616 "If the C<*nsecs> field contains the special value C<-2> then the "
14617 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14618 "in this case)."
14619 msgstr ""
14620
14621 #. type: =head2
14622 #: ../fish/guestfish-actions.pod:4853
14623 msgid "version"
14624 msgstr ""
14625
14626 #. type: verbatim
14627 #: ../fish/guestfish-actions.pod:4855
14628 #, no-wrap
14629 msgid ""
14630 " version\n"
14631 "\n"
14632 msgstr ""
14633
14634 #. type: textblock
14635 #: ../fish/guestfish-actions.pod:4857 ../src/guestfs-actions.pod:7315
14636 msgid ""
14637 "Return the libguestfs version number that the program is linked against."
14638 msgstr ""
14639
14640 #. type: textblock
14641 #: ../fish/guestfish-actions.pod:4860 ../src/guestfs-actions.pod:7318
14642 msgid ""
14643 "Note that because of dynamic linking this is not necessarily the version of "
14644 "libguestfs that you compiled against.  You can compile the program, and then "
14645 "at runtime dynamically link against a completely different C<libguestfs.so> "
14646 "library."
14647 msgstr ""
14648
14649 #. type: textblock
14650 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
14651 msgid ""
14652 "This call was added in version C<1.0.58>.  In previous versions of "
14653 "libguestfs there was no way to get the version number.  From C code you can "
14654 "use dynamic linker functions to find out if this symbol exists (if it "
14655 "doesn't, then it's an earlier version)."
14656 msgstr ""
14657
14658 #. type: textblock
14659 #: ../fish/guestfish-actions.pod:4871 ../src/guestfs-actions.pod:7329
14660 msgid ""
14661 "The call returns a structure with four elements.  The first three (C<major>, "
14662 "C<minor> and C<release>) are numbers and correspond to the usual version "
14663 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14664 "but may be used for distro-specific information."
14665 msgstr ""
14666
14667 #. type: textblock
14668 #: ../fish/guestfish-actions.pod:4877 ../src/guestfs-actions.pod:7335
14669 msgid ""
14670 "To construct the original version string: C<$major.$minor.$release$extra>"
14671 msgstr ""
14672
14673 #. type: textblock
14674 #: ../fish/guestfish-actions.pod:4880 ../src/guestfs-actions.pod:7338
14675 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14676 msgstr ""
14677
14678 #. type: textblock
14679 #: ../fish/guestfish-actions.pod:4882
14680 msgid ""
14681 "I<Note:> Don't use this call to test for availability of features.  In "
14682 "enterprise distributions we backport features from later versions into "
14683 "earlier versions, making this an unreliable way to test for features.  Use "
14684 "L</available> instead."
14685 msgstr ""
14686
14687 #. type: =head2
14688 #: ../fish/guestfish-actions.pod:4888
14689 msgid "vfs-label"
14690 msgstr ""
14691
14692 #. type: verbatim
14693 #: ../fish/guestfish-actions.pod:4890
14694 #, no-wrap
14695 msgid ""
14696 " vfs-label device\n"
14697 "\n"
14698 msgstr ""
14699
14700 #. type: textblock
14701 #: ../fish/guestfish-actions.pod:4892 ../src/guestfs-actions.pod:7358
14702 msgid "This returns the filesystem label of the filesystem on C<device>."
14703 msgstr ""
14704
14705 #. type: textblock
14706 #: ../fish/guestfish-actions.pod:4895 ../src/guestfs-actions.pod:7361
14707 msgid "If the filesystem is unlabeled, this returns the empty string."
14708 msgstr ""
14709
14710 #. type: textblock
14711 #: ../fish/guestfish-actions.pod:4897
14712 msgid "To find a filesystem from the label, use L</findfs-label>."
14713 msgstr ""
14714
14715 #. type: =head2
14716 #: ../fish/guestfish-actions.pod:4899
14717 msgid "vfs-type"
14718 msgstr ""
14719
14720 #. type: verbatim
14721 #: ../fish/guestfish-actions.pod:4901
14722 #, no-wrap
14723 msgid ""
14724 " vfs-type device\n"
14725 "\n"
14726 msgstr ""
14727
14728 #. type: textblock
14729 #: ../fish/guestfish-actions.pod:4903 ../src/guestfs-actions.pod:7376
14730 msgid ""
14731 "This command gets the filesystem type corresponding to the filesystem on "
14732 "C<device>."
14733 msgstr ""
14734
14735 #. type: textblock
14736 #: ../fish/guestfish-actions.pod:4906 ../src/guestfs-actions.pod:7379
14737 msgid ""
14738 "For most filesystems, the result is the name of the Linux VFS module which "
14739 "would be used to mount this filesystem if you mounted it without specifying "
14740 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14741 msgstr ""
14742
14743 #. type: =head2
14744 #: ../fish/guestfish-actions.pod:4911
14745 msgid "vfs-uuid"
14746 msgstr ""
14747
14748 #. type: verbatim
14749 #: ../fish/guestfish-actions.pod:4913
14750 #, no-wrap
14751 msgid ""
14752 " vfs-uuid device\n"
14753 "\n"
14754 msgstr ""
14755
14756 #. type: textblock
14757 #: ../fish/guestfish-actions.pod:4915 ../src/guestfs-actions.pod:7395
14758 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14759 msgstr ""
14760
14761 #. type: textblock
14762 #: ../fish/guestfish-actions.pod:4918 ../src/guestfs-actions.pod:7398
14763 msgid "If the filesystem does not have a UUID, this returns the empty string."
14764 msgstr ""
14765
14766 #. type: textblock
14767 #: ../fish/guestfish-actions.pod:4920
14768 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
14769 msgstr ""
14770
14771 #. type: =head2
14772 #: ../fish/guestfish-actions.pod:4922
14773 msgid "vg-activate"
14774 msgstr ""
14775
14776 #. type: verbatim
14777 #: ../fish/guestfish-actions.pod:4924
14778 #, no-wrap
14779 msgid ""
14780 " vg-activate true|false 'volgroups ...'\n"
14781 "\n"
14782 msgstr ""
14783
14784 #. type: textblock
14785 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7414
14786 msgid ""
14787 "This command activates or (if C<activate> is false) deactivates all logical "
14788 "volumes in the listed volume groups C<volgroups>."
14789 msgstr ""
14790
14791 #. type: textblock
14792 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7417
14793 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14794 msgstr ""
14795
14796 #. type: textblock
14797 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
14798 msgid ""
14799 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14800 "activated or deactivated."
14801 msgstr ""
14802
14803 #. type: =head2
14804 #: ../fish/guestfish-actions.pod:4934
14805 msgid "vg-activate-all"
14806 msgstr ""
14807
14808 #. type: verbatim
14809 #: ../fish/guestfish-actions.pod:4936
14810 #, no-wrap
14811 msgid ""
14812 " vg-activate-all true|false\n"
14813 "\n"
14814 msgstr ""
14815
14816 #. type: textblock
14817 #: ../fish/guestfish-actions.pod:4938 ../src/guestfs-actions.pod:7432
14818 msgid ""
14819 "This command activates or (if C<activate> is false) deactivates all logical "
14820 "volumes in all volume groups."
14821 msgstr ""
14822
14823 #. type: textblock
14824 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7435
14825 msgid "This command is the same as running C<vgchange -a y|n>"
14826 msgstr ""
14827
14828 #. type: =head2
14829 #: ../fish/guestfish-actions.pod:4943
14830 msgid "vgcreate"
14831 msgstr ""
14832
14833 #. type: verbatim
14834 #: ../fish/guestfish-actions.pod:4945
14835 #, no-wrap
14836 msgid ""
14837 " vgcreate volgroup 'physvols ...'\n"
14838 "\n"
14839 msgstr ""
14840
14841 #. type: textblock
14842 #: ../fish/guestfish-actions.pod:4947 ../src/guestfs-actions.pod:7448
14843 msgid ""
14844 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14845 "of physical volumes C<physvols>."
14846 msgstr ""
14847
14848 #. type: =head2
14849 #: ../fish/guestfish-actions.pod:4950
14850 msgid "vglvuuids"
14851 msgstr ""
14852
14853 #. type: verbatim
14854 #: ../fish/guestfish-actions.pod:4952
14855 #, no-wrap
14856 msgid ""
14857 " vglvuuids vgname\n"
14858 "\n"
14859 msgstr ""
14860
14861 #. type: textblock
14862 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7461
14863 msgid ""
14864 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14865 "volumes created in this volume group."
14866 msgstr ""
14867
14868 #. type: textblock
14869 #: ../fish/guestfish-actions.pod:4957
14870 msgid ""
14871 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
14872 "logical volumes and volume groups."
14873 msgstr ""
14874
14875 #. type: textblock
14876 #: ../fish/guestfish-actions.pod:4960
14877 msgid "See also L</vgpvuuids>."
14878 msgstr ""
14879
14880 #. type: =head2
14881 #: ../fish/guestfish-actions.pod:4962
14882 msgid "vgpvuuids"
14883 msgstr ""
14884
14885 #. type: verbatim
14886 #: ../fish/guestfish-actions.pod:4964
14887 #, no-wrap
14888 msgid ""
14889 " vgpvuuids vgname\n"
14890 "\n"
14891 msgstr ""
14892
14893 #. type: textblock
14894 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7481
14895 msgid ""
14896 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14897 "volumes that this volume group resides on."
14898 msgstr ""
14899
14900 #. type: textblock
14901 #: ../fish/guestfish-actions.pod:4969
14902 msgid ""
14903 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
14904 "physical volumes and volume groups."
14905 msgstr ""
14906
14907 #. type: textblock
14908 #: ../fish/guestfish-actions.pod:4972
14909 msgid "See also L</vglvuuids>."
14910 msgstr ""
14911
14912 #. type: =head2
14913 #: ../fish/guestfish-actions.pod:4974
14914 msgid "vgremove"
14915 msgstr ""
14916
14917 #. type: verbatim
14918 #: ../fish/guestfish-actions.pod:4976
14919 #, no-wrap
14920 msgid ""
14921 " vgremove vgname\n"
14922 "\n"
14923 msgstr ""
14924
14925 #. type: textblock
14926 #: ../fish/guestfish-actions.pod:4978 ../src/guestfs-actions.pod:7501
14927 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14928 msgstr ""
14929
14930 #. type: textblock
14931 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7503
14932 msgid ""
14933 "This also forcibly removes all logical volumes in the volume group (if any)."
14934 msgstr ""
14935
14936 #. type: =head2
14937 #: ../fish/guestfish-actions.pod:4983
14938 msgid "vgrename"
14939 msgstr ""
14940
14941 #. type: verbatim
14942 #: ../fish/guestfish-actions.pod:4985
14943 #, no-wrap
14944 msgid ""
14945 " vgrename volgroup newvolgroup\n"
14946 "\n"
14947 msgstr ""
14948
14949 #. type: textblock
14950 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7517
14951 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14952 msgstr ""
14953
14954 #. type: =head2
14955 #: ../fish/guestfish-actions.pod:4989
14956 msgid "vgs"
14957 msgstr ""
14958
14959 #. type: verbatim
14960 #: ../fish/guestfish-actions.pod:4991
14961 #, no-wrap
14962 msgid ""
14963 " vgs\n"
14964 "\n"
14965 msgstr ""
14966
14967 #. type: textblock
14968 #: ../fish/guestfish-actions.pod:4993 ../src/guestfs-actions.pod:7528
14969 msgid ""
14970 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14971 "> command."
14972 msgstr ""
14973
14974 #. type: textblock
14975 #: ../fish/guestfish-actions.pod:4996 ../src/guestfs-actions.pod:7531
14976 msgid ""
14977 "This returns a list of just the volume group names that were detected (eg. "
14978 "C<VolGroup00>)."
14979 msgstr ""
14980
14981 #. type: textblock
14982 #: ../fish/guestfish-actions.pod:4999
14983 msgid "See also L</vgs-full>."
14984 msgstr ""
14985
14986 #. type: =head2
14987 #: ../fish/guestfish-actions.pod:5001
14988 msgid "vgs-full"
14989 msgstr ""
14990
14991 #. type: verbatim
14992 #: ../fish/guestfish-actions.pod:5003
14993 #, no-wrap
14994 msgid ""
14995 " vgs-full\n"
14996 "\n"
14997 msgstr ""
14998
14999 #. type: textblock
15000 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7547
15001 msgid ""
15002 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15003 "> command.  The \"full\" version includes all fields."
15004 msgstr ""
15005
15006 #. type: =head2
15007 #: ../fish/guestfish-actions.pod:5008
15008 msgid "vgscan"
15009 msgstr ""
15010
15011 #. type: verbatim
15012 #: ../fish/guestfish-actions.pod:5010
15013 #, no-wrap
15014 msgid ""
15015 " vgscan\n"
15016 "\n"
15017 msgstr ""
15018
15019 #. type: textblock
15020 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7561
15021 msgid ""
15022 "This rescans all block devices and rebuilds the list of LVM physical "
15023 "volumes, volume groups and logical volumes."
15024 msgstr ""
15025
15026 #. type: =head2
15027 #: ../fish/guestfish-actions.pod:5015
15028 msgid "vguuid"
15029 msgstr ""
15030
15031 #. type: verbatim
15032 #: ../fish/guestfish-actions.pod:5017
15033 #, no-wrap
15034 msgid ""
15035 " vguuid vgname\n"
15036 "\n"
15037 msgstr ""
15038
15039 #. type: textblock
15040 #: ../fish/guestfish-actions.pod:5019 ../src/guestfs-actions.pod:7574
15041 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15042 msgstr ""
15043
15044 #. type: =head2
15045 #: ../fish/guestfish-actions.pod:5021
15046 msgid "wc-c"
15047 msgstr ""
15048
15049 #. type: verbatim
15050 #: ../fish/guestfish-actions.pod:5023
15051 #, no-wrap
15052 msgid ""
15053 " wc-c path\n"
15054 "\n"
15055 msgstr ""
15056
15057 #. type: textblock
15058 #: ../fish/guestfish-actions.pod:5025 ../src/guestfs-actions.pod:7614
15059 msgid ""
15060 "This command counts the characters in a file, using the C<wc -c> external "
15061 "command."
15062 msgstr ""
15063
15064 #. type: =head2
15065 #: ../fish/guestfish-actions.pod:5028
15066 msgid "wc-l"
15067 msgstr ""
15068
15069 #. type: verbatim
15070 #: ../fish/guestfish-actions.pod:5030
15071 #, no-wrap
15072 msgid ""
15073 " wc-l path\n"
15074 "\n"
15075 msgstr ""
15076
15077 #. type: textblock
15078 #: ../fish/guestfish-actions.pod:5032 ../src/guestfs-actions.pod:7627
15079 msgid ""
15080 "This command counts the lines in a file, using the C<wc -l> external command."
15081 msgstr ""
15082
15083 #. type: =head2
15084 #: ../fish/guestfish-actions.pod:5035
15085 msgid "wc-w"
15086 msgstr ""
15087
15088 #. type: verbatim
15089 #: ../fish/guestfish-actions.pod:5037
15090 #, no-wrap
15091 msgid ""
15092 " wc-w path\n"
15093 "\n"
15094 msgstr ""
15095
15096 #. type: textblock
15097 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7640
15098 msgid ""
15099 "This command counts the words in a file, using the C<wc -w> external command."
15100 msgstr ""
15101
15102 #. type: =head2
15103 #: ../fish/guestfish-actions.pod:5042
15104 msgid "write"
15105 msgstr ""
15106
15107 #. type: verbatim
15108 #: ../fish/guestfish-actions.pod:5044
15109 #, no-wrap
15110 msgid ""
15111 " write path content\n"
15112 "\n"
15113 msgstr ""
15114
15115 #. type: textblock
15116 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7655
15117 msgid ""
15118 "This call creates a file called C<path>.  The content of the file is the "
15119 "string C<content> (which can contain any 8 bit data)."
15120 msgstr ""
15121
15122 #. type: textblock
15123 #: ../fish/guestfish-actions.pod:5049
15124 msgid "See also L</write-append>."
15125 msgstr ""
15126
15127 #. type: =head2
15128 #: ../fish/guestfish-actions.pod:5054
15129 msgid "write-append"
15130 msgstr ""
15131
15132 #. type: verbatim
15133 #: ../fish/guestfish-actions.pod:5056
15134 #, no-wrap
15135 msgid ""
15136 " write-append path content\n"
15137 "\n"
15138 msgstr ""
15139
15140 #. type: textblock
15141 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7675
15142 msgid ""
15143 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15144 "not exist, then a new file is created."
15145 msgstr ""
15146
15147 #. type: textblock
15148 #: ../fish/guestfish-actions.pod:5061
15149 msgid "See also L</write>."
15150 msgstr ""
15151
15152 #. type: =head2
15153 #: ../fish/guestfish-actions.pod:5066
15154 msgid "write-file"
15155 msgstr ""
15156
15157 #. type: verbatim
15158 #: ../fish/guestfish-actions.pod:5068
15159 #, no-wrap
15160 msgid ""
15161 " write-file path content size\n"
15162 "\n"
15163 msgstr ""
15164
15165 #. type: textblock
15166 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7702
15167 msgid ""
15168 "This call creates a file called C<path>.  The contents of the file is the "
15169 "string C<content> (which can contain any 8 bit data), with length C<size>."
15170 msgstr ""
15171
15172 #. type: textblock
15173 #: ../fish/guestfish-actions.pod:5074 ../src/guestfs-actions.pod:7706
15174 msgid ""
15175 "As a special case, if C<size> is C<0> then the length is calculated using "
15176 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15177 msgstr ""
15178
15179 #. type: textblock
15180 #: ../fish/guestfish-actions.pod:5078 ../src/guestfs-actions.pod:7710
15181 msgid ""
15182 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15183 "I<not> work, even if the length is specified."
15184 msgstr ""
15185
15186 #. type: textblock
15187 #: ../fish/guestfish-actions.pod:5084
15188 msgid ""
15189 "I<This function is deprecated.> In new code, use the L</write> call instead."
15190 msgstr ""
15191
15192 #. type: =head2
15193 #: ../fish/guestfish-actions.pod:5091
15194 msgid "zegrep"
15195 msgstr ""
15196
15197 #. type: verbatim
15198 #: ../fish/guestfish-actions.pod:5093
15199 #, no-wrap
15200 msgid ""
15201 " zegrep regex path\n"
15202 "\n"
15203 msgstr ""
15204
15205 #. type: textblock
15206 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7727
15207 msgid ""
15208 "This calls the external C<zegrep> program and returns the matching lines."
15209 msgstr ""
15210
15211 #. type: =head2
15212 #: ../fish/guestfish-actions.pod:5101
15213 msgid "zegrepi"
15214 msgstr ""
15215
15216 #. type: verbatim
15217 #: ../fish/guestfish-actions.pod:5103
15218 #, no-wrap
15219 msgid ""
15220 " zegrepi regex path\n"
15221 "\n"
15222 msgstr ""
15223
15224 #. type: textblock
15225 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7746
15226 msgid ""
15227 "This calls the external C<zegrep -i> program and returns the matching lines."
15228 msgstr ""
15229
15230 #. type: =head2
15231 #: ../fish/guestfish-actions.pod:5111
15232 msgid "zero"
15233 msgstr ""
15234
15235 #. type: verbatim
15236 #: ../fish/guestfish-actions.pod:5113
15237 #, no-wrap
15238 msgid ""
15239 " zero device\n"
15240 "\n"
15241 msgstr ""
15242
15243 #. type: textblock
15244 #: ../fish/guestfish-actions.pod:5115 ../src/guestfs-actions.pod:7764
15245 msgid "This command writes zeroes over the first few blocks of C<device>."
15246 msgstr ""
15247
15248 #. type: textblock
15249 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7766
15250 msgid ""
15251 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15252 "securely wipe the device).  It should be sufficient to remove any partition "
15253 "tables, filesystem superblocks and so on."
15254 msgstr ""
15255
15256 #. type: textblock
15257 #: ../fish/guestfish-actions.pod:5121
15258 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
15259 msgstr ""
15260
15261 #. type: =head2
15262 #: ../fish/guestfish-actions.pod:5124
15263 msgid "zero-device"
15264 msgstr ""
15265
15266 #. type: verbatim
15267 #: ../fish/guestfish-actions.pod:5126
15268 #, no-wrap
15269 msgid ""
15270 " zero-device device\n"
15271 "\n"
15272 msgstr ""
15273
15274 #. type: textblock
15275 #: ../fish/guestfish-actions.pod:5128
15276 msgid ""
15277 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
15278 "which just zeroes the first few blocks of a device."
15279 msgstr ""
15280
15281 #. type: =head2
15282 #: ../fish/guestfish-actions.pod:5135
15283 msgid "zerofree"
15284 msgstr ""
15285
15286 #. type: verbatim
15287 #: ../fish/guestfish-actions.pod:5137
15288 #, no-wrap
15289 msgid ""
15290 " zerofree device\n"
15291 "\n"
15292 msgstr ""
15293
15294 #. type: textblock
15295 #: ../fish/guestfish-actions.pod:5139 ../src/guestfs-actions.pod:7810
15296 msgid ""
15297 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15298 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15299 "possible to compress the filesystem more effectively."
15300 msgstr ""
15301
15302 #. type: textblock
15303 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7815
15304 msgid "You should B<not> run this program if the filesystem is mounted."
15305 msgstr ""
15306
15307 #. type: textblock
15308 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7818
15309 msgid ""
15310 "It is possible that using this program can damage the filesystem or data on "
15311 "the filesystem."
15312 msgstr ""
15313
15314 #. type: =head2
15315 #: ../fish/guestfish-actions.pod:5150
15316 msgid "zfgrep"
15317 msgstr ""
15318
15319 #. type: verbatim
15320 #: ../fish/guestfish-actions.pod:5152
15321 #, no-wrap
15322 msgid ""
15323 " zfgrep pattern path\n"
15324 "\n"
15325 msgstr ""
15326
15327 #. type: textblock
15328 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7832
15329 msgid ""
15330 "This calls the external C<zfgrep> program and returns the matching lines."
15331 msgstr ""
15332
15333 #. type: =head2
15334 #: ../fish/guestfish-actions.pod:5160
15335 msgid "zfgrepi"
15336 msgstr ""
15337
15338 #. type: verbatim
15339 #: ../fish/guestfish-actions.pod:5162
15340 #, no-wrap
15341 msgid ""
15342 " zfgrepi pattern path\n"
15343 "\n"
15344 msgstr ""
15345
15346 #. type: textblock
15347 #: ../fish/guestfish-actions.pod:5164 ../src/guestfs-actions.pod:7851
15348 msgid ""
15349 "This calls the external C<zfgrep -i> program and returns the matching lines."
15350 msgstr ""
15351
15352 #. type: =head2
15353 #: ../fish/guestfish-actions.pod:5170
15354 msgid "zfile"
15355 msgstr ""
15356
15357 #. type: verbatim
15358 #: ../fish/guestfish-actions.pod:5172
15359 #, no-wrap
15360 msgid ""
15361 " zfile meth path\n"
15362 "\n"
15363 msgstr ""
15364
15365 #. type: textblock
15366 #: ../fish/guestfish-actions.pod:5174 ../src/guestfs-actions.pod:7877
15367 msgid ""
15368 "This command runs C<file> after first decompressing C<path> using C<method>."
15369 msgstr ""
15370
15371 #. type: textblock
15372 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7880
15373 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15374 msgstr ""
15375
15376 #. type: textblock
15377 #: ../fish/guestfish-actions.pod:5179
15378 msgid ""
15379 "Since 1.0.63, use L</file> instead which can now process compressed files."
15380 msgstr ""
15381
15382 #. type: textblock
15383 #: ../fish/guestfish-actions.pod:5182
15384 msgid ""
15385 "I<This function is deprecated.> In new code, use the L</file> call instead."
15386 msgstr ""
15387
15388 #. type: =head2
15389 #: ../fish/guestfish-actions.pod:5189
15390 msgid "zgrep"
15391 msgstr ""
15392
15393 #. type: verbatim
15394 #: ../fish/guestfish-actions.pod:5191
15395 #, no-wrap
15396 msgid ""
15397 " zgrep regex path\n"
15398 "\n"
15399 msgstr ""
15400
15401 #. type: textblock
15402 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7897
15403 msgid ""
15404 "This calls the external C<zgrep> program and returns the matching lines."
15405 msgstr ""
15406
15407 #. type: =head2
15408 #: ../fish/guestfish-actions.pod:5199
15409 msgid "zgrepi"
15410 msgstr ""
15411
15412 #. type: verbatim
15413 #: ../fish/guestfish-actions.pod:5201
15414 #, no-wrap
15415 msgid ""
15416 " zgrepi regex path\n"
15417 "\n"
15418 msgstr ""
15419
15420 #. type: textblock
15421 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:7916
15422 msgid ""
15423 "This calls the external C<zgrep -i> program and returns the matching lines."
15424 msgstr ""
15425
15426 #. type: =head2
15427 #: ../fish/guestfish-commands.pod:1
15428 msgid "alloc"
15429 msgstr ""
15430
15431 #. type: =head2
15432 #: ../fish/guestfish-commands.pod:3
15433 msgid "allocate"
15434 msgstr ""
15435
15436 #. type: verbatim
15437 #: ../fish/guestfish-commands.pod:5
15438 #, no-wrap
15439 msgid ""
15440 " alloc filename size\n"
15441 "\n"
15442 msgstr ""
15443
15444 #. type: textblock
15445 #: ../fish/guestfish-commands.pod:7
15446 msgid ""
15447 "This creates an empty (zeroed) file of the given size, and then adds so it "
15448 "can be further examined."
15449 msgstr ""
15450
15451 #. type: textblock
15452 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
15453 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
15454 msgstr ""
15455
15456 #. type: textblock
15457 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
15458 msgid "Size can be specified using standard suffixes, eg. C<1M>."
15459 msgstr ""
15460
15461 #. type: textblock
15462 #: ../fish/guestfish-commands.pod:14
15463 msgid ""
15464 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
15465 "image, see L</PREPARED DISK IMAGES>."
15466 msgstr ""
15467
15468 #. type: =head2
15469 #: ../fish/guestfish-commands.pod:17
15470 msgid "copy-in"
15471 msgstr ""
15472
15473 #. type: verbatim
15474 #: ../fish/guestfish-commands.pod:19
15475 #, no-wrap
15476 msgid ""
15477 " copy-in local [local ...] /remotedir\n"
15478 "\n"
15479 msgstr ""
15480
15481 #. type: textblock
15482 #: ../fish/guestfish-commands.pod:21
15483 msgid ""
15484 "C<copy-in> copies local files or directories recursively into the disk "
15485 "image, placing them in the directory called C</remotedir> (which must "
15486 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
15487 "other commands as necessary."
15488 msgstr ""
15489
15490 #. type: textblock
15491 #: ../fish/guestfish-commands.pod:26
15492 msgid ""
15493 "Multiple local files and directories can be specified, but the last "
15494 "parameter must always be a remote directory.  Wildcards cannot be used."
15495 msgstr ""
15496
15497 #. type: =head2
15498 #: ../fish/guestfish-commands.pod:30
15499 msgid "copy-out"
15500 msgstr ""
15501
15502 #. type: verbatim
15503 #: ../fish/guestfish-commands.pod:32
15504 #, no-wrap
15505 msgid ""
15506 " copy-out remote [remote ...] localdir\n"
15507 "\n"
15508 msgstr ""
15509
15510 #. type: textblock
15511 #: ../fish/guestfish-commands.pod:34
15512 msgid ""
15513 "C<copy-out> copies remote files or directories recursively out of the disk "
15514 "image, placing them on the host disk in a local directory called C<localdir> "
15515 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
15516 "download>, L</tar-out> and other commands as necessary."
15517 msgstr ""
15518
15519 #. type: textblock
15520 #: ../fish/guestfish-commands.pod:40
15521 msgid ""
15522 "Multiple remote files and directories can be specified, but the last "
15523 "parameter must always be a local directory.  To download to the current "
15524 "directory, use C<.> as in:"
15525 msgstr ""
15526
15527 #. type: verbatim
15528 #: ../fish/guestfish-commands.pod:44
15529 #, no-wrap
15530 msgid ""
15531 " copy-out /home .\n"
15532 "\n"
15533 msgstr ""
15534
15535 #. type: textblock
15536 #: ../fish/guestfish-commands.pod:46
15537 msgid ""
15538 "Wildcards cannot be used in the ordinary command, but you can use them with "
15539 "the help of L</glob> like this:"
15540 msgstr ""
15541
15542 #. type: verbatim
15543 #: ../fish/guestfish-commands.pod:49
15544 #, no-wrap
15545 msgid ""
15546 " glob copy-out /home/* .\n"
15547 "\n"
15548 msgstr ""
15549
15550 #. type: =head2
15551 #: ../fish/guestfish-commands.pod:51
15552 msgid "display"
15553 msgstr ""
15554
15555 #. type: verbatim
15556 #: ../fish/guestfish-commands.pod:53
15557 #, no-wrap
15558 msgid ""
15559 " display filename\n"
15560 "\n"
15561 msgstr ""
15562
15563 #. type: textblock
15564 #: ../fish/guestfish-commands.pod:55
15565 msgid ""
15566 "Use C<display> (a graphical display program) to display an image file.  It "
15567 "downloads the file, and runs C<display> on it."
15568 msgstr ""
15569
15570 #. type: textblock
15571 #: ../fish/guestfish-commands.pod:58
15572 msgid ""
15573 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15574 "environment variable.  For example to use the GNOME display program:"
15575 msgstr ""
15576
15577 #. type: verbatim
15578 #: ../fish/guestfish-commands.pod:61
15579 #, no-wrap
15580 msgid ""
15581 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15582 "\n"
15583 msgstr ""
15584
15585 #. type: textblock
15586 #: ../fish/guestfish-commands.pod:63
15587 msgid "See also L<display(1)>."
15588 msgstr ""
15589
15590 #. type: =head2
15591 #: ../fish/guestfish-commands.pod:65
15592 msgid "echo"
15593 msgstr ""
15594
15595 #. type: verbatim
15596 #: ../fish/guestfish-commands.pod:67
15597 #, no-wrap
15598 msgid ""
15599 " echo [params ...]\n"
15600 "\n"
15601 msgstr ""
15602
15603 #. type: textblock
15604 #: ../fish/guestfish-commands.pod:69
15605 msgid "This echos the parameters to the terminal."
15606 msgstr ""
15607
15608 #. type: =head2
15609 #: ../fish/guestfish-commands.pod:71
15610 msgid "edit"
15611 msgstr ""
15612
15613 #. type: =head2
15614 #: ../fish/guestfish-commands.pod:73
15615 msgid "vi"
15616 msgstr ""
15617
15618 #. type: =head2
15619 #: ../fish/guestfish-commands.pod:75
15620 msgid "emacs"
15621 msgstr ""
15622
15623 #. type: verbatim
15624 #: ../fish/guestfish-commands.pod:77
15625 #, no-wrap
15626 msgid ""
15627 " edit filename\n"
15628 "\n"
15629 msgstr ""
15630
15631 #. type: textblock
15632 #: ../fish/guestfish-commands.pod:79
15633 msgid ""
15634 "This is used to edit a file.  It downloads the file, edits it locally using "
15635 "your editor, then uploads the result."
15636 msgstr ""
15637
15638 #. type: textblock
15639 #: ../fish/guestfish-commands.pod:82
15640 msgid ""
15641 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
15642 "or C<emacs> you will get those corresponding editors."
15643 msgstr ""
15644
15645 #. type: =head2
15646 #: ../fish/guestfish-commands.pod:86
15647 msgid "glob"
15648 msgstr ""
15649
15650 #. type: verbatim
15651 #: ../fish/guestfish-commands.pod:88
15652 #, no-wrap
15653 msgid ""
15654 " glob command args...\n"
15655 "\n"
15656 msgstr ""
15657
15658 #. type: textblock
15659 #: ../fish/guestfish-commands.pod:90
15660 msgid ""
15661 "Expand wildcards in any paths in the args list, and run C<command> "
15662 "repeatedly on each matching path."
15663 msgstr ""
15664
15665 #. type: textblock
15666 #: ../fish/guestfish-commands.pod:93
15667 msgid "See L</WILDCARDS AND GLOBBING>."
15668 msgstr ""
15669
15670 #. type: =head2
15671 #: ../fish/guestfish-commands.pod:95
15672 msgid "hexedit"
15673 msgstr ""
15674
15675 #. type: verbatim
15676 #: ../fish/guestfish-commands.pod:97
15677 #, no-wrap
15678 msgid ""
15679 " hexedit <filename|device>\n"
15680 " hexedit <filename|device> <max>\n"
15681 " hexedit <filename|device> <start> <max>\n"
15682 "\n"
15683 msgstr ""
15684
15685 #. type: textblock
15686 #: ../fish/guestfish-commands.pod:101
15687 msgid ""
15688 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
15689 "device."
15690 msgstr ""
15691
15692 #. type: textblock
15693 #: ../fish/guestfish-commands.pod:104
15694 msgid ""
15695 "This command works by downloading potentially the whole file or device, "
15696 "editing it locally, then uploading it.  If the file or device is large, you "
15697 "have to specify which part you wish to edit by using C<max> and/or C<start> "
15698 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
15699 "usual modifiers allowed such as C<1M> (1 megabyte)."
15700 msgstr ""
15701
15702 #. type: textblock
15703 #: ../fish/guestfish-commands.pod:111
15704 msgid "For example to edit the first few sectors of a disk you might do:"
15705 msgstr ""
15706
15707 #. type: verbatim
15708 #: ../fish/guestfish-commands.pod:114
15709 #, no-wrap
15710 msgid ""
15711 " hexedit /dev/sda 1M\n"
15712 "\n"
15713 msgstr ""
15714
15715 #. type: textblock
15716 #: ../fish/guestfish-commands.pod:116
15717 msgid ""
15718 "which would allow you to edit anywhere within the first megabyte of the disk."
15719 msgstr ""
15720
15721 #. type: textblock
15722 #: ../fish/guestfish-commands.pod:119
15723 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
15724 msgstr ""
15725
15726 #. type: verbatim
15727 #: ../fish/guestfish-commands.pod:121
15728 #, no-wrap
15729 msgid ""
15730 " hexedit /dev/sda1 0x400 0x400\n"
15731 "\n"
15732 msgstr ""
15733
15734 #. type: textblock
15735 #: ../fish/guestfish-commands.pod:123
15736 msgid "(assuming the superblock is in the standard location)."
15737 msgstr ""
15738
15739 #. type: textblock
15740 #: ../fish/guestfish-commands.pod:125
15741 msgid ""
15742 "This command requires the external L<hexedit(1)> program.  You can specify "
15743 "another program to use by setting the C<HEXEDITOR> environment variable."
15744 msgstr ""
15745
15746 #. type: textblock
15747 #: ../fish/guestfish-commands.pod:129
15748 msgid "See also L</hexdump>."
15749 msgstr ""
15750
15751 #. type: =head2
15752 #: ../fish/guestfish-commands.pod:131
15753 msgid "lcd"
15754 msgstr ""
15755
15756 #. type: verbatim
15757 #: ../fish/guestfish-commands.pod:133
15758 #, no-wrap
15759 msgid ""
15760 " lcd directory\n"
15761 "\n"
15762 msgstr ""
15763
15764 #. type: textblock
15765 #: ../fish/guestfish-commands.pod:135
15766 msgid ""
15767 "Change the local directory, ie. the current directory of guestfish itself."
15768 msgstr ""
15769
15770 #. type: textblock
15771 #: ../fish/guestfish-commands.pod:138
15772 msgid "Note that C<!cd> won't do what you might expect."
15773 msgstr ""
15774
15775 #. type: =head2
15776 #: ../fish/guestfish-commands.pod:140
15777 msgid "man"
15778 msgstr ""
15779
15780 #. type: =head2
15781 #: ../fish/guestfish-commands.pod:142
15782 msgid "manual"
15783 msgstr ""
15784
15785 #. type: verbatim
15786 #: ../fish/guestfish-commands.pod:144
15787 #, no-wrap
15788 msgid ""
15789 "  man\n"
15790 "\n"
15791 msgstr ""
15792
15793 #. type: textblock
15794 #: ../fish/guestfish-commands.pod:146
15795 msgid "Opens the manual page for guestfish."
15796 msgstr ""
15797
15798 #. type: =head2
15799 #: ../fish/guestfish-commands.pod:148
15800 msgid "more"
15801 msgstr ""
15802
15803 #. type: =head2
15804 #: ../fish/guestfish-commands.pod:150
15805 msgid "less"
15806 msgstr ""
15807
15808 #. type: verbatim
15809 #: ../fish/guestfish-commands.pod:152
15810 #, no-wrap
15811 msgid ""
15812 " more filename\n"
15813 "\n"
15814 msgstr ""
15815
15816 #. type: verbatim
15817 #: ../fish/guestfish-commands.pod:154
15818 #, no-wrap
15819 msgid ""
15820 " less filename\n"
15821 "\n"
15822 msgstr ""
15823
15824 #. type: textblock
15825 #: ../fish/guestfish-commands.pod:156
15826 msgid "This is used to view a file."
15827 msgstr ""
15828
15829 #. type: textblock
15830 #: ../fish/guestfish-commands.pod:158
15831 msgid ""
15832 "The default viewer is C<$PAGER>.  However if you use the alternate command "
15833 "C<less> you will get the C<less> command specifically."
15834 msgstr ""
15835
15836 #. type: =head2
15837 #: ../fish/guestfish-commands.pod:161
15838 msgid "reopen"
15839 msgstr ""
15840
15841 #. type: verbatim
15842 #: ../fish/guestfish-commands.pod:163
15843 #, no-wrap
15844 msgid ""
15845 "  reopen\n"
15846 "\n"
15847 msgstr ""
15848
15849 #. type: textblock
15850 #: ../fish/guestfish-commands.pod:165
15851 msgid ""
15852 "Close and reopen the libguestfs handle.  It is not necessary to use this "
15853 "normally, because the handle is closed properly when guestfish exits.  "
15854 "However this is occasionally useful for testing."
15855 msgstr ""
15856
15857 #. type: =head2
15858 #: ../fish/guestfish-commands.pod:169
15859 msgid "setenv"
15860 msgstr ""
15861
15862 #. type: verbatim
15863 #: ../fish/guestfish-commands.pod:171
15864 #, no-wrap
15865 msgid ""
15866 "  setenv VAR value\n"
15867 "\n"
15868 msgstr ""
15869
15870 #. type: textblock
15871 #: ../fish/guestfish-commands.pod:173
15872 msgid "Set the environment variable C<VAR> to the string C<value>."
15873 msgstr ""
15874
15875 #. type: textblock
15876 #: ../fish/guestfish-commands.pod:175
15877 msgid ""
15878 "To print the value of an environment variable use a shell command such as:"
15879 msgstr ""
15880
15881 #. type: verbatim
15882 #: ../fish/guestfish-commands.pod:178
15883 #, no-wrap
15884 msgid ""
15885 " !echo $VAR\n"
15886 "\n"
15887 msgstr ""
15888
15889 #. type: =head2
15890 #: ../fish/guestfish-commands.pod:180
15891 msgid "sparse"
15892 msgstr ""
15893
15894 #. type: verbatim
15895 #: ../fish/guestfish-commands.pod:182
15896 #, no-wrap
15897 msgid ""
15898 " sparse filename size\n"
15899 "\n"
15900 msgstr ""
15901
15902 #. type: textblock
15903 #: ../fish/guestfish-commands.pod:184
15904 msgid ""
15905 "This creates an empty sparse file of the given size, and then adds so it can "
15906 "be further examined."
15907 msgstr ""
15908
15909 #. type: textblock
15910 #: ../fish/guestfish-commands.pod:187
15911 msgid ""
15912 "In all respects it works the same as the L</alloc> command, except that the "
15913 "image file is allocated sparsely, which means that disk blocks are not "
15914 "assigned to the file until they are needed.  Sparse disk files only use "
15915 "space when written to, but they are slower and there is a danger you could "
15916 "run out of real disk space during a write operation."
15917 msgstr ""
15918
15919 #. type: =head2
15920 #: ../fish/guestfish-commands.pod:197
15921 msgid "supported"
15922 msgstr ""
15923
15924 #. type: verbatim
15925 #: ../fish/guestfish-commands.pod:199
15926 #, no-wrap
15927 msgid ""
15928 " supported\n"
15929 "\n"
15930 msgstr ""
15931
15932 #. type: textblock
15933 #: ../fish/guestfish-commands.pod:201
15934 msgid ""
15935 "This command returns a list of the optional groups known to the daemon, and "
15936 "indicates which ones are supported by this build of the libguestfs appliance."
15937 msgstr ""
15938
15939 #. type: textblock
15940 #: ../fish/guestfish-commands.pod:205
15941 msgid "See also L<guestfs(3)/AVAILABILITY>."
15942 msgstr ""
15943
15944 #. type: =head2
15945 #: ../fish/guestfish-commands.pod:207
15946 msgid "time"
15947 msgstr ""
15948
15949 #. type: verbatim
15950 #: ../fish/guestfish-commands.pod:209
15951 #, no-wrap
15952 msgid ""
15953 " time command args...\n"
15954 "\n"
15955 msgstr ""
15956
15957 #. type: textblock
15958 #: ../fish/guestfish-commands.pod:211
15959 msgid ""
15960 "Run the command as usual, but print the elapsed time afterwards.  This can "
15961 "be useful for benchmarking operations."
15962 msgstr ""
15963
15964 #. type: =head2
15965 #: ../fish/guestfish-commands.pod:214
15966 msgid "unsetenv"
15967 msgstr ""
15968
15969 #. type: verbatim
15970 #: ../fish/guestfish-commands.pod:216
15971 #, no-wrap
15972 msgid ""
15973 "  unsetenv VAR\n"
15974 "\n"
15975 msgstr ""
15976
15977 #. type: textblock
15978 #: ../fish/guestfish-commands.pod:218
15979 msgid "Remove C<VAR> from the environment."
15980 msgstr ""
15981
15982 #. type: textblock
15983 #: ../fish/guestfish.pod:5
15984 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15985 msgstr ""
15986
15987 #. type: verbatim
15988 #: ../fish/guestfish.pod:9
15989 #, no-wrap
15990 msgid ""
15991 " guestfish [--options] [commands]\n"
15992 "\n"
15993 msgstr ""
15994
15995 #. type: verbatim
15996 #: ../fish/guestfish.pod:11
15997 #, no-wrap
15998 msgid ""
15999 " guestfish\n"
16000 "\n"
16001 msgstr ""
16002
16003 #. type: verbatim
16004 #: ../fish/guestfish.pod:13
16005 #, no-wrap
16006 msgid ""
16007 " guestfish [--ro|--rw] -a disk.img\n"
16008 "\n"
16009 msgstr ""
16010
16011 #. type: verbatim
16012 #: ../fish/guestfish.pod:15
16013 #, no-wrap
16014 msgid ""
16015 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16016 "\n"
16017 msgstr ""
16018
16019 #. type: verbatim
16020 #: ../fish/guestfish.pod:17
16021 #, no-wrap
16022 msgid ""
16023 " guestfish -d libvirt-domain\n"
16024 "\n"
16025 msgstr ""
16026
16027 #. type: verbatim
16028 #: ../fish/guestfish.pod:19
16029 #, no-wrap
16030 msgid ""
16031 " guestfish [--ro|--rw] -a disk.img -i\n"
16032 "\n"
16033 msgstr ""
16034
16035 #. type: verbatim
16036 #: ../fish/guestfish.pod:21
16037 #, no-wrap
16038 msgid ""
16039 " guestfish -d libvirt-domain -i\n"
16040 "\n"
16041 msgstr ""
16042
16043 #. type: textblock
16044 #: ../fish/guestfish.pod:25
16045 msgid ""
16046 "Using guestfish in read/write mode on live virtual machines can be "
16047 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16048 "option to use guestfish safely if the disk image or virtual machine might be "
16049 "live."
16050 msgstr ""
16051
16052 #. type: textblock
16053 #: ../fish/guestfish.pod:32
16054 msgid ""
16055 "Guestfish is a shell and command-line tool for examining and modifying "
16056 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16057 "functionality of the guestfs API, see L<guestfs(3)>."
16058 msgstr ""
16059
16060 #. type: textblock
16061 #: ../fish/guestfish.pod:36
16062 msgid ""
16063 "Guestfish gives you structured access to the libguestfs API, from shell "
16064 "scripts or the command line or interactively.  If you want to rescue a "
16065 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16066 "command."
16067 msgstr ""
16068
16069 #. type: =head2
16070 #: ../fish/guestfish.pod:43
16071 msgid "As an interactive shell"
16072 msgstr ""
16073
16074 #. type: verbatim
16075 #: ../fish/guestfish.pod:45
16076 #, no-wrap
16077 msgid ""
16078 " $ guestfish\n"
16079 " \n"
16080 msgstr ""
16081
16082 #. type: verbatim
16083 #: ../fish/guestfish.pod:47
16084 #, no-wrap
16085 msgid ""
16086 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16087 " editing virtual machine filesystems.\n"
16088 " \n"
16089 msgstr ""
16090
16091 #. type: verbatim
16092 #: ../fish/guestfish.pod:50
16093 #, no-wrap
16094 msgid ""
16095 " Type: 'help' for a list of commands\n"
16096 "       'man' to read the manual\n"
16097 "       'quit' to quit the shell\n"
16098 " \n"
16099 msgstr ""
16100
16101 #. type: verbatim
16102 #: ../fish/guestfish.pod:54
16103 #, no-wrap
16104 msgid ""
16105 " ><fs> add-ro disk.img\n"
16106 " ><fs> run\n"
16107 " ><fs> list-filesystems\n"
16108 " /dev/sda1: ext4\n"
16109 " /dev/vg_guest/lv_root: ext4\n"
16110 " /dev/vg_guest/lv_swap: swap\n"
16111 " ><fs> mount /dev/vg_guest/lv_root /\n"
16112 " ><fs> cat /etc/fstab\n"
16113 " # /etc/fstab\n"
16114 " # Created by anaconda\n"
16115 " [...]\n"
16116 " ><fs> exit\n"
16117 "\n"
16118 msgstr ""
16119
16120 #. type: =head2
16121 #: ../fish/guestfish.pod:67
16122 msgid "From shell scripts"
16123 msgstr ""
16124
16125 #. type: textblock
16126 #: ../fish/guestfish.pod:69
16127 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16128 msgstr ""
16129
16130 #. type: verbatim
16131 #: ../fish/guestfish.pod:71
16132 #, no-wrap
16133 msgid ""
16134 " guestfish <<_EOF_\n"
16135 " add disk.img\n"
16136 " run\n"
16137 " mount /dev/vg_guest/lv_root /\n"
16138 " write /etc/motd \"Welcome, new users\"\n"
16139 " _EOF_\n"
16140 "\n"
16141 msgstr ""
16142
16143 #. type: textblock
16144 #: ../fish/guestfish.pod:78
16145 msgid "List the LVM logical volumes in a disk image:"
16146 msgstr ""
16147
16148 #. type: verbatim
16149 #: ../fish/guestfish.pod:80
16150 #, no-wrap
16151 msgid ""
16152 " guestfish -a disk.img --ro <<_EOF_\n"
16153 " run\n"
16154 " lvs\n"
16155 " _EOF_\n"
16156 "\n"
16157 msgstr ""
16158
16159 #. type: textblock
16160 #: ../fish/guestfish.pod:85
16161 msgid "List all the filesystems in a disk image:"
16162 msgstr ""
16163
16164 #. type: verbatim
16165 #: ../fish/guestfish.pod:87
16166 #, no-wrap
16167 msgid ""
16168 " guestfish -a disk.img --ro <<_EOF_\n"
16169 " run\n"
16170 " list-filesystems\n"
16171 " _EOF_\n"
16172 "\n"
16173 msgstr ""
16174
16175 #. type: =head2
16176 #: ../fish/guestfish.pod:92
16177 msgid "On one command line"
16178 msgstr ""
16179
16180 #. type: textblock
16181 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
16182 msgid "Update C</etc/resolv.conf> in a guest:"
16183 msgstr ""
16184
16185 #. type: verbatim
16186 #: ../fish/guestfish.pod:96
16187 #, no-wrap
16188 msgid ""
16189 " guestfish \\\n"
16190 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16191 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16192 "\n"
16193 msgstr ""
16194
16195 #. type: textblock
16196 #: ../fish/guestfish.pod:100
16197 msgid "Edit C</boot/grub/grub.conf> interactively:"
16198 msgstr ""
16199
16200 #. type: verbatim
16201 #: ../fish/guestfish.pod:102
16202 #, no-wrap
16203 msgid ""
16204 " guestfish --rw --add disk.img \\\n"
16205 "   --mount /dev/vg_guest/lv_root \\\n"
16206 "   --mount /dev/sda1:/boot \\\n"
16207 "   edit /boot/grub/grub.conf\n"
16208 "\n"
16209 msgstr ""
16210
16211 #. type: =head2
16212 #: ../fish/guestfish.pod:107
16213 msgid "Mount disks automatically"
16214 msgstr ""
16215
16216 #. type: textblock
16217 #: ../fish/guestfish.pod:109
16218 msgid ""
16219 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16220 msgstr ""
16221
16222 #. type: verbatim
16223 #: ../fish/guestfish.pod:112
16224 #, no-wrap
16225 msgid ""
16226 " guestfish --ro -a disk.img -i cat /etc/group\n"
16227 "\n"
16228 msgstr ""
16229
16230 #. type: verbatim
16231 #: ../fish/guestfish.pod:114
16232 #, no-wrap
16233 msgid ""
16234 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16235 "\n"
16236 msgstr ""
16237
16238 #. type: textblock
16239 #: ../fish/guestfish.pod:116
16240 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16241 msgstr ""
16242
16243 #. type: verbatim
16244 #: ../fish/guestfish.pod:118
16245 #, no-wrap
16246 msgid ""
16247 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16248 "\n"
16249 msgstr ""
16250
16251 #. type: =head2
16252 #: ../fish/guestfish.pod:120
16253 msgid "As a script interpreter"
16254 msgstr ""
16255
16256 #. type: textblock
16257 #: ../fish/guestfish.pod:122
16258 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16259 msgstr ""
16260
16261 #. type: verbatim
16262 #: ../fish/guestfish.pod:124
16263 #, no-wrap
16264 msgid ""
16265 " #!/usr/bin/guestfish -f\n"
16266 " sparse test1.img 100M\n"
16267 " run\n"
16268 " part-disk /dev/sda mbr\n"
16269 " mkfs ext2 /dev/sda1\n"
16270 "\n"
16271 msgstr ""
16272
16273 #. type: =head2
16274 #: ../fish/guestfish.pod:130
16275 msgid "Start with a prepared disk"
16276 msgstr ""
16277
16278 #. type: textblock
16279 #: ../fish/guestfish.pod:132
16280 msgid ""
16281 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16282 "single ext2-formatted partition:"
16283 msgstr ""
16284
16285 #. type: verbatim
16286 #: ../fish/guestfish.pod:135
16287 #, no-wrap
16288 msgid ""
16289 " guestfish -N fs\n"
16290 "\n"
16291 msgstr ""
16292
16293 #. type: textblock
16294 #: ../fish/guestfish.pod:137
16295 msgid "To list what is available do:"
16296 msgstr ""
16297
16298 #. type: verbatim
16299 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:998
16300 #, no-wrap
16301 msgid ""
16302 " guestfish -N help | less\n"
16303 "\n"
16304 msgstr ""
16305
16306 #. type: =head2
16307 #: ../fish/guestfish.pod:141
16308 msgid "Remote control"
16309 msgstr ""
16310
16311 #. type: verbatim
16312 #: ../fish/guestfish.pod:143
16313 #, no-wrap
16314 msgid ""
16315 " eval \"`guestfish --listen`\"\n"
16316 " guestfish --remote add-ro disk.img\n"
16317 " guestfish --remote run\n"
16318 " guestfish --remote lvs\n"
16319 "\n"
16320 msgstr ""
16321
16322 #. type: textblock
16323 #: ../fish/guestfish.pod:154
16324 msgid "Displays general help on options."
16325 msgstr ""
16326
16327 #. type: =item
16328 #: ../fish/guestfish.pod:158
16329 msgid "B<--cmd-help>"
16330 msgstr ""
16331
16332 #. type: textblock
16333 #: ../fish/guestfish.pod:160
16334 msgid "Lists all available guestfish commands."
16335 msgstr ""
16336
16337 #. type: =item
16338 #: ../fish/guestfish.pod:162
16339 msgid "B<-h cmd>"
16340 msgstr ""
16341
16342 #. type: =item
16343 #: ../fish/guestfish.pod:164
16344 msgid "B<--cmd-help cmd>"
16345 msgstr ""
16346
16347 #. type: textblock
16348 #: ../fish/guestfish.pod:166
16349 msgid "Displays detailed help on a single command C<cmd>."
16350 msgstr ""
16351
16352 #. type: =item
16353 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
16354 msgid "B<-a image>"
16355 msgstr ""
16356
16357 #. type: =item
16358 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
16359 msgid "B<--add image>"
16360 msgstr ""
16361
16362 #. type: textblock
16363 #: ../fish/guestfish.pod:172
16364 msgid "Add a block device or virtual machine image to the shell."
16365 msgstr ""
16366
16367 #. type: textblock
16368 #: ../fish/guestfish.pod:177
16369 msgid ""
16370 "Using this flag is mostly equivalent to using the C<add> command, with "
16371 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
16372 "the I<--format=...> flag was given."
16373 msgstr ""
16374
16375 #. type: textblock
16376 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
16377 msgid ""
16378 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16379 "URI to use.  The default is to use the default libvirt connection."
16380 msgstr ""
16381
16382 #. type: =item
16383 #: ../fish/guestfish.pod:189
16384 msgid "B<--csh>"
16385 msgstr ""
16386
16387 #. type: textblock
16388 #: ../fish/guestfish.pod:191
16389 msgid ""
16390 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16391 "section L</REMOTE CONTROL AND CSH> below."
16392 msgstr ""
16393
16394 #. type: =item
16395 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
16396 msgid "B<-d libvirt-domain>"
16397 msgstr ""
16398
16399 #. type: =item
16400 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
16401 msgid "B<--domain libvirt-domain>"
16402 msgstr ""
16403
16404 #. type: textblock
16405 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
16406 msgid ""
16407 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16408 "used, then any libvirt domain can be used.  However in write mode, only "
16409 "libvirt domains which are shut down can be named here."
16410 msgstr ""
16411
16412 #. type: textblock
16413 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
16414 msgid "Domain UUIDs can be used instead of names."
16415 msgstr ""
16416
16417 #. type: textblock
16418 #: ../fish/guestfish.pod:204
16419 msgid ""
16420 "Using this flag is mostly equivalent to using the C<add-domain> command, "
16421 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
16422 "if the I<--format:...> flag was given."
16423 msgstr ""
16424
16425 #. type: =item
16426 #: ../fish/guestfish.pod:208
16427 msgid "B<-D>"
16428 msgstr ""
16429
16430 #. type: =item
16431 #: ../fish/guestfish.pod:210
16432 msgid "B<--no-dest-paths>"
16433 msgstr ""
16434
16435 #. type: textblock
16436 #: ../fish/guestfish.pod:212
16437 msgid ""
16438 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16439 "to hit the tab key to complete paths on the guest filesystem, but this "
16440 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16441 "allow this feature to be disabled."
16442 msgstr ""
16443
16444 #. type: textblock
16445 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
16446 msgid ""
16447 "When prompting for keys and passphrases, guestfish normally turns echoing "
16448 "off so you cannot see what you are typing.  If you are not worried about "
16449 "Tempest attacks and there is no one else in the room you can specify this "
16450 "flag to see what you are typing."
16451 msgstr ""
16452
16453 #. type: =item
16454 #: ../fish/guestfish.pod:224
16455 msgid "B<-f file>"
16456 msgstr ""
16457
16458 #. type: =item
16459 #: ../fish/guestfish.pod:226
16460 msgid "B<--file file>"
16461 msgstr ""
16462
16463 #. type: textblock
16464 #: ../fish/guestfish.pod:228
16465 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16466 msgstr ""
16467
16468 #. type: verbatim
16469 #: ../fish/guestfish.pod:231
16470 #, no-wrap
16471 msgid ""
16472 " #!/usr/bin/guestfish -f\n"
16473 "\n"
16474 msgstr ""
16475
16476 #. type: verbatim
16477 #: ../fish/guestfish.pod:244
16478 #, no-wrap
16479 msgid ""
16480 " guestfish --format=raw -a disk.img\n"
16481 "\n"
16482 msgstr ""
16483
16484 #. type: verbatim
16485 #: ../fish/guestfish.pod:248
16486 #, no-wrap
16487 msgid ""
16488 " guestfish --format=raw -a disk.img --format -a another.img\n"
16489 "\n"
16490 msgstr ""
16491
16492 #. type: textblock
16493 #: ../fish/guestfish.pod:253
16494 msgid ""
16495 "If you have untrusted raw-format guest disk images, you should use this "
16496 "option to specify the disk format.  This avoids a possible security problem "
16497 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16498 msgstr ""
16499
16500 #. type: =item
16501 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
16502 msgid "B<--inspector>"
16503 msgstr ""
16504
16505 #. type: textblock
16506 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
16507 msgid ""
16508 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16509 "system and mount filesystems as they would be mounted on the real virtual "
16510 "machine."
16511 msgstr ""
16512
16513 #. type: textblock
16514 #: ../fish/guestfish.pod:266
16515 msgid "Typical usage is either:"
16516 msgstr ""
16517
16518 #. type: verbatim
16519 #: ../fish/guestfish.pod:268
16520 #, no-wrap
16521 msgid ""
16522 " guestfish -d myguest -i\n"
16523 "\n"
16524 msgstr ""
16525
16526 #. type: textblock
16527 #: ../fish/guestfish.pod:270
16528 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16529 msgstr ""
16530
16531 #. type: verbatim
16532 #: ../fish/guestfish.pod:272
16533 #, no-wrap
16534 msgid ""
16535 " guestfish --ro -d myguest -i\n"
16536 "\n"
16537 msgstr ""
16538
16539 #. type: textblock
16540 #: ../fish/guestfish.pod:274
16541 msgid "(for active domains, readonly), or specify the block device directly:"
16542 msgstr ""
16543
16544 #. type: verbatim
16545 #: ../fish/guestfish.pod:276
16546 #, no-wrap
16547 msgid ""
16548 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16549 "\n"
16550 msgstr ""
16551
16552 #. type: textblock
16553 #: ../fish/guestfish.pod:278
16554 msgid ""
16555 "Note that the command line syntax changed slightly over older versions of "
16556 "guestfish.  You can still use the old syntax:"
16557 msgstr ""
16558
16559 #. type: verbatim
16560 #: ../fish/guestfish.pod:281
16561 #, no-wrap
16562 msgid ""
16563 " guestfish [--ro] -i disk.img\n"
16564 "\n"
16565 msgstr ""
16566
16567 #. type: verbatim
16568 #: ../fish/guestfish.pod:283
16569 #, no-wrap
16570 msgid ""
16571 " guestfish [--ro] -i libvirt-domain\n"
16572 "\n"
16573 msgstr ""
16574
16575 #. type: textblock
16576 #: ../fish/guestfish.pod:285
16577 msgid ""
16578 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16579 "then using other commands to mount the filesystems that were found."
16580 msgstr ""
16581
16582 #. type: =item
16583 #: ../fish/guestfish.pod:294
16584 msgid "B<--listen>"
16585 msgstr ""
16586
16587 #. type: textblock
16588 #: ../fish/guestfish.pod:296
16589 msgid ""
16590 "Fork into the background and listen for remote commands.  See section L</"
16591 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16592 msgstr ""
16593
16594 #. type: =item
16595 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
16596 msgid "B<--live>"
16597 msgstr ""
16598
16599 #. type: textblock
16600 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
16601 msgid ""
16602 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
16603 "ATTACHING TO RUNNING DAEMONS>)."
16604 msgstr ""
16605
16606 #. type: =item
16607 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
16608 msgid "B<-m dev[:mountpoint[:options]]>"
16609 msgstr ""
16610
16611 #. type: =item
16612 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
16613 msgid "B<--mount dev[:mountpoint[:options]]>"
16614 msgstr ""
16615
16616 #. type: textblock
16617 #: ../fish/guestfish.pod:308
16618 msgid "Mount the named partition or logical volume on the given mountpoint."
16619 msgstr ""
16620
16621 #. type: textblock
16622 #: ../fish/guestfish.pod:310
16623 msgid "If the mountpoint is omitted, it defaults to C</>."
16624 msgstr ""
16625
16626 #. type: textblock
16627 #: ../fish/guestfish.pod:312
16628 msgid "You have to mount something on C</> before most commands will work."
16629 msgstr ""
16630
16631 #. type: textblock
16632 #: ../fish/guestfish.pod:314
16633 msgid ""
16634 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16635 "launched."
16636 msgstr ""
16637
16638 #. type: textblock
16639 #: ../fish/guestfish.pod:317
16640 msgid ""
16641 "If you don't know what filesystems a disk image contains, you can either run "
16642 "guestfish without this option, then list the partitions, filesystems and LVs "
16643 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
16644 "commands), or you can use the L<virt-filesystems(1)> program."
16645 msgstr ""
16646
16647 #. type: textblock
16648 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
16649 msgid ""
16650 "The third (and rarely used) part of the mount parameter is the list of mount "
16651 "options used to mount the underlying filesystem.  If this is not given, then "
16652 "the mount options are either the empty string or C<ro> (the latter if the "
16653 "I<--ro> flag is used).  By specifying the mount options, you override this "
16654 "default choice.  Probably the only time you would use this is to enable ACLs "
16655 "and/or extended attributes if the filesystem can support them:"
16656 msgstr ""
16657
16658 #. type: verbatim
16659 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
16660 #, no-wrap
16661 msgid ""
16662 " -m /dev/sda1:/:acl,user_xattr\n"
16663 "\n"
16664 msgstr ""
16665
16666 #. type: textblock
16667 #: ../fish/guestfish.pod:333
16668 msgid "Using this flag is equivalent to using the C<mount-options> command."
16669 msgstr ""
16670
16671 #. type: =item
16672 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
16673 #: ../resize/virt-resize.pod:352
16674 msgid "B<-n>"
16675 msgstr ""
16676
16677 #. type: =item
16678 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
16679 msgid "B<--no-sync>"
16680 msgstr ""
16681
16682 #. type: textblock
16683 #: ../fish/guestfish.pod:339
16684 msgid ""
16685 "Disable autosync.  This is enabled by default.  See the discussion of "
16686 "autosync in the L<guestfs(3)> manpage."
16687 msgstr ""
16688
16689 #. type: =item
16690 #: ../fish/guestfish.pod:342
16691 msgid "B<-N type>"
16692 msgstr ""
16693
16694 #. type: =item
16695 #: ../fish/guestfish.pod:344
16696 msgid "B<--new type>"
16697 msgstr ""
16698
16699 #. type: =item
16700 #: ../fish/guestfish.pod:346
16701 msgid "B<-N help>"
16702 msgstr ""
16703
16704 #. type: textblock
16705 #: ../fish/guestfish.pod:348
16706 msgid ""
16707 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16708 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16709 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16710 "IMAGES> below."
16711 msgstr ""
16712
16713 #. type: =item
16714 #: ../fish/guestfish.pod:353
16715 msgid "B<--progress-bars>"
16716 msgstr ""
16717
16718 #. type: textblock
16719 #: ../fish/guestfish.pod:355
16720 msgid "Enable progress bars, even when guestfish is used non-interactively."
16721 msgstr ""
16722
16723 #. type: textblock
16724 #: ../fish/guestfish.pod:357
16725 msgid ""
16726 "Progress bars are enabled by default when guestfish is used as an "
16727 "interactive shell."
16728 msgstr ""
16729
16730 #. type: =item
16731 #: ../fish/guestfish.pod:360
16732 msgid "B<--no-progress-bars>"
16733 msgstr ""
16734
16735 #. type: textblock
16736 #: ../fish/guestfish.pod:362
16737 msgid "Disable progress bars."
16738 msgstr ""
16739
16740 #. type: =item
16741 #: ../fish/guestfish.pod:364
16742 msgid "B<--remote[=pid]>"
16743 msgstr ""
16744
16745 #. type: textblock
16746 #: ../fish/guestfish.pod:366
16747 msgid ""
16748 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16749 "CONTROL GUESTFISH OVER A SOCKET> below."
16750 msgstr ""
16751
16752 #. type: =item
16753 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
16754 #: ../rescue/virt-rescue.pod:161
16755 msgid "B<-r>"
16756 msgstr ""
16757
16758 #. type: =item
16759 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
16760 #: ../rescue/virt-rescue.pod:163
16761 msgid "B<--ro>"
16762 msgstr ""
16763
16764 #. type: textblock
16765 #: ../fish/guestfish.pod:373
16766 msgid ""
16767 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16768 "mounts are done read-only."
16769 msgstr ""
16770
16771 #. type: textblock
16772 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
16773 msgid ""
16774 "The option must always be used if the disk image or virtual machine might be "
16775 "running, and is generally recommended in cases where you don't need write "
16776 "access to the disk."
16777 msgstr ""
16778
16779 #. type: textblock
16780 #: ../fish/guestfish.pod:380
16781 msgid ""
16782 "Note that prepared disk images created with I<-N> are not affected by this "
16783 "option.  Also commands like C<add> are not affected - you have to specify "
16784 "the C<readonly:true> option explicitly if you need it."
16785 msgstr ""
16786
16787 #. type: textblock
16788 #: ../fish/guestfish.pod:384
16789 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16790 msgstr ""
16791
16792 #. type: =item
16793 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
16794 #: ../rescue/virt-rescue.pod:173
16795 msgid "B<--selinux>"
16796 msgstr ""
16797
16798 #. type: textblock
16799 #: ../fish/guestfish.pod:388
16800 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16801 msgstr ""
16802
16803 #. type: textblock
16804 #: ../fish/guestfish.pod:394
16805 msgid ""
16806 "Enable very verbose messages.  This is particularly useful if you find a bug."
16807 msgstr ""
16808
16809 #. type: textblock
16810 #: ../fish/guestfish.pod:401
16811 msgid "Display the guestfish / libguestfs version number and exit."
16812 msgstr ""
16813
16814 #. type: =item
16815 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
16816 #: ../rescue/virt-rescue.pod:190
16817 msgid "B<-w>"
16818 msgstr ""
16819
16820 #. type: =item
16821 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
16822 #: ../rescue/virt-rescue.pod:192
16823 msgid "B<--rw>"
16824 msgstr ""
16825
16826 #. type: textblock
16827 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
16828 msgid ""
16829 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16830 "mounts are done read-write."
16831 msgstr ""
16832
16833 #. type: textblock
16834 #: ../fish/guestfish.pod:410
16835 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
16836 msgstr ""
16837
16838 #. type: textblock
16839 #: ../fish/guestfish.pod:414
16840 msgid "Echo each command before executing it."
16841 msgstr ""
16842
16843 #. type: =head1
16844 #: ../fish/guestfish.pod:418
16845 msgid "COMMANDS ON COMMAND LINE"
16846 msgstr ""
16847
16848 #. type: textblock
16849 #: ../fish/guestfish.pod:420
16850 msgid ""
16851 "Any additional (non-option) arguments are treated as commands to execute."
16852 msgstr ""
16853
16854 #. type: textblock
16855 #: ../fish/guestfish.pod:423
16856 msgid ""
16857 "Commands to execute should be separated by a colon (C<:>), where the colon "
16858 "is a separate parameter.  Thus:"
16859 msgstr ""
16860
16861 #. type: verbatim
16862 #: ../fish/guestfish.pod:426
16863 #, no-wrap
16864 msgid ""
16865 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16866 "\n"
16867 msgstr ""
16868
16869 #. type: textblock
16870 #: ../fish/guestfish.pod:428
16871 msgid ""
16872 "If there are no additional arguments, then we enter a shell, either an "
16873 "interactive shell with a prompt (if the input is a terminal) or a non-"
16874 "interactive shell."
16875 msgstr ""
16876
16877 #. type: textblock
16878 #: ../fish/guestfish.pod:432
16879 msgid ""
16880 "In either command line mode or non-interactive shell, the first command that "
16881 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16882 "prompt) if a command fails, you can continue to enter commands."
16883 msgstr ""
16884
16885 #. type: =head1
16886 #: ../fish/guestfish.pod:437
16887 msgid "USING launch (OR run)"
16888 msgstr ""
16889
16890 #. type: textblock
16891 #: ../fish/guestfish.pod:439
16892 msgid ""
16893 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16894 "then launch it, then mount any disks you need, and finally issue actions/"
16895 "commands.  So the general order of the day is:"
16896 msgstr ""
16897
16898 #. type: textblock
16899 #: ../fish/guestfish.pod:447
16900 msgid "add or -a/--add"
16901 msgstr ""
16902
16903 #. type: textblock
16904 #: ../fish/guestfish.pod:451
16905 msgid "launch (aka run)"
16906 msgstr ""
16907
16908 #. type: textblock
16909 #: ../fish/guestfish.pod:455
16910 msgid "mount or -m/--mount"
16911 msgstr ""
16912
16913 #. type: textblock
16914 #: ../fish/guestfish.pod:459
16915 msgid "any other commands"
16916 msgstr ""
16917
16918 #. type: textblock
16919 #: ../fish/guestfish.pod:463
16920 msgid ""
16921 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16922 "guest before mounting or performing any other commands."
16923 msgstr ""
16924
16925 #. type: textblock
16926 #: ../fish/guestfish.pod:466
16927 msgid ""
16928 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16929 "I<--new> options were given then C<run> is done automatically, simply "
16930 "because guestfish can't perform the action you asked for without doing this."
16931 msgstr ""
16932
16933 #. type: =head1
16934 #: ../fish/guestfish.pod:471
16935 msgid "OPENING DISKS FOR READ AND WRITE"
16936 msgstr ""
16937
16938 #. type: textblock
16939 #: ../fish/guestfish.pod:473
16940 msgid ""
16941 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
16942 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
16943 "I<-i> and I<-m> open disk images read-only or for writing."
16944 msgstr ""
16945
16946 #. type: textblock
16947 #: ../fish/guestfish.pod:478
16948 msgid ""
16949 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
16950 "opening disk images supplied on the command line for write.  To open a disk "
16951 "image read-only you have to do I<-a image --ro>."
16952 msgstr ""
16953
16954 #. type: textblock
16955 #: ../fish/guestfish.pod:482
16956 msgid ""
16957 "This matters: If you accidentally open a live VM disk image writable then "
16958 "you will cause irreversible disk corruption."
16959 msgstr ""
16960
16961 #. type: textblock
16962 #: ../fish/guestfish.pod:485
16963 msgid ""
16964 "In a future libguestfs we intend to change the default the other way.  Disk "
16965 "images will be opened read-only.  You will have to either specify "
16966 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
16967 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
16968 "access for disk images specified by those other command line options."
16969 msgstr ""
16970
16971 #. type: textblock
16972 #: ../fish/guestfish.pod:492
16973 msgid ""
16974 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
16975 "which does nothing (it is already the default).  However it is highly "
16976 "recommended that you use this option to indicate that you need write access, "
16977 "and prepare your scripts for the day when this option will be required for "
16978 "write access."
16979 msgstr ""
16980
16981 #. type: textblock
16982 #: ../fish/guestfish.pod:498
16983 msgid ""
16984 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
16985 "other libguestfs program apart from guestfish and guestmount."
16986 msgstr ""
16987
16988 #. type: =head1
16989 #: ../fish/guestfish.pod:501
16990 msgid "QUOTING"
16991 msgstr ""
16992
16993 #. type: textblock
16994 #: ../fish/guestfish.pod:503
16995 msgid ""
16996 "You can quote ordinary parameters using either single or double quotes.  For "
16997 "example:"
16998 msgstr ""
16999
17000 #. type: verbatim
17001 #: ../fish/guestfish.pod:506
17002 #, no-wrap
17003 msgid ""
17004 " add \"file with a space.img\"\n"
17005 "\n"
17006 msgstr ""
17007
17008 #. type: verbatim
17009 #: ../fish/guestfish.pod:508
17010 #, no-wrap
17011 msgid ""
17012 " rm '/file name'\n"
17013 "\n"
17014 msgstr ""
17015
17016 #. type: verbatim
17017 #: ../fish/guestfish.pod:510
17018 #, no-wrap
17019 msgid ""
17020 " rm '/\"'\n"
17021 "\n"
17022 msgstr ""
17023
17024 #. type: textblock
17025 #: ../fish/guestfish.pod:512
17026 msgid ""
17027 "A few commands require a list of strings to be passed.  For these, use a "
17028 "whitespace-separated list, enclosed in quotes.  Strings containing "
17029 "whitespace to be passed through must be enclosed in single quotes.  A "
17030 "literal single quote must be escaped with a backslash."
17031 msgstr ""
17032
17033 #. type: verbatim
17034 #: ../fish/guestfish.pod:517
17035 #, no-wrap
17036 msgid ""
17037 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17038 " command \"/bin/echo 'foo      bar'\"\n"
17039 " command \"/bin/echo \\'foo\\'\"\n"
17040 "\n"
17041 msgstr ""
17042
17043 #. type: =head2
17044 #: ../fish/guestfish.pod:521
17045 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17046 msgstr ""
17047
17048 #. type: textblock
17049 #: ../fish/guestfish.pod:523
17050 msgid ""
17051 "In double-quoted arguments (only) use backslash to insert special characters:"
17052 msgstr ""
17053
17054 #. type: =item
17055 #: ../fish/guestfish.pod:528
17056 msgid "C<\\a>"
17057 msgstr ""
17058
17059 #. type: textblock
17060 #: ../fish/guestfish.pod:530
17061 msgid "Alert (bell) character."
17062 msgstr ""
17063
17064 #. type: =item
17065 #: ../fish/guestfish.pod:532
17066 msgid "C<\\b>"
17067 msgstr ""
17068
17069 #. type: textblock
17070 #: ../fish/guestfish.pod:534
17071 msgid "Backspace character."
17072 msgstr ""
17073
17074 #. type: =item
17075 #: ../fish/guestfish.pod:536
17076 msgid "C<\\f>"
17077 msgstr ""
17078
17079 #. type: textblock
17080 #: ../fish/guestfish.pod:538
17081 msgid "Form feed character."
17082 msgstr ""
17083
17084 #. type: =item
17085 #: ../fish/guestfish.pod:540
17086 msgid "C<\\n>"
17087 msgstr ""
17088
17089 #. type: textblock
17090 #: ../fish/guestfish.pod:542
17091 msgid "Newline character."
17092 msgstr ""
17093
17094 #. type: =item
17095 #: ../fish/guestfish.pod:544
17096 msgid "C<\\r>"
17097 msgstr ""
17098
17099 #. type: textblock
17100 #: ../fish/guestfish.pod:546
17101 msgid "Carriage return character."
17102 msgstr ""
17103
17104 #. type: =item
17105 #: ../fish/guestfish.pod:548
17106 msgid "C<\\t>"
17107 msgstr ""
17108
17109 #. type: textblock
17110 #: ../fish/guestfish.pod:550
17111 msgid "Horizontal tab character."
17112 msgstr ""
17113
17114 #. type: =item
17115 #: ../fish/guestfish.pod:552
17116 msgid "C<\\v>"
17117 msgstr ""
17118
17119 #. type: textblock
17120 #: ../fish/guestfish.pod:554
17121 msgid "Vertical tab character."
17122 msgstr ""
17123
17124 #. type: =item
17125 #: ../fish/guestfish.pod:556
17126 msgid "C<\\\">"
17127 msgstr ""
17128
17129 #. type: textblock
17130 #: ../fish/guestfish.pod:558
17131 msgid "A literal double quote character."
17132 msgstr ""
17133
17134 #. type: =item
17135 #: ../fish/guestfish.pod:560
17136 msgid "C<\\ooo>"
17137 msgstr ""
17138
17139 #. type: textblock
17140 #: ../fish/guestfish.pod:562
17141 msgid ""
17142 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
17143 "(unlike C)."
17144 msgstr ""
17145
17146 #. type: =item
17147 #: ../fish/guestfish.pod:565
17148 msgid "C<\\xhh>"
17149 msgstr ""
17150
17151 #. type: textblock
17152 #: ../fish/guestfish.pod:567
17153 msgid ""
17154 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
17155 msgstr ""
17156
17157 #. type: textblock
17158 #: ../fish/guestfish.pod:570
17159 msgid ""
17160 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
17161 "strings."
17162 msgstr ""
17163
17164 #. type: =item
17165 #: ../fish/guestfish.pod:573
17166 msgid "C<\\\\>"
17167 msgstr ""
17168
17169 #. type: textblock
17170 #: ../fish/guestfish.pod:575
17171 msgid "A literal backslash character."
17172 msgstr ""
17173
17174 #. type: =head1
17175 #: ../fish/guestfish.pod:579
17176 msgid "OPTIONAL ARGUMENTS"
17177 msgstr ""
17178
17179 #. type: textblock
17180 #: ../fish/guestfish.pod:581
17181 msgid ""
17182 "Some commands take optional arguments.  These arguments appear in this "
17183 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17184 msgstr ""
17185
17186 #. type: verbatim
17187 #: ../fish/guestfish.pod:585
17188 #, no-wrap
17189 msgid ""
17190 " add-drive-opts filename\n"
17191 "\n"
17192 msgstr ""
17193
17194 #. type: verbatim
17195 #: ../fish/guestfish.pod:587
17196 #, no-wrap
17197 msgid ""
17198 " add-drive-opts filename readonly:true\n"
17199 "\n"
17200 msgstr ""
17201
17202 #. type: verbatim
17203 #: ../fish/guestfish.pod:589
17204 #, no-wrap
17205 msgid ""
17206 " add-drive-opts filename format:qcow2 readonly:false\n"
17207 "\n"
17208 msgstr ""
17209
17210 #. type: textblock
17211 #: ../fish/guestfish.pod:591
17212 msgid ""
17213 "Each optional argument can appear at most once.  All optional arguments must "
17214 "appear after the required ones."
17215 msgstr ""
17216
17217 #. type: =head1
17218 #: ../fish/guestfish.pod:594
17219 msgid "NUMBERS"
17220 msgstr ""
17221
17222 #. type: textblock
17223 #: ../fish/guestfish.pod:596
17224 msgid ""
17225 "This section applies to all commands which can take integers as parameters."
17226 msgstr ""
17227
17228 #. type: =head2
17229 #: ../fish/guestfish.pod:599
17230 msgid "SIZE SUFFIX"
17231 msgstr ""
17232
17233 #. type: textblock
17234 #: ../fish/guestfish.pod:601
17235 msgid ""
17236 "When the command takes a parameter measured in bytes, you can use one of the "
17237 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17238 msgstr ""
17239
17240 #. type: =item
17241 #: ../fish/guestfish.pod:607
17242 msgid "B<k> or B<K> or B<KiB>"
17243 msgstr ""
17244
17245 #. type: textblock
17246 #: ../fish/guestfish.pod:609
17247 msgid "The size in kilobytes (multiplied by 1024)."
17248 msgstr ""
17249
17250 #. type: =item
17251 #: ../fish/guestfish.pod:611
17252 msgid "B<KB>"
17253 msgstr ""
17254
17255 #. type: textblock
17256 #: ../fish/guestfish.pod:613
17257 msgid "The size in SI 1000 byte units."
17258 msgstr ""
17259
17260 #. type: =item
17261 #: ../fish/guestfish.pod:615
17262 msgid "B<M> or B<MiB>"
17263 msgstr ""
17264
17265 #. type: textblock
17266 #: ../fish/guestfish.pod:617
17267 msgid "The size in megabytes (multiplied by 1048576)."
17268 msgstr ""
17269
17270 #. type: =item
17271 #: ../fish/guestfish.pod:619
17272 msgid "B<MB>"
17273 msgstr ""
17274
17275 #. type: textblock
17276 #: ../fish/guestfish.pod:621
17277 msgid "The size in SI 1000000 byte units."
17278 msgstr ""
17279
17280 #. type: =item
17281 #: ../fish/guestfish.pod:623
17282 msgid "B<G> or B<GiB>"
17283 msgstr ""
17284
17285 #. type: textblock
17286 #: ../fish/guestfish.pod:625
17287 msgid "The size in gigabytes (multiplied by 2**30)."
17288 msgstr ""
17289
17290 #. type: =item
17291 #: ../fish/guestfish.pod:627
17292 msgid "B<GB>"
17293 msgstr ""
17294
17295 #. type: textblock
17296 #: ../fish/guestfish.pod:629
17297 msgid "The size in SI 10**9 byte units."
17298 msgstr ""
17299
17300 #. type: =item
17301 #: ../fish/guestfish.pod:631
17302 msgid "B<T> or B<TiB>"
17303 msgstr ""
17304
17305 #. type: textblock
17306 #: ../fish/guestfish.pod:633
17307 msgid "The size in terabytes (multiplied by 2**40)."
17308 msgstr ""
17309
17310 #. type: =item
17311 #: ../fish/guestfish.pod:635
17312 msgid "B<TB>"
17313 msgstr ""
17314
17315 #. type: textblock
17316 #: ../fish/guestfish.pod:637
17317 msgid "The size in SI 10**12 byte units."
17318 msgstr ""
17319
17320 #. type: =item
17321 #: ../fish/guestfish.pod:639
17322 msgid "B<P> or B<PiB>"
17323 msgstr ""
17324
17325 #. type: textblock
17326 #: ../fish/guestfish.pod:641
17327 msgid "The size in petabytes (multiplied by 2**50)."
17328 msgstr ""
17329
17330 #. type: =item
17331 #: ../fish/guestfish.pod:643
17332 msgid "B<PB>"
17333 msgstr ""
17334
17335 #. type: textblock
17336 #: ../fish/guestfish.pod:645
17337 msgid "The size in SI 10**15 byte units."
17338 msgstr ""
17339
17340 #. type: =item
17341 #: ../fish/guestfish.pod:647
17342 msgid "B<E> or B<EiB>"
17343 msgstr ""
17344
17345 #. type: textblock
17346 #: ../fish/guestfish.pod:649
17347 msgid "The size in exabytes (multiplied by 2**60)."
17348 msgstr ""
17349
17350 #. type: =item
17351 #: ../fish/guestfish.pod:651
17352 msgid "B<EB>"
17353 msgstr ""
17354
17355 #. type: textblock
17356 #: ../fish/guestfish.pod:653
17357 msgid "The size in SI 10**18 byte units."
17358 msgstr ""
17359
17360 #. type: =item
17361 #: ../fish/guestfish.pod:655
17362 msgid "B<Z> or B<ZiB>"
17363 msgstr ""
17364
17365 #. type: textblock
17366 #: ../fish/guestfish.pod:657
17367 msgid "The size in zettabytes (multiplied by 2**70)."
17368 msgstr ""
17369
17370 #. type: =item
17371 #: ../fish/guestfish.pod:659
17372 msgid "B<ZB>"
17373 msgstr ""
17374
17375 #. type: textblock
17376 #: ../fish/guestfish.pod:661
17377 msgid "The size in SI 10**21 byte units."
17378 msgstr ""
17379
17380 #. type: =item
17381 #: ../fish/guestfish.pod:663
17382 msgid "B<Y> or B<YiB>"
17383 msgstr ""
17384
17385 #. type: textblock
17386 #: ../fish/guestfish.pod:665
17387 msgid "The size in yottabytes (multiplied by 2**80)."
17388 msgstr ""
17389
17390 #. type: =item
17391 #: ../fish/guestfish.pod:667
17392 msgid "B<YB>"
17393 msgstr ""
17394
17395 #. type: textblock
17396 #: ../fish/guestfish.pod:669
17397 msgid "The size in SI 10**24 byte units."
17398 msgstr ""
17399
17400 #. type: verbatim
17401 #: ../fish/guestfish.pod:675
17402 #, no-wrap
17403 msgid ""
17404 " truncate-size /file 1G\n"
17405 "\n"
17406 msgstr ""
17407
17408 #. type: textblock
17409 #: ../fish/guestfish.pod:677
17410 msgid "would truncate the file to 1 gigabyte."
17411 msgstr ""
17412
17413 #. type: textblock
17414 #: ../fish/guestfish.pod:679
17415 msgid ""
17416 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
17417 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
17418 "suffix will probably not do what you expect."
17419 msgstr ""
17420
17421 #. type: =head2
17422 #: ../fish/guestfish.pod:683
17423 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17424 msgstr ""
17425
17426 #. type: textblock
17427 #: ../fish/guestfish.pod:685
17428 msgid ""
17429 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17430 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17431 msgstr ""
17432
17433 #. type: verbatim
17434 #: ../fish/guestfish.pod:688
17435 #, no-wrap
17436 msgid ""
17437 " 1234      decimal number 1234\n"
17438 " 02322     octal number, equivalent to decimal 1234\n"
17439 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17440 "\n"
17441 msgstr ""
17442
17443 #. type: textblock
17444 #: ../fish/guestfish.pod:692
17445 msgid ""
17446 "When using the C<chmod> command, you almost always want to specify an octal "
17447 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17448 "L<chmod(1)> program):"
17449 msgstr ""
17450
17451 #. type: verbatim
17452 #: ../fish/guestfish.pod:696
17453 #, no-wrap
17454 msgid ""
17455 " chmod 0777 /public  # OK\n"
17456 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17457 "\n"
17458 msgstr ""
17459
17460 #. type: textblock
17461 #: ../fish/guestfish.pod:699
17462 msgid ""
17463 "Commands that return numbers usually print them in decimal, but some "
17464 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17465 "octal, preceeded by C<0>)."
17466 msgstr ""
17467
17468 #. type: =head1
17469 #: ../fish/guestfish.pod:703
17470 msgid "WILDCARDS AND GLOBBING"
17471 msgstr ""
17472
17473 #. type: textblock
17474 #: ../fish/guestfish.pod:705
17475 msgid ""
17476 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17477 "(globbing) by default.  So for example the following will not do what you "
17478 "expect:"
17479 msgstr ""
17480
17481 #. type: verbatim
17482 #: ../fish/guestfish.pod:709
17483 #, no-wrap
17484 msgid ""
17485 " rm-rf /home/*\n"
17486 "\n"
17487 msgstr ""
17488
17489 #. type: textblock
17490 #: ../fish/guestfish.pod:711
17491 msgid ""
17492 "Assuming you don't have a directory called literally C</home/*> then the "
17493 "above command will return an error."
17494 msgstr ""
17495
17496 #. type: textblock
17497 #: ../fish/guestfish.pod:714
17498 msgid "To perform wildcard expansion, use the C<glob> command."
17499 msgstr ""
17500
17501 #. type: verbatim
17502 #: ../fish/guestfish.pod:716
17503 #, no-wrap
17504 msgid ""
17505 " glob rm-rf /home/*\n"
17506 "\n"
17507 msgstr ""
17508
17509 #. type: textblock
17510 #: ../fish/guestfish.pod:718
17511 msgid ""
17512 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17513 "many times), equivalent to:"
17514 msgstr ""
17515
17516 #. type: verbatim
17517 #: ../fish/guestfish.pod:721
17518 #, no-wrap
17519 msgid ""
17520 " rm-rf /home/jim\n"
17521 " rm-rf /home/joe\n"
17522 " rm-rf /home/mary\n"
17523 "\n"
17524 msgstr ""
17525
17526 #. type: textblock
17527 #: ../fish/guestfish.pod:725
17528 msgid "C<glob> only works on simple guest paths and not on device names."
17529 msgstr ""
17530
17531 #. type: textblock
17532 #: ../fish/guestfish.pod:727
17533 msgid ""
17534 "If you have several parameters, each containing a wildcard, then glob will "
17535 "perform a Cartesian product."
17536 msgstr ""
17537
17538 #. type: =head1
17539 #: ../fish/guestfish.pod:730
17540 msgid "COMMENTS"
17541 msgstr ""
17542
17543 #. type: textblock
17544 #: ../fish/guestfish.pod:732
17545 msgid ""
17546 "Any line which starts with a I<#> character is treated as a comment and "
17547 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17548 "a command.  For example:"
17549 msgstr ""
17550
17551 #. type: verbatim
17552 #: ../fish/guestfish.pod:736
17553 #, no-wrap
17554 msgid ""
17555 " # this is a comment\n"
17556 "         # this is a comment\n"
17557 " foo # NOT a comment\n"
17558 "\n"
17559 msgstr ""
17560
17561 #. type: textblock
17562 #: ../fish/guestfish.pod:740
17563 msgid "Blank lines are also ignored."
17564 msgstr ""
17565
17566 #. type: =head1
17567 #: ../fish/guestfish.pod:742
17568 msgid "RUNNING COMMANDS LOCALLY"
17569 msgstr ""
17570
17571 #. type: textblock
17572 #: ../fish/guestfish.pod:744
17573 msgid ""
17574 "Any line which starts with a I<!> character is treated as a command sent to "
17575 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17576 msgstr ""
17577
17578 #. type: verbatim
17579 #: ../fish/guestfish.pod:748
17580 #, no-wrap
17581 msgid ""
17582 " !mkdir local\n"
17583 " tgz-out /remote local/remote-data.tar.gz\n"
17584 "\n"
17585 msgstr ""
17586
17587 #. type: textblock
17588 #: ../fish/guestfish.pod:751
17589 msgid ""
17590 "will create a directory C<local> on the host, and then export the contents "
17591 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17592 "(See C<tgz-out>)."
17593 msgstr ""
17594
17595 #. type: textblock
17596 #: ../fish/guestfish.pod:755
17597 msgid ""
17598 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17599 "effect, due to the way that subprocesses work in Unix."
17600 msgstr ""
17601
17602 #. type: =head2
17603 #: ../fish/guestfish.pod:758
17604 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17605 msgstr ""
17606
17607 #. type: textblock
17608 #: ../fish/guestfish.pod:760
17609 msgid ""
17610 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
17611 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
17612 "and executed as guestfish commands."
17613 msgstr ""
17614
17615 #. type: textblock
17616 #: ../fish/guestfish.pod:764
17617 msgid ""
17618 "Thus you can use shell script to construct arbitrary guestfish commands "
17619 "which are then parsed by guestfish."
17620 msgstr ""
17621
17622 #. type: textblock
17623 #: ../fish/guestfish.pod:767
17624 msgid ""
17625 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
17626 "through C</foo.100>) using guestfish commands alone.  However this is simple "
17627 "if we use a shell script to create the guestfish commands for us:"
17628 msgstr ""
17629
17630 #. type: verbatim
17631 #: ../fish/guestfish.pod:772
17632 #, no-wrap
17633 msgid ""
17634 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
17635 "\n"
17636 msgstr ""
17637
17638 #. type: textblock
17639 #: ../fish/guestfish.pod:774
17640 msgid "or with names like C</foo.001>:"
17641 msgstr ""
17642
17643 #. type: verbatim
17644 #: ../fish/guestfish.pod:776
17645 #, no-wrap
17646 msgid ""
17647 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
17648 "\n"
17649 msgstr ""
17650
17651 #. type: textblock
17652 #: ../fish/guestfish.pod:778
17653 msgid ""
17654 "When using guestfish interactively it can be helpful to just run the shell "
17655 "script first (ie. remove the initial C<E<lt>> character so it is just an "
17656 "ordinary I<!> local command), see what guestfish commands it would run, and "
17657 "when you are happy with those prepend the C<E<lt>> character to run the "
17658 "guestfish commands for real."
17659 msgstr ""
17660
17661 #. type: =head1
17662 #: ../fish/guestfish.pod:784
17663 msgid "PIPES"
17664 msgstr ""
17665
17666 #. type: textblock
17667 #: ../fish/guestfish.pod:786
17668 msgid ""
17669 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17670 "command (a guestfish command) to the second command (any host command).  For "
17671 "example:"
17672 msgstr ""
17673
17674 #. type: verbatim
17675 #: ../fish/guestfish.pod:790
17676 #, no-wrap
17677 msgid ""
17678 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17679 "\n"
17680 msgstr ""
17681
17682 #. type: textblock
17683 #: ../fish/guestfish.pod:792
17684 msgid ""
17685 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17686 "program).  The above command would list all accounts in the guest filesystem "
17687 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17688 msgstr ""
17689
17690 #. type: verbatim
17691 #: ../fish/guestfish.pod:797
17692 #, no-wrap
17693 msgid ""
17694 " hexdump /bin/ls | head\n"
17695 " list-devices | tail -1\n"
17696 " tgz-out / - | tar ztf -\n"
17697 "\n"
17698 msgstr ""
17699
17700 #. type: textblock
17701 #: ../fish/guestfish.pod:801
17702 msgid ""
17703 "The space before the pipe symbol is required, any space after the pipe "
17704 "symbol is optional.  Everything after the pipe symbol is just passed "
17705 "straight to the host shell, so it can contain redirections, globs and "
17706 "anything else that makes sense on the host side."
17707 msgstr ""
17708
17709 #. type: textblock
17710 #: ../fish/guestfish.pod:806
17711 msgid ""
17712 "To use a literal argument which begins with a pipe symbol, you have to quote "
17713 "it, eg:"
17714 msgstr ""
17715
17716 #. type: verbatim
17717 #: ../fish/guestfish.pod:809
17718 #, no-wrap
17719 msgid ""
17720 " echo \"|\"\n"
17721 "\n"
17722 msgstr ""
17723
17724 #. type: =head1
17725 #: ../fish/guestfish.pod:811
17726 msgid "HOME DIRECTORIES"
17727 msgstr ""
17728
17729 #. type: textblock
17730 #: ../fish/guestfish.pod:813
17731 msgid ""
17732 "If a parameter starts with the character C<~> then the tilde may be expanded "
17733 "as a home directory path (either C<~> for the current user's home directory, "
17734 "or C<~user> for another user)."
17735 msgstr ""
17736
17737 #. type: textblock
17738 #: ../fish/guestfish.pod:817
17739 msgid ""
17740 "Note that home directory expansion happens for users known I<on the host>, "
17741 "not in the guest filesystem."
17742 msgstr ""
17743
17744 #. type: textblock
17745 #: ../fish/guestfish.pod:820
17746 msgid ""
17747 "To use a literal argument which begins with a tilde, you have to quote it, "
17748 "eg:"
17749 msgstr ""
17750
17751 #. type: verbatim
17752 #: ../fish/guestfish.pod:823
17753 #, no-wrap
17754 msgid ""
17755 " echo \"~\"\n"
17756 "\n"
17757 msgstr ""
17758
17759 #. type: =head2
17760 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
17761 msgid "ENCRYPTED DISKS"
17762 msgstr ""
17763
17764 #. type: textblock
17765 #: ../fish/guestfish.pod:827
17766 msgid ""
17767 "Libguestfs has some support for Linux guests encrypted according to the "
17768 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17769 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
17770 "LUKS is supported."
17771 msgstr ""
17772
17773 #. type: textblock
17774 #: ../fish/guestfish.pod:832
17775 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17776 msgstr ""
17777
17778 #. type: verbatim
17779 #: ../fish/guestfish.pod:834
17780 #, no-wrap
17781 msgid ""
17782 " ><fs> vfs-type /dev/sda2\n"
17783 " crypto_LUKS\n"
17784 "\n"
17785 msgstr ""
17786
17787 #. type: textblock
17788 #: ../fish/guestfish.pod:837
17789 msgid ""
17790 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17791 "device called C</dev/mapper/luksdev>."
17792 msgstr ""
17793
17794 #. type: verbatim
17795 #: ../fish/guestfish.pod:840
17796 #, no-wrap
17797 msgid ""
17798 " ><fs> luks-open /dev/sda2 luksdev\n"
17799 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17800 "\n"
17801 msgstr ""
17802
17803 #. type: textblock
17804 #: ../fish/guestfish.pod:843
17805 msgid ""
17806 "Finally you have to tell LVM to scan for volume groups on the newly created "
17807 "mapper device:"
17808 msgstr ""
17809
17810 #. type: verbatim
17811 #: ../fish/guestfish.pod:846
17812 #, no-wrap
17813 msgid ""
17814 " vgscan\n"
17815 " vg-activate-all true\n"
17816 "\n"
17817 msgstr ""
17818
17819 #. type: textblock
17820 #: ../fish/guestfish.pod:849
17821 msgid "The logical volume(s) can now be mounted in the usual way."
17822 msgstr ""
17823
17824 #. type: textblock
17825 #: ../fish/guestfish.pod:851
17826 msgid ""
17827 "Before closing a LUKS device you must unmount any logical volumes on it and "
17828 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17829 "one.  Then you can close the mapper device:"
17830 msgstr ""
17831
17832 #. type: verbatim
17833 #: ../fish/guestfish.pod:855
17834 #, no-wrap
17835 msgid ""
17836 " vg-activate false /dev/VG\n"
17837 " luks-close /dev/mapper/luksdev\n"
17838 "\n"
17839 msgstr ""
17840
17841 #. type: textblock
17842 #: ../fish/guestfish.pod:860
17843 msgid ""
17844 "If a path is prefixed with C<win:> then you can use Windows-style drive "
17845 "letters and paths (with some limitations).  The following commands are "
17846 "equivalent:"
17847 msgstr ""
17848
17849 #. type: verbatim
17850 #: ../fish/guestfish.pod:864
17851 #, no-wrap
17852 msgid ""
17853 " file /WINDOWS/system32/config/system.LOG\n"
17854 "\n"
17855 msgstr ""
17856
17857 #. type: verbatim
17858 #: ../fish/guestfish.pod:866
17859 #, no-wrap
17860 msgid ""
17861 " file win:\\windows\\system32\\config\\system.log\n"
17862 "\n"
17863 msgstr ""
17864
17865 #. type: verbatim
17866 #: ../fish/guestfish.pod:868
17867 #, no-wrap
17868 msgid ""
17869 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
17870 "\n"
17871 msgstr ""
17872
17873 #. type: textblock
17874 #: ../fish/guestfish.pod:870
17875 msgid ""
17876 "The parameter is rewritten \"behind the scenes\" by looking up the position "
17877 "where the drive is mounted, prepending that to the path, changing all "
17878 "backslash characters to forward slash, then resolving the result using L</"
17879 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
17880 "the parameter might be rewritten like this:"
17881 msgstr ""
17882
17883 #. type: verbatim
17884 #: ../fish/guestfish.pod:876
17885 #, no-wrap
17886 msgid ""
17887 " win:e:\\foo\\bar => /e/FOO/bar\n"
17888 "\n"
17889 msgstr ""
17890
17891 #. type: textblock
17892 #: ../fish/guestfish.pod:878
17893 msgid "This only works in argument positions that expect a path."
17894 msgstr ""
17895
17896 #. type: =head1
17897 #: ../fish/guestfish.pod:880
17898 msgid "UPLOADING AND DOWNLOADING FILES"
17899 msgstr ""
17900
17901 #. type: textblock
17902 #: ../fish/guestfish.pod:882
17903 msgid ""
17904 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17905 "others which upload from or download to a local file, you can use the "
17906 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17907 msgstr ""
17908
17909 #. type: verbatim
17910 #: ../fish/guestfish.pod:886
17911 #, no-wrap
17912 msgid ""
17913 " upload - /foo\n"
17914 "\n"
17915 msgstr ""
17916
17917 #. type: textblock
17918 #: ../fish/guestfish.pod:888
17919 msgid ""
17920 "reads stdin and creates from that a file C</foo> in the disk image, and:"
17921 msgstr ""
17922
17923 #. type: verbatim
17924 #: ../fish/guestfish.pod:891
17925 #, no-wrap
17926 msgid ""
17927 " tar-out /etc - | tar tf -\n"
17928 "\n"
17929 msgstr ""
17930
17931 #. type: textblock
17932 #: ../fish/guestfish.pod:893
17933 msgid ""
17934 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17935 "command (see L</PIPES>)."
17936 msgstr ""
17937
17938 #. type: textblock
17939 #: ../fish/guestfish.pod:896
17940 msgid ""
17941 "When using C<-> to read from stdin, the input is read up to the end of "
17942 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17943 "some arbitrary end marker:"
17944 msgstr ""
17945
17946 #. type: verbatim
17947 #: ../fish/guestfish.pod:900
17948 #, no-wrap
17949 msgid ""
17950 " upload -<<END /foo\n"
17951 " input line 1\n"
17952 " input line 2\n"
17953 " input line 3\n"
17954 " END\n"
17955 "\n"
17956 msgstr ""
17957
17958 #. type: textblock
17959 #: ../fish/guestfish.pod:906
17960 msgid ""
17961 "Any string of characters can be used instead of C<END>.  The end marker must "
17962 "appear on a line of its own, without any preceeding or following characters "
17963 "(not even spaces)."
17964 msgstr ""
17965
17966 #. type: textblock
17967 #: ../fish/guestfish.pod:910
17968 msgid ""
17969 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17970 "upload local files (so-called \"FileIn\" parameters in the generator)."
17971 msgstr ""
17972
17973 #. type: =head1
17974 #: ../fish/guestfish.pod:913
17975 msgid "EXIT ON ERROR BEHAVIOUR"
17976 msgstr ""
17977
17978 #. type: textblock
17979 #: ../fish/guestfish.pod:915
17980 msgid ""
17981 "By default, guestfish will ignore any errors when in interactive mode (ie. "
17982 "taking commands from a human over a tty), and will exit on the first error "
17983 "in non-interactive mode (scripts, commands given on the command line)."
17984 msgstr ""
17985
17986 #. type: textblock
17987 #: ../fish/guestfish.pod:920
17988 msgid ""
17989 "If you prefix a command with a I<-> character, then that command will not "
17990 "cause guestfish to exit, even if that (one) command returns an error."
17991 msgstr ""
17992
17993 #. type: =head1
17994 #: ../fish/guestfish.pod:924
17995 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17996 msgstr ""
17997
17998 #. type: textblock
17999 #: ../fish/guestfish.pod:926
18000 msgid ""
18001 "Guestfish can be remote-controlled over a socket.  This is useful "
18002 "particularly in shell scripts where you want to make several different "
18003 "changes to a filesystem, but you don't want the overhead of starting up a "
18004 "guestfish process each time."
18005 msgstr ""
18006
18007 #. type: textblock
18008 #: ../fish/guestfish.pod:931
18009 msgid "Start a guestfish server process using:"
18010 msgstr ""
18011
18012 #. type: verbatim
18013 #: ../fish/guestfish.pod:933
18014 #, no-wrap
18015 msgid ""
18016 " eval \"`guestfish --listen`\"\n"
18017 "\n"
18018 msgstr ""
18019
18020 #. type: textblock
18021 #: ../fish/guestfish.pod:935
18022 msgid "and then send it commands by doing:"
18023 msgstr ""
18024
18025 #. type: verbatim
18026 #: ../fish/guestfish.pod:937
18027 #, no-wrap
18028 msgid ""
18029 " guestfish --remote cmd [...]\n"
18030 "\n"
18031 msgstr ""
18032
18033 #. type: textblock
18034 #: ../fish/guestfish.pod:939
18035 msgid "To cause the server to exit, send it the exit command:"
18036 msgstr ""
18037
18038 #. type: textblock
18039 #: ../fish/guestfish.pod:943
18040 msgid ""
18041 "Note that the server will normally exit if there is an error in a command.  "
18042 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18043 "BEHAVIOUR>."
18044 msgstr ""
18045
18046 #. type: =head2
18047 #: ../fish/guestfish.pod:947
18048 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18049 msgstr ""
18050
18051 #. type: textblock
18052 #: ../fish/guestfish.pod:949
18053 msgid ""
18054 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18055 "is how the I<--remote> option knows where to send the commands.  You can "
18056 "have several guestfish listener processes running using:"
18057 msgstr ""
18058
18059 #. type: verbatim
18060 #: ../fish/guestfish.pod:953
18061 #, no-wrap
18062 msgid ""
18063 " eval \"`guestfish --listen`\"\n"
18064 " pid1=$GUESTFISH_PID\n"
18065 " eval \"`guestfish --listen`\"\n"
18066 " pid2=$GUESTFISH_PID\n"
18067 " ...\n"
18068 " guestfish --remote=$pid1 cmd\n"
18069 " guestfish --remote=$pid2 cmd\n"
18070 "\n"
18071 msgstr ""
18072
18073 #. type: =head2
18074 #: ../fish/guestfish.pod:961
18075 msgid "REMOTE CONTROL AND CSH"
18076 msgstr ""
18077
18078 #. type: textblock
18079 #: ../fish/guestfish.pod:963
18080 msgid ""
18081 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18082 "option:"
18083 msgstr ""
18084
18085 #. type: verbatim
18086 #: ../fish/guestfish.pod:966
18087 #, no-wrap
18088 msgid ""
18089 " eval \"`guestfish --listen --csh`\"\n"
18090 "\n"
18091 msgstr ""
18092
18093 #. type: =head2
18094 #: ../fish/guestfish.pod:968
18095 msgid "REMOTE CONTROL DETAILS"
18096 msgstr ""
18097
18098 #. type: textblock
18099 #: ../fish/guestfish.pod:970
18100 msgid ""
18101 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18102 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18103 "and C<$PID> is the process ID of the server."
18104 msgstr ""
18105
18106 #. type: textblock
18107 #: ../fish/guestfish.pod:974
18108 msgid "Guestfish client and server versions must match exactly."
18109 msgstr ""
18110
18111 #. type: =head1
18112 #: ../fish/guestfish.pod:976
18113 msgid "PREPARED DISK IMAGES"
18114 msgstr ""
18115
18116 #. type: textblock
18117 #: ../fish/guestfish.pod:978
18118 msgid ""
18119 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18120 "preformatted disk images that guestfish can make for you to save typing.  "
18121 "This is particularly useful for testing purposes.  This option is used "
18122 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18123 "can be mixed with I<-a>)."
18124 msgstr ""
18125
18126 #. type: textblock
18127 #: ../fish/guestfish.pod:984
18128 msgid ""
18129 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18130 "the second and so on.  Existing files in the current directory are "
18131 "I<overwritten>."
18132 msgstr ""
18133
18134 #. type: textblock
18135 #: ../fish/guestfish.pod:988
18136 msgid ""
18137 "The type briefly describes how the disk should be sized, partitioned, how "
18138 "filesystem(s) should be created, and how content should be added.  "
18139 "Optionally the type can be followed by extra parameters, separated by C<:> "
18140 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18141 "allocated disk, containing a single partition, with the partition formatted "
18142 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18143 "disk instead."
18144 msgstr ""
18145
18146 #. type: textblock
18147 #: ../fish/guestfish.pod:996
18148 msgid "To list the available types and any extra parameters they take, run:"
18149 msgstr ""
18150
18151 #. type: textblock
18152 #: ../fish/guestfish.pod:1000
18153 msgid ""
18154 "Note that the prepared filesystem is not mounted.  You would usually have to "
18155 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18156 msgstr ""
18157
18158 #. type: textblock
18159 #: ../fish/guestfish.pod:1004
18160 msgid ""
18161 "If any I<-N> or I<--new> options are given, the guest is automatically "
18162 "launched."
18163 msgstr ""
18164
18165 #. type: textblock
18166 #: ../fish/guestfish.pod:1009
18167 msgid "Create a 100MB disk with an ext4-formatted partition:"
18168 msgstr ""
18169
18170 #. type: verbatim
18171 #: ../fish/guestfish.pod:1011
18172 #, no-wrap
18173 msgid ""
18174 " guestfish -N fs:ext4\n"
18175 "\n"
18176 msgstr ""
18177
18178 #. type: textblock
18179 #: ../fish/guestfish.pod:1013
18180 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18181 msgstr ""
18182
18183 #. type: verbatim
18184 #: ../fish/guestfish.pod:1015
18185 #, no-wrap
18186 msgid ""
18187 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18188 "\n"
18189 msgstr ""
18190
18191 #. type: textblock
18192 #: ../fish/guestfish.pod:1017
18193 msgid "Create a blank 200MB disk:"
18194 msgstr ""
18195
18196 #. type: verbatim
18197 #: ../fish/guestfish.pod:1019
18198 #, no-wrap
18199 msgid ""
18200 " guestfish -N disk:200M\n"
18201 "\n"
18202 msgstr ""
18203
18204 #. type: =head1
18205 #: ../fish/guestfish.pod:1021
18206 msgid "PROGRESS BARS"
18207 msgstr ""
18208
18209 #. type: textblock
18210 #: ../fish/guestfish.pod:1023
18211 msgid ""
18212 "Some (not all) long-running commands send progress notification messages as "
18213 "they are running.  Guestfish turns these messages into progress bars."
18214 msgstr ""
18215
18216 #. type: textblock
18217 #: ../fish/guestfish.pod:1027
18218 msgid ""
18219 "When a command that supports progress bars takes longer than two seconds to "
18220 "run, and if progress bars are enabled, then you will see one appearing below "
18221 "the command:"
18222 msgstr ""
18223
18224 #. type: verbatim
18225 #: ../fish/guestfish.pod:1031
18226 #, no-wrap
18227 msgid ""
18228 " ><fs> copy-size /large-file /another-file 2048M\n"
18229 " / 10% [#####-----------------------------------------] 00:30\n"
18230 "\n"
18231 msgstr ""
18232
18233 #. type: textblock
18234 #: ../fish/guestfish.pod:1034
18235 msgid ""
18236 "The spinner on the left hand side moves round once for every progress "
18237 "notification received from the backend.  This is a (reasonably) golden "
18238 "assurance that the command is \"doing something\" even if the progress bar "
18239 "is not moving, because the command is able to send the progress "
18240 "notifications.  When the bar reaches 100% and the command finishes, the "
18241 "spinner disappears."
18242 msgstr ""
18243
18244 #. type: textblock
18245 #: ../fish/guestfish.pod:1041
18246 msgid ""
18247 "Progress bars are enabled by default when guestfish is used interactively.  "
18248 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18249 "and you can disable them completely using I<--no-progress-bars>."
18250 msgstr ""
18251
18252 #. type: =head1
18253 #: ../fish/guestfish.pod:1046
18254 msgid "GUESTFISH COMMANDS"
18255 msgstr ""
18256
18257 #. type: textblock
18258 #: ../fish/guestfish.pod:1048
18259 msgid ""
18260 "The commands in this section are guestfish convenience commands, in other "
18261 "words, they are not part of the L<guestfs(3)> API."
18262 msgstr ""
18263
18264 #. type: =head2
18265 #: ../fish/guestfish.pod:1051
18266 msgid "help"
18267 msgstr ""
18268
18269 #. type: verbatim
18270 #: ../fish/guestfish.pod:1053
18271 #, no-wrap
18272 msgid ""
18273 " help\n"
18274 " help cmd\n"
18275 "\n"
18276 msgstr ""
18277
18278 #. type: textblock
18279 #: ../fish/guestfish.pod:1056
18280 msgid "Without any parameter, this provides general help."
18281 msgstr ""
18282
18283 #. type: textblock
18284 #: ../fish/guestfish.pod:1058
18285 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18286 msgstr ""
18287
18288 #. type: =head2
18289 #: ../fish/guestfish.pod:1060
18290 msgid "quit | exit"
18291 msgstr ""
18292
18293 #. type: textblock
18294 #: ../fish/guestfish.pod:1062
18295 msgid "This exits guestfish.  You can also use C<^D> key."
18296 msgstr ""
18297
18298 #. type: textblock
18299 #: ../fish/guestfish.pod:1064
18300 msgid "@FISH_COMMANDS@"
18301 msgstr ""
18302
18303 #. type: =head1
18304 #: ../fish/guestfish.pod:1066
18305 msgid "COMMANDS"
18306 msgstr ""
18307
18308 #. type: textblock
18309 #: ../fish/guestfish.pod:1068 ../src/guestfs.pod:1475
18310 msgid "@ACTIONS@"
18311 msgstr ""
18312
18313 #. type: =head1
18314 #: ../fish/guestfish.pod:1070 ../test-tool/libguestfs-test-tool.pod:77
18315 msgid "EXIT CODE"
18316 msgstr ""
18317
18318 #. type: textblock
18319 #: ../fish/guestfish.pod:1072
18320 msgid ""
18321 "guestfish returns 0 if the commands completed without error, or 1 if there "
18322 "was an error."
18323 msgstr ""
18324
18325 #. type: =item
18326 #: ../fish/guestfish.pod:1079
18327 msgid "EDITOR"
18328 msgstr ""
18329
18330 #. type: textblock
18331 #: ../fish/guestfish.pod:1081
18332 msgid ""
18333 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18334 "C<vi>."
18335 msgstr ""
18336
18337 #. type: =item
18338 #: ../fish/guestfish.pod:1084 ../src/guestfs.pod:2970
18339 msgid "FEBOOTSTRAP_KERNEL"
18340 msgstr ""
18341
18342 #. type: =item
18343 #: ../fish/guestfish.pod:1086 ../src/guestfs.pod:2972
18344 msgid "FEBOOTSTRAP_MODULES"
18345 msgstr ""
18346
18347 #. type: textblock
18348 #: ../fish/guestfish.pod:1088 ../src/guestfs.pod:2974
18349 msgid ""
18350 "These two environment variables allow the kernel that libguestfs uses in the "
18351 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
18352 "most recent host kernel is chosen.  For more information about kernel "
18353 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
18354 "available in febootstrap E<ge> 3.8."
18355 msgstr ""
18356
18357 #. type: =item
18358 #: ../fish/guestfish.pod:1094
18359 msgid "GUESTFISH_DISPLAY_IMAGE"
18360 msgstr ""
18361
18362 #. type: textblock
18363 #: ../fish/guestfish.pod:1096
18364 msgid ""
18365 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
18366 "If not set, it uses L<display(1)>."
18367 msgstr ""
18368
18369 #. type: =item
18370 #: ../fish/guestfish.pod:1099
18371 msgid "GUESTFISH_PID"
18372 msgstr ""
18373
18374 #. type: textblock
18375 #: ../fish/guestfish.pod:1101
18376 msgid ""
18377 "Used with the I<--remote> option to specify the remote guestfish process to "
18378 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18379 msgstr ""
18380
18381 #. type: =item
18382 #: ../fish/guestfish.pod:1105
18383 msgid "HEXEDITOR"
18384 msgstr ""
18385
18386 #. type: textblock
18387 #: ../fish/guestfish.pod:1107
18388 msgid ""
18389 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18390 "not specified, the external L<hexedit(1)> program is used."
18391 msgstr ""
18392
18393 #. type: =item
18394 #: ../fish/guestfish.pod:1111
18395 msgid "HOME"
18396 msgstr ""
18397
18398 #. type: textblock
18399 #: ../fish/guestfish.pod:1113
18400 msgid ""
18401 "If compiled with GNU readline support, various files in the home directory "
18402 "can be used.  See L</FILES>."
18403 msgstr ""
18404
18405 #. type: =item
18406 #: ../fish/guestfish.pod:1116 ../src/guestfs.pod:2980
18407 msgid "LIBGUESTFS_APPEND"
18408 msgstr ""
18409
18410 #. type: textblock
18411 #: ../fish/guestfish.pod:1118 ../src/guestfs.pod:2982
18412 msgid "Pass additional options to the guest kernel."
18413 msgstr ""
18414
18415 #. type: =item
18416 #: ../fish/guestfish.pod:1120 ../src/guestfs.pod:2984
18417 msgid "LIBGUESTFS_DEBUG"
18418 msgstr ""
18419
18420 #. type: textblock
18421 #: ../fish/guestfish.pod:1122
18422 msgid ""
18423 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18424 "effect as using the B<-v> option."
18425 msgstr ""
18426
18427 #. type: =item
18428 #: ../fish/guestfish.pod:1125 ../src/guestfs.pod:2989
18429 msgid "LIBGUESTFS_MEMSIZE"
18430 msgstr ""
18431
18432 #. type: textblock
18433 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2991
18434 msgid ""
18435 "Set the memory allocated to the qemu process, in megabytes.  For example:"
18436 msgstr ""
18437
18438 #. type: verbatim
18439 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:2994
18440 #, no-wrap
18441 msgid ""
18442 " LIBGUESTFS_MEMSIZE=700\n"
18443 "\n"
18444 msgstr ""
18445
18446 #. type: =item
18447 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:2996
18448 msgid "LIBGUESTFS_PATH"
18449 msgstr ""
18450
18451 #. type: textblock
18452 #: ../fish/guestfish.pod:1134
18453 msgid ""
18454 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18455 "the discussion of paths in L<guestfs(3)>."
18456 msgstr ""
18457
18458 #. type: =item
18459 #: ../fish/guestfish.pod:1137 ../src/guestfs.pod:3001
18460 msgid "LIBGUESTFS_QEMU"
18461 msgstr ""
18462
18463 #. type: textblock
18464 #: ../fish/guestfish.pod:1139 ../src/guestfs.pod:3003
18465 msgid ""
18466 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
18467 "which was found at compile time by the configure script is used."
18468 msgstr ""
18469
18470 #. type: =item
18471 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3009
18472 msgid "LIBGUESTFS_TRACE"
18473 msgstr ""
18474
18475 #. type: textblock
18476 #: ../fish/guestfish.pod:1145
18477 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18478 msgstr ""
18479
18480 #. type: =item
18481 #: ../fish/guestfish.pod:1147
18482 msgid "PAGER"
18483 msgstr ""
18484
18485 #. type: textblock
18486 #: ../fish/guestfish.pod:1149
18487 msgid ""
18488 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18489 "C<more>."
18490 msgstr ""
18491
18492 #. type: =item
18493 #: ../fish/guestfish.pod:1152 ../src/guestfs.pod:3014
18494 msgid "TMPDIR"
18495 msgstr ""
18496
18497 #. type: textblock
18498 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3016
18499 msgid ""
18500 "Location of temporary directory, defaults to C</tmp> except for the cached "
18501 "supermin appliance which defaults to C</var/tmp>."
18502 msgstr ""
18503
18504 #. type: textblock
18505 #: ../fish/guestfish.pod:1157 ../src/guestfs.pod:3019
18506 msgid ""
18507 "If libguestfs was compiled to use the supermin appliance then the real "
18508 "appliance is cached in this directory, shared between all handles belonging "
18509 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
18510 "use in case C</var/tmp> is not large enough."
18511 msgstr ""
18512
18513 #. type: =head1
18514 #: ../fish/guestfish.pod:1165 ../fuse/guestmount.pod:288
18515 #: ../rescue/virt-rescue.pod:269
18516 msgid "FILES"
18517 msgstr ""
18518
18519 #. type: =item
18520 #: ../fish/guestfish.pod:1169 ../fuse/guestmount.pod:292
18521 #: ../rescue/virt-rescue.pod:273
18522 msgid "$HOME/.libguestfs-tools.rc"
18523 msgstr ""
18524
18525 #. type: =item
18526 #: ../fish/guestfish.pod:1171 ../fuse/guestmount.pod:294
18527 #: ../rescue/virt-rescue.pod:275
18528 msgid "/etc/libguestfs-tools.conf"
18529 msgstr ""
18530
18531 #. type: textblock
18532 #: ../fish/guestfish.pod:1173 ../fuse/guestmount.pod:296
18533 #: ../rescue/virt-rescue.pod:277
18534 msgid ""
18535 "This configuration file controls the default read-only or read-write mode "
18536 "(I<--ro> or I<--rw>)."
18537 msgstr ""
18538
18539 #. type: textblock
18540 #: ../fish/guestfish.pod:1176
18541 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
18542 msgstr ""
18543
18544 #. type: =item
18545 #: ../fish/guestfish.pod:1178
18546 msgid "$HOME/.guestfish"
18547 msgstr ""
18548
18549 #. type: textblock
18550 #: ../fish/guestfish.pod:1180
18551 msgid ""
18552 "If compiled with GNU readline support, then the command history is saved in "
18553 "this file."
18554 msgstr ""
18555
18556 #. type: =item
18557 #: ../fish/guestfish.pod:1183
18558 msgid "$HOME/.inputrc"
18559 msgstr ""
18560
18561 #. type: =item
18562 #: ../fish/guestfish.pod:1185
18563 msgid "/etc/inputrc"
18564 msgstr ""
18565
18566 #. type: textblock
18567 #: ../fish/guestfish.pod:1187
18568 msgid ""
18569 "If compiled with GNU readline support, then these files can be used to "
18570 "configure readline.  For further information, please see L<readline(3)/"
18571 "INITIALIZATION FILE>."
18572 msgstr ""
18573
18574 #. type: textblock
18575 #: ../fish/guestfish.pod:1191
18576 msgid "To write rules which only apply to guestfish, use:"
18577 msgstr ""
18578
18579 #. type: verbatim
18580 #: ../fish/guestfish.pod:1193
18581 #, no-wrap
18582 msgid ""
18583 " $if guestfish\n"
18584 " ...\n"
18585 " $endif\n"
18586 "\n"
18587 msgstr ""
18588
18589 #. type: textblock
18590 #: ../fish/guestfish.pod:1197
18591 msgid ""
18592 "Variables that you can set in inputrc that change the behaviour of guestfish "
18593 "in useful ways include:"
18594 msgstr ""
18595
18596 #. type: =item
18597 #: ../fish/guestfish.pod:1202
18598 msgid "completion-ignore-case (default: on)"
18599 msgstr ""
18600
18601 #. type: textblock
18602 #: ../fish/guestfish.pod:1204
18603 msgid ""
18604 "By default, guestfish will ignore case when tab-completing paths on the "
18605 "disk.  Use:"
18606 msgstr ""
18607
18608 #. type: verbatim
18609 #: ../fish/guestfish.pod:1207
18610 #, no-wrap
18611 msgid ""
18612 " set completion-ignore-case off\n"
18613 "\n"
18614 msgstr ""
18615
18616 #. type: textblock
18617 #: ../fish/guestfish.pod:1209
18618 msgid "to make guestfish case sensitive."
18619 msgstr ""
18620
18621 #. type: =item
18622 #: ../fish/guestfish.pod:1213
18623 msgid "test1.img"
18624 msgstr ""
18625
18626 #. type: =item
18627 #: ../fish/guestfish.pod:1215
18628 msgid "test2.img (etc)"
18629 msgstr ""
18630
18631 #. type: textblock
18632 #: ../fish/guestfish.pod:1217
18633 msgid ""
18634 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
18635 "will be created in the file C<test1.img> in the current directory.  The "
18636 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
18637 "the same name will be overwritten."
18638 msgstr ""
18639
18640 #. type: textblock
18641 #: ../fish/guestfish.pod:1226
18642 msgid ""
18643 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
18644 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
18645 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
18646 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
18647 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
18648 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
18649 msgstr ""
18650
18651 #. type: textblock
18652 #: ../fish/guestfish.pod:1255 ../src/guestfs.pod:3105
18653 #: ../test-tool/libguestfs-test-tool.pod:99
18654 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
18655 msgstr ""
18656
18657 #. type: textblock
18658 #: ../fish/virt-copy-in.pod:5
18659 msgid ""
18660 "virt-copy-in - Copy files and directories into a virtual machine disk image."
18661 msgstr ""
18662
18663 #. type: verbatim
18664 #: ../fish/virt-copy-in.pod:9
18665 #, no-wrap
18666 msgid ""
18667 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
18668 "\n"
18669 msgstr ""
18670
18671 #. type: verbatim
18672 #: ../fish/virt-copy-in.pod:11
18673 #, no-wrap
18674 msgid ""
18675 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
18676 "\n"
18677 msgstr ""
18678
18679 #. type: textblock
18680 #: ../fish/virt-copy-in.pod:15
18681 msgid ""
18682 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
18683 "causing disk corruption.  The virtual machine must be shut down before you "
18684 "use this command."
18685 msgstr ""
18686
18687 #. type: textblock
18688 #: ../fish/virt-copy-in.pod:21
18689 msgid ""
18690 "C<virt-copy-in> copies files and directories from the local disk into a "
18691 "virtual machine disk image or named libvirt domain."
18692 msgstr ""
18693
18694 #. type: textblock
18695 #: ../fish/virt-copy-in.pod:24
18696 msgid ""
18697 "You can give one of more filenames and directories on the command line.  "
18698 "Directories are copied in recursively.  The final parameter must be the "
18699 "destination directory in the disk image which must be an absolute path "
18700 "starting with a C</> character."
18701 msgstr ""
18702
18703 #. type: verbatim
18704 #: ../fish/virt-copy-in.pod:33
18705 #, no-wrap
18706 msgid ""
18707 " virt-copy-in -d MyGuest resolv.conf /etc\n"
18708 "\n"
18709 msgstr ""
18710
18711 #. type: textblock
18712 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
18713 msgid "Upload a home directory to a guest:"
18714 msgstr ""
18715
18716 #. type: verbatim
18717 #: ../fish/virt-copy-in.pod:37
18718 #, no-wrap
18719 msgid ""
18720 " virt-copy-in -d MyGuest skel /home\n"
18721 "\n"
18722 msgstr ""
18723
18724 #. type: =head1
18725 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
18726 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
18727 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
18728 msgstr ""
18729
18730 #. type: textblock
18731 #: ../fish/virt-copy-in.pod:41
18732 msgid ""
18733 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18734 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
18735 "are probably better off using guestfish directly."
18736 msgstr ""
18737
18738 #. type: textblock
18739 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
18740 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
18741 msgid ""
18742 "Since the shell script just passes options straight to guestfish, read "
18743 "L<guestfish(1)> to see the full list of options."
18744 msgstr ""
18745
18746 #. type: textblock
18747 #: ../fish/virt-copy-in.pod:52
18748 msgid ""
18749 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
18750 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18751 msgstr ""
18752
18753 #. type: textblock
18754 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
18755 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
18756 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
18757 msgstr ""
18758
18759 #. type: textblock
18760 #: ../fish/virt-copy-out.pod:5
18761 msgid ""
18762 "virt-copy-out - Copy files and directories out of a virtual machine disk "
18763 "image."
18764 msgstr ""
18765
18766 #. type: verbatim
18767 #: ../fish/virt-copy-out.pod:9
18768 #, no-wrap
18769 msgid ""
18770 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
18771 "\n"
18772 msgstr ""
18773
18774 #. type: verbatim
18775 #: ../fish/virt-copy-out.pod:11
18776 #, no-wrap
18777 msgid ""
18778 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
18779 "\n"
18780 msgstr ""
18781
18782 #. type: textblock
18783 #: ../fish/virt-copy-out.pod:15
18784 msgid ""
18785 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
18786 "image or named libvirt domain."
18787 msgstr ""
18788
18789 #. type: textblock
18790 #: ../fish/virt-copy-out.pod:18
18791 msgid ""
18792 "You can give one of more filenames and directories on the command line.  "
18793 "Directories are copied out recursively."
18794 msgstr ""
18795
18796 #. type: textblock
18797 #: ../fish/virt-copy-out.pod:23
18798 msgid "Download the home directories from a virtual machine:"
18799 msgstr ""
18800
18801 #. type: verbatim
18802 #: ../fish/virt-copy-out.pod:25
18803 #, no-wrap
18804 msgid ""
18805 " mkdir homes\n"
18806 " virt-copy-out -d MyGuest /home homes\n"
18807 "\n"
18808 msgstr ""
18809
18810 #. type: textblock
18811 #: ../fish/virt-copy-out.pod:30
18812 msgid ""
18813 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18814 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
18815 "are probably better off using guestfish directly."
18816 msgstr ""
18817
18818 #. type: textblock
18819 #: ../fish/virt-copy-out.pod:41
18820 msgid ""
18821 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
18822 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18823 msgstr ""
18824
18825 #. type: textblock
18826 #: ../fish/virt-tar-in.pod:5
18827 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
18828 msgstr ""
18829
18830 #. type: verbatim
18831 #: ../fish/virt-tar-in.pod:9
18832 #, no-wrap
18833 msgid ""
18834 " virt-tar-in -a disk.img data.tar /destination\n"
18835 "\n"
18836 msgstr ""
18837
18838 #. type: verbatim
18839 #: ../fish/virt-tar-in.pod:11
18840 #, no-wrap
18841 msgid ""
18842 " virt-tar-in -d domain data.tar /destination\n"
18843 "\n"
18844 msgstr ""
18845
18846 #. type: verbatim
18847 #: ../fish/virt-tar-in.pod:13
18848 #, no-wrap
18849 msgid ""
18850 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
18851 "\n"
18852 msgstr ""
18853
18854 #. type: textblock
18855 #: ../fish/virt-tar-in.pod:17
18856 msgid ""
18857 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
18858 "causing disk corruption.  The virtual machine must be shut down before you "
18859 "use this command."
18860 msgstr ""
18861
18862 #. type: textblock
18863 #: ../fish/virt-tar-in.pod:23
18864 msgid ""
18865 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
18866 "image or named libvirt domain."
18867 msgstr ""
18868
18869 #. type: textblock
18870 #: ../fish/virt-tar-in.pod:26
18871 msgid ""
18872 "The first parameter is the tar file.  Use C<-> to read the tar file from "
18873 "standard input.  The second parameter is the absolute target directory to "
18874 "unpack into."
18875 msgstr ""
18876
18877 #. type: verbatim
18878 #: ../fish/virt-tar-in.pod:34
18879 #, no-wrap
18880 msgid ""
18881 " virt-tar-in -d MyGuest homes.tar /home\n"
18882 "\n"
18883 msgstr ""
18884
18885 #. type: textblock
18886 #: ../fish/virt-tar-in.pod:38
18887 msgid ""
18888 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18889 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
18890 "probably better off using guestfish directly."
18891 msgstr ""
18892
18893 #. type: textblock
18894 #: ../fish/virt-tar-in.pod:49
18895 msgid ""
18896 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18897 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
18898 "org/>."
18899 msgstr ""
18900
18901 #. type: textblock
18902 #: ../fish/virt-tar-out.pod:5
18903 msgid ""
18904 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
18905 msgstr ""
18906
18907 #. type: verbatim
18908 #: ../fish/virt-tar-out.pod:9
18909 #, no-wrap
18910 msgid ""
18911 " virt-tar-out -a disk.img /dir files.tar\n"
18912 "\n"
18913 msgstr ""
18914
18915 #. type: verbatim
18916 #: ../fish/virt-tar-out.pod:11
18917 #, no-wrap
18918 msgid ""
18919 " virt-tar-out -d domain /dir files.tar\n"
18920 "\n"
18921 msgstr ""
18922
18923 #. type: verbatim
18924 #: ../fish/virt-tar-out.pod:13
18925 #, no-wrap
18926 msgid ""
18927 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
18928 "\n"
18929 msgstr ""
18930
18931 #. type: textblock
18932 #: ../fish/virt-tar-out.pod:17
18933 msgid ""
18934 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
18935 msgstr ""
18936
18937 #. type: textblock
18938 #: ../fish/virt-tar-out.pod:20
18939 msgid ""
18940 "The first parameter is the absolute path of the virtual machine directory.  "
18941 "The second parameter is the tar file to write.  Use C<-> to write to "
18942 "standard output."
18943 msgstr ""
18944
18945 #. type: textblock
18946 #: ../fish/virt-tar-out.pod:26
18947 msgid "Download the home directories from a guest:"
18948 msgstr ""
18949
18950 #. type: verbatim
18951 #: ../fish/virt-tar-out.pod:28
18952 #, no-wrap
18953 msgid ""
18954 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
18955 "\n"
18956 msgstr ""
18957
18958 #. type: textblock
18959 #: ../fish/virt-tar-out.pod:32
18960 msgid ""
18961 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18962 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
18963 "are probably better off using guestfish directly."
18964 msgstr ""
18965
18966 #. type: textblock
18967 #: ../fish/virt-tar-out.pod:43
18968 msgid ""
18969 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18970 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
18971 msgstr ""
18972
18973 #. type: textblock
18974 #: ../fuse/guestmount.pod:5
18975 msgid ""
18976 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
18977 msgstr ""
18978
18979 #. type: verbatim
18980 #: ../fuse/guestmount.pod:9
18981 #, no-wrap
18982 msgid ""
18983 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
18984 "\n"
18985 msgstr ""
18986
18987 #. type: verbatim
18988 #: ../fuse/guestmount.pod:11
18989 #, no-wrap
18990 msgid ""
18991 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
18992 "\n"
18993 msgstr ""
18994
18995 #. type: verbatim
18996 #: ../fuse/guestmount.pod:13
18997 #, no-wrap
18998 msgid ""
18999 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19000 "\n"
19001 msgstr ""
19002
19003 #. type: textblock
19004 #: ../fuse/guestmount.pod:17
19005 msgid ""
19006 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19007 "machines.  If you do this, you risk disk corruption in the VM."
19008 msgstr ""
19009
19010 #. type: textblock
19011 #: ../fuse/guestmount.pod:22
19012 msgid ""
19013 "The guestmount program can be used to mount virtual machine filesystems and "
19014 "other disk images on the host.  It uses libguestfs for access to the guest "
19015 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19016 "a mountable device."
19017 msgstr ""
19018
19019 #. type: textblock
19020 #: ../fuse/guestmount.pod:27
19021 msgid ""
19022 "Along with other options, you have to give at least one device (I<-a> "
19023 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19024 "option) or use the I<-i> inspection option.  How this works is better "
19025 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19026 "below."
19027 msgstr ""
19028
19029 #. type: textblock
19030 #: ../fuse/guestmount.pod:33
19031 msgid ""
19032 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
19033 "by you, and the filesystem will not be visible to any other users unless you "
19034 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
19035 "the filesystem, use the C<fusermount -u> command."
19036 msgstr ""
19037
19038 #. type: textblock
19039 #: ../fuse/guestmount.pod:41
19040 msgid ""
19041 "For a typical Windows guest which has its main filesystem on the first "
19042 "partition:"
19043 msgstr ""
19044
19045 #. type: verbatim
19046 #: ../fuse/guestmount.pod:44
19047 #, no-wrap
19048 msgid ""
19049 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19050 "\n"
19051 msgstr ""
19052
19053 #. type: textblock
19054 #: ../fuse/guestmount.pod:46
19055 msgid ""
19056 "For a typical Linux guest which has a /boot filesystem on the first "
19057 "partition, and the root filesystem on a logical volume:"
19058 msgstr ""
19059
19060 #. type: verbatim
19061 #: ../fuse/guestmount.pod:49
19062 #, no-wrap
19063 msgid ""
19064 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19065 "\n"
19066 msgstr ""
19067
19068 #. type: textblock
19069 #: ../fuse/guestmount.pod:51
19070 msgid "To get libguestfs to detect guest mountpoints for you:"
19071 msgstr ""
19072
19073 #. type: verbatim
19074 #: ../fuse/guestmount.pod:53
19075 #, no-wrap
19076 msgid ""
19077 " guestmount -a guest.img -i --ro /mnt\n"
19078 "\n"
19079 msgstr ""
19080
19081 #. type: textblock
19082 #: ../fuse/guestmount.pod:55
19083 msgid "For a libvirt guest called \"Guest\" you could do:"
19084 msgstr ""
19085
19086 #. type: verbatim
19087 #: ../fuse/guestmount.pod:57
19088 #, no-wrap
19089 msgid ""
19090 " guestmount -d Guest -i --ro /mnt\n"
19091 "\n"
19092 msgstr ""
19093
19094 #. type: textblock
19095 #: ../fuse/guestmount.pod:59
19096 msgid ""
19097 "If you don't know what filesystems are contained in a guest or disk image, "
19098 "use L<virt-filesystems(1)> first:"
19099 msgstr ""
19100
19101 #. type: verbatim
19102 #: ../fuse/guestmount.pod:62
19103 #, no-wrap
19104 msgid ""
19105 " virt-filesystems MyGuest\n"
19106 "\n"
19107 msgstr ""
19108
19109 #. type: textblock
19110 #: ../fuse/guestmount.pod:64
19111 msgid ""
19112 "If you want to trace the libguestfs calls but without excessive debugging "
19113 "information, we recommend:"
19114 msgstr ""
19115
19116 #. type: verbatim
19117 #: ../fuse/guestmount.pod:67
19118 #, no-wrap
19119 msgid ""
19120 " guestmount [...] --trace /mnt\n"
19121 "\n"
19122 msgstr ""
19123
19124 #. type: textblock
19125 #: ../fuse/guestmount.pod:69
19126 msgid "If you want to debug the program, we recommend:"
19127 msgstr ""
19128
19129 #. type: verbatim
19130 #: ../fuse/guestmount.pod:71
19131 #, no-wrap
19132 msgid ""
19133 " guestmount [...] --trace --verbose /mnt\n"
19134 "\n"
19135 msgstr ""
19136
19137 #. type: =head1
19138 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
19139 #: ../resize/virt-resize.pod:486
19140 msgid "NOTES"
19141 msgstr ""
19142
19143 #. type: =head2
19144 #: ../fuse/guestmount.pod:75
19145 msgid "Other users cannot see the filesystem by default"
19146 msgstr ""
19147
19148 #. type: textblock
19149 #: ../fuse/guestmount.pod:77
19150 msgid ""
19151 "If you mount a filesystem as one user (eg. root), then other users will not "
19152 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
19153 "option when mounting:"
19154 msgstr ""
19155
19156 #. type: verbatim
19157 #: ../fuse/guestmount.pod:81
19158 #, no-wrap
19159 msgid ""
19160 " sudo guestmount [...] -o allow_other /mnt\n"
19161 "\n"
19162 msgstr ""
19163
19164 #. type: textblock
19165 #: ../fuse/guestmount.pod:91
19166 msgid "Add a block device or virtual machine image."
19167 msgstr ""
19168
19169 #. type: =item
19170 #: ../fuse/guestmount.pod:114
19171 msgid "B<--dir-cache-timeout N>"
19172 msgstr ""
19173
19174 #. type: textblock
19175 #: ../fuse/guestmount.pod:116
19176 msgid ""
19177 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
19178 "seconds.  The readdir cache [actually, there are several semi-independent "
19179 "caches] is populated after a readdir(2) call with the stat and extended "
19180 "attributes of the files in the directory, in anticipation that they will be "
19181 "requested soon after."
19182 msgstr ""
19183
19184 #. type: textblock
19185 #: ../fuse/guestmount.pod:122
19186 msgid ""
19187 "There is also a different attribute cache implemented by FUSE (see the FUSE "
19188 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
19189 "requests, only cache existing ones."
19190 msgstr ""
19191
19192 #. type: textblock
19193 #: ../fuse/guestmount.pod:142
19194 msgid ""
19195 "If you have untrusted raw-format guest disk images, you should use this "
19196 "option to specify the disk format.  This avoids a possible security problem "
19197 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
19198 "guestfs_add_drive_opts>."
19199 msgstr ""
19200
19201 #. type: =item
19202 #: ../fuse/guestmount.pod:147
19203 msgid "B<--fuse-help>"
19204 msgstr ""
19205
19206 #. type: textblock
19207 #: ../fuse/guestmount.pod:149
19208 msgid "Display help on special FUSE options (see I<-o> below)."
19209 msgstr ""
19210
19211 #. type: textblock
19212 #: ../fuse/guestmount.pod:153
19213 msgid "Display brief help and exit."
19214 msgstr ""
19215
19216 #. type: textblock
19217 #: ../fuse/guestmount.pod:177
19218 msgid ""
19219 "Mount the named partition or logical volume on the given mountpoint B<in the "
19220 "guest> (this has nothing to do with mountpoints in the host)."
19221 msgstr ""
19222
19223 #. type: textblock
19224 #: ../fuse/guestmount.pod:180
19225 msgid ""
19226 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
19227 "something on C</>."
19228 msgstr ""
19229
19230 #. type: textblock
19231 #: ../fuse/guestmount.pod:197
19232 msgid ""
19233 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
19234 "unmounted.  If you specify this option, then we don't attempt to sync the "
19235 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
19236 msgstr ""
19237
19238 #. type: =item
19239 #: ../fuse/guestmount.pod:202
19240 msgid "B<-o option>"
19241 msgstr ""
19242
19243 #. type: =item
19244 #: ../fuse/guestmount.pod:204
19245 msgid "B<--option option>"
19246 msgstr ""
19247
19248 #. type: textblock
19249 #: ../fuse/guestmount.pod:206
19250 msgid "Pass extra options to FUSE."
19251 msgstr ""
19252
19253 #. type: textblock
19254 #: ../fuse/guestmount.pod:208
19255 msgid ""
19256 "To get a list of all the extra options supported by FUSE, use the command "
19257 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
19258 "of them are a good idea."
19259 msgstr ""
19260
19261 #. type: verbatim
19262 #: ../fuse/guestmount.pod:212
19263 #, no-wrap
19264 msgid ""
19265 " guestmount --fuse-help\n"
19266 "\n"
19267 msgstr ""
19268
19269 #. type: textblock
19270 #: ../fuse/guestmount.pod:214
19271 msgid "Some potentially useful FUSE options:"
19272 msgstr ""
19273
19274 #. type: =item
19275 #: ../fuse/guestmount.pod:218
19276 msgid "B<-o allow_other>"
19277 msgstr ""
19278
19279 #. type: textblock
19280 #: ../fuse/guestmount.pod:220
19281 msgid "Allow other users to see the filesystem."
19282 msgstr ""
19283
19284 #. type: =item
19285 #: ../fuse/guestmount.pod:222
19286 msgid "B<-o attr_timeout=N>"
19287 msgstr ""
19288
19289 #. type: textblock
19290 #: ../fuse/guestmount.pod:224
19291 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
19292 msgstr ""
19293
19294 #. type: =item
19295 #: ../fuse/guestmount.pod:226
19296 msgid "B<-o kernel_cache>"
19297 msgstr ""
19298
19299 #. type: textblock
19300 #: ../fuse/guestmount.pod:228
19301 msgid ""
19302 "Allow the kernel to cache files (reduces the number of reads that have to go "
19303 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
19304 "afford the extra memory usage."
19305 msgstr ""
19306
19307 #. type: =item
19308 #: ../fuse/guestmount.pod:232
19309 msgid "B<-o uid=N> B<-o gid=N>"
19310 msgstr ""
19311
19312 #. type: textblock
19313 #: ../fuse/guestmount.pod:234
19314 msgid ""
19315 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
19316 "the chosen values."
19317 msgstr ""
19318
19319 #. type: textblock
19320 #: ../fuse/guestmount.pod:243
19321 msgid ""
19322 "Add devices and mount everything read-only.  Also disallow writes and make "
19323 "the disk appear read-only to FUSE."
19324 msgstr ""
19325
19326 #. type: textblock
19327 #: ../fuse/guestmount.pod:246
19328 msgid ""
19329 "This is highly recommended if you are not going to edit the guest disk.  If "
19330 "the guest is running and this option is I<not> supplied, then there is a "
19331 "strong risk of disk corruption in the guest.  We try to prevent this from "
19332 "happening, but it is not always possible."
19333 msgstr ""
19334
19335 #. type: textblock
19336 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
19337 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19338 msgstr ""
19339
19340 #. type: textblock
19341 #: ../fuse/guestmount.pod:255
19342 msgid "Enable SELinux support for the guest."
19343 msgstr ""
19344
19345 #. type: textblock
19346 #: ../fuse/guestmount.pod:261
19347 msgid "Enable verbose messages from underlying libguestfs."
19348 msgstr ""
19349
19350 #. type: textblock
19351 #: ../fuse/guestmount.pod:267
19352 msgid "Display the program version and exit."
19353 msgstr ""
19354
19355 #. type: textblock
19356 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
19357 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
19358 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19359 msgstr ""
19360
19361 #. type: =item
19362 #: ../fuse/guestmount.pod:280
19363 msgid "B<--trace>"
19364 msgstr ""
19365
19366 #. type: textblock
19367 #: ../fuse/guestmount.pod:282
19368 msgid "Trace libguestfs calls and entry into each FUSE function."
19369 msgstr ""
19370
19371 #. type: textblock
19372 #: ../fuse/guestmount.pod:284
19373 msgid "This also stops the daemon from forking into the background."
19374 msgstr ""
19375
19376 #. type: textblock
19377 #: ../fuse/guestmount.pod:305
19378 msgid ""
19379 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
19380 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
19381 "net/>."
19382 msgstr ""
19383
19384 #. type: textblock
19385 #: ../fuse/guestmount.pod:320
19386 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
19387 msgstr ""
19388
19389 #. type: textblock
19390 #: ../inspector/virt-inspector.pod:5
19391 msgid ""
19392 "virt-inspector - Display operating system version and other information "
19393 "about a virtual machine"
19394 msgstr ""
19395
19396 #. type: verbatim
19397 #: ../inspector/virt-inspector.pod:9
19398 #, no-wrap
19399 msgid ""
19400 " virt-inspector [--options] -d domname\n"
19401 "\n"
19402 msgstr ""
19403
19404 #. type: verbatim
19405 #: ../inspector/virt-inspector.pod:11
19406 #, no-wrap
19407 msgid ""
19408 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
19409 "\n"
19410 msgstr ""
19411
19412 #. type: verbatim
19413 #: ../inspector/virt-inspector.pod:15
19414 #, no-wrap
19415 msgid ""
19416 " virt-inspector domname\n"
19417 "\n"
19418 msgstr ""
19419
19420 #. type: verbatim
19421 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
19422 #, no-wrap
19423 msgid ""
19424 " virt-inspector disk.img [disk.img ...]\n"
19425 "\n"
19426 msgstr ""
19427
19428 #. type: textblock
19429 #: ../inspector/virt-inspector.pod:21
19430 msgid ""
19431 "B<virt-inspector> examines a virtual machine or disk image and tries to "
19432 "determine the version of the operating system and other information about "
19433 "the virtual machine."
19434 msgstr ""
19435
19436 #. type: textblock
19437 #: ../inspector/virt-inspector.pod:25
19438 msgid "Virt-inspector produces XML output for feeding into other programs."
19439 msgstr ""
19440
19441 #. type: textblock
19442 #: ../inspector/virt-inspector.pod:27
19443 msgid ""
19444 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
19445 "the libvirt domain (see: C<virsh list --all>)."
19446 msgstr ""
19447
19448 #. type: textblock
19449 #: ../inspector/virt-inspector.pod:30
19450 msgid ""
19451 "You can also run virt-inspector directly on disk images from a single "
19452 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
19453 "has several block devices, in which case you should list several I<-a> "
19454 "options one after another, with the first corresponding to the guest's C</"
19455 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
19456 msgstr ""
19457
19458 #. type: textblock
19459 #: ../inspector/virt-inspector.pod:37
19460 msgid ""
19461 "You can also run virt-inspector on install disks, live CDs, bootable USB "
19462 "keys and similar."
19463 msgstr ""
19464
19465 #. type: textblock
19466 #: ../inspector/virt-inspector.pod:40
19467 msgid ""
19468 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
19469 "inspect several virtual machines, you have to run virt-inspector several "
19470 "times (for example, from a shell script for-loop)."
19471 msgstr ""
19472
19473 #. type: textblock
19474 #: ../inspector/virt-inspector.pod:45
19475 msgid ""
19476 "Because virt-inspector needs direct access to guest images, it won't "
19477 "normally work over remote libvirt connections."
19478 msgstr ""
19479
19480 #. type: textblock
19481 #: ../inspector/virt-inspector.pod:48
19482 msgid ""
19483 "All of the information available from virt-inspector is also available "
19484 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
19485 "The same information can also be fetched using guestfish or via libguestfs "
19486 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
19487 "WITH OTHER PROGRAMMING LANGUAGES>)."
19488 msgstr ""
19489
19490 #. type: textblock
19491 #: ../inspector/virt-inspector.pod:81
19492 msgid ""
19493 "Libvirt is only used if you specify a C<domname> on the command line.  If "
19494 "you specify guest block devices directly (I<-a>), then libvirt is not used "
19495 "at all."
19496 msgstr ""
19497
19498 #. type: textblock
19499 #: ../inspector/virt-inspector.pod:94
19500 msgid ""
19501 "When prompting for keys and passphrases, virt-inspector normally turns "
19502 "echoing off so you cannot see what you are typing.  If you are not worried "
19503 "about Tempest attacks and there is no one else in the room you can specify "
19504 "this flag to see what you are typing."
19505 msgstr ""
19506
19507 #. type: textblock
19508 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
19509 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
19510 #: ../tools/virt-win-reg.pl:144
19511 msgid ""
19512 "Specify the format of disk images given on the command line.  If this is "
19513 "omitted then the format is autodetected from the content of the disk image."
19514 msgstr ""
19515
19516 #. type: textblock
19517 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
19518 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
19519 #: ../tools/virt-win-reg.pl:148
19520 msgid ""
19521 "If disk images are requested from libvirt, then this program asks libvirt "
19522 "for this information.  In this case, the value of the format parameter is "
19523 "ignored."
19524 msgstr ""
19525
19526 #. type: textblock
19527 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
19528 #: ../resize/virt-resize.pod:400 ../tools/virt-list-filesystems.pl:101
19529 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
19530 #: ../tools/virt-win-reg.pl:152
19531 msgid ""
19532 "If working with untrusted raw-format guest disk images, you should ensure "
19533 "the format is always specified."
19534 msgstr ""
19535
19536 #. type: textblock
19537 #: ../inspector/virt-inspector.pod:139
19538 msgid "Previous versions of virt-inspector allowed you to write either:"
19539 msgstr ""
19540
19541 #. type: verbatim
19542 #: ../inspector/virt-inspector.pod:145
19543 #, no-wrap
19544 msgid ""
19545 " virt-inspector guestname\n"
19546 "\n"
19547 msgstr ""
19548
19549 #. type: =head1
19550 #: ../inspector/virt-inspector.pod:153
19551 msgid "XML FORMAT"
19552 msgstr ""
19553
19554 #. type: textblock
19555 #: ../inspector/virt-inspector.pod:155
19556 msgid ""
19557 "The virt-inspector XML is described precisely in a RELAX NG schema file "
19558 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
19559 "just an overview."
19560 msgstr ""
19561
19562 #. type: textblock
19563 #: ../inspector/virt-inspector.pod:159
19564 msgid ""
19565 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
19566 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
19567 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
19568 "which is vanishingly rare in real world VMs."
19569 msgstr ""
19570
19571 #. type: =head2
19572 #: ../inspector/virt-inspector.pod:164
19573 msgid "E<lt>operatingsystemE<gt>"
19574 msgstr ""
19575
19576 #. type: textblock
19577 #: ../inspector/virt-inspector.pod:166
19578 msgid ""
19579 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
19580 "describe the operating system, its architecture, the descriptive \"product "
19581 "name\" string, the type of OS and so on, as in this example:"
19582 msgstr ""
19583
19584 #. type: verbatim
19585 #: ../inspector/virt-inspector.pod:170
19586 #, no-wrap
19587 msgid ""
19588 " <operatingsystems>\n"
19589 "   <operatingsystem>\n"
19590 "     <root>/dev/sda2</root>\n"
19591 "     <name>windows</name>\n"
19592 "     <arch>i386</arch>\n"
19593 "     <distro>windows</distro>\n"
19594 "     <product_name>Windows 7 Enterprise</product_name>\n"
19595 "     <product_variant>Client</product_variant>\n"
19596 "     <major_version>6</major_version>\n"
19597 "     <minor_version>1</minor_version>\n"
19598 "     <windows_systemroot>/Windows</windows_systemroot>\n"
19599 "     <format>installed</format>\n"
19600 "\n"
19601 msgstr ""
19602
19603 #. type: textblock
19604 #: ../inspector/virt-inspector.pod:183
19605 msgid ""
19606 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
19607 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
19608 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
19609 "architecture.  The other fields are fairly self-explanatory, but because "
19610 "these fields are taken directly from the libguestfs inspection API you can "
19611 "find precise information from L<guestfs(3)/INSPECTION>."
19612 msgstr ""
19613
19614 #. type: textblock
19615 #: ../inspector/virt-inspector.pod:191
19616 msgid ""
19617 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
19618 "of view of libguestfs (block devices may have completely different names "
19619 "inside the VM itself)."
19620 msgstr ""
19621
19622 #. type: =head2
19623 #: ../inspector/virt-inspector.pod:195
19624 msgid "E<lt>mountpointsE<gt>"
19625 msgstr ""
19626
19627 #. type: textblock
19628 #: ../inspector/virt-inspector.pod:197
19629 msgid ""
19630 "Un*x-like guests typically have multiple filesystems which are mounted at "
19631 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
19632 "element which looks like this:"
19633 msgstr ""
19634
19635 #. type: verbatim
19636 #: ../inspector/virt-inspector.pod:201
19637 #, no-wrap
19638 msgid ""
19639 " <operatingsystems>\n"
19640 "   <operatingsystem>\n"
19641 "     ...\n"
19642 "     <mountpoints>\n"
19643 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
19644 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
19645 "     </mountpoints>\n"
19646 "\n"
19647 msgstr ""
19648
19649 #. type: textblock
19650 #: ../inspector/virt-inspector.pod:209
19651 msgid ""
19652 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
19653 "and may have completely different names inside the guest.  Only mountable "
19654 "filesystems appear in this list, not things like swap devices."
19655 msgstr ""
19656
19657 #. type: =head2
19658 #: ../inspector/virt-inspector.pod:214
19659 msgid "E<lt>filesystemsE<gt>"
19660 msgstr ""
19661
19662 #. type: textblock
19663 #: ../inspector/virt-inspector.pod:216
19664 msgid ""
19665 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
19666 "filesystems belonging to the guest, including swap and empty partitions.  "
19667 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
19668 "this OS or shared with this OS and other OSes)."
19669 msgstr ""
19670
19671 #. type: textblock
19672 #: ../inspector/virt-inspector.pod:222
19673 msgid "You might see something like this:"
19674 msgstr ""
19675
19676 #. type: verbatim
19677 #: ../inspector/virt-inspector.pod:224
19678 #, no-wrap
19679 msgid ""
19680 " <operatingsystems>\n"
19681 "   <operatingsystem>\n"
19682 "     ...\n"
19683 "     <filesystems>\n"
19684 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19685 "         <type>ext4</type>\n"
19686 "         <label>Fedora-13-x86_64</label>\n"
19687 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
19688 "       </filesystem>\n"
19689 "\n"
19690 msgstr ""
19691
19692 #. type: textblock
19693 #: ../inspector/virt-inspector.pod:234
19694 msgid ""
19695 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
19696 "the label, and the UUID."
19697 msgstr ""
19698
19699 #. type: =head2
19700 #: ../inspector/virt-inspector.pod:237
19701 msgid "E<lt>applicationsE<gt>"
19702 msgstr ""
19703
19704 #. type: textblock
19705 #: ../inspector/virt-inspector.pod:239
19706 msgid ""
19707 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
19708 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
19709 "machine."
19710 msgstr ""
19711
19712 #. type: textblock
19713 #: ../inspector/virt-inspector.pod:243
19714 msgid ""
19715 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
19716 "Typical values would be C<rpm> and C<deb>."
19717 msgstr ""
19718
19719 #. type: textblock
19720 #: ../inspector/virt-inspector.pod:246
19721 msgid ""
19722 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
19723 "Typical values include C<yum>, C<up2date> and C<apt>"
19724 msgstr ""
19725
19726 #. type: textblock
19727 #: ../inspector/virt-inspector.pod:249
19728 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
19729 msgstr ""
19730
19731 #. type: verbatim
19732 #: ../inspector/virt-inspector.pod:252
19733 #, no-wrap
19734 msgid ""
19735 " <operatingsystems>\n"
19736 "   <operatingsystem>\n"
19737 "     ...\n"
19738 "     <applications>\n"
19739 "       <application>\n"
19740 "         <name>coreutils</name>\n"
19741 "         <version>8.5</version>\n"
19742 "         <release>1</release>\n"
19743 "       </application>\n"
19744 "\n"
19745 msgstr ""
19746
19747 #. type: textblock
19748 #: ../inspector/virt-inspector.pod:262
19749 msgid ""
19750 "The version and release fields may not be available for some types guests.  "
19751 "Other fields are possible, see L<guestfs(3)/"
19752 "guestfs_inspect_list_applications>."
19753 msgstr ""
19754
19755 #. type: =head2
19756 #: ../inspector/virt-inspector.pod:266
19757 msgid "E<lt>drive_mappingsE<gt>"
19758 msgstr ""
19759
19760 #. type: textblock
19761 #: ../inspector/virt-inspector.pod:268
19762 msgid ""
19763 "For operating systems like Windows which use drive letters, virt-inspector "
19764 "is able to find out how drive letters map to filesystems."
19765 msgstr ""
19766
19767 #. type: verbatim
19768 #: ../inspector/virt-inspector.pod:272
19769 #, no-wrap
19770 msgid ""
19771 " <operatingsystems>\n"
19772 "   <operatingsystem>\n"
19773 "     ...\n"
19774 "     <drive_mappings>\n"
19775 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
19776 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
19777 "     </drive_mappings>\n"
19778 "\n"
19779 msgstr ""
19780
19781 #. type: textblock
19782 #: ../inspector/virt-inspector.pod:280
19783 msgid ""
19784 "In the example above, drive C maps to the filesystem on the second partition "
19785 "on the first disk, and drive E maps to the filesystem on the first partition "
19786 "on the second disk."
19787 msgstr ""
19788
19789 #. type: textblock
19790 #: ../inspector/virt-inspector.pod:284
19791 msgid ""
19792 "Note that this only covers permanent local filesystem mappings, not things "
19793 "like network shares.  Furthermore NTFS volume mount points may not be listed "
19794 "here."
19795 msgstr ""
19796
19797 #. type: =head2
19798 #: ../inspector/virt-inspector.pod:288
19799 msgid "E<lt>iconE<gt>"
19800 msgstr ""
19801
19802 #. type: textblock
19803 #: ../inspector/virt-inspector.pod:290
19804 msgid ""
19805 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
19806 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
19807 "very large and high quality."
19808 msgstr ""
19809
19810 #. type: verbatim
19811 #: ../inspector/virt-inspector.pod:294
19812 #, no-wrap
19813 msgid ""
19814 " <operatingsystems>\n"
19815 "   <operatingsystem>\n"
19816 "     ...\n"
19817 "     <icon>\n"
19818 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
19819 "       [... many lines of base64 data ...]\n"
19820 "     </icon>\n"
19821 "\n"
19822 msgstr ""
19823
19824 #. type: textblock
19825 #: ../inspector/virt-inspector.pod:302
19826 msgid ""
19827 "To display the icon, you have to extract it and convert the base64 data back "
19828 "to a binary file.  Use an XPath query or simply an editor to extract the "
19829 "data, then use the coreutils L<base64(1)> program to do the conversion back "
19830 "to a PNG file:"
19831 msgstr ""
19832
19833 #. type: verbatim
19834 #: ../inspector/virt-inspector.pod:307
19835 #, no-wrap
19836 msgid ""
19837 " base64 -i -d < icon.data > icon.png\n"
19838 "\n"
19839 msgstr ""
19840
19841 #. type: =head2
19842 #: ../inspector/virt-inspector.pod:309
19843 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
19844 msgstr ""
19845
19846 #. type: textblock
19847 #: ../inspector/virt-inspector.pod:311
19848 msgid ""
19849 "Virt-inspector can detect some operating system installers on install disks, "
19850 "live CDs, bootable USB keys and more."
19851 msgstr ""
19852
19853 #. type: textblock
19854 #: ../inspector/virt-inspector.pod:314
19855 msgid ""
19856 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
19857 "fields may be present to indicate a live CD, network installer, or one part "
19858 "of a multipart CD.  For example:"
19859 msgstr ""
19860
19861 #. type: verbatim
19862 #: ../inspector/virt-inspector.pod:318
19863 #, no-wrap
19864 msgid ""
19865 " <operatingsystems>\n"
19866 "   <operatingsystem>\n"
19867 "     <root>/dev/sda</root>\n"
19868 "     <name>linux</name>\n"
19869 "     <arch>i386</arch>\n"
19870 "     <distro>ubuntu</distro>\n"
19871 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
19872 "     <major_version>10</major_version>\n"
19873 "     <minor_version>10</minor_version>\n"
19874 "     <format>installer</format>\n"
19875 "     <live/>\n"
19876 "\n"
19877 msgstr ""
19878
19879 #. type: =head1
19880 #: ../inspector/virt-inspector.pod:330
19881 msgid "USING XPATH"
19882 msgstr ""
19883
19884 #. type: textblock
19885 #: ../inspector/virt-inspector.pod:332
19886 msgid ""
19887 "You can use the XPath query language, and/or the xpath tool, in order to "
19888 "select parts of the XML."
19889 msgstr ""
19890
19891 #. type: verbatim
19892 #: ../inspector/virt-inspector.pod:337
19893 #, no-wrap
19894 msgid ""
19895 " $ virt-inspector -d Guest | xpath //filesystems\n"
19896 " Found 1 nodes:\n"
19897 " -- NODE --\n"
19898 " <filesystems>\n"
19899 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19900 "        <type>ext4</type>\n"
19901 " [etc]\n"
19902 "\n"
19903 msgstr ""
19904
19905 #. type: verbatim
19906 #: ../inspector/virt-inspector.pod:345
19907 #, no-wrap
19908 msgid ""
19909 " $ virt-inspector -d Guest | \\\n"
19910 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
19911 " Query didn't return a nodeset. Value: ext4\n"
19912 "\n"
19913 msgstr ""
19914
19915 #. type: =head1
19916 #: ../inspector/virt-inspector.pod:356
19917 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
19918 msgstr ""
19919
19920 #. type: textblock
19921 #: ../inspector/virt-inspector.pod:358
19922 msgid ""
19923 "Early versions of libguestfs shipped with a different virt-inspector program "
19924 "written in Perl (the current version is written in C).  The XML output of "
19925 "the Perl virt-inspector was different and it could also output in other "
19926 "formats like text."
19927 msgstr ""
19928
19929 #. type: textblock
19930 #: ../inspector/virt-inspector.pod:363
19931 msgid ""
19932 "The old virt-inspector is no longer supported or shipped with libguestfs."
19933 msgstr ""
19934
19935 #. type: textblock
19936 #: ../inspector/virt-inspector.pod:366
19937 msgid ""
19938 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
19939 "versions of virt-inspector with different names:"
19940 msgstr ""
19941
19942 #. type: verbatim
19943 #: ../inspector/virt-inspector.pod:369
19944 #, no-wrap
19945 msgid ""
19946 " virt-inspector     Old Perl version.\n"
19947 " virt-inspector2    New C version.\n"
19948 "\n"
19949 msgstr ""
19950
19951 #. type: textblock
19952 #: ../inspector/virt-inspector.pod:374
19953 msgid ""
19954 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
19955 ">, L<http://libguestfs.org/>."
19956 msgstr ""
19957
19958 #. type: textblock
19959 #: ../inspector/virt-inspector.pod:390
19960 msgid "Matthew Booth L<mbooth@redhat.com>"
19961 msgstr ""
19962
19963 #. type: textblock
19964 #: ../java/examples/guestfs-java.pod:5
19965 msgid "guestfs-java - How to use libguestfs from Java"
19966 msgstr ""
19967
19968 #. type: verbatim
19969 #: ../java/examples/guestfs-java.pod:9
19970 #, no-wrap
19971 msgid ""
19972 " import com.redhat.et.libguestfs.*;\n"
19973 " \n"
19974 msgstr ""
19975
19976 #. type: verbatim
19977 #: ../java/examples/guestfs-java.pod:11
19978 #, no-wrap
19979 msgid ""
19980 " GuestFS g = new GuestFS ();\n"
19981 " g.add_drive_opts (\"disk.img\", null);\n"
19982 " g.launch ();\n"
19983 "\n"
19984 msgstr ""
19985
19986 #. type: textblock
19987 #: ../java/examples/guestfs-java.pod:17
19988 msgid ""
19989 "This manual page documents how to call libguestfs from the Java programming "
19990 "language.  This page just documents the differences from the C API and gives "
19991 "some examples.  If you are not familiar with using libguestfs, you also need "
19992 "to read L<guestfs(3)>."
19993 msgstr ""
19994
19995 #. type: =head2
19996 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
19997 msgid "CLOSING THE HANDLE"
19998 msgstr ""
19999
20000 #. type: textblock
20001 #: ../java/examples/guestfs-java.pod:24
20002 msgid ""
20003 "The handle is closed when it is reaped by the garbage collector.  Because "
20004 "libguestfs handles include a lot of state, it is also possible to close (and "
20005 "hence free) them explicitly by calling the C<close> method."
20006 msgstr ""
20007
20008 #. type: =head2
20009 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
20010 #: ../python/examples/guestfs-python.pod:21
20011 #: ../ruby/examples/guestfs-ruby.pod:22
20012 msgid "EXCEPTIONS"
20013 msgstr ""
20014
20015 #. type: textblock
20016 #: ../java/examples/guestfs-java.pod:31
20017 msgid ""
20018 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20019 "exception.  This has a single parameter which is the error message (a "
20020 "C<String>)."
20021 msgstr ""
20022
20023 #. type: textblock
20024 #: ../java/examples/guestfs-java.pod:35
20025 msgid "Calling any method on a closed handle raises the same exception."
20026 msgstr ""
20027
20028 #. type: textblock
20029 #: ../java/examples/guestfs-java.pod:47
20030 msgid ""
20031 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
20032 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20033 "libguestfs.org/>, L<http://caml.inria.fr/>."
20034 msgstr ""
20035
20036 #. type: textblock
20037 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
20038 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
20039 msgstr ""
20040
20041 #. type: textblock
20042 #: ../ocaml/examples/guestfs-ocaml.pod:5
20043 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
20044 msgstr ""
20045
20046 #. type: textblock
20047 #: ../ocaml/examples/guestfs-ocaml.pod:9
20048 msgid "Module style:"
20049 msgstr ""
20050
20051 #. type: verbatim
20052 #: ../ocaml/examples/guestfs-ocaml.pod:11
20053 #, no-wrap
20054 msgid ""
20055 " let g = Guestfs.create () in\n"
20056 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20057 " Guestfs.launch g;\n"
20058 "\n"
20059 msgstr ""
20060
20061 #. type: textblock
20062 #: ../ocaml/examples/guestfs-ocaml.pod:15
20063 msgid "Object-oriented style:"
20064 msgstr ""
20065
20066 #. type: verbatim
20067 #: ../ocaml/examples/guestfs-ocaml.pod:17
20068 #, no-wrap
20069 msgid ""
20070 " let g = new Guestfs.guestfs () in\n"
20071 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20072 " g#launch ();\n"
20073 "\n"
20074 msgstr ""
20075
20076 #. type: verbatim
20077 #: ../ocaml/examples/guestfs-ocaml.pod:21
20078 #, no-wrap
20079 msgid ""
20080 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
20081 "or:\n"
20082 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
20083 "\n"
20084 msgstr ""
20085
20086 #. type: textblock
20087 #: ../ocaml/examples/guestfs-ocaml.pod:27
20088 msgid ""
20089 "This manual page documents how to call libguestfs from the OCaml programming "
20090 "language.  This page just documents the differences from the C API and gives "
20091 "some examples.  If you are not familiar with using libguestfs, you also need "
20092 "to read L<guestfs(3)>."
20093 msgstr ""
20094
20095 #. type: =head2
20096 #: ../ocaml/examples/guestfs-ocaml.pod:32
20097 msgid "PROGRAMMING STYLES"
20098 msgstr ""
20099
20100 #. type: textblock
20101 #: ../ocaml/examples/guestfs-ocaml.pod:34
20102 msgid ""
20103 "There are two different programming styles supported by the OCaml bindings.  "
20104 "You can use a module style, with each C function mapped to an OCaml function:"
20105 msgstr ""
20106
20107 #. type: verbatim
20108 #: ../ocaml/examples/guestfs-ocaml.pod:38
20109 #, no-wrap
20110 msgid ""
20111 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
20112 "\n"
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../ocaml/examples/guestfs-ocaml.pod:40
20117 msgid "becomes:"
20118 msgstr ""
20119
20120 #. type: verbatim
20121 #: ../ocaml/examples/guestfs-ocaml.pod:42
20122 #, no-wrap
20123 msgid ""
20124 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
20125 "\n"
20126 msgstr ""
20127
20128 #. type: textblock
20129 #: ../ocaml/examples/guestfs-ocaml.pod:44
20130 msgid ""
20131 "Alternately you can use an object-oriented style, calling methods on the "
20132 "class C<Guestfs.guestfs>:"
20133 msgstr ""
20134
20135 #. type: verbatim
20136 #: ../ocaml/examples/guestfs-ocaml.pod:47
20137 #, no-wrap
20138 msgid ""
20139 " method set_verbose : bool -> unit\n"
20140 "\n"
20141 msgstr ""
20142
20143 #. type: textblock
20144 #: ../ocaml/examples/guestfs-ocaml.pod:49
20145 msgid ""
20146 "The object-oriented style is usually briefer, and the minor performance "
20147 "penalty isn't noticable in the general overhead of performing libguestfs "
20148 "functions."
20149 msgstr ""
20150
20151 #. type: textblock
20152 #: ../ocaml/examples/guestfs-ocaml.pod:55
20153 msgid ""
20154 "The handle is closed when it is reaped by the garbage collector.  Because "
20155 "libguestfs handles include a lot of state, it is also possible to close (and "
20156 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
20157 "method."
20158 msgstr ""
20159
20160 #. type: textblock
20161 #: ../ocaml/examples/guestfs-ocaml.pod:62
20162 msgid ""
20163 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
20164 "exception.  This has a single parameter which is the error message (a "
20165 "string)."
20166 msgstr ""
20167
20168 #. type: textblock
20169 #: ../ocaml/examples/guestfs-ocaml.pod:66
20170 msgid ""
20171 "Calling any function/method on a closed handle raises C<Guestfs."
20172 "Handle_closed>.  The single parameter is the name of the function that you "
20173 "called."
20174 msgstr ""
20175
20176 #. type: textblock
20177 #: ../ocaml/examples/guestfs-ocaml.pod:80
20178 msgid ""
20179 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
20180 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20181 "libguestfs.org/>, L<http://caml.inria.fr/>."
20182 msgstr ""
20183
20184 #. type: textblock
20185 #: ../perl/examples/guestfs-perl.pod:5
20186 msgid "guestfs-perl - How to use libguestfs from Perl"
20187 msgstr ""
20188
20189 #. type: verbatim
20190 #: ../perl/examples/guestfs-perl.pod:9
20191 #, no-wrap
20192 msgid ""
20193 " use Sys::Guestfs;\n"
20194 " \n"
20195 msgstr ""
20196
20197 #. type: verbatim
20198 #: ../perl/examples/guestfs-perl.pod:11
20199 #, no-wrap
20200 msgid ""
20201 " my $h = Sys::Guestfs->new ();\n"
20202 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
20203 " $h->launch ();\n"
20204 " $h->mount_options ('', '/dev/sda1', '/');\n"
20205 " $h->touch ('/hello');\n"
20206 " $h->sync ();\n"
20207 "\n"
20208 msgstr ""
20209
20210 #. type: textblock
20211 #: ../perl/examples/guestfs-perl.pod:20
20212 msgid ""
20213 "This manual page documents how to call libguestfs from the Perl programming "
20214 "language.  This page just documents the differences from the C API and gives "
20215 "some examples.  If you are not familiar with using libguestfs, you also need "
20216 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
20217 msgstr ""
20218
20219 #. type: =head2
20220 #: ../perl/examples/guestfs-perl.pod:26
20221 msgid "ERRORS"
20222 msgstr ""
20223
20224 #. type: textblock
20225 #: ../perl/examples/guestfs-perl.pod:28
20226 msgid ""
20227 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
20228 ">)."
20229 msgstr ""
20230
20231 #. type: textblock
20232 #: ../perl/examples/guestfs-perl.pod:41
20233 msgid ""
20234 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
20235 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
20236 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20237 msgstr ""
20238
20239 #. type: textblock
20240 #: ../python/examples/guestfs-python.pod:5
20241 msgid "guestfs-python - How to use libguestfs from Python"
20242 msgstr ""
20243
20244 #. type: verbatim
20245 #: ../python/examples/guestfs-python.pod:9
20246 #, no-wrap
20247 msgid ""
20248 " import guestfs\n"
20249 " g = guestfs.GuestFS ()\n"
20250 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
20251 " g.launch\n"
20252 "\n"
20253 msgstr ""
20254
20255 #. type: textblock
20256 #: ../python/examples/guestfs-python.pod:16
20257 msgid ""
20258 "This manual page documents how to call libguestfs from the Python "
20259 "programming language.  This page just documents the differences from the C "
20260 "API and gives some examples.  If you are not familiar with using libguestfs, "
20261 "you also need to read L<guestfs(3)>."
20262 msgstr ""
20263
20264 #. type: textblock
20265 #: ../python/examples/guestfs-python.pod:23
20266 msgid ""
20267 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
20268 "single string argument which is the error message."
20269 msgstr ""
20270
20271 #. type: =head2
20272 #: ../python/examples/guestfs-python.pod:26
20273 msgid "MORE DOCUMENTATION"
20274 msgstr ""
20275
20276 #. type: textblock
20277 #: ../python/examples/guestfs-python.pod:28
20278 msgid "Type:"
20279 msgstr ""
20280
20281 #. type: verbatim
20282 #: ../python/examples/guestfs-python.pod:30
20283 #, no-wrap
20284 msgid ""
20285 " $ python\n"
20286 " >>> import guestfs\n"
20287 " >>> help (guestfs)\n"
20288 "\n"
20289 msgstr ""
20290
20291 #. type: textblock
20292 #: ../python/examples/guestfs-python.pod:44
20293 msgid ""
20294 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
20295 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20296 "libguestfs.org/>."
20297 msgstr ""
20298
20299 #. type: textblock
20300 #: ../rescue/virt-rescue.pod:5
20301 msgid "virt-rescue - Run a rescue shell on a virtual machine"
20302 msgstr ""
20303
20304 #. type: verbatim
20305 #: ../rescue/virt-rescue.pod:9
20306 #, no-wrap
20307 msgid ""
20308 " virt-rescue [--options] -d domname\n"
20309 "\n"
20310 msgstr ""
20311
20312 #. type: verbatim
20313 #: ../rescue/virt-rescue.pod:11
20314 #, no-wrap
20315 msgid ""
20316 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
20317 "\n"
20318 msgstr ""
20319
20320 #. type: verbatim
20321 #: ../rescue/virt-rescue.pod:15
20322 #, no-wrap
20323 msgid ""
20324 " virt-rescue [--options] domname\n"
20325 "\n"
20326 msgstr ""
20327
20328 #. type: verbatim
20329 #: ../rescue/virt-rescue.pod:17
20330 #, no-wrap
20331 msgid ""
20332 " virt-rescue [--options] disk.img [disk.img ...]\n"
20333 "\n"
20334 msgstr ""
20335
20336 #. type: textblock
20337 #: ../rescue/virt-rescue.pod:21
20338 msgid ""
20339 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
20340 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
20341 "you from doing this, but doesn't catch all cases."
20342 msgstr ""
20343
20344 #. type: textblock
20345 #: ../rescue/virt-rescue.pod:25
20346 msgid ""
20347 "However if you use the I<--ro> (read only) option, then you can attach a "
20348 "shell to a live virtual machine.  The results might be strange or "
20349 "inconsistent at times but you won't get disk corruption."
20350 msgstr ""
20351
20352 #. type: textblock
20353 #: ../rescue/virt-rescue.pod:31
20354 msgid ""
20355 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
20356 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
20357 "recovery tools which you can use to examine or rescue a virtual machine or "
20358 "disk image."
20359 msgstr ""
20360
20361 #. type: textblock
20362 #: ../rescue/virt-rescue.pod:36
20363 msgid ""
20364 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
20365 "on disk image(s):"
20366 msgstr ""
20367
20368 #. type: verbatim
20369 #: ../rescue/virt-rescue.pod:39
20370 #, no-wrap
20371 msgid ""
20372 " virt-rescue -d GuestName\n"
20373 "\n"
20374 msgstr ""
20375
20376 #. type: verbatim
20377 #: ../rescue/virt-rescue.pod:41
20378 #, no-wrap
20379 msgid ""
20380 " virt-rescue --ro -a /path/to/disk.img\n"
20381 "\n"
20382 msgstr ""
20383
20384 #. type: verbatim
20385 #: ../rescue/virt-rescue.pod:43
20386 #, no-wrap
20387 msgid ""
20388 " virt-rescue -a /dev/sdc\n"
20389 "\n"
20390 msgstr ""
20391
20392 #. type: textblock
20393 #: ../rescue/virt-rescue.pod:45
20394 msgid "For live VMs you I<must> use the --ro option."
20395 msgstr ""
20396
20397 #. type: textblock
20398 #: ../rescue/virt-rescue.pod:47
20399 msgid ""
20400 "When you run virt-rescue on a virtual machine or disk image, you are placed "
20401 "in an interactive bash shell where you can use many ordinary Linux "
20402 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
20403 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
20404 "is an empty directory called C</sysroot> where you can mount filesystems."
20405 msgstr ""
20406
20407 #. type: textblock
20408 #: ../rescue/virt-rescue.pod:54
20409 msgid ""
20410 "In the example below, we list logical volumes, then choose one to mount "
20411 "under C</sysroot>:"
20412 msgstr ""
20413
20414 #. type: verbatim
20415 #: ../rescue/virt-rescue.pod:57
20416 #, no-wrap
20417 msgid ""
20418 " ><rescue> lvs\n"
20419 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
20420 " lv_root vg_f11x64 -wi-a-   8.83G\n"
20421 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
20422 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
20423 " ><rescue> ls /sysroot\n"
20424 "\n"
20425 msgstr ""
20426
20427 #. type: textblock
20428 #: ../rescue/virt-rescue.pod:64
20429 msgid ""
20430 "If you don't know what filesystems are available on the virtual machine then "
20431 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
20432 msgstr ""
20433
20434 #. type: textblock
20435 #: ../rescue/virt-rescue.pod:70
20436 msgid ""
20437 "Virt-rescue can be used on I<any> disk image file or device, not just a "
20438 "virtual machine.  For example you can use it on a blank file if you want to "
20439 "partition that file (although we would recommend using L<guestfish(1)> "
20440 "instead as it is more suitable for this purpose).  You can even use virt-"
20441 "rescue on things like SD cards."
20442 msgstr ""
20443
20444 #. type: textblock
20445 #: ../rescue/virt-rescue.pod:76
20446 msgid ""
20447 "Virt-rescue does not require root.  You only need to run it as root if you "
20448 "need root to open the disk image."
20449 msgstr ""
20450
20451 #. type: textblock
20452 #: ../rescue/virt-rescue.pod:79
20453 msgid ""
20454 "This tool is just designed for quick interactive hacking on a virtual "
20455 "machine.  For more structured access to a virtual machine disk image, you "
20456 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
20457 "make scripted changes to guests, use L<guestfish(1)>."
20458 msgstr ""
20459
20460 #. type: =item
20461 #: ../rescue/virt-rescue.pod:103
20462 msgid "B<--append kernelopts>"
20463 msgstr ""
20464
20465 #. type: textblock
20466 #: ../rescue/virt-rescue.pod:105
20467 msgid "Pass additional options to the rescue kernel."
20468 msgstr ""
20469
20470 #. type: verbatim
20471 #: ../rescue/virt-rescue.pod:135
20472 #, no-wrap
20473 msgid ""
20474 " virt-rescue --format=raw -a disk.img\n"
20475 "\n"
20476 msgstr ""
20477
20478 #. type: verbatim
20479 #: ../rescue/virt-rescue.pod:139
20480 #, no-wrap
20481 msgid ""
20482 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
20483 "\n"
20484 msgstr ""
20485
20486 #. type: =item
20487 #: ../rescue/virt-rescue.pod:148
20488 msgid "B<-m MB>"
20489 msgstr ""
20490
20491 #. type: =item
20492 #: ../rescue/virt-rescue.pod:150
20493 msgid "B<--memsize MB>"
20494 msgstr ""
20495
20496 #. type: textblock
20497 #: ../rescue/virt-rescue.pod:152
20498 msgid ""
20499 "Change the amount of memory allocated to the rescue system.  The default is "
20500 "set by libguestfs and is small but adequate for running system tools.  The "
20501 "occasional program might need more memory.  The parameter is specified in "
20502 "megabytes."
20503 msgstr ""
20504
20505 #. type: =item
20506 #: ../rescue/virt-rescue.pod:157
20507 msgid "B<--network>"
20508 msgstr ""
20509
20510 #. type: textblock
20511 #: ../rescue/virt-rescue.pod:159
20512 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
20513 msgstr ""
20514
20515 #. type: textblock
20516 #: ../rescue/virt-rescue.pod:165
20517 msgid "Open the image read-only."
20518 msgstr ""
20519
20520 #. type: textblock
20521 #: ../rescue/virt-rescue.pod:175
20522 msgid ""
20523 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
20524 "SELINUX> before using this option."
20525 msgstr ""
20526
20527 #. type: textblock
20528 #: ../rescue/virt-rescue.pod:194
20529 msgid ""
20530 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
20531 "are done read-write."
20532 msgstr ""
20533
20534 #. type: textblock
20535 #: ../rescue/virt-rescue.pod:207
20536 msgid "Previous versions of virt-rescue allowed you to write either:"
20537 msgstr ""
20538
20539 #. type: verbatim
20540 #: ../rescue/virt-rescue.pod:209
20541 #, no-wrap
20542 msgid ""
20543 " virt-rescue disk.img [disk.img ...]\n"
20544 "\n"
20545 msgstr ""
20546
20547 #. type: verbatim
20548 #: ../rescue/virt-rescue.pod:213
20549 #, no-wrap
20550 msgid ""
20551 " virt-rescue guestname\n"
20552 "\n"
20553 msgstr ""
20554
20555 #. type: =head1
20556 #: ../rescue/virt-rescue.pod:221
20557 msgid "NETWORK"
20558 msgstr ""
20559
20560 #. type: textblock
20561 #: ../rescue/virt-rescue.pod:223
20562 msgid ""
20563 "Adding the I<--network> option enables QEMU user networking in the rescue "
20564 "appliance.  There are some differences between user networking and ordinary "
20565 "networking:"
20566 msgstr ""
20567
20568 #. type: =item
20569 #: ../rescue/virt-rescue.pod:229
20570 msgid "ping does not work"
20571 msgstr ""
20572
20573 #. type: textblock
20574 #: ../rescue/virt-rescue.pod:231
20575 msgid ""
20576 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
20577 "send the ping packets, and because virt-rescue must be able to run as non-"
20578 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
20579 "The ping command will appear to resolve addresses but will not be able to "
20580 "send or receive any packets.  This does not mean that the network is not "
20581 "working."
20582 msgstr ""
20583
20584 #. type: =item
20585 #: ../rescue/virt-rescue.pod:238
20586 msgid "cannot receive connections"
20587 msgstr ""
20588
20589 #. type: textblock
20590 #: ../rescue/virt-rescue.pod:240
20591 msgid "QEMU user networking cannot receive incoming connections."
20592 msgstr ""
20593
20594 #. type: =item
20595 #: ../rescue/virt-rescue.pod:242
20596 msgid "making TCP connections"
20597 msgstr ""
20598
20599 #. type: textblock
20600 #: ../rescue/virt-rescue.pod:244
20601 msgid ""
20602 "The virt-rescue appliance needs to be small and so does not include many "
20603 "network tools.  In particular there is no L<telnet(1)> command.  You can "
20604 "make TCP connections from the shell using the magical C</dev/tcp/"
20605 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
20606 msgstr ""
20607
20608 #. type: verbatim
20609 #: ../rescue/virt-rescue.pod:249
20610 #, no-wrap
20611 msgid ""
20612 " exec 3<>/dev/tcp/redhat.com/80\n"
20613 " echo \"GET /\" >&3\n"
20614 " cat <&3\n"
20615 "\n"
20616 msgstr ""
20617
20618 #. type: textblock
20619 #: ../rescue/virt-rescue.pod:253
20620 msgid "See L<bash(1)> for more details."
20621 msgstr ""
20622
20623 #. type: textblock
20624 #: ../rescue/virt-rescue.pod:259
20625 msgid ""
20626 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
20627 "ENVIRONMENT VARIABLES> for the complete list."
20628 msgstr ""
20629
20630 #. type: textblock
20631 #: ../rescue/virt-rescue.pod:286
20632 msgid ""
20633 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
20634 "libguestfs.org/>."
20635 msgstr ""
20636
20637 #. type: textblock
20638 #: ../resize/virt-resize.pod:5
20639 msgid "virt-resize - Resize a virtual machine disk"
20640 msgstr ""
20641
20642 #. type: verbatim
20643 #: ../resize/virt-resize.pod:9
20644 #, no-wrap
20645 msgid ""
20646 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
20647 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
20648 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
20649 "\n"
20650 msgstr ""
20651
20652 #. type: textblock
20653 #: ../resize/virt-resize.pod:15
20654 msgid ""
20655 "Virt-resize is a tool which can resize a virtual machine disk, making it "
20656 "larger or smaller overall, and resizing or deleting any partitions contained "
20657 "within."
20658 msgstr ""
20659
20660 #. type: textblock
20661 #: ../resize/virt-resize.pod:19
20662 msgid ""
20663 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
20664 "not> be used on live virtual machines - for consistent results, shut the "
20665 "virtual machine down before resizing it."
20666 msgstr ""
20667
20668 #. type: textblock
20669 #: ../resize/virt-resize.pod:23
20670 msgid ""
20671 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
20672 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
20673 msgstr ""
20674
20675 #. type: =item
20676 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257
20677 #: ../src/guestfs.pod:1396 ../src/guestfs.pod:2466
20678 msgid "1."
20679 msgstr ""
20680
20681 #. type: textblock
20682 #: ../resize/virt-resize.pod:33
20683 msgid ""
20684 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
20685 "fill the extra 5GB of space."
20686 msgstr ""
20687
20688 #. type: verbatim
20689 #: ../resize/virt-resize.pod:36
20690 #, no-wrap
20691 msgid ""
20692 " virt-filesystems --long -h --all -a olddisk\n"
20693 " \n"
20694 msgstr ""
20695
20696 #. type: verbatim
20697 #: ../resize/virt-resize.pod:38
20698 #, no-wrap
20699 msgid ""
20700 " truncate -r olddisk newdisk\n"
20701 " truncate -s +5G newdisk\n"
20702 " \n"
20703 msgstr ""
20704
20705 #. type: verbatim
20706 #: ../resize/virt-resize.pod:41
20707 #, no-wrap
20708 msgid ""
20709 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
20710 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
20711 "\n"
20712 msgstr ""
20713
20714 #. type: =item
20715 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261
20716 #: ../src/guestfs.pod:1400 ../src/guestfs.pod:2491
20717 msgid "2."
20718 msgstr ""
20719
20720 #. type: textblock
20721 #: ../resize/virt-resize.pod:46
20722 msgid ""
20723 "As above, but make the /boot partition 200MB bigger, while giving the "
20724 "remaining space to /dev/sda2:"
20725 msgstr ""
20726
20727 #. type: verbatim
20728 #: ../resize/virt-resize.pod:49
20729 #, no-wrap
20730 msgid ""
20731 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20732 "   olddisk newdisk\n"
20733 "\n"
20734 msgstr ""
20735
20736 #. type: =item
20737 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1406
20738 msgid "3."
20739 msgstr ""
20740
20741 #. type: textblock
20742 #: ../resize/virt-resize.pod:54
20743 msgid ""
20744 "As in the first example, but expand a logical volume as the final step.  "
20745 "This is what you would typically use for Linux guests that use LVM:"
20746 msgstr ""
20747
20748 #. type: verbatim
20749 #: ../resize/virt-resize.pod:58
20750 #, no-wrap
20751 msgid ""
20752 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
20753 "   olddisk newdisk\n"
20754 "\n"
20755 msgstr ""
20756
20757 #. type: =item
20758 #: ../resize/virt-resize.pod:61
20759 msgid "4."
20760 msgstr ""
20761
20762 #. type: textblock
20763 #: ../resize/virt-resize.pod:63
20764 msgid ""
20765 "As in the first example, but the output format will be qcow2 instead of a "
20766 "raw disk:"
20767 msgstr ""
20768
20769 #. type: verbatim
20770 #: ../resize/virt-resize.pod:66
20771 #, no-wrap
20772 msgid ""
20773 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
20774 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
20775 "\n"
20776 msgstr ""
20777
20778 #. type: =head1
20779 #: ../resize/virt-resize.pod:71
20780 msgid "DETAILED USAGE"
20781 msgstr ""
20782
20783 #. type: =head2
20784 #: ../resize/virt-resize.pod:73
20785 msgid "EXPANDING A VIRTUAL MACHINE DISK"
20786 msgstr ""
20787
20788 #. type: =item
20789 #: ../resize/virt-resize.pod:77
20790 msgid "1. Shut down the virtual machine"
20791 msgstr ""
20792
20793 #. type: =item
20794 #: ../resize/virt-resize.pod:79
20795 msgid "2. Locate input disk image"
20796 msgstr ""
20797
20798 #. type: textblock
20799 #: ../resize/virt-resize.pod:81
20800 msgid ""
20801 "Locate the input disk image (ie. the file or device on the host containing "
20802 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
20803 "dumpxml> like this to find the disk image name:"
20804 msgstr ""
20805
20806 #. type: verbatim
20807 #: ../resize/virt-resize.pod:85
20808 #, no-wrap
20809 msgid ""
20810 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
20811 " Found 1 nodes:\n"
20812 " -- NODE --\n"
20813 " <source dev=\"/dev/vg/lv_guest\" />\n"
20814 "\n"
20815 msgstr ""
20816
20817 #. type: =item
20818 #: ../resize/virt-resize.pod:90
20819 msgid "3. Look at current sizing"
20820 msgstr ""
20821
20822 #. type: textblock
20823 #: ../resize/virt-resize.pod:92
20824 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
20825 msgstr ""
20826
20827 #. type: verbatim
20828 #: ../resize/virt-resize.pod:95
20829 #, no-wrap
20830 msgid ""
20831 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
20832 " Name       Type       Size  Parent\n"
20833 " /dev/sda1  partition  101M  /dev/sda\n"
20834 " /dev/sda2  partition  7.9G  /dev/sda\n"
20835 " /dev/sda   device     8.0G  -\n"
20836 "\n"
20837 msgstr ""
20838
20839 #. type: textblock
20840 #: ../resize/virt-resize.pod:101
20841 msgid ""
20842 "(This example is a virtual machine with an 8 GB disk which we would like to "
20843 "expand up to 10 GB)."
20844 msgstr ""
20845
20846 #. type: =item
20847 #: ../resize/virt-resize.pod:104
20848 msgid "4. Create output disk"
20849 msgstr ""
20850
20851 #. type: textblock
20852 #: ../resize/virt-resize.pod:106
20853 msgid ""
20854 "Virt-resize cannot do in-place disk modifications.  You have to have space "
20855 "to store the resized output disk."
20856 msgstr ""
20857
20858 #. type: textblock
20859 #: ../resize/virt-resize.pod:109
20860 msgid ""
20861 "To store the resized disk image in a file, create a file of a suitable size:"
20862 msgstr ""
20863
20864 #. type: verbatim
20865 #: ../resize/virt-resize.pod:112
20866 #, no-wrap
20867 msgid ""
20868 " # rm -f outdisk\n"
20869 " # truncate -s 10G outdisk\n"
20870 "\n"
20871 msgstr ""
20872
20873 #. type: textblock
20874 #: ../resize/virt-resize.pod:115
20875 msgid "Or use L<lvcreate(1)> to create a logical volume:"
20876 msgstr ""
20877
20878 #. type: verbatim
20879 #: ../resize/virt-resize.pod:117
20880 #, no-wrap
20881 msgid ""
20882 " # lvcreate -L 10G -n lv_name vg_name\n"
20883 "\n"
20884 msgstr ""
20885
20886 #. type: textblock
20887 #: ../resize/virt-resize.pod:119
20888 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
20889 msgstr ""
20890
20891 #. type: verbatim
20892 #: ../resize/virt-resize.pod:121
20893 #, no-wrap
20894 msgid ""
20895 " # virsh pool-list\n"
20896 " # virsh vol-create-as poolname newvol 10G\n"
20897 "\n"
20898 msgstr ""
20899
20900 #. type: =item
20901 #: ../resize/virt-resize.pod:124
20902 msgid "5. Resize"
20903 msgstr ""
20904
20905 #. type: textblock
20906 #: ../resize/virt-resize.pod:126
20907 msgid ""
20908 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
20909 "file) and the output disk.  The output disk is the one created in the "
20910 "previous step."
20911 msgstr ""
20912
20913 #. type: verbatim
20914 #: ../resize/virt-resize.pod:130
20915 #, no-wrap
20916 msgid ""
20917 " # virt-resize indisk outdisk\n"
20918 "\n"
20919 msgstr ""
20920
20921 #. type: textblock
20922 #: ../resize/virt-resize.pod:132
20923 msgid ""
20924 "This command just copies disk image C<indisk> to disk image C<outdisk> "
20925 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
20926 "larger, then an extra, empty partition is created at the end of the disk "
20927 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
20928 "error."
20929 msgstr ""
20930
20931 #. type: textblock
20932 #: ../resize/virt-resize.pod:138
20933 msgid ""
20934 "More realistically you'd want to expand existing partitions in the disk "
20935 "image by passing extra options (for the full list see the L</OPTIONS> "
20936 "section below)."
20937 msgstr ""
20938
20939 #. type: textblock
20940 #: ../resize/virt-resize.pod:142
20941 msgid ""
20942 "L</--expand> is the most useful option.  It expands the named partition "
20943 "within the disk to fill any extra space:"
20944 msgstr ""
20945
20946 #. type: verbatim
20947 #: ../resize/virt-resize.pod:145
20948 #, no-wrap
20949 msgid ""
20950 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
20951 "\n"
20952 msgstr ""
20953
20954 #. type: textblock
20955 #: ../resize/virt-resize.pod:147
20956 msgid ""
20957 "(In this case, an extra partition is I<not> created at the end of the disk, "
20958 "because there will be no unused space)."
20959 msgstr ""
20960
20961 #. type: textblock
20962 #: ../resize/virt-resize.pod:150
20963 msgid ""
20964 "L</--resize> is the other commonly used option.  The following would "
20965 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
20966 "rest of the available space:"
20967 msgstr ""
20968
20969 #. type: verbatim
20970 #: ../resize/virt-resize.pod:154
20971 #, no-wrap
20972 msgid ""
20973 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20974 "     indisk outdisk\n"
20975 "\n"
20976 msgstr ""
20977
20978 #. type: textblock
20979 #: ../resize/virt-resize.pod:157
20980 msgid ""
20981 "If the expanded partition in the image contains a filesystem or LVM PV, then "
20982 "if virt-resize knows how, it will resize the contents, the equivalent of "
20983 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
20984 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
20985 "filesystems, so you would have to online resize them after booting the guest."
20986 msgstr ""
20987
20988 #. type: textblock
20989 #: ../resize/virt-resize.pod:164
20990 msgid "Other options are covered below."
20991 msgstr ""
20992
20993 #. type: =item
20994 #: ../resize/virt-resize.pod:166
20995 msgid "6. Test"
20996 msgstr ""
20997
20998 #. type: textblock
20999 #: ../resize/virt-resize.pod:168
21000 msgid "Thoroughly test the new disk image I<before> discarding the old one."
21001 msgstr ""
21002
21003 #. type: textblock
21004 #: ../resize/virt-resize.pod:170
21005 msgid "If you are using libvirt, edit the XML to point at the new disk:"
21006 msgstr ""
21007
21008 #. type: verbatim
21009 #: ../resize/virt-resize.pod:172
21010 #, no-wrap
21011 msgid ""
21012 " # virsh edit guestname\n"
21013 "\n"
21014 msgstr ""
21015
21016 #. type: textblock
21017 #: ../resize/virt-resize.pod:174
21018 msgid ""
21019 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
21020 "html#elementsDisks>"
21021 msgstr ""
21022
21023 #. type: textblock
21024 #: ../resize/virt-resize.pod:177
21025 msgid "Then start up the domain with the new, resized disk:"
21026 msgstr ""
21027
21028 #. type: verbatim
21029 #: ../resize/virt-resize.pod:179
21030 #, no-wrap
21031 msgid ""
21032 " # virsh start guestname\n"
21033 "\n"
21034 msgstr ""
21035
21036 #. type: textblock
21037 #: ../resize/virt-resize.pod:181
21038 msgid ""
21039 "and check that it still works.  See also the L</NOTES> section below for "
21040 "additional information."
21041 msgstr ""
21042
21043 #. type: =item
21044 #: ../resize/virt-resize.pod:184
21045 msgid "7. Resize LVs etc inside the guest"
21046 msgstr ""
21047
21048 #. type: textblock
21049 #: ../resize/virt-resize.pod:186
21050 msgid "(This can also be done offline using L<guestfish(1)>)"
21051 msgstr ""
21052
21053 #. type: textblock
21054 #: ../resize/virt-resize.pod:188
21055 msgid ""
21056 "Once the guest has booted you should see the new space available, at least "
21057 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
21058 "may need to resize LVs inside PVs, and also resize filesystem types that "
21059 "virt-resize does not know how to expand."
21060 msgstr ""
21061
21062 #. type: =head2
21063 #: ../resize/virt-resize.pod:195
21064 msgid "SHRINKING A VIRTUAL MACHINE DISK"
21065 msgstr ""
21066
21067 #. type: textblock
21068 #: ../resize/virt-resize.pod:197
21069 msgid ""
21070 "Shrinking is somewhat more complex than expanding, and only an overview is "
21071 "given here."
21072 msgstr ""
21073
21074 #. type: textblock
21075 #: ../resize/virt-resize.pod:200
21076 msgid ""
21077 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
21078 "filesystems).  The user has to shrink content before passing the disk image "
21079 "to virt-resize, and virt-resize will check that the content has been shrunk "
21080 "properly."
21081 msgstr ""
21082
21083 #. type: textblock
21084 #: ../resize/virt-resize.pod:205
21085 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
21086 msgstr ""
21087
21088 #. type: textblock
21089 #: ../resize/virt-resize.pod:207
21090 msgid ""
21091 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
21092 "steps 3 and 4 above to allocate a new disk image."
21093 msgstr ""
21094
21095 #. type: textblock
21096 #: ../resize/virt-resize.pod:210
21097 msgid ""
21098 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
21099 msgstr ""
21100
21101 #. type: =head2
21102 #: ../resize/virt-resize.pod:213
21103 msgid "IGNORING OR DELETING PARTITIONS"
21104 msgstr ""
21105
21106 #. type: textblock
21107 #: ../resize/virt-resize.pod:215
21108 msgid ""
21109 "virt-resize also gives a convenient way to ignore or delete partitions when "
21110 "copying from the input disk to the output disk.  Ignoring a partition speeds "
21111 "up the copy where you don't care about the existing contents of a "
21112 "partition.  Deleting a partition removes it completely, but note that it "
21113 "also renumbers any partitions after the one which is deleted, which can "
21114 "leave some guests unbootable."
21115 msgstr ""
21116
21117 #. type: =head2
21118 #: ../resize/virt-resize.pod:222
21119 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
21120 msgstr ""
21121
21122 #. type: textblock
21123 #: ../resize/virt-resize.pod:224
21124 msgid ""
21125 "If the input disk is in qcow2 format, then you may prefer that the output is "
21126 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
21127 "the fly.  The output format is simply determined by the format of the empty "
21128 "output container that you provide.  Thus to create qcow2 output, use:"
21129 msgstr ""
21130
21131 #. type: verbatim
21132 #: ../resize/virt-resize.pod:230
21133 #, no-wrap
21134 msgid ""
21135 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
21136 "\n"
21137 msgstr ""
21138
21139 #. type: textblock
21140 #: ../resize/virt-resize.pod:232
21141 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
21142 msgstr ""
21143
21144 #. type: textblock
21145 #: ../resize/virt-resize.pod:234
21146 msgid "Similarly, to get non-sparse raw output use:"
21147 msgstr ""
21148
21149 #. type: verbatim
21150 #: ../resize/virt-resize.pod:236
21151 #, no-wrap
21152 msgid ""
21153 " fallocate -l size outdisk\n"
21154 "\n"
21155 msgstr ""
21156
21157 #. type: textblock
21158 #: ../resize/virt-resize.pod:238
21159 msgid ""
21160 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
21161 "dev/zero of=outdisk bs=1M count=..>)"
21162 msgstr ""
21163
21164 #. type: textblock
21165 #: ../resize/virt-resize.pod:247
21166 msgid "Display help."
21167 msgstr ""
21168
21169 #. type: =item
21170 #: ../resize/virt-resize.pod:249
21171 msgid "B<-d>"
21172 msgstr ""
21173
21174 #. type: =item
21175 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
21176 #: ../tools/virt-win-reg.pl:120
21177 msgid "B<--debug>"
21178 msgstr ""
21179
21180 #. type: textblock
21181 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
21182 msgid "Enable debugging messages."
21183 msgstr ""
21184
21185 #. type: =item
21186 #: ../resize/virt-resize.pod:255
21187 msgid "B<--delete part>"
21188 msgstr ""
21189
21190 #. type: textblock
21191 #: ../resize/virt-resize.pod:257
21192 msgid ""
21193 "Delete the named partition.  It would be more accurate to describe this as "
21194 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
21195 "the original disk image is left intact."
21196 msgstr ""
21197
21198 #. type: textblock
21199 #: ../resize/virt-resize.pod:261
21200 msgid ""
21201 "Note that when you delete a partition, then anything contained in the "
21202 "partition is also deleted.  Furthermore, this causes any partitions that "
21203 "come after to be I<renumbered>, which can easily make your guest unbootable."
21204 msgstr ""
21205
21206 #. type: textblock
21207 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
21208 #: ../resize/virt-resize.pod:448
21209 msgid "You can give this option multiple times."
21210 msgstr ""
21211
21212 #. type: =item
21213 #: ../resize/virt-resize.pod:268
21214 msgid "B<--expand part>"
21215 msgstr ""
21216
21217 #. type: textblock
21218 #: ../resize/virt-resize.pod:270
21219 msgid ""
21220 "Expand the named partition so it uses up all extra space (space left over "
21221 "after any other resize changes that you request have been done)."
21222 msgstr ""
21223
21224 #. type: textblock
21225 #: ../resize/virt-resize.pod:273
21226 msgid ""
21227 "If virt-resize knows how, it will expand the direct content of the "
21228 "partition.  For example, if the partition is an LVM PV, it will expand the "
21229 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
21230 "content it doesn't know about alone."
21231 msgstr ""
21232
21233 #. type: textblock
21234 #: ../resize/virt-resize.pod:278
21235 msgid "Currently virt-resize can resize:"
21236 msgstr ""
21237
21238 #. type: textblock
21239 #: ../resize/virt-resize.pod:284
21240 msgid "ext2, ext3 and ext4 filesystems."
21241 msgstr ""
21242
21243 #. type: textblock
21244 #: ../resize/virt-resize.pod:288
21245 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
21246 msgstr ""
21247
21248 #. type: textblock
21249 #: ../resize/virt-resize.pod:290
21250 msgid ""
21251 "The filesystem must have been shut down consistently last time it was used.  "
21252 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
21253 "consistency check, so at the first boot after resizing Windows will check "
21254 "the disk."
21255 msgstr ""
21256
21257 #. type: textblock
21258 #: ../resize/virt-resize.pod:297
21259 msgid ""
21260 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
21261 "inside the PV, but see the I<--LV-expand> option.  The user could also "
21262 "resize LVs as desired after boot."
21263 msgstr ""
21264
21265 #. type: textblock
21266 #: ../resize/virt-resize.pod:303
21267 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
21268 msgstr ""
21269
21270 #. type: textblock
21271 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:476
21272 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
21273 msgstr ""
21274
21275 #. type: =item
21276 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
21277 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
21278 #: ../tools/virt-win-reg.pl:142
21279 msgid "B<--format> raw"
21280 msgstr ""
21281
21282 #. type: textblock
21283 #: ../resize/virt-resize.pod:311
21284 msgid ""
21285 "Specify the format of the input disk image.  If this flag is not given then "
21286 "it is auto-detected from the image itself."
21287 msgstr ""
21288
21289 #. type: textblock
21290 #: ../resize/virt-resize.pod:317
21291 msgid ""
21292 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
21293 "AND NON-SPARSE RAW FORMATS>."
21294 msgstr ""
21295
21296 #. type: =item
21297 #: ../resize/virt-resize.pod:320
21298 msgid "B<--ignore part>"
21299 msgstr ""
21300
21301 #. type: textblock
21302 #: ../resize/virt-resize.pod:322
21303 msgid ""
21304 "Ignore the named partition.  Effectively this means the partition is "
21305 "allocated on the destination disk, but the content is not copied across from "
21306 "the source disk.  The content of the partition will be blank (all zero "
21307 "bytes)."
21308 msgstr ""
21309
21310 #. type: =item
21311 #: ../resize/virt-resize.pod:329
21312 msgid "B<--LV-expand logvol>"
21313 msgstr ""
21314
21315 #. type: textblock
21316 #: ../resize/virt-resize.pod:331
21317 msgid ""
21318 "This takes the logical volume and, as a final step, expands it to fill all "
21319 "the space available in its volume group.  A typical usage, assuming a Linux "
21320 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
21321 "lv_root> would be:"
21322 msgstr ""
21323
21324 #. type: verbatim
21325 #: ../resize/virt-resize.pod:336
21326 #, no-wrap
21327 msgid ""
21328 " virt-resize indisk outdisk \\\n"
21329 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
21330 "\n"
21331 msgstr ""
21332
21333 #. type: textblock
21334 #: ../resize/virt-resize.pod:339
21335 msgid ""
21336 "This would first expand the partition (and PV), and then expand the root "
21337 "device to fill the extra space in the PV."
21338 msgstr ""
21339
21340 #. type: textblock
21341 #: ../resize/virt-resize.pod:342
21342 msgid ""
21343 "The contents of the LV are also resized if virt-resize knows how to do "
21344 "that.  You can stop virt-resize from trying to expand the content by using "
21345 "the option I<--no-expand-content>."
21346 msgstr ""
21347
21348 #. type: textblock
21349 #: ../resize/virt-resize.pod:346
21350 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
21351 msgstr ""
21352
21353 #. type: textblock
21354 #: ../resize/virt-resize.pod:348
21355 msgid ""
21356 "You can give this option multiple times, I<but> it doesn't make sense to do "
21357 "this unless the logical volumes you specify are all in different volume "
21358 "groups."
21359 msgstr ""
21360
21361 #. type: =item
21362 #: ../resize/virt-resize.pod:354
21363 msgid "B<--dryrun>"
21364 msgstr ""
21365
21366 #. type: textblock
21367 #: ../resize/virt-resize.pod:356
21368 msgid "Print a summary of what would be done, but don't do anything."
21369 msgstr ""
21370
21371 #. type: =item
21372 #: ../resize/virt-resize.pod:358
21373 msgid "B<--no-copy-boot-loader>"
21374 msgstr ""
21375
21376 #. type: textblock
21377 #: ../resize/virt-resize.pod:360
21378 msgid ""
21379 "By default, virt-resize copies over some sectors at the start of the disk "
21380 "(up to the beginning of the first partition).  Commonly these sectors "
21381 "contain the Master Boot Record (MBR) and the boot loader, and are required "
21382 "in order for the guest to boot correctly."
21383 msgstr ""
21384
21385 #. type: textblock
21386 #: ../resize/virt-resize.pod:365
21387 msgid ""
21388 "If you specify this flag, then this initial copy is not done.  You may need "
21389 "to reinstall the boot loader in this case."
21390 msgstr ""
21391
21392 #. type: =item
21393 #: ../resize/virt-resize.pod:368
21394 msgid "B<--no-extra-partition>"
21395 msgstr ""
21396
21397 #. type: textblock
21398 #: ../resize/virt-resize.pod:370
21399 msgid ""
21400 "By default, virt-resize creates an extra partition if there is any extra, "
21401 "unused space after all resizing has happened.  Use this option to prevent "
21402 "the extra partition from being created.  If you do this then the extra space "
21403 "will be inaccessible until you run fdisk, parted, or some other partitioning "
21404 "tool in the guest."
21405 msgstr ""
21406
21407 #. type: textblock
21408 #: ../resize/virt-resize.pod:376
21409 msgid ""
21410 "Note that if the surplus space is smaller than 10 MB, no extra partition "
21411 "will be created."
21412 msgstr ""
21413
21414 #. type: =item
21415 #: ../resize/virt-resize.pod:379
21416 msgid "B<--no-expand-content>"
21417 msgstr ""
21418
21419 #. type: textblock
21420 #: ../resize/virt-resize.pod:381
21421 msgid ""
21422 "By default, virt-resize will try to expand the direct contents of "
21423 "partitions, if it knows how (see I<--expand> option above)."
21424 msgstr ""
21425
21426 #. type: textblock
21427 #: ../resize/virt-resize.pod:384
21428 msgid ""
21429 "If you give the I<--no-expand-content> option then virt-resize will not "
21430 "attempt this."
21431 msgstr ""
21432
21433 #. type: =item
21434 #: ../resize/virt-resize.pod:387
21435 msgid "B<--ntfsresize-force>"
21436 msgstr ""
21437
21438 #. type: textblock
21439 #: ../resize/virt-resize.pod:389
21440 msgid ""
21441 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
21442 "the NTFS disk is marked as needing a consistency check.  You have to use "
21443 "this option if you want to resize a Windows guest multiple times without "
21444 "booting into Windows between each resize."
21445 msgstr ""
21446
21447 #. type: =item
21448 #: ../resize/virt-resize.pod:395
21449 msgid "B<--output-format> raw"
21450 msgstr ""
21451
21452 #. type: textblock
21453 #: ../resize/virt-resize.pod:397
21454 msgid ""
21455 "Specify the format of the output disk image.  If this flag is not given then "
21456 "it is auto-detected from the image itself."
21457 msgstr ""
21458
21459 #. type: textblock
21460 #: ../resize/virt-resize.pod:403
21461 msgid ""
21462 "Note that this option I<does not create> the output format.  This option "
21463 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
21464 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
21465 "SPARSE RAW FORMATS>."
21466 msgstr ""
21467
21468 #. type: =item
21469 #: ../resize/virt-resize.pod:408
21470 msgid "B<-q>"
21471 msgstr ""
21472
21473 #. type: =item
21474 #: ../resize/virt-resize.pod:410
21475 msgid "B<--quiet>"
21476 msgstr ""
21477
21478 #. type: textblock
21479 #: ../resize/virt-resize.pod:412
21480 msgid "Don't print the summary."
21481 msgstr ""
21482
21483 #. type: =item
21484 #: ../resize/virt-resize.pod:414
21485 msgid "B<--resize part=size>"
21486 msgstr ""
21487
21488 #. type: textblock
21489 #: ../resize/virt-resize.pod:416
21490 msgid ""
21491 "Resize the named partition (expanding or shrinking it) so that it has the "
21492 "given size."
21493 msgstr ""
21494
21495 #. type: textblock
21496 #: ../resize/virt-resize.pod:419
21497 msgid ""
21498 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
21499 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
21500 "size; or as a relative number or percentage.  For example:"
21501 msgstr ""
21502
21503 #. type: verbatim
21504 #: ../resize/virt-resize.pod:425
21505 #, no-wrap
21506 msgid ""
21507 " --resize /dev/sda2=10G\n"
21508 "\n"
21509 msgstr ""
21510
21511 #. type: verbatim
21512 #: ../resize/virt-resize.pod:427
21513 #, no-wrap
21514 msgid ""
21515 " --resize /dev/sda4=90%\n"
21516 "\n"
21517 msgstr ""
21518
21519 #. type: verbatim
21520 #: ../resize/virt-resize.pod:429
21521 #, no-wrap
21522 msgid ""
21523 " --resize /dev/sda2=+1G\n"
21524 "\n"
21525 msgstr ""
21526
21527 #. type: verbatim
21528 #: ../resize/virt-resize.pod:431
21529 #, no-wrap
21530 msgid ""
21531 " --resize /dev/sda2=-200M\n"
21532 "\n"
21533 msgstr ""
21534
21535 #. type: verbatim
21536 #: ../resize/virt-resize.pod:433
21537 #, no-wrap
21538 msgid ""
21539 " --resize /dev/sda1=+128K\n"
21540 "\n"
21541 msgstr ""
21542
21543 #. type: verbatim
21544 #: ../resize/virt-resize.pod:435
21545 #, no-wrap
21546 msgid ""
21547 " --resize /dev/sda1=+10%\n"
21548 "\n"
21549 msgstr ""
21550
21551 #. type: verbatim
21552 #: ../resize/virt-resize.pod:437
21553 #, no-wrap
21554 msgid ""
21555 " --resize /dev/sda1=-10%\n"
21556 "\n"
21557 msgstr ""
21558
21559 #. type: textblock
21560 #: ../resize/virt-resize.pod:439
21561 msgid ""
21562 "You can increase the size of any partition.  Virt-resize will expand the "
21563 "direct content of the partition if it knows how (see I<--expand> below)."
21564 msgstr ""
21565
21566 #. type: textblock
21567 #: ../resize/virt-resize.pod:443
21568 msgid ""
21569 "You can only I<decrease> the size of partitions that contain filesystems or "
21570 "PVs which have already been shrunk.  Virt-resize will check this has been "
21571 "done before proceeding, or else will print an error (see also I<--resize-"
21572 "force>)."
21573 msgstr ""
21574
21575 #. type: =item
21576 #: ../resize/virt-resize.pod:450
21577 msgid "B<--resize-force part=size>"
21578 msgstr ""
21579
21580 #. type: textblock
21581 #: ../resize/virt-resize.pod:452
21582 msgid ""
21583 "This is the same as I<--resize> except that it will let you decrease the "
21584 "size of any partition.  Generally this means you will lose any data which "
21585 "was at the end of the partition you shrink, but you may not care about that "
21586 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
21587 "as a swap partition)."
21588 msgstr ""
21589
21590 #. type: textblock
21591 #: ../resize/virt-resize.pod:458
21592 msgid "See also the I<--ignore> option."
21593 msgstr ""
21594
21595 #. type: =item
21596 #: ../resize/virt-resize.pod:460
21597 msgid "B<--shrink part>"
21598 msgstr ""
21599
21600 #. type: textblock
21601 #: ../resize/virt-resize.pod:462
21602 msgid ""
21603 "Shrink the named partition until the overall disk image fits in the "
21604 "destination.  The named partition B<must> contain a filesystem or PV which "
21605 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
21606 "online tools).  Virt-resize will check this and give an error if it has not "
21607 "been done."
21608 msgstr ""
21609
21610 #. type: textblock
21611 #: ../resize/virt-resize.pod:468
21612 msgid ""
21613 "The amount by which the overall disk must be shrunk (after carrying out all "
21614 "other operations requested by the user) is called the \"deficit\".  For "
21615 "example, a straight copy (assume no other operations)  from a 5GB disk image "
21616 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
21617 "would give an error unless the user specified a partition to shrink and that "
21618 "partition had more than a gigabyte of free space."
21619 msgstr ""
21620
21621 #. type: =head2
21622 #: ../resize/virt-resize.pod:488
21623 msgid "\"Partition 1 does not end on cylinder boundary.\""
21624 msgstr ""
21625
21626 #. type: textblock
21627 #: ../resize/virt-resize.pod:490
21628 msgid ""
21629 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
21630 "means the partitions will not be aligned to the ancient CHS geometry.  "
21631 "However CHS geometry is meaningless for disks manufactured since the early "
21632 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
21633 "cylinders is not required by any modern operating system."
21634 msgstr ""
21635
21636 #. type: =head2
21637 #: ../resize/virt-resize.pod:497
21638 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
21639 msgstr ""
21640
21641 #. type: textblock
21642 #: ../resize/virt-resize.pod:499
21643 msgid ""
21644 "In Windows Vista and later versions, Microsoft switched to using a separate "
21645 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
21646 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
21647 "the boot partition.  Doing so seems to break the guest completely.  However "
21648 "expanding the second partition (ie. C: drive) should work."
21649 msgstr ""
21650
21651 #. type: textblock
21652 #: ../resize/virt-resize.pod:506
21653 msgid ""
21654 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
21655 "NTFS partitions have been expanded.  This is just a safety check and (unless "
21656 "it find errors) is nothing to worry about."
21657 msgstr ""
21658
21659 #. type: =head2
21660 #: ../resize/virt-resize.pod:510
21661 msgid "GUEST BOOT STUCK AT \"GRUB\""
21662 msgstr ""
21663
21664 #. type: textblock
21665 #: ../resize/virt-resize.pod:512
21666 msgid ""
21667 "If a Linux guest does not boot after resizing, and the boot is stuck after "
21668 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
21669 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
21670 "although we think is to do with partition alignment."
21671 msgstr ""
21672
21673 #. type: verbatim
21674 #: ../resize/virt-resize.pod:517
21675 #, no-wrap
21676 msgid ""
21677 " guestfish -i -a newdisk\n"
21678 " ><fs> cat /boot/grub/device.map\n"
21679 " # check the contents of this file are sensible or\n"
21680 " # edit the file if necessary\n"
21681 " ><fs> grub-install / /dev/vda\n"
21682 " ><fs> exit\n"
21683 "\n"
21684 msgstr ""
21685
21686 #. type: textblock
21687 #: ../resize/virt-resize.pod:524
21688 msgid ""
21689 "For more flexible guest reconfiguration, including if you need to specify "
21690 "other parameters to grub-install, use L<virt-rescue(1)>."
21691 msgstr ""
21692
21693 #. type: =head1
21694 #: ../resize/virt-resize.pod:527
21695 msgid "ALTERNATIVE TOOLS"
21696 msgstr ""
21697
21698 #. type: textblock
21699 #: ../resize/virt-resize.pod:529
21700 msgid ""
21701 "There are several proprietary tools for resizing partitions.  We won't "
21702 "mention any here."
21703 msgstr ""
21704
21705 #. type: textblock
21706 #: ../resize/virt-resize.pod:532
21707 msgid ""
21708 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
21709 "operations on disk images.  They can resize and move partitions, but I don't "
21710 "think they can do anything with the contents, and they certainly don't "
21711 "understand LVM."
21712 msgstr ""
21713
21714 #. type: textblock
21715 #: ../resize/virt-resize.pod:537
21716 msgid ""
21717 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
21718 "but at a much lower level.  You will probably end up hand-calculating sector "
21719 "offsets, which is something that virt-resize was designed to avoid.  If you "
21720 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
21721 "I<--debug> flag."
21722 msgstr ""
21723
21724 #. type: textblock
21725 #: ../resize/virt-resize.pod:552
21726 msgid ""
21727 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
21728 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
21729 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
21730 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
21731 msgstr ""
21732
21733 #. type: textblock
21734 #: ../ruby/examples/guestfs-ruby.pod:5
21735 msgid "guestfs-ruby - How to use libguestfs from Ruby"
21736 msgstr ""
21737
21738 #. type: verbatim
21739 #: ../ruby/examples/guestfs-ruby.pod:9
21740 #, no-wrap
21741 msgid ""
21742 " require 'guestfs'\n"
21743 " g = Guestfs::Guestfs.new()\n"
21744 " g.add_drive_opts(\"disk.img\",\n"
21745 "                  :readonly => 1, :format => \"raw\")\n"
21746 " g.launch()\n"
21747 "\n"
21748 msgstr ""
21749
21750 #. type: textblock
21751 #: ../ruby/examples/guestfs-ruby.pod:17
21752 msgid ""
21753 "This manual page documents how to call libguestfs from the Ruby programming "
21754 "language.  This page just documents the differences from the C API and gives "
21755 "some examples.  If you are not familiar with using libguestfs, you also need "
21756 "to read L<guestfs(3)>."
21757 msgstr ""
21758
21759 #. type: textblock
21760 #: ../ruby/examples/guestfs-ruby.pod:24
21761 msgid ""
21762 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
21763 "This has a single parameter which is the error message (a string)."
21764 msgstr ""
21765
21766 #. type: textblock
21767 #: ../ruby/examples/guestfs-ruby.pod:38
21768 msgid ""
21769 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21770 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
21771 "libguestfs.org/>."
21772 msgstr ""
21773
21774 #. type: =head2
21775 #: ../src/guestfs-actions.pod:1
21776 msgid "guestfs_add_cdrom"
21777 msgstr ""
21778
21779 #. type: verbatim
21780 #: ../src/guestfs-actions.pod:3
21781 #, no-wrap
21782 msgid ""
21783 " int\n"
21784 " guestfs_add_cdrom (guestfs_h *g,\n"
21785 "                    const char *filename);\n"
21786 "\n"
21787 msgstr ""
21788
21789 #. type: textblock
21790 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
21791 #: ../src/guestfs-actions.pod:270
21792 msgid ""
21793 "I<This function is deprecated.> In new code, use the L</"
21794 "guestfs_add_drive_opts> call instead."
21795 msgstr ""
21796
21797 #. type: textblock
21798 #: ../src/guestfs-actions.pod:24
21799 msgid ""
21800 "This call checks for the existence of C<filename>.  This stops you from "
21801 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21802 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
21803 "instead."
21804 msgstr ""
21805
21806 #. type: textblock
21807 #: ../src/guestfs-actions.pod:31
21808 msgid ""
21809 "If you just want to add an ISO file (often you use this as an efficient way "
21810 "to transfer large files into the guest), then you should probably use "
21811 "C<guestfs_add_drive_ro> instead."
21812 msgstr ""
21813
21814 #. type: textblock
21815 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
21816 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
21817 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
21818 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
21819 #: ../src/guestfs-actions.pod:422 ../src/guestfs-actions.pod:442
21820 #: ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501
21821 #: ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547
21822 #: ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647
21823 #: ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676
21824 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793
21825 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821
21826 #: ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1041
21827 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1079
21828 #: ../src/guestfs-actions.pod:1163 ../src/guestfs-actions.pod:1181
21829 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1214
21830 #: ../src/guestfs-actions.pod:1234 ../src/guestfs-actions.pod:1304
21831 #: ../src/guestfs-actions.pod:1335 ../src/guestfs-actions.pod:1360
21832 #: ../src/guestfs-actions.pod:1402 ../src/guestfs-actions.pod:1515
21833 #: ../src/guestfs-actions.pod:1542 ../src/guestfs-actions.pod:1757
21834 #: ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1866
21835 #: ../src/guestfs-actions.pod:2341 ../src/guestfs-actions.pod:2485
21836 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2581
21837 #: ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3636
21838 #: ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:3850
21839 #: ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:3877
21840 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3906
21841 #: ../src/guestfs-actions.pod:3942 ../src/guestfs-actions.pod:4014
21842 #: ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4051
21843 #: ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4097
21844 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4151
21845 #: ../src/guestfs-actions.pod:4170 ../src/guestfs-actions.pod:4205
21846 #: ../src/guestfs-actions.pod:4217 ../src/guestfs-actions.pod:4253
21847 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:4282
21848 #: ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:4314
21849 #: ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4427
21850 #: ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4491
21851 #: ../src/guestfs-actions.pod:4509 ../src/guestfs-actions.pod:4527
21852 #: ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4557
21853 #: ../src/guestfs-actions.pod:4571 ../src/guestfs-actions.pod:4588
21854 #: ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:4630
21855 #: ../src/guestfs-actions.pod:4693 ../src/guestfs-actions.pod:4766
21856 #: ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4816
21857 #: ../src/guestfs-actions.pod:4835 ../src/guestfs-actions.pod:4847
21858 #: ../src/guestfs-actions.pod:4864 ../src/guestfs-actions.pod:4877
21859 #: ../src/guestfs-actions.pod:4892 ../src/guestfs-actions.pod:4907
21860 #: ../src/guestfs-actions.pod:4949 ../src/guestfs-actions.pod:4975
21861 #: ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5034
21862 #: ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5065
21863 #: ../src/guestfs-actions.pod:5114 ../src/guestfs-actions.pod:5167
21864 #: ../src/guestfs-actions.pod:5214 ../src/guestfs-actions.pod:5257
21865 #: ../src/guestfs-actions.pod:5285 ../src/guestfs-actions.pod:5302
21866 #: ../src/guestfs-actions.pod:5320 ../src/guestfs-actions.pod:5460
21867 #: ../src/guestfs-actions.pod:5517 ../src/guestfs-actions.pod:5539
21868 #: ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:5589
21869 #: ../src/guestfs-actions.pod:5655 ../src/guestfs-actions.pod:5672
21870 #: ../src/guestfs-actions.pod:5685 ../src/guestfs-actions.pod:5699
21871 #: ../src/guestfs-actions.pod:5988 ../src/guestfs-actions.pod:6007
21872 #: ../src/guestfs-actions.pod:6026 ../src/guestfs-actions.pod:6040
21873 #: ../src/guestfs-actions.pod:6052 ../src/guestfs-actions.pod:6066
21874 #: ../src/guestfs-actions.pod:6078 ../src/guestfs-actions.pod:6092
21875 #: ../src/guestfs-actions.pod:6108 ../src/guestfs-actions.pod:6129
21876 #: ../src/guestfs-actions.pod:6148 ../src/guestfs-actions.pod:6167
21877 #: ../src/guestfs-actions.pod:6197 ../src/guestfs-actions.pod:6215
21878 #: ../src/guestfs-actions.pod:6238 ../src/guestfs-actions.pod:6256
21879 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6296
21880 #: ../src/guestfs-actions.pod:6315 ../src/guestfs-actions.pod:6332
21881 #: ../src/guestfs-actions.pod:6351 ../src/guestfs-actions.pod:6379
21882 #: ../src/guestfs-actions.pod:6403 ../src/guestfs-actions.pod:6422
21883 #: ../src/guestfs-actions.pod:6446 ../src/guestfs-actions.pod:6465
21884 #: ../src/guestfs-actions.pod:6480 ../src/guestfs-actions.pod:6499
21885 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6573
21886 #: ../src/guestfs-actions.pod:6606 ../src/guestfs-actions.pod:6721
21887 #: ../src/guestfs-actions.pod:6842 ../src/guestfs-actions.pod:6854
21888 #: ../src/guestfs-actions.pod:6867 ../src/guestfs-actions.pod:6880
21889 #: ../src/guestfs-actions.pod:6902 ../src/guestfs-actions.pod:6915
21890 #: ../src/guestfs-actions.pod:6928 ../src/guestfs-actions.pod:6941
21891 #: ../src/guestfs-actions.pod:6956 ../src/guestfs-actions.pod:7015
21892 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7048
21893 #: ../src/guestfs-actions.pod:7064 ../src/guestfs-actions.pod:7081
21894 #: ../src/guestfs-actions.pod:7094 ../src/guestfs-actions.pod:7114
21895 #: ../src/guestfs-actions.pod:7150 ../src/guestfs-actions.pod:7164
21896 #: ../src/guestfs-actions.pod:7205 ../src/guestfs-actions.pod:7218
21897 #: ../src/guestfs-actions.pod:7236 ../src/guestfs-actions.pod:7270
21898 #: ../src/guestfs-actions.pod:7306 ../src/guestfs-actions.pod:7422
21899 #: ../src/guestfs-actions.pod:7437 ../src/guestfs-actions.pod:7451
21900 #: ../src/guestfs-actions.pod:7506 ../src/guestfs-actions.pod:7519
21901 #: ../src/guestfs-actions.pod:7564 ../src/guestfs-actions.pod:7604
21902 #: ../src/guestfs-actions.pod:7660 ../src/guestfs-actions.pod:7680
21903 #: ../src/guestfs-actions.pod:7713 ../src/guestfs-actions.pod:7773
21904 #: ../src/guestfs-actions.pod:7792 ../src/guestfs-actions.pod:7821
21905 msgid "This function returns 0 on success or -1 on error."
21906 msgstr ""
21907
21908 #. type: textblock
21909 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
21910 #: ../src/guestfs-actions.pod:1165 ../src/guestfs-actions.pod:1980
21911 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2192
21912 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3643
21913 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:6217
21914 #: ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:6467
21915 #: ../src/guestfs-actions.pod:6958 ../src/guestfs-actions.pod:7083
21916 #: ../src/guestfs-actions.pod:7606
21917 msgid "(Added in 0.3)"
21918 msgstr ""
21919
21920 #. type: =head2
21921 #: ../src/guestfs-actions.pod:41
21922 msgid "guestfs_add_domain"
21923 msgstr ""
21924
21925 #. type: verbatim
21926 #: ../src/guestfs-actions.pod:43
21927 #, no-wrap
21928 msgid ""
21929 " int\n"
21930 " guestfs_add_domain (guestfs_h *g,\n"
21931 "                     const char *dom,\n"
21932 "                     ...);\n"
21933 "\n"
21934 msgstr ""
21935
21936 #. type: textblock
21937 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
21938 #: ../src/guestfs-actions.pod:832 ../src/guestfs-actions.pod:2826
21939 #: ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4961
21940 #: ../src/guestfs-actions.pod:5178
21941 msgid ""
21942 "You may supply a list of optional arguments to this call.  Use zero or more "
21943 "of the following pairs of parameters, and terminate the list with C<-1> on "
21944 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
21945 msgstr ""
21946
21947 #. type: verbatim
21948 #: ../src/guestfs-actions.pod:53
21949 #, no-wrap
21950 msgid ""
21951 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
21952 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
21953 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
21954 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
21955 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
21956 "\n"
21957 msgstr ""
21958
21959 #. type: textblock
21960 #: ../src/guestfs-actions.pod:59
21961 msgid ""
21962 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21963 "It works by connecting to libvirt, requesting the domain and domain XML from "
21964 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
21965 "one."
21966 msgstr ""
21967
21968 #. type: textblock
21969 #: ../src/guestfs-actions.pod:94
21970 msgid ""
21971 "The other optional parameters are passed directly through to "
21972 "C<guestfs_add_drive_opts>."
21973 msgstr ""
21974
21975 #. type: textblock
21976 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
21977 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
21978 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
21979 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1380
21980 #: ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1939
21981 #: ../src/guestfs-actions.pod:2050 ../src/guestfs-actions.pod:2101
21982 #: ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:2179
21983 #: ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:2944
21984 #: ../src/guestfs-actions.pod:2962 ../src/guestfs-actions.pod:5137
21985 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5769
21986 #: ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:7191
21987 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:7630
21988 #: ../src/guestfs-actions.pod:7643
21989 msgid "On error this function returns -1."
21990 msgstr ""
21991
21992 #. type: textblock
21993 #: ../src/guestfs-actions.pod:99
21994 msgid "(Added in 1.7.4)"
21995 msgstr ""
21996
21997 #. type: =head2
21998 #: ../src/guestfs-actions.pod:101
21999 msgid "guestfs_add_domain_va"
22000 msgstr ""
22001
22002 #. type: verbatim
22003 #: ../src/guestfs-actions.pod:103
22004 #, no-wrap
22005 msgid ""
22006 " int\n"
22007 " guestfs_add_domain_va (guestfs_h *g,\n"
22008 "                        const char *dom,\n"
22009 "                        va_list args);\n"
22010 "\n"
22011 msgstr ""
22012
22013 #. type: textblock
22014 #: ../src/guestfs-actions.pod:108
22015 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
22016 msgstr ""
22017
22018 #. type: textblock
22019 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
22020 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
22021 #: ../src/guestfs-actions.pod:871 ../src/guestfs-actions.pod:882
22022 #: ../src/guestfs-actions.pod:2910 ../src/guestfs-actions.pod:2922
22023 #: ../src/guestfs-actions.pod:4707 ../src/guestfs-actions.pod:4719
22024 #: ../src/guestfs-actions.pod:4989 ../src/guestfs-actions.pod:5001
22025 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5238
22026 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
22027 msgstr ""
22028
22029 #. type: =head2
22030 #: ../src/guestfs-actions.pod:112
22031 msgid "guestfs_add_domain_argv"
22032 msgstr ""
22033
22034 #. type: verbatim
22035 #: ../src/guestfs-actions.pod:114
22036 #, no-wrap
22037 msgid ""
22038 " int\n"
22039 " guestfs_add_domain_argv (guestfs_h *g,\n"
22040 "                          const char *dom,\n"
22041 "                          const struct guestfs_add_domain_argv *optargs);\n"
22042 "\n"
22043 msgstr ""
22044
22045 #. type: textblock
22046 #: ../src/guestfs-actions.pod:119
22047 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
22048 msgstr ""
22049
22050 #. type: =head2
22051 #: ../src/guestfs-actions.pod:123
22052 msgid "guestfs_add_drive"
22053 msgstr ""
22054
22055 #. type: verbatim
22056 #: ../src/guestfs-actions.pod:125
22057 #, no-wrap
22058 msgid ""
22059 " int\n"
22060 " guestfs_add_drive (guestfs_h *g,\n"
22061 "                    const char *filename);\n"
22062 "\n"
22063 msgstr ""
22064
22065 #. type: textblock
22066 #: ../src/guestfs-actions.pod:129
22067 msgid ""
22068 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
22069 "optional parameters, so the disk is added writable, with the format being "
22070 "detected automatically."
22071 msgstr ""
22072
22073 #. type: textblock
22074 #: ../src/guestfs-actions.pod:133
22075 msgid ""
22076 "Automatic detection of the format opens you up to a potential security hole "
22077 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
22078 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
22079 "you should think about replacing calls to this function with calls to "
22080 "C<guestfs_add_drive_opts>, and specifying the format."
22081 msgstr ""
22082
22083 #. type: =head2
22084 #: ../src/guestfs-actions.pod:144
22085 msgid "guestfs_add_drive_opts"
22086 msgstr ""
22087
22088 #. type: verbatim
22089 #: ../src/guestfs-actions.pod:146
22090 #, no-wrap
22091 msgid ""
22092 " int\n"
22093 " guestfs_add_drive_opts (guestfs_h *g,\n"
22094 "                         const char *filename,\n"
22095 "                         ...);\n"
22096 "\n"
22097 msgstr ""
22098
22099 #. type: verbatim
22100 #: ../src/guestfs-actions.pod:156
22101 #, no-wrap
22102 msgid ""
22103 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
22104 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
22105 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
22106 "\n"
22107 msgstr ""
22108
22109 #. type: textblock
22110 #: ../src/guestfs-actions.pod:185
22111 msgid ""
22112 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
22113 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
22114 "Possible formats include C<raw> and C<qcow2>."
22115 msgstr ""
22116
22117 #. type: textblock
22118 #: ../src/guestfs-actions.pod:196
22119 msgid ""
22120 "This rarely-used option lets you emulate the behaviour of the deprecated "
22121 "C<guestfs_add_drive_with_if> call (q.v.)"
22122 msgstr ""
22123
22124 #. type: textblock
22125 #: ../src/guestfs-actions.pod:203
22126 msgid "(Added in 1.5.23)"
22127 msgstr ""
22128
22129 #. type: =head2
22130 #: ../src/guestfs-actions.pod:205
22131 msgid "guestfs_add_drive_opts_va"
22132 msgstr ""
22133
22134 #. type: verbatim
22135 #: ../src/guestfs-actions.pod:207
22136 #, no-wrap
22137 msgid ""
22138 " int\n"
22139 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
22140 "                            const char *filename,\n"
22141 "                            va_list args);\n"
22142 "\n"
22143 msgstr ""
22144
22145 #. type: textblock
22146 #: ../src/guestfs-actions.pod:212
22147 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
22148 msgstr ""
22149
22150 #. type: =head2
22151 #: ../src/guestfs-actions.pod:216
22152 msgid "guestfs_add_drive_opts_argv"
22153 msgstr ""
22154
22155 #. type: verbatim
22156 #: ../src/guestfs-actions.pod:218
22157 #, no-wrap
22158 msgid ""
22159 " int\n"
22160 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
22161 "                              const char *filename,\n"
22162 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
22163 "\n"
22164 msgstr ""
22165
22166 #. type: textblock
22167 #: ../src/guestfs-actions.pod:223
22168 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
22169 msgstr ""
22170
22171 #. type: =head2
22172 #: ../src/guestfs-actions.pod:227
22173 msgid "guestfs_add_drive_ro"
22174 msgstr ""
22175
22176 #. type: verbatim
22177 #: ../src/guestfs-actions.pod:229
22178 #, no-wrap
22179 msgid ""
22180 " int\n"
22181 " guestfs_add_drive_ro (guestfs_h *g,\n"
22182 "                       const char *filename);\n"
22183 "\n"
22184 msgstr ""
22185
22186 #. type: textblock
22187 #: ../src/guestfs-actions.pod:233
22188 msgid ""
22189 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
22190 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
22191 "disk is added read-only, with the format being detected automatically."
22192 msgstr ""
22193
22194 #. type: textblock
22195 #: ../src/guestfs-actions.pod:240
22196 msgid "(Added in 1.0.38)"
22197 msgstr ""
22198
22199 #. type: =head2
22200 #: ../src/guestfs-actions.pod:242
22201 msgid "guestfs_add_drive_ro_with_if"
22202 msgstr ""
22203
22204 #. type: verbatim
22205 #: ../src/guestfs-actions.pod:244
22206 #, no-wrap
22207 msgid ""
22208 " int\n"
22209 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
22210 "                               const char *filename,\n"
22211 "                               const char *iface);\n"
22212 "\n"
22213 msgstr ""
22214
22215 #. type: textblock
22216 #: ../src/guestfs-actions.pod:256
22217 msgid ""
22218 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
22219 "QEMU interface emulation to use at run time."
22220 msgstr ""
22221
22222 #. type: textblock
22223 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
22224 #: ../src/guestfs-actions.pod:2431
22225 msgid "(Added in 1.0.84)"
22226 msgstr ""
22227
22228 #. type: =head2
22229 #: ../src/guestfs-actions.pod:263
22230 msgid "guestfs_add_drive_with_if"
22231 msgstr ""
22232
22233 #. type: verbatim
22234 #: ../src/guestfs-actions.pod:265
22235 #, no-wrap
22236 msgid ""
22237 " int\n"
22238 " guestfs_add_drive_with_if (guestfs_h *g,\n"
22239 "                            const char *filename,\n"
22240 "                            const char *iface);\n"
22241 "\n"
22242 msgstr ""
22243
22244 #. type: textblock
22245 #: ../src/guestfs-actions.pod:277
22246 msgid ""
22247 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
22248 "QEMU interface emulation to use at run time."
22249 msgstr ""
22250
22251 #. type: =head2
22252 #: ../src/guestfs-actions.pod:284
22253 msgid "guestfs_aug_clear"
22254 msgstr ""
22255
22256 #. type: verbatim
22257 #: ../src/guestfs-actions.pod:286
22258 #, no-wrap
22259 msgid ""
22260 " int\n"
22261 " guestfs_aug_clear (guestfs_h *g,\n"
22262 "                    const char *augpath);\n"
22263 "\n"
22264 msgstr ""
22265
22266 #. type: textblock
22267 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2181
22268 msgid "(Added in 1.3.4)"
22269 msgstr ""
22270
22271 #. type: =head2
22272 #: ../src/guestfs-actions.pod:297
22273 msgid "guestfs_aug_close"
22274 msgstr ""
22275
22276 #. type: verbatim
22277 #: ../src/guestfs-actions.pod:299
22278 #, no-wrap
22279 msgid ""
22280 " int\n"
22281 " guestfs_aug_close (guestfs_h *g);\n"
22282 "\n"
22283 msgstr ""
22284
22285 #. type: textblock
22286 #: ../src/guestfs-actions.pod:302
22287 msgid ""
22288 "Close the current Augeas handle and free up any resources used by it.  After "
22289 "calling this, you have to call C<guestfs_aug_init> again before you can use "
22290 "any other Augeas functions."
22291 msgstr ""
22292
22293 #. type: textblock
22294 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
22295 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
22296 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
22297 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
22298 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
22299 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
22300 #: ../src/guestfs-actions.pod:5846
22301 msgid "(Added in 0.7)"
22302 msgstr ""
22303
22304 #. type: =head2
22305 #: ../src/guestfs-actions.pod:311
22306 msgid "guestfs_aug_defnode"
22307 msgstr ""
22308
22309 #. type: verbatim
22310 #: ../src/guestfs-actions.pod:313
22311 #, no-wrap
22312 msgid ""
22313 " struct guestfs_int_bool *\n"
22314 " guestfs_aug_defnode (guestfs_h *g,\n"
22315 "                      const char *name,\n"
22316 "                      const char *expr,\n"
22317 "                      const char *val);\n"
22318 "\n"
22319 msgstr ""
22320
22321 #. type: textblock
22322 #: ../src/guestfs-actions.pod:322
22323 msgid ""
22324 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22325 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
22326 "containing that single node."
22327 msgstr ""
22328
22329 #. type: textblock
22330 #: ../src/guestfs-actions.pod:330
22331 msgid ""
22332 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
22333 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
22334 msgstr ""
22335
22336 #. type: =head2
22337 #: ../src/guestfs-actions.pod:336
22338 msgid "guestfs_aug_defvar"
22339 msgstr ""
22340
22341 #. type: verbatim
22342 #: ../src/guestfs-actions.pod:338
22343 #, no-wrap
22344 msgid ""
22345 " int\n"
22346 " guestfs_aug_defvar (guestfs_h *g,\n"
22347 "                     const char *name,\n"
22348 "                     const char *expr);\n"
22349 "\n"
22350 msgstr ""
22351
22352 #. type: =head2
22353 #: ../src/guestfs-actions.pod:354
22354 msgid "guestfs_aug_get"
22355 msgstr ""
22356
22357 #. type: verbatim
22358 #: ../src/guestfs-actions.pod:356
22359 #, no-wrap
22360 msgid ""
22361 " char *\n"
22362 " guestfs_aug_get (guestfs_h *g,\n"
22363 "                  const char *augpath);\n"
22364 "\n"
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:922
22369 #: ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1000
22370 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1119
22371 #: ../src/guestfs-actions.pod:1249 ../src/guestfs-actions.pod:1266
22372 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1419
22373 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1719
22374 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:1899
22375 #: ../src/guestfs-actions.pod:1966 ../src/guestfs-actions.pod:2009
22376 #: ../src/guestfs-actions.pod:2030 ../src/guestfs-actions.pod:2204
22377 #: ../src/guestfs-actions.pod:2396 ../src/guestfs-actions.pod:2600
22378 #: ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2794
22379 #: ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:3027
22380 #: ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3076
22381 #: ../src/guestfs-actions.pod:3110 ../src/guestfs-actions.pod:3169
22382 #: ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3209
22383 #: ../src/guestfs-actions.pod:3836 ../src/guestfs-actions.pod:4189
22384 #: ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:4469
22385 #: ../src/guestfs-actions.pod:5375 ../src/guestfs-actions.pod:5574
22386 #: ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:5922
22387 #: ../src/guestfs-actions.pod:5971 ../src/guestfs-actions.pod:6627
22388 #: ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6667
22389 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:7365
22390 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7402
22391 #: ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7885
22392 msgid ""
22393 "This function returns a string, or NULL on error.  I<The caller must free "
22394 "the returned string after use>."
22395 msgstr ""
22396
22397 #. type: =head2
22398 #: ../src/guestfs-actions.pod:368
22399 msgid "guestfs_aug_init"
22400 msgstr ""
22401
22402 #. type: verbatim
22403 #: ../src/guestfs-actions.pod:370
22404 #, no-wrap
22405 msgid ""
22406 " int\n"
22407 " guestfs_aug_init (guestfs_h *g,\n"
22408 "                   const char *root,\n"
22409 "                   int flags);\n"
22410 "\n"
22411 msgstr ""
22412
22413 #. type: textblock
22414 #: ../src/guestfs-actions.pod:379
22415 msgid "You must call this before using any other C<guestfs_aug_*> commands."
22416 msgstr ""
22417
22418 #. type: textblock
22419 #: ../src/guestfs-actions.pod:414
22420 msgid "Do not load the tree in C<guestfs_aug_init>."
22421 msgstr ""
22422
22423 #. type: textblock
22424 #: ../src/guestfs-actions.pod:418
22425 msgid "To close the handle, you can call C<guestfs_aug_close>."
22426 msgstr ""
22427
22428 #. type: =head2
22429 #: ../src/guestfs-actions.pod:426
22430 msgid "guestfs_aug_insert"
22431 msgstr ""
22432
22433 #. type: verbatim
22434 #: ../src/guestfs-actions.pod:428
22435 #, no-wrap
22436 msgid ""
22437 " int\n"
22438 " guestfs_aug_insert (guestfs_h *g,\n"
22439 "                     const char *augpath,\n"
22440 "                     const char *label,\n"
22441 "                     int before);\n"
22442 "\n"
22443 msgstr ""
22444
22445 #. type: =head2
22446 #: ../src/guestfs-actions.pod:446
22447 msgid "guestfs_aug_load"
22448 msgstr ""
22449
22450 #. type: verbatim
22451 #: ../src/guestfs-actions.pod:448
22452 #, no-wrap
22453 msgid ""
22454 " int\n"
22455 " guestfs_aug_load (guestfs_h *g);\n"
22456 "\n"
22457 msgstr ""
22458
22459 #. type: =head2
22460 #: ../src/guestfs-actions.pod:460
22461 msgid "guestfs_aug_ls"
22462 msgstr ""
22463
22464 #. type: verbatim
22465 #: ../src/guestfs-actions.pod:462
22466 #, no-wrap
22467 msgid ""
22468 " char **\n"
22469 " guestfs_aug_ls (guestfs_h *g,\n"
22470 "                 const char *augpath);\n"
22471 "\n"
22472 msgstr ""
22473
22474 #. type: textblock
22475 #: ../src/guestfs-actions.pod:466
22476 msgid ""
22477 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
22478 "sorting the resulting nodes into alphabetical order."
22479 msgstr ""
22480
22481 #. type: textblock
22482 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
22483 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1138
22484 #: ../src/guestfs-actions.pod:1434 ../src/guestfs-actions.pod:1453
22485 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
22486 #: ../src/guestfs-actions.pod:1821 ../src/guestfs-actions.pod:2276
22487 #: ../src/guestfs-actions.pod:2292 ../src/guestfs-actions.pod:2311
22488 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:2378
22489 #: ../src/guestfs-actions.pod:2449 ../src/guestfs-actions.pod:2498
22490 #: ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:3129
22491 #: ../src/guestfs-actions.pod:3405 ../src/guestfs-actions.pod:3719
22492 #: ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3756
22493 #: ../src/guestfs-actions.pod:3818 ../src/guestfs-actions.pod:3923
22494 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:5098
22495 #: ../src/guestfs-actions.pod:5716 ../src/guestfs-actions.pod:5842
22496 #: ../src/guestfs-actions.pod:5956 ../src/guestfs-actions.pod:6707
22497 #: ../src/guestfs-actions.pod:6768 ../src/guestfs-actions.pod:6823
22498 #: ../src/guestfs-actions.pod:6969 ../src/guestfs-actions.pod:6993
22499 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-actions.pod:7489
22500 #: ../src/guestfs-actions.pod:7536 ../src/guestfs-actions.pod:7730
22501 #: ../src/guestfs-actions.pod:7749 ../src/guestfs-actions.pod:7835
22502 #: ../src/guestfs-actions.pod:7854 ../src/guestfs-actions.pod:7900
22503 #: ../src/guestfs-actions.pod:7919
22504 msgid ""
22505 "This function returns a NULL-terminated array of strings (like L<environ(3)"
22506 ">), or NULL if there was an error.  I<The caller must free the strings and "
22507 "the array after use>."
22508 msgstr ""
22509
22510 #. type: textblock
22511 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1063
22512 #: ../src/guestfs-actions.pod:1081 ../src/guestfs-actions.pod:1491
22513 #: ../src/guestfs-actions.pod:3483 ../src/guestfs-actions.pod:3514
22514 #: ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:4222
22515 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4442
22516 #: ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:5102
22517 #: ../src/guestfs-actions.pod:5657 ../src/guestfs-actions.pod:6054
22518 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6080
22519 #: ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:7207
22520 #: ../src/guestfs-actions.pod:7220 ../src/guestfs-actions.pod:7453
22521 #: ../src/guestfs-actions.pod:7718
22522 msgid "(Added in 0.8)"
22523 msgstr ""
22524
22525 #. type: =head2
22526 #: ../src/guestfs-actions.pod:475
22527 msgid "guestfs_aug_match"
22528 msgstr ""
22529
22530 #. type: verbatim
22531 #: ../src/guestfs-actions.pod:477
22532 #, no-wrap
22533 msgid ""
22534 " char **\n"
22535 " guestfs_aug_match (guestfs_h *g,\n"
22536 "                    const char *augpath);\n"
22537 "\n"
22538 msgstr ""
22539
22540 #. type: =head2
22541 #: ../src/guestfs-actions.pod:491
22542 msgid "guestfs_aug_mv"
22543 msgstr ""
22544
22545 #. type: verbatim
22546 #: ../src/guestfs-actions.pod:493
22547 #, no-wrap
22548 msgid ""
22549 " int\n"
22550 " guestfs_aug_mv (guestfs_h *g,\n"
22551 "                 const char *src,\n"
22552 "                 const char *dest);\n"
22553 "\n"
22554 msgstr ""
22555
22556 #. type: =head2
22557 #: ../src/guestfs-actions.pod:505
22558 msgid "guestfs_aug_rm"
22559 msgstr ""
22560
22561 #. type: verbatim
22562 #: ../src/guestfs-actions.pod:507
22563 #, no-wrap
22564 msgid ""
22565 " int\n"
22566 " guestfs_aug_rm (guestfs_h *g,\n"
22567 "                 const char *augpath);\n"
22568 "\n"
22569 msgstr ""
22570
22571 #. type: =head2
22572 #: ../src/guestfs-actions.pod:519
22573 msgid "guestfs_aug_save"
22574 msgstr ""
22575
22576 #. type: verbatim
22577 #: ../src/guestfs-actions.pod:521
22578 #, no-wrap
22579 msgid ""
22580 " int\n"
22581 " guestfs_aug_save (guestfs_h *g);\n"
22582 "\n"
22583 msgstr ""
22584
22585 #. type: textblock
22586 #: ../src/guestfs-actions.pod:526
22587 msgid ""
22588 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
22589 "are saved."
22590 msgstr ""
22591
22592 #. type: =head2
22593 #: ../src/guestfs-actions.pod:533
22594 msgid "guestfs_aug_set"
22595 msgstr ""
22596
22597 #. type: verbatim
22598 #: ../src/guestfs-actions.pod:535
22599 #, no-wrap
22600 msgid ""
22601 " int\n"
22602 " guestfs_aug_set (guestfs_h *g,\n"
22603 "                  const char *augpath,\n"
22604 "                  const char *val);\n"
22605 "\n"
22606 msgstr ""
22607
22608 #. type: textblock
22609 #: ../src/guestfs-actions.pod:542
22610 msgid ""
22611 "In the Augeas API, it is possible to clear a node by setting the value to "
22612 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22613 "this call.  Instead you must use the C<guestfs_aug_clear> call."
22614 msgstr ""
22615
22616 #. type: =head2
22617 #: ../src/guestfs-actions.pod:551
22618 msgid "guestfs_available"
22619 msgstr ""
22620
22621 #. type: verbatim
22622 #: ../src/guestfs-actions.pod:553
22623 #, no-wrap
22624 msgid ""
22625 " int\n"
22626 " guestfs_available (guestfs_h *g,\n"
22627 "                    char *const *groups);\n"
22628 "\n"
22629 msgstr ""
22630
22631 #. type: textblock
22632 #: ../src/guestfs-actions.pod:561
22633 msgid ""
22634 "The libguestfs groups, and the functions that those groups correspond to, "
22635 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22636 "runtime by calling C<guestfs_available_all_groups>."
22637 msgstr ""
22638
22639 #. type: textblock
22640 #: ../src/guestfs-actions.pod:585
22641 msgid "You must call C<guestfs_launch> before calling this function."
22642 msgstr ""
22643
22644 #. type: textblock
22645 #: ../src/guestfs-actions.pod:607
22646 msgid ""
22647 "This call was added in version C<1.0.80>.  In previous versions of "
22648 "libguestfs all you could do would be to speculatively execute a command to "
22649 "find out if the daemon implemented it.  See also C<guestfs_version>."
22650 msgstr ""
22651
22652 #. type: textblock
22653 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1236
22654 msgid "(Added in 1.0.80)"
22655 msgstr ""
22656
22657 #. type: =head2
22658 #: ../src/guestfs-actions.pod:618
22659 msgid "guestfs_available_all_groups"
22660 msgstr ""
22661
22662 #. type: verbatim
22663 #: ../src/guestfs-actions.pod:620
22664 #, no-wrap
22665 msgid ""
22666 " char **\n"
22667 " guestfs_available_all_groups (guestfs_h *g);\n"
22668 "\n"
22669 msgstr ""
22670
22671 #. type: textblock
22672 #: ../src/guestfs-actions.pod:623
22673 msgid ""
22674 "This command returns a list of all optional groups that this daemon knows "
22675 "about.  Note this returns both supported and unsupported groups.  To find "
22676 "out which ones the daemon can actually support you have to call "
22677 "C<guestfs_available> on each member of the returned list."
22678 msgstr ""
22679
22680 #. type: textblock
22681 #: ../src/guestfs-actions.pod:629
22682 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
22683 msgstr ""
22684
22685 #. type: textblock
22686 #: ../src/guestfs-actions.pod:635
22687 msgid "(Added in 1.3.15)"
22688 msgstr ""
22689
22690 #. type: =head2
22691 #: ../src/guestfs-actions.pod:637
22692 msgid "guestfs_base64_in"
22693 msgstr ""
22694
22695 #. type: verbatim
22696 #: ../src/guestfs-actions.pod:639
22697 #, no-wrap
22698 msgid ""
22699 " int\n"
22700 " guestfs_base64_in (guestfs_h *g,\n"
22701 "                    const char *base64file,\n"
22702 "                    const char *filename);\n"
22703 "\n"
22704 msgstr ""
22705
22706 #. type: textblock
22707 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
22708 msgid "(Added in 1.3.5)"
22709 msgstr ""
22710
22711 #. type: =head2
22712 #: ../src/guestfs-actions.pod:651
22713 msgid "guestfs_base64_out"
22714 msgstr ""
22715
22716 #. type: verbatim
22717 #: ../src/guestfs-actions.pod:653
22718 #, no-wrap
22719 msgid ""
22720 " int\n"
22721 " guestfs_base64_out (guestfs_h *g,\n"
22722 "                     const char *filename,\n"
22723 "                     const char *base64file);\n"
22724 "\n"
22725 msgstr ""
22726
22727 #. type: =head2
22728 #: ../src/guestfs-actions.pod:665
22729 msgid "guestfs_blockdev_flushbufs"
22730 msgstr ""
22731
22732 #. type: verbatim
22733 #: ../src/guestfs-actions.pod:667
22734 #, no-wrap
22735 msgid ""
22736 " int\n"
22737 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
22738 "                             const char *device);\n"
22739 "\n"
22740 msgstr ""
22741
22742 #. type: textblock
22743 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
22744 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
22745 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
22746 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
22747 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
22748 msgid "(Added in 0.9.3)"
22749 msgstr ""
22750
22751 #. type: =head2
22752 #: ../src/guestfs-actions.pod:680
22753 msgid "guestfs_blockdev_getbsz"
22754 msgstr ""
22755
22756 #. type: verbatim
22757 #: ../src/guestfs-actions.pod:682
22758 #, no-wrap
22759 msgid ""
22760 " int\n"
22761 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
22762 "                          const char *device);\n"
22763 "\n"
22764 msgstr ""
22765
22766 #. type: =head2
22767 #: ../src/guestfs-actions.pod:697
22768 msgid "guestfs_blockdev_getro"
22769 msgstr ""
22770
22771 #. type: verbatim
22772 #: ../src/guestfs-actions.pod:699
22773 #, no-wrap
22774 msgid ""
22775 " int\n"
22776 " guestfs_blockdev_getro (guestfs_h *g,\n"
22777 "                         const char *device);\n"
22778 "\n"
22779 msgstr ""
22780
22781 #. type: textblock
22782 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1474
22783 #: ../src/guestfs-actions.pod:1489 ../src/guestfs-actions.pod:1978
22784 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2061
22785 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2127
22786 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2167
22787 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:3226
22788 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3260
22789 #: ../src/guestfs-actions.pod:3422 ../src/guestfs-actions.pod:3436
22790 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3465
22791 #: ../src/guestfs-actions.pod:3481 ../src/guestfs-actions.pod:3496
22792 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3526
22793 #: ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3553
22794 #: ../src/guestfs-actions.pod:3568 ../src/guestfs-actions.pod:3583
22795 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3610
22796 #: ../src/guestfs-actions.pod:5339
22797 msgid "This function returns a C truth value on success or -1 on error."
22798 msgstr ""
22799
22800 #. type: =head2
22801 #: ../src/guestfs-actions.pod:712
22802 msgid "guestfs_blockdev_getsize64"
22803 msgstr ""
22804
22805 #. type: verbatim
22806 #: ../src/guestfs-actions.pod:714
22807 #, no-wrap
22808 msgid ""
22809 " int64_t\n"
22810 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
22811 "                             const char *device);\n"
22812 "\n"
22813 msgstr ""
22814
22815 #. type: textblock
22816 #: ../src/guestfs-actions.pod:720
22817 msgid "See also C<guestfs_blockdev_getsz>."
22818 msgstr ""
22819
22820 #. type: =head2
22821 #: ../src/guestfs-actions.pod:728
22822 msgid "guestfs_blockdev_getss"
22823 msgstr ""
22824
22825 #. type: verbatim
22826 #: ../src/guestfs-actions.pod:730
22827 #, no-wrap
22828 msgid ""
22829 " int\n"
22830 " guestfs_blockdev_getss (guestfs_h *g,\n"
22831 "                         const char *device);\n"
22832 "\n"
22833 msgstr ""
22834
22835 #. type: textblock
22836 #: ../src/guestfs-actions.pod:737
22837 msgid ""
22838 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
22839 "that)."
22840 msgstr ""
22841
22842 #. type: =head2
22843 #: ../src/guestfs-actions.pod:746
22844 msgid "guestfs_blockdev_getsz"
22845 msgstr ""
22846
22847 #. type: verbatim
22848 #: ../src/guestfs-actions.pod:748
22849 #, no-wrap
22850 msgid ""
22851 " int64_t\n"
22852 " guestfs_blockdev_getsz (guestfs_h *g,\n"
22853 "                         const char *device);\n"
22854 "\n"
22855 msgstr ""
22856
22857 #. type: textblock
22858 #: ../src/guestfs-actions.pod:755
22859 msgid ""
22860 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
22861 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
22862 msgstr ""
22863
22864 #. type: =head2
22865 #: ../src/guestfs-actions.pod:765
22866 msgid "guestfs_blockdev_rereadpt"
22867 msgstr ""
22868
22869 #. type: verbatim
22870 #: ../src/guestfs-actions.pod:767
22871 #, no-wrap
22872 msgid ""
22873 " int\n"
22874 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
22875 "                            const char *device);\n"
22876 "\n"
22877 msgstr ""
22878
22879 #. type: =head2
22880 #: ../src/guestfs-actions.pod:779
22881 msgid "guestfs_blockdev_setbsz"
22882 msgstr ""
22883
22884 #. type: verbatim
22885 #: ../src/guestfs-actions.pod:781
22886 #, no-wrap
22887 msgid ""
22888 " int\n"
22889 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
22890 "                          const char *device,\n"
22891 "                          int blocksize);\n"
22892 "\n"
22893 msgstr ""
22894
22895 #. type: =head2
22896 #: ../src/guestfs-actions.pod:797
22897 msgid "guestfs_blockdev_setro"
22898 msgstr ""
22899
22900 #. type: verbatim
22901 #: ../src/guestfs-actions.pod:799
22902 #, no-wrap
22903 msgid ""
22904 " int\n"
22905 " guestfs_blockdev_setro (guestfs_h *g,\n"
22906 "                         const char *device);\n"
22907 "\n"
22908 msgstr ""
22909
22910 #. type: =head2
22911 #: ../src/guestfs-actions.pod:811
22912 msgid "guestfs_blockdev_setrw"
22913 msgstr ""
22914
22915 #. type: verbatim
22916 #: ../src/guestfs-actions.pod:813
22917 #, no-wrap
22918 msgid ""
22919 " int\n"
22920 " guestfs_blockdev_setrw (guestfs_h *g,\n"
22921 "                         const char *device);\n"
22922 "\n"
22923 msgstr ""
22924
22925 #. type: =head2
22926 #: ../src/guestfs-actions.pod:825
22927 msgid "guestfs_btrfs_filesystem_resize"
22928 msgstr ""
22929
22930 #. type: verbatim
22931 #: ../src/guestfs-actions.pod:827
22932 #, no-wrap
22933 msgid ""
22934 " int\n"
22935 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
22936 "                                  const char *mountpoint,\n"
22937 "                                  ...);\n"
22938 "\n"
22939 msgstr ""
22940
22941 #. type: verbatim
22942 #: ../src/guestfs-actions.pod:837
22943 #, no-wrap
22944 msgid ""
22945 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
22946 "\n"
22947 msgstr ""
22948
22949 #. type: textblock
22950 #: ../src/guestfs-actions.pod:860
22951 msgid "(Added in 1.11.17)"
22952 msgstr ""
22953
22954 #. type: =head2
22955 #: ../src/guestfs-actions.pod:862
22956 msgid "guestfs_btrfs_filesystem_resize_va"
22957 msgstr ""
22958
22959 #. type: verbatim
22960 #: ../src/guestfs-actions.pod:864
22961 #, no-wrap
22962 msgid ""
22963 " int\n"
22964 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
22965 "                                     const char *mountpoint,\n"
22966 "                                     va_list args);\n"
22967 "\n"
22968 msgstr ""
22969
22970 #. type: textblock
22971 #: ../src/guestfs-actions.pod:869
22972 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
22973 msgstr ""
22974
22975 #. type: =head2
22976 #: ../src/guestfs-actions.pod:873
22977 msgid "guestfs_btrfs_filesystem_resize_argv"
22978 msgstr ""
22979
22980 #. type: verbatim
22981 #: ../src/guestfs-actions.pod:875
22982 #, no-wrap
22983 msgid ""
22984 " int\n"
22985 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
22986 "                                       const char *mountpoint,\n"
22987 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
22988 "\n"
22989 msgstr ""
22990
22991 #. type: textblock
22992 #: ../src/guestfs-actions.pod:880
22993 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
22994 msgstr ""
22995
22996 #. type: =head2
22997 #: ../src/guestfs-actions.pod:884
22998 msgid "guestfs_case_sensitive_path"
22999 msgstr ""
23000
23001 #. type: verbatim
23002 #: ../src/guestfs-actions.pod:886
23003 #, no-wrap
23004 msgid ""
23005 " char *\n"
23006 " guestfs_case_sensitive_path (guestfs_h *g,\n"
23007 "                              const char *path);\n"
23008 "\n"
23009 msgstr ""
23010
23011 #. type: textblock
23012 #: ../src/guestfs-actions.pod:912
23013 msgid ""
23014 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
23015 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
23016 "how the directories were originally created under Windows)."
23017 msgstr ""
23018
23019 #. type: textblock
23020 #: ../src/guestfs-actions.pod:920
23021 msgid "See also C<guestfs_realpath>."
23022 msgstr ""
23023
23024 #. type: textblock
23025 #: ../src/guestfs-actions.pod:925 ../src/guestfs-actions.pod:7387
23026 msgid "(Added in 1.0.75)"
23027 msgstr ""
23028
23029 #. type: =head2
23030 #: ../src/guestfs-actions.pod:927
23031 msgid "guestfs_cat"
23032 msgstr ""
23033
23034 #. type: verbatim
23035 #: ../src/guestfs-actions.pod:929
23036 #, no-wrap
23037 msgid ""
23038 " char *\n"
23039 " guestfs_cat (guestfs_h *g,\n"
23040 "              const char *path);\n"
23041 "\n"
23042 msgstr ""
23043
23044 #. type: textblock
23045 #: ../src/guestfs-actions.pod:935
23046 msgid ""
23047 "Note that this function cannot correctly handle binary files (specifically, "
23048 "files containing C<\\0> character which is treated as end of string).  For "
23049 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
23050 "functions which have a more complex interface."
23051 msgstr ""
23052
23053 #. type: textblock
23054 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:3740
23055 #: ../src/guestfs-actions.pod:3822 ../src/guestfs-actions.pod:3839
23056 #: ../src/guestfs-actions.pod:3927 ../src/guestfs-actions.pod:4335
23057 #: ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:5720
23058 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:7540
23059 #: ../src/guestfs-actions.pod:7554
23060 msgid "(Added in 0.4)"
23061 msgstr ""
23062
23063 #. type: =head2
23064 #: ../src/guestfs-actions.pod:948
23065 msgid "guestfs_checksum"
23066 msgstr ""
23067
23068 #. type: verbatim
23069 #: ../src/guestfs-actions.pod:950
23070 #, no-wrap
23071 msgid ""
23072 " char *\n"
23073 " guestfs_checksum (guestfs_h *g,\n"
23074 "                   const char *csumtype,\n"
23075 "                   const char *path);\n"
23076 "\n"
23077 msgstr ""
23078
23079 #. type: textblock
23080 #: ../src/guestfs-actions.pod:996
23081 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
23082 msgstr ""
23083
23084 #. type: textblock
23085 #: ../src/guestfs-actions.pod:998
23086 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
23087 msgstr ""
23088
23089 #. type: textblock
23090 #: ../src/guestfs-actions.pod:1003 ../src/guestfs-actions.pod:1311
23091 #: ../src/guestfs-actions.pod:2158 ../src/guestfs-actions.pod:3438
23092 #: ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:3528
23093 #: ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:7243
23094 msgid "(Added in 1.0.2)"
23095 msgstr ""
23096
23097 #. type: =head2
23098 #: ../src/guestfs-actions.pod:1005
23099 msgid "guestfs_checksum_device"
23100 msgstr ""
23101
23102 #. type: verbatim
23103 #: ../src/guestfs-actions.pod:1007
23104 #, no-wrap
23105 msgid ""
23106 " char *\n"
23107 " guestfs_checksum_device (guestfs_h *g,\n"
23108 "                          const char *csumtype,\n"
23109 "                          const char *device);\n"
23110 "\n"
23111 msgstr ""
23112
23113 #. type: textblock
23114 #: ../src/guestfs-actions.pod:1012
23115 msgid ""
23116 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
23117 "device named C<device>.  For the types of checksums supported see the "
23118 "C<guestfs_checksum> command."
23119 msgstr ""
23120
23121 #. type: textblock
23122 #: ../src/guestfs-actions.pod:1019 ../src/guestfs-actions.pod:5169
23123 #: ../src/guestfs-actions.pod:5304 ../src/guestfs-actions.pod:5341
23124 #: ../src/guestfs-actions.pod:5359 ../src/guestfs-actions.pod:5541
23125 #: ../src/guestfs-actions.pod:7152 ../src/guestfs-actions.pod:7166
23126 #: ../src/guestfs-actions.pod:7566
23127 msgid "(Added in 1.3.2)"
23128 msgstr ""
23129
23130 #. type: =head2
23131 #: ../src/guestfs-actions.pod:1021
23132 msgid "guestfs_checksums_out"
23133 msgstr ""
23134
23135 #. type: verbatim
23136 #: ../src/guestfs-actions.pod:1023
23137 #, no-wrap
23138 msgid ""
23139 " int\n"
23140 " guestfs_checksums_out (guestfs_h *g,\n"
23141 "                        const char *csumtype,\n"
23142 "                        const char *directory,\n"
23143 "                        const char *sumsfile);\n"
23144 "\n"
23145 msgstr ""
23146
23147 #. type: textblock
23148 #: ../src/guestfs-actions.pod:1043
23149 msgid "(Added in 1.3.7)"
23150 msgstr ""
23151
23152 #. type: =head2
23153 #: ../src/guestfs-actions.pod:1045
23154 msgid "guestfs_chmod"
23155 msgstr ""
23156
23157 #. type: verbatim
23158 #: ../src/guestfs-actions.pod:1047
23159 #, no-wrap
23160 msgid ""
23161 " int\n"
23162 " guestfs_chmod (guestfs_h *g,\n"
23163 "                int mode,\n"
23164 "                const char *path);\n"
23165 "\n"
23166 msgstr ""
23167
23168 #. type: =head2
23169 #: ../src/guestfs-actions.pod:1065
23170 msgid "guestfs_chown"
23171 msgstr ""
23172
23173 #. type: verbatim
23174 #: ../src/guestfs-actions.pod:1067
23175 #, no-wrap
23176 msgid ""
23177 " int\n"
23178 " guestfs_chown (guestfs_h *g,\n"
23179 "                int owner,\n"
23180 "                int group,\n"
23181 "                const char *path);\n"
23182 "\n"
23183 msgstr ""
23184
23185 #. type: =head2
23186 #: ../src/guestfs-actions.pod:1083
23187 msgid "guestfs_command"
23188 msgstr ""
23189
23190 #. type: verbatim
23191 #: ../src/guestfs-actions.pod:1085
23192 #, no-wrap
23193 msgid ""
23194 " char *\n"
23195 " guestfs_command (guestfs_h *g,\n"
23196 "                  char *const *arguments);\n"
23197 "\n"
23198 msgstr ""
23199
23200 #. type: textblock
23201 #: ../src/guestfs-actions.pod:1094
23202 msgid ""
23203 "The single parameter is an argv-style list of arguments.  The first element "
23204 "is the name of the program to run.  Subsequent elements are parameters.  The "
23205 "list must be non-empty (ie. must contain a program name).  Note that the "
23206 "command runs directly, and is I<not> invoked via the shell (see "
23207 "C<guestfs_sh>)."
23208 msgstr ""
23209
23210 #. type: textblock
23211 #: ../src/guestfs-actions.pod:1125 ../src/guestfs-actions.pod:1145
23212 #: ../src/guestfs-actions.pod:1610
23213 msgid "(Added in 0.9.1)"
23214 msgstr ""
23215
23216 #. type: =head2
23217 #: ../src/guestfs-actions.pod:1127
23218 msgid "guestfs_command_lines"
23219 msgstr ""
23220
23221 #. type: verbatim
23222 #: ../src/guestfs-actions.pod:1129
23223 #, no-wrap
23224 msgid ""
23225 " char **\n"
23226 " guestfs_command_lines (guestfs_h *g,\n"
23227 "                        char *const *arguments);\n"
23228 "\n"
23229 msgstr ""
23230
23231 #. type: textblock
23232 #: ../src/guestfs-actions.pod:1133
23233 msgid ""
23234 "This is the same as C<guestfs_command>, but splits the result into a list of "
23235 "lines."
23236 msgstr ""
23237
23238 #. type: textblock
23239 #: ../src/guestfs-actions.pod:1136
23240 msgid "See also: C<guestfs_sh_lines>"
23241 msgstr ""
23242
23243 #. type: =head2
23244 #: ../src/guestfs-actions.pod:1147
23245 msgid "guestfs_config"
23246 msgstr ""
23247
23248 #. type: verbatim
23249 #: ../src/guestfs-actions.pod:1149
23250 #, no-wrap
23251 msgid ""
23252 " int\n"
23253 " guestfs_config (guestfs_h *g,\n"
23254 "                 const char *qemuparam,\n"
23255 "                 const char *qemuvalue);\n"
23256 "\n"
23257 msgstr ""
23258
23259 #. type: =head2
23260 #: ../src/guestfs-actions.pod:1167
23261 msgid "guestfs_copy_size"
23262 msgstr ""
23263
23264 #. type: verbatim
23265 #: ../src/guestfs-actions.pod:1169
23266 #, no-wrap
23267 msgid ""
23268 " int\n"
23269 " guestfs_copy_size (guestfs_h *g,\n"
23270 "                    const char *src,\n"
23271 "                    const char *dest,\n"
23272 "                    int64_t size);\n"
23273 "\n"
23274 msgstr ""
23275
23276 #. type: textblock
23277 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1306
23278 #: ../src/guestfs-actions.pod:1337 ../src/guestfs-actions.pod:1382
23279 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:1781
23280 #: ../src/guestfs-actions.pod:3638 ../src/guestfs-actions.pod:7238
23281 #: ../src/guestfs-actions.pod:7272 ../src/guestfs-actions.pod:7775
23282 #: ../src/guestfs-actions.pod:7794
23283 msgid ""
23284 "This long-running command can generate progress notification messages so "
23285 "that the caller can display a progress bar or indicator.  To receive these "
23286 "messages, the caller must register a progress event callback.  See L<guestfs"
23287 "(3)/GUESTFS_EVENT_PROGRESS>."
23288 msgstr ""
23289
23290 #. type: textblock
23291 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:4362
23292 #: ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:7473
23293 #: ../src/guestfs-actions.pod:7493 ../src/guestfs-actions.pod:7579
23294 msgid "(Added in 1.0.87)"
23295 msgstr ""
23296
23297 #. type: =head2
23298 #: ../src/guestfs-actions.pod:1190
23299 msgid "guestfs_cp"
23300 msgstr ""
23301
23302 #. type: verbatim
23303 #: ../src/guestfs-actions.pod:1192
23304 #, no-wrap
23305 msgid ""
23306 " int\n"
23307 " guestfs_cp (guestfs_h *g,\n"
23308 "             const char *src,\n"
23309 "             const char *dest);\n"
23310 "\n"
23311 msgstr ""
23312
23313 #. type: textblock
23314 #: ../src/guestfs-actions.pod:1202 ../src/guestfs-actions.pod:1216
23315 #: ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:1362
23316 #: ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:5116
23317 #: ../src/guestfs-actions.pod:5591
23318 msgid "(Added in 1.0.18)"
23319 msgstr ""
23320
23321 #. type: =head2
23322 #: ../src/guestfs-actions.pod:1204
23323 msgid "guestfs_cp_a"
23324 msgstr ""
23325
23326 #. type: verbatim
23327 #: ../src/guestfs-actions.pod:1206
23328 #, no-wrap
23329 msgid ""
23330 " int\n"
23331 " guestfs_cp_a (guestfs_h *g,\n"
23332 "               const char *src,\n"
23333 "               const char *dest);\n"
23334 "\n"
23335 msgstr ""
23336
23337 #. type: =head2
23338 #: ../src/guestfs-actions.pod:1218
23339 msgid "guestfs_dd"
23340 msgstr ""
23341
23342 #. type: verbatim
23343 #: ../src/guestfs-actions.pod:1220
23344 #, no-wrap
23345 msgid ""
23346 " int\n"
23347 " guestfs_dd (guestfs_h *g,\n"
23348 "             const char *src,\n"
23349 "             const char *dest);\n"
23350 "\n"
23351 msgstr ""
23352
23353 #. type: textblock
23354 #: ../src/guestfs-actions.pod:1230
23355 msgid ""
23356 "If the destination is a device, it must be as large or larger than the "
23357 "source file or device, otherwise the copy will fail.  This command cannot do "
23358 "partial copies (see C<guestfs_copy_size>)."
23359 msgstr ""
23360
23361 #. type: =head2
23362 #: ../src/guestfs-actions.pod:1238
23363 msgid "guestfs_df"
23364 msgstr ""
23365
23366 #. type: verbatim
23367 #: ../src/guestfs-actions.pod:1240
23368 #, no-wrap
23369 msgid ""
23370 " char *\n"
23371 " guestfs_df (guestfs_h *g);\n"
23372 "\n"
23373 msgstr ""
23374
23375 #. type: textblock
23376 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1262
23377 msgid ""
23378 "This command is mostly useful for interactive sessions.  It is I<not> "
23379 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
23380 "from programs."
23381 msgstr ""
23382
23383 #. type: textblock
23384 #: ../src/guestfs-actions.pod:1252 ../src/guestfs-actions.pod:1269
23385 #: ../src/guestfs-actions.pod:1387 ../src/guestfs-actions.pod:2361
23386 #: ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:2453
23387 #: ../src/guestfs-actions.pod:4472 ../src/guestfs-actions.pod:5016
23388 #: ../src/guestfs-actions.pod:6976 ../src/guestfs-actions.pod:7000
23389 #: ../src/guestfs-actions.pod:7619 ../src/guestfs-actions.pod:7632
23390 #: ../src/guestfs-actions.pod:7645
23391 msgid "(Added in 1.0.54)"
23392 msgstr ""
23393
23394 #. type: =head2
23395 #: ../src/guestfs-actions.pod:1254
23396 msgid "guestfs_df_h"
23397 msgstr ""
23398
23399 #. type: verbatim
23400 #: ../src/guestfs-actions.pod:1256
23401 #, no-wrap
23402 msgid ""
23403 " char *\n"
23404 " guestfs_df_h (guestfs_h *g);\n"
23405 "\n"
23406 msgstr ""
23407
23408 #. type: =head2
23409 #: ../src/guestfs-actions.pod:1271
23410 msgid "guestfs_dmesg"
23411 msgstr ""
23412
23413 #. type: verbatim
23414 #: ../src/guestfs-actions.pod:1273
23415 #, no-wrap
23416 msgid ""
23417 " char *\n"
23418 " guestfs_dmesg (guestfs_h *g);\n"
23419 "\n"
23420 msgstr ""
23421
23422 #. type: textblock
23423 #: ../src/guestfs-actions.pod:1280
23424 msgid ""
23425 "Another way to get the same information is to enable verbose messages with "
23426 "C<guestfs_set_verbose> or by setting the environment variable "
23427 "C<LIBGUESTFS_DEBUG=1> before running the program."
23428 msgstr ""
23429
23430 #. type: =head2
23431 #: ../src/guestfs-actions.pod:1290
23432 msgid "guestfs_download"
23433 msgstr ""
23434
23435 #. type: verbatim
23436 #: ../src/guestfs-actions.pod:1292
23437 #, no-wrap
23438 msgid ""
23439 " int\n"
23440 " guestfs_download (guestfs_h *g,\n"
23441 "                   const char *remotefilename,\n"
23442 "                   const char *filename);\n"
23443 "\n"
23444 msgstr ""
23445
23446 #. type: textblock
23447 #: ../src/guestfs-actions.pod:1302
23448 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
23449 msgstr ""
23450
23451 #. type: =head2
23452 #: ../src/guestfs-actions.pod:1313
23453 msgid "guestfs_download_offset"
23454 msgstr ""
23455
23456 #. type: verbatim
23457 #: ../src/guestfs-actions.pod:1315
23458 #, no-wrap
23459 msgid ""
23460 " int\n"
23461 " guestfs_download_offset (guestfs_h *g,\n"
23462 "                          const char *remotefilename,\n"
23463 "                          const char *filename,\n"
23464 "                          int64_t offset,\n"
23465 "                          int64_t size);\n"
23466 "\n"
23467 msgstr ""
23468
23469 #. type: textblock
23470 #: ../src/guestfs-actions.pod:1328
23471 msgid ""
23472 "Note that there is no limit on the amount of data that can be downloaded "
23473 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
23474 "full amount unless an error occurs."
23475 msgstr ""
23476
23477 #. type: textblock
23478 #: ../src/guestfs-actions.pod:1333
23479 msgid "See also C<guestfs_download>, C<guestfs_pread>."
23480 msgstr ""
23481
23482 #. type: textblock
23483 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:7277
23484 msgid "(Added in 1.5.17)"
23485 msgstr ""
23486
23487 #. type: =head2
23488 #: ../src/guestfs-actions.pod:1344
23489 msgid "guestfs_drop_caches"
23490 msgstr ""
23491
23492 #. type: verbatim
23493 #: ../src/guestfs-actions.pod:1346
23494 #, no-wrap
23495 msgid ""
23496 " int\n"
23497 " guestfs_drop_caches (guestfs_h *g,\n"
23498 "                      int whattodrop);\n"
23499 "\n"
23500 msgstr ""
23501
23502 #. type: =head2
23503 #: ../src/guestfs-actions.pod:1364
23504 msgid "guestfs_du"
23505 msgstr ""
23506
23507 #. type: verbatim
23508 #: ../src/guestfs-actions.pod:1366
23509 #, no-wrap
23510 msgid ""
23511 " int64_t\n"
23512 " guestfs_du (guestfs_h *g,\n"
23513 "             const char *path);\n"
23514 "\n"
23515 msgstr ""
23516
23517 #. type: =head2
23518 #: ../src/guestfs-actions.pod:1389
23519 msgid "guestfs_e2fsck_f"
23520 msgstr ""
23521
23522 #. type: verbatim
23523 #: ../src/guestfs-actions.pod:1391
23524 #, no-wrap
23525 msgid ""
23526 " int\n"
23527 " guestfs_e2fsck_f (guestfs_h *g,\n"
23528 "                   const char *device);\n"
23529 "\n"
23530 msgstr ""
23531
23532 #. type: textblock
23533 #: ../src/guestfs-actions.pod:1399
23534 msgid ""
23535 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
23536 "Normally you should use C<guestfs_fsck>."
23537 msgstr ""
23538
23539 #. type: textblock
23540 #: ../src/guestfs-actions.pod:1404
23541 msgid "(Added in 1.0.29)"
23542 msgstr ""
23543
23544 #. type: =head2
23545 #: ../src/guestfs-actions.pod:1406
23546 msgid "guestfs_echo_daemon"
23547 msgstr ""
23548
23549 #. type: verbatim
23550 #: ../src/guestfs-actions.pod:1408
23551 #, no-wrap
23552 msgid ""
23553 " char *\n"
23554 " guestfs_echo_daemon (guestfs_h *g,\n"
23555 "                      char *const *words);\n"
23556 "\n"
23557 msgstr ""
23558
23559 #. type: textblock
23560 #: ../src/guestfs-actions.pod:1417
23561 msgid "See also C<guestfs_ping_daemon>."
23562 msgstr ""
23563
23564 #. type: textblock
23565 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:2169
23566 #: ../src/guestfs-actions.pod:6448
23567 msgid "(Added in 1.0.69)"
23568 msgstr ""
23569
23570 #. type: =head2
23571 #: ../src/guestfs-actions.pod:1424
23572 msgid "guestfs_egrep"
23573 msgstr ""
23574
23575 #. type: verbatim
23576 #: ../src/guestfs-actions.pod:1426
23577 #, no-wrap
23578 msgid ""
23579 " char **\n"
23580 " guestfs_egrep (guestfs_h *g,\n"
23581 "                const char *regex,\n"
23582 "                const char *path);\n"
23583 "\n"
23584 msgstr ""
23585
23586 #. type: textblock
23587 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1460
23588 #: ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:1563
23589 #: ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:2299
23590 #: ../src/guestfs-actions.pod:2318 ../src/guestfs-actions.pod:2474
23591 #: ../src/guestfs-actions.pod:2487 ../src/guestfs-actions.pod:2502
23592 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2570
23593 #: ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:3852
23594 #: ../src/guestfs-actions.pod:3866 ../src/guestfs-actions.pod:3879
23595 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:4894
23596 #: ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5974
23597 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6856
23598 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6882
23599 #: ../src/guestfs-actions.pod:6904 ../src/guestfs-actions.pod:6917
23600 #: ../src/guestfs-actions.pod:6930 ../src/guestfs-actions.pod:6943
23601 #: ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:7756
23602 #: ../src/guestfs-actions.pod:7842 ../src/guestfs-actions.pod:7861
23603 #: ../src/guestfs-actions.pod:7907 ../src/guestfs-actions.pod:7926
23604 msgid "(Added in 1.0.66)"
23605 msgstr ""
23606
23607 #. type: =head2
23608 #: ../src/guestfs-actions.pod:1443
23609 msgid "guestfs_egrepi"
23610 msgstr ""
23611
23612 #. type: verbatim
23613 #: ../src/guestfs-actions.pod:1445
23614 #, no-wrap
23615 msgid ""
23616 " char **\n"
23617 " guestfs_egrepi (guestfs_h *g,\n"
23618 "                 const char *regex,\n"
23619 "                 const char *path);\n"
23620 "\n"
23621 msgstr ""
23622
23623 #. type: =head2
23624 #: ../src/guestfs-actions.pod:1462
23625 msgid "guestfs_equal"
23626 msgstr ""
23627
23628 #. type: verbatim
23629 #: ../src/guestfs-actions.pod:1464
23630 #, no-wrap
23631 msgid ""
23632 " int\n"
23633 " guestfs_equal (guestfs_h *g,\n"
23634 "                const char *file1,\n"
23635 "                const char *file2);\n"
23636 "\n"
23637 msgstr ""
23638
23639 #. type: =head2
23640 #: ../src/guestfs-actions.pod:1478
23641 msgid "guestfs_exists"
23642 msgstr ""
23643
23644 #. type: verbatim
23645 #: ../src/guestfs-actions.pod:1480
23646 #, no-wrap
23647 msgid ""
23648 " int\n"
23649 " guestfs_exists (guestfs_h *g,\n"
23650 "                 const char *path);\n"
23651 "\n"
23652 msgstr ""
23653
23654 #. type: textblock
23655 #: ../src/guestfs-actions.pod:1487
23656 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
23657 msgstr ""
23658
23659 #. type: =head2
23660 #: ../src/guestfs-actions.pod:1493
23661 msgid "guestfs_fallocate"
23662 msgstr ""
23663
23664 #. type: verbatim
23665 #: ../src/guestfs-actions.pod:1495
23666 #, no-wrap
23667 msgid ""
23668 " int\n"
23669 " guestfs_fallocate (guestfs_h *g,\n"
23670 "                    const char *path,\n"
23671 "                    int len);\n"
23672 "\n"
23673 msgstr ""
23674
23675 #. type: textblock
23676 #: ../src/guestfs-actions.pod:1500
23677 msgid ""
23678 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
23679 "call instead."
23680 msgstr ""
23681
23682 #. type: =head2
23683 #: ../src/guestfs-actions.pod:1519
23684 msgid "guestfs_fallocate64"
23685 msgstr ""
23686
23687 #. type: verbatim
23688 #: ../src/guestfs-actions.pod:1521
23689 #, no-wrap
23690 msgid ""
23691 " int\n"
23692 " guestfs_fallocate64 (guestfs_h *g,\n"
23693 "                      const char *path,\n"
23694 "                      int64_t len);\n"
23695 "\n"
23696 msgstr ""
23697
23698 #. type: textblock
23699 #: ../src/guestfs-actions.pod:1530
23700 msgid ""
23701 "Note that this call allocates disk blocks for the file.  To create a sparse "
23702 "file use C<guestfs_truncate_size> instead."
23703 msgstr ""
23704
23705 #. type: textblock
23706 #: ../src/guestfs-actions.pod:1533
23707 msgid ""
23708 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
23709 "oversight it only allowed 30 bit lengths to be specified, effectively "
23710 "limiting the maximum size of files created through that call to 1GB."
23711 msgstr ""
23712
23713 #. type: textblock
23714 #: ../src/guestfs-actions.pod:1544
23715 msgid "(Added in 1.3.17)"
23716 msgstr ""
23717
23718 #. type: =head2
23719 #: ../src/guestfs-actions.pod:1546
23720 msgid "guestfs_fgrep"
23721 msgstr ""
23722
23723 #. type: verbatim
23724 #: ../src/guestfs-actions.pod:1548
23725 #, no-wrap
23726 msgid ""
23727 " char **\n"
23728 " guestfs_fgrep (guestfs_h *g,\n"
23729 "                const char *pattern,\n"
23730 "                const char *path);\n"
23731 "\n"
23732 msgstr ""
23733
23734 #. type: =head2
23735 #: ../src/guestfs-actions.pod:1565
23736 msgid "guestfs_fgrepi"
23737 msgstr ""
23738
23739 #. type: verbatim
23740 #: ../src/guestfs-actions.pod:1567
23741 #, no-wrap
23742 msgid ""
23743 " char **\n"
23744 " guestfs_fgrepi (guestfs_h *g,\n"
23745 "                 const char *pattern,\n"
23746 "                 const char *path);\n"
23747 "\n"
23748 msgstr ""
23749
23750 #. type: =head2
23751 #: ../src/guestfs-actions.pod:1584
23752 msgid "guestfs_file"
23753 msgstr ""
23754
23755 #. type: verbatim
23756 #: ../src/guestfs-actions.pod:1586
23757 #, no-wrap
23758 msgid ""
23759 " char *\n"
23760 " guestfs_file (guestfs_h *g,\n"
23761 "               const char *path);\n"
23762 "\n"
23763 msgstr ""
23764
23765 #. type: textblock
23766 #: ../src/guestfs-actions.pod:1604
23767 msgid ""
23768 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
23769 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
23770 msgstr ""
23771
23772 #. type: =head2
23773 #: ../src/guestfs-actions.pod:1612
23774 msgid "guestfs_file_architecture"
23775 msgstr ""
23776
23777 #. type: verbatim
23778 #: ../src/guestfs-actions.pod:1614
23779 #, no-wrap
23780 msgid ""
23781 " char *\n"
23782 " guestfs_file_architecture (guestfs_h *g,\n"
23783 "                            const char *filename);\n"
23784 "\n"
23785 msgstr ""
23786
23787 #. type: textblock
23788 #: ../src/guestfs-actions.pod:1722 ../src/guestfs-actions.pod:1885
23789 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:2603
23790 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2759
23791 #: ../src/guestfs-actions.pod:2946 ../src/guestfs-actions.pod:2964
23792 #: ../src/guestfs-actions.pod:3004 ../src/guestfs-actions.pod:3079
23793 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3409
23794 #: ../src/guestfs-actions.pod:3541
23795 msgid "(Added in 1.5.3)"
23796 msgstr ""
23797
23798 #. type: =head2
23799 #: ../src/guestfs-actions.pod:1724
23800 msgid "guestfs_filesize"
23801 msgstr ""
23802
23803 #. type: verbatim
23804 #: ../src/guestfs-actions.pod:1726
23805 #, no-wrap
23806 msgid ""
23807 " int64_t\n"
23808 " guestfs_filesize (guestfs_h *g,\n"
23809 "                   const char *file);\n"
23810 "\n"
23811 msgstr ""
23812
23813 #. type: textblock
23814 #: ../src/guestfs-actions.pod:1732
23815 msgid ""
23816 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
23817 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
23818 "devices, use C<guestfs_blockdev_getsize64>."
23819 msgstr ""
23820
23821 #. type: textblock
23822 #: ../src/guestfs-actions.pod:1738
23823 msgid "(Added in 1.0.82)"
23824 msgstr ""
23825
23826 #. type: =head2
23827 #: ../src/guestfs-actions.pod:1740
23828 msgid "guestfs_fill"
23829 msgstr ""
23830
23831 #. type: verbatim
23832 #: ../src/guestfs-actions.pod:1742
23833 #, no-wrap
23834 msgid ""
23835 " int\n"
23836 " guestfs_fill (guestfs_h *g,\n"
23837 "               int c,\n"
23838 "               int len,\n"
23839 "               const char *path);\n"
23840 "\n"
23841 msgstr ""
23842
23843 #. type: textblock
23844 #: ../src/guestfs-actions.pod:1752
23845 msgid ""
23846 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23847 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
23848 "bytes use C<guestfs_fill_pattern>."
23849 msgstr ""
23850
23851 #. type: textblock
23852 #: ../src/guestfs-actions.pod:1764
23853 msgid "(Added in 1.0.79)"
23854 msgstr ""
23855
23856 #. type: =head2
23857 #: ../src/guestfs-actions.pod:1766
23858 msgid "guestfs_fill_pattern"
23859 msgstr ""
23860
23861 #. type: verbatim
23862 #: ../src/guestfs-actions.pod:1768
23863 #, no-wrap
23864 msgid ""
23865 " int\n"
23866 " guestfs_fill_pattern (guestfs_h *g,\n"
23867 "                       const char *pattern,\n"
23868 "                       int len,\n"
23869 "                       const char *path);\n"
23870 "\n"
23871 msgstr ""
23872
23873 #. type: textblock
23874 #: ../src/guestfs-actions.pod:1774
23875 msgid ""
23876 "This function is like C<guestfs_fill> except that it creates a new file of "
23877 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
23878 "pattern is truncated if necessary to ensure the length of the file is "
23879 "exactly C<len> bytes."
23880 msgstr ""
23881
23882 #. type: textblock
23883 #: ../src/guestfs-actions.pod:1786
23884 msgid "(Added in 1.3.12)"
23885 msgstr ""
23886
23887 #. type: =head2
23888 #: ../src/guestfs-actions.pod:1788
23889 msgid "guestfs_find"
23890 msgstr ""
23891
23892 #. type: verbatim
23893 #: ../src/guestfs-actions.pod:1790
23894 #, no-wrap
23895 msgid ""
23896 " char **\n"
23897 " guestfs_find (guestfs_h *g,\n"
23898 "               const char *directory);\n"
23899 "\n"
23900 msgstr ""
23901
23902 #. type: textblock
23903 #: ../src/guestfs-actions.pod:1806
23904 msgid ""
23905 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
23906 msgstr ""
23907
23908 #. type: textblock
23909 #: ../src/guestfs-actions.pod:1819
23910 msgid "See also C<guestfs_find0>."
23911 msgstr ""
23912
23913 #. type: textblock
23914 #: ../src/guestfs-actions.pod:1828 ../src/guestfs-actions.pod:4299
23915 #: ../src/guestfs-actions.pod:6009
23916 msgid "(Added in 1.0.27)"
23917 msgstr ""
23918
23919 #. type: =head2
23920 #: ../src/guestfs-actions.pod:1830
23921 msgid "guestfs_find0"
23922 msgstr ""
23923
23924 #. type: verbatim
23925 #: ../src/guestfs-actions.pod:1832
23926 #, no-wrap
23927 msgid ""
23928 " int\n"
23929 " guestfs_find0 (guestfs_h *g,\n"
23930 "                const char *directory,\n"
23931 "                const char *files);\n"
23932 "\n"
23933 msgstr ""
23934
23935 #. type: textblock
23936 #: ../src/guestfs-actions.pod:1841
23937 msgid ""
23938 "This command works the same way as C<guestfs_find> with the following "
23939 "exceptions:"
23940 msgstr ""
23941
23942 #. type: textblock
23943 #: ../src/guestfs-actions.pod:1868
23944 msgid "(Added in 1.0.74)"
23945 msgstr ""
23946
23947 #. type: =head2
23948 #: ../src/guestfs-actions.pod:1870
23949 msgid "guestfs_findfs_label"
23950 msgstr ""
23951
23952 #. type: verbatim
23953 #: ../src/guestfs-actions.pod:1872
23954 #, no-wrap
23955 msgid ""
23956 " char *\n"
23957 " guestfs_findfs_label (guestfs_h *g,\n"
23958 "                       const char *label);\n"
23959 "\n"
23960 msgstr ""
23961
23962 #. type: textblock
23963 #: ../src/guestfs-actions.pod:1880
23964 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
23965 msgstr ""
23966
23967 #. type: =head2
23968 #: ../src/guestfs-actions.pod:1887
23969 msgid "guestfs_findfs_uuid"
23970 msgstr ""
23971
23972 #. type: verbatim
23973 #: ../src/guestfs-actions.pod:1889
23974 #, no-wrap
23975 msgid ""
23976 " char *\n"
23977 " guestfs_findfs_uuid (guestfs_h *g,\n"
23978 "                      const char *uuid);\n"
23979 "\n"
23980 msgstr ""
23981
23982 #. type: textblock
23983 #: ../src/guestfs-actions.pod:1897
23984 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
23985 msgstr ""
23986
23987 #. type: =head2
23988 #: ../src/guestfs-actions.pod:1904
23989 msgid "guestfs_fsck"
23990 msgstr ""
23991
23992 #. type: verbatim
23993 #: ../src/guestfs-actions.pod:1906
23994 #, no-wrap
23995 msgid ""
23996 " int\n"
23997 " guestfs_fsck (guestfs_h *g,\n"
23998 "               const char *fstype,\n"
23999 "               const char *device);\n"
24000 "\n"
24001 msgstr ""
24002
24003 #. type: textblock
24004 #: ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:7780
24005 msgid "(Added in 1.0.16)"
24006 msgstr ""
24007
24008 #. type: =head2
24009 #: ../src/guestfs-actions.pod:1943
24010 msgid "guestfs_get_append"
24011 msgstr ""
24012
24013 #. type: verbatim
24014 #: ../src/guestfs-actions.pod:1945
24015 #, no-wrap
24016 msgid ""
24017 " const char *\n"
24018 " guestfs_get_append (guestfs_h *g);\n"
24019 "\n"
24020 msgstr ""
24021
24022 #. type: textblock
24023 #: ../src/guestfs-actions.pod:1953
24024 msgid ""
24025 "This function returns a string which may be NULL.  There is no way to return "
24026 "an error from this function.  The string is owned by the guest handle and "
24027 "must I<not> be freed."
24028 msgstr ""
24029
24030 #. type: textblock
24031 #: ../src/guestfs-actions.pod:1957 ../src/guestfs-actions.pod:5687
24032 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6611
24033 #: ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:6646
24034 #: ../src/guestfs-actions.pod:6670 ../src/guestfs-actions.pod:7424
24035 #: ../src/guestfs-actions.pod:7439 ../src/guestfs-actions.pod:7823
24036 msgid "(Added in 1.0.26)"
24037 msgstr ""
24038
24039 #. type: =head2
24040 #: ../src/guestfs-actions.pod:1959
24041 msgid "guestfs_get_attach_method"
24042 msgstr ""
24043
24044 #. type: verbatim
24045 #: ../src/guestfs-actions.pod:1961
24046 #, no-wrap
24047 msgid ""
24048 " char *\n"
24049 " guestfs_get_attach_method (guestfs_h *g);\n"
24050 "\n"
24051 msgstr ""
24052
24053 #. type: textblock
24054 #: ../src/guestfs-actions.pod:1964
24055 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
24056 msgstr ""
24057
24058 #. type: textblock
24059 #: ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:6199
24060 msgid "(Added in 1.9.8)"
24061 msgstr ""
24062
24063 #. type: =head2
24064 #: ../src/guestfs-actions.pod:1971
24065 msgid "guestfs_get_autosync"
24066 msgstr ""
24067
24068 #. type: verbatim
24069 #: ../src/guestfs-actions.pod:1973
24070 #, no-wrap
24071 msgid ""
24072 " int\n"
24073 " guestfs_get_autosync (guestfs_h *g);\n"
24074 "\n"
24075 msgstr ""
24076
24077 #. type: =head2
24078 #: ../src/guestfs-actions.pod:1982
24079 msgid "guestfs_get_direct"
24080 msgstr ""
24081
24082 #. type: verbatim
24083 #: ../src/guestfs-actions.pod:1984
24084 #, no-wrap
24085 msgid ""
24086 " int\n"
24087 " guestfs_get_direct (guestfs_h *g);\n"
24088 "\n"
24089 msgstr ""
24090
24091 #. type: textblock
24092 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:6240
24093 msgid "(Added in 1.0.72)"
24094 msgstr ""
24095
24096 #. type: =head2
24097 #: ../src/guestfs-actions.pod:1993
24098 msgid "guestfs_get_e2label"
24099 msgstr ""
24100
24101 #. type: verbatim
24102 #: ../src/guestfs-actions.pod:1995
24103 #, no-wrap
24104 msgid ""
24105 " char *\n"
24106 " guestfs_get_e2label (guestfs_h *g,\n"
24107 "                      const char *device);\n"
24108 "\n"
24109 msgstr ""
24110
24111 #. type: textblock
24112 #: ../src/guestfs-actions.pod:1999
24113 msgid ""
24114 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
24115 "call instead."
24116 msgstr ""
24117
24118 #. type: textblock
24119 #: ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2033
24120 #: ../src/guestfs-actions.pod:6258 ../src/guestfs-actions.pod:6277
24121 msgid "(Added in 1.0.15)"
24122 msgstr ""
24123
24124 #. type: =head2
24125 #: ../src/guestfs-actions.pod:2014
24126 msgid "guestfs_get_e2uuid"
24127 msgstr ""
24128
24129 #. type: verbatim
24130 #: ../src/guestfs-actions.pod:2016
24131 #, no-wrap
24132 msgid ""
24133 " char *\n"
24134 " guestfs_get_e2uuid (guestfs_h *g,\n"
24135 "                     const char *device);\n"
24136 "\n"
24137 msgstr ""
24138
24139 #. type: textblock
24140 #: ../src/guestfs-actions.pod:2020
24141 msgid ""
24142 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
24143 "call instead."
24144 msgstr ""
24145
24146 #. type: =head2
24147 #: ../src/guestfs-actions.pod:2035
24148 msgid "guestfs_get_memsize"
24149 msgstr ""
24150
24151 #. type: verbatim
24152 #: ../src/guestfs-actions.pod:2037
24153 #, no-wrap
24154 msgid ""
24155 " int\n"
24156 " guestfs_get_memsize (guestfs_h *g);\n"
24157 "\n"
24158 msgstr ""
24159
24160 #. type: textblock
24161 #: ../src/guestfs-actions.pod:2043
24162 msgid ""
24163 "If C<guestfs_set_memsize> was not called on this handle, and if "
24164 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
24165 "value for memsize."
24166 msgstr ""
24167
24168 #. type: textblock
24169 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:4590
24170 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4818
24171 #: ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:4849
24172 #: ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4879
24173 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:6298
24174 #: ../src/guestfs-actions.pod:6578 ../src/guestfs-actions.pod:7193
24175 msgid "(Added in 1.0.55)"
24176 msgstr ""
24177
24178 #. type: =head2
24179 #: ../src/guestfs-actions.pod:2054
24180 msgid "guestfs_get_network"
24181 msgstr ""
24182
24183 #. type: verbatim
24184 #: ../src/guestfs-actions.pod:2056
24185 #, no-wrap
24186 msgid ""
24187 " int\n"
24188 " guestfs_get_network (guestfs_h *g);\n"
24189 "\n"
24190 msgstr ""
24191
24192 #. type: textblock
24193 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:6317
24194 msgid "(Added in 1.5.4)"
24195 msgstr ""
24196
24197 #. type: =head2
24198 #: ../src/guestfs-actions.pod:2065
24199 msgid "guestfs_get_path"
24200 msgstr ""
24201
24202 #. type: verbatim
24203 #: ../src/guestfs-actions.pod:2067
24204 #, no-wrap
24205 msgid ""
24206 " const char *\n"
24207 " guestfs_get_path (guestfs_h *g);\n"
24208 "\n"
24209 msgstr ""
24210
24211 #. type: textblock
24212 #: ../src/guestfs-actions.pod:2075 ../src/guestfs-actions.pod:2115
24213 msgid ""
24214 "This function returns a string, or NULL on error.  The string is owned by "
24215 "the guest handle and must I<not> be freed."
24216 msgstr ""
24217
24218 #. type: =head2
24219 #: ../src/guestfs-actions.pod:2080
24220 msgid "guestfs_get_pgroup"
24221 msgstr ""
24222
24223 #. type: verbatim
24224 #: ../src/guestfs-actions.pod:2082
24225 #, no-wrap
24226 msgid ""
24227 " int\n"
24228 " guestfs_get_pgroup (guestfs_h *g);\n"
24229 "\n"
24230 msgstr ""
24231
24232 #. type: textblock
24233 #: ../src/guestfs-actions.pod:2089 ../src/guestfs-actions.pod:6353
24234 #: ../src/guestfs-actions.pod:7685
24235 msgid "(Added in 1.11.18)"
24236 msgstr ""
24237
24238 #. type: =head2
24239 #: ../src/guestfs-actions.pod:2091
24240 msgid "guestfs_get_pid"
24241 msgstr ""
24242
24243 #. type: verbatim
24244 #: ../src/guestfs-actions.pod:2093
24245 #, no-wrap
24246 msgid ""
24247 " int\n"
24248 " guestfs_get_pid (guestfs_h *g);\n"
24249 "\n"
24250 msgstr ""
24251
24252 #. type: textblock
24253 #: ../src/guestfs-actions.pod:2103
24254 msgid "(Added in 1.0.56)"
24255 msgstr ""
24256
24257 #. type: =head2
24258 #: ../src/guestfs-actions.pod:2105
24259 msgid "guestfs_get_qemu"
24260 msgstr ""
24261
24262 #. type: verbatim
24263 #: ../src/guestfs-actions.pod:2107
24264 #, no-wrap
24265 msgid ""
24266 " const char *\n"
24267 " guestfs_get_qemu (guestfs_h *g);\n"
24268 "\n"
24269 msgstr ""
24270
24271 #. type: textblock
24272 #: ../src/guestfs-actions.pod:2118 ../src/guestfs-actions.pod:6381
24273 msgid "(Added in 1.0.6)"
24274 msgstr ""
24275
24276 #. type: =head2
24277 #: ../src/guestfs-actions.pod:2120
24278 msgid "guestfs_get_recovery_proc"
24279 msgstr ""
24280
24281 #. type: verbatim
24282 #: ../src/guestfs-actions.pod:2122
24283 #, no-wrap
24284 msgid ""
24285 " int\n"
24286 " guestfs_get_recovery_proc (guestfs_h *g);\n"
24287 "\n"
24288 msgstr ""
24289
24290 #. type: textblock
24291 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3663
24292 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4397
24293 #: ../src/guestfs-actions.pod:4429 ../src/guestfs-actions.pod:5617
24294 #: ../src/guestfs-actions.pod:5960 ../src/guestfs-actions.pod:6405
24295 #: ../src/guestfs-actions.pod:7096 ../src/guestfs-actions.pod:7116
24296 #: ../src/guestfs-actions.pod:7308
24297 msgid "(Added in 1.0.77)"
24298 msgstr ""
24299
24300 #. type: =head2
24301 #: ../src/guestfs-actions.pod:2131
24302 msgid "guestfs_get_selinux"
24303 msgstr ""
24304
24305 #. type: verbatim
24306 #: ../src/guestfs-actions.pod:2133
24307 #, no-wrap
24308 msgid ""
24309 " int\n"
24310 " guestfs_get_selinux (guestfs_h *g);\n"
24311 "\n"
24312 msgstr ""
24313
24314 #. type: textblock
24315 #: ../src/guestfs-actions.pod:2136
24316 msgid ""
24317 "This returns the current setting of the selinux flag which is passed to the "
24318 "appliance at boot time.  See C<guestfs_set_selinux>."
24319 msgstr ""
24320
24321 #. type: textblock
24322 #: ../src/guestfs-actions.pod:2144 ../src/guestfs-actions.pod:2207
24323 #: ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6482
24324 msgid "(Added in 1.0.67)"
24325 msgstr ""
24326
24327 #. type: =head2
24328 #: ../src/guestfs-actions.pod:2146
24329 msgid "guestfs_get_state"
24330 msgstr ""
24331
24332 #. type: verbatim
24333 #: ../src/guestfs-actions.pod:2148
24334 #, no-wrap
24335 msgid ""
24336 " int\n"
24337 " guestfs_get_state (guestfs_h *g);\n"
24338 "\n"
24339 msgstr ""
24340
24341 #. type: =head2
24342 #: ../src/guestfs-actions.pod:2160
24343 msgid "guestfs_get_trace"
24344 msgstr ""
24345
24346 #. type: verbatim
24347 #: ../src/guestfs-actions.pod:2162
24348 #, no-wrap
24349 msgid ""
24350 " int\n"
24351 " guestfs_get_trace (guestfs_h *g);\n"
24352 "\n"
24353 msgstr ""
24354
24355 #. type: =head2
24356 #: ../src/guestfs-actions.pod:2171
24357 msgid "guestfs_get_umask"
24358 msgstr ""
24359
24360 #. type: verbatim
24361 #: ../src/guestfs-actions.pod:2173
24362 #, no-wrap
24363 msgid ""
24364 " int\n"
24365 " guestfs_get_umask (guestfs_h *g);\n"
24366 "\n"
24367 msgstr ""
24368
24369 #. type: textblock
24370 #: ../src/guestfs-actions.pod:2176
24371 msgid ""
24372 "Return the current umask.  By default the umask is C<022> unless it has been "
24373 "set by calling C<guestfs_umask>."
24374 msgstr ""
24375
24376 #. type: =head2
24377 #: ../src/guestfs-actions.pod:2183
24378 msgid "guestfs_get_verbose"
24379 msgstr ""
24380
24381 #. type: verbatim
24382 #: ../src/guestfs-actions.pod:2185
24383 #, no-wrap
24384 msgid ""
24385 " int\n"
24386 " guestfs_get_verbose (guestfs_h *g);\n"
24387 "\n"
24388 msgstr ""
24389
24390 #. type: =head2
24391 #: ../src/guestfs-actions.pod:2194
24392 msgid "guestfs_getcon"
24393 msgstr ""
24394
24395 #. type: verbatim
24396 #: ../src/guestfs-actions.pod:2196
24397 #, no-wrap
24398 msgid ""
24399 " char *\n"
24400 " guestfs_getcon (guestfs_h *g);\n"
24401 "\n"
24402 msgstr ""
24403
24404 #. type: textblock
24405 #: ../src/guestfs-actions.pod:2201
24406 msgid ""
24407 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
24408 msgstr ""
24409
24410 #. type: =head2
24411 #: ../src/guestfs-actions.pod:2209
24412 msgid "guestfs_getxattr"
24413 msgstr ""
24414
24415 #. type: verbatim
24416 #: ../src/guestfs-actions.pod:2211
24417 #, no-wrap
24418 msgid ""
24419 " char *\n"
24420 " guestfs_getxattr (guestfs_h *g,\n"
24421 "                   const char *path,\n"
24422 "                   const char *name,\n"
24423 "                   size_t *size_r);\n"
24424 "\n"
24425 msgstr ""
24426
24427 #. type: textblock
24428 #: ../src/guestfs-actions.pod:2217
24429 msgid ""
24430 "Get a single extended attribute from file C<path> named C<name>.  This call "
24431 "follows symlinks.  If you want to lookup an extended attribute for the "
24432 "symlink itself, use C<guestfs_lgetxattr>."
24433 msgstr ""
24434
24435 #. type: textblock
24436 #: ../src/guestfs-actions.pod:2221 ../src/guestfs-actions.pod:3677
24437 msgid ""
24438 "Normally it is better to get all extended attributes from a file in one go "
24439 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
24440 "implementations are buggy and do not provide a way to list out attributes.  "
24441 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
24442 "extended attributes you want in advance and call this function."
24443 msgstr ""
24444
24445 #. type: textblock
24446 #: ../src/guestfs-actions.pod:2231
24447 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
24448 msgstr ""
24449
24450 #. type: textblock
24451 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:2424
24452 #: ../src/guestfs-actions.pod:2894 ../src/guestfs-actions.pod:3689
24453 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
24454 #: ../src/guestfs-actions.pod:5817
24455 msgid ""
24456 "This function returns a buffer, or NULL on error.  The size of the returned "
24457 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
24458 "after use>."
24459 msgstr ""
24460
24461 #. type: textblock
24462 #: ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:3693
24463 msgid "(Added in 1.7.24)"
24464 msgstr ""
24465
24466 #. type: =head2
24467 #: ../src/guestfs-actions.pod:2239
24468 msgid "guestfs_getxattrs"
24469 msgstr ""
24470
24471 #. type: verbatim
24472 #: ../src/guestfs-actions.pod:2241
24473 #, no-wrap
24474 msgid ""
24475 " struct guestfs_xattr_list *\n"
24476 " guestfs_getxattrs (guestfs_h *g,\n"
24477 "                    const char *path);\n"
24478 "\n"
24479 msgstr ""
24480
24481 #. type: textblock
24482 #: ../src/guestfs-actions.pod:2251
24483 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
24484 msgstr ""
24485
24486 #. type: textblock
24487 #: ../src/guestfs-actions.pod:2253 ../src/guestfs-actions.pod:3705
24488 #: ../src/guestfs-actions.pod:4393
24489 msgid ""
24490 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
24491 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
24492 msgstr ""
24493
24494 #. type: textblock
24495 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:3709
24496 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3944
24497 #: ../src/guestfs-actions.pod:5990 ../src/guestfs-actions.pod:6501
24498 #: ../src/guestfs-actions.pod:7888
24499 msgid "(Added in 1.0.59)"
24500 msgstr ""
24501
24502 #. type: =head2
24503 #: ../src/guestfs-actions.pod:2259
24504 msgid "guestfs_glob_expand"
24505 msgstr ""
24506
24507 #. type: verbatim
24508 #: ../src/guestfs-actions.pod:2261
24509 #, no-wrap
24510 msgid ""
24511 " char **\n"
24512 " guestfs_glob_expand (guestfs_h *g,\n"
24513 "                      const char *pattern);\n"
24514 "\n"
24515 msgstr ""
24516
24517 #. type: textblock
24518 #: ../src/guestfs-actions.pod:2280 ../src/guestfs-actions.pod:6694
24519 #: ../src/guestfs-actions.pod:6711
24520 msgid "(Added in 1.0.50)"
24521 msgstr ""
24522
24523 #. type: =head2
24524 #: ../src/guestfs-actions.pod:2282
24525 msgid "guestfs_grep"
24526 msgstr ""
24527
24528 #. type: verbatim
24529 #: ../src/guestfs-actions.pod:2284
24530 #, no-wrap
24531 msgid ""
24532 " char **\n"
24533 " guestfs_grep (guestfs_h *g,\n"
24534 "               const char *regex,\n"
24535 "               const char *path);\n"
24536 "\n"
24537 msgstr ""
24538
24539 #. type: =head2
24540 #: ../src/guestfs-actions.pod:2301
24541 msgid "guestfs_grepi"
24542 msgstr ""
24543
24544 #. type: verbatim
24545 #: ../src/guestfs-actions.pod:2303
24546 #, no-wrap
24547 msgid ""
24548 " char **\n"
24549 " guestfs_grepi (guestfs_h *g,\n"
24550 "                const char *regex,\n"
24551 "                const char *path);\n"
24552 "\n"
24553 msgstr ""
24554
24555 #. type: =head2
24556 #: ../src/guestfs-actions.pod:2320
24557 msgid "guestfs_grub_install"
24558 msgstr ""
24559
24560 #. type: verbatim
24561 #: ../src/guestfs-actions.pod:2322
24562 #, no-wrap
24563 msgid ""
24564 " int\n"
24565 " guestfs_grub_install (guestfs_h *g,\n"
24566 "                       const char *root,\n"
24567 "                       const char *device);\n"
24568 "\n"
24569 msgstr ""
24570
24571 #. type: textblock
24572 #: ../src/guestfs-actions.pod:2343
24573 msgid "(Added in 1.0.17)"
24574 msgstr ""
24575
24576 #. type: =head2
24577 #: ../src/guestfs-actions.pod:2345
24578 msgid "guestfs_head"
24579 msgstr ""
24580
24581 #. type: verbatim
24582 #: ../src/guestfs-actions.pod:2347
24583 #, no-wrap
24584 msgid ""
24585 " char **\n"
24586 " guestfs_head (guestfs_h *g,\n"
24587 "               const char *path);\n"
24588 "\n"
24589 msgstr ""
24590
24591 #. type: =head2
24592 #: ../src/guestfs-actions.pod:2363
24593 msgid "guestfs_head_n"
24594 msgstr ""
24595
24596 #. type: verbatim
24597 #: ../src/guestfs-actions.pod:2365
24598 #, no-wrap
24599 msgid ""
24600 " char **\n"
24601 " guestfs_head_n (guestfs_h *g,\n"
24602 "                 int nrlines,\n"
24603 "                 const char *path);\n"
24604 "\n"
24605 msgstr ""
24606
24607 #. type: =head2
24608 #: ../src/guestfs-actions.pod:2387
24609 msgid "guestfs_hexdump"
24610 msgstr ""
24611
24612 #. type: verbatim
24613 #: ../src/guestfs-actions.pod:2389
24614 #, no-wrap
24615 msgid ""
24616 " char *\n"
24617 " guestfs_hexdump (guestfs_h *g,\n"
24618 "                  const char *path);\n"
24619 "\n"
24620 msgstr ""
24621
24622 #. type: textblock
24623 #: ../src/guestfs-actions.pod:2402 ../src/guestfs-actions.pod:6775
24624 #: ../src/guestfs-actions.pod:6830
24625 msgid "(Added in 1.0.22)"
24626 msgstr ""
24627
24628 #. type: =head2
24629 #: ../src/guestfs-actions.pod:2404
24630 msgid "guestfs_initrd_cat"
24631 msgstr ""
24632
24633 #. type: verbatim
24634 #: ../src/guestfs-actions.pod:2406
24635 #, no-wrap
24636 msgid ""
24637 " char *\n"
24638 " guestfs_initrd_cat (guestfs_h *g,\n"
24639 "                     const char *initrdpath,\n"
24640 "                     const char *filename,\n"
24641 "                     size_t *size_r);\n"
24642 "\n"
24643 msgstr ""
24644
24645 #. type: textblock
24646 #: ../src/guestfs-actions.pod:2422
24647 msgid "See also C<guestfs_initrd_list>."
24648 msgstr ""
24649
24650 #. type: =head2
24651 #: ../src/guestfs-actions.pod:2433
24652 msgid "guestfs_initrd_list"
24653 msgstr ""
24654
24655 #. type: verbatim
24656 #: ../src/guestfs-actions.pod:2435
24657 #, no-wrap
24658 msgid ""
24659 " char **\n"
24660 " guestfs_initrd_list (guestfs_h *g,\n"
24661 "                      const char *path);\n"
24662 "\n"
24663 msgstr ""
24664
24665 #. type: =head2
24666 #: ../src/guestfs-actions.pod:2455
24667 msgid "guestfs_inotify_add_watch"
24668 msgstr ""
24669
24670 #. type: verbatim
24671 #: ../src/guestfs-actions.pod:2457
24672 #, no-wrap
24673 msgid ""
24674 " int64_t\n"
24675 " guestfs_inotify_add_watch (guestfs_h *g,\n"
24676 "                            const char *path,\n"
24677 "                            int mask);\n"
24678 "\n"
24679 msgstr ""
24680
24681 #. type: =head2
24682 #: ../src/guestfs-actions.pod:2476
24683 msgid "guestfs_inotify_close"
24684 msgstr ""
24685
24686 #. type: verbatim
24687 #: ../src/guestfs-actions.pod:2478
24688 #, no-wrap
24689 msgid ""
24690 " int\n"
24691 " guestfs_inotify_close (guestfs_h *g);\n"
24692 "\n"
24693 msgstr ""
24694
24695 #. type: =head2
24696 #: ../src/guestfs-actions.pod:2489
24697 msgid "guestfs_inotify_files"
24698 msgstr ""
24699
24700 #. type: verbatim
24701 #: ../src/guestfs-actions.pod:2491
24702 #, no-wrap
24703 msgid ""
24704 " char **\n"
24705 " guestfs_inotify_files (guestfs_h *g);\n"
24706 "\n"
24707 msgstr ""
24708
24709 #. type: textblock
24710 #: ../src/guestfs-actions.pod:2494
24711 msgid ""
24712 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
24713 "returns a list of pathnames of objects that were touched.  The returned "
24714 "pathnames are sorted and deduplicated."
24715 msgstr ""
24716
24717 #. type: =head2
24718 #: ../src/guestfs-actions.pod:2504
24719 msgid "guestfs_inotify_init"
24720 msgstr ""
24721
24722 #. type: verbatim
24723 #: ../src/guestfs-actions.pod:2506
24724 #, no-wrap
24725 msgid ""
24726 " int\n"
24727 " guestfs_inotify_init (guestfs_h *g,\n"
24728 "                       int maxevents);\n"
24729 "\n"
24730 msgstr ""
24731
24732 #. type: textblock
24733 #: ../src/guestfs-actions.pod:2514
24734 msgid ""
24735 "C<maxevents> is the maximum number of events which will be queued up between "
24736 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
24737 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
24738 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
24739 "throws away events, but records the fact that it threw them away by setting "
24740 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
24741 "C<guestfs_inotify_read>)."
24742 msgstr ""
24743
24744 #. type: textblock
24745 #: ../src/guestfs-actions.pod:2524
24746 msgid ""
24747 "Before any events are generated, you have to add some watches to the "
24748 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
24749 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
24750 msgstr ""
24751
24752 #. type: textblock
24753 #: ../src/guestfs-actions.pod:2530
24754 msgid ""
24755 "Queued up events should be read periodically by calling "
24756 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
24757 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
24758 "often enough then you risk the internal queue overflowing."
24759 msgstr ""
24760
24761 #. type: textblock
24762 #: ../src/guestfs-actions.pod:2537
24763 msgid ""
24764 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
24765 "This also removes any watches automatically."
24766 msgstr ""
24767
24768 #. type: =head2
24769 #: ../src/guestfs-actions.pod:2550
24770 msgid "guestfs_inotify_read"
24771 msgstr ""
24772
24773 #. type: verbatim
24774 #: ../src/guestfs-actions.pod:2552
24775 #, no-wrap
24776 msgid ""
24777 " struct guestfs_inotify_event_list *\n"
24778 " guestfs_inotify_read (guestfs_h *g);\n"
24779 "\n"
24780 msgstr ""
24781
24782 #. type: textblock
24783 #: ../src/guestfs-actions.pod:2566
24784 msgid ""
24785 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
24786 "there was an error.  I<The caller must call "
24787 "C<guestfs_free_inotify_event_list> after use>."
24788 msgstr ""
24789
24790 #. type: =head2
24791 #: ../src/guestfs-actions.pod:2572
24792 msgid "guestfs_inotify_rm_watch"
24793 msgstr ""
24794
24795 #. type: verbatim
24796 #: ../src/guestfs-actions.pod:2574
24797 #, no-wrap
24798 msgid ""
24799 " int\n"
24800 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
24801 "                           int wd);\n"
24802 "\n"
24803 msgstr ""
24804
24805 #. type: textblock
24806 #: ../src/guestfs-actions.pod:2578
24807 msgid ""
24808 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
24809 msgstr ""
24810
24811 #. type: =head2
24812 #: ../src/guestfs-actions.pod:2585
24813 msgid "guestfs_inspect_get_arch"
24814 msgstr ""
24815
24816 #. type: verbatim
24817 #: ../src/guestfs-actions.pod:2587
24818 #, no-wrap
24819 msgid ""
24820 " char *\n"
24821 " guestfs_inspect_get_arch (guestfs_h *g,\n"
24822 "                           const char *root);\n"
24823 "\n"
24824 msgstr ""
24825
24826 #. type: textblock
24827 #: ../src/guestfs-actions.pod:2591
24828 msgid ""
24829 "This returns the architecture of the inspected operating system.  The "
24830 "possible return values are listed under C<guestfs_file_architecture>."
24831 msgstr ""
24832
24833 #. type: =head2
24834 #: ../src/guestfs-actions.pod:2605
24835 msgid "guestfs_inspect_get_distro"
24836 msgstr ""
24837
24838 #. type: verbatim
24839 #: ../src/guestfs-actions.pod:2607
24840 #, no-wrap
24841 msgid ""
24842 " char *\n"
24843 " guestfs_inspect_get_distro (guestfs_h *g,\n"
24844 "                             const char *root);\n"
24845 "\n"
24846 msgstr ""
24847
24848 #. type: =head2
24849 #: ../src/guestfs-actions.pod:2695
24850 msgid "guestfs_inspect_get_drive_mappings"
24851 msgstr ""
24852
24853 #. type: verbatim
24854 #: ../src/guestfs-actions.pod:2697
24855 #, no-wrap
24856 msgid ""
24857 " char **\n"
24858 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
24859 "                                     const char *root);\n"
24860 "\n"
24861 msgstr ""
24862
24863 #. type: textblock
24864 #: ../src/guestfs-actions.pod:2726
24865 msgid ""
24866 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24867 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
24868 msgstr ""
24869
24870 #. type: textblock
24871 #: ../src/guestfs-actions.pod:2730 ../src/guestfs-actions.pod:2998
24872 #: ../src/guestfs-actions.pod:3796 ../src/guestfs-actions.pod:5078
24873 #: ../src/guestfs-actions.pod:7132
24874 msgid ""
24875 "This function returns a NULL-terminated array of strings, or NULL if there "
24876 "was an error.  The array of strings will always have length C<2n+1>, where "
24877 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
24878 "caller must free the strings and the array after use>."
24879 msgstr ""
24880
24881 #. type: textblock
24882 #: ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:3192
24883 msgid "(Added in 1.9.17)"
24884 msgstr ""
24885
24886 #. type: =head2
24887 #: ../src/guestfs-actions.pod:2738
24888 msgid "guestfs_inspect_get_filesystems"
24889 msgstr ""
24890
24891 #. type: verbatim
24892 #: ../src/guestfs-actions.pod:2740
24893 #, no-wrap
24894 msgid ""
24895 " char **\n"
24896 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
24897 "                                  const char *root);\n"
24898 "\n"
24899 msgstr ""
24900
24901 #. type: textblock
24902 #: ../src/guestfs-actions.pod:2752
24903 msgid ""
24904 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24905 "C<guestfs_inspect_get_mountpoints>."
24906 msgstr ""
24907
24908 #. type: =head2
24909 #: ../src/guestfs-actions.pod:2761
24910 msgid "guestfs_inspect_get_format"
24911 msgstr ""
24912
24913 #. type: verbatim
24914 #: ../src/guestfs-actions.pod:2763
24915 #, no-wrap
24916 msgid ""
24917 " char *\n"
24918 " guestfs_inspect_get_format (guestfs_h *g,\n"
24919 "                             const char *root);\n"
24920 "\n"
24921 msgstr ""
24922
24923 #. type: textblock
24924 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:3228
24925 #: ../src/guestfs-actions.pod:3244 ../src/guestfs-actions.pod:3262
24926 #: ../src/guestfs-actions.pod:6028
24927 msgid "(Added in 1.9.4)"
24928 msgstr ""
24929
24930 #. type: =head2
24931 #: ../src/guestfs-actions.pod:2799
24932 msgid "guestfs_inspect_get_hostname"
24933 msgstr ""
24934
24935 #. type: verbatim
24936 #: ../src/guestfs-actions.pod:2801
24937 #, no-wrap
24938 msgid ""
24939 " char *\n"
24940 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
24941 "                               const char *root);\n"
24942 "\n"
24943 msgstr ""
24944
24945 #. type: textblock
24946 #: ../src/guestfs-actions.pod:2816
24947 msgid "(Added in 1.7.9)"
24948 msgstr ""
24949
24950 #. type: =head2
24951 #: ../src/guestfs-actions.pod:2818
24952 msgid "guestfs_inspect_get_icon"
24953 msgstr ""
24954
24955 #. type: verbatim
24956 #: ../src/guestfs-actions.pod:2820
24957 #, no-wrap
24958 msgid ""
24959 " char *\n"
24960 " guestfs_inspect_get_icon (guestfs_h *g,\n"
24961 "                           const char *root,\n"
24962 "                           size_t *size_r,\n"
24963 "                           ...);\n"
24964 "\n"
24965 msgstr ""
24966
24967 #. type: verbatim
24968 #: ../src/guestfs-actions.pod:2831
24969 #, no-wrap
24970 msgid ""
24971 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
24972 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
24973 "\n"
24974 msgstr ""
24975
24976 #. type: textblock
24977 #: ../src/guestfs-actions.pod:2898 ../src/guestfs-actions.pod:3723
24978 #: ../src/guestfs-actions.pod:4977
24979 msgid "(Added in 1.11.12)"
24980 msgstr ""
24981
24982 #. type: =head2
24983 #: ../src/guestfs-actions.pod:2900
24984 msgid "guestfs_inspect_get_icon_va"
24985 msgstr ""
24986
24987 #. type: verbatim
24988 #: ../src/guestfs-actions.pod:2902
24989 #, no-wrap
24990 msgid ""
24991 " char *\n"
24992 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
24993 "                              const char *root,\n"
24994 "                              size_t *size_r,\n"
24995 "                              va_list args);\n"
24996 "\n"
24997 msgstr ""
24998
24999 #. type: textblock
25000 #: ../src/guestfs-actions.pod:2908
25001 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
25002 msgstr ""
25003
25004 #. type: =head2
25005 #: ../src/guestfs-actions.pod:2912
25006 msgid "guestfs_inspect_get_icon_argv"
25007 msgstr ""
25008
25009 #. type: verbatim
25010 #: ../src/guestfs-actions.pod:2914
25011 #, no-wrap
25012 msgid ""
25013 " char *\n"
25014 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
25015 "                                const char *root,\n"
25016 "                                size_t *size_r,\n"
25017 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
25018 "\n"
25019 msgstr ""
25020
25021 #. type: textblock
25022 #: ../src/guestfs-actions.pod:2920
25023 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
25024 msgstr ""
25025
25026 #. type: =head2
25027 #: ../src/guestfs-actions.pod:2924
25028 msgid "guestfs_inspect_get_major_version"
25029 msgstr ""
25030
25031 #. type: verbatim
25032 #: ../src/guestfs-actions.pod:2926
25033 #, no-wrap
25034 msgid ""
25035 " int\n"
25036 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
25037 "                                    const char *root);\n"
25038 "\n"
25039 msgstr ""
25040
25041 #. type: =head2
25042 #: ../src/guestfs-actions.pod:2948
25043 msgid "guestfs_inspect_get_minor_version"
25044 msgstr ""
25045
25046 #. type: verbatim
25047 #: ../src/guestfs-actions.pod:2950
25048 #, no-wrap
25049 msgid ""
25050 " int\n"
25051 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
25052 "                                    const char *root);\n"
25053 "\n"
25054 msgstr ""
25055
25056 #. type: textblock
25057 #: ../src/guestfs-actions.pod:2959
25058 msgid ""
25059 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25060 "C<guestfs_inspect_get_major_version>."
25061 msgstr ""
25062
25063 #. type: =head2
25064 #: ../src/guestfs-actions.pod:2966
25065 msgid "guestfs_inspect_get_mountpoints"
25066 msgstr ""
25067
25068 #. type: verbatim
25069 #: ../src/guestfs-actions.pod:2968
25070 #, no-wrap
25071 msgid ""
25072 " char **\n"
25073 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
25074 "                                  const char *root);\n"
25075 "\n"
25076 msgstr ""
25077
25078 #. type: textblock
25079 #: ../src/guestfs-actions.pod:2989
25080 msgid ""
25081 "For operating systems like Windows which still use drive letters, this call "
25082 "will only return an entry for the first drive \"mounted on\" C</>.  For "
25083 "information about the mapping of drive letters to partitions, see "
25084 "C<guestfs_inspect_get_drive_mappings>."
25085 msgstr ""
25086
25087 #. type: textblock
25088 #: ../src/guestfs-actions.pod:2995
25089 msgid ""
25090 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25091 "C<guestfs_inspect_get_filesystems>."
25092 msgstr ""
25093
25094 #. type: =head2
25095 #: ../src/guestfs-actions.pod:3006
25096 msgid "guestfs_inspect_get_package_format"
25097 msgstr ""
25098
25099 #. type: verbatim
25100 #: ../src/guestfs-actions.pod:3008
25101 #, no-wrap
25102 msgid ""
25103 " char *\n"
25104 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
25105 "                                     const char *root);\n"
25106 "\n"
25107 msgstr ""
25108
25109 #. type: textblock
25110 #: ../src/guestfs-actions.pod:3012
25111 msgid ""
25112 "This function and C<guestfs_inspect_get_package_management> return the "
25113 "package format and package management tool used by the inspected operating "
25114 "system.  For example for Fedora these functions would return C<rpm> (package "
25115 "format) and C<yum> (package management)."
25116 msgstr ""
25117
25118 #. type: textblock
25119 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
25120 msgid "(Added in 1.7.5)"
25121 msgstr ""
25122
25123 #. type: =head2
25124 #: ../src/guestfs-actions.pod:3032
25125 msgid "guestfs_inspect_get_package_management"
25126 msgstr ""
25127
25128 #. type: verbatim
25129 #: ../src/guestfs-actions.pod:3034
25130 #, no-wrap
25131 msgid ""
25132 " char *\n"
25133 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
25134 "                                         const char *root);\n"
25135 "\n"
25136 msgstr ""
25137
25138 #. type: textblock
25139 #: ../src/guestfs-actions.pod:3038
25140 msgid ""
25141 "C<guestfs_inspect_get_package_format> and this function return the package "
25142 "format and package management tool used by the inspected operating system.  "
25143 "For example for Fedora these functions would return C<rpm> (package format) "
25144 "and C<yum> (package management)."
25145 msgstr ""
25146
25147 #. type: =head2
25148 #: ../src/guestfs-actions.pod:3060
25149 msgid "guestfs_inspect_get_product_name"
25150 msgstr ""
25151
25152 #. type: verbatim
25153 #: ../src/guestfs-actions.pod:3062
25154 #, no-wrap
25155 msgid ""
25156 " char *\n"
25157 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
25158 "                                   const char *root);\n"
25159 "\n"
25160 msgstr ""
25161
25162 #. type: =head2
25163 #: ../src/guestfs-actions.pod:3081
25164 msgid "guestfs_inspect_get_product_variant"
25165 msgstr ""
25166
25167 #. type: verbatim
25168 #: ../src/guestfs-actions.pod:3083
25169 #, no-wrap
25170 msgid ""
25171 " char *\n"
25172 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
25173 "                                      const char *root);\n"
25174 "\n"
25175 msgstr ""
25176
25177 #. type: textblock
25178 #: ../src/guestfs-actions.pod:3106
25179 msgid ""
25180 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25181 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
25182 msgstr ""
25183
25184 #. type: textblock
25185 #: ../src/guestfs-actions.pod:3113
25186 msgid "(Added in 1.9.13)"
25187 msgstr ""
25188
25189 #. type: =head2
25190 #: ../src/guestfs-actions.pod:3115
25191 msgid "guestfs_inspect_get_roots"
25192 msgstr ""
25193
25194 #. type: verbatim
25195 #: ../src/guestfs-actions.pod:3117
25196 #, no-wrap
25197 msgid ""
25198 " char **\n"
25199 " guestfs_inspect_get_roots (guestfs_h *g);\n"
25200 "\n"
25201 msgstr ""
25202
25203 #. type: textblock
25204 #: ../src/guestfs-actions.pod:3120
25205 msgid ""
25206 "This function is a convenient way to get the list of root devices, as "
25207 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
25208 "the whole inspection process."
25209 msgstr ""
25210
25211 #. type: textblock
25212 #: ../src/guestfs-actions.pod:3124
25213 msgid ""
25214 "This returns an empty list if either no root devices were found or the "
25215 "caller has not called C<guestfs_inspect_os>."
25216 msgstr ""
25217
25218 #. type: textblock
25219 #: ../src/guestfs-actions.pod:3133
25220 msgid "(Added in 1.7.3)"
25221 msgstr ""
25222
25223 #. type: =head2
25224 #: ../src/guestfs-actions.pod:3135
25225 msgid "guestfs_inspect_get_type"
25226 msgstr ""
25227
25228 #. type: verbatim
25229 #: ../src/guestfs-actions.pod:3137
25230 #, no-wrap
25231 msgid ""
25232 " char *\n"
25233 " guestfs_inspect_get_type (guestfs_h *g,\n"
25234 "                           const char *root);\n"
25235 "\n"
25236 msgstr ""
25237
25238 #. type: =head2
25239 #: ../src/guestfs-actions.pod:3174
25240 msgid "guestfs_inspect_get_windows_current_control_set"
25241 msgstr ""
25242
25243 #. type: verbatim
25244 #: ../src/guestfs-actions.pod:3176
25245 #, no-wrap
25246 msgid ""
25247 " char *\n"
25248 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
25249 "                                                  const char *root);\n"
25250 "\n"
25251 msgstr ""
25252
25253 #. type: =head2
25254 #: ../src/guestfs-actions.pod:3194
25255 msgid "guestfs_inspect_get_windows_systemroot"
25256 msgstr ""
25257
25258 #. type: verbatim
25259 #: ../src/guestfs-actions.pod:3196
25260 #, no-wrap
25261 msgid ""
25262 " char *\n"
25263 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
25264 "                                         const char *root);\n"
25265 "\n"
25266 msgstr ""
25267
25268 #. type: textblock
25269 #: ../src/guestfs-actions.pod:3212
25270 msgid "(Added in 1.5.25)"
25271 msgstr ""
25272
25273 #. type: =head2
25274 #: ../src/guestfs-actions.pod:3214
25275 msgid "guestfs_inspect_is_live"
25276 msgstr ""
25277
25278 #. type: verbatim
25279 #: ../src/guestfs-actions.pod:3216
25280 #, no-wrap
25281 msgid ""
25282 " int\n"
25283 " guestfs_inspect_is_live (guestfs_h *g,\n"
25284 "                          const char *root);\n"
25285 "\n"
25286 msgstr ""
25287
25288 #. type: textblock
25289 #: ../src/guestfs-actions.pod:3220
25290 msgid ""
25291 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25292 "disk), then this returns true if a live image was detected on the disk."
25293 msgstr ""
25294
25295 #. type: =head2
25296 #: ../src/guestfs-actions.pod:3230
25297 msgid "guestfs_inspect_is_multipart"
25298 msgstr ""
25299
25300 #. type: verbatim
25301 #: ../src/guestfs-actions.pod:3232
25302 #, no-wrap
25303 msgid ""
25304 " int\n"
25305 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
25306 "                               const char *root);\n"
25307 "\n"
25308 msgstr ""
25309
25310 #. type: textblock
25311 #: ../src/guestfs-actions.pod:3236
25312 msgid ""
25313 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25314 "disk), then this returns true if the disk is part of a set."
25315 msgstr ""
25316
25317 #. type: =head2
25318 #: ../src/guestfs-actions.pod:3246
25319 msgid "guestfs_inspect_is_netinst"
25320 msgstr ""
25321
25322 #. type: verbatim
25323 #: ../src/guestfs-actions.pod:3248
25324 #, no-wrap
25325 msgid ""
25326 " int\n"
25327 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
25328 "                             const char *root);\n"
25329 "\n"
25330 msgstr ""
25331
25332 #. type: textblock
25333 #: ../src/guestfs-actions.pod:3252
25334 msgid ""
25335 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25336 "disk), then this returns true if the disk is a network installer, ie. not a "
25337 "self-contained install CD but one which is likely to require network access "
25338 "to complete the install."
25339 msgstr ""
25340
25341 #. type: =head2
25342 #: ../src/guestfs-actions.pod:3264
25343 msgid "guestfs_inspect_list_applications"
25344 msgstr ""
25345
25346 #. type: verbatim
25347 #: ../src/guestfs-actions.pod:3266
25348 #, no-wrap
25349 msgid ""
25350 " struct guestfs_application_list *\n"
25351 " guestfs_inspect_list_applications (guestfs_h *g,\n"
25352 "                                    const char *root);\n"
25353 "\n"
25354 msgstr ""
25355
25356 #. type: textblock
25357 #: ../src/guestfs-actions.pod:3272
25358 msgid ""
25359 "I<Note:> This call works differently from other parts of the inspection "
25360 "API.  You have to call C<guestfs_inspect_os>, then "
25361 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
25362 "this.  Listing applications is a significantly more difficult operation "
25363 "which requires access to the full filesystem.  Also note that unlike the "
25364 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
25365 "the libguestfs handle, this call actually reads parts of the mounted "
25366 "filesystems during the call."
25367 msgstr ""
25368
25369 #. type: textblock
25370 #: ../src/guestfs-actions.pod:3362
25371 msgid ""
25372 "This function returns a C<struct guestfs_application_list *>, or NULL if "
25373 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
25374 "after use>."
25375 msgstr ""
25376
25377 #. type: textblock
25378 #: ../src/guestfs-actions.pod:3366
25379 msgid "(Added in 1.7.8)"
25380 msgstr ""
25381
25382 #. type: =head2
25383 #: ../src/guestfs-actions.pod:3368
25384 msgid "guestfs_inspect_os"
25385 msgstr ""
25386
25387 #. type: verbatim
25388 #: ../src/guestfs-actions.pod:3370
25389 #, no-wrap
25390 msgid ""
25391 " char **\n"
25392 " guestfs_inspect_os (guestfs_h *g);\n"
25393 "\n"
25394 msgstr ""
25395
25396 #. type: textblock
25397 #: ../src/guestfs-actions.pod:3386
25398 msgid ""
25399 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
25400 "functions in order to query further information about each operating system, "
25401 "such as the name and version."
25402 msgstr ""
25403
25404 #. type: textblock
25405 #: ../src/guestfs-actions.pod:3391
25406 msgid ""
25407 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
25408 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
25409 "the contents.  This should be called with no disks currently mounted.  The "
25410 "function may also use Augeas, so any existing Augeas handle will be closed."
25411 msgstr ""
25412
25413 #. type: textblock
25414 #: ../src/guestfs-actions.pod:3403 ../src/guestfs-actions.pod:3734
25415 #: ../src/guestfs-actions.pod:3816
25416 msgid "See also C<guestfs_list_filesystems>."
25417 msgstr ""
25418
25419 #. type: =head2
25420 #: ../src/guestfs-actions.pod:3411
25421 msgid "guestfs_is_blockdev"
25422 msgstr ""
25423
25424 #. type: verbatim
25425 #: ../src/guestfs-actions.pod:3413
25426 #, no-wrap
25427 msgid ""
25428 " int\n"
25429 " guestfs_is_blockdev (guestfs_h *g,\n"
25430 "                      const char *path);\n"
25431 "\n"
25432 msgstr ""
25433
25434 #. type: textblock
25435 #: ../src/guestfs-actions.pod:3420 ../src/guestfs-actions.pod:3449
25436 #: ../src/guestfs-actions.pod:3479 ../src/guestfs-actions.pod:3494
25437 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3566
25438 #: ../src/guestfs-actions.pod:3581
25439 msgid "See also C<guestfs_stat>."
25440 msgstr ""
25441
25442 #. type: textblock
25443 #: ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:3453
25444 #: ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3570
25445 #: ../src/guestfs-actions.pod:3585
25446 msgid "(Added in 1.5.10)"
25447 msgstr ""
25448
25449 #. type: =head2
25450 #: ../src/guestfs-actions.pod:3426
25451 msgid "guestfs_is_busy"
25452 msgstr ""
25453
25454 #. type: verbatim
25455 #: ../src/guestfs-actions.pod:3428
25456 #, no-wrap
25457 msgid ""
25458 " int\n"
25459 " guestfs_is_busy (guestfs_h *g);\n"
25460 "\n"
25461 msgstr ""
25462
25463 #. type: =head2
25464 #: ../src/guestfs-actions.pod:3440
25465 msgid "guestfs_is_chardev"
25466 msgstr ""
25467
25468 #. type: verbatim
25469 #: ../src/guestfs-actions.pod:3442
25470 #, no-wrap
25471 msgid ""
25472 " int\n"
25473 " guestfs_is_chardev (guestfs_h *g,\n"
25474 "                     const char *path);\n"
25475 "\n"
25476 msgstr ""
25477
25478 #. type: =head2
25479 #: ../src/guestfs-actions.pod:3455
25480 msgid "guestfs_is_config"
25481 msgstr ""
25482
25483 #. type: verbatim
25484 #: ../src/guestfs-actions.pod:3457
25485 #, no-wrap
25486 msgid ""
25487 " int\n"
25488 " guestfs_is_config (guestfs_h *g);\n"
25489 "\n"
25490 msgstr ""
25491
25492 #. type: =head2
25493 #: ../src/guestfs-actions.pod:3469
25494 msgid "guestfs_is_dir"
25495 msgstr ""
25496
25497 #. type: verbatim
25498 #: ../src/guestfs-actions.pod:3471
25499 #, no-wrap
25500 msgid ""
25501 " int\n"
25502 " guestfs_is_dir (guestfs_h *g,\n"
25503 "                 const char *path);\n"
25504 "\n"
25505 msgstr ""
25506
25507 #. type: =head2
25508 #: ../src/guestfs-actions.pod:3485
25509 msgid "guestfs_is_fifo"
25510 msgstr ""
25511
25512 #. type: verbatim
25513 #: ../src/guestfs-actions.pod:3487
25514 #, no-wrap
25515 msgid ""
25516 " int\n"
25517 " guestfs_is_fifo (guestfs_h *g,\n"
25518 "                  const char *path);\n"
25519 "\n"
25520 msgstr ""
25521
25522 #. type: =head2
25523 #: ../src/guestfs-actions.pod:3500
25524 msgid "guestfs_is_file"
25525 msgstr ""
25526
25527 #. type: verbatim
25528 #: ../src/guestfs-actions.pod:3502
25529 #, no-wrap
25530 msgid ""
25531 " int\n"
25532 " guestfs_is_file (guestfs_h *g,\n"
25533 "                  const char *path);\n"
25534 "\n"
25535 msgstr ""
25536
25537 #. type: =head2
25538 #: ../src/guestfs-actions.pod:3516
25539 msgid "guestfs_is_launching"
25540 msgstr ""
25541
25542 #. type: verbatim
25543 #: ../src/guestfs-actions.pod:3518
25544 #, no-wrap
25545 msgid ""
25546 " int\n"
25547 " guestfs_is_launching (guestfs_h *g);\n"
25548 "\n"
25549 msgstr ""
25550
25551 #. type: =head2
25552 #: ../src/guestfs-actions.pod:3530
25553 msgid "guestfs_is_lv"
25554 msgstr ""
25555
25556 #. type: verbatim
25557 #: ../src/guestfs-actions.pod:3532
25558 #, no-wrap
25559 msgid ""
25560 " int\n"
25561 " guestfs_is_lv (guestfs_h *g,\n"
25562 "                const char *device);\n"
25563 "\n"
25564 msgstr ""
25565
25566 #. type: =head2
25567 #: ../src/guestfs-actions.pod:3543
25568 msgid "guestfs_is_ready"
25569 msgstr ""
25570
25571 #. type: verbatim
25572 #: ../src/guestfs-actions.pod:3545
25573 #, no-wrap
25574 msgid ""
25575 " int\n"
25576 " guestfs_is_ready (guestfs_h *g);\n"
25577 "\n"
25578 msgstr ""
25579
25580 #. type: =head2
25581 #: ../src/guestfs-actions.pod:3557
25582 msgid "guestfs_is_socket"
25583 msgstr ""
25584
25585 #. type: verbatim
25586 #: ../src/guestfs-actions.pod:3559
25587 #, no-wrap
25588 msgid ""
25589 " int\n"
25590 " guestfs_is_socket (guestfs_h *g,\n"
25591 "                    const char *path);\n"
25592 "\n"
25593 msgstr ""
25594
25595 #. type: =head2
25596 #: ../src/guestfs-actions.pod:3572
25597 msgid "guestfs_is_symlink"
25598 msgstr ""
25599
25600 #. type: verbatim
25601 #: ../src/guestfs-actions.pod:3574
25602 #, no-wrap
25603 msgid ""
25604 " int\n"
25605 " guestfs_is_symlink (guestfs_h *g,\n"
25606 "                     const char *path);\n"
25607 "\n"
25608 msgstr ""
25609
25610 #. type: =head2
25611 #: ../src/guestfs-actions.pod:3587
25612 msgid "guestfs_is_zero"
25613 msgstr ""
25614
25615 #. type: verbatim
25616 #: ../src/guestfs-actions.pod:3589
25617 #, no-wrap
25618 msgid ""
25619 " int\n"
25620 " guestfs_is_zero (guestfs_h *g,\n"
25621 "                  const char *path);\n"
25622 "\n"
25623 msgstr ""
25624
25625 #. type: textblock
25626 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:3612
25627 msgid "(Added in 1.11.8)"
25628 msgstr ""
25629
25630 #. type: =head2
25631 #: ../src/guestfs-actions.pod:3600
25632 msgid "guestfs_is_zero_device"
25633 msgstr ""
25634
25635 #. type: verbatim
25636 #: ../src/guestfs-actions.pod:3602
25637 #, no-wrap
25638 msgid ""
25639 " int\n"
25640 " guestfs_is_zero_device (guestfs_h *g,\n"
25641 "                         const char *device);\n"
25642 "\n"
25643 msgstr ""
25644
25645 #. type: =head2
25646 #: ../src/guestfs-actions.pod:3614
25647 msgid "guestfs_kill_subprocess"
25648 msgstr ""
25649
25650 #. type: verbatim
25651 #: ../src/guestfs-actions.pod:3616
25652 #, no-wrap
25653 msgid ""
25654 " int\n"
25655 " guestfs_kill_subprocess (guestfs_h *g);\n"
25656 "\n"
25657 msgstr ""
25658
25659 #. type: =head2
25660 #: ../src/guestfs-actions.pod:3625
25661 msgid "guestfs_launch"
25662 msgstr ""
25663
25664 #. type: verbatim
25665 #: ../src/guestfs-actions.pod:3627
25666 #, no-wrap
25667 msgid ""
25668 " int\n"
25669 " guestfs_launch (guestfs_h *g);\n"
25670 "\n"
25671 msgstr ""
25672
25673 #. type: =head2
25674 #: ../src/guestfs-actions.pod:3645
25675 msgid "guestfs_lchown"
25676 msgstr ""
25677
25678 #. type: verbatim
25679 #: ../src/guestfs-actions.pod:3647
25680 #, no-wrap
25681 msgid ""
25682 " int\n"
25683 " guestfs_lchown (guestfs_h *g,\n"
25684 "                 int owner,\n"
25685 "                 int group,\n"
25686 "                 const char *path);\n"
25687 "\n"
25688 msgstr ""
25689
25690 #. type: textblock
25691 #: ../src/guestfs-actions.pod:3653
25692 msgid ""
25693 "Change the file owner to C<owner> and group to C<group>.  This is like "
25694 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
25695 "changed, not the target."
25696 msgstr ""
25697
25698 #. type: =head2
25699 #: ../src/guestfs-actions.pod:3665
25700 msgid "guestfs_lgetxattr"
25701 msgstr ""
25702
25703 #. type: verbatim
25704 #: ../src/guestfs-actions.pod:3667
25705 #, no-wrap
25706 msgid ""
25707 " char *\n"
25708 " guestfs_lgetxattr (guestfs_h *g,\n"
25709 "                    const char *path,\n"
25710 "                    const char *name,\n"
25711 "                    size_t *size_r);\n"
25712 "\n"
25713 msgstr ""
25714
25715 #. type: textblock
25716 #: ../src/guestfs-actions.pod:3687
25717 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
25718 msgstr ""
25719
25720 #. type: =head2
25721 #: ../src/guestfs-actions.pod:3695
25722 msgid "guestfs_lgetxattrs"
25723 msgstr ""
25724
25725 #. type: verbatim
25726 #: ../src/guestfs-actions.pod:3697
25727 #, no-wrap
25728 msgid ""
25729 " struct guestfs_xattr_list *\n"
25730 " guestfs_lgetxattrs (guestfs_h *g,\n"
25731 "                     const char *path);\n"
25732 "\n"
25733 msgstr ""
25734
25735 #. type: textblock
25736 #: ../src/guestfs-actions.pod:3701
25737 msgid ""
25738 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
25739 "then it returns the extended attributes of the link itself."
25740 msgstr ""
25741
25742 #. type: =head2
25743 #: ../src/guestfs-actions.pod:3711
25744 msgid "guestfs_list_9p"
25745 msgstr ""
25746
25747 #. type: verbatim
25748 #: ../src/guestfs-actions.pod:3713
25749 #, no-wrap
25750 msgid ""
25751 " char **\n"
25752 " guestfs_list_9p (guestfs_h *g);\n"
25753 "\n"
25754 msgstr ""
25755
25756 #. type: =head2
25757 #: ../src/guestfs-actions.pod:3725
25758 msgid "guestfs_list_devices"
25759 msgstr ""
25760
25761 #. type: verbatim
25762 #: ../src/guestfs-actions.pod:3727
25763 #, no-wrap
25764 msgid ""
25765 " char **\n"
25766 " guestfs_list_devices (guestfs_h *g);\n"
25767 "\n"
25768 msgstr ""
25769
25770 #. type: =head2
25771 #: ../src/guestfs-actions.pod:3742
25772 msgid "guestfs_list_dm_devices"
25773 msgstr ""
25774
25775 #. type: verbatim
25776 #: ../src/guestfs-actions.pod:3744
25777 #, no-wrap
25778 msgid ""
25779 " char **\n"
25780 " guestfs_list_dm_devices (guestfs_h *g);\n"
25781 "\n"
25782 msgstr ""
25783
25784 #. type: textblock
25785 #: ../src/guestfs-actions.pod:3749
25786 msgid ""
25787 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
25788 "previous call to C<guestfs_luks_open>."
25789 msgstr ""
25790
25791 #. type: textblock
25792 #: ../src/guestfs-actions.pod:3752
25793 msgid ""
25794 "Device mapper devices which correspond to logical volumes are I<not> "
25795 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
25796 "volumes."
25797 msgstr ""
25798
25799 #. type: textblock
25800 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:5216
25801 msgid "(Added in 1.11.15)"
25802 msgstr ""
25803
25804 #. type: =head2
25805 #: ../src/guestfs-actions.pod:3762
25806 msgid "guestfs_list_filesystems"
25807 msgstr ""
25808
25809 #. type: verbatim
25810 #: ../src/guestfs-actions.pod:3764
25811 #, no-wrap
25812 msgid ""
25813 " char **\n"
25814 " guestfs_list_filesystems (guestfs_h *g);\n"
25815 "\n"
25816 msgstr ""
25817
25818 #. type: textblock
25819 #: ../src/guestfs-actions.pod:3784
25820 msgid ""
25821 "This command runs other libguestfs commands, which might include "
25822 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
25823 "soon after launch and only when nothing is mounted."
25824 msgstr ""
25825
25826 #. type: textblock
25827 #: ../src/guestfs-actions.pod:3788
25828 msgid ""
25829 "Not all of the filesystems returned will be mountable.  In particular, swap "
25830 "partitions are returned in the list.  Also this command does not check that "
25831 "each filesystem found is valid and mountable, and some filesystems might be "
25832 "mountable but require special options.  Filesystems may not all belong to a "
25833 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
25834 msgstr ""
25835
25836 #. type: textblock
25837 #: ../src/guestfs-actions.pod:3802 ../src/guestfs-actions.pod:5577
25838 msgid "(Added in 1.5.15)"
25839 msgstr ""
25840
25841 #. type: =head2
25842 #: ../src/guestfs-actions.pod:3804
25843 msgid "guestfs_list_partitions"
25844 msgstr ""
25845
25846 #. type: verbatim
25847 #: ../src/guestfs-actions.pod:3806
25848 #, no-wrap
25849 msgid ""
25850 " char **\n"
25851 " guestfs_list_partitions (guestfs_h *g);\n"
25852 "\n"
25853 msgstr ""
25854
25855 #. type: textblock
25856 #: ../src/guestfs-actions.pod:3813
25857 msgid ""
25858 "This does not return logical volumes.  For that you will need to call "
25859 "C<guestfs_lvs>."
25860 msgstr ""
25861
25862 #. type: =head2
25863 #: ../src/guestfs-actions.pod:3824
25864 msgid "guestfs_ll"
25865 msgstr ""
25866
25867 #. type: verbatim
25868 #: ../src/guestfs-actions.pod:3826
25869 #, no-wrap
25870 msgid ""
25871 " char *\n"
25872 " guestfs_ll (guestfs_h *g,\n"
25873 "             const char *directory);\n"
25874 "\n"
25875 msgstr ""
25876
25877 #. type: =head2
25878 #: ../src/guestfs-actions.pod:3841
25879 msgid "guestfs_ln"
25880 msgstr ""
25881
25882 #. type: verbatim
25883 #: ../src/guestfs-actions.pod:3843
25884 #, no-wrap
25885 msgid ""
25886 " int\n"
25887 " guestfs_ln (guestfs_h *g,\n"
25888 "             const char *target,\n"
25889 "             const char *linkname);\n"
25890 "\n"
25891 msgstr ""
25892
25893 #. type: =head2
25894 #: ../src/guestfs-actions.pod:3854
25895 msgid "guestfs_ln_f"
25896 msgstr ""
25897
25898 #. type: verbatim
25899 #: ../src/guestfs-actions.pod:3856
25900 #, no-wrap
25901 msgid ""
25902 " int\n"
25903 " guestfs_ln_f (guestfs_h *g,\n"
25904 "               const char *target,\n"
25905 "               const char *linkname);\n"
25906 "\n"
25907 msgstr ""
25908
25909 #. type: =head2
25910 #: ../src/guestfs-actions.pod:3868
25911 msgid "guestfs_ln_s"
25912 msgstr ""
25913
25914 #. type: verbatim
25915 #: ../src/guestfs-actions.pod:3870
25916 #, no-wrap
25917 msgid ""
25918 " int\n"
25919 " guestfs_ln_s (guestfs_h *g,\n"
25920 "               const char *target,\n"
25921 "               const char *linkname);\n"
25922 "\n"
25923 msgstr ""
25924
25925 #. type: =head2
25926 #: ../src/guestfs-actions.pod:3881
25927 msgid "guestfs_ln_sf"
25928 msgstr ""
25929
25930 #. type: verbatim
25931 #: ../src/guestfs-actions.pod:3883
25932 #, no-wrap
25933 msgid ""
25934 " int\n"
25935 " guestfs_ln_sf (guestfs_h *g,\n"
25936 "                const char *target,\n"
25937 "                const char *linkname);\n"
25938 "\n"
25939 msgstr ""
25940
25941 #. type: =head2
25942 #: ../src/guestfs-actions.pod:3895
25943 msgid "guestfs_lremovexattr"
25944 msgstr ""
25945
25946 #. type: verbatim
25947 #: ../src/guestfs-actions.pod:3897
25948 #, no-wrap
25949 msgid ""
25950 " int\n"
25951 " guestfs_lremovexattr (guestfs_h *g,\n"
25952 "                       const char *xattr,\n"
25953 "                       const char *path);\n"
25954 "\n"
25955 msgstr ""
25956
25957 #. type: textblock
25958 #: ../src/guestfs-actions.pod:3902
25959 msgid ""
25960 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
25961 "link, then it removes an extended attribute of the link itself."
25962 msgstr ""
25963
25964 #. type: =head2
25965 #: ../src/guestfs-actions.pod:3910
25966 msgid "guestfs_ls"
25967 msgstr ""
25968
25969 #. type: verbatim
25970 #: ../src/guestfs-actions.pod:3912
25971 #, no-wrap
25972 msgid ""
25973 " char **\n"
25974 " guestfs_ls (guestfs_h *g,\n"
25975 "             const char *directory);\n"
25976 "\n"
25977 msgstr ""
25978
25979 #. type: textblock
25980 #: ../src/guestfs-actions.pod:3920
25981 msgid ""
25982 "This command is mostly useful for interactive sessions.  Programs should "
25983 "probably use C<guestfs_readdir> instead."
25984 msgstr ""
25985
25986 #. type: =head2
25987 #: ../src/guestfs-actions.pod:3929
25988 msgid "guestfs_lsetxattr"
25989 msgstr ""
25990
25991 #. type: verbatim
25992 #: ../src/guestfs-actions.pod:3931
25993 #, no-wrap
25994 msgid ""
25995 " int\n"
25996 " guestfs_lsetxattr (guestfs_h *g,\n"
25997 "                    const char *xattr,\n"
25998 "                    const char *val,\n"
25999 "                    int vallen,\n"
26000 "                    const char *path);\n"
26001 "\n"
26002 msgstr ""
26003
26004 #. type: textblock
26005 #: ../src/guestfs-actions.pod:3938
26006 msgid ""
26007 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
26008 "then it sets an extended attribute of the link itself."
26009 msgstr ""
26010
26011 #. type: =head2
26012 #: ../src/guestfs-actions.pod:3946
26013 msgid "guestfs_lstat"
26014 msgstr ""
26015
26016 #. type: verbatim
26017 #: ../src/guestfs-actions.pod:3948
26018 #, no-wrap
26019 msgid ""
26020 " struct guestfs_stat *\n"
26021 " guestfs_lstat (guestfs_h *g,\n"
26022 "                const char *path);\n"
26023 "\n"
26024 msgstr ""
26025
26026 #. type: textblock
26027 #: ../src/guestfs-actions.pod:3954
26028 msgid ""
26029 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
26030 "link, then the link is stat-ed, not the file it refers to."
26031 msgstr ""
26032
26033 #. type: textblock
26034 #: ../src/guestfs-actions.pod:3960 ../src/guestfs-actions.pod:6735
26035 msgid ""
26036 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
26037 "error.  I<The caller must call C<guestfs_free_stat> after use>."
26038 msgstr ""
26039
26040 #. type: textblock
26041 #: ../src/guestfs-actions.pod:3964 ../src/guestfs-actions.pod:6739
26042 #: ../src/guestfs-actions.pod:6757 ../src/guestfs-actions.pod:7138
26043 msgid "(Added in 0.9.2)"
26044 msgstr ""
26045
26046 #. type: =head2
26047 #: ../src/guestfs-actions.pod:3966
26048 msgid "guestfs_lstatlist"
26049 msgstr ""
26050
26051 #. type: verbatim
26052 #: ../src/guestfs-actions.pod:3968
26053 #, no-wrap
26054 msgid ""
26055 " struct guestfs_stat_list *\n"
26056 " guestfs_lstatlist (guestfs_h *g,\n"
26057 "                    const char *path,\n"
26058 "                    char *const *names);\n"
26059 "\n"
26060 msgstr ""
26061
26062 #. type: textblock
26063 #: ../src/guestfs-actions.pod:3973
26064 msgid ""
26065 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
26066 "files, where all files are in the directory C<path>.  C<names> is the list "
26067 "of files from this directory."
26068 msgstr ""
26069
26070 #. type: textblock
26071 #: ../src/guestfs-actions.pod:3982
26072 msgid ""
26073 "This call is intended for programs that want to efficiently list a directory "
26074 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
26075 "for a similarly efficient call for getting extended attributes.  Very long "
26076 "directory listings might cause the protocol message size to be exceeded, "
26077 "causing this call to fail.  The caller must split up such requests into "
26078 "smaller groups of names."
26079 msgstr ""
26080
26081 #. type: textblock
26082 #: ../src/guestfs-actions.pod:3990
26083 msgid ""
26084 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
26085 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
26086 msgstr ""
26087
26088 #. type: =head2
26089 #: ../src/guestfs-actions.pod:3996
26090 msgid "guestfs_luks_add_key"
26091 msgstr ""
26092
26093 #. type: verbatim
26094 #: ../src/guestfs-actions.pod:3998
26095 #, no-wrap
26096 msgid ""
26097 " int\n"
26098 " guestfs_luks_add_key (guestfs_h *g,\n"
26099 "                       const char *device,\n"
26100 "                       const char *key,\n"
26101 "                       const char *newkey,\n"
26102 "                       int keyslot);\n"
26103 "\n"
26104 msgstr ""
26105
26106 #. type: textblock
26107 #: ../src/guestfs-actions.pod:4010
26108 msgid ""
26109 "Note that if C<keyslot> already contains a key, then this command will "
26110 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
26111 msgstr ""
26112
26113 #. type: textblock
26114 #: ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4056
26115 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4099
26116 #: ../src/guestfs-actions.pod:4134 ../src/guestfs-actions.pod:4153
26117 msgid ""
26118 "This function takes a key or passphrase parameter which could contain "
26119 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
26120 "information."
26121 msgstr ""
26122
26123 #. type: textblock
26124 #: ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4060
26125 #: ../src/guestfs-actions.pod:4083 ../src/guestfs-actions.pod:4103
26126 msgid "(Added in 1.5.2)"
26127 msgstr ""
26128
26129 #. type: =head2
26130 #: ../src/guestfs-actions.pod:4022
26131 msgid "guestfs_luks_close"
26132 msgstr ""
26133
26134 #. type: verbatim
26135 #: ../src/guestfs-actions.pod:4024
26136 #, no-wrap
26137 msgid ""
26138 " int\n"
26139 " guestfs_luks_close (guestfs_h *g,\n"
26140 "                     const char *device);\n"
26141 "\n"
26142 msgstr ""
26143
26144 #. type: textblock
26145 #: ../src/guestfs-actions.pod:4028
26146 msgid ""
26147 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
26148 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
26149 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
26150 "underlying block device."
26151 msgstr ""
26152
26153 #. type: textblock
26154 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4138
26155 #: ../src/guestfs-actions.pod:4157 ../src/guestfs-actions.pod:4207
26156 #: ../src/guestfs-actions.pod:4255
26157 msgid "(Added in 1.5.1)"
26158 msgstr ""
26159
26160 #. type: =head2
26161 #: ../src/guestfs-actions.pod:4038
26162 msgid "guestfs_luks_format"
26163 msgstr ""
26164
26165 #. type: verbatim
26166 #: ../src/guestfs-actions.pod:4040
26167 #, no-wrap
26168 msgid ""
26169 " int\n"
26170 " guestfs_luks_format (guestfs_h *g,\n"
26171 "                      const char *device,\n"
26172 "                      const char *key,\n"
26173 "                      int keyslot);\n"
26174 "\n"
26175 msgstr ""
26176
26177 #. type: =head2
26178 #: ../src/guestfs-actions.pod:4062
26179 msgid "guestfs_luks_format_cipher"
26180 msgstr ""
26181
26182 #. type: verbatim
26183 #: ../src/guestfs-actions.pod:4064
26184 #, no-wrap
26185 msgid ""
26186 " int\n"
26187 " guestfs_luks_format_cipher (guestfs_h *g,\n"
26188 "                             const char *device,\n"
26189 "                             const char *key,\n"
26190 "                             int keyslot,\n"
26191 "                             const char *cipher);\n"
26192 "\n"
26193 msgstr ""
26194
26195 #. type: textblock
26196 #: ../src/guestfs-actions.pod:4071
26197 msgid ""
26198 "This command is the same as C<guestfs_luks_format> but it also allows you to "
26199 "set the C<cipher> used."
26200 msgstr ""
26201
26202 #. type: =head2
26203 #: ../src/guestfs-actions.pod:4085
26204 msgid "guestfs_luks_kill_slot"
26205 msgstr ""
26206
26207 #. type: verbatim
26208 #: ../src/guestfs-actions.pod:4087
26209 #, no-wrap
26210 msgid ""
26211 " int\n"
26212 " guestfs_luks_kill_slot (guestfs_h *g,\n"
26213 "                         const char *device,\n"
26214 "                         const char *key,\n"
26215 "                         int keyslot);\n"
26216 "\n"
26217 msgstr ""
26218
26219 #. type: =head2
26220 #: ../src/guestfs-actions.pod:4105
26221 msgid "guestfs_luks_open"
26222 msgstr ""
26223
26224 #. type: verbatim
26225 #: ../src/guestfs-actions.pod:4107
26226 #, no-wrap
26227 msgid ""
26228 " int\n"
26229 " guestfs_luks_open (guestfs_h *g,\n"
26230 "                    const char *device,\n"
26231 "                    const char *key,\n"
26232 "                    const char *mapname);\n"
26233 "\n"
26234 msgstr ""
26235
26236 #. type: textblock
26237 #: ../src/guestfs-actions.pod:4125
26238 msgid ""
26239 "If this block device contains LVM volume groups, then calling "
26240 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
26241 "visible."
26242 msgstr ""
26243
26244 #. type: textblock
26245 #: ../src/guestfs-actions.pod:4129
26246 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
26247 msgstr ""
26248
26249 #. type: =head2
26250 #: ../src/guestfs-actions.pod:4140
26251 msgid "guestfs_luks_open_ro"
26252 msgstr ""
26253
26254 #. type: verbatim
26255 #: ../src/guestfs-actions.pod:4142
26256 #, no-wrap
26257 msgid ""
26258 " int\n"
26259 " guestfs_luks_open_ro (guestfs_h *g,\n"
26260 "                       const char *device,\n"
26261 "                       const char *key,\n"
26262 "                       const char *mapname);\n"
26263 "\n"
26264 msgstr ""
26265
26266 #. type: textblock
26267 #: ../src/guestfs-actions.pod:4148
26268 msgid ""
26269 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
26270 "created."
26271 msgstr ""
26272
26273 #. type: =head2
26274 #: ../src/guestfs-actions.pod:4159
26275 msgid "guestfs_lvcreate"
26276 msgstr ""
26277
26278 #. type: verbatim
26279 #: ../src/guestfs-actions.pod:4161
26280 #, no-wrap
26281 msgid ""
26282 " int\n"
26283 " guestfs_lvcreate (guestfs_h *g,\n"
26284 "                   const char *logvol,\n"
26285 "                   const char *volgroup,\n"
26286 "                   int mbytes);\n"
26287 "\n"
26288 msgstr ""
26289
26290 #. type: =head2
26291 #: ../src/guestfs-actions.pod:4174
26292 msgid "guestfs_lvm_canonical_lv_name"
26293 msgstr ""
26294
26295 #. type: verbatim
26296 #: ../src/guestfs-actions.pod:4176
26297 #, no-wrap
26298 msgid ""
26299 " char *\n"
26300 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
26301 "                                const char *lvname);\n"
26302 "\n"
26303 msgstr ""
26304
26305 #. type: textblock
26306 #: ../src/guestfs-actions.pod:4187
26307 msgid "See also C<guestfs_is_lv>."
26308 msgstr ""
26309
26310 #. type: textblock
26311 #: ../src/guestfs-actions.pod:4192
26312 msgid "(Added in 1.5.24)"
26313 msgstr ""
26314
26315 #. type: =head2
26316 #: ../src/guestfs-actions.pod:4194
26317 msgid "guestfs_lvm_clear_filter"
26318 msgstr ""
26319
26320 #. type: verbatim
26321 #: ../src/guestfs-actions.pod:4196
26322 #, no-wrap
26323 msgid ""
26324 " int\n"
26325 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
26326 "\n"
26327 msgstr ""
26328
26329 #. type: textblock
26330 #: ../src/guestfs-actions.pod:4199
26331 msgid ""
26332 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
26333 "see every block device."
26334 msgstr ""
26335
26336 #. type: =head2
26337 #: ../src/guestfs-actions.pod:4209
26338 msgid "guestfs_lvm_remove_all"
26339 msgstr ""
26340
26341 #. type: verbatim
26342 #: ../src/guestfs-actions.pod:4211
26343 #, no-wrap
26344 msgid ""
26345 " int\n"
26346 " guestfs_lvm_remove_all (guestfs_h *g);\n"
26347 "\n"
26348 msgstr ""
26349
26350 #. type: =head2
26351 #: ../src/guestfs-actions.pod:4224
26352 msgid "guestfs_lvm_set_filter"
26353 msgstr ""
26354
26355 #. type: verbatim
26356 #: ../src/guestfs-actions.pod:4226
26357 #, no-wrap
26358 msgid ""
26359 " int\n"
26360 " guestfs_lvm_set_filter (guestfs_h *g,\n"
26361 "                         char *const *devices);\n"
26362 "\n"
26363 msgstr ""
26364
26365 #. type: =head2
26366 #: ../src/guestfs-actions.pod:4257
26367 msgid "guestfs_lvremove"
26368 msgstr ""
26369
26370 #. type: verbatim
26371 #: ../src/guestfs-actions.pod:4259
26372 #, no-wrap
26373 msgid ""
26374 " int\n"
26375 " guestfs_lvremove (guestfs_h *g,\n"
26376 "                   const char *device);\n"
26377 "\n"
26378 msgstr ""
26379
26380 #. type: textblock
26381 #: ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:5674
26382 #: ../src/guestfs-actions.pod:7508
26383 msgid "(Added in 1.0.13)"
26384 msgstr ""
26385
26386 #. type: =head2
26387 #: ../src/guestfs-actions.pod:4273
26388 msgid "guestfs_lvrename"
26389 msgstr ""
26390
26391 #. type: verbatim
26392 #: ../src/guestfs-actions.pod:4275
26393 #, no-wrap
26394 msgid ""
26395 " int\n"
26396 " guestfs_lvrename (guestfs_h *g,\n"
26397 "                   const char *logvol,\n"
26398 "                   const char *newlogvol);\n"
26399 "\n"
26400 msgstr ""
26401
26402 #. type: textblock
26403 #: ../src/guestfs-actions.pod:4284 ../src/guestfs-actions.pod:7521
26404 msgid "(Added in 1.0.83)"
26405 msgstr ""
26406
26407 #. type: =head2
26408 #: ../src/guestfs-actions.pod:4286
26409 msgid "guestfs_lvresize"
26410 msgstr ""
26411
26412 #. type: verbatim
26413 #: ../src/guestfs-actions.pod:4288
26414 #, no-wrap
26415 msgid ""
26416 " int\n"
26417 " guestfs_lvresize (guestfs_h *g,\n"
26418 "                   const char *device,\n"
26419 "                   int mbytes);\n"
26420 "\n"
26421 msgstr ""
26422
26423 #. type: =head2
26424 #: ../src/guestfs-actions.pod:4301
26425 msgid "guestfs_lvresize_free"
26426 msgstr ""
26427
26428 #. type: verbatim
26429 #: ../src/guestfs-actions.pod:4303
26430 #, no-wrap
26431 msgid ""
26432 " int\n"
26433 " guestfs_lvresize_free (guestfs_h *g,\n"
26434 "                        const char *lv,\n"
26435 "                        int percent);\n"
26436 "\n"
26437 msgstr ""
26438
26439 #. type: textblock
26440 #: ../src/guestfs-actions.pod:4316
26441 msgid "(Added in 1.3.3)"
26442 msgstr ""
26443
26444 #. type: =head2
26445 #: ../src/guestfs-actions.pod:4318
26446 msgid "guestfs_lvs"
26447 msgstr ""
26448
26449 #. type: verbatim
26450 #: ../src/guestfs-actions.pod:4320
26451 #, no-wrap
26452 msgid ""
26453 " char **\n"
26454 " guestfs_lvs (guestfs_h *g);\n"
26455 "\n"
26456 msgstr ""
26457
26458 #. type: textblock
26459 #: ../src/guestfs-actions.pod:4329
26460 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
26461 msgstr ""
26462
26463 #. type: =head2
26464 #: ../src/guestfs-actions.pod:4337
26465 msgid "guestfs_lvs_full"
26466 msgstr ""
26467
26468 #. type: verbatim
26469 #: ../src/guestfs-actions.pod:4339
26470 #, no-wrap
26471 msgid ""
26472 " struct guestfs_lvm_lv_list *\n"
26473 " guestfs_lvs_full (guestfs_h *g);\n"
26474 "\n"
26475 msgstr ""
26476
26477 #. type: textblock
26478 #: ../src/guestfs-actions.pod:4345
26479 msgid ""
26480 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
26481 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
26482 msgstr ""
26483
26484 #. type: =head2
26485 #: ../src/guestfs-actions.pod:4351
26486 msgid "guestfs_lvuuid"
26487 msgstr ""
26488
26489 #. type: verbatim
26490 #: ../src/guestfs-actions.pod:4353
26491 #, no-wrap
26492 msgid ""
26493 " char *\n"
26494 " guestfs_lvuuid (guestfs_h *g,\n"
26495 "                 const char *device);\n"
26496 "\n"
26497 msgstr ""
26498
26499 #. type: =head2
26500 #: ../src/guestfs-actions.pod:4364
26501 msgid "guestfs_lxattrlist"
26502 msgstr ""
26503
26504 #. type: verbatim
26505 #: ../src/guestfs-actions.pod:4366
26506 #, no-wrap
26507 msgid ""
26508 " struct guestfs_xattr_list *\n"
26509 " guestfs_lxattrlist (guestfs_h *g,\n"
26510 "                     const char *path,\n"
26511 "                     char *const *names);\n"
26512 "\n"
26513 msgstr ""
26514
26515 #. type: textblock
26516 #: ../src/guestfs-actions.pod:4385
26517 msgid ""
26518 "This call is intended for programs that want to efficiently list a directory "
26519 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
26520 "a similarly efficient call for getting standard stats.  Very long directory "
26521 "listings might cause the protocol message size to be exceeded, causing this "
26522 "call to fail.  The caller must split up such requests into smaller groups of "
26523 "names."
26524 msgstr ""
26525
26526 #. type: =head2
26527 #: ../src/guestfs-actions.pod:4399
26528 msgid "guestfs_mkdir"
26529 msgstr ""
26530
26531 #. type: verbatim
26532 #: ../src/guestfs-actions.pod:4401
26533 #, no-wrap
26534 msgid ""
26535 " int\n"
26536 " guestfs_mkdir (guestfs_h *g,\n"
26537 "                const char *path);\n"
26538 "\n"
26539 msgstr ""
26540
26541 #. type: =head2
26542 #: ../src/guestfs-actions.pod:4411
26543 msgid "guestfs_mkdir_mode"
26544 msgstr ""
26545
26546 #. type: verbatim
26547 #: ../src/guestfs-actions.pod:4413
26548 #, no-wrap
26549 msgid ""
26550 " int\n"
26551 " guestfs_mkdir_mode (guestfs_h *g,\n"
26552 "                     const char *path,\n"
26553 "                     int mode);\n"
26554 "\n"
26555 msgstr ""
26556
26557 #. type: textblock
26558 #: ../src/guestfs-actions.pod:4425
26559 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
26560 msgstr ""
26561
26562 #. type: =head2
26563 #: ../src/guestfs-actions.pod:4431
26564 msgid "guestfs_mkdir_p"
26565 msgstr ""
26566
26567 #. type: verbatim
26568 #: ../src/guestfs-actions.pod:4433
26569 #, no-wrap
26570 msgid ""
26571 " int\n"
26572 " guestfs_mkdir_p (guestfs_h *g,\n"
26573 "                  const char *path);\n"
26574 "\n"
26575 msgstr ""
26576
26577 #. type: =head2
26578 #: ../src/guestfs-actions.pod:4444
26579 msgid "guestfs_mkdtemp"
26580 msgstr ""
26581
26582 #. type: verbatim
26583 #: ../src/guestfs-actions.pod:4446
26584 #, no-wrap
26585 msgid ""
26586 " char *\n"
26587 " guestfs_mkdtemp (guestfs_h *g,\n"
26588 "                  const char *template);\n"
26589 "\n"
26590 msgstr ""
26591
26592 #. type: =head2
26593 #: ../src/guestfs-actions.pod:4474
26594 msgid "guestfs_mke2fs_J"
26595 msgstr ""
26596
26597 #. type: verbatim
26598 #: ../src/guestfs-actions.pod:4476
26599 #, no-wrap
26600 msgid ""
26601 " int\n"
26602 " guestfs_mke2fs_J (guestfs_h *g,\n"
26603 "                   const char *fstype,\n"
26604 "                   int blocksize,\n"
26605 "                   const char *device,\n"
26606 "                   const char *journal);\n"
26607 "\n"
26608 msgstr ""
26609
26610 #. type: textblock
26611 #: ../src/guestfs-actions.pod:4489
26612 msgid "See also C<guestfs_mke2journal>."
26613 msgstr ""
26614
26615 #. type: textblock
26616 #: ../src/guestfs-actions.pod:4493 ../src/guestfs-actions.pod:4511
26617 #: ../src/guestfs-actions.pod:4529 ../src/guestfs-actions.pod:4545
26618 #: ../src/guestfs-actions.pod:4559 ../src/guestfs-actions.pod:4573
26619 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4909
26620 msgid "(Added in 1.0.68)"
26621 msgstr ""
26622
26623 #. type: =head2
26624 #: ../src/guestfs-actions.pod:4495
26625 msgid "guestfs_mke2fs_JL"
26626 msgstr ""
26627
26628 #. type: verbatim
26629 #: ../src/guestfs-actions.pod:4497
26630 #, no-wrap
26631 msgid ""
26632 " int\n"
26633 " guestfs_mke2fs_JL (guestfs_h *g,\n"
26634 "                    const char *fstype,\n"
26635 "                    int blocksize,\n"
26636 "                    const char *device,\n"
26637 "                    const char *label);\n"
26638 "\n"
26639 msgstr ""
26640
26641 #. type: textblock
26642 #: ../src/guestfs-actions.pod:4507
26643 msgid "See also C<guestfs_mke2journal_L>."
26644 msgstr ""
26645
26646 #. type: =head2
26647 #: ../src/guestfs-actions.pod:4513
26648 msgid "guestfs_mke2fs_JU"
26649 msgstr ""
26650
26651 #. type: verbatim
26652 #: ../src/guestfs-actions.pod:4515
26653 #, no-wrap
26654 msgid ""
26655 " int\n"
26656 " guestfs_mke2fs_JU (guestfs_h *g,\n"
26657 "                    const char *fstype,\n"
26658 "                    int blocksize,\n"
26659 "                    const char *device,\n"
26660 "                    const char *uuid);\n"
26661 "\n"
26662 msgstr ""
26663
26664 #. type: textblock
26665 #: ../src/guestfs-actions.pod:4525
26666 msgid "See also C<guestfs_mke2journal_U>."
26667 msgstr ""
26668
26669 #. type: =head2
26670 #: ../src/guestfs-actions.pod:4531
26671 msgid "guestfs_mke2journal"
26672 msgstr ""
26673
26674 #. type: verbatim
26675 #: ../src/guestfs-actions.pod:4533
26676 #, no-wrap
26677 msgid ""
26678 " int\n"
26679 " guestfs_mke2journal (guestfs_h *g,\n"
26680 "                      int blocksize,\n"
26681 "                      const char *device);\n"
26682 "\n"
26683 msgstr ""
26684
26685 #. type: =head2
26686 #: ../src/guestfs-actions.pod:4547
26687 msgid "guestfs_mke2journal_L"
26688 msgstr ""
26689
26690 #. type: verbatim
26691 #: ../src/guestfs-actions.pod:4549
26692 #, no-wrap
26693 msgid ""
26694 " int\n"
26695 " guestfs_mke2journal_L (guestfs_h *g,\n"
26696 "                        int blocksize,\n"
26697 "                        const char *label,\n"
26698 "                        const char *device);\n"
26699 "\n"
26700 msgstr ""
26701
26702 #. type: =head2
26703 #: ../src/guestfs-actions.pod:4561
26704 msgid "guestfs_mke2journal_U"
26705 msgstr ""
26706
26707 #. type: verbatim
26708 #: ../src/guestfs-actions.pod:4563
26709 #, no-wrap
26710 msgid ""
26711 " int\n"
26712 " guestfs_mke2journal_U (guestfs_h *g,\n"
26713 "                        int blocksize,\n"
26714 "                        const char *uuid,\n"
26715 "                        const char *device);\n"
26716 "\n"
26717 msgstr ""
26718
26719 #. type: =head2
26720 #: ../src/guestfs-actions.pod:4575
26721 msgid "guestfs_mkfifo"
26722 msgstr ""
26723
26724 #. type: verbatim
26725 #: ../src/guestfs-actions.pod:4577
26726 #, no-wrap
26727 msgid ""
26728 " int\n"
26729 " guestfs_mkfifo (guestfs_h *g,\n"
26730 "                 int mode,\n"
26731 "                 const char *path);\n"
26732 "\n"
26733 msgstr ""
26734
26735 #. type: textblock
26736 #: ../src/guestfs-actions.pod:4582
26737 msgid ""
26738 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
26739 "is just a convenient wrapper around C<guestfs_mknod>."
26740 msgstr ""
26741
26742 #. type: =head2
26743 #: ../src/guestfs-actions.pod:4592
26744 msgid "guestfs_mkfs"
26745 msgstr ""
26746
26747 #. type: verbatim
26748 #: ../src/guestfs-actions.pod:4594
26749 #, no-wrap
26750 msgid ""
26751 " int\n"
26752 " guestfs_mkfs (guestfs_h *g,\n"
26753 "               const char *fstype,\n"
26754 "               const char *device);\n"
26755 "\n"
26756 msgstr ""
26757
26758 #. type: =head2
26759 #: ../src/guestfs-actions.pod:4607
26760 msgid "guestfs_mkfs_b"
26761 msgstr ""
26762
26763 #. type: verbatim
26764 #: ../src/guestfs-actions.pod:4609
26765 #, no-wrap
26766 msgid ""
26767 " int\n"
26768 " guestfs_mkfs_b (guestfs_h *g,\n"
26769 "                 const char *fstype,\n"
26770 "                 int blocksize,\n"
26771 "                 const char *device);\n"
26772 "\n"
26773 msgstr ""
26774
26775 #. type: textblock
26776 #: ../src/guestfs-actions.pod:4615
26777 msgid ""
26778 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
26779 "call instead."
26780 msgstr ""
26781
26782 #. type: textblock
26783 #: ../src/guestfs-actions.pod:4622
26784 msgid ""
26785 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
26786 "block size of the resulting filesystem.  Supported block sizes depend on the "
26787 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
26788 msgstr ""
26789
26790 #. type: =head2
26791 #: ../src/guestfs-actions.pod:4634
26792 msgid "guestfs_mkfs_opts"
26793 msgstr ""
26794
26795 #. type: verbatim
26796 #: ../src/guestfs-actions.pod:4636
26797 #, no-wrap
26798 msgid ""
26799 " int\n"
26800 " guestfs_mkfs_opts (guestfs_h *g,\n"
26801 "                    const char *fstype,\n"
26802 "                    const char *device,\n"
26803 "                    ...);\n"
26804 "\n"
26805 msgstr ""
26806
26807 #. type: verbatim
26808 #: ../src/guestfs-actions.pod:4647
26809 #, no-wrap
26810 msgid ""
26811 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
26812 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
26813 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
26814 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
26815 "\n"
26816 msgstr ""
26817
26818 #. type: textblock
26819 #: ../src/guestfs-actions.pod:4695
26820 msgid "(Added in 1.7.19)"
26821 msgstr ""
26822
26823 #. type: =head2
26824 #: ../src/guestfs-actions.pod:4697
26825 msgid "guestfs_mkfs_opts_va"
26826 msgstr ""
26827
26828 #. type: verbatim
26829 #: ../src/guestfs-actions.pod:4699
26830 #, no-wrap
26831 msgid ""
26832 " int\n"
26833 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
26834 "                       const char *fstype,\n"
26835 "                       const char *device,\n"
26836 "                       va_list args);\n"
26837 "\n"
26838 msgstr ""
26839
26840 #. type: textblock
26841 #: ../src/guestfs-actions.pod:4705
26842 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
26843 msgstr ""
26844
26845 #. type: =head2
26846 #: ../src/guestfs-actions.pod:4709
26847 msgid "guestfs_mkfs_opts_argv"
26848 msgstr ""
26849
26850 #. type: verbatim
26851 #: ../src/guestfs-actions.pod:4711
26852 #, no-wrap
26853 msgid ""
26854 " int\n"
26855 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26856 "                         const char *fstype,\n"
26857 "                         const char *device,\n"
26858 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
26859 "\n"
26860 msgstr ""
26861
26862 #. type: textblock
26863 #: ../src/guestfs-actions.pod:4717
26864 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
26865 msgstr ""
26866
26867 #. type: =head2
26868 #: ../src/guestfs-actions.pod:4721
26869 msgid "guestfs_mkmountpoint"
26870 msgstr ""
26871
26872 #. type: verbatim
26873 #: ../src/guestfs-actions.pod:4723
26874 #, no-wrap
26875 msgid ""
26876 " int\n"
26877 " guestfs_mkmountpoint (guestfs_h *g,\n"
26878 "                       const char *exemptpath);\n"
26879 "\n"
26880 msgstr ""
26881
26882 #. type: textblock
26883 #: ../src/guestfs-actions.pod:4727
26884 msgid ""
26885 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
26886 "that can be used to create extra mountpoints before mounting the first "
26887 "filesystem."
26888 msgstr ""
26889
26890 #. type: textblock
26891 #: ../src/guestfs-actions.pod:4751
26892 msgid ""
26893 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
26894 "may get unexpected errors if you try to mix these calls.  It is safest to "
26895 "manually unmount filesystems and remove mountpoints after use."
26896 msgstr ""
26897
26898 #. type: textblock
26899 #: ../src/guestfs-actions.pod:4755
26900 msgid ""
26901 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
26902 "first, so for this to work for manual mountpoints, you must ensure that the "
26903 "innermost mountpoints have the longest pathnames, as in the example code "
26904 "above."
26905 msgstr ""
26906
26907 #. type: textblock
26908 #: ../src/guestfs-actions.pod:4762
26909 msgid ""
26910 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
26911 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
26912 "can also trigger these issues."
26913 msgstr ""
26914
26915 #. type: textblock
26916 #: ../src/guestfs-actions.pod:4768 ../src/guestfs-actions.pod:5084
26917 #: ../src/guestfs-actions.pod:6094
26918 msgid "(Added in 1.0.62)"
26919 msgstr ""
26920
26921 #. type: =head2
26922 #: ../src/guestfs-actions.pod:4770
26923 msgid "guestfs_mknod"
26924 msgstr ""
26925
26926 #. type: verbatim
26927 #: ../src/guestfs-actions.pod:4772
26928 #, no-wrap
26929 msgid ""
26930 " int\n"
26931 " guestfs_mknod (guestfs_h *g,\n"
26932 "                int mode,\n"
26933 "                int devmajor,\n"
26934 "                int devminor,\n"
26935 "                const char *path);\n"
26936 "\n"
26937 msgstr ""
26938
26939 #. type: textblock
26940 #: ../src/guestfs-actions.pod:4787
26941 msgid ""
26942 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
26943 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
26944 "regular file).  These constants are available in the standard Linux header "
26945 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
26946 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
26947 "the appropriate constant for you."
26948 msgstr ""
26949
26950 #. type: =head2
26951 #: ../src/guestfs-actions.pod:4801
26952 msgid "guestfs_mknod_b"
26953 msgstr ""
26954
26955 #. type: verbatim
26956 #: ../src/guestfs-actions.pod:4803
26957 #, no-wrap
26958 msgid ""
26959 " int\n"
26960 " guestfs_mknod_b (guestfs_h *g,\n"
26961 "                  int mode,\n"
26962 "                  int devmajor,\n"
26963 "                  int devminor,\n"
26964 "                  const char *path);\n"
26965 "\n"
26966 msgstr ""
26967
26968 #. type: textblock
26969 #: ../src/guestfs-actions.pod:4810
26970 msgid ""
26971 "This call creates a block device node called C<path> with mode C<mode> and "
26972 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26973 "wrapper around C<guestfs_mknod>."
26974 msgstr ""
26975
26976 #. type: =head2
26977 #: ../src/guestfs-actions.pod:4820
26978 msgid "guestfs_mknod_c"
26979 msgstr ""
26980
26981 #. type: verbatim
26982 #: ../src/guestfs-actions.pod:4822
26983 #, no-wrap
26984 msgid ""
26985 " int\n"
26986 " guestfs_mknod_c (guestfs_h *g,\n"
26987 "                  int mode,\n"
26988 "                  int devmajor,\n"
26989 "                  int devminor,\n"
26990 "                  const char *path);\n"
26991 "\n"
26992 msgstr ""
26993
26994 #. type: textblock
26995 #: ../src/guestfs-actions.pod:4829
26996 msgid ""
26997 "This call creates a char device node called C<path> with mode C<mode> and "
26998 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26999 "wrapper around C<guestfs_mknod>."
27000 msgstr ""
27001
27002 #. type: =head2
27003 #: ../src/guestfs-actions.pod:4839
27004 msgid "guestfs_mkswap"
27005 msgstr ""
27006
27007 #. type: verbatim
27008 #: ../src/guestfs-actions.pod:4841
27009 #, no-wrap
27010 msgid ""
27011 " int\n"
27012 " guestfs_mkswap (guestfs_h *g,\n"
27013 "                 const char *device);\n"
27014 "\n"
27015 msgstr ""
27016
27017 #. type: =head2
27018 #: ../src/guestfs-actions.pod:4851
27019 msgid "guestfs_mkswap_L"
27020 msgstr ""
27021
27022 #. type: verbatim
27023 #: ../src/guestfs-actions.pod:4853
27024 #, no-wrap
27025 msgid ""
27026 " int\n"
27027 " guestfs_mkswap_L (guestfs_h *g,\n"
27028 "                   const char *label,\n"
27029 "                   const char *device);\n"
27030 "\n"
27031 msgstr ""
27032
27033 #. type: =head2
27034 #: ../src/guestfs-actions.pod:4868
27035 msgid "guestfs_mkswap_U"
27036 msgstr ""
27037
27038 #. type: verbatim
27039 #: ../src/guestfs-actions.pod:4870
27040 #, no-wrap
27041 msgid ""
27042 " int\n"
27043 " guestfs_mkswap_U (guestfs_h *g,\n"
27044 "                   const char *uuid,\n"
27045 "                   const char *device);\n"
27046 "\n"
27047 msgstr ""
27048
27049 #. type: =head2
27050 #: ../src/guestfs-actions.pod:4881
27051 msgid "guestfs_mkswap_file"
27052 msgstr ""
27053
27054 #. type: verbatim
27055 #: ../src/guestfs-actions.pod:4883
27056 #, no-wrap
27057 msgid ""
27058 " int\n"
27059 " guestfs_mkswap_file (guestfs_h *g,\n"
27060 "                      const char *path);\n"
27061 "\n"
27062 msgstr ""
27063
27064 #. type: textblock
27065 #: ../src/guestfs-actions.pod:4889
27066 msgid ""
27067 "This command just writes a swap file signature to an existing file.  To "
27068 "create the file itself, use something like C<guestfs_fallocate>."
27069 msgstr ""
27070
27071 #. type: =head2
27072 #: ../src/guestfs-actions.pod:4896
27073 msgid "guestfs_modprobe"
27074 msgstr ""
27075
27076 #. type: verbatim
27077 #: ../src/guestfs-actions.pod:4898
27078 #, no-wrap
27079 msgid ""
27080 " int\n"
27081 " guestfs_modprobe (guestfs_h *g,\n"
27082 "                   const char *modulename);\n"
27083 "\n"
27084 msgstr ""
27085
27086 #. type: =head2
27087 #: ../src/guestfs-actions.pod:4911
27088 msgid "guestfs_mount"
27089 msgstr ""
27090
27091 #. type: verbatim
27092 #: ../src/guestfs-actions.pod:4913
27093 #, no-wrap
27094 msgid ""
27095 " int\n"
27096 " guestfs_mount (guestfs_h *g,\n"
27097 "                const char *device,\n"
27098 "                const char *mountpoint);\n"
27099 "\n"
27100 msgstr ""
27101
27102 #. type: textblock
27103 #: ../src/guestfs-actions.pod:4918
27104 msgid ""
27105 "I<This function is deprecated.> In new code, use the L</"
27106 "guestfs_mount_options> call instead."
27107 msgstr ""
27108
27109 #. type: textblock
27110 #: ../src/guestfs-actions.pod:4939
27111 msgid ""
27112 "B<Important note:> When you use this call, the filesystem options C<sync> "
27113 "and C<noatime> are set implicitly.  This was originally done because we "
27114 "thought it would improve reliability, but it turns out that I<-o sync> has a "
27115 "very large negative performance impact and negligible effect on "
27116 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
27117 "in any code that needs performance, and instead use C<guestfs_mount_options> "
27118 "(use an empty string for the first parameter if you don't want any options)."
27119 msgstr ""
27120
27121 #. type: =head2
27122 #: ../src/guestfs-actions.pod:4953
27123 msgid "guestfs_mount_9p"
27124 msgstr ""
27125
27126 #. type: verbatim
27127 #: ../src/guestfs-actions.pod:4955
27128 #, no-wrap
27129 msgid ""
27130 " int\n"
27131 " guestfs_mount_9p (guestfs_h *g,\n"
27132 "                   const char *mounttag,\n"
27133 "                   const char *mountpoint,\n"
27134 "                   ...);\n"
27135 "\n"
27136 msgstr ""
27137
27138 #. type: verbatim
27139 #: ../src/guestfs-actions.pod:4966
27140 #, no-wrap
27141 msgid ""
27142 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
27143 "\n"
27144 msgstr ""
27145
27146 #. type: =head2
27147 #: ../src/guestfs-actions.pod:4979
27148 msgid "guestfs_mount_9p_va"
27149 msgstr ""
27150
27151 #. type: verbatim
27152 #: ../src/guestfs-actions.pod:4981
27153 #, no-wrap
27154 msgid ""
27155 " int\n"
27156 " guestfs_mount_9p_va (guestfs_h *g,\n"
27157 "                      const char *mounttag,\n"
27158 "                      const char *mountpoint,\n"
27159 "                      va_list args);\n"
27160 "\n"
27161 msgstr ""
27162
27163 #. type: textblock
27164 #: ../src/guestfs-actions.pod:4987
27165 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
27166 msgstr ""
27167
27168 #. type: =head2
27169 #: ../src/guestfs-actions.pod:4991
27170 msgid "guestfs_mount_9p_argv"
27171 msgstr ""
27172
27173 #. type: verbatim
27174 #: ../src/guestfs-actions.pod:4993
27175 #, no-wrap
27176 msgid ""
27177 " int\n"
27178 " guestfs_mount_9p_argv (guestfs_h *g,\n"
27179 "                        const char *mounttag,\n"
27180 "                        const char *mountpoint,\n"
27181 "                        const struct guestfs_mount_9p_argv *optargs);\n"
27182 "\n"
27183 msgstr ""
27184
27185 #. type: textblock
27186 #: ../src/guestfs-actions.pod:4999
27187 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
27188 msgstr ""
27189
27190 #. type: =head2
27191 #: ../src/guestfs-actions.pod:5003
27192 msgid "guestfs_mount_loop"
27193 msgstr ""
27194
27195 #. type: verbatim
27196 #: ../src/guestfs-actions.pod:5005
27197 #, no-wrap
27198 msgid ""
27199 " int\n"
27200 " guestfs_mount_loop (guestfs_h *g,\n"
27201 "                     const char *file,\n"
27202 "                     const char *mountpoint);\n"
27203 "\n"
27204 msgstr ""
27205
27206 #. type: =head2
27207 #: ../src/guestfs-actions.pod:5018
27208 msgid "guestfs_mount_options"
27209 msgstr ""
27210
27211 #. type: verbatim
27212 #: ../src/guestfs-actions.pod:5020
27213 #, no-wrap
27214 msgid ""
27215 " int\n"
27216 " guestfs_mount_options (guestfs_h *g,\n"
27217 "                        const char *options,\n"
27218 "                        const char *device,\n"
27219 "                        const char *mountpoint);\n"
27220 "\n"
27221 msgstr ""
27222
27223 #. type: textblock
27224 #: ../src/guestfs-actions.pod:5026
27225 msgid ""
27226 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27227 "the mount options as for the L<mount(8)> I<-o> flag."
27228 msgstr ""
27229
27230 #. type: textblock
27231 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5050
27232 #: ../src/guestfs-actions.pod:5067
27233 msgid "(Added in 1.0.10)"
27234 msgstr ""
27235
27236 #. type: =head2
27237 #: ../src/guestfs-actions.pod:5038
27238 msgid "guestfs_mount_ro"
27239 msgstr ""
27240
27241 #. type: verbatim
27242 #: ../src/guestfs-actions.pod:5040
27243 #, no-wrap
27244 msgid ""
27245 " int\n"
27246 " guestfs_mount_ro (guestfs_h *g,\n"
27247 "                   const char *device,\n"
27248 "                   const char *mountpoint);\n"
27249 "\n"
27250 msgstr ""
27251
27252 #. type: textblock
27253 #: ../src/guestfs-actions.pod:5045
27254 msgid ""
27255 "This is the same as the C<guestfs_mount> command, but it mounts the "
27256 "filesystem with the read-only (I<-o ro>) flag."
27257 msgstr ""
27258
27259 #. type: =head2
27260 #: ../src/guestfs-actions.pod:5052
27261 msgid "guestfs_mount_vfs"
27262 msgstr ""
27263
27264 #. type: verbatim
27265 #: ../src/guestfs-actions.pod:5054
27266 #, no-wrap
27267 msgid ""
27268 " int\n"
27269 " guestfs_mount_vfs (guestfs_h *g,\n"
27270 "                    const char *options,\n"
27271 "                    const char *vfstype,\n"
27272 "                    const char *device,\n"
27273 "                    const char *mountpoint);\n"
27274 "\n"
27275 msgstr ""
27276
27277 #. type: textblock
27278 #: ../src/guestfs-actions.pod:5061
27279 msgid ""
27280 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27281 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
27282 "t> flags."
27283 msgstr ""
27284
27285 #. type: =head2
27286 #: ../src/guestfs-actions.pod:5069
27287 msgid "guestfs_mountpoints"
27288 msgstr ""
27289
27290 #. type: verbatim
27291 #: ../src/guestfs-actions.pod:5071
27292 #, no-wrap
27293 msgid ""
27294 " char **\n"
27295 " guestfs_mountpoints (guestfs_h *g);\n"
27296 "\n"
27297 msgstr ""
27298
27299 #. type: textblock
27300 #: ../src/guestfs-actions.pod:5074
27301 msgid ""
27302 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
27303 "devices.  This one returns a hash table (map) of device name to directory "
27304 "where the device is mounted."
27305 msgstr ""
27306
27307 #. type: =head2
27308 #: ../src/guestfs-actions.pod:5086
27309 msgid "guestfs_mounts"
27310 msgstr ""
27311
27312 #. type: verbatim
27313 #: ../src/guestfs-actions.pod:5088
27314 #, no-wrap
27315 msgid ""
27316 " char **\n"
27317 " guestfs_mounts (guestfs_h *g);\n"
27318 "\n"
27319 msgstr ""
27320
27321 #. type: textblock
27322 #: ../src/guestfs-actions.pod:5096
27323 msgid "See also: C<guestfs_mountpoints>"
27324 msgstr ""
27325
27326 #. type: =head2
27327 #: ../src/guestfs-actions.pod:5104
27328 msgid "guestfs_mv"
27329 msgstr ""
27330
27331 #. type: verbatim
27332 #: ../src/guestfs-actions.pod:5106
27333 #, no-wrap
27334 msgid ""
27335 " int\n"
27336 " guestfs_mv (guestfs_h *g,\n"
27337 "             const char *src,\n"
27338 "             const char *dest);\n"
27339 "\n"
27340 msgstr ""
27341
27342 #. type: =head2
27343 #: ../src/guestfs-actions.pod:5118
27344 msgid "guestfs_ntfs_3g_probe"
27345 msgstr ""
27346
27347 #. type: verbatim
27348 #: ../src/guestfs-actions.pod:5120
27349 #, no-wrap
27350 msgid ""
27351 " int\n"
27352 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
27353 "                        int rw,\n"
27354 "                        const char *device);\n"
27355 "\n"
27356 msgstr ""
27357
27358 #. type: textblock
27359 #: ../src/guestfs-actions.pod:5139
27360 msgid "(Added in 1.0.43)"
27361 msgstr ""
27362
27363 #. type: =head2
27364 #: ../src/guestfs-actions.pod:5141
27365 msgid "guestfs_ntfsresize"
27366 msgstr ""
27367
27368 #. type: verbatim
27369 #: ../src/guestfs-actions.pod:5143
27370 #, no-wrap
27371 msgid ""
27372 " int\n"
27373 " guestfs_ntfsresize (guestfs_h *g,\n"
27374 "                     const char *device);\n"
27375 "\n"
27376 msgstr ""
27377
27378 #. type: textblock
27379 #: ../src/guestfs-actions.pod:5147 ../src/guestfs-actions.pod:5247
27380 msgid ""
27381 "I<This function is deprecated.> In new code, use the L</"
27382 "guestfs_ntfsresize_opts> call instead."
27383 msgstr ""
27384
27385 #. type: =head2
27386 #: ../src/guestfs-actions.pod:5171
27387 msgid "guestfs_ntfsresize_opts"
27388 msgstr ""
27389
27390 #. type: verbatim
27391 #: ../src/guestfs-actions.pod:5173
27392 #, no-wrap
27393 msgid ""
27394 " int\n"
27395 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
27396 "                          const char *device,\n"
27397 "                          ...);\n"
27398 "\n"
27399 msgstr ""
27400
27401 #. type: verbatim
27402 #: ../src/guestfs-actions.pod:5183
27403 #, no-wrap
27404 msgid ""
27405 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
27406 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
27407 "\n"
27408 msgstr ""
27409
27410 #. type: textblock
27411 #: ../src/guestfs-actions.pod:5203
27412 msgid ""
27413 "After the resize operation, the filesystem is always marked as requiring a "
27414 "consistency check (for safety).  You have to boot into Windows to perform "
27415 "this check and clear this condition.  If you I<don't> set the C<force> "
27416 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
27417 "times on a single filesystem without booting into Windows between each "
27418 "resize."
27419 msgstr ""
27420
27421 #. type: =head2
27422 #: ../src/guestfs-actions.pod:5218
27423 msgid "guestfs_ntfsresize_opts_va"
27424 msgstr ""
27425
27426 #. type: verbatim
27427 #: ../src/guestfs-actions.pod:5220
27428 #, no-wrap
27429 msgid ""
27430 " int\n"
27431 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
27432 "                             const char *device,\n"
27433 "                             va_list args);\n"
27434 "\n"
27435 msgstr ""
27436
27437 #. type: textblock
27438 #: ../src/guestfs-actions.pod:5225
27439 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
27440 msgstr ""
27441
27442 #. type: =head2
27443 #: ../src/guestfs-actions.pod:5229
27444 msgid "guestfs_ntfsresize_opts_argv"
27445 msgstr ""
27446
27447 #. type: verbatim
27448 #: ../src/guestfs-actions.pod:5231
27449 #, no-wrap
27450 msgid ""
27451 " int\n"
27452 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
27453 "                               const char *device,\n"
27454 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
27455 "\n"
27456 msgstr ""
27457
27458 #. type: textblock
27459 #: ../src/guestfs-actions.pod:5236
27460 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
27461 msgstr ""
27462
27463 #. type: =head2
27464 #: ../src/guestfs-actions.pod:5240
27465 msgid "guestfs_ntfsresize_size"
27466 msgstr ""
27467
27468 #. type: verbatim
27469 #: ../src/guestfs-actions.pod:5242
27470 #, no-wrap
27471 msgid ""
27472 " int\n"
27473 " guestfs_ntfsresize_size (guestfs_h *g,\n"
27474 "                          const char *device,\n"
27475 "                          int64_t size);\n"
27476 "\n"
27477 msgstr ""
27478
27479 #. type: textblock
27480 #: ../src/guestfs-actions.pod:5254
27481 msgid ""
27482 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
27483 "to specify the new size (in bytes) explicitly."
27484 msgstr ""
27485
27486 #. type: textblock
27487 #: ../src/guestfs-actions.pod:5259 ../src/guestfs-actions.pod:5701
27488 #: ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:6042
27489 #: ../src/guestfs-actions.pod:7665
27490 msgid "(Added in 1.3.14)"
27491 msgstr ""
27492
27493 #. type: =head2
27494 #: ../src/guestfs-actions.pod:5261
27495 msgid "guestfs_part_add"
27496 msgstr ""
27497
27498 #. type: verbatim
27499 #: ../src/guestfs-actions.pod:5263
27500 #, no-wrap
27501 msgid ""
27502 " int\n"
27503 " guestfs_part_add (guestfs_h *g,\n"
27504 "                   const char *device,\n"
27505 "                   const char *prlogex,\n"
27506 "                   int64_t startsect,\n"
27507 "                   int64_t endsect);\n"
27508 "\n"
27509 msgstr ""
27510
27511 #. type: textblock
27512 #: ../src/guestfs-actions.pod:5270
27513 msgid ""
27514 "This command adds a partition to C<device>.  If there is no partition table "
27515 "on the device, call C<guestfs_part_init> first."
27516 msgstr ""
27517
27518 #. type: textblock
27519 #: ../src/guestfs-actions.pod:5282
27520 msgid ""
27521 "Creating a partition which covers the whole disk is not so easy.  Use "
27522 "C<guestfs_part_disk> to do that."
27523 msgstr ""
27524
27525 #. type: textblock
27526 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5325
27527 #: ../src/guestfs-actions.pod:5378 ../src/guestfs-actions.pod:5462
27528 #: ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5519
27529 #: ../src/guestfs-actions.pod:5559
27530 msgid "(Added in 1.0.78)"
27531 msgstr ""
27532
27533 #. type: =head2
27534 #: ../src/guestfs-actions.pod:5289
27535 msgid "guestfs_part_del"
27536 msgstr ""
27537
27538 #. type: verbatim
27539 #: ../src/guestfs-actions.pod:5291
27540 #, no-wrap
27541 msgid ""
27542 " int\n"
27543 " guestfs_part_del (guestfs_h *g,\n"
27544 "                   const char *device,\n"
27545 "                   int partnum);\n"
27546 "\n"
27547 msgstr ""
27548
27549 #. type: =head2
27550 #: ../src/guestfs-actions.pod:5306
27551 msgid "guestfs_part_disk"
27552 msgstr ""
27553
27554 #. type: verbatim
27555 #: ../src/guestfs-actions.pod:5308
27556 #, no-wrap
27557 msgid ""
27558 " int\n"
27559 " guestfs_part_disk (guestfs_h *g,\n"
27560 "                    const char *device,\n"
27561 "                    const char *parttype);\n"
27562 "\n"
27563 msgstr ""
27564
27565 #. type: textblock
27566 #: ../src/guestfs-actions.pod:5313
27567 msgid ""
27568 "This command is simply a combination of C<guestfs_part_init> followed by "
27569 "C<guestfs_part_add> to create a single primary partition covering the whole "
27570 "disk."
27571 msgstr ""
27572
27573 #. type: textblock
27574 #: ../src/guestfs-actions.pod:5317
27575 msgid ""
27576 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27577 "possible values are described in C<guestfs_part_init>."
27578 msgstr ""
27579
27580 #. type: =head2
27581 #: ../src/guestfs-actions.pod:5327
27582 msgid "guestfs_part_get_bootable"
27583 msgstr ""
27584
27585 #. type: verbatim
27586 #: ../src/guestfs-actions.pod:5329
27587 #, no-wrap
27588 msgid ""
27589 " int\n"
27590 " guestfs_part_get_bootable (guestfs_h *g,\n"
27591 "                            const char *device,\n"
27592 "                            int partnum);\n"
27593 "\n"
27594 msgstr ""
27595
27596 #. type: textblock
27597 #: ../src/guestfs-actions.pod:5337
27598 msgid "See also C<guestfs_part_set_bootable>."
27599 msgstr ""
27600
27601 #. type: =head2
27602 #: ../src/guestfs-actions.pod:5343
27603 msgid "guestfs_part_get_mbr_id"
27604 msgstr ""
27605
27606 #. type: verbatim
27607 #: ../src/guestfs-actions.pod:5345
27608 #, no-wrap
27609 msgid ""
27610 " int\n"
27611 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
27612 "                          const char *device,\n"
27613 "                          int partnum);\n"
27614 "\n"
27615 msgstr ""
27616
27617 #. type: textblock
27618 #: ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:5535
27619 msgid ""
27620 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27621 "undefined results for other partition table types (see "
27622 "C<guestfs_part_get_parttype>)."
27623 msgstr ""
27624
27625 #. type: =head2
27626 #: ../src/guestfs-actions.pod:5361
27627 msgid "guestfs_part_get_parttype"
27628 msgstr ""
27629
27630 #. type: verbatim
27631 #: ../src/guestfs-actions.pod:5363
27632 #, no-wrap
27633 msgid ""
27634 " char *\n"
27635 " guestfs_part_get_parttype (guestfs_h *g,\n"
27636 "                            const char *device);\n"
27637 "\n"
27638 msgstr ""
27639
27640 #. type: textblock
27641 #: ../src/guestfs-actions.pod:5370
27642 msgid ""
27643 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27644 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27645 "possible, although unusual.  See C<guestfs_part_init> for a full list."
27646 msgstr ""
27647
27648 #. type: =head2
27649 #: ../src/guestfs-actions.pod:5380
27650 msgid "guestfs_part_init"
27651 msgstr ""
27652
27653 #. type: verbatim
27654 #: ../src/guestfs-actions.pod:5382
27655 #, no-wrap
27656 msgid ""
27657 " int\n"
27658 " guestfs_part_init (guestfs_h *g,\n"
27659 "                    const char *device,\n"
27660 "                    const char *parttype);\n"
27661 "\n"
27662 msgstr ""
27663
27664 #. type: textblock
27665 #: ../src/guestfs-actions.pod:5391
27666 msgid ""
27667 "Initially there are no partitions.  Following this, you should call "
27668 "C<guestfs_part_add> for each partition required."
27669 msgstr ""
27670
27671 #. type: =head2
27672 #: ../src/guestfs-actions.pod:5464
27673 msgid "guestfs_part_list"
27674 msgstr ""
27675
27676 #. type: verbatim
27677 #: ../src/guestfs-actions.pod:5466
27678 #, no-wrap
27679 msgid ""
27680 " struct guestfs_partition_list *\n"
27681 " guestfs_part_list (guestfs_h *g,\n"
27682 "                    const char *device);\n"
27683 "\n"
27684 msgstr ""
27685
27686 #. type: textblock
27687 #: ../src/guestfs-actions.pod:5483
27688 msgid ""
27689 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27690 "the device's sector size, see C<guestfs_blockdev_getss>."
27691 msgstr ""
27692
27693 #. type: textblock
27694 #: ../src/guestfs-actions.pod:5496
27695 msgid ""
27696 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
27697 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
27698 "use>."
27699 msgstr ""
27700
27701 #. type: =head2
27702 #: ../src/guestfs-actions.pod:5502
27703 msgid "guestfs_part_set_bootable"
27704 msgstr ""
27705
27706 #. type: verbatim
27707 #: ../src/guestfs-actions.pod:5504
27708 #, no-wrap
27709 msgid ""
27710 " int\n"
27711 " guestfs_part_set_bootable (guestfs_h *g,\n"
27712 "                            const char *device,\n"
27713 "                            int partnum,\n"
27714 "                            int bootable);\n"
27715 "\n"
27716 msgstr ""
27717
27718 #. type: =head2
27719 #: ../src/guestfs-actions.pod:5521
27720 msgid "guestfs_part_set_mbr_id"
27721 msgstr ""
27722
27723 #. type: verbatim
27724 #: ../src/guestfs-actions.pod:5523
27725 #, no-wrap
27726 msgid ""
27727 " int\n"
27728 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
27729 "                          const char *device,\n"
27730 "                          int partnum,\n"
27731 "                          int idbyte);\n"
27732 "\n"
27733 msgstr ""
27734
27735 #. type: =head2
27736 #: ../src/guestfs-actions.pod:5543
27737 msgid "guestfs_part_set_name"
27738 msgstr ""
27739
27740 #. type: verbatim
27741 #: ../src/guestfs-actions.pod:5545
27742 #, no-wrap
27743 msgid ""
27744 " int\n"
27745 " guestfs_part_set_name (guestfs_h *g,\n"
27746 "                        const char *device,\n"
27747 "                        int partnum,\n"
27748 "                        const char *name);\n"
27749 "\n"
27750 msgstr ""
27751
27752 #. type: =head2
27753 #: ../src/guestfs-actions.pod:5561
27754 msgid "guestfs_part_to_dev"
27755 msgstr ""
27756
27757 #. type: verbatim
27758 #: ../src/guestfs-actions.pod:5563
27759 #, no-wrap
27760 msgid ""
27761 " char *\n"
27762 " guestfs_part_to_dev (guestfs_h *g,\n"
27763 "                      const char *partition);\n"
27764 "\n"
27765 msgstr ""
27766
27767 #. type: textblock
27768 #: ../src/guestfs-actions.pod:5571
27769 msgid ""
27770 "The named partition must exist, for example as a string returned from "
27771 "C<guestfs_list_partitions>."
27772 msgstr ""
27773
27774 #. type: =head2
27775 #: ../src/guestfs-actions.pod:5579
27776 msgid "guestfs_ping_daemon"
27777 msgstr ""
27778
27779 #. type: verbatim
27780 #: ../src/guestfs-actions.pod:5581
27781 #, no-wrap
27782 msgid ""
27783 " int\n"
27784 " guestfs_ping_daemon (guestfs_h *g);\n"
27785 "\n"
27786 msgstr ""
27787
27788 #. type: =head2
27789 #: ../src/guestfs-actions.pod:5593
27790 msgid "guestfs_pread"
27791 msgstr ""
27792
27793 #. type: verbatim
27794 #: ../src/guestfs-actions.pod:5595
27795 #, no-wrap
27796 msgid ""
27797 " char *\n"
27798 " guestfs_pread (guestfs_h *g,\n"
27799 "                const char *path,\n"
27800 "                int count,\n"
27801 "                int64_t offset,\n"
27802 "                size_t *size_r);\n"
27803 "\n"
27804 msgstr ""
27805
27806 #. type: textblock
27807 #: ../src/guestfs-actions.pod:5608
27808 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
27809 msgstr ""
27810
27811 #. type: =head2
27812 #: ../src/guestfs-actions.pod:5619
27813 msgid "guestfs_pread_device"
27814 msgstr ""
27815
27816 #. type: verbatim
27817 #: ../src/guestfs-actions.pod:5621
27818 #, no-wrap
27819 msgid ""
27820 " char *\n"
27821 " guestfs_pread_device (guestfs_h *g,\n"
27822 "                       const char *device,\n"
27823 "                       int count,\n"
27824 "                       int64_t offset,\n"
27825 "                       size_t *size_r);\n"
27826 "\n"
27827 msgstr ""
27828
27829 #. type: textblock
27830 #: ../src/guestfs-actions.pod:5634
27831 msgid "See also C<guestfs_pread>."
27832 msgstr ""
27833
27834 #. type: textblock
27835 #: ../src/guestfs-actions.pod:5643
27836 msgid "(Added in 1.5.21)"
27837 msgstr ""
27838
27839 #. type: =head2
27840 #: ../src/guestfs-actions.pod:5645
27841 msgid "guestfs_pvcreate"
27842 msgstr ""
27843
27844 #. type: verbatim
27845 #: ../src/guestfs-actions.pod:5647
27846 #, no-wrap
27847 msgid ""
27848 " int\n"
27849 " guestfs_pvcreate (guestfs_h *g,\n"
27850 "                   const char *device);\n"
27851 "\n"
27852 msgstr ""
27853
27854 #. type: =head2
27855 #: ../src/guestfs-actions.pod:5659
27856 msgid "guestfs_pvremove"
27857 msgstr ""
27858
27859 #. type: verbatim
27860 #: ../src/guestfs-actions.pod:5661
27861 #, no-wrap
27862 msgid ""
27863 " int\n"
27864 " guestfs_pvremove (guestfs_h *g,\n"
27865 "                   const char *device);\n"
27866 "\n"
27867 msgstr ""
27868
27869 #. type: =head2
27870 #: ../src/guestfs-actions.pod:5676
27871 msgid "guestfs_pvresize"
27872 msgstr ""
27873
27874 #. type: verbatim
27875 #: ../src/guestfs-actions.pod:5678
27876 #, no-wrap
27877 msgid ""
27878 " int\n"
27879 " guestfs_pvresize (guestfs_h *g,\n"
27880 "                   const char *device);\n"
27881 "\n"
27882 msgstr ""
27883
27884 #. type: =head2
27885 #: ../src/guestfs-actions.pod:5689
27886 msgid "guestfs_pvresize_size"
27887 msgstr ""
27888
27889 #. type: verbatim
27890 #: ../src/guestfs-actions.pod:5691
27891 #, no-wrap
27892 msgid ""
27893 " int\n"
27894 " guestfs_pvresize_size (guestfs_h *g,\n"
27895 "                        const char *device,\n"
27896 "                        int64_t size);\n"
27897 "\n"
27898 msgstr ""
27899
27900 #. type: textblock
27901 #: ../src/guestfs-actions.pod:5696
27902 msgid ""
27903 "This command is the same as C<guestfs_pvresize> except that it allows you to "
27904 "specify the new size (in bytes) explicitly."
27905 msgstr ""
27906
27907 #. type: =head2
27908 #: ../src/guestfs-actions.pod:5703
27909 msgid "guestfs_pvs"
27910 msgstr ""
27911
27912 #. type: verbatim
27913 #: ../src/guestfs-actions.pod:5705
27914 #, no-wrap
27915 msgid ""
27916 " char **\n"
27917 " guestfs_pvs (guestfs_h *g);\n"
27918 "\n"
27919 msgstr ""
27920
27921 #. type: textblock
27922 #: ../src/guestfs-actions.pod:5714
27923 msgid "See also C<guestfs_pvs_full>."
27924 msgstr ""
27925
27926 #. type: =head2
27927 #: ../src/guestfs-actions.pod:5722
27928 msgid "guestfs_pvs_full"
27929 msgstr ""
27930
27931 #. type: verbatim
27932 #: ../src/guestfs-actions.pod:5724
27933 #, no-wrap
27934 msgid ""
27935 " struct guestfs_lvm_pv_list *\n"
27936 " guestfs_pvs_full (guestfs_h *g);\n"
27937 "\n"
27938 msgstr ""
27939
27940 #. type: textblock
27941 #: ../src/guestfs-actions.pod:5730
27942 msgid ""
27943 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
27944 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
27945 msgstr ""
27946
27947 #. type: =head2
27948 #: ../src/guestfs-actions.pod:5736
27949 msgid "guestfs_pvuuid"
27950 msgstr ""
27951
27952 #. type: verbatim
27953 #: ../src/guestfs-actions.pod:5738
27954 #, no-wrap
27955 msgid ""
27956 " char *\n"
27957 " guestfs_pvuuid (guestfs_h *g,\n"
27958 "                 const char *device);\n"
27959 "\n"
27960 msgstr ""
27961
27962 #. type: =head2
27963 #: ../src/guestfs-actions.pod:5749
27964 msgid "guestfs_pwrite"
27965 msgstr ""
27966
27967 #. type: verbatim
27968 #: ../src/guestfs-actions.pod:5751
27969 #, no-wrap
27970 msgid ""
27971 " int\n"
27972 " guestfs_pwrite (guestfs_h *g,\n"
27973 "                 const char *path,\n"
27974 "                 const char *content,\n"
27975 "                 size_t content_size,\n"
27976 "                 int64_t offset);\n"
27977 "\n"
27978 msgstr ""
27979
27980 #. type: textblock
27981 #: ../src/guestfs-actions.pod:5767
27982 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
27983 msgstr ""
27984
27985 #. type: =head2
27986 #: ../src/guestfs-actions.pod:5776
27987 msgid "guestfs_pwrite_device"
27988 msgstr ""
27989
27990 #. type: verbatim
27991 #: ../src/guestfs-actions.pod:5778
27992 #, no-wrap
27993 msgid ""
27994 " int\n"
27995 " guestfs_pwrite_device (guestfs_h *g,\n"
27996 "                        const char *device,\n"
27997 "                        const char *content,\n"
27998 "                        size_t content_size,\n"
27999 "                        int64_t offset);\n"
28000 "\n"
28001 msgstr ""
28002
28003 #. type: textblock
28004 #: ../src/guestfs-actions.pod:5793
28005 msgid "See also C<guestfs_pwrite>."
28006 msgstr ""
28007
28008 #. type: textblock
28009 #: ../src/guestfs-actions.pod:5800
28010 msgid "(Added in 1.5.20)"
28011 msgstr ""
28012
28013 #. type: =head2
28014 #: ../src/guestfs-actions.pod:5802
28015 msgid "guestfs_read_file"
28016 msgstr ""
28017
28018 #. type: verbatim
28019 #: ../src/guestfs-actions.pod:5804
28020 #, no-wrap
28021 msgid ""
28022 " char *\n"
28023 " guestfs_read_file (guestfs_h *g,\n"
28024 "                    const char *path,\n"
28025 "                    size_t *size_r);\n"
28026 "\n"
28027 msgstr ""
28028
28029 #. type: textblock
28030 #: ../src/guestfs-actions.pod:5812
28031 msgid ""
28032 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
28033 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
28034 "function is limited in the total size of file that can be handled."
28035 msgstr ""
28036
28037 #. type: textblock
28038 #: ../src/guestfs-actions.pod:5824
28039 msgid "(Added in 1.0.63)"
28040 msgstr ""
28041
28042 #. type: =head2
28043 #: ../src/guestfs-actions.pod:5826
28044 msgid "guestfs_read_lines"
28045 msgstr ""
28046
28047 #. type: verbatim
28048 #: ../src/guestfs-actions.pod:5828
28049 #, no-wrap
28050 msgid ""
28051 " char **\n"
28052 " guestfs_read_lines (guestfs_h *g,\n"
28053 "                     const char *path);\n"
28054 "\n"
28055 msgstr ""
28056
28057 #. type: textblock
28058 #: ../src/guestfs-actions.pod:5837
28059 msgid ""
28060 "Note that this function cannot correctly handle binary files (specifically, "
28061 "files containing C<\\0> character which is treated as end of line).  For "
28062 "those you need to use the C<guestfs_read_file> function which has a more "
28063 "complex interface."
28064 msgstr ""
28065
28066 #. type: =head2
28067 #: ../src/guestfs-actions.pod:5848
28068 msgid "guestfs_readdir"
28069 msgstr ""
28070
28071 #. type: verbatim
28072 #: ../src/guestfs-actions.pod:5850
28073 #, no-wrap
28074 msgid ""
28075 " struct guestfs_dirent_list *\n"
28076 " guestfs_readdir (guestfs_h *g,\n"
28077 "                  const char *dir);\n"
28078 "\n"
28079 msgstr ""
28080
28081 #. type: textblock
28082 #: ../src/guestfs-actions.pod:5904
28083 msgid ""
28084 "This function is primarily intended for use by programs.  To get a simple "
28085 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
28086 "consumption, use C<guestfs_ll>."
28087 msgstr ""
28088
28089 #. type: textblock
28090 #: ../src/guestfs-actions.pod:5908
28091 msgid ""
28092 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
28093 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
28094 msgstr ""
28095
28096 #. type: =head2
28097 #: ../src/guestfs-actions.pod:5914
28098 msgid "guestfs_readlink"
28099 msgstr ""
28100
28101 #. type: verbatim
28102 #: ../src/guestfs-actions.pod:5916
28103 #, no-wrap
28104 msgid ""
28105 " char *\n"
28106 " guestfs_readlink (guestfs_h *g,\n"
28107 "                   const char *path);\n"
28108 "\n"
28109 msgstr ""
28110
28111 #. type: =head2
28112 #: ../src/guestfs-actions.pod:5927
28113 msgid "guestfs_readlinklist"
28114 msgstr ""
28115
28116 #. type: verbatim
28117 #: ../src/guestfs-actions.pod:5929
28118 #, no-wrap
28119 msgid ""
28120 " char **\n"
28121 " guestfs_readlinklist (guestfs_h *g,\n"
28122 "                       const char *path,\n"
28123 "                       char *const *names);\n"
28124 "\n"
28125 msgstr ""
28126
28127 #. type: =head2
28128 #: ../src/guestfs-actions.pod:5962
28129 msgid "guestfs_realpath"
28130 msgstr ""
28131
28132 #. type: verbatim
28133 #: ../src/guestfs-actions.pod:5964
28134 #, no-wrap
28135 msgid ""
28136 " char *\n"
28137 " guestfs_realpath (guestfs_h *g,\n"
28138 "                   const char *path);\n"
28139 "\n"
28140 msgstr ""
28141
28142 #. type: =head2
28143 #: ../src/guestfs-actions.pod:5976
28144 msgid "guestfs_removexattr"
28145 msgstr ""
28146
28147 #. type: verbatim
28148 #: ../src/guestfs-actions.pod:5978
28149 #, no-wrap
28150 msgid ""
28151 " int\n"
28152 " guestfs_removexattr (guestfs_h *g,\n"
28153 "                      const char *xattr,\n"
28154 "                      const char *path);\n"
28155 "\n"
28156 msgstr ""
28157
28158 #. type: textblock
28159 #: ../src/guestfs-actions.pod:5986
28160 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
28161 msgstr ""
28162
28163 #. type: =head2
28164 #: ../src/guestfs-actions.pod:5992
28165 msgid "guestfs_resize2fs"
28166 msgstr ""
28167
28168 #. type: verbatim
28169 #: ../src/guestfs-actions.pod:5994
28170 #, no-wrap
28171 msgid ""
28172 " int\n"
28173 " guestfs_resize2fs (guestfs_h *g,\n"
28174 "                    const char *device);\n"
28175 "\n"
28176 msgstr ""
28177
28178 #. type: textblock
28179 #: ../src/guestfs-actions.pod:6001
28180 msgid ""
28181 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
28182 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
28183 "sometimes gives an error about this and sometimes not.  In any case, it is "
28184 "always safe to call C<guestfs_e2fsck_f> before calling this function."
28185 msgstr ""
28186
28187 #. type: =head2
28188 #: ../src/guestfs-actions.pod:6011
28189 msgid "guestfs_resize2fs_M"
28190 msgstr ""
28191
28192 #. type: verbatim
28193 #: ../src/guestfs-actions.pod:6013
28194 #, no-wrap
28195 msgid ""
28196 " int\n"
28197 " guestfs_resize2fs_M (guestfs_h *g,\n"
28198 "                      const char *device);\n"
28199 "\n"
28200 msgstr ""
28201
28202 #. type: textblock
28203 #: ../src/guestfs-actions.pod:6017
28204 msgid ""
28205 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
28206 "resized to its minimum size.  This works like the I<-M> option to the "
28207 "C<resize2fs> command."
28208 msgstr ""
28209
28210 #. type: textblock
28211 #: ../src/guestfs-actions.pod:6021
28212 msgid ""
28213 "To get the resulting size of the filesystem you should call "
28214 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
28215 "These two numbers, multiplied together, give the resulting size of the "
28216 "minimal filesystem in bytes."
28217 msgstr ""
28218
28219 #. type: =head2
28220 #: ../src/guestfs-actions.pod:6030
28221 msgid "guestfs_resize2fs_size"
28222 msgstr ""
28223
28224 #. type: verbatim
28225 #: ../src/guestfs-actions.pod:6032
28226 #, no-wrap
28227 msgid ""
28228 " int\n"
28229 " guestfs_resize2fs_size (guestfs_h *g,\n"
28230 "                         const char *device,\n"
28231 "                         int64_t size);\n"
28232 "\n"
28233 msgstr ""
28234
28235 #. type: textblock
28236 #: ../src/guestfs-actions.pod:6037
28237 msgid ""
28238 "This command is the same as C<guestfs_resize2fs> except that it allows you "
28239 "to specify the new size (in bytes) explicitly."
28240 msgstr ""
28241
28242 #. type: =head2
28243 #: ../src/guestfs-actions.pod:6044
28244 msgid "guestfs_rm"
28245 msgstr ""
28246
28247 #. type: verbatim
28248 #: ../src/guestfs-actions.pod:6046
28249 #, no-wrap
28250 msgid ""
28251 " int\n"
28252 " guestfs_rm (guestfs_h *g,\n"
28253 "             const char *path);\n"
28254 "\n"
28255 msgstr ""
28256
28257 #. type: =head2
28258 #: ../src/guestfs-actions.pod:6056
28259 msgid "guestfs_rm_rf"
28260 msgstr ""
28261
28262 #. type: verbatim
28263 #: ../src/guestfs-actions.pod:6058
28264 #, no-wrap
28265 msgid ""
28266 " int\n"
28267 " guestfs_rm_rf (guestfs_h *g,\n"
28268 "                const char *path);\n"
28269 "\n"
28270 msgstr ""
28271
28272 #. type: =head2
28273 #: ../src/guestfs-actions.pod:6070
28274 msgid "guestfs_rmdir"
28275 msgstr ""
28276
28277 #. type: verbatim
28278 #: ../src/guestfs-actions.pod:6072
28279 #, no-wrap
28280 msgid ""
28281 " int\n"
28282 " guestfs_rmdir (guestfs_h *g,\n"
28283 "                const char *path);\n"
28284 "\n"
28285 msgstr ""
28286
28287 #. type: =head2
28288 #: ../src/guestfs-actions.pod:6082
28289 msgid "guestfs_rmmountpoint"
28290 msgstr ""
28291
28292 #. type: verbatim
28293 #: ../src/guestfs-actions.pod:6084
28294 #, no-wrap
28295 msgid ""
28296 " int\n"
28297 " guestfs_rmmountpoint (guestfs_h *g,\n"
28298 "                       const char *exemptpath);\n"
28299 "\n"
28300 msgstr ""
28301
28302 #. type: textblock
28303 #: ../src/guestfs-actions.pod:6088
28304 msgid ""
28305 "This calls removes a mountpoint that was previously created with "
28306 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
28307 msgstr ""
28308
28309 #. type: =head2
28310 #: ../src/guestfs-actions.pod:6096
28311 msgid "guestfs_scrub_device"
28312 msgstr ""
28313
28314 #. type: verbatim
28315 #: ../src/guestfs-actions.pod:6098
28316 #, no-wrap
28317 msgid ""
28318 " int\n"
28319 " guestfs_scrub_device (guestfs_h *g,\n"
28320 "                       const char *device);\n"
28321 "\n"
28322 msgstr ""
28323
28324 #. type: textblock
28325 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6131
28326 #: ../src/guestfs-actions.pod:6150
28327 msgid "(Added in 1.0.52)"
28328 msgstr ""
28329
28330 #. type: =head2
28331 #: ../src/guestfs-actions.pod:6115
28332 msgid "guestfs_scrub_file"
28333 msgstr ""
28334
28335 #. type: verbatim
28336 #: ../src/guestfs-actions.pod:6117
28337 #, no-wrap
28338 msgid ""
28339 " int\n"
28340 " guestfs_scrub_file (guestfs_h *g,\n"
28341 "                     const char *file);\n"
28342 "\n"
28343 msgstr ""
28344
28345 #. type: =head2
28346 #: ../src/guestfs-actions.pod:6133
28347 msgid "guestfs_scrub_freespace"
28348 msgstr ""
28349
28350 #. type: verbatim
28351 #: ../src/guestfs-actions.pod:6135
28352 #, no-wrap
28353 msgid ""
28354 " int\n"
28355 " guestfs_scrub_freespace (guestfs_h *g,\n"
28356 "                          const char *dir);\n"
28357 "\n"
28358 msgstr ""
28359
28360 #. type: textblock
28361 #: ../src/guestfs-actions.pod:6139
28362 msgid ""
28363 "This command creates the directory C<dir> and then fills it with files until "
28364 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
28365 "and deletes them.  The intention is to scrub any free space on the partition "
28366 "containing C<dir>."
28367 msgstr ""
28368
28369 #. type: =head2
28370 #: ../src/guestfs-actions.pod:6152
28371 msgid "guestfs_set_append"
28372 msgstr ""
28373
28374 #. type: verbatim
28375 #: ../src/guestfs-actions.pod:6154
28376 #, no-wrap
28377 msgid ""
28378 " int\n"
28379 " guestfs_set_append (guestfs_h *g,\n"
28380 "                     const char *append);\n"
28381 "\n"
28382 msgstr ""
28383
28384 #. type: =head2
28385 #: ../src/guestfs-actions.pod:6171
28386 msgid "guestfs_set_attach_method"
28387 msgstr ""
28388
28389 #. type: verbatim
28390 #: ../src/guestfs-actions.pod:6173
28391 #, no-wrap
28392 msgid ""
28393 " int\n"
28394 " guestfs_set_attach_method (guestfs_h *g,\n"
28395 "                            const char *attachmethod);\n"
28396 "\n"
28397 msgstr ""
28398
28399 #. type: =head2
28400 #: ../src/guestfs-actions.pod:6201
28401 msgid "guestfs_set_autosync"
28402 msgstr ""
28403
28404 #. type: verbatim
28405 #: ../src/guestfs-actions.pod:6203
28406 #, no-wrap
28407 msgid ""
28408 " int\n"
28409 " guestfs_set_autosync (guestfs_h *g,\n"
28410 "                       int autosync);\n"
28411 "\n"
28412 msgstr ""
28413
28414 #. type: =head2
28415 #: ../src/guestfs-actions.pod:6219
28416 msgid "guestfs_set_direct"
28417 msgstr ""
28418
28419 #. type: verbatim
28420 #: ../src/guestfs-actions.pod:6221
28421 #, no-wrap
28422 msgid ""
28423 " int\n"
28424 " guestfs_set_direct (guestfs_h *g,\n"
28425 "                     int direct);\n"
28426 "\n"
28427 msgstr ""
28428
28429 #. type: textblock
28430 #: ../src/guestfs-actions.pod:6229
28431 msgid ""
28432 "One consequence of this is that log messages aren't caught by the library "
28433 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
28434 "stdout."
28435 msgstr ""
28436
28437 #. type: =head2
28438 #: ../src/guestfs-actions.pod:6242
28439 msgid "guestfs_set_e2label"
28440 msgstr ""
28441
28442 #. type: verbatim
28443 #: ../src/guestfs-actions.pod:6244
28444 #, no-wrap
28445 msgid ""
28446 " int\n"
28447 " guestfs_set_e2label (guestfs_h *g,\n"
28448 "                      const char *device,\n"
28449 "                      const char *label);\n"
28450 "\n"
28451 msgstr ""
28452
28453 #. type: textblock
28454 #: ../src/guestfs-actions.pod:6253
28455 msgid ""
28456 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
28457 "the existing label on a filesystem."
28458 msgstr ""
28459
28460 #. type: =head2
28461 #: ../src/guestfs-actions.pod:6260
28462 msgid "guestfs_set_e2uuid"
28463 msgstr ""
28464
28465 #. type: verbatim
28466 #: ../src/guestfs-actions.pod:6262
28467 #, no-wrap
28468 msgid ""
28469 " int\n"
28470 " guestfs_set_e2uuid (guestfs_h *g,\n"
28471 "                     const char *device,\n"
28472 "                     const char *uuid);\n"
28473 "\n"
28474 msgstr ""
28475
28476 #. type: textblock
28477 #: ../src/guestfs-actions.pod:6272
28478 msgid ""
28479 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
28480 "the existing UUID of a filesystem."
28481 msgstr ""
28482
28483 #. type: =head2
28484 #: ../src/guestfs-actions.pod:6279
28485 msgid "guestfs_set_memsize"
28486 msgstr ""
28487
28488 #. type: verbatim
28489 #: ../src/guestfs-actions.pod:6281
28490 #, no-wrap
28491 msgid ""
28492 " int\n"
28493 " guestfs_set_memsize (guestfs_h *g,\n"
28494 "                      int memsize);\n"
28495 "\n"
28496 msgstr ""
28497
28498 #. type: textblock
28499 #: ../src/guestfs-actions.pod:6285
28500 msgid ""
28501 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28502 "This only has any effect if called before C<guestfs_launch>."
28503 msgstr ""
28504
28505 #. type: =head2
28506 #: ../src/guestfs-actions.pod:6300
28507 msgid "guestfs_set_network"
28508 msgstr ""
28509
28510 #. type: verbatim
28511 #: ../src/guestfs-actions.pod:6302
28512 #, no-wrap
28513 msgid ""
28514 " int\n"
28515 " guestfs_set_network (guestfs_h *g,\n"
28516 "                      int network);\n"
28517 "\n"
28518 msgstr ""
28519
28520 #. type: textblock
28521 #: ../src/guestfs-actions.pod:6312
28522 msgid ""
28523 "You must call this before calling C<guestfs_launch>, otherwise it has no "
28524 "effect."
28525 msgstr ""
28526
28527 #. type: =head2
28528 #: ../src/guestfs-actions.pod:6319
28529 msgid "guestfs_set_path"
28530 msgstr ""
28531
28532 #. type: verbatim
28533 #: ../src/guestfs-actions.pod:6321
28534 #, no-wrap
28535 msgid ""
28536 " int\n"
28537 " guestfs_set_path (guestfs_h *g,\n"
28538 "                   const char *searchpath);\n"
28539 "\n"
28540 msgstr ""
28541
28542 #. type: =head2
28543 #: ../src/guestfs-actions.pod:6336
28544 msgid "guestfs_set_pgroup"
28545 msgstr ""
28546
28547 #. type: verbatim
28548 #: ../src/guestfs-actions.pod:6338
28549 #, no-wrap
28550 msgid ""
28551 " int\n"
28552 " guestfs_set_pgroup (guestfs_h *g,\n"
28553 "                     int pgroup);\n"
28554 "\n"
28555 msgstr ""
28556
28557 #. type: =head2
28558 #: ../src/guestfs-actions.pod:6355
28559 msgid "guestfs_set_qemu"
28560 msgstr ""
28561
28562 #. type: verbatim
28563 #: ../src/guestfs-actions.pod:6357
28564 #, no-wrap
28565 msgid ""
28566 " int\n"
28567 " guestfs_set_qemu (guestfs_h *g,\n"
28568 "                   const char *qemu);\n"
28569 "\n"
28570 msgstr ""
28571
28572 #. type: =head2
28573 #: ../src/guestfs-actions.pod:6383
28574 msgid "guestfs_set_recovery_proc"
28575 msgstr ""
28576
28577 #. type: verbatim
28578 #: ../src/guestfs-actions.pod:6385
28579 #, no-wrap
28580 msgid ""
28581 " int\n"
28582 " guestfs_set_recovery_proc (guestfs_h *g,\n"
28583 "                            int recoveryproc);\n"
28584 "\n"
28585 msgstr ""
28586
28587 #. type: textblock
28588 #: ../src/guestfs-actions.pod:6389
28589 msgid ""
28590 "If this is called with the parameter C<false> then C<guestfs_launch> does "
28591 "not create a recovery process.  The purpose of the recovery process is to "
28592 "stop runaway qemu processes in the case where the main program aborts "
28593 "abruptly."
28594 msgstr ""
28595
28596 #. type: textblock
28597 #: ../src/guestfs-actions.pod:6394
28598 msgid ""
28599 "This only has any effect if called before C<guestfs_launch>, and the default "
28600 "is true."
28601 msgstr ""
28602
28603 #. type: =head2
28604 #: ../src/guestfs-actions.pod:6407
28605 msgid "guestfs_set_selinux"
28606 msgstr ""
28607
28608 #. type: verbatim
28609 #: ../src/guestfs-actions.pod:6409
28610 #, no-wrap
28611 msgid ""
28612 " int\n"
28613 " guestfs_set_selinux (guestfs_h *g,\n"
28614 "                      int selinux);\n"
28615 "\n"
28616 msgstr ""
28617
28618 #. type: =head2
28619 #: ../src/guestfs-actions.pod:6426
28620 msgid "guestfs_set_trace"
28621 msgstr ""
28622
28623 #. type: verbatim
28624 #: ../src/guestfs-actions.pod:6428
28625 #, no-wrap
28626 msgid ""
28627 " int\n"
28628 " guestfs_set_trace (guestfs_h *g,\n"
28629 "                    int trace);\n"
28630 "\n"
28631 msgstr ""
28632
28633 #. type: textblock
28634 #: ../src/guestfs-actions.pod:6442
28635 msgid ""
28636 "Trace messages are normally sent to C<stderr>, unless you register a "
28637 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28638 msgstr ""
28639
28640 #. type: =head2
28641 #: ../src/guestfs-actions.pod:6450
28642 msgid "guestfs_set_verbose"
28643 msgstr ""
28644
28645 #. type: verbatim
28646 #: ../src/guestfs-actions.pod:6452
28647 #, no-wrap
28648 msgid ""
28649 " int\n"
28650 " guestfs_set_verbose (guestfs_h *g,\n"
28651 "                      int verbose);\n"
28652 "\n"
28653 msgstr ""
28654
28655 #. type: textblock
28656 #: ../src/guestfs-actions.pod:6461
28657 msgid ""
28658 "Verbose messages are normally sent to C<stderr>, unless you register a "
28659 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28660 msgstr ""
28661
28662 #. type: =head2
28663 #: ../src/guestfs-actions.pod:6469
28664 msgid "guestfs_setcon"
28665 msgstr ""
28666
28667 #. type: verbatim
28668 #: ../src/guestfs-actions.pod:6471
28669 #, no-wrap
28670 msgid ""
28671 " int\n"
28672 " guestfs_setcon (guestfs_h *g,\n"
28673 "                 const char *context);\n"
28674 "\n"
28675 msgstr ""
28676
28677 #. type: =head2
28678 #: ../src/guestfs-actions.pod:6484
28679 msgid "guestfs_setxattr"
28680 msgstr ""
28681
28682 #. type: verbatim
28683 #: ../src/guestfs-actions.pod:6486
28684 #, no-wrap
28685 msgid ""
28686 " int\n"
28687 " guestfs_setxattr (guestfs_h *g,\n"
28688 "                   const char *xattr,\n"
28689 "                   const char *val,\n"
28690 "                   int vallen,\n"
28691 "                   const char *path);\n"
28692 "\n"
28693 msgstr ""
28694
28695 #. type: textblock
28696 #: ../src/guestfs-actions.pod:6497
28697 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
28698 msgstr ""
28699
28700 #. type: =head2
28701 #: ../src/guestfs-actions.pod:6503
28702 msgid "guestfs_sfdisk"
28703 msgstr ""
28704
28705 #. type: verbatim
28706 #: ../src/guestfs-actions.pod:6505
28707 #, no-wrap
28708 msgid ""
28709 " int\n"
28710 " guestfs_sfdisk (guestfs_h *g,\n"
28711 "                 const char *device,\n"
28712 "                 int cyls,\n"
28713 "                 int heads,\n"
28714 "                 int sectors,\n"
28715 "                 char *const *lines);\n"
28716 "\n"
28717 msgstr ""
28718
28719 #. type: textblock
28720 #: ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6557
28721 #: ../src/guestfs-actions.pod:6591
28722 msgid ""
28723 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
28724 "call instead."
28725 msgstr ""
28726
28727 #. type: textblock
28728 #: ../src/guestfs-actions.pod:6540
28729 msgid ""
28730 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
28731 msgstr ""
28732
28733 #. type: =head2
28734 #: ../src/guestfs-actions.pod:6550
28735 msgid "guestfs_sfdiskM"
28736 msgstr ""
28737
28738 #. type: verbatim
28739 #: ../src/guestfs-actions.pod:6552
28740 #, no-wrap
28741 msgid ""
28742 " int\n"
28743 " guestfs_sfdiskM (guestfs_h *g,\n"
28744 "                  const char *device,\n"
28745 "                  char *const *lines);\n"
28746 "\n"
28747 msgstr ""
28748
28749 #. type: textblock
28750 #: ../src/guestfs-actions.pod:6564
28751 msgid ""
28752 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
28753 "partition sizes are specified in megabytes only (rounded to the nearest "
28754 "cylinder) and you don't need to specify the cyls, heads and sectors "
28755 "parameters which were rarely if ever used anyway."
28756 msgstr ""
28757
28758 #. type: textblock
28759 #: ../src/guestfs-actions.pod:6570
28760 msgid ""
28761 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
28762 "C<guestfs_part_disk>"
28763 msgstr ""
28764
28765 #. type: =head2
28766 #: ../src/guestfs-actions.pod:6580
28767 msgid "guestfs_sfdisk_N"
28768 msgstr ""
28769
28770 #. type: verbatim
28771 #: ../src/guestfs-actions.pod:6582
28772 #, no-wrap
28773 msgid ""
28774 " int\n"
28775 " guestfs_sfdisk_N (guestfs_h *g,\n"
28776 "                   const char *device,\n"
28777 "                   int partnum,\n"
28778 "                   int cyls,\n"
28779 "                   int heads,\n"
28780 "                   int sectors,\n"
28781 "                   const char *line);\n"
28782 "\n"
28783 msgstr ""
28784
28785 #. type: textblock
28786 #: ../src/guestfs-actions.pod:6601
28787 msgid ""
28788 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
28789 "for the cyls/heads/sectors parameters."
28790 msgstr ""
28791
28792 #. type: textblock
28793 #: ../src/guestfs-actions.pod:6604
28794 msgid "See also: C<guestfs_part_add>"
28795 msgstr ""
28796
28797 #. type: =head2
28798 #: ../src/guestfs-actions.pod:6613
28799 msgid "guestfs_sfdisk_disk_geometry"
28800 msgstr ""
28801
28802 #. type: verbatim
28803 #: ../src/guestfs-actions.pod:6615
28804 #, no-wrap
28805 msgid ""
28806 " char *\n"
28807 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
28808 "                               const char *device);\n"
28809 "\n"
28810 msgstr ""
28811
28812 #. type: textblock
28813 #: ../src/guestfs-actions.pod:6619
28814 msgid ""
28815 "This displays the disk geometry of C<device> read from the partition table.  "
28816 "Especially in the case where the underlying block device has been resized, "
28817 "this can be different from the kernel's idea of the geometry (see "
28818 "C<guestfs_sfdisk_kernel_geometry>)."
28819 msgstr ""
28820
28821 #. type: =head2
28822 #: ../src/guestfs-actions.pod:6632
28823 msgid "guestfs_sfdisk_kernel_geometry"
28824 msgstr ""
28825
28826 #. type: verbatim
28827 #: ../src/guestfs-actions.pod:6634
28828 #, no-wrap
28829 msgid ""
28830 " char *\n"
28831 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
28832 "                                 const char *device);\n"
28833 "\n"
28834 msgstr ""
28835
28836 #. type: =head2
28837 #: ../src/guestfs-actions.pod:6648
28838 msgid "guestfs_sfdisk_l"
28839 msgstr ""
28840
28841 #. type: verbatim
28842 #: ../src/guestfs-actions.pod:6650
28843 #, no-wrap
28844 msgid ""
28845 " char *\n"
28846 " guestfs_sfdisk_l (guestfs_h *g,\n"
28847 "                   const char *device);\n"
28848 "\n"
28849 msgstr ""
28850
28851 #. type: textblock
28852 #: ../src/guestfs-actions.pod:6654
28853 msgid ""
28854 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
28855 "call instead."
28856 msgstr ""
28857
28858 #. type: textblock
28859 #: ../src/guestfs-actions.pod:6665
28860 msgid "See also: C<guestfs_part_list>"
28861 msgstr ""
28862
28863 #. type: =head2
28864 #: ../src/guestfs-actions.pod:6672
28865 msgid "guestfs_sh"
28866 msgstr ""
28867
28868 #. type: verbatim
28869 #: ../src/guestfs-actions.pod:6674
28870 #, no-wrap
28871 msgid ""
28872 " char *\n"
28873 " guestfs_sh (guestfs_h *g,\n"
28874 "             const char *command);\n"
28875 "\n"
28876 msgstr ""
28877
28878 #. type: textblock
28879 #: ../src/guestfs-actions.pod:6681
28880 msgid "This is like C<guestfs_command>, but passes the command to:"
28881 msgstr ""
28882
28883 #. type: textblock
28884 #: ../src/guestfs-actions.pod:6689
28885 msgid "All the provisos about C<guestfs_command> apply to this call."
28886 msgstr ""
28887
28888 #. type: =head2
28889 #: ../src/guestfs-actions.pod:6696
28890 msgid "guestfs_sh_lines"
28891 msgstr ""
28892
28893 #. type: verbatim
28894 #: ../src/guestfs-actions.pod:6698
28895 #, no-wrap
28896 msgid ""
28897 " char **\n"
28898 " guestfs_sh_lines (guestfs_h *g,\n"
28899 "                   const char *command);\n"
28900 "\n"
28901 msgstr ""
28902
28903 #. type: textblock
28904 #: ../src/guestfs-actions.pod:6702
28905 msgid ""
28906 "This is the same as C<guestfs_sh>, but splits the result into a list of "
28907 "lines."
28908 msgstr ""
28909
28910 #. type: textblock
28911 #: ../src/guestfs-actions.pod:6705
28912 msgid "See also: C<guestfs_command_lines>"
28913 msgstr ""
28914
28915 #. type: =head2
28916 #: ../src/guestfs-actions.pod:6713
28917 msgid "guestfs_sleep"
28918 msgstr ""
28919
28920 #. type: verbatim
28921 #: ../src/guestfs-actions.pod:6715
28922 #, no-wrap
28923 msgid ""
28924 " int\n"
28925 " guestfs_sleep (guestfs_h *g,\n"
28926 "                int secs);\n"
28927 "\n"
28928 msgstr ""
28929
28930 #. type: textblock
28931 #: ../src/guestfs-actions.pod:6723
28932 msgid "(Added in 1.0.41)"
28933 msgstr ""
28934
28935 #. type: =head2
28936 #: ../src/guestfs-actions.pod:6725 ../src/guestfs-structs.pod:109
28937 msgid "guestfs_stat"
28938 msgstr ""
28939
28940 #. type: verbatim
28941 #: ../src/guestfs-actions.pod:6727
28942 #, no-wrap
28943 msgid ""
28944 " struct guestfs_stat *\n"
28945 " guestfs_stat (guestfs_h *g,\n"
28946 "               const char *path);\n"
28947 "\n"
28948 msgstr ""
28949
28950 #. type: =head2
28951 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-structs.pod:135
28952 msgid "guestfs_statvfs"
28953 msgstr ""
28954
28955 #. type: verbatim
28956 #: ../src/guestfs-actions.pod:6743
28957 #, no-wrap
28958 msgid ""
28959 " struct guestfs_statvfs *\n"
28960 " guestfs_statvfs (guestfs_h *g,\n"
28961 "                  const char *path);\n"
28962 "\n"
28963 msgstr ""
28964
28965 #. type: textblock
28966 #: ../src/guestfs-actions.pod:6753
28967 msgid ""
28968 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
28969 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
28970 msgstr ""
28971
28972 #. type: =head2
28973 #: ../src/guestfs-actions.pod:6759
28974 msgid "guestfs_strings"
28975 msgstr ""
28976
28977 #. type: verbatim
28978 #: ../src/guestfs-actions.pod:6761
28979 #, no-wrap
28980 msgid ""
28981 " char **\n"
28982 " guestfs_strings (guestfs_h *g,\n"
28983 "                  const char *path);\n"
28984 "\n"
28985 msgstr ""
28986
28987 #. type: =head2
28988 #: ../src/guestfs-actions.pod:6777
28989 msgid "guestfs_strings_e"
28990 msgstr ""
28991
28992 #. type: verbatim
28993 #: ../src/guestfs-actions.pod:6779
28994 #, no-wrap
28995 msgid ""
28996 " char **\n"
28997 " guestfs_strings_e (guestfs_h *g,\n"
28998 "                    const char *encoding,\n"
28999 "                    const char *path);\n"
29000 "\n"
29001 msgstr ""
29002
29003 #. type: textblock
29004 #: ../src/guestfs-actions.pod:6784
29005 msgid ""
29006 "This is like the C<guestfs_strings> command, but allows you to specify the "
29007 "encoding of strings that are looked for in the source file C<path>."
29008 msgstr ""
29009
29010 #. type: textblock
29011 #: ../src/guestfs-actions.pod:6794
29012 msgid ""
29013 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29014 "ISO-8859-X (this is what C<guestfs_strings> uses)."
29015 msgstr ""
29016
29017 #. type: =head2
29018 #: ../src/guestfs-actions.pod:6832
29019 msgid "guestfs_swapoff_device"
29020 msgstr ""
29021
29022 #. type: verbatim
29023 #: ../src/guestfs-actions.pod:6834
29024 #, no-wrap
29025 msgid ""
29026 " int\n"
29027 " guestfs_swapoff_device (guestfs_h *g,\n"
29028 "                         const char *device);\n"
29029 "\n"
29030 msgstr ""
29031
29032 #. type: textblock
29033 #: ../src/guestfs-actions.pod:6838
29034 msgid ""
29035 "This command disables the libguestfs appliance swap device or partition "
29036 "named C<device>.  See C<guestfs_swapon_device>."
29037 msgstr ""
29038
29039 #. type: =head2
29040 #: ../src/guestfs-actions.pod:6846
29041 msgid "guestfs_swapoff_file"
29042 msgstr ""
29043
29044 #. type: verbatim
29045 #: ../src/guestfs-actions.pod:6848
29046 #, no-wrap
29047 msgid ""
29048 " int\n"
29049 " guestfs_swapoff_file (guestfs_h *g,\n"
29050 "                       const char *file);\n"
29051 "\n"
29052 msgstr ""
29053
29054 #. type: =head2
29055 #: ../src/guestfs-actions.pod:6858
29056 msgid "guestfs_swapoff_label"
29057 msgstr ""
29058
29059 #. type: verbatim
29060 #: ../src/guestfs-actions.pod:6860
29061 #, no-wrap
29062 msgid ""
29063 " int\n"
29064 " guestfs_swapoff_label (guestfs_h *g,\n"
29065 "                        const char *label);\n"
29066 "\n"
29067 msgstr ""
29068
29069 #. type: =head2
29070 #: ../src/guestfs-actions.pod:6871
29071 msgid "guestfs_swapoff_uuid"
29072 msgstr ""
29073
29074 #. type: verbatim
29075 #: ../src/guestfs-actions.pod:6873
29076 #, no-wrap
29077 msgid ""
29078 " int\n"
29079 " guestfs_swapoff_uuid (guestfs_h *g,\n"
29080 "                       const char *uuid);\n"
29081 "\n"
29082 msgstr ""
29083
29084 #. type: =head2
29085 #: ../src/guestfs-actions.pod:6884
29086 msgid "guestfs_swapon_device"
29087 msgstr ""
29088
29089 #. type: verbatim
29090 #: ../src/guestfs-actions.pod:6886
29091 #, no-wrap
29092 msgid ""
29093 " int\n"
29094 " guestfs_swapon_device (guestfs_h *g,\n"
29095 "                        const char *device);\n"
29096 "\n"
29097 msgstr ""
29098
29099 #. type: textblock
29100 #: ../src/guestfs-actions.pod:6890
29101 msgid ""
29102 "This command enables the libguestfs appliance to use the swap device or "
29103 "partition named C<device>.  The increased memory is made available for all "
29104 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
29105 msgstr ""
29106
29107 #. type: =head2
29108 #: ../src/guestfs-actions.pod:6906
29109 msgid "guestfs_swapon_file"
29110 msgstr ""
29111
29112 #. type: verbatim
29113 #: ../src/guestfs-actions.pod:6908
29114 #, no-wrap
29115 msgid ""
29116 " int\n"
29117 " guestfs_swapon_file (guestfs_h *g,\n"
29118 "                      const char *file);\n"
29119 "\n"
29120 msgstr ""
29121
29122 #. type: textblock
29123 #: ../src/guestfs-actions.pod:6912
29124 msgid ""
29125 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
29126 "notes."
29127 msgstr ""
29128
29129 #. type: =head2
29130 #: ../src/guestfs-actions.pod:6919
29131 msgid "guestfs_swapon_label"
29132 msgstr ""
29133
29134 #. type: verbatim
29135 #: ../src/guestfs-actions.pod:6921
29136 #, no-wrap
29137 msgid ""
29138 " int\n"
29139 " guestfs_swapon_label (guestfs_h *g,\n"
29140 "                       const char *label);\n"
29141 "\n"
29142 msgstr ""
29143
29144 #. type: textblock
29145 #: ../src/guestfs-actions.pod:6925
29146 msgid ""
29147 "This command enables swap to a labeled swap partition.  See "
29148 "C<guestfs_swapon_device> for other notes."
29149 msgstr ""
29150
29151 #. type: =head2
29152 #: ../src/guestfs-actions.pod:6932
29153 msgid "guestfs_swapon_uuid"
29154 msgstr ""
29155
29156 #. type: verbatim
29157 #: ../src/guestfs-actions.pod:6934
29158 #, no-wrap
29159 msgid ""
29160 " int\n"
29161 " guestfs_swapon_uuid (guestfs_h *g,\n"
29162 "                      const char *uuid);\n"
29163 "\n"
29164 msgstr ""
29165
29166 #. type: textblock
29167 #: ../src/guestfs-actions.pod:6938
29168 msgid ""
29169 "This command enables swap to a swap partition with the given UUID.  See "
29170 "C<guestfs_swapon_device> for other notes."
29171 msgstr ""
29172
29173 #. type: =head2
29174 #: ../src/guestfs-actions.pod:6945
29175 msgid "guestfs_sync"
29176 msgstr ""
29177
29178 #. type: verbatim
29179 #: ../src/guestfs-actions.pod:6947
29180 #, no-wrap
29181 msgid ""
29182 " int\n"
29183 " guestfs_sync (guestfs_h *g);\n"
29184 "\n"
29185 msgstr ""
29186
29187 #. type: =head2
29188 #: ../src/guestfs-actions.pod:6960
29189 msgid "guestfs_tail"
29190 msgstr ""
29191
29192 #. type: verbatim
29193 #: ../src/guestfs-actions.pod:6962
29194 #, no-wrap
29195 msgid ""
29196 " char **\n"
29197 " guestfs_tail (guestfs_h *g,\n"
29198 "               const char *path);\n"
29199 "\n"
29200 msgstr ""
29201
29202 #. type: =head2
29203 #: ../src/guestfs-actions.pod:6978
29204 msgid "guestfs_tail_n"
29205 msgstr ""
29206
29207 #. type: verbatim
29208 #: ../src/guestfs-actions.pod:6980
29209 #, no-wrap
29210 msgid ""
29211 " char **\n"
29212 " guestfs_tail_n (guestfs_h *g,\n"
29213 "                 int nrlines,\n"
29214 "                 const char *path);\n"
29215 "\n"
29216 msgstr ""
29217
29218 #. type: =head2
29219 #: ../src/guestfs-actions.pod:7002
29220 msgid "guestfs_tar_in"
29221 msgstr ""
29222
29223 #. type: verbatim
29224 #: ../src/guestfs-actions.pod:7004
29225 #, no-wrap
29226 msgid ""
29227 " int\n"
29228 " guestfs_tar_in (guestfs_h *g,\n"
29229 "                 const char *tarfile,\n"
29230 "                 const char *directory);\n"
29231 "\n"
29232 msgstr ""
29233
29234 #. type: textblock
29235 #: ../src/guestfs-actions.pod:7012
29236 msgid ""
29237 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
29238 msgstr ""
29239
29240 #. type: textblock
29241 #: ../src/guestfs-actions.pod:7017 ../src/guestfs-actions.pod:7034
29242 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7066
29243 msgid "(Added in 1.0.3)"
29244 msgstr ""
29245
29246 #. type: =head2
29247 #: ../src/guestfs-actions.pod:7019
29248 msgid "guestfs_tar_out"
29249 msgstr ""
29250
29251 #. type: verbatim
29252 #: ../src/guestfs-actions.pod:7021
29253 #, no-wrap
29254 msgid ""
29255 " int\n"
29256 " guestfs_tar_out (guestfs_h *g,\n"
29257 "                  const char *directory,\n"
29258 "                  const char *tarfile);\n"
29259 "\n"
29260 msgstr ""
29261
29262 #. type: textblock
29263 #: ../src/guestfs-actions.pod:7029
29264 msgid ""
29265 "To download a compressed tarball, use C<guestfs_tgz_out> or "
29266 "C<guestfs_txz_out>."
29267 msgstr ""
29268
29269 #. type: =head2
29270 #: ../src/guestfs-actions.pod:7036
29271 msgid "guestfs_tgz_in"
29272 msgstr ""
29273
29274 #. type: verbatim
29275 #: ../src/guestfs-actions.pod:7038
29276 #, no-wrap
29277 msgid ""
29278 " int\n"
29279 " guestfs_tgz_in (guestfs_h *g,\n"
29280 "                 const char *tarball,\n"
29281 "                 const char *directory);\n"
29282 "\n"
29283 msgstr ""
29284
29285 #. type: textblock
29286 #: ../src/guestfs-actions.pod:7046
29287 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
29288 msgstr ""
29289
29290 #. type: =head2
29291 #: ../src/guestfs-actions.pod:7052
29292 msgid "guestfs_tgz_out"
29293 msgstr ""
29294
29295 #. type: verbatim
29296 #: ../src/guestfs-actions.pod:7054
29297 #, no-wrap
29298 msgid ""
29299 " int\n"
29300 " guestfs_tgz_out (guestfs_h *g,\n"
29301 "                  const char *directory,\n"
29302 "                  const char *tarball);\n"
29303 "\n"
29304 msgstr ""
29305
29306 #. type: textblock
29307 #: ../src/guestfs-actions.pod:7062
29308 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
29309 msgstr ""
29310
29311 #. type: =head2
29312 #: ../src/guestfs-actions.pod:7068
29313 msgid "guestfs_touch"
29314 msgstr ""
29315
29316 #. type: verbatim
29317 #: ../src/guestfs-actions.pod:7070
29318 #, no-wrap
29319 msgid ""
29320 " int\n"
29321 " guestfs_touch (guestfs_h *g,\n"
29322 "                const char *path);\n"
29323 "\n"
29324 msgstr ""
29325
29326 #. type: =head2
29327 #: ../src/guestfs-actions.pod:7085
29328 msgid "guestfs_truncate"
29329 msgstr ""
29330
29331 #. type: verbatim
29332 #: ../src/guestfs-actions.pod:7087
29333 #, no-wrap
29334 msgid ""
29335 " int\n"
29336 " guestfs_truncate (guestfs_h *g,\n"
29337 "                   const char *path);\n"
29338 "\n"
29339 msgstr ""
29340
29341 #. type: =head2
29342 #: ../src/guestfs-actions.pod:7098
29343 msgid "guestfs_truncate_size"
29344 msgstr ""
29345
29346 #. type: verbatim
29347 #: ../src/guestfs-actions.pod:7100
29348 #, no-wrap
29349 msgid ""
29350 " int\n"
29351 " guestfs_truncate_size (guestfs_h *g,\n"
29352 "                        const char *path,\n"
29353 "                        int64_t size);\n"
29354 "\n"
29355 msgstr ""
29356
29357 #. type: textblock
29358 #: ../src/guestfs-actions.pod:7108
29359 msgid ""
29360 "If the current file size is less than C<size> then the file is extended to "
29361 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29362 "blocks are not allocated for the file until you write to it).  To create a "
29363 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
29364 msgstr ""
29365
29366 #. type: =head2
29367 #: ../src/guestfs-actions.pod:7118
29368 msgid "guestfs_tune2fs_l"
29369 msgstr ""
29370
29371 #. type: verbatim
29372 #: ../src/guestfs-actions.pod:7120
29373 #, no-wrap
29374 msgid ""
29375 " char **\n"
29376 " guestfs_tune2fs_l (guestfs_h *g,\n"
29377 "                    const char *device);\n"
29378 "\n"
29379 msgstr ""
29380
29381 #. type: =head2
29382 #: ../src/guestfs-actions.pod:7140
29383 msgid "guestfs_txz_in"
29384 msgstr ""
29385
29386 #. type: verbatim
29387 #: ../src/guestfs-actions.pod:7142
29388 #, no-wrap
29389 msgid ""
29390 " int\n"
29391 " guestfs_txz_in (guestfs_h *g,\n"
29392 "                 const char *tarball,\n"
29393 "                 const char *directory);\n"
29394 "\n"
29395 msgstr ""
29396
29397 #. type: =head2
29398 #: ../src/guestfs-actions.pod:7154
29399 msgid "guestfs_txz_out"
29400 msgstr ""
29401
29402 #. type: verbatim
29403 #: ../src/guestfs-actions.pod:7156
29404 #, no-wrap
29405 msgid ""
29406 " int\n"
29407 " guestfs_txz_out (guestfs_h *g,\n"
29408 "                  const char *directory,\n"
29409 "                  const char *tarball);\n"
29410 "\n"
29411 msgstr ""
29412
29413 #. type: =head2
29414 #: ../src/guestfs-actions.pod:7168
29415 msgid "guestfs_umask"
29416 msgstr ""
29417
29418 #. type: verbatim
29419 #: ../src/guestfs-actions.pod:7170
29420 #, no-wrap
29421 msgid ""
29422 " int\n"
29423 " guestfs_umask (guestfs_h *g,\n"
29424 "                int mask);\n"
29425 "\n"
29426 msgstr ""
29427
29428 #. type: textblock
29429 #: ../src/guestfs-actions.pod:7186
29430 msgid ""
29431 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
29432 "C<guestfs_mkdir>."
29433 msgstr ""
29434
29435 #. type: =head2
29436 #: ../src/guestfs-actions.pod:7195
29437 msgid "guestfs_umount"
29438 msgstr ""
29439
29440 #. type: verbatim
29441 #: ../src/guestfs-actions.pod:7197
29442 #, no-wrap
29443 msgid ""
29444 " int\n"
29445 " guestfs_umount (guestfs_h *g,\n"
29446 "                 const char *pathordevice);\n"
29447 "\n"
29448 msgstr ""
29449
29450 #. type: =head2
29451 #: ../src/guestfs-actions.pod:7209
29452 msgid "guestfs_umount_all"
29453 msgstr ""
29454
29455 #. type: verbatim
29456 #: ../src/guestfs-actions.pod:7211
29457 #, no-wrap
29458 msgid ""
29459 " int\n"
29460 " guestfs_umount_all (guestfs_h *g);\n"
29461 "\n"
29462 msgstr ""
29463
29464 #. type: =head2
29465 #: ../src/guestfs-actions.pod:7222
29466 msgid "guestfs_upload"
29467 msgstr ""
29468
29469 #. type: verbatim
29470 #: ../src/guestfs-actions.pod:7224
29471 #, no-wrap
29472 msgid ""
29473 " int\n"
29474 " guestfs_upload (guestfs_h *g,\n"
29475 "                 const char *filename,\n"
29476 "                 const char *remotefilename);\n"
29477 "\n"
29478 msgstr ""
29479
29480 #. type: textblock
29481 #: ../src/guestfs-actions.pod:7234
29482 msgid "See also C<guestfs_download>."
29483 msgstr ""
29484
29485 #. type: =head2
29486 #: ../src/guestfs-actions.pod:7245
29487 msgid "guestfs_upload_offset"
29488 msgstr ""
29489
29490 #. type: verbatim
29491 #: ../src/guestfs-actions.pod:7247
29492 #, no-wrap
29493 msgid ""
29494 " int\n"
29495 " guestfs_upload_offset (guestfs_h *g,\n"
29496 "                        const char *filename,\n"
29497 "                        const char *remotefilename,\n"
29498 "                        int64_t offset);\n"
29499 "\n"
29500 msgstr ""
29501
29502 #. type: textblock
29503 #: ../src/guestfs-actions.pod:7263
29504 msgid ""
29505 "Note that there is no limit on the amount of data that can be uploaded with "
29506 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
29507 "full amount unless an error occurs."
29508 msgstr ""
29509
29510 #. type: textblock
29511 #: ../src/guestfs-actions.pod:7268
29512 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
29513 msgstr ""
29514
29515 #. type: =head2
29516 #: ../src/guestfs-actions.pod:7279
29517 msgid "guestfs_utimens"
29518 msgstr ""
29519
29520 #. type: verbatim
29521 #: ../src/guestfs-actions.pod:7281
29522 #, no-wrap
29523 msgid ""
29524 " int\n"
29525 " guestfs_utimens (guestfs_h *g,\n"
29526 "                  const char *path,\n"
29527 "                  int64_t atsecs,\n"
29528 "                  int64_t atnsecs,\n"
29529 "                  int64_t mtsecs,\n"
29530 "                  int64_t mtnsecs);\n"
29531 "\n"
29532 msgstr ""
29533
29534 #. type: =head2
29535 #: ../src/guestfs-actions.pod:7310 ../src/guestfs-structs.pod:175
29536 msgid "guestfs_version"
29537 msgstr ""
29538
29539 #. type: verbatim
29540 #: ../src/guestfs-actions.pod:7312
29541 #, no-wrap
29542 msgid ""
29543 " struct guestfs_version *\n"
29544 " guestfs_version (guestfs_h *g);\n"
29545 "\n"
29546 msgstr ""
29547
29548 #. type: textblock
29549 #: ../src/guestfs-actions.pod:7340
29550 msgid ""
29551 "I<Note:> Don't use this call to test for availability of features.  In "
29552 "enterprise distributions we backport features from later versions into "
29553 "earlier versions, making this an unreliable way to test for features.  Use "
29554 "C<guestfs_available> instead."
29555 msgstr ""
29556
29557 #. type: textblock
29558 #: ../src/guestfs-actions.pod:7346
29559 msgid ""
29560 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
29561 "error.  I<The caller must call C<guestfs_free_version> after use>."
29562 msgstr ""
29563
29564 #. type: textblock
29565 #: ../src/guestfs-actions.pod:7350
29566 msgid "(Added in 1.0.58)"
29567 msgstr ""
29568
29569 #. type: =head2
29570 #: ../src/guestfs-actions.pod:7352
29571 msgid "guestfs_vfs_label"
29572 msgstr ""
29573
29574 #. type: verbatim
29575 #: ../src/guestfs-actions.pod:7354
29576 #, no-wrap
29577 msgid ""
29578 " char *\n"
29579 " guestfs_vfs_label (guestfs_h *g,\n"
29580 "                    const char *device);\n"
29581 "\n"
29582 msgstr ""
29583
29584 #. type: textblock
29585 #: ../src/guestfs-actions.pod:7363
29586 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
29587 msgstr ""
29588
29589 #. type: textblock
29590 #: ../src/guestfs-actions.pod:7368 ../src/guestfs-actions.pod:7405
29591 msgid "(Added in 1.3.18)"
29592 msgstr ""
29593
29594 #. type: =head2
29595 #: ../src/guestfs-actions.pod:7370
29596 msgid "guestfs_vfs_type"
29597 msgstr ""
29598
29599 #. type: verbatim
29600 #: ../src/guestfs-actions.pod:7372
29601 #, no-wrap
29602 msgid ""
29603 " char *\n"
29604 " guestfs_vfs_type (guestfs_h *g,\n"
29605 "                   const char *device);\n"
29606 "\n"
29607 msgstr ""
29608
29609 #. type: =head2
29610 #: ../src/guestfs-actions.pod:7389
29611 msgid "guestfs_vfs_uuid"
29612 msgstr ""
29613
29614 #. type: verbatim
29615 #: ../src/guestfs-actions.pod:7391
29616 #, no-wrap
29617 msgid ""
29618 " char *\n"
29619 " guestfs_vfs_uuid (guestfs_h *g,\n"
29620 "                   const char *device);\n"
29621 "\n"
29622 msgstr ""
29623
29624 #. type: textblock
29625 #: ../src/guestfs-actions.pod:7400
29626 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
29627 msgstr ""
29628
29629 #. type: =head2
29630 #: ../src/guestfs-actions.pod:7407
29631 msgid "guestfs_vg_activate"
29632 msgstr ""
29633
29634 #. type: verbatim
29635 #: ../src/guestfs-actions.pod:7409
29636 #, no-wrap
29637 msgid ""
29638 " int\n"
29639 " guestfs_vg_activate (guestfs_h *g,\n"
29640 "                      int activate,\n"
29641 "                      char *const *volgroups);\n"
29642 "\n"
29643 msgstr ""
29644
29645 #. type: =head2
29646 #: ../src/guestfs-actions.pod:7426
29647 msgid "guestfs_vg_activate_all"
29648 msgstr ""
29649
29650 #. type: verbatim
29651 #: ../src/guestfs-actions.pod:7428
29652 #, no-wrap
29653 msgid ""
29654 " int\n"
29655 " guestfs_vg_activate_all (guestfs_h *g,\n"
29656 "                          int activate);\n"
29657 "\n"
29658 msgstr ""
29659
29660 #. type: =head2
29661 #: ../src/guestfs-actions.pod:7441
29662 msgid "guestfs_vgcreate"
29663 msgstr ""
29664
29665 #. type: verbatim
29666 #: ../src/guestfs-actions.pod:7443
29667 #, no-wrap
29668 msgid ""
29669 " int\n"
29670 " guestfs_vgcreate (guestfs_h *g,\n"
29671 "                   const char *volgroup,\n"
29672 "                   char *const *physvols);\n"
29673 "\n"
29674 msgstr ""
29675
29676 #. type: =head2
29677 #: ../src/guestfs-actions.pod:7455
29678 msgid "guestfs_vglvuuids"
29679 msgstr ""
29680
29681 #. type: verbatim
29682 #: ../src/guestfs-actions.pod:7457
29683 #, no-wrap
29684 msgid ""
29685 " char **\n"
29686 " guestfs_vglvuuids (guestfs_h *g,\n"
29687 "                    const char *vgname);\n"
29688 "\n"
29689 msgstr ""
29690
29691 #. type: textblock
29692 #: ../src/guestfs-actions.pod:7464
29693 msgid ""
29694 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
29695 "associate logical volumes and volume groups."
29696 msgstr ""
29697
29698 #. type: textblock
29699 #: ../src/guestfs-actions.pod:7467
29700 msgid "See also C<guestfs_vgpvuuids>."
29701 msgstr ""
29702
29703 #. type: =head2
29704 #: ../src/guestfs-actions.pod:7475
29705 msgid "guestfs_vgpvuuids"
29706 msgstr ""
29707
29708 #. type: verbatim
29709 #: ../src/guestfs-actions.pod:7477
29710 #, no-wrap
29711 msgid ""
29712 " char **\n"
29713 " guestfs_vgpvuuids (guestfs_h *g,\n"
29714 "                    const char *vgname);\n"
29715 "\n"
29716 msgstr ""
29717
29718 #. type: textblock
29719 #: ../src/guestfs-actions.pod:7484
29720 msgid ""
29721 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
29722 "associate physical volumes and volume groups."
29723 msgstr ""
29724
29725 #. type: textblock
29726 #: ../src/guestfs-actions.pod:7487
29727 msgid "See also C<guestfs_vglvuuids>."
29728 msgstr ""
29729
29730 #. type: =head2
29731 #: ../src/guestfs-actions.pod:7495
29732 msgid "guestfs_vgremove"
29733 msgstr ""
29734
29735 #. type: verbatim
29736 #: ../src/guestfs-actions.pod:7497
29737 #, no-wrap
29738 msgid ""
29739 " int\n"
29740 " guestfs_vgremove (guestfs_h *g,\n"
29741 "                   const char *vgname);\n"
29742 "\n"
29743 msgstr ""
29744
29745 #. type: =head2
29746 #: ../src/guestfs-actions.pod:7510
29747 msgid "guestfs_vgrename"
29748 msgstr ""
29749
29750 #. type: verbatim
29751 #: ../src/guestfs-actions.pod:7512
29752 #, no-wrap
29753 msgid ""
29754 " int\n"
29755 " guestfs_vgrename (guestfs_h *g,\n"
29756 "                   const char *volgroup,\n"
29757 "                   const char *newvolgroup);\n"
29758 "\n"
29759 msgstr ""
29760
29761 #. type: =head2
29762 #: ../src/guestfs-actions.pod:7523
29763 msgid "guestfs_vgs"
29764 msgstr ""
29765
29766 #. type: verbatim
29767 #: ../src/guestfs-actions.pod:7525
29768 #, no-wrap
29769 msgid ""
29770 " char **\n"
29771 " guestfs_vgs (guestfs_h *g);\n"
29772 "\n"
29773 msgstr ""
29774
29775 #. type: textblock
29776 #: ../src/guestfs-actions.pod:7534
29777 msgid "See also C<guestfs_vgs_full>."
29778 msgstr ""
29779
29780 #. type: =head2
29781 #: ../src/guestfs-actions.pod:7542
29782 msgid "guestfs_vgs_full"
29783 msgstr ""
29784
29785 #. type: verbatim
29786 #: ../src/guestfs-actions.pod:7544
29787 #, no-wrap
29788 msgid ""
29789 " struct guestfs_lvm_vg_list *\n"
29790 " guestfs_vgs_full (guestfs_h *g);\n"
29791 "\n"
29792 msgstr ""
29793
29794 #. type: textblock
29795 #: ../src/guestfs-actions.pod:7550
29796 msgid ""
29797 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
29798 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
29799 msgstr ""
29800
29801 #. type: =head2
29802 #: ../src/guestfs-actions.pod:7556
29803 msgid "guestfs_vgscan"
29804 msgstr ""
29805
29806 #. type: verbatim
29807 #: ../src/guestfs-actions.pod:7558
29808 #, no-wrap
29809 msgid ""
29810 " int\n"
29811 " guestfs_vgscan (guestfs_h *g);\n"
29812 "\n"
29813 msgstr ""
29814
29815 #. type: =head2
29816 #: ../src/guestfs-actions.pod:7568
29817 msgid "guestfs_vguuid"
29818 msgstr ""
29819
29820 #. type: verbatim
29821 #: ../src/guestfs-actions.pod:7570
29822 #, no-wrap
29823 msgid ""
29824 " char *\n"
29825 " guestfs_vguuid (guestfs_h *g,\n"
29826 "                 const char *vgname);\n"
29827 "\n"
29828 msgstr ""
29829
29830 #. type: =head2
29831 #: ../src/guestfs-actions.pod:7581
29832 msgid "guestfs_wait_ready"
29833 msgstr ""
29834
29835 #. type: verbatim
29836 #: ../src/guestfs-actions.pod:7583
29837 #, no-wrap
29838 msgid ""
29839 " int\n"
29840 " guestfs_wait_ready (guestfs_h *g);\n"
29841 "\n"
29842 msgstr ""
29843
29844 #. type: textblock
29845 #: ../src/guestfs-actions.pod:7586
29846 msgid ""
29847 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
29848 "instead."
29849 msgstr ""
29850
29851 #. type: textblock
29852 #: ../src/guestfs-actions.pod:7593
29853 msgid "This function is a no op."
29854 msgstr ""
29855
29856 #. type: textblock
29857 #: ../src/guestfs-actions.pod:7595
29858 msgid ""
29859 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
29860 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
29861 "is no longer necessary because C<guestfs_launch> now does the waiting."
29862 msgstr ""
29863
29864 #. type: textblock
29865 #: ../src/guestfs-actions.pod:7600
29866 msgid ""
29867 "If you see any calls to this function in code then you can just remove them, "
29868 "unless you want to retain compatibility with older versions of the API."
29869 msgstr ""
29870
29871 #. type: =head2
29872 #: ../src/guestfs-actions.pod:7608
29873 msgid "guestfs_wc_c"
29874 msgstr ""
29875
29876 #. type: verbatim
29877 #: ../src/guestfs-actions.pod:7610
29878 #, no-wrap
29879 msgid ""
29880 " int\n"
29881 " guestfs_wc_c (guestfs_h *g,\n"
29882 "               const char *path);\n"
29883 "\n"
29884 msgstr ""
29885
29886 #. type: =head2
29887 #: ../src/guestfs-actions.pod:7621
29888 msgid "guestfs_wc_l"
29889 msgstr ""
29890
29891 #. type: verbatim
29892 #: ../src/guestfs-actions.pod:7623
29893 #, no-wrap
29894 msgid ""
29895 " int\n"
29896 " guestfs_wc_l (guestfs_h *g,\n"
29897 "               const char *path);\n"
29898 "\n"
29899 msgstr ""
29900
29901 #. type: =head2
29902 #: ../src/guestfs-actions.pod:7634
29903 msgid "guestfs_wc_w"
29904 msgstr ""
29905
29906 #. type: verbatim
29907 #: ../src/guestfs-actions.pod:7636
29908 #, no-wrap
29909 msgid ""
29910 " int\n"
29911 " guestfs_wc_w (guestfs_h *g,\n"
29912 "               const char *path);\n"
29913 "\n"
29914 msgstr ""
29915
29916 #. type: =head2
29917 #: ../src/guestfs-actions.pod:7647
29918 msgid "guestfs_write"
29919 msgstr ""
29920
29921 #. type: verbatim
29922 #: ../src/guestfs-actions.pod:7649
29923 #, no-wrap
29924 msgid ""
29925 " int\n"
29926 " guestfs_write (guestfs_h *g,\n"
29927 "                const char *path,\n"
29928 "                const char *content,\n"
29929 "                size_t content_size);\n"
29930 "\n"
29931 msgstr ""
29932
29933 #. type: textblock
29934 #: ../src/guestfs-actions.pod:7658
29935 msgid "See also C<guestfs_write_append>."
29936 msgstr ""
29937
29938 #. type: =head2
29939 #: ../src/guestfs-actions.pod:7667
29940 msgid "guestfs_write_append"
29941 msgstr ""
29942
29943 #. type: verbatim
29944 #: ../src/guestfs-actions.pod:7669
29945 #, no-wrap
29946 msgid ""
29947 " int\n"
29948 " guestfs_write_append (guestfs_h *g,\n"
29949 "                       const char *path,\n"
29950 "                       const char *content,\n"
29951 "                       size_t content_size);\n"
29952 "\n"
29953 msgstr ""
29954
29955 #. type: textblock
29956 #: ../src/guestfs-actions.pod:7678
29957 msgid "See also C<guestfs_write>."
29958 msgstr ""
29959
29960 #. type: =head2
29961 #: ../src/guestfs-actions.pod:7687
29962 msgid "guestfs_write_file"
29963 msgstr ""
29964
29965 #. type: verbatim
29966 #: ../src/guestfs-actions.pod:7689
29967 #, no-wrap
29968 msgid ""
29969 " int\n"
29970 " guestfs_write_file (guestfs_h *g,\n"
29971 "                     const char *path,\n"
29972 "                     const char *content,\n"
29973 "                     int size);\n"
29974 "\n"
29975 msgstr ""
29976
29977 #. type: textblock
29978 #: ../src/guestfs-actions.pod:7695
29979 msgid ""
29980 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
29981 "instead."
29982 msgstr ""
29983
29984 #. type: =head2
29985 #: ../src/guestfs-actions.pod:7720
29986 msgid "guestfs_zegrep"
29987 msgstr ""
29988
29989 #. type: verbatim
29990 #: ../src/guestfs-actions.pod:7722
29991 #, no-wrap
29992 msgid ""
29993 " char **\n"
29994 " guestfs_zegrep (guestfs_h *g,\n"
29995 "                 const char *regex,\n"
29996 "                 const char *path);\n"
29997 "\n"
29998 msgstr ""
29999
30000 #. type: =head2
30001 #: ../src/guestfs-actions.pod:7739
30002 msgid "guestfs_zegrepi"
30003 msgstr ""
30004
30005 #. type: verbatim
30006 #: ../src/guestfs-actions.pod:7741
30007 #, no-wrap
30008 msgid ""
30009 " char **\n"
30010 " guestfs_zegrepi (guestfs_h *g,\n"
30011 "                  const char *regex,\n"
30012 "                  const char *path);\n"
30013 "\n"
30014 msgstr ""
30015
30016 #. type: =head2
30017 #: ../src/guestfs-actions.pod:7758
30018 msgid "guestfs_zero"
30019 msgstr ""
30020
30021 #. type: verbatim
30022 #: ../src/guestfs-actions.pod:7760
30023 #, no-wrap
30024 msgid ""
30025 " int\n"
30026 " guestfs_zero (guestfs_h *g,\n"
30027 "               const char *device);\n"
30028 "\n"
30029 msgstr ""
30030
30031 #. type: textblock
30032 #: ../src/guestfs-actions.pod:7770
30033 msgid ""
30034 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
30035 "C<guestfs_is_zero_device>"
30036 msgstr ""
30037
30038 #. type: =head2
30039 #: ../src/guestfs-actions.pod:7782
30040 msgid "guestfs_zero_device"
30041 msgstr ""
30042
30043 #. type: verbatim
30044 #: ../src/guestfs-actions.pod:7784
30045 #, no-wrap
30046 msgid ""
30047 " int\n"
30048 " guestfs_zero_device (guestfs_h *g,\n"
30049 "                      const char *device);\n"
30050 "\n"
30051 msgstr ""
30052
30053 #. type: textblock
30054 #: ../src/guestfs-actions.pod:7788
30055 msgid ""
30056 "This command writes zeroes over the entire C<device>.  Compare with "
30057 "C<guestfs_zero> which just zeroes the first few blocks of a device."
30058 msgstr ""
30059
30060 #. type: textblock
30061 #: ../src/guestfs-actions.pod:7802
30062 msgid "(Added in 1.3.1)"
30063 msgstr ""
30064
30065 #. type: =head2
30066 #: ../src/guestfs-actions.pod:7804
30067 msgid "guestfs_zerofree"
30068 msgstr ""
30069
30070 #. type: verbatim
30071 #: ../src/guestfs-actions.pod:7806
30072 #, no-wrap
30073 msgid ""
30074 " int\n"
30075 " guestfs_zerofree (guestfs_h *g,\n"
30076 "                   const char *device);\n"
30077 "\n"
30078 msgstr ""
30079
30080 #. type: =head2
30081 #: ../src/guestfs-actions.pod:7825
30082 msgid "guestfs_zfgrep"
30083 msgstr ""
30084
30085 #. type: verbatim
30086 #: ../src/guestfs-actions.pod:7827
30087 #, no-wrap
30088 msgid ""
30089 " char **\n"
30090 " guestfs_zfgrep (guestfs_h *g,\n"
30091 "                 const char *pattern,\n"
30092 "                 const char *path);\n"
30093 "\n"
30094 msgstr ""
30095
30096 #. type: =head2
30097 #: ../src/guestfs-actions.pod:7844
30098 msgid "guestfs_zfgrepi"
30099 msgstr ""
30100
30101 #. type: verbatim
30102 #: ../src/guestfs-actions.pod:7846
30103 #, no-wrap
30104 msgid ""
30105 " char **\n"
30106 " guestfs_zfgrepi (guestfs_h *g,\n"
30107 "                  const char *pattern,\n"
30108 "                  const char *path);\n"
30109 "\n"
30110 msgstr ""
30111
30112 #. type: =head2
30113 #: ../src/guestfs-actions.pod:7863
30114 msgid "guestfs_zfile"
30115 msgstr ""
30116
30117 #. type: verbatim
30118 #: ../src/guestfs-actions.pod:7865
30119 #, no-wrap
30120 msgid ""
30121 " char *\n"
30122 " guestfs_zfile (guestfs_h *g,\n"
30123 "                const char *meth,\n"
30124 "                const char *path);\n"
30125 "\n"
30126 msgstr ""
30127
30128 #. type: textblock
30129 #: ../src/guestfs-actions.pod:7870
30130 msgid ""
30131 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
30132 "instead."
30133 msgstr ""
30134
30135 #. type: textblock
30136 #: ../src/guestfs-actions.pod:7882
30137 msgid ""
30138 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
30139 "files."
30140 msgstr ""
30141
30142 #. type: =head2
30143 #: ../src/guestfs-actions.pod:7890
30144 msgid "guestfs_zgrep"
30145 msgstr ""
30146
30147 #. type: verbatim
30148 #: ../src/guestfs-actions.pod:7892
30149 #, no-wrap
30150 msgid ""
30151 " char **\n"
30152 " guestfs_zgrep (guestfs_h *g,\n"
30153 "                const char *regex,\n"
30154 "                const char *path);\n"
30155 "\n"
30156 msgstr ""
30157
30158 #. type: =head2
30159 #: ../src/guestfs-actions.pod:7909
30160 msgid "guestfs_zgrepi"
30161 msgstr ""
30162
30163 #. type: verbatim
30164 #: ../src/guestfs-actions.pod:7911
30165 #, no-wrap
30166 msgid ""
30167 " char **\n"
30168 " guestfs_zgrepi (guestfs_h *g,\n"
30169 "                 const char *regex,\n"
30170 "                 const char *path);\n"
30171 "\n"
30172 msgstr ""
30173
30174 #. type: =item
30175 #: ../src/guestfs-availability.pod:3
30176 msgid "B<augeas>"
30177 msgstr ""
30178
30179 #. type: textblock
30180 #: ../src/guestfs-availability.pod:5
30181 msgid ""
30182 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
30183 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
30184 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
30185 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
30186 "L</guestfs_aug_save> L</guestfs_aug_set>"
30187 msgstr ""
30188
30189 #. type: =item
30190 #: ../src/guestfs-availability.pod:21
30191 msgid "B<btrfs>"
30192 msgstr ""
30193
30194 #. type: textblock
30195 #: ../src/guestfs-availability.pod:23
30196 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
30197 msgstr ""
30198
30199 #. type: =item
30200 #: ../src/guestfs-availability.pod:26
30201 msgid "B<inotify>"
30202 msgstr ""
30203
30204 #. type: textblock
30205 #: ../src/guestfs-availability.pod:28
30206 msgid ""
30207 "The following functions: L</guestfs_inotify_add_watch> L</"
30208 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
30209 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
30210 msgstr ""
30211
30212 #. type: =item
30213 #: ../src/guestfs-availability.pod:36
30214 msgid "B<linuxfsuuid>"
30215 msgstr ""
30216
30217 #. type: textblock
30218 #: ../src/guestfs-availability.pod:38
30219 msgid ""
30220 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
30221 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
30222 msgstr ""
30223
30224 #. type: =item
30225 #: ../src/guestfs-availability.pod:45
30226 msgid "B<linuxmodules>"
30227 msgstr ""
30228
30229 #. type: textblock
30230 #: ../src/guestfs-availability.pod:47
30231 msgid "The following functions: L</guestfs_modprobe>"
30232 msgstr ""
30233
30234 #. type: =item
30235 #: ../src/guestfs-availability.pod:50
30236 msgid "B<linuxxattrs>"
30237 msgstr ""
30238
30239 #. type: textblock
30240 #: ../src/guestfs-availability.pod:52
30241 msgid ""
30242 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
30243 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
30244 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
30245 "guestfs_setxattr>"
30246 msgstr ""
30247
30248 #. type: =item
30249 #: ../src/guestfs-availability.pod:63
30250 msgid "B<luks>"
30251 msgstr ""
30252
30253 #. type: textblock
30254 #: ../src/guestfs-availability.pod:65
30255 msgid ""
30256 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
30257 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
30258 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
30259 msgstr ""
30260
30261 #. type: =item
30262 #: ../src/guestfs-availability.pod:74
30263 msgid "B<lvm2>"
30264 msgstr ""
30265
30266 #. type: textblock
30267 #: ../src/guestfs-availability.pod:76
30268 msgid ""
30269 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
30270 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
30271 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
30272 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
30273 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
30274 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
30275 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
30276 msgstr ""
30277
30278 #. type: =item
30279 #: ../src/guestfs-availability.pod:99
30280 msgid "B<mknod>"
30281 msgstr ""
30282
30283 #. type: textblock
30284 #: ../src/guestfs-availability.pod:101
30285 msgid ""
30286 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
30287 "guestfs_mknod_b> L</guestfs_mknod_c>"
30288 msgstr ""
30289
30290 #. type: =item
30291 #: ../src/guestfs-availability.pod:107
30292 msgid "B<ntfs3g>"
30293 msgstr ""
30294
30295 #. type: textblock
30296 #: ../src/guestfs-availability.pod:109
30297 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
30298 msgstr ""
30299
30300 #. type: =item
30301 #: ../src/guestfs-availability.pod:112
30302 msgid "B<ntfsprogs>"
30303 msgstr ""
30304
30305 #. type: textblock
30306 #: ../src/guestfs-availability.pod:114
30307 msgid ""
30308 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
30309 "L</guestfs_ntfsresize_size>"
30310 msgstr ""
30311
30312 #. type: =item
30313 #: ../src/guestfs-availability.pod:119
30314 msgid "B<realpath>"
30315 msgstr ""
30316
30317 #. type: textblock
30318 #: ../src/guestfs-availability.pod:121
30319 msgid "The following functions: L</guestfs_realpath>"
30320 msgstr ""
30321
30322 #. type: =item
30323 #: ../src/guestfs-availability.pod:124
30324 msgid "B<scrub>"
30325 msgstr ""
30326
30327 #. type: textblock
30328 #: ../src/guestfs-availability.pod:126
30329 msgid ""
30330 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
30331 "guestfs_scrub_freespace>"
30332 msgstr ""
30333
30334 #. type: =item
30335 #: ../src/guestfs-availability.pod:131
30336 msgid "B<selinux>"
30337 msgstr ""
30338
30339 #. type: textblock
30340 #: ../src/guestfs-availability.pod:133
30341 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
30342 msgstr ""
30343
30344 #. type: =item
30345 #: ../src/guestfs-availability.pod:137
30346 msgid "B<xz>"
30347 msgstr ""
30348
30349 #. type: textblock
30350 #: ../src/guestfs-availability.pod:139
30351 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
30352 msgstr ""
30353
30354 #. type: =item
30355 #: ../src/guestfs-availability.pod:143
30356 msgid "B<zerofree>"
30357 msgstr ""
30358
30359 #. type: textblock
30360 #: ../src/guestfs-availability.pod:145
30361 msgid "The following functions: L</guestfs_zerofree>"
30362 msgstr ""
30363
30364 #. type: =head2
30365 #: ../src/guestfs-structs.pod:1
30366 msgid "guestfs_int_bool"
30367 msgstr ""
30368
30369 #. type: verbatim
30370 #: ../src/guestfs-structs.pod:3
30371 #, no-wrap
30372 msgid ""
30373 " struct guestfs_int_bool {\n"
30374 "   int32_t i;\n"
30375 "   int32_t b;\n"
30376 " };\n"
30377 " \n"
30378 msgstr ""
30379
30380 #. type: verbatim
30381 #: ../src/guestfs-structs.pod:8
30382 #, no-wrap
30383 msgid ""
30384 " struct guestfs_int_bool_list {\n"
30385 "   uint32_t len; /* Number of elements in list. */\n"
30386 "   struct guestfs_int_bool *val; /* Elements. */\n"
30387 " };\n"
30388 " \n"
30389 msgstr ""
30390
30391 #. type: verbatim
30392 #: ../src/guestfs-structs.pod:13
30393 #, no-wrap
30394 msgid ""
30395 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
30396 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
30397 "\n"
30398 msgstr ""
30399
30400 #. type: =head2
30401 #: ../src/guestfs-structs.pod:16
30402 msgid "guestfs_lvm_pv"
30403 msgstr ""
30404
30405 #. type: verbatim
30406 #: ../src/guestfs-structs.pod:18
30407 #, no-wrap
30408 msgid ""
30409 " struct guestfs_lvm_pv {\n"
30410 "   char *pv_name;\n"
30411 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30412 "   char pv_uuid[32];\n"
30413 "   char *pv_fmt;\n"
30414 "   uint64_t pv_size;\n"
30415 "   uint64_t dev_size;\n"
30416 "   uint64_t pv_free;\n"
30417 "   uint64_t pv_used;\n"
30418 "   char *pv_attr;\n"
30419 "   int64_t pv_pe_count;\n"
30420 "   int64_t pv_pe_alloc_count;\n"
30421 "   char *pv_tags;\n"
30422 "   uint64_t pe_start;\n"
30423 "   int64_t pv_mda_count;\n"
30424 "   uint64_t pv_mda_free;\n"
30425 " };\n"
30426 " \n"
30427 msgstr ""
30428
30429 #. type: verbatim
30430 #: ../src/guestfs-structs.pod:36
30431 #, no-wrap
30432 msgid ""
30433 " struct guestfs_lvm_pv_list {\n"
30434 "   uint32_t len; /* Number of elements in list. */\n"
30435 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
30436 " };\n"
30437 " \n"
30438 msgstr ""
30439
30440 #. type: verbatim
30441 #: ../src/guestfs-structs.pod:41
30442 #, no-wrap
30443 msgid ""
30444 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
30445 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
30446 "\n"
30447 msgstr ""
30448
30449 #. type: =head2
30450 #: ../src/guestfs-structs.pod:44
30451 msgid "guestfs_lvm_vg"
30452 msgstr ""
30453
30454 #. type: verbatim
30455 #: ../src/guestfs-structs.pod:46
30456 #, no-wrap
30457 msgid ""
30458 " struct guestfs_lvm_vg {\n"
30459 "   char *vg_name;\n"
30460 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30461 "   char vg_uuid[32];\n"
30462 "   char *vg_fmt;\n"
30463 "   char *vg_attr;\n"
30464 "   uint64_t vg_size;\n"
30465 "   uint64_t vg_free;\n"
30466 "   char *vg_sysid;\n"
30467 "   uint64_t vg_extent_size;\n"
30468 "   int64_t vg_extent_count;\n"
30469 "   int64_t vg_free_count;\n"
30470 "   int64_t max_lv;\n"
30471 "   int64_t max_pv;\n"
30472 "   int64_t pv_count;\n"
30473 "   int64_t lv_count;\n"
30474 "   int64_t snap_count;\n"
30475 "   int64_t vg_seqno;\n"
30476 "   char *vg_tags;\n"
30477 "   int64_t vg_mda_count;\n"
30478 "   uint64_t vg_mda_free;\n"
30479 " };\n"
30480 " \n"
30481 msgstr ""
30482
30483 #. type: verbatim
30484 #: ../src/guestfs-structs.pod:69
30485 #, no-wrap
30486 msgid ""
30487 " struct guestfs_lvm_vg_list {\n"
30488 "   uint32_t len; /* Number of elements in list. */\n"
30489 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
30490 " };\n"
30491 " \n"
30492 msgstr ""
30493
30494 #. type: verbatim
30495 #: ../src/guestfs-structs.pod:74
30496 #, no-wrap
30497 msgid ""
30498 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
30499 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
30500 "\n"
30501 msgstr ""
30502
30503 #. type: =head2
30504 #: ../src/guestfs-structs.pod:77
30505 msgid "guestfs_lvm_lv"
30506 msgstr ""
30507
30508 #. type: verbatim
30509 #: ../src/guestfs-structs.pod:79
30510 #, no-wrap
30511 msgid ""
30512 " struct guestfs_lvm_lv {\n"
30513 "   char *lv_name;\n"
30514 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30515 "   char lv_uuid[32];\n"
30516 "   char *lv_attr;\n"
30517 "   int64_t lv_major;\n"
30518 "   int64_t lv_minor;\n"
30519 "   int64_t lv_kernel_major;\n"
30520 "   int64_t lv_kernel_minor;\n"
30521 "   uint64_t lv_size;\n"
30522 "   int64_t seg_count;\n"
30523 "   char *origin;\n"
30524 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30525 "   float snap_percent;\n"
30526 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30527 "   float copy_percent;\n"
30528 "   char *move_pv;\n"
30529 "   char *lv_tags;\n"
30530 "   char *mirror_log;\n"
30531 "   char *modules;\n"
30532 " };\n"
30533 " \n"
30534 msgstr ""
30535
30536 #. type: verbatim
30537 #: ../src/guestfs-structs.pod:101
30538 #, no-wrap
30539 msgid ""
30540 " struct guestfs_lvm_lv_list {\n"
30541 "   uint32_t len; /* Number of elements in list. */\n"
30542 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
30543 " };\n"
30544 " \n"
30545 msgstr ""
30546
30547 #. type: verbatim
30548 #: ../src/guestfs-structs.pod:106
30549 #, no-wrap
30550 msgid ""
30551 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
30552 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
30553 "\n"
30554 msgstr ""
30555
30556 #. type: verbatim
30557 #: ../src/guestfs-structs.pod:111
30558 #, no-wrap
30559 msgid ""
30560 " struct guestfs_stat {\n"
30561 "   int64_t dev;\n"
30562 "   int64_t ino;\n"
30563 "   int64_t mode;\n"
30564 "   int64_t nlink;\n"
30565 "   int64_t uid;\n"
30566 "   int64_t gid;\n"
30567 "   int64_t rdev;\n"
30568 "   int64_t size;\n"
30569 "   int64_t blksize;\n"
30570 "   int64_t blocks;\n"
30571 "   int64_t atime;\n"
30572 "   int64_t mtime;\n"
30573 "   int64_t ctime;\n"
30574 " };\n"
30575 " \n"
30576 msgstr ""
30577
30578 #. type: verbatim
30579 #: ../src/guestfs-structs.pod:127
30580 #, no-wrap
30581 msgid ""
30582 " struct guestfs_stat_list {\n"
30583 "   uint32_t len; /* Number of elements in list. */\n"
30584 "   struct guestfs_stat *val; /* Elements. */\n"
30585 " };\n"
30586 " \n"
30587 msgstr ""
30588
30589 #. type: verbatim
30590 #: ../src/guestfs-structs.pod:132
30591 #, no-wrap
30592 msgid ""
30593 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
30594 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
30595 "\n"
30596 msgstr ""
30597
30598 #. type: verbatim
30599 #: ../src/guestfs-structs.pod:137
30600 #, no-wrap
30601 msgid ""
30602 " struct guestfs_statvfs {\n"
30603 "   int64_t bsize;\n"
30604 "   int64_t frsize;\n"
30605 "   int64_t blocks;\n"
30606 "   int64_t bfree;\n"
30607 "   int64_t bavail;\n"
30608 "   int64_t files;\n"
30609 "   int64_t ffree;\n"
30610 "   int64_t favail;\n"
30611 "   int64_t fsid;\n"
30612 "   int64_t flag;\n"
30613 "   int64_t namemax;\n"
30614 " };\n"
30615 " \n"
30616 msgstr ""
30617
30618 #. type: verbatim
30619 #: ../src/guestfs-structs.pod:151
30620 #, no-wrap
30621 msgid ""
30622 " struct guestfs_statvfs_list {\n"
30623 "   uint32_t len; /* Number of elements in list. */\n"
30624 "   struct guestfs_statvfs *val; /* Elements. */\n"
30625 " };\n"
30626 " \n"
30627 msgstr ""
30628
30629 #. type: verbatim
30630 #: ../src/guestfs-structs.pod:156
30631 #, no-wrap
30632 msgid ""
30633 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
30634 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
30635 "\n"
30636 msgstr ""
30637
30638 #. type: =head2
30639 #: ../src/guestfs-structs.pod:159
30640 msgid "guestfs_dirent"
30641 msgstr ""
30642
30643 #. type: verbatim
30644 #: ../src/guestfs-structs.pod:161
30645 #, no-wrap
30646 msgid ""
30647 " struct guestfs_dirent {\n"
30648 "   int64_t ino;\n"
30649 "   char ftyp;\n"
30650 "   char *name;\n"
30651 " };\n"
30652 " \n"
30653 msgstr ""
30654
30655 #. type: verbatim
30656 #: ../src/guestfs-structs.pod:167
30657 #, no-wrap
30658 msgid ""
30659 " struct guestfs_dirent_list {\n"
30660 "   uint32_t len; /* Number of elements in list. */\n"
30661 "   struct guestfs_dirent *val; /* Elements. */\n"
30662 " };\n"
30663 " \n"
30664 msgstr ""
30665
30666 #. type: verbatim
30667 #: ../src/guestfs-structs.pod:172
30668 #, no-wrap
30669 msgid ""
30670 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
30671 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
30672 "\n"
30673 msgstr ""
30674
30675 #. type: verbatim
30676 #: ../src/guestfs-structs.pod:177
30677 #, no-wrap
30678 msgid ""
30679 " struct guestfs_version {\n"
30680 "   int64_t major;\n"
30681 "   int64_t minor;\n"
30682 "   int64_t release;\n"
30683 "   char *extra;\n"
30684 " };\n"
30685 " \n"
30686 msgstr ""
30687
30688 #. type: verbatim
30689 #: ../src/guestfs-structs.pod:184
30690 #, no-wrap
30691 msgid ""
30692 " struct guestfs_version_list {\n"
30693 "   uint32_t len; /* Number of elements in list. */\n"
30694 "   struct guestfs_version *val; /* Elements. */\n"
30695 " };\n"
30696 " \n"
30697 msgstr ""
30698
30699 #. type: verbatim
30700 #: ../src/guestfs-structs.pod:189
30701 #, no-wrap
30702 msgid ""
30703 " void guestfs_free_version (struct guestfs_free_version *);\n"
30704 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
30705 "\n"
30706 msgstr ""
30707
30708 #. type: =head2
30709 #: ../src/guestfs-structs.pod:192
30710 msgid "guestfs_xattr"
30711 msgstr ""
30712
30713 #. type: verbatim
30714 #: ../src/guestfs-structs.pod:194
30715 #, no-wrap
30716 msgid ""
30717 " struct guestfs_xattr {\n"
30718 "   char *attrname;\n"
30719 "   /* The next two fields describe a byte array. */\n"
30720 "   uint32_t attrval_len;\n"
30721 "   char *attrval;\n"
30722 " };\n"
30723 " \n"
30724 msgstr ""
30725
30726 #. type: verbatim
30727 #: ../src/guestfs-structs.pod:201
30728 #, no-wrap
30729 msgid ""
30730 " struct guestfs_xattr_list {\n"
30731 "   uint32_t len; /* Number of elements in list. */\n"
30732 "   struct guestfs_xattr *val; /* Elements. */\n"
30733 " };\n"
30734 " \n"
30735 msgstr ""
30736
30737 #. type: verbatim
30738 #: ../src/guestfs-structs.pod:206
30739 #, no-wrap
30740 msgid ""
30741 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
30742 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
30743 "\n"
30744 msgstr ""
30745
30746 #. type: =head2
30747 #: ../src/guestfs-structs.pod:209
30748 msgid "guestfs_inotify_event"
30749 msgstr ""
30750
30751 #. type: verbatim
30752 #: ../src/guestfs-structs.pod:211
30753 #, no-wrap
30754 msgid ""
30755 " struct guestfs_inotify_event {\n"
30756 "   int64_t in_wd;\n"
30757 "   uint32_t in_mask;\n"
30758 "   uint32_t in_cookie;\n"
30759 "   char *in_name;\n"
30760 " };\n"
30761 " \n"
30762 msgstr ""
30763
30764 #. type: verbatim
30765 #: ../src/guestfs-structs.pod:218
30766 #, no-wrap
30767 msgid ""
30768 " struct guestfs_inotify_event_list {\n"
30769 "   uint32_t len; /* Number of elements in list. */\n"
30770 "   struct guestfs_inotify_event *val; /* Elements. */\n"
30771 " };\n"
30772 " \n"
30773 msgstr ""
30774
30775 #. type: verbatim
30776 #: ../src/guestfs-structs.pod:223
30777 #, no-wrap
30778 msgid ""
30779 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
30780 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
30781 "\n"
30782 msgstr ""
30783
30784 #. type: =head2
30785 #: ../src/guestfs-structs.pod:226
30786 msgid "guestfs_partition"
30787 msgstr ""
30788
30789 #. type: verbatim
30790 #: ../src/guestfs-structs.pod:228
30791 #, no-wrap
30792 msgid ""
30793 " struct guestfs_partition {\n"
30794 "   int32_t part_num;\n"
30795 "   uint64_t part_start;\n"
30796 "   uint64_t part_end;\n"
30797 "   uint64_t part_size;\n"
30798 " };\n"
30799 " \n"
30800 msgstr ""
30801
30802 #. type: verbatim
30803 #: ../src/guestfs-structs.pod:235
30804 #, no-wrap
30805 msgid ""
30806 " struct guestfs_partition_list {\n"
30807 "   uint32_t len; /* Number of elements in list. */\n"
30808 "   struct guestfs_partition *val; /* Elements. */\n"
30809 " };\n"
30810 " \n"
30811 msgstr ""
30812
30813 #. type: verbatim
30814 #: ../src/guestfs-structs.pod:240
30815 #, no-wrap
30816 msgid ""
30817 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
30818 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
30819 "\n"
30820 msgstr ""
30821
30822 #. type: =head2
30823 #: ../src/guestfs-structs.pod:243
30824 msgid "guestfs_application"
30825 msgstr ""
30826
30827 #. type: verbatim
30828 #: ../src/guestfs-structs.pod:245
30829 #, no-wrap
30830 msgid ""
30831 " struct guestfs_application {\n"
30832 "   char *app_name;\n"
30833 "   char *app_display_name;\n"
30834 "   int32_t app_epoch;\n"
30835 "   char *app_version;\n"
30836 "   char *app_release;\n"
30837 "   char *app_install_path;\n"
30838 "   char *app_trans_path;\n"
30839 "   char *app_publisher;\n"
30840 "   char *app_url;\n"
30841 "   char *app_source_package;\n"
30842 "   char *app_summary;\n"
30843 "   char *app_description;\n"
30844 " };\n"
30845 " \n"
30846 msgstr ""
30847
30848 #. type: verbatim
30849 #: ../src/guestfs-structs.pod:260
30850 #, no-wrap
30851 msgid ""
30852 " struct guestfs_application_list {\n"
30853 "   uint32_t len; /* Number of elements in list. */\n"
30854 "   struct guestfs_application *val; /* Elements. */\n"
30855 " };\n"
30856 " \n"
30857 msgstr ""
30858
30859 #. type: verbatim
30860 #: ../src/guestfs-structs.pod:265
30861 #, no-wrap
30862 msgid ""
30863 " void guestfs_free_application (struct guestfs_free_application *);\n"
30864 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
30865 "\n"
30866 msgstr ""
30867
30868 #. type: textblock
30869 #: ../src/guestfs.pod:5
30870 msgid "guestfs - Library for accessing and modifying virtual machine images"
30871 msgstr ""
30872
30873 #. type: verbatim
30874 #: ../src/guestfs.pod:11
30875 #, no-wrap
30876 msgid ""
30877 " guestfs_h *g = guestfs_create ();\n"
30878 " guestfs_add_drive (g, \"guest.img\");\n"
30879 " guestfs_launch (g);\n"
30880 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30881 " guestfs_touch (g, \"/hello\");\n"
30882 " guestfs_umount (g, \"/\");\n"
30883 " guestfs_close (g);\n"
30884 "\n"
30885 msgstr ""
30886
30887 #. type: textblock
30888 #: ../src/guestfs.pod:25
30889 msgid ""
30890 "Libguestfs is a library for accessing and modifying guest disk images.  "
30891 "Amongst the things this is good for: making batch configuration changes to "
30892 "guests, getting disk used/free statistics (see also: virt-df), migrating "
30893 "between virtualization systems (see also: virt-p2v), performing partial "
30894 "backups, performing partial guest clones, cloning guests and changing "
30895 "registry/UUID/hostname info, and much else besides."
30896 msgstr ""
30897
30898 #. type: textblock
30899 #: ../src/guestfs.pod:33
30900 msgid ""
30901 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
30902 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
30903 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
30904 "qcow2, vmdk."
30905 msgstr ""
30906
30907 #. type: textblock
30908 #: ../src/guestfs.pod:38
30909 msgid ""
30910 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
30911 "what filesystem is in each LV, etc.).  It can also run commands in the "
30912 "context of the guest.  Also you can access filesystems over FUSE."
30913 msgstr ""
30914
30915 #. type: textblock
30916 #: ../src/guestfs.pod:43
30917 msgid ""
30918 "Libguestfs is a library that can be linked with C and C++ management "
30919 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
30920 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
30921 "line."
30922 msgstr ""
30923
30924 #. type: textblock
30925 #: ../src/guestfs.pod:48
30926 msgid ""
30927 "You don't need to be root to use libguestfs, although obviously you do need "
30928 "enough permissions to access the disk images."
30929 msgstr ""
30930
30931 #. type: textblock
30932 #: ../src/guestfs.pod:51
30933 msgid ""
30934 "Libguestfs is a large API because it can do many things.  For a gentle "
30935 "introduction, please read the L</API OVERVIEW> section next."
30936 msgstr ""
30937
30938 #. type: textblock
30939 #: ../src/guestfs.pod:54
30940 msgid ""
30941 "There are also some example programs in the L<guestfs-examples(3)> manual "
30942 "page."
30943 msgstr ""
30944
30945 #. type: =head1
30946 #: ../src/guestfs.pod:57
30947 msgid "API OVERVIEW"
30948 msgstr ""
30949
30950 #. type: textblock
30951 #: ../src/guestfs.pod:59
30952 msgid ""
30953 "This section provides a gentler overview of the libguestfs API.  We also try "
30954 "to group API calls together, where that may not be obvious from reading "
30955 "about the individual calls in the main section of this manual."
30956 msgstr ""
30957
30958 #. type: =head2
30959 #: ../src/guestfs.pod:64
30960 msgid "HANDLES"
30961 msgstr ""
30962
30963 #. type: textblock
30964 #: ../src/guestfs.pod:66
30965 msgid ""
30966 "Before you can use libguestfs calls, you have to create a handle.  Then you "
30967 "must add at least one disk image to the handle, followed by launching the "
30968 "handle, then performing whatever operations you want, and finally closing "
30969 "the handle.  By convention we use the single letter C<g> for the name of the "
30970 "handle variable, although of course you can use any name you want."
30971 msgstr ""
30972
30973 #. type: textblock
30974 #: ../src/guestfs.pod:73
30975 msgid "The general structure of all libguestfs-using programs looks like this:"
30976 msgstr ""
30977
30978 #. type: verbatim
30979 #: ../src/guestfs.pod:76
30980 #, no-wrap
30981 msgid ""
30982 " guestfs_h *g = guestfs_create ();\n"
30983 " \n"
30984 msgstr ""
30985
30986 #. type: verbatim
30987 #: ../src/guestfs.pod:78
30988 #, no-wrap
30989 msgid ""
30990 " /* Call guestfs_add_drive additional times if there are\n"
30991 "  * multiple disk images.\n"
30992 "  */\n"
30993 " guestfs_add_drive (g, \"guest.img\");\n"
30994 " \n"
30995 msgstr ""
30996
30997 #. type: verbatim
30998 #: ../src/guestfs.pod:83
30999 #, no-wrap
31000 msgid ""
31001 " /* Most manipulation calls won't work until you've launched\n"
31002 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
31003 "  * and _before_ other commands.\n"
31004 "  */\n"
31005 " guestfs_launch (g);\n"
31006 " \n"
31007 msgstr ""
31008
31009 #. type: verbatim
31010 #: ../src/guestfs.pod:89
31011 #, no-wrap
31012 msgid ""
31013 " /* Now you can examine what partitions, LVs etc are available.\n"
31014 "  */\n"
31015 " char **partitions = guestfs_list_partitions (g);\n"
31016 " char **logvols = guestfs_lvs (g);\n"
31017 " \n"
31018 msgstr ""
31019
31020 #. type: verbatim
31021 #: ../src/guestfs.pod:94
31022 #, no-wrap
31023 msgid ""
31024 " /* To access a filesystem in the image, you must mount it.\n"
31025 "  */\n"
31026 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31027 " \n"
31028 msgstr ""
31029
31030 #. type: verbatim
31031 #: ../src/guestfs.pod:98
31032 #, no-wrap
31033 msgid ""
31034 " /* Now you can perform filesystem actions on the guest\n"
31035 "  * disk image.\n"
31036 "  */\n"
31037 " guestfs_touch (g, \"/hello\");\n"
31038 " \n"
31039 msgstr ""
31040
31041 #. type: verbatim
31042 #: ../src/guestfs.pod:103
31043 #, no-wrap
31044 msgid ""
31045 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
31046 "  * it is done automatically when you close the handle.  See\n"
31047 "  * discussion of autosync in this page.\n"
31048 "  */\n"
31049 " guestfs_sync (g);\n"
31050 " \n"
31051 msgstr ""
31052
31053 #. type: verbatim
31054 #: ../src/guestfs.pod:109
31055 #, no-wrap
31056 msgid ""
31057 " /* Close the handle 'g'. */\n"
31058 " guestfs_close (g);\n"
31059 "\n"
31060 msgstr ""
31061
31062 #. type: textblock
31063 #: ../src/guestfs.pod:112
31064 msgid ""
31065 "The code above doesn't include any error checking.  In real code you should "
31066 "check return values carefully for errors.  In general all functions that "
31067 "return integers return C<-1> on error, and all functions that return "
31068 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
31069 "how to handle errors, and consult the documentation for each function call "
31070 "below to see precisely how they return error indications.  See L<guestfs-"
31071 "examples(3)> for fully worked examples."
31072 msgstr ""
31073
31074 #. type: =head2
31075 #: ../src/guestfs.pod:121
31076 msgid "DISK IMAGES"
31077 msgstr ""
31078
31079 #. type: textblock
31080 #: ../src/guestfs.pod:123
31081 msgid ""
31082 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
31083 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
31084 "actual block device, or simply an empty file of zeroes that you have created "
31085 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
31086 "of these."
31087 msgstr ""
31088
31089 #. type: textblock
31090 #: ../src/guestfs.pod:129
31091 msgid ""
31092 "The call you should use in modern code for adding drives is L</"
31093 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
31094 "specifying that the format is raw, do:"
31095 msgstr ""
31096
31097 #. type: verbatim
31098 #: ../src/guestfs.pod:133
31099 #, no-wrap
31100 msgid ""
31101 " guestfs_add_drive_opts (g, filename,\n"
31102 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31103 "                         -1);\n"
31104 "\n"
31105 msgstr ""
31106
31107 #. type: textblock
31108 #: ../src/guestfs.pod:137
31109 msgid "You can add a disk read-only using:"
31110 msgstr ""
31111
31112 #. type: verbatim
31113 #: ../src/guestfs.pod:139
31114 #, no-wrap
31115 msgid ""
31116 " guestfs_add_drive_opts (g, filename,\n"
31117 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31118 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
31119 "                         -1);\n"
31120 "\n"
31121 msgstr ""
31122
31123 #. type: textblock
31124 #: ../src/guestfs.pod:144
31125 msgid ""
31126 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
31127 "libguestfs won't modify the file."
31128 msgstr ""
31129
31130 #. type: textblock
31131 #: ../src/guestfs.pod:147
31132 msgid ""
31133 "Be extremely cautious if the disk image is in use, eg. if it is being used "
31134 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
31135 "corruption, but adding it read-only is safe."
31136 msgstr ""
31137
31138 #. type: textblock
31139 #: ../src/guestfs.pod:151
31140 msgid ""
31141 "You must add at least one disk image, and you may add multiple disk images.  "
31142 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
31143 "first one you added), C</dev/sdb> (for the second one you added), etc."
31144 msgstr ""
31145
31146 #. type: textblock
31147 #: ../src/guestfs.pod:156
31148 msgid ""
31149 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
31150 "can call L</guestfs_list_devices> to get a list of the device names, in the "
31151 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
31152 msgstr ""
31153
31154 #. type: =head2
31155 #: ../src/guestfs.pod:161
31156 msgid "MOUNTING"
31157 msgstr ""
31158
31159 #. type: textblock
31160 #: ../src/guestfs.pod:163
31161 msgid ""
31162 "Before you can read or write files, create directories and so on in a disk "
31163 "image that contains filesystems, you have to mount those filesystems using "
31164 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
31165 "a disk image contains (for example) one partition with a filesystem on that "
31166 "partition, then you can mount it directly:"
31167 msgstr ""
31168
31169 #. type: verbatim
31170 #: ../src/guestfs.pod:170
31171 #, no-wrap
31172 msgid ""
31173 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
31174 "\n"
31175 msgstr ""
31176
31177 #. type: textblock
31178 #: ../src/guestfs.pod:172
31179 msgid ""
31180 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
31181 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
31182 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
31183 "that these are libguestfs virtual devices, and are nothing to do with host "
31184 "devices."
31185 msgstr ""
31186
31187 #. type: textblock
31188 #: ../src/guestfs.pod:178
31189 msgid ""
31190 "If you are given a disk image and you don't know what it contains then you "
31191 "have to find out.  Libguestfs can do that too: use L</"
31192 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
31193 "LVs, and either try mounting each to see what is mountable, or else examine "
31194 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
31195 "filesystems, use L</guestfs_list_filesystems>."
31196 msgstr ""
31197
31198 #. type: textblock
31199 #: ../src/guestfs.pod:186
31200 msgid ""
31201 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
31202 "L</INSPECTION> below).  But you might find it easier to look at higher level "
31203 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
31204 msgstr ""
31205
31206 #. type: textblock
31207 #: ../src/guestfs.pod:191
31208 msgid ""
31209 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
31210 "several other variations of the C<guestfs_mount_*> call."
31211 msgstr ""
31212
31213 #. type: =head2
31214 #: ../src/guestfs.pod:194
31215 msgid "FILESYSTEM ACCESS AND MODIFICATION"
31216 msgstr ""
31217
31218 #. type: textblock
31219 #: ../src/guestfs.pod:196
31220 msgid ""
31221 "The majority of the libguestfs API consists of fairly low-level calls for "
31222 "accessing and modifying the files, directories, symlinks etc on mounted "
31223 "filesystems.  There are over a hundred such calls which you can find listed "
31224 "in detail below in this man page, and we don't even pretend to cover them "
31225 "all in this overview."
31226 msgstr ""
31227
31228 #. type: textblock
31229 #: ../src/guestfs.pod:202
31230 msgid ""
31231 "Specify filenames as full paths, starting with C<\"/\"> and including the "
31232 "mount point."
31233 msgstr ""
31234
31235 #. type: textblock
31236 #: ../src/guestfs.pod:205
31237 msgid ""
31238 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
31239 "the file called C<\"etc/passwd\"> then you could do:"
31240 msgstr ""
31241
31242 #. type: verbatim
31243 #: ../src/guestfs.pod:208
31244 #, no-wrap
31245 msgid ""
31246 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
31247 "\n"
31248 msgstr ""
31249
31250 #. type: textblock
31251 #: ../src/guestfs.pod:210
31252 msgid ""
31253 "This would return C<data> as a newly allocated buffer containing the full "
31254 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
31255 "or C<NULL> if there was an error."
31256 msgstr ""
31257
31258 #. type: textblock
31259 #: ../src/guestfs.pod:214
31260 msgid ""
31261 "As another example, to create a top-level directory on that filesystem "
31262 "called C<\"var\"> you would do:"
31263 msgstr ""
31264
31265 #. type: verbatim
31266 #: ../src/guestfs.pod:217
31267 #, no-wrap
31268 msgid ""
31269 " guestfs_mkdir (g, \"/var\");\n"
31270 "\n"
31271 msgstr ""
31272
31273 #. type: textblock
31274 #: ../src/guestfs.pod:219
31275 msgid "To create a symlink you could do:"
31276 msgstr ""
31277
31278 #. type: verbatim
31279 #: ../src/guestfs.pod:221
31280 #, no-wrap
31281 msgid ""
31282 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
31283 "               \"/etc/rc3.d/S30portmap\");\n"
31284 "\n"
31285 msgstr ""
31286
31287 #. type: textblock
31288 #: ../src/guestfs.pod:224
31289 msgid ""
31290 "Libguestfs will reject attempts to use relative paths and there is no "
31291 "concept of a current working directory."
31292 msgstr ""
31293
31294 #. type: textblock
31295 #: ../src/guestfs.pod:227
31296 msgid ""
31297 "Libguestfs can return errors in many situations: for example if the "
31298 "filesystem isn't writable, or if a file or directory that you requested "
31299 "doesn't exist.  If you are using the C API (documented here)  you have to "
31300 "check for those error conditions after each call.  (Other language bindings "
31301 "turn these errors into exceptions)."
31302 msgstr ""
31303
31304 #. type: textblock
31305 #: ../src/guestfs.pod:233
31306 msgid ""
31307 "File writes are affected by the per-handle umask, set by calling L</"
31308 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
31309 msgstr ""
31310
31311 #. type: =head2
31312 #: ../src/guestfs.pod:236
31313 msgid "PARTITIONING"
31314 msgstr ""
31315
31316 #. type: textblock
31317 #: ../src/guestfs.pod:238
31318 msgid ""
31319 "Libguestfs contains API calls to read, create and modify partition tables on "
31320 "disk images."
31321 msgstr ""
31322
31323 #. type: textblock
31324 #: ../src/guestfs.pod:241
31325 msgid ""
31326 "In the common case where you want to create a single partition covering the "
31327 "whole disk, you should use the L</guestfs_part_disk> call:"
31328 msgstr ""
31329
31330 #. type: verbatim
31331 #: ../src/guestfs.pod:245
31332 #, no-wrap
31333 msgid ""
31334 " const char *parttype = \"mbr\";\n"
31335 " if (disk_is_larger_than_2TB)\n"
31336 "   parttype = \"gpt\";\n"
31337 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
31338 "\n"
31339 msgstr ""
31340
31341 #. type: textblock
31342 #: ../src/guestfs.pod:250
31343 msgid ""
31344 "Obviously this effectively wipes anything that was on that disk image before."
31345 msgstr ""
31346
31347 #. type: =head2
31348 #: ../src/guestfs.pod:253
31349 msgid "LVM2"
31350 msgstr ""
31351
31352 #. type: textblock
31353 #: ../src/guestfs.pod:255
31354 msgid ""
31355 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
31356 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
31357 "you familiarize yourself with the concepts of physical volumes, volume "
31358 "groups and logical volumes."
31359 msgstr ""
31360
31361 #. type: textblock
31362 #: ../src/guestfs.pod:260
31363 msgid ""
31364 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
31365 "tldp.org/HOWTO/LVM-HOWTO/>."
31366 msgstr ""
31367
31368 #. type: =head2
31369 #: ../src/guestfs.pod:263
31370 msgid "DOWNLOADING"
31371 msgstr ""
31372
31373 #. type: textblock
31374 #: ../src/guestfs.pod:265
31375 msgid ""
31376 "Use L</guestfs_cat> to download small, text only files.  This call is "
31377 "limited to files which are less than 2 MB and which cannot contain any ASCII "
31378 "NUL (C<\\0>) characters.  However the API is very simple to use."
31379 msgstr ""
31380
31381 #. type: textblock
31382 #: ../src/guestfs.pod:269
31383 msgid ""
31384 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
31385 "bit data, since it returns a (pointer, size) pair.  However it is still "
31386 "limited to \"small\" files, less than 2 MB."
31387 msgstr ""
31388
31389 #. type: textblock
31390 #: ../src/guestfs.pod:273
31391 msgid ""
31392 "L</guestfs_download> can be used to download any file, with no limits on "
31393 "content or size (even files larger than 4 GB)."
31394 msgstr ""
31395
31396 #. type: textblock
31397 #: ../src/guestfs.pod:276
31398 msgid ""
31399 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
31400 msgstr ""
31401
31402 #. type: =head2
31403 #: ../src/guestfs.pod:279
31404 msgid "UPLOADING"
31405 msgstr ""
31406
31407 #. type: textblock
31408 #: ../src/guestfs.pod:281
31409 msgid ""
31410 "It's often the case that you want to write a file or files to the disk image."
31411 msgstr ""
31412
31413 #. type: textblock
31414 #: ../src/guestfs.pod:284
31415 msgid ""
31416 "To write a small file with fixed content, use L</guestfs_write>.  To create "
31417 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
31418 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
31419 "of other functions for creating test files, for example L</guestfs_fill> and "
31420 "L</guestfs_fill_pattern>."
31421 msgstr ""
31422
31423 #. type: textblock
31424 #: ../src/guestfs.pod:290
31425 msgid ""
31426 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
31427 "file content or size (even files larger than 4 GB)."
31428 msgstr ""
31429
31430 #. type: textblock
31431 #: ../src/guestfs.pod:293
31432 msgid ""
31433 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
31434 msgstr ""
31435
31436 #. type: textblock
31437 #: ../src/guestfs.pod:295
31438 msgid ""
31439 "However the fastest way to upload I<large numbers of arbitrary files> is to "
31440 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
31441 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
31442 "in a predictable way (eg. adding it last after all other drives) then you "
31443 "can get the device name from L</guestfs_list_devices> and mount it directly "
31444 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
31445 "portable between kernel versions, and they don't support labels or UUIDs.  "
31446 "If you want to pre-build an image or you need to mount it using a label or "
31447 "UUID, use an ISO image instead."
31448 msgstr ""
31449
31450 #. type: =head2
31451 #: ../src/guestfs.pod:306
31452 msgid "COPYING"
31453 msgstr ""
31454
31455 #. type: textblock
31456 #: ../src/guestfs.pod:308
31457 msgid ""
31458 "There are various different commands for copying between files and devices "
31459 "and in and out of the guest filesystem.  These are summarised in the table "
31460 "below."
31461 msgstr ""
31462
31463 #. type: =item
31464 #: ../src/guestfs.pod:314
31465 msgid "B<file> to B<file>"
31466 msgstr ""
31467
31468 #. type: textblock
31469 #: ../src/guestfs.pod:316
31470 msgid ""
31471 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
31472 "directories recursively."
31473 msgstr ""
31474
31475 #. type: =item
31476 #: ../src/guestfs.pod:319
31477 msgid "B<file or device> to B<file or device>"
31478 msgstr ""
31479
31480 #. type: textblock
31481 #: ../src/guestfs.pod:321
31482 msgid ""
31483 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
31484 "devices in the guest."
31485 msgstr ""
31486
31487 #. type: textblock
31488 #: ../src/guestfs.pod:324
31489 msgid "Example: duplicate the contents of an LV:"
31490 msgstr ""
31491
31492 #. type: verbatim
31493 #: ../src/guestfs.pod:326
31494 #, no-wrap
31495 msgid ""
31496 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
31497 "\n"
31498 msgstr ""
31499
31500 #. type: textblock
31501 #: ../src/guestfs.pod:328
31502 msgid ""
31503 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
31504 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
31505 "guestfs_copy_size>."
31506 msgstr ""
31507
31508 #. type: =item
31509 #: ../src/guestfs.pod:332
31510 msgid "B<file on the host> to B<file or device>"
31511 msgstr ""
31512
31513 #. type: textblock
31514 #: ../src/guestfs.pod:334
31515 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
31516 msgstr ""
31517
31518 #. type: =item
31519 #: ../src/guestfs.pod:336
31520 msgid "B<file or device> to B<file on the host>"
31521 msgstr ""
31522
31523 #. type: textblock
31524 #: ../src/guestfs.pod:338
31525 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
31526 msgstr ""
31527
31528 #. type: =head2
31529 #: ../src/guestfs.pod:342
31530 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
31531 msgstr ""
31532
31533 #. type: textblock
31534 #: ../src/guestfs.pod:344
31535 msgid ""
31536 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
31537 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
31538 "appears you can only upload and download to files.  However many Un*x-like "
31539 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
31540 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
31541 "and arbitrary file descriptor N."
31542 msgstr ""
31543
31544 #. type: textblock
31545 #: ../src/guestfs.pod:352
31546 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
31547 msgstr ""
31548
31549 #. type: verbatim
31550 #: ../src/guestfs.pod:355
31551 #, no-wrap
31552 msgid ""
31553 " guestfs_download (g, filename, \"/dev/stdout\");\n"
31554 "\n"
31555 msgstr ""
31556
31557 #. type: textblock
31558 #: ../src/guestfs.pod:357
31559 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
31560 msgstr ""
31561
31562 #. type: verbatim
31563 #: ../src/guestfs.pod:359
31564 #, no-wrap
31565 msgid ""
31566 " char devfd[64];\n"
31567 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
31568 " guestfs_tar_out (g, \"/\", devfd);\n"
31569 "\n"
31570 msgstr ""
31571
31572 #. type: =head2
31573 #: ../src/guestfs.pod:363
31574 msgid "LISTING FILES"
31575 msgstr ""
31576
31577 #. type: textblock
31578 #: ../src/guestfs.pod:365
31579 msgid ""
31580 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
31581 "L<guestfish(1)>-equivalent command C<ll>)."
31582 msgstr ""
31583
31584 #. type: textblock
31585 #: ../src/guestfs.pod:368
31586 msgid ""
31587 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
31588 "programs, as a flat list of strings."
31589 msgstr ""
31590
31591 #. type: textblock
31592 #: ../src/guestfs.pod:371
31593 msgid ""
31594 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
31595 "directory, plus additional information about each one.  It is more "
31596 "equivalent to using the L<readdir(3)> call on a local filesystem."
31597 msgstr ""
31598
31599 #. type: textblock
31600 #: ../src/guestfs.pod:375
31601 msgid ""
31602 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
31603 msgstr ""
31604
31605 #. type: =head2
31606 #: ../src/guestfs.pod:378
31607 msgid "RUNNING COMMANDS"
31608 msgstr ""
31609
31610 #. type: textblock
31611 #: ../src/guestfs.pod:380
31612 msgid ""
31613 "Although libguestfs is primarily an API for manipulating files inside guest "
31614 "images, we also provide some limited facilities for running commands inside "
31615 "guests."
31616 msgstr ""
31617
31618 #. type: textblock
31619 #: ../src/guestfs.pod:384
31620 msgid "There are many limitations to this:"
31621 msgstr ""
31622
31623 #. type: textblock
31624 #: ../src/guestfs.pod:390
31625 msgid ""
31626 "The kernel version that the command runs under will be different from what "
31627 "it expects."
31628 msgstr ""
31629
31630 #. type: textblock
31631 #: ../src/guestfs.pod:395
31632 msgid ""
31633 "If the command needs to communicate with daemons, then most likely they "
31634 "won't be running."
31635 msgstr ""
31636
31637 #. type: textblock
31638 #: ../src/guestfs.pod:400
31639 msgid "The command will be running in limited memory."
31640 msgstr ""
31641
31642 #. type: textblock
31643 #: ../src/guestfs.pod:404
31644 msgid ""
31645 "The network may not be available unless you enable it (see L</"
31646 "guestfs_set_network>)."
31647 msgstr ""
31648
31649 #. type: textblock
31650 #: ../src/guestfs.pod:409
31651 msgid "Only supports Linux guests (not Windows, BSD, etc)."
31652 msgstr ""
31653
31654 #. type: textblock
31655 #: ../src/guestfs.pod:413
31656 msgid ""
31657 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
31658 msgstr ""
31659
31660 #. type: textblock
31661 #: ../src/guestfs.pod:418
31662 msgid ""
31663 "For SELinux guests, you may need to enable SELinux and load policy first.  "
31664 "See L</SELINUX> in this manpage."
31665 msgstr ""
31666
31667 #. type: textblock
31668 #: ../src/guestfs.pod:423
31669 msgid ""
31670 "I<Security:> It is not safe to run commands from untrusted, possibly "
31671 "malicious guests.  These commands may attempt to exploit your program by "
31672 "sending unexpected output.  They could also try to exploit the Linux kernel "
31673 "or qemu provided by the libguestfs appliance.  They could use the network "
31674 "provided by the libguestfs appliance to bypass ordinary network partitions "
31675 "and firewalls.  They could use the elevated privileges or different SELinux "
31676 "context of your program to their advantage."
31677 msgstr ""
31678
31679 #. type: textblock
31680 #: ../src/guestfs.pod:432
31681 msgid ""
31682 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
31683 "(a script which runs when the guest next boots normally), and to have this "
31684 "script run the commands you want in the normal context of the running guest, "
31685 "network security and so on.  For information about other security issues, "
31686 "see L</SECURITY>."
31687 msgstr ""
31688
31689 #. type: textblock
31690 #: ../src/guestfs.pod:440
31691 msgid ""
31692 "The two main API calls to run commands are L</guestfs_command> and L</"
31693 "guestfs_sh> (there are also variations)."
31694 msgstr ""
31695
31696 #. type: textblock
31697 #: ../src/guestfs.pod:443
31698 msgid ""
31699 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
31700 "shell globs, redirections, etc will work."
31701 msgstr ""
31702
31703 #. type: =head2
31704 #: ../src/guestfs.pod:446
31705 msgid "CONFIGURATION FILES"
31706 msgstr ""
31707
31708 #. type: textblock
31709 #: ../src/guestfs.pod:448
31710 msgid ""
31711 "To read and write configuration files in Linux guest filesystems, we "
31712 "strongly recommend using Augeas.  For example, Augeas understands how to "
31713 "read and write, say, a Linux shadow password file or X.org configuration "
31714 "file, and so avoids you having to write that code."
31715 msgstr ""
31716
31717 #. type: textblock
31718 #: ../src/guestfs.pod:453
31719 msgid ""
31720 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
31721 "document Augeas itself here because there is excellent documentation on the "
31722 "L<http://augeas.net/> website."
31723 msgstr ""
31724
31725 #. type: textblock
31726 #: ../src/guestfs.pod:457
31727 msgid ""
31728 "If you don't want to use Augeas (you fool!) then try calling L</"
31729 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
31730 "over."
31731 msgstr ""
31732
31733 #. type: =head2
31734 #: ../src/guestfs.pod:461
31735 msgid "SELINUX"
31736 msgstr ""
31737
31738 #. type: textblock
31739 #: ../src/guestfs.pod:463
31740 msgid ""
31741 "We support SELinux guests.  To ensure that labeling happens correctly in "
31742 "SELinux guests, you need to enable SELinux and load the guest's policy:"
31743 msgstr ""
31744
31745 #. type: textblock
31746 #: ../src/guestfs.pod:471
31747 msgid "Before launching, do:"
31748 msgstr ""
31749
31750 #. type: verbatim
31751 #: ../src/guestfs.pod:473
31752 #, no-wrap
31753 msgid ""
31754 " guestfs_set_selinux (g, 1);\n"
31755 "\n"
31756 msgstr ""
31757
31758 #. type: textblock
31759 #: ../src/guestfs.pod:477
31760 msgid ""
31761 "After mounting the guest's filesystem(s), load the policy.  This is best "
31762 "done by running the L<load_policy(8)> command in the guest itself:"
31763 msgstr ""
31764
31765 #. type: verbatim
31766 #: ../src/guestfs.pod:481
31767 #, no-wrap
31768 msgid ""
31769 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
31770 "\n"
31771 msgstr ""
31772
31773 #. type: textblock
31774 #: ../src/guestfs.pod:483
31775 msgid ""
31776 "(Older versions of C<load_policy> require you to specify the name of the "
31777 "policy file)."
31778 msgstr ""
31779
31780 #. type: textblock
31781 #: ../src/guestfs.pod:488
31782 msgid ""
31783 "Optionally, set the security context for the API.  The correct security "
31784 "context to use can only be known by inspecting the guest.  As an example:"
31785 msgstr ""
31786
31787 #. type: verbatim
31788 #: ../src/guestfs.pod:492
31789 #, no-wrap
31790 msgid ""
31791 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
31792 "\n"
31793 msgstr ""
31794
31795 #. type: textblock
31796 #: ../src/guestfs.pod:496
31797 msgid "This will work for running commands and editing existing files."
31798 msgstr ""
31799
31800 #. type: textblock
31801 #: ../src/guestfs.pod:498
31802 msgid ""
31803 "When new files are created, you may need to label them explicitly, for "
31804 "example by running the external command C<restorecon pathname>."
31805 msgstr ""
31806
31807 #. type: =head2
31808 #: ../src/guestfs.pod:502
31809 msgid "UMASK"
31810 msgstr ""
31811
31812 #. type: textblock
31813 #: ../src/guestfs.pod:504
31814 msgid ""
31815 "Certain calls are affected by the current file mode creation mask (the "
31816 "\"umask\").  In particular ones which create files or directories, such as "
31817 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
31818 "either the default mode that the file is created with or modifies the mode "
31819 "that you supply."
31820 msgstr ""
31821
31822 #. type: textblock
31823 #: ../src/guestfs.pod:510
31824 msgid ""
31825 "The default umask is C<022>, so files are created with modes such as C<0644> "
31826 "and directories with C<0755>."
31827 msgstr ""
31828
31829 #. type: textblock
31830 #: ../src/guestfs.pod:513
31831 msgid ""
31832 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
31833 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
31834 "guestfs_chmod> after creating each file or directory."
31835 msgstr ""
31836
31837 #. type: textblock
31838 #: ../src/guestfs.pod:517
31839 msgid "For more information about umask, see L<umask(2)>."
31840 msgstr ""
31841
31842 #. type: textblock
31843 #: ../src/guestfs.pod:521
31844 msgid ""
31845 "Libguestfs allows you to access Linux guests which have been encrypted using "
31846 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
31847 "standard.  This includes nearly all whole disk encryption systems used by "
31848 "modern Linux guests."
31849 msgstr ""
31850
31851 #. type: textblock
31852 #: ../src/guestfs.pod:527
31853 msgid ""
31854 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
31855 "returns the string C<crypto_LUKS>)."
31856 msgstr ""
31857
31858 #. type: textblock
31859 #: ../src/guestfs.pod:530
31860 msgid ""
31861 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
31862 "will require the passphrase!"
31863 msgstr ""
31864
31865 #. type: textblock
31866 #: ../src/guestfs.pod:533
31867 msgid ""
31868 "Opening a LUKS device creates a new device mapper device called C</dev/"
31869 "mapper/mapname> (where C<mapname> is the string you supply to L</"
31870 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
31871 "from and encrypted to the underlying block device respectively."
31872 msgstr ""
31873
31874 #. type: textblock
31875 #: ../src/guestfs.pod:539
31876 msgid ""
31877 "LVM volume groups on the device can be made visible by calling L</"
31878 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
31879 "(s) can now be mounted in the usual way."
31880 msgstr ""
31881
31882 #. type: textblock
31883 #: ../src/guestfs.pod:543
31884 msgid ""
31885 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
31886 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
31887 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
31888 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
31889 "underlying encrypted block device)."
31890 msgstr ""
31891
31892 #. type: =head2
31893 #: ../src/guestfs.pod:550
31894 msgid "INSPECTION"
31895 msgstr ""
31896
31897 #. type: textblock
31898 #: ../src/guestfs.pod:552
31899 msgid ""
31900 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
31901 "contains operating systems, an install CD or a live CD.  (These APIs used to "
31902 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
31903 "version 1.5.3 the most frequently used part of this library has been "
31904 "rewritten in C and moved into the core code)."
31905 msgstr ""
31906
31907 #. type: textblock
31908 #: ../src/guestfs.pod:559
31909 msgid ""
31910 "Add all disks belonging to the unknown virtual machine and call L</"
31911 "guestfs_launch> in the usual way."
31912 msgstr ""
31913
31914 #. type: textblock
31915 #: ../src/guestfs.pod:562
31916 msgid ""
31917 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
31918 "and certain heuristics, and returns a list of operating systems that were "
31919 "found.  An empty list means none were found.  A single element is the root "
31920 "filesystem of the operating system.  For dual- or multi-boot guests, "
31921 "multiple roots can be returned, each one corresponding to a separate "
31922 "operating system.  (Multi-boot virtual machines are extremely rare in the "
31923 "world of virtualization, but since this scenario can happen, we have built "
31924 "libguestfs to deal with it.)"
31925 msgstr ""
31926
31927 #. type: textblock
31928 #: ../src/guestfs.pod:571
31929 msgid ""
31930 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
31931 "to get additional details about that operating system.  For example, call L</"
31932 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
31933 "Windows and Linux-based operating systems respectively."
31934 msgstr ""
31935
31936 #. type: textblock
31937 #: ../src/guestfs.pod:577
31938 msgid ""
31939 "Un*x-like and Linux-based operating systems usually consist of several "
31940 "filesystems which are mounted at boot time (for example, a separate boot "
31941 "partition mounted on C</boot>).  The inspection rules are able to detect how "
31942 "filesystems correspond to mount points.  Call "
31943 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
31944 "hash table like this example:"
31945 msgstr ""
31946
31947 #. type: verbatim
31948 #: ../src/guestfs.pod:584
31949 #, no-wrap
31950 msgid ""
31951 " /boot => /dev/sda1\n"
31952 " /     => /dev/vg_guest/lv_root\n"
31953 " /usr  => /dev/vg_guest/lv_usr\n"
31954 "\n"
31955 msgstr ""
31956
31957 #. type: textblock
31958 #: ../src/guestfs.pod:588
31959 msgid ""
31960 "The caller can then make calls to L</guestfs_mount_options> to mount the "
31961 "filesystems as suggested."
31962 msgstr ""
31963
31964 #. type: textblock
31965 #: ../src/guestfs.pod:591
31966 msgid ""
31967 "Be careful to mount filesystems in the right order (eg. C</> before C</"
31968 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
31969 msgstr ""
31970
31971 #. type: textblock
31972 #: ../src/guestfs.pod:595
31973 msgid ""
31974 "Inspection currently only works for some common operating systems.  "
31975 "Contributors are welcome to send patches for other operating systems that we "
31976 "currently cannot detect."
31977 msgstr ""
31978
31979 #. type: textblock
31980 #: ../src/guestfs.pod:599
31981 msgid ""
31982 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
31983 "for more details.  The L</guestfs_inspect_os> function just ignores any "
31984 "encrypted devices."
31985 msgstr ""
31986
31987 #. type: textblock
31988 #: ../src/guestfs.pod:603
31989 msgid ""
31990 "A note on the implementation: The call L</guestfs_inspect_os> performs "
31991 "inspection and caches the results in the guest handle.  Subsequent calls to "
31992 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
31993 "read the disks.  If you change the content of the guest disks, you can redo "
31994 "inspection by calling L</guestfs_inspect_os> again.  (L</"
31995 "guestfs_inspect_list_applications> works a little differently from the other "
31996 "calls and does read the disks.  See documentation for that function for "
31997 "details)."
31998 msgstr ""
31999
32000 #. type: =head3
32001 #: ../src/guestfs.pod:612
32002 msgid "INSPECTING INSTALL DISKS"
32003 msgstr ""
32004
32005 #. type: textblock
32006 #: ../src/guestfs.pod:614
32007 msgid ""
32008 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
32009 "CDs and more."
32010 msgstr ""
32011
32012 #. type: textblock
32013 #: ../src/guestfs.pod:617
32014 msgid ""
32015 "Call L</guestfs_inspect_get_format> to return the format of the operating "
32016 "system, which currently can be C<installed> (a regular operating system) or "
32017 "C<installer> (some sort of install disk)."
32018 msgstr ""
32019
32020 #. type: textblock
32021 #: ../src/guestfs.pod:621
32022 msgid ""
32023 "Further information is available about the operating system that can be "
32024 "installed using the regular inspection APIs like L</"
32025 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
32026 msgstr ""
32027
32028 #. type: textblock
32029 #: ../src/guestfs.pod:626
32030 msgid ""
32031 "Some additional information specific to installer disks is also available "
32032 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
32033 "guestfs_inspect_is_multipart> calls."
32034 msgstr ""
32035
32036 #. type: =head2
32037 #: ../src/guestfs.pod:631
32038 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
32039 msgstr ""
32040
32041 #. type: textblock
32042 #: ../src/guestfs.pod:633
32043 msgid ""
32044 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
32045 "ntfs-3g.org/> driver."
32046 msgstr ""
32047
32048 #. type: =head3
32049 #: ../src/guestfs.pod:636
32050 msgid "DRIVE LETTERS AND PATHS"
32051 msgstr ""
32052
32053 #. type: textblock
32054 #: ../src/guestfs.pod:638
32055 msgid ""
32056 "DOS and Windows still use drive letters, and the filesystems are always "
32057 "treated as case insensitive by Windows itself, and therefore you might find "
32058 "a Windows configuration file referring to a path like C<c:\\windows"
32059 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
32060 "might be referred to as C</WINDOWS/System32>."
32061 msgstr ""
32062
32063 #. type: textblock
32064 #: ../src/guestfs.pod:644
32065 msgid ""
32066 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
32067 "L</guestfs_inspect_get_drive_mappings>)"
32068 msgstr ""
32069
32070 #. type: textblock
32071 #: ../src/guestfs.pod:647
32072 msgid ""
32073 "Dealing with separator characters (backslash vs forward slash) is outside "
32074 "the scope of libguestfs, but usually a simple character replacement will "
32075 "work."
32076 msgstr ""
32077
32078 #. type: textblock
32079 #: ../src/guestfs.pod:651
32080 msgid ""
32081 "To resolve the case insensitivity of paths, call L</"
32082 "guestfs_case_sensitive_path>."
32083 msgstr ""
32084
32085 #. type: =head3
32086 #: ../src/guestfs.pod:654
32087 msgid "ACCESSING THE WINDOWS REGISTRY"
32088 msgstr ""
32089
32090 #. type: textblock
32091 #: ../src/guestfs.pod:656
32092 msgid ""
32093 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
32094 "files, through the library C<hivex> which is part of the libguestfs project "
32095 "although ships as a separate tarball.  You have to locate and download the "
32096 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
32097 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
32098 "reg(1)> for more help on this issue."
32099 msgstr ""
32100
32101 #. type: =head3
32102 #: ../src/guestfs.pod:664
32103 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
32104 msgstr ""
32105
32106 #. type: textblock
32107 #: ../src/guestfs.pod:666
32108 msgid ""
32109 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
32110 "provide something which looks like a Linux symlink.  The way it tries to do "
32111 "the rewriting is described here:"
32112 msgstr ""
32113
32114 #. type: textblock
32115 #: ../src/guestfs.pod:670
32116 msgid ""
32117 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
32118 "symbolic-links/>"
32119 msgstr ""
32120
32121 #. type: textblock
32122 #: ../src/guestfs.pod:672
32123 msgid ""
32124 "The essential problem is that ntfs-3g simply does not have enough "
32125 "information to do a correct job.  NTFS links can contain drive letters and "
32126 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
32127 "It is almost certainly the case that libguestfs callers should ignore what "
32128 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
32129 msgstr ""
32130
32131 #. type: textblock
32132 #: ../src/guestfs.pod:679
32133 msgid ""
32134 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
32135 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
32136 "attribute, and read the raw reparse data from that (you can find the format "
32137 "documented in various places around the web)."
32138 msgstr ""
32139
32140 #. type: =head3
32141 #: ../src/guestfs.pod:684
32142 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
32143 msgstr ""
32144
32145 #. type: textblock
32146 #: ../src/guestfs.pod:686
32147 msgid ""
32148 "There are other useful extended attributes that can be read from ntfs-3g "
32149 "filesystems (using L</guestfs_getxattr>).  See:"
32150 msgstr ""
32151
32152 #. type: textblock
32153 #: ../src/guestfs.pod:689
32154 msgid ""
32155 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
32156 msgstr ""
32157
32158 #. type: =head2
32159 #: ../src/guestfs.pod:691
32160 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
32161 msgstr ""
32162
32163 #. type: textblock
32164 #: ../src/guestfs.pod:693
32165 msgid ""
32166 "Although we don't want to discourage you from using the C API, we will "
32167 "mention here that the same API is also available in other languages."
32168 msgstr ""
32169
32170 #. type: textblock
32171 #: ../src/guestfs.pod:696
32172 msgid ""
32173 "The API is broadly identical in all supported languages.  This means that "
32174 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
32175 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
32176 "OCaml.  In other words, a straightforward, predictable isomorphism between "
32177 "each language."
32178 msgstr ""
32179
32180 #. type: textblock
32181 #: ../src/guestfs.pod:702
32182 msgid ""
32183 "Error messages are automatically transformed into exceptions if the language "
32184 "supports it."
32185 msgstr ""
32186
32187 #. type: textblock
32188 #: ../src/guestfs.pod:705
32189 msgid ""
32190 "We don't try to \"object orientify\" parts of the API in OO languages, "
32191 "although contributors are welcome to write higher level APIs above what we "
32192 "provide in their favourite languages if they wish."
32193 msgstr ""
32194
32195 #. type: =item
32196 #: ../src/guestfs.pod:711
32197 msgid "B<C++>"
32198 msgstr ""
32199
32200 #. type: textblock
32201 #: ../src/guestfs.pod:713
32202 msgid ""
32203 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
32204 "identical to the C API.  C++ classes and exceptions are not used."
32205 msgstr ""
32206
32207 #. type: =item
32208 #: ../src/guestfs.pod:717
32209 msgid "B<C#>"
32210 msgstr ""
32211
32212 #. type: textblock
32213 #: ../src/guestfs.pod:719
32214 msgid ""
32215 "The C# bindings are highly experimental.  Please read the warnings at the "
32216 "top of C<csharp/Libguestfs.cs>."
32217 msgstr ""
32218
32219 #. type: =item
32220 #: ../src/guestfs.pod:722
32221 msgid "B<Haskell>"
32222 msgstr ""
32223
32224 #. type: textblock
32225 #: ../src/guestfs.pod:724
32226 msgid ""
32227 "This is the only language binding that is working but incomplete.  Only "
32228 "calls which return simple integers have been bound in Haskell, and we are "
32229 "looking for help to complete this binding."
32230 msgstr ""
32231
32232 #. type: =item
32233 #: ../src/guestfs.pod:728
32234 msgid "B<Java>"
32235 msgstr ""
32236
32237 #. type: textblock
32238 #: ../src/guestfs.pod:730
32239 msgid ""
32240 "Full documentation is contained in the Javadoc which is distributed with "
32241 "libguestfs.  For examples, see L<guestfs-java(3)>."
32242 msgstr ""
32243
32244 #. type: =item
32245 #: ../src/guestfs.pod:733
32246 msgid "B<OCaml>"
32247 msgstr ""
32248
32249 #. type: textblock
32250 #: ../src/guestfs.pod:735
32251 msgid "See L<guestfs-ocaml(3)>."
32252 msgstr ""
32253
32254 #. type: =item
32255 #: ../src/guestfs.pod:737
32256 msgid "B<Perl>"
32257 msgstr ""
32258
32259 #. type: textblock
32260 #: ../src/guestfs.pod:739
32261 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
32262 msgstr ""
32263
32264 #. type: =item
32265 #: ../src/guestfs.pod:741
32266 msgid "B<PHP>"
32267 msgstr ""
32268
32269 #. type: textblock
32270 #: ../src/guestfs.pod:743
32271 msgid ""
32272 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
32273 "the php-libguestfs package for your distribution."
32274 msgstr ""
32275
32276 #. type: textblock
32277 #: ../src/guestfs.pod:746
32278 msgid "The PHP binding only works correctly on 64 bit machines."
32279 msgstr ""
32280
32281 #. type: =item
32282 #: ../src/guestfs.pod:748
32283 msgid "B<Python>"
32284 msgstr ""
32285
32286 #. type: textblock
32287 #: ../src/guestfs.pod:750
32288 msgid "See L<guestfs-python(3)>."
32289 msgstr ""
32290
32291 #. type: =item
32292 #: ../src/guestfs.pod:752
32293 msgid "B<Ruby>"
32294 msgstr ""
32295
32296 #. type: textblock
32297 #: ../src/guestfs.pod:754
32298 msgid "See L<guestfs-ruby(3)>."
32299 msgstr ""
32300
32301 #. type: =item
32302 #: ../src/guestfs.pod:756
32303 msgid "B<shell scripts>"
32304 msgstr ""
32305
32306 #. type: textblock
32307 #: ../src/guestfs.pod:758
32308 msgid "See L<guestfish(1)>."
32309 msgstr ""
32310
32311 #. type: =head2
32312 #: ../src/guestfs.pod:762
32313 msgid "LIBGUESTFS GOTCHAS"
32314 msgstr ""
32315
32316 #. type: textblock
32317 #: ../src/guestfs.pod:764
32318 msgid ""
32319 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
32320 "system [...] that works in the way it is documented but is counterintuitive "
32321 "and almost invites mistakes.\""
32322 msgstr ""
32323
32324 #. type: textblock
32325 #: ../src/guestfs.pod:768
32326 msgid ""
32327 "Since we developed libguestfs and the associated tools, there are several "
32328 "things we would have designed differently, but are now stuck with for "
32329 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
32330 "release, you can expect these to change.  Beware of them."
32331 msgstr ""
32332
32333 #. type: =item
32334 #: ../src/guestfs.pod:776
32335 msgid "Autosync / forgetting to sync."
32336 msgstr ""
32337
32338 #. type: textblock
32339 #: ../src/guestfs.pod:778
32340 msgid ""
32341 "I<Update:> Autosync is enabled by default for all API users starting from "
32342 "libguestfs 1.5.24.  This section only applies to older versions."
32343 msgstr ""
32344
32345 #. type: textblock
32346 #: ../src/guestfs.pod:781
32347 msgid ""
32348 "When modifying a filesystem from C or another language, you B<must> unmount "
32349 "all filesystems and call L</guestfs_sync> explicitly before you close the "
32350 "libguestfs handle.  You can also call:"
32351 msgstr ""
32352
32353 #. type: verbatim
32354 #: ../src/guestfs.pod:785
32355 #, no-wrap
32356 msgid ""
32357 " guestfs_set_autosync (g, 1);\n"
32358 "\n"
32359 msgstr ""
32360
32361 #. type: textblock
32362 #: ../src/guestfs.pod:787
32363 msgid ""
32364 "to have the unmount/sync done automatically for you when the handle 'g' is "
32365 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
32366 msgstr ""
32367
32368 #. type: textblock
32369 #: ../src/guestfs.pod:791
32370 msgid ""
32371 "If you forget to do this, then it is entirely possible that your changes "
32372 "won't be written out, or will be partially written, or (very rarely) that "
32373 "you'll get disk corruption."
32374 msgstr ""
32375
32376 #. type: textblock
32377 #: ../src/guestfs.pod:795
32378 msgid ""
32379 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
32380 "guestfish scripts that forget to sync will work just fine, which can make "
32381 "this very puzzling if you are trying to debug a problem."
32382 msgstr ""
32383
32384 #. type: =item
32385 #: ../src/guestfs.pod:799
32386 msgid "Mount option C<-o sync> should not be the default."
32387 msgstr ""
32388
32389 #. type: textblock
32390 #: ../src/guestfs.pod:801
32391 msgid ""
32392 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
32393 "However C<-o sync> does not add any reliability benefit, but does have a "
32394 "very large performance impact."
32395 msgstr ""
32396
32397 #. type: textblock
32398 #: ../src/guestfs.pod:805
32399 msgid ""
32400 "The work around is to use L</guestfs_mount_options> and set the mount "
32401 "options that you actually want to use."
32402 msgstr ""
32403
32404 #. type: =item
32405 #: ../src/guestfs.pod:808
32406 msgid "Read-only should be the default."
32407 msgstr ""
32408
32409 #. type: textblock
32410 #: ../src/guestfs.pod:810
32411 msgid ""
32412 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
32413 "specify I<--rw> if you want to make changes to the image."
32414 msgstr ""
32415
32416 #. type: textblock
32417 #: ../src/guestfs.pod:813
32418 msgid "This would reduce the potential to corrupt live VM images."
32419 msgstr ""
32420
32421 #. type: textblock
32422 #: ../src/guestfs.pod:815
32423 msgid ""
32424 "Note that many filesystems change the disk when you just mount and unmount, "
32425 "even if you didn't perform any writes.  You need to use L</"
32426 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
32427 msgstr ""
32428
32429 #. type: =item
32430 #: ../src/guestfs.pod:819
32431 msgid "guestfish command line is hard to use."
32432 msgstr ""
32433
32434 #. type: textblock
32435 #: ../src/guestfs.pod:821
32436 msgid ""
32437 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
32438 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
32439 "exist, so it fails.  In earlier versions of guestfish the error message was "
32440 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
32441 "we should have used C<guestfish -c command> to run commands."
32442 msgstr ""
32443
32444 #. type: =item
32445 #: ../src/guestfs.pod:828
32446 msgid "guestfish megabyte modifiers don't work right on all commands"
32447 msgstr ""
32448
32449 #. type: textblock
32450 #: ../src/guestfs.pod:830
32451 msgid ""
32452 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
32453 "other modifiers).  What guestfish actually does is to multiply the number "
32454 "part by the modifier part and pass the result to the C API.  However this "
32455 "doesn't work for a few APIs which aren't expecting bytes, but are already "
32456 "expecting some other unit (eg. megabytes)."
32457 msgstr ""
32458
32459 #. type: textblock
32460 #: ../src/guestfs.pod:837
32461 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
32462 msgstr ""
32463
32464 #. type: verbatim
32465 #: ../src/guestfs.pod:839
32466 #, no-wrap
32467 msgid ""
32468 " lvcreate LV VG 100M\n"
32469 "\n"
32470 msgstr ""
32471
32472 #. type: textblock
32473 #: ../src/guestfs.pod:841
32474 msgid ""
32475 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
32476 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
32477 "megabytes * megabytes) logical volume.  The error message you get from this "
32478 "is also a little obscure."
32479 msgstr ""
32480
32481 #. type: textblock
32482 #: ../src/guestfs.pod:846
32483 msgid ""
32484 "This could be fixed in the generator by specially marking parameters and "
32485 "return values which take bytes or other units."
32486 msgstr ""
32487
32488 #. type: =item
32489 #: ../src/guestfs.pod:849
32490 msgid "Ambiguity between devices and paths"
32491 msgstr ""
32492
32493 #. type: textblock
32494 #: ../src/guestfs.pod:851
32495 msgid ""
32496 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
32497 "sdb2>) and a similar pathname.  A file might just happen to be called "
32498 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
32499 msgstr ""
32500
32501 #. type: textblock
32502 #: ../src/guestfs.pod:856
32503 msgid ""
32504 "In the current API we usually resolve this ambiguity by having two separate "
32505 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
32506 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
32507 "detecting if the path supplied begins with C</dev/>."
32508 msgstr ""
32509
32510 #. type: textblock
32511 #: ../src/guestfs.pod:862
32512 msgid ""
32513 "To avoid both the ambiguity and the need to duplicate some calls, we could "
32514 "make paths/devices into structured names.  One way to do this would be to "
32515 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
32516 "aspect of grub.  Another way would be to use a structured type, equivalent "
32517 "to this OCaml type:"
32518 msgstr ""
32519
32520 #. type: verbatim
32521 #: ../src/guestfs.pod:868
32522 #, no-wrap
32523 msgid ""
32524 " type path = Path of string | Device of int | Partition of int * int\n"
32525 "\n"
32526 msgstr ""
32527
32528 #. type: textblock
32529 #: ../src/guestfs.pod:870
32530 msgid "which would allow you to pass arguments like:"
32531 msgstr ""
32532
32533 #. type: verbatim
32534 #: ../src/guestfs.pod:872
32535 #, no-wrap
32536 msgid ""
32537 " Path \"/foo/bar\"\n"
32538 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
32539 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
32540 " Path \"/dev/sdb2\"    (* not a device *)\n"
32541 "\n"
32542 msgstr ""
32543
32544 #. type: textblock
32545 #: ../src/guestfs.pod:877
32546 msgid ""
32547 "As you can see there are still problems to resolve even with this "
32548 "representation.  Also consider how it might work in guestfish."
32549 msgstr ""
32550
32551 #. type: =head2
32552 #: ../src/guestfs.pod:882
32553 msgid "KEYS AND PASSPHRASES"
32554 msgstr ""
32555
32556 #. type: textblock
32557 #: ../src/guestfs.pod:884
32558 msgid ""
32559 "Certain libguestfs calls take a parameter that contains sensitive key "
32560 "material, passed in as a C string."
32561 msgstr ""
32562
32563 #. type: textblock
32564 #: ../src/guestfs.pod:887
32565 msgid ""
32566 "In the future we would hope to change the libguestfs implementation so that "
32567 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
32568 "swap.  However this is I<not> done at the moment, because of the complexity "
32569 "of such an implementation."
32570 msgstr ""
32571
32572 #. type: textblock
32573 #: ../src/guestfs.pod:892
32574 msgid ""
32575 "Therefore you should be aware that any key parameter you pass to libguestfs "
32576 "might end up being written out to the swap partition.  If this is a concern, "
32577 "scrub the swap partition or don't use libguestfs on encrypted devices."
32578 msgstr ""
32579
32580 #. type: =head2
32581 #: ../src/guestfs.pod:897
32582 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
32583 msgstr ""
32584
32585 #. type: textblock
32586 #: ../src/guestfs.pod:899
32587 msgid ""
32588 "All high-level libguestfs actions are synchronous.  If you want to use "
32589 "libguestfs asynchronously then you must create a thread."
32590 msgstr ""
32591
32592 #. type: textblock
32593 #: ../src/guestfs.pod:902
32594 msgid ""
32595 "Only use the handle from a single thread.  Either use the handle exclusively "
32596 "from one thread, or provide your own mutex so that two threads cannot issue "
32597 "calls on the same handle at the same time."
32598 msgstr ""
32599
32600 #. type: textblock
32601 #: ../src/guestfs.pod:906
32602 msgid ""
32603 "See the graphical program guestfs-browser for one possible architecture for "
32604 "multithreaded programs using libvirt and libguestfs."
32605 msgstr ""
32606
32607 #. type: =head2
32608 #: ../src/guestfs.pod:909
32609 msgid "PATH"
32610 msgstr ""
32611
32612 #. type: textblock
32613 #: ../src/guestfs.pod:911
32614 msgid ""
32615 "Libguestfs needs a supermin appliance, which it finds by looking along an "
32616 "internal path."
32617 msgstr ""
32618
32619 #. type: textblock
32620 #: ../src/guestfs.pod:914
32621 msgid ""
32622 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
32623 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
32624 msgstr ""
32625
32626 #. type: textblock
32627 #: ../src/guestfs.pod:917
32628 msgid ""
32629 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
32630 "to change the directories that libguestfs will search in.  The value is a "
32631 "colon-separated list of paths.  The current directory is I<not> searched "
32632 "unless the path contains an empty element or C<.>.  For example "
32633 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
32634 "then C</usr/lib/guestfs>."
32635 msgstr ""
32636
32637 #. type: =head2
32638 #: ../src/guestfs.pod:924
32639 msgid "QEMU WRAPPERS"
32640 msgstr ""
32641
32642 #. type: textblock
32643 #: ../src/guestfs.pod:926
32644 msgid ""
32645 "If you want to compile your own qemu, run qemu from a non-standard location, "
32646 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
32647 "around qemu."
32648 msgstr ""
32649
32650 #. type: textblock
32651 #: ../src/guestfs.pod:930
32652 msgid ""
32653 "There is one important rule to remember: you I<must C<exec qemu>> as the "
32654 "last command in the shell script (so that qemu replaces the shell and "
32655 "becomes the direct child of the libguestfs-using program).  If you don't do "
32656 "this, then the qemu process won't be cleaned up correctly."
32657 msgstr ""
32658
32659 #. type: textblock
32660 #: ../src/guestfs.pod:935
32661 msgid ""
32662 "Here is an example of a wrapper, where I have built my own copy of qemu from "
32663 "source:"
32664 msgstr ""
32665
32666 #. type: verbatim
32667 #: ../src/guestfs.pod:938
32668 #, no-wrap
32669 msgid ""
32670 " #!/bin/sh -\n"
32671 " qemudir=/home/rjones/d/qemu\n"
32672 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
32673 "\n"
32674 msgstr ""
32675
32676 #. type: textblock
32677 #: ../src/guestfs.pod:942
32678 msgid ""
32679 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
32680 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
32681 "example:"
32682 msgstr ""
32683
32684 #. type: verbatim
32685 #: ../src/guestfs.pod:946
32686 #, no-wrap
32687 msgid ""
32688 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
32689 "\n"
32690 msgstr ""
32691
32692 #. type: textblock
32693 #: ../src/guestfs.pod:948
32694 msgid ""
32695 "Note that libguestfs also calls qemu with the -help and -version options in "
32696 "order to determine features."
32697 msgstr ""
32698
32699 #. type: =head2
32700 #: ../src/guestfs.pod:951
32701 msgid "ATTACHING TO RUNNING DAEMONS"
32702 msgstr ""
32703
32704 #. type: textblock
32705 #: ../src/guestfs.pod:953
32706 msgid ""
32707 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
32708 "babies.  Use with caution."
32709 msgstr ""
32710
32711 #. type: textblock
32712 #: ../src/guestfs.pod:956
32713 msgid ""
32714 "I<Note (2):> This section explains how to attach to a running daemon from a "
32715 "low level perspective.  For most users, simply using virt tools such as "
32716 "L<guestfish(1)> with the I<--live> option will \"just work\"."
32717 msgstr ""
32718
32719 #. type: =head3
32720 #: ../src/guestfs.pod:960
32721 msgid "Using guestfs_set_attach_method"
32722 msgstr ""
32723
32724 #. type: textblock
32725 #: ../src/guestfs.pod:962
32726 msgid ""
32727 "By calling L</guestfs_set_attach_method> you can change how the library "
32728 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
32729 "ARCHITECTURE> for some background)."
32730 msgstr ""
32731
32732 #. type: textblock
32733 #: ../src/guestfs.pod:966
32734 msgid ""
32735 "The normal attach method is C<appliance>, where a small appliance is created "
32736 "containing the daemon, and then the library connects to this."
32737 msgstr ""
32738
32739 #. type: textblock
32740 #: ../src/guestfs.pod:969
32741 msgid ""
32742 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
32743 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
32744 "daemon over the Unix domain socket."
32745 msgstr ""
32746
32747 #. type: textblock
32748 #: ../src/guestfs.pod:973
32749 msgid ""
32750 "The normal use for this is to connect to a running virtual machine that "
32751 "contains a C<guestfsd> daemon, and send commands so you can read and write "
32752 "files inside the live virtual machine."
32753 msgstr ""
32754
32755 #. type: =head3
32756 #: ../src/guestfs.pod:977
32757 msgid "Using guestfs_add_domain with live flag"
32758 msgstr ""
32759
32760 #. type: textblock
32761 #: ../src/guestfs.pod:979
32762 msgid ""
32763 "L</guestfs_add_domain> provides some help for getting the correct attach "
32764 "method.  If you pass the C<live> option to this function, then (if the "
32765 "virtual machine is running) it will examine the libvirt XML looking for a "
32766 "virtio-serial channel to connect to:"
32767 msgstr ""
32768
32769 #. type: verbatim
32770 #: ../src/guestfs.pod:985
32771 #, no-wrap
32772 msgid ""
32773 " <domain>\n"
32774 "   ...\n"
32775 "   <devices>\n"
32776 "     ...\n"
32777 "     <channel type='unix'>\n"
32778 "       <source mode='bind' path='/path/to/socket'/>\n"
32779 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
32780 "     </channel>\n"
32781 "     ...\n"
32782 "   </devices>\n"
32783 " </domain>\n"
32784 "\n"
32785 msgstr ""
32786
32787 #. type: textblock
32788 #: ../src/guestfs.pod:997
32789 msgid ""
32790 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
32791 "method to C<unix:/path/to/socket>."
32792 msgstr ""
32793
32794 #. type: textblock
32795 #: ../src/guestfs.pod:1000
32796 msgid ""
32797 "Some of the libguestfs tools (including guestfish) support a I<--live> "
32798 "option which is passed through to L</guestfs_add_domain> thus allowing you "
32799 "to attach to and modify live virtual machines."
32800 msgstr ""
32801
32802 #. type: textblock
32803 #: ../src/guestfs.pod:1004
32804 msgid ""
32805 "The virtual machine needs to have been set up beforehand so that it has the "
32806 "virtio-serial channel and so that guestfsd is running inside it."
32807 msgstr ""
32808
32809 #. type: =head2
32810 #: ../src/guestfs.pod:1008
32811 msgid "ABI GUARANTEE"
32812 msgstr ""
32813
32814 #. type: textblock
32815 #: ../src/guestfs.pod:1010
32816 msgid ""
32817 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
32818 "actions as outlined in this section.  Although we will deprecate some "
32819 "actions, for example if they get replaced by newer calls, we will keep the "
32820 "old actions forever.  This allows you the developer to program in confidence "
32821 "against the libguestfs API."
32822 msgstr ""
32823
32824 #. type: =head2
32825 #: ../src/guestfs.pod:1016
32826 msgid "BLOCK DEVICE NAMING"
32827 msgstr ""
32828
32829 #. type: textblock
32830 #: ../src/guestfs.pod:1018
32831 msgid ""
32832 "In the kernel there is now quite a profusion of schemata for naming block "
32833 "devices (in this context, by I<block device> I mean a physical or virtual "
32834 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
32835 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
32836 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
32837 "for the old IDE driver (particularly for SATA devices) those devices also "
32838 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
32839 "paravirtualized drivers.  This has created several different naming systems, "
32840 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
32841 msgstr ""
32842
32843 #. type: textblock
32844 #: ../src/guestfs.pod:1030
32845 msgid ""
32846 "As discussed above, libguestfs uses a qemu appliance running an embedded "
32847 "Linux kernel to access block devices.  We can run a variety of appliances "
32848 "based on a variety of Linux kernels."
32849 msgstr ""
32850
32851 #. type: textblock
32852 #: ../src/guestfs.pod:1034
32853 msgid ""
32854 "This causes a problem for libguestfs because many API calls use device or "
32855 "partition names.  Working scripts and the recipe (example) scripts that we "
32856 "make available over the internet could fail if the naming scheme changes."
32857 msgstr ""
32858
32859 #. type: textblock
32860 #: ../src/guestfs.pod:1039
32861 msgid ""
32862 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
32863 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
32864 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
32865 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
32866 msgstr ""
32867
32868 #. type: textblock
32869 #: ../src/guestfs.pod:1045
32870 msgid ""
32871 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
32872 "L</guestfs_list_partitions> and similar calls return the true names of the "
32873 "devices and partitions as known to the appliance."
32874 msgstr ""
32875
32876 #. type: =head3
32877 #: ../src/guestfs.pod:1050
32878 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
32879 msgstr ""
32880
32881 #. type: textblock
32882 #: ../src/guestfs.pod:1052
32883 msgid ""
32884 "Usually this translation is transparent.  However in some (very rare)  cases "
32885 "you may need to know the exact algorithm.  Such cases include where you use "
32886 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
32887 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
32888 msgstr ""
32889
32890 #. type: textblock
32891 #: ../src/guestfs.pod:1058
32892 msgid ""
32893 "The algorithm is applied only to I<parameters> which are known to be either "
32894 "device or partition names.  Return values from functions such as L</"
32895 "guestfs_list_devices> are never changed."
32896 msgstr ""
32897
32898 #. type: textblock
32899 #: ../src/guestfs.pod:1066
32900 msgid "Is the string a parameter which is a device or partition name?"
32901 msgstr ""
32902
32903 #. type: textblock
32904 #: ../src/guestfs.pod:1070
32905 msgid "Does the string begin with C</dev/sd>?"
32906 msgstr ""
32907
32908 #. type: textblock
32909 #: ../src/guestfs.pod:1074
32910 msgid ""
32911 "Does the named device exist? If so, we use that device.  However if I<not> "
32912 "then we continue with this algorithm."
32913 msgstr ""
32914
32915 #. type: textblock
32916 #: ../src/guestfs.pod:1079
32917 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
32918 msgstr ""
32919
32920 #. type: textblock
32921 #: ../src/guestfs.pod:1081
32922 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
32923 msgstr ""
32924
32925 #. type: textblock
32926 #: ../src/guestfs.pod:1083
32927 msgid "If that named device exists, use it.  If not, continue."
32928 msgstr ""
32929
32930 #. type: textblock
32931 #: ../src/guestfs.pod:1087
32932 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
32933 msgstr ""
32934
32935 #. type: textblock
32936 #: ../src/guestfs.pod:1089
32937 msgid "If that named device exists, use it.  If not, return an error."
32938 msgstr ""
32939
32940 #. type: =head3
32941 #: ../src/guestfs.pod:1093
32942 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
32943 msgstr ""
32944
32945 #. type: textblock
32946 #: ../src/guestfs.pod:1095
32947 msgid ""
32948 "Although the standard naming scheme and automatic translation is useful for "
32949 "simple programs and guestfish scripts, for larger programs it is best not to "
32950 "rely on this mechanism."
32951 msgstr ""
32952
32953 #. type: textblock
32954 #: ../src/guestfs.pod:1099
32955 msgid ""
32956 "Where possible for maximum future portability programs using libguestfs "
32957 "should use these future-proof techniques:"
32958 msgstr ""
32959
32960 #. type: textblock
32961 #: ../src/guestfs.pod:1106
32962 msgid ""
32963 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
32964 "device names, and then use those names directly."
32965 msgstr ""
32966
32967 #. type: textblock
32968 #: ../src/guestfs.pod:1109
32969 msgid ""
32970 "Since those device names exist by definition, they will never be translated."
32971 msgstr ""
32972
32973 #. type: textblock
32974 #: ../src/guestfs.pod:1114
32975 msgid ""
32976 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
32977 "filesystem labels."
32978 msgstr ""
32979
32980 #. type: =head1
32981 #: ../src/guestfs.pod:1119
32982 msgid "SECURITY"
32983 msgstr ""
32984
32985 #. type: textblock
32986 #: ../src/guestfs.pod:1121
32987 msgid ""
32988 "This section discusses security implications of using libguestfs, "
32989 "particularly with untrusted or malicious guests or disk images."
32990 msgstr ""
32991
32992 #. type: =head2
32993 #: ../src/guestfs.pod:1124
32994 msgid "GENERAL SECURITY CONSIDERATIONS"
32995 msgstr ""
32996
32997 #. type: textblock
32998 #: ../src/guestfs.pod:1126
32999 msgid ""
33000 "Be careful with any files or data that you download from a guest (by "
33001 "\"download\" we mean not just the L</guestfs_download> command but any "
33002 "command that reads files, filenames, directories or anything else from a "
33003 "disk image).  An attacker could manipulate the data to fool your program "
33004 "into doing the wrong thing.  Consider cases such as:"
33005 msgstr ""
33006
33007 #. type: textblock
33008 #: ../src/guestfs.pod:1136
33009 msgid "the data (file etc) not being present"
33010 msgstr ""
33011
33012 #. type: textblock
33013 #: ../src/guestfs.pod:1140
33014 msgid "being present but empty"
33015 msgstr ""
33016
33017 #. type: textblock
33018 #: ../src/guestfs.pod:1144
33019 msgid "being much larger than normal"
33020 msgstr ""
33021
33022 #. type: textblock
33023 #: ../src/guestfs.pod:1148
33024 msgid "containing arbitrary 8 bit data"
33025 msgstr ""
33026
33027 #. type: textblock
33028 #: ../src/guestfs.pod:1152
33029 msgid "being in an unexpected character encoding"
33030 msgstr ""
33031
33032 #. type: textblock
33033 #: ../src/guestfs.pod:1156
33034 msgid "containing homoglyphs."
33035 msgstr ""
33036
33037 #. type: =head2
33038 #: ../src/guestfs.pod:1160
33039 msgid "SECURITY OF MOUNTING FILESYSTEMS"
33040 msgstr ""
33041
33042 #. type: textblock
33043 #: ../src/guestfs.pod:1162
33044 msgid ""
33045 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
33046 "(VFS) module can sometimes be escalated into exploits by deliberately "
33047 "creating a malicious, malformed filesystem.  These exploits are very severe "
33048 "for two reasons.  Firstly there are very many filesystem drivers in the "
33049 "kernel, and many of them are infrequently used and not much developer "
33050 "attention has been paid to the code.  Linux userspace helps potential "
33051 "crackers by detecting the filesystem type and automatically choosing the "
33052 "right VFS driver, even if that filesystem type is obscure or unexpected for "
33053 "the administrator.  Secondly, a kernel-level exploit is like a local root "
33054 "exploit (worse in some ways), giving immediate and total access to the "
33055 "system right down to the hardware level."
33056 msgstr ""
33057
33058 #. type: textblock
33059 #: ../src/guestfs.pod:1175
33060 msgid ""
33061 "That explains why you should never mount a filesystem from an untrusted "
33062 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
33063 "inside a qemu virtual machine, usually running as a non-root user.  The "
33064 "attacker would need to write a filesystem which first exploited the kernel, "
33065 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
33066 "the libguestfs protocol, and finally to be as serious as the host kernel "
33067 "exploit it would need to escalate its privileges to root.  This multi-step "
33068 "escalation, performed by a static piece of data, is thought to be extremely "
33069 "hard to do, although we never say 'never' about security issues."
33070 msgstr ""
33071
33072 #. type: textblock
33073 #: ../src/guestfs.pod:1186
33074 msgid ""
33075 "In any case callers can reduce the attack surface by forcing the filesystem "
33076 "type when mounting (use L</guestfs_mount_vfs>)."
33077 msgstr ""
33078
33079 #. type: =head2
33080 #: ../src/guestfs.pod:1189
33081 msgid "PROTOCOL SECURITY"
33082 msgstr ""
33083
33084 #. type: textblock
33085 #: ../src/guestfs.pod:1191
33086 msgid ""
33087 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
33088 "defined upper message size.  However a program that uses libguestfs must "
33089 "also take care - for example you can write a program that downloads a binary "
33090 "from a disk image and executes it locally, and no amount of protocol "
33091 "security will save you from the consequences."
33092 msgstr ""
33093
33094 #. type: =head2
33095 #: ../src/guestfs.pod:1197
33096 msgid "INSPECTION SECURITY"
33097 msgstr ""
33098
33099 #. type: textblock
33100 #: ../src/guestfs.pod:1199
33101 msgid ""
33102 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
33103 "directly from the guest, and these could contain any 8 bit data.  Callers "
33104 "should be careful to escape these before printing them to a structured file "
33105 "(for example, use HTML escaping if creating a web page)."
33106 msgstr ""
33107
33108 #. type: textblock
33109 #: ../src/guestfs.pod:1205
33110 msgid ""
33111 "Guest configuration may be altered in unusual ways by the administrator of "
33112 "the virtual machine, and may not reflect reality (particularly for untrusted "
33113 "or actively malicious guests).  For example we parse the hostname from "
33114 "configuration files like C</etc/sysconfig/network> that we find in the "
33115 "guest, but the guest administrator can easily manipulate these files to "
33116 "provide the wrong hostname."
33117 msgstr ""
33118
33119 #. type: textblock
33120 #: ../src/guestfs.pod:1213
33121 msgid ""
33122 "The inspection API parses guest configuration using two external libraries: "
33123 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
33124 "designed to be robust in the face of malicious data, although denial of "
33125 "service attacks are still possible, for example with oversized configuration "
33126 "files."
33127 msgstr ""
33128
33129 #. type: =head2
33130 #: ../src/guestfs.pod:1219
33131 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
33132 msgstr ""
33133
33134 #. type: textblock
33135 #: ../src/guestfs.pod:1221
33136 msgid ""
33137 "Be very cautious about running commands from the guest.  By running a "
33138 "command in the guest, you are giving CPU time to a binary that you do not "
33139 "control, under the same user account as the library, albeit wrapped in qemu "
33140 "virtualization.  More information and alternatives can be found in the "
33141 "section L</RUNNING COMMANDS>."
33142 msgstr ""
33143
33144 #. type: =head2
33145 #: ../src/guestfs.pod:1227
33146 msgid "CVE-2010-3851"
33147 msgstr ""
33148
33149 #. type: textblock
33150 #: ../src/guestfs.pod:1229
33151 msgid "https://bugzilla.redhat.com/642934"
33152 msgstr ""
33153
33154 #. type: textblock
33155 #: ../src/guestfs.pod:1231
33156 msgid ""
33157 "This security bug concerns the automatic disk format detection that qemu "
33158 "does on disk images."
33159 msgstr ""
33160
33161 #. type: textblock
33162 #: ../src/guestfs.pod:1234
33163 msgid ""
33164 "A raw disk image is just the raw bytes, there is no header.  Other disk "
33165 "images like qcow2 contain a special header.  Qemu deals with this by looking "
33166 "for one of the known headers, and if none is found then assuming the disk "
33167 "image must be raw."
33168 msgstr ""
33169
33170 #. type: textblock
33171 #: ../src/guestfs.pod:1239
33172 msgid ""
33173 "This allows a guest which has been given a raw disk image to write some "
33174 "other header.  At next boot (or when the disk image is accessed by "
33175 "libguestfs) qemu would do autodetection and think the disk image format was, "
33176 "say, qcow2 based on the header written by the guest."
33177 msgstr ""
33178
33179 #. type: textblock
33180 #: ../src/guestfs.pod:1244
33181 msgid ""
33182 "This in itself would not be a problem, but qcow2 offers many features, one "
33183 "of which is to allow a disk image to refer to another image (called the "
33184 "\"backing disk\").  It does this by placing the path to the backing disk "
33185 "into the qcow2 header.  This path is not validated and could point to any "
33186 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
33187 "\"holes\" in the qcow2 disk image, which of course is completely under the "
33188 "control of the attacker."
33189 msgstr ""
33190
33191 #. type: textblock
33192 #: ../src/guestfs.pod:1252
33193 msgid ""
33194 "In libguestfs this is rather hard to exploit except under two circumstances:"
33195 msgstr ""
33196
33197 #. type: textblock
33198 #: ../src/guestfs.pod:1259
33199 msgid "You have enabled the network or have opened the disk in write mode."
33200 msgstr ""
33201
33202 #. type: textblock
33203 #: ../src/guestfs.pod:1263
33204 msgid ""
33205 "You are also running untrusted code from the guest (see L</RUNNING "
33206 "COMMANDS>)."
33207 msgstr ""
33208
33209 #. type: textblock
33210 #: ../src/guestfs.pod:1268
33211 msgid ""
33212 "The way to avoid this is to specify the expected disk format when adding "
33213 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
33214 "should always do this if the disk is raw format, and it's a good idea for "
33215 "other cases too."
33216 msgstr ""
33217
33218 #. type: textblock
33219 #: ../src/guestfs.pod:1273
33220 msgid ""
33221 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
33222 "format is fetched from libvirt and passed through."
33223 msgstr ""
33224
33225 #. type: textblock
33226 #: ../src/guestfs.pod:1276
33227 msgid ""
33228 "For libguestfs tools, use the I<--format> command line parameter as "
33229 "appropriate."
33230 msgstr ""
33231
33232 #. type: =head1
33233 #: ../src/guestfs.pod:1279
33234 msgid "CONNECTION MANAGEMENT"
33235 msgstr ""
33236
33237 #. type: =head2
33238 #: ../src/guestfs.pod:1281
33239 msgid "guestfs_h *"
33240 msgstr ""
33241
33242 #. type: textblock
33243 #: ../src/guestfs.pod:1283
33244 msgid ""
33245 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
33246 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
33247 "handle and release all resources used."
33248 msgstr ""
33249
33250 #. type: textblock
33251 #: ../src/guestfs.pod:1287
33252 msgid ""
33253 "For information on using multiple handles and threads, see the section L</"
33254 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
33255 msgstr ""
33256
33257 #. type: =head2
33258 #: ../src/guestfs.pod:1290
33259 msgid "guestfs_create"
33260 msgstr ""
33261
33262 #. type: verbatim
33263 #: ../src/guestfs.pod:1292
33264 #, no-wrap
33265 msgid ""
33266 " guestfs_h *guestfs_create (void);\n"
33267 "\n"
33268 msgstr ""
33269
33270 #. type: textblock
33271 #: ../src/guestfs.pod:1294
33272 msgid "Create a connection handle."
33273 msgstr ""
33274
33275 #. type: textblock
33276 #: ../src/guestfs.pod:1296
33277 msgid ""
33278 "On success this returns a non-NULL pointer to a handle.  On error it returns "
33279 "NULL."
33280 msgstr ""
33281
33282 #. type: textblock
33283 #: ../src/guestfs.pod:1299
33284 msgid ""
33285 "You have to \"configure\" the handle after creating it.  This includes "
33286 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
33287 "handle at least once."
33288 msgstr ""
33289
33290 #. type: textblock
33291 #: ../src/guestfs.pod:1303
33292 msgid "After configuring the handle, you have to call L</guestfs_launch>."
33293 msgstr ""
33294
33295 #. type: textblock
33296 #: ../src/guestfs.pod:1305
33297 msgid ""
33298 "You may also want to configure error handling for the handle.  See the L</"
33299 "ERROR HANDLING> section below."
33300 msgstr ""
33301
33302 #. type: =head2
33303 #: ../src/guestfs.pod:1308
33304 msgid "guestfs_close"
33305 msgstr ""
33306
33307 #. type: verbatim
33308 #: ../src/guestfs.pod:1310
33309 #, no-wrap
33310 msgid ""
33311 " void guestfs_close (guestfs_h *g);\n"
33312 "\n"
33313 msgstr ""
33314
33315 #. type: textblock
33316 #: ../src/guestfs.pod:1312
33317 msgid "This closes the connection handle and frees up all resources used."
33318 msgstr ""
33319
33320 #. type: textblock
33321 #: ../src/guestfs.pod:1314
33322 msgid ""
33323 "If autosync was set on the handle and the handle was launched, then this "
33324 "implicitly calls various functions to unmount filesystems and sync the "
33325 "disk.  See L</guestfs_set_autosync> for more details."
33326 msgstr ""
33327
33328 #. type: textblock
33329 #: ../src/guestfs.pod:1318
33330 msgid "If a close callback was set on the handle, then it is called."
33331 msgstr ""
33332
33333 #. type: =head1
33334 #: ../src/guestfs.pod:1320
33335 msgid "ERROR HANDLING"
33336 msgstr ""
33337
33338 #. type: textblock
33339 #: ../src/guestfs.pod:1322
33340 msgid ""
33341 "API functions can return errors.  For example, almost all functions that "
33342 "return C<int> will return C<-1> to indicate an error."
33343 msgstr ""
33344
33345 #. type: textblock
33346 #: ../src/guestfs.pod:1325
33347 msgid ""
33348 "Additional information is available for errors: an error message string and "
33349 "optionally an error number (errno) if the thing that failed was a system "
33350 "call."
33351 msgstr ""
33352
33353 #. type: textblock
33354 #: ../src/guestfs.pod:1329
33355 msgid ""
33356 "You can get at the additional information about the last error on the handle "
33357 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
33358 "up an error handler with L</guestfs_set_error_handler>."
33359 msgstr ""
33360
33361 #. type: textblock
33362 #: ../src/guestfs.pod:1334
33363 msgid ""
33364 "When the handle is created, a default error handler is installed which "
33365 "prints the error message string to C<stderr>.  For small short-running "
33366 "command line programs it is sufficient to do:"
33367 msgstr ""
33368
33369 #. type: verbatim
33370 #: ../src/guestfs.pod:1338
33371 #, no-wrap
33372 msgid ""
33373 " if (guestfs_launch (g) == -1)\n"
33374 "   exit (EXIT_FAILURE);\n"
33375 "\n"
33376 msgstr ""
33377
33378 #. type: textblock
33379 #: ../src/guestfs.pod:1341
33380 msgid ""
33381 "since the default error handler will ensure that an error message has been "
33382 "printed to C<stderr> before the program exits."
33383 msgstr ""
33384
33385 #. type: textblock
33386 #: ../src/guestfs.pod:1344
33387 msgid ""
33388 "For other programs the caller will almost certainly want to install an "
33389 "alternate error handler or do error handling in-line like this:"
33390 msgstr ""
33391
33392 #. type: verbatim
33393 #: ../src/guestfs.pod:1347
33394 #, no-wrap
33395 msgid ""
33396 " /* This disables the default behaviour of printing errors\n"
33397 "    on stderr. */\n"
33398 " guestfs_set_error_handler (g, NULL, NULL);\n"
33399 " \n"
33400 msgstr ""
33401
33402 #. type: verbatim
33403 #: ../src/guestfs.pod:1351
33404 #, no-wrap
33405 msgid ""
33406 " if (guestfs_launch (g) == -1) {\n"
33407 "   /* Examine the error message and print it etc. */\n"
33408 "   char *msg = guestfs_last_error (g);\n"
33409 "   int errnum = guestfs_last_errno (g);\n"
33410 "   fprintf (stderr, \"%s\", msg);\n"
33411 "   if (errnum != 0)\n"
33412 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
33413 "   fprintf (stderr, \"\\n\");\n"
33414 "   /* ... */\n"
33415 " }\n"
33416 "\n"
33417 msgstr ""
33418
33419 #. type: textblock
33420 #: ../src/guestfs.pod:1362
33421 msgid ""
33422 "Out of memory errors are handled differently.  The default action is to call "
33423 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
33424 "guestfs_set_out_of_memory_handler>."
33425 msgstr ""
33426
33427 #. type: textblock
33428 #: ../src/guestfs.pod:1366
33429 msgid ""
33430 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
33431 "because there is no handle if this happens there is no way to get additional "
33432 "error information.  However L</guestfs_create> is supposed to be a "
33433 "lightweight operation which can only fail because of insufficient memory (it "
33434 "returns NULL in this case)."
33435 msgstr ""
33436
33437 #. type: =head2
33438 #: ../src/guestfs.pod:1372
33439 msgid "guestfs_last_error"
33440 msgstr ""
33441
33442 #. type: verbatim
33443 #: ../src/guestfs.pod:1374
33444 #, no-wrap
33445 msgid ""
33446 " const char *guestfs_last_error (guestfs_h *g);\n"
33447 "\n"
33448 msgstr ""
33449
33450 #. type: textblock
33451 #: ../src/guestfs.pod:1376
33452 msgid ""
33453 "This returns the last error message that happened on C<g>.  If there has not "
33454 "been an error since the handle was created, then this returns C<NULL>."
33455 msgstr ""
33456
33457 #. type: textblock
33458 #: ../src/guestfs.pod:1380
33459 msgid ""
33460 "The lifetime of the returned string is until the next error occurs, or L</"
33461 "guestfs_close> is called."
33462 msgstr ""
33463
33464 #. type: =head2
33465 #: ../src/guestfs.pod:1383
33466 msgid "guestfs_last_errno"
33467 msgstr ""
33468
33469 #. type: verbatim
33470 #: ../src/guestfs.pod:1385
33471 #, no-wrap
33472 msgid ""
33473 " int guestfs_last_errno (guestfs_h *g);\n"
33474 "\n"
33475 msgstr ""
33476
33477 #. type: textblock
33478 #: ../src/guestfs.pod:1387
33479 msgid "This returns the last error number (errno) that happened on C<g>."
33480 msgstr ""
33481
33482 #. type: textblock
33483 #: ../src/guestfs.pod:1389
33484 msgid "If successful, an errno integer not equal to zero is returned."
33485 msgstr ""
33486
33487 #. type: textblock
33488 #: ../src/guestfs.pod:1391
33489 msgid ""
33490 "If no error, this returns 0.  This call can return 0 in three situations:"
33491 msgstr ""
33492
33493 #. type: textblock
33494 #: ../src/guestfs.pod:1398
33495 msgid "There has not been any error on the handle."
33496 msgstr ""
33497
33498 #. type: textblock
33499 #: ../src/guestfs.pod:1402
33500 msgid ""
33501 "There has been an error but the errno was meaningless.  This corresponds to "
33502 "the case where the error did not come from a failed system call, but for "
33503 "some other reason."
33504 msgstr ""
33505
33506 #. type: textblock
33507 #: ../src/guestfs.pod:1408
33508 msgid ""
33509 "There was an error from a failed system call, but for some reason the errno "
33510 "was not captured and returned.  This usually indicates a bug in libguestfs."
33511 msgstr ""
33512
33513 #. type: textblock
33514 #: ../src/guestfs.pod:1414
33515 msgid ""
33516 "Libguestfs tries to convert the errno from inside the applicance into a "
33517 "corresponding errno for the caller (not entirely trivial: the appliance "
33518 "might be running a completely different operating system from the library "
33519 "and error numbers are not standardized across Un*xen).  If this could not be "
33520 "done, then the error is translated to C<EINVAL>.  In practice this should "
33521 "only happen in very rare circumstances."
33522 msgstr ""
33523
33524 #. type: =head2
33525 #: ../src/guestfs.pod:1422
33526 msgid "guestfs_set_error_handler"
33527 msgstr ""
33528
33529 #. type: verbatim
33530 #: ../src/guestfs.pod:1424
33531 #, no-wrap
33532 msgid ""
33533 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
33534 "                                           void *opaque,\n"
33535 "                                           const char *msg);\n"
33536 " void guestfs_set_error_handler (guestfs_h *g,\n"
33537 "                                 guestfs_error_handler_cb cb,\n"
33538 "                                 void *opaque);\n"
33539 "\n"
33540 msgstr ""
33541
33542 #. type: textblock
33543 #: ../src/guestfs.pod:1431
33544 msgid ""
33545 "The callback C<cb> will be called if there is an error.  The parameters "
33546 "passed to the callback are an opaque data pointer and the error message "
33547 "string."
33548 msgstr ""
33549
33550 #. type: textblock
33551 #: ../src/guestfs.pod:1435
33552 msgid ""
33553 "C<errno> is not passed to the callback.  To get that the callback must call "
33554 "L</guestfs_last_errno>."
33555 msgstr ""
33556
33557 #. type: textblock
33558 #: ../src/guestfs.pod:1438
33559 msgid ""
33560 "Note that the message string C<msg> is freed as soon as the callback "
33561 "function returns, so if you want to stash it somewhere you must make your "
33562 "own copy."
33563 msgstr ""
33564
33565 #. type: textblock
33566 #: ../src/guestfs.pod:1442
33567 msgid "The default handler prints messages on C<stderr>."
33568 msgstr ""
33569
33570 #. type: textblock
33571 #: ../src/guestfs.pod:1444
33572 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
33573 msgstr ""
33574
33575 #. type: =head2
33576 #: ../src/guestfs.pod:1446
33577 msgid "guestfs_get_error_handler"
33578 msgstr ""
33579
33580 #. type: verbatim
33581 #: ../src/guestfs.pod:1448
33582 #, no-wrap
33583 msgid ""
33584 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
33585 "                                                     void **opaque_rtn);\n"
33586 "\n"
33587 msgstr ""
33588
33589 #. type: textblock
33590 #: ../src/guestfs.pod:1451
33591 msgid "Returns the current error handler callback."
33592 msgstr ""
33593
33594 #. type: =head2
33595 #: ../src/guestfs.pod:1453
33596 msgid "guestfs_set_out_of_memory_handler"
33597 msgstr ""
33598
33599 #. type: verbatim
33600 #: ../src/guestfs.pod:1455
33601 #, no-wrap
33602 msgid ""
33603 " typedef void (*guestfs_abort_cb) (void);\n"
33604 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
33605 "                                         guestfs_abort_cb);\n"
33606 "\n"
33607 msgstr ""
33608
33609 #. type: textblock
33610 #: ../src/guestfs.pod:1459
33611 msgid ""
33612 "The callback C<cb> will be called if there is an out of memory situation.  "
33613 "I<Note this callback must not return>."
33614 msgstr ""
33615
33616 #. type: textblock
33617 #: ../src/guestfs.pod:1462
33618 msgid "The default is to call L<abort(3)>."
33619 msgstr ""
33620
33621 #. type: textblock
33622 #: ../src/guestfs.pod:1464
33623 msgid ""
33624 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
33625 msgstr ""
33626
33627 #. type: =head2
33628 #: ../src/guestfs.pod:1467
33629 msgid "guestfs_get_out_of_memory_handler"
33630 msgstr ""
33631
33632 #. type: verbatim
33633 #: ../src/guestfs.pod:1469
33634 #, no-wrap
33635 msgid ""
33636 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
33637 "\n"
33638 msgstr ""
33639
33640 #. type: textblock
33641 #: ../src/guestfs.pod:1471
33642 msgid "This returns the current out of memory handler."
33643 msgstr ""
33644
33645 #. type: =head1
33646 #: ../src/guestfs.pod:1473
33647 msgid "API CALLS"
33648 msgstr ""
33649
33650 #. type: =head1
33651 #: ../src/guestfs.pod:1477
33652 msgid "STRUCTURES"
33653 msgstr ""
33654
33655 #. type: textblock
33656 #: ../src/guestfs.pod:1479
33657 msgid "@STRUCTS@"
33658 msgstr ""
33659
33660 #. type: =head1
33661 #: ../src/guestfs.pod:1481
33662 msgid "AVAILABILITY"
33663 msgstr ""
33664
33665 #. type: =head2
33666 #: ../src/guestfs.pod:1483
33667 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
33668 msgstr ""
33669
33670 #. type: textblock
33671 #: ../src/guestfs.pod:1485
33672 msgid ""
33673 "Using L</guestfs_available> you can test availability of the following "
33674 "groups of functions.  This test queries the appliance to see if the "
33675 "appliance you are currently using supports the functionality."
33676 msgstr ""
33677
33678 #. type: textblock
33679 #: ../src/guestfs.pod:1490
33680 msgid "@AVAILABILITY@"
33681 msgstr ""
33682
33683 #. type: =head2
33684 #: ../src/guestfs.pod:1492
33685 msgid "GUESTFISH supported COMMAND"
33686 msgstr ""
33687
33688 #. type: textblock
33689 #: ../src/guestfs.pod:1494
33690 msgid ""
33691 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
33692 "prints out the available groups and whether they are supported by this build "
33693 "of libguestfs.  Note however that you have to do C<run> first."
33694 msgstr ""
33695
33696 #. type: =head2
33697 #: ../src/guestfs.pod:1499
33698 msgid "SINGLE CALLS AT COMPILE TIME"
33699 msgstr ""
33700
33701 #. type: textblock
33702 #: ../src/guestfs.pod:1501
33703 msgid ""
33704 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
33705 "function, such as:"
33706 msgstr ""
33707
33708 #. type: verbatim
33709 #: ../src/guestfs.pod:1504
33710 #, no-wrap
33711 msgid ""
33712 " #define LIBGUESTFS_HAVE_DD 1\n"
33713 "\n"
33714 msgstr ""
33715
33716 #. type: textblock
33717 #: ../src/guestfs.pod:1506
33718 msgid "if L</guestfs_dd> is available."
33719 msgstr ""
33720
33721 #. type: textblock
33722 #: ../src/guestfs.pod:1508
33723 msgid ""
33724 "Before version 1.5.8, if you needed to test whether a single libguestfs "
33725 "function is available at compile time, we recommended using build tools such "
33726 "as autoconf or cmake.  For example in autotools you could use:"
33727 msgstr ""
33728
33729 #. type: verbatim
33730 #: ../src/guestfs.pod:1513
33731 #, no-wrap
33732 msgid ""
33733 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
33734 " AC_CHECK_FUNCS([guestfs_dd])\n"
33735 "\n"
33736 msgstr ""
33737
33738 #. type: textblock
33739 #: ../src/guestfs.pod:1516
33740 msgid ""
33741 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
33742 "in your program."
33743 msgstr ""
33744
33745 #. type: =head2
33746 #: ../src/guestfs.pod:1519
33747 msgid "SINGLE CALLS AT RUN TIME"
33748 msgstr ""
33749
33750 #. type: textblock
33751 #: ../src/guestfs.pod:1521
33752 msgid ""
33753 "Testing at compile time doesn't guarantee that a function really exists in "
33754 "the library.  The reason is that you might be dynamically linked against a "
33755 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
33756 "This situation unfortunately results in a segmentation fault, which is a "
33757 "shortcoming of the C dynamic linking system itself."
33758 msgstr ""
33759
33760 #. type: textblock
33761 #: ../src/guestfs.pod:1528
33762 msgid ""
33763 "You can use L<dlopen(3)> to test if a function is available at run time, as "
33764 "in this example program (note that you still need the compile time check as "
33765 "well):"
33766 msgstr ""
33767
33768 #. type: verbatim
33769 #: ../src/guestfs.pod:1532
33770 #, no-wrap
33771 msgid ""
33772 " #include <stdio.h>\n"
33773 " #include <stdlib.h>\n"
33774 " #include <unistd.h>\n"
33775 " #include <dlfcn.h>\n"
33776 " #include <guestfs.h>\n"
33777 " \n"
33778 msgstr ""
33779
33780 #. type: verbatim
33781 #: ../src/guestfs.pod:1538
33782 #, no-wrap
33783 msgid ""
33784 " main ()\n"
33785 " {\n"
33786 " #ifdef LIBGUESTFS_HAVE_DD\n"
33787 "   void *dl;\n"
33788 "   int has_function;\n"
33789 " \n"
33790 msgstr ""
33791
33792 #. type: verbatim
33793 #: ../src/guestfs.pod:1544
33794 #, no-wrap
33795 msgid ""
33796 "   /* Test if the function guestfs_dd is really available. */\n"
33797 "   dl = dlopen (NULL, RTLD_LAZY);\n"
33798 "   if (!dl) {\n"
33799 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
33800 "     exit (EXIT_FAILURE);\n"
33801 "   }\n"
33802 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
33803 "   dlclose (dl);\n"
33804 " \n"
33805 msgstr ""
33806
33807 #. type: verbatim
33808 #: ../src/guestfs.pod:1553
33809 #, no-wrap
33810 msgid ""
33811 "   if (!has_function)\n"
33812 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
33813 "   else {\n"
33814 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
33815 "     /* Now it's safe to call\n"
33816 "     guestfs_dd (g, \"foo\", \"bar\");\n"
33817 "     */\n"
33818 "   }\n"
33819 " #else\n"
33820 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
33821 " #endif\n"
33822 "  }\n"
33823 "\n"
33824 msgstr ""
33825
33826 #. type: textblock
33827 #: ../src/guestfs.pod:1566
33828 msgid ""
33829 "You may think the above is an awful lot of hassle, and it is.  There are "
33830 "other ways outside of the C linking system to ensure that this kind of "
33831 "incompatibility never arises, such as using package versioning:"
33832 msgstr ""
33833
33834 #. type: verbatim
33835 #: ../src/guestfs.pod:1571
33836 #, no-wrap
33837 msgid ""
33838 " Requires: libguestfs >= 1.0.80\n"
33839 "\n"
33840 msgstr ""
33841
33842 #. type: =head1
33843 #: ../src/guestfs.pod:1573
33844 msgid "CALLS WITH OPTIONAL ARGUMENTS"
33845 msgstr ""
33846
33847 #. type: textblock
33848 #: ../src/guestfs.pod:1575
33849 msgid ""
33850 "A recent feature of the API is the introduction of calls which take optional "
33851 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
33852 "takes variable arguments (ie. C<...>), as in this example:"
33853 msgstr ""
33854
33855 #. type: verbatim
33856 #: ../src/guestfs.pod:1580
33857 #, no-wrap
33858 msgid ""
33859 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
33860 "\n"
33861 msgstr ""
33862
33863 #. type: textblock
33864 #: ../src/guestfs.pod:1582
33865 msgid ""
33866 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
33867 "call with no optional arguments specified:"
33868 msgstr ""
33869
33870 #. type: verbatim
33871 #: ../src/guestfs.pod:1585
33872 #, no-wrap
33873 msgid ""
33874 " guestfs_add_drive_opts (g, filename, -1);\n"
33875 "\n"
33876 msgstr ""
33877
33878 #. type: textblock
33879 #: ../src/guestfs.pod:1587
33880 msgid "With a single optional argument:"
33881 msgstr ""
33882
33883 #. type: verbatim
33884 #: ../src/guestfs.pod:1589
33885 #, no-wrap
33886 msgid ""
33887 " guestfs_add_drive_opts (g, filename,\n"
33888 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33889 "                         -1);\n"
33890 "\n"
33891 msgstr ""
33892
33893 #. type: textblock
33894 #: ../src/guestfs.pod:1593
33895 msgid "With two:"
33896 msgstr ""
33897
33898 #. type: verbatim
33899 #: ../src/guestfs.pod:1595
33900 #, no-wrap
33901 msgid ""
33902 " guestfs_add_drive_opts (g, filename,\n"
33903 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33904 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33905 "                         -1);\n"
33906 "\n"
33907 msgstr ""
33908
33909 #. type: textblock
33910 #: ../src/guestfs.pod:1600
33911 msgid ""
33912 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
33913 "happen!"
33914 msgstr ""
33915
33916 #. type: =head2
33917 #: ../src/guestfs.pod:1603
33918 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
33919 msgstr ""
33920
33921 #. type: textblock
33922 #: ../src/guestfs.pod:1605
33923 msgid ""
33924 "The second variant has the same name with the suffix C<_va>, which works the "
33925 "same way but takes a C<va_list>.  See the C manual for details.  For the "
33926 "example function, this is declared:"
33927 msgstr ""
33928
33929 #. type: verbatim
33930 #: ../src/guestfs.pod:1609
33931 #, no-wrap
33932 msgid ""
33933 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
33934 "                                va_list args);\n"
33935 "\n"
33936 msgstr ""
33937
33938 #. type: =head2
33939 #: ../src/guestfs.pod:1612
33940 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
33941 msgstr ""
33942
33943 #. type: textblock
33944 #: ../src/guestfs.pod:1614
33945 msgid ""
33946 "The third variant is useful where you need to construct these calls.  You "
33947 "pass in a structure where you fill in the optional fields.  The structure "
33948 "has a bitmask as the first element which you must set to indicate which "
33949 "fields you have filled in.  For our example function the structure and call "
33950 "are declared:"
33951 msgstr ""
33952
33953 #. type: verbatim
33954 #: ../src/guestfs.pod:1620
33955 #, no-wrap
33956 msgid ""
33957 " struct guestfs_add_drive_opts_argv {\n"
33958 "   uint64_t bitmask;\n"
33959 "   int readonly;\n"
33960 "   const char *format;\n"
33961 "   /* ... */\n"
33962 " };\n"
33963 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
33964 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
33965 "\n"
33966 msgstr ""
33967
33968 #. type: textblock
33969 #: ../src/guestfs.pod:1629
33970 msgid "You could call it like this:"
33971 msgstr ""
33972
33973 #. type: verbatim
33974 #: ../src/guestfs.pod:1631
33975 #, no-wrap
33976 msgid ""
33977 " struct guestfs_add_drive_opts_argv optargs = {\n"
33978 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
33979 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
33980 "   .readonly = 1,\n"
33981 "   .format = \"qcow2\"\n"
33982 " };\n"
33983 " \n"
33984 msgstr ""
33985
33986 #. type: verbatim
33987 #: ../src/guestfs.pod:1638
33988 #, no-wrap
33989 msgid ""
33990 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
33991 "\n"
33992 msgstr ""
33993
33994 #. type: textblock
33995 #: ../src/guestfs.pod:1646
33996 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
33997 msgstr ""
33998
33999 #. type: textblock
34000 #: ../src/guestfs.pod:1651
34001 msgid "You do not need to fill in all fields of the structure."
34002 msgstr ""
34003
34004 #. type: textblock
34005 #: ../src/guestfs.pod:1655
34006 msgid ""
34007 "There must be a one-to-one correspondence between fields of the structure "
34008 "that are filled in, and bits set in the bitmask."
34009 msgstr ""
34010
34011 #. type: =head2
34012 #: ../src/guestfs.pod:1660
34013 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
34014 msgstr ""
34015
34016 #. type: textblock
34017 #: ../src/guestfs.pod:1662
34018 msgid ""
34019 "In other languages, optional arguments are expressed in the way that is "
34020 "natural for that language.  We refer you to the language-specific "
34021 "documentation for more details on that."
34022 msgstr ""
34023
34024 #. type: textblock
34025 #: ../src/guestfs.pod:1666
34026 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
34027 msgstr ""
34028
34029 #. type: =head2
34030 #: ../src/guestfs.pod:1668
34031 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
34032 msgstr ""
34033
34034 #. type: textblock
34035 #: ../src/guestfs.pod:1670
34036 msgid ""
34037 "B<Note:> This section documents the generic event mechanism introduced in "
34038 "libguestfs 1.10, which you should use in new code if possible.  The old "
34039 "functions C<guestfs_set_log_message_callback>, "
34040 "C<guestfs_set_subprocess_quit_callback>, "
34041 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
34042 "C<guestfs_set_progress_callback> are no longer documented in this manual "
34043 "page.  Because of the ABI guarantee, the old functions continue to work."
34044 msgstr ""
34045
34046 #. type: textblock
34047 #: ../src/guestfs.pod:1679
34048 msgid ""
34049 "Handles generate events when certain things happen, such as log messages "
34050 "being generated, progress messages during long-running operations, or the "
34051 "handle being closed.  The API calls described below let you register a "
34052 "callback to be called when events happen.  You can register multiple "
34053 "callbacks (for the same, different or overlapping sets of events), and "
34054 "individually remove callbacks.  If callbacks are not removed, then they "
34055 "remain in force until the handle is closed."
34056 msgstr ""
34057
34058 #. type: textblock
34059 #: ../src/guestfs.pod:1687
34060 msgid ""
34061 "In the current implementation, events are only generated synchronously: that "
34062 "means that events (and hence callbacks) can only happen while you are in the "
34063 "middle of making another libguestfs call.  The callback is called in the "
34064 "same thread."
34065 msgstr ""
34066
34067 #. type: textblock
34068 #: ../src/guestfs.pod:1692
34069 msgid ""
34070 "Events may contain a payload, usually nothing (void), an array of 64 bit "
34071 "unsigned integers, or a message buffer.  Payloads are discussed later on."
34072 msgstr ""
34073
34074 #. type: =head3
34075 #: ../src/guestfs.pod:1696
34076 msgid "CLASSES OF EVENTS"
34077 msgstr ""
34078
34079 #. type: =item
34080 #: ../src/guestfs.pod:1700
34081 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
34082 msgstr ""
34083
34084 #. type: textblock
34085 #: ../src/guestfs.pod:1703
34086 msgid ""
34087 "The callback function will be called while the handle is being closed "
34088 "(synchronously from L</guestfs_close>)."
34089 msgstr ""
34090
34091 #. type: textblock
34092 #: ../src/guestfs.pod:1706
34093 msgid ""
34094 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
34095 "handles that are open when the program exits.  This means that this callback "
34096 "might be called indirectly from L<exit(3)>, which can cause unexpected "
34097 "problems in higher-level languages (eg. if your HLL interpreter has already "
34098 "been cleaned up by the time this is called, and if your callback then jumps "
34099 "into some HLL function)."
34100 msgstr ""
34101
34102 #. type: textblock
34103 #: ../src/guestfs.pod:1713
34104 msgid ""
34105 "If no callback is registered: the handle is closed without any callback "
34106 "being invoked."
34107 msgstr ""
34108
34109 #. type: =item
34110 #: ../src/guestfs.pod:1716
34111 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
34112 msgstr ""
34113
34114 #. type: textblock
34115 #: ../src/guestfs.pod:1719
34116 msgid ""
34117 "The callback function will be called when the child process quits, either "
34118 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
34119 "corresponds to a transition from any state to the CONFIG state)."
34120 msgstr ""
34121
34122 #. type: textblock
34123 #: ../src/guestfs.pod:1723 ../src/guestfs.pod:1732
34124 msgid "If no callback is registered: the event is ignored."
34125 msgstr ""
34126
34127 #. type: =item
34128 #: ../src/guestfs.pod:1725
34129 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
34130 msgstr ""
34131
34132 #. type: textblock
34133 #: ../src/guestfs.pod:1728
34134 msgid ""
34135 "The callback function will be called when the child process becomes ready "
34136 "first time after it has been launched.  (This corresponds to a transition "
34137 "from LAUNCHING to the READY state)."
34138 msgstr ""
34139
34140 #. type: =item
34141 #: ../src/guestfs.pod:1734
34142 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
34143 msgstr ""
34144
34145 #. type: textblock
34146 #: ../src/guestfs.pod:1737
34147 msgid ""
34148 "Some long-running operations can generate progress messages.  If this "
34149 "callback is registered, then it will be called each time a progress message "
34150 "is generated (usually two seconds after the operation started, and three "
34151 "times per second thereafter until it completes, although the frequency may "
34152 "change in future versions)."
34153 msgstr ""
34154
34155 #. type: textblock
34156 #: ../src/guestfs.pod:1743
34157 msgid ""
34158 "The callback receives in the payload four unsigned 64 bit numbers which are "
34159 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
34160 msgstr ""
34161
34162 #. type: textblock
34163 #: ../src/guestfs.pod:1746
34164 msgid ""
34165 "The units of C<total> are not defined, although for some operations C<total> "
34166 "may relate in some way to the amount of data to be transferred (eg. in bytes "
34167 "or megabytes), and C<position> may be the portion which has been transferred."
34168 msgstr ""
34169
34170 #. type: textblock
34171 #: ../src/guestfs.pod:1751
34172 msgid "The only defined and stable parts of the API are:"
34173 msgstr ""
34174
34175 #. type: textblock
34176 #: ../src/guestfs.pod:1757
34177 msgid ""
34178 "The callback can display to the user some type of progress bar or indicator "
34179 "which shows the ratio of C<position>:C<total>."
34180 msgstr ""
34181
34182 #. type: textblock
34183 #: ../src/guestfs.pod:1762
34184 msgid "0 E<lt>= C<position> E<lt>= C<total>"
34185 msgstr ""
34186
34187 #. type: textblock
34188 #: ../src/guestfs.pod:1766
34189 msgid ""
34190 "If any progress notification is sent during a call, then a final progress "
34191 "notification is always sent when C<position> = C<total> (I<unless> the call "
34192 "fails with an error)."
34193 msgstr ""
34194
34195 #. type: textblock
34196 #: ../src/guestfs.pod:1770
34197 msgid ""
34198 "This is to simplify caller code, so callers can easily set the progress "
34199 "indicator to \"100%\" at the end of the operation, without requiring special "
34200 "code to detect this case."
34201 msgstr ""
34202
34203 #. type: textblock
34204 #: ../src/guestfs.pod:1776
34205 msgid ""
34206 "For some calls we are unable to estimate the progress of the call, but we "
34207 "can still generate progress messages to indicate activity.  This is known as "
34208 "\"pulse mode\", and is directly supported by certain progress bar "
34209 "implementations (eg. GtkProgressBar)."
34210 msgstr ""
34211
34212 #. type: textblock
34213 #: ../src/guestfs.pod:1781
34214 msgid ""
34215 "For these calls, zero or more progress messages are generated with "
34216 "C<position = 0> and C<total = 1>, followed by a final message with "
34217 "C<position = total = 1>."
34218 msgstr ""
34219
34220 #. type: textblock
34221 #: ../src/guestfs.pod:1785
34222 msgid ""
34223 "As noted above, if the call fails with an error then the final message may "
34224 "not be generated."
34225 msgstr ""
34226
34227 #. type: textblock
34228 #: ../src/guestfs.pod:1790
34229 msgid ""
34230 "The callback also receives the procedure number (C<proc_nr>) and serial "
34231 "number (C<serial>) of the call.  These are only useful for debugging "
34232 "protocol issues, and the callback can normally ignore them.  The callback "
34233 "may want to print these numbers in error messages or debugging messages."
34234 msgstr ""
34235
34236 #. type: textblock
34237 #: ../src/guestfs.pod:1796
34238 msgid "If no callback is registered: progress messages are discarded."
34239 msgstr ""
34240
34241 #. type: =item
34242 #: ../src/guestfs.pod:1798
34243 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
34244 msgstr ""
34245
34246 #. type: textblock
34247 #: ../src/guestfs.pod:1801
34248 msgid ""
34249 "The callback function is called whenever a log message is generated by qemu, "
34250 "the appliance kernel, guestfsd (daemon), or utility programs."
34251 msgstr ""
34252
34253 #. type: textblock
34254 #: ../src/guestfs.pod:1804
34255 msgid ""
34256 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
34257 "guestfs_launch>) then additional debug messages are generated."
34258 msgstr ""
34259
34260 #. type: textblock
34261 #: ../src/guestfs.pod:1807 ../src/guestfs.pod:1821
34262 msgid ""
34263 "If no callback is registered: the messages are discarded unless the verbose "
34264 "flag is set in which case they are sent to stderr.  You can override the "
34265 "printing of verbose messages to stderr by setting up a callback."
34266 msgstr ""
34267
34268 #. type: =item
34269 #: ../src/guestfs.pod:1812
34270 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
34271 msgstr ""
34272
34273 #. type: textblock
34274 #: ../src/guestfs.pod:1815
34275 msgid ""
34276 "The callback function is called whenever a log message is generated by the "
34277 "library part of libguestfs."
34278 msgstr ""
34279
34280 #. type: textblock
34281 #: ../src/guestfs.pod:1818
34282 msgid ""
34283 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
34284 "messages are generated."
34285 msgstr ""
34286
34287 #. type: =item
34288 #: ../src/guestfs.pod:1826
34289 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
34290 msgstr ""
34291
34292 #. type: textblock
34293 #: ../src/guestfs.pod:1829
34294 msgid ""
34295 "The callback function is called whenever a trace message is generated.  This "
34296 "only applies if the trace flag (L</guestfs_set_trace>) is set."
34297 msgstr ""
34298
34299 #. type: textblock
34300 #: ../src/guestfs.pod:1832
34301 msgid ""
34302 "If no callback is registered: the messages are sent to stderr.  You can "
34303 "override the printing of trace messages to stderr by setting up a callback."
34304 msgstr ""
34305
34306 #. type: =head3
34307 #: ../src/guestfs.pod:1838
34308 msgid "guestfs_set_event_callback"
34309 msgstr ""
34310
34311 #. type: verbatim
34312 #: ../src/guestfs.pod:1840
34313 #, no-wrap
34314 msgid ""
34315 " int guestfs_set_event_callback (guestfs_h *g,\n"
34316 "                                 guestfs_event_callback cb,\n"
34317 "                                 uint64_t event_bitmask,\n"
34318 "                                 int flags,\n"
34319 "                                 void *opaque);\n"
34320 "\n"
34321 msgstr ""
34322
34323 #. type: textblock
34324 #: ../src/guestfs.pod:1846
34325 msgid ""
34326 "This function registers a callback (C<cb>) for all event classes in the "
34327 "C<event_bitmask>."
34328 msgstr ""
34329
34330 #. type: textblock
34331 #: ../src/guestfs.pod:1849
34332 msgid ""
34333 "For example, to register for all log message events, you could call this "
34334 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
34335 "To register a single callback for all possible classes of events, use "
34336 "C<GUESTFS_EVENT_ALL>."
34337 msgstr ""
34338
34339 #. type: textblock
34340 #: ../src/guestfs.pod:1855
34341 msgid "C<flags> should always be passed as 0."
34342 msgstr ""
34343
34344 #. type: textblock
34345 #: ../src/guestfs.pod:1857
34346 msgid ""
34347 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
34348 "it for any purpose."
34349 msgstr ""
34350
34351 #. type: textblock
34352 #: ../src/guestfs.pod:1860
34353 msgid ""
34354 "The return value is the event handle (an integer) which you can use to "
34355 "delete the callback (see below)."
34356 msgstr ""
34357
34358 #. type: textblock
34359 #: ../src/guestfs.pod:1863
34360 msgid ""
34361 "If there is an error, this function returns C<-1>, and sets the error in the "
34362 "handle in the usual way (see L</guestfs_last_error> etc.)"
34363 msgstr ""
34364
34365 #. type: textblock
34366 #: ../src/guestfs.pod:1866
34367 msgid ""
34368 "Callbacks remain in effect until they are deleted, or until the handle is "
34369 "closed."
34370 msgstr ""
34371
34372 #. type: textblock
34373 #: ../src/guestfs.pod:1869
34374 msgid ""
34375 "In the case where multiple callbacks are registered for a particular event "
34376 "class, all of the callbacks are called.  The order in which multiple "
34377 "callbacks are called is not defined."
34378 msgstr ""
34379
34380 #. type: =head3
34381 #: ../src/guestfs.pod:1873
34382 msgid "guestfs_delete_event_callback"
34383 msgstr ""
34384
34385 #. type: verbatim
34386 #: ../src/guestfs.pod:1875
34387 #, no-wrap
34388 msgid ""
34389 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
34390 "\n"
34391 msgstr ""
34392
34393 #. type: textblock
34394 #: ../src/guestfs.pod:1877
34395 msgid ""
34396 "Delete a callback that was previously registered.  C<event_handle> should be "
34397 "the integer that was returned by a previous call to "
34398 "C<guestfs_set_event_callback> on the same handle."
34399 msgstr ""
34400
34401 #. type: =head3
34402 #: ../src/guestfs.pod:1881
34403 msgid "guestfs_event_callback"
34404 msgstr ""
34405
34406 #. type: verbatim
34407 #: ../src/guestfs.pod:1883
34408 #, no-wrap
34409 msgid ""
34410 " typedef void (*guestfs_event_callback) (\n"
34411 "                  guestfs_h *g,\n"
34412 "                  void *opaque,\n"
34413 "                  uint64_t event,\n"
34414 "                  int event_handle,\n"
34415 "                  int flags,\n"
34416 "                  const char *buf, size_t buf_len,\n"
34417 "                  const uint64_t *array, size_t array_len);\n"
34418 "\n"
34419 msgstr ""
34420
34421 #. type: textblock
34422 #: ../src/guestfs.pod:1892
34423 msgid ""
34424 "This is the type of the event callback function that you have to provide."
34425 msgstr ""
34426
34427 #. type: textblock
34428 #: ../src/guestfs.pod:1895
34429 msgid ""
34430 "The basic parameters are: the handle (C<g>), the opaque user pointer "
34431 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
34432 "handle, and C<flags> which in the current API you should ignore."
34433 msgstr ""
34434
34435 #. type: textblock
34436 #: ../src/guestfs.pod:1899
34437 msgid ""
34438 "The remaining parameters contain the event payload (if any).  Each event may "
34439 "contain a payload, which usually relates to the event class, but for future "
34440 "proofing your code should be written to handle any payload for any event "
34441 "class."
34442 msgstr ""
34443
34444 #. type: textblock
34445 #: ../src/guestfs.pod:1904
34446 msgid ""
34447 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
34448 "there is no message buffer).  Note that this message buffer can contain "
34449 "arbitrary 8 bit data, including NUL bytes."
34450 msgstr ""
34451
34452 #. type: textblock
34453 #: ../src/guestfs.pod:1908
34454 msgid ""
34455 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
34456 "moment this is only used for progress messages."
34457 msgstr ""
34458
34459 #. type: =head3
34460 #: ../src/guestfs.pod:1911
34461 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
34462 msgstr ""
34463
34464 #. type: textblock
34465 #: ../src/guestfs.pod:1913
34466 msgid ""
34467 "One motivation for the generic event API was to allow GUI programs to "
34468 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
34469 "unconditionally to C<stderr>."
34470 msgstr ""
34471
34472 #. type: textblock
34473 #: ../src/guestfs.pod:1917
34474 msgid ""
34475 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
34476 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
34477 "messages are not events; you must capture error messages separately)."
34478 msgstr ""
34479
34480 #. type: textblock
34481 #: ../src/guestfs.pod:1922
34482 msgid ""
34483 "Programs have to set up a callback to capture the classes of events of "
34484 "interest:"
34485 msgstr ""
34486
34487 #. type: verbatim
34488 #: ../src/guestfs.pod:1925
34489 #, no-wrap
34490 msgid ""
34491 " int eh =\n"
34492 "   guestfs_set_event_callback\n"
34493 "     (g, message_callback,\n"
34494 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
34495 "      GUESTFS_EVENT_TRACE,\n"
34496 "      0, NULL) == -1)\n"
34497 " if (eh == -1) {\n"
34498 "   // handle error in the usual way\n"
34499 " }\n"
34500 "\n"
34501 msgstr ""
34502
34503 #. type: textblock
34504 #: ../src/guestfs.pod:1935
34505 msgid ""
34506 "The callback can then direct messages to the appropriate place.  In this "
34507 "example, messages are directed to syslog:"
34508 msgstr ""
34509
34510 #. type: verbatim
34511 #: ../src/guestfs.pod:1938
34512 #, no-wrap
34513 msgid ""
34514 " static void\n"
34515 " message_callback (\n"
34516 "         guestfs_h *g,\n"
34517 "         void *opaque,\n"
34518 "         uint64_t event,\n"
34519 "         int event_handle,\n"
34520 "         int flags,\n"
34521 "         const char *buf, size_t buf_len,\n"
34522 "         const uint64_t *array, size_t array_len)\n"
34523 " {\n"
34524 "   const int priority = LOG_USER|LOG_INFO;\n"
34525 "   if (buf_len > 0)\n"
34526 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
34527 " }\n"
34528 "\n"
34529 msgstr ""
34530
34531 #. type: =head1
34532 #: ../src/guestfs.pod:1953
34533 msgid "CANCELLING LONG TRANSFERS"
34534 msgstr ""
34535
34536 #. type: textblock
34537 #: ../src/guestfs.pod:1955
34538 msgid ""
34539 "Some operations can be cancelled by the caller while they are in progress.  "
34540 "Currently only operations that involve uploading or downloading data can be "
34541 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
34542 "parameters in the generator)."
34543 msgstr ""
34544
34545 #. type: =head2
34546 #: ../src/guestfs.pod:1960
34547 msgid "guestfs_user_cancel"
34548 msgstr ""
34549
34550 #. type: verbatim
34551 #: ../src/guestfs.pod:1962
34552 #, no-wrap
34553 msgid ""
34554 " void guestfs_user_cancel (guestfs_h *g);\n"
34555 "\n"
34556 msgstr ""
34557
34558 #. type: textblock
34559 #: ../src/guestfs.pod:1964
34560 msgid ""
34561 "C<guestfs_user_cancel> cancels the current upload or download operation."
34562 msgstr ""
34563
34564 #. type: textblock
34565 #: ../src/guestfs.pod:1967
34566 msgid ""
34567 "Unlike most other libguestfs calls, this function is signal safe and thread "
34568 "safe.  You can call it from a signal handler or from another thread, without "
34569 "needing to do any locking."
34570 msgstr ""
34571
34572 #. type: textblock
34573 #: ../src/guestfs.pod:1971
34574 msgid ""
34575 "The transfer that was in progress (if there is one) will stop shortly "
34576 "afterwards, and will return an error.  The errno (see L</"
34577 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
34578 "out if the operation was cancelled or failed because of another error."
34579 msgstr ""
34580
34581 #. type: textblock
34582 #: ../src/guestfs.pod:1977
34583 msgid ""
34584 "No cleanup is performed: for example, if a file was being uploaded then "
34585 "after cancellation there may be a partially uploaded file.  It is the "
34586 "caller's responsibility to clean up if necessary."
34587 msgstr ""
34588
34589 #. type: textblock
34590 #: ../src/guestfs.pod:1981
34591 msgid "There are two common places that you might call C<guestfs_user_cancel>."
34592 msgstr ""
34593
34594 #. type: textblock
34595 #: ../src/guestfs.pod:1983
34596 msgid ""
34597 "In an interactive text-based program, you might call it from a C<SIGINT> "
34598 "signal handler so that pressing C<^C> cancels the current operation.  (You "
34599 "also need to call L</guestfs_set_pgroup> so that child processes don't "
34600 "receive the C<^C> signal)."
34601 msgstr ""
34602
34603 #. type: textblock
34604 #: ../src/guestfs.pod:1988
34605 msgid ""
34606 "In a graphical program, when the main thread is displaying a progress bar "
34607 "with a cancel button, wire up the cancel button to call this function."
34608 msgstr ""
34609
34610 #. type: =head1
34611 #: ../src/guestfs.pod:1992
34612 msgid "PRIVATE DATA AREA"
34613 msgstr ""
34614
34615 #. type: textblock
34616 #: ../src/guestfs.pod:1994
34617 msgid ""
34618 "You can attach named pieces of private data to the libguestfs handle, fetch "
34619 "them by name, and walk over them, for the lifetime of the handle.  This is "
34620 "called the private data area and is only available from the C API."
34621 msgstr ""
34622
34623 #. type: textblock
34624 #: ../src/guestfs.pod:1999
34625 msgid "To attach a named piece of data, use the following call:"
34626 msgstr ""
34627
34628 #. type: verbatim
34629 #: ../src/guestfs.pod:2001
34630 #, no-wrap
34631 msgid ""
34632 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
34633 "\n"
34634 msgstr ""
34635
34636 #. type: textblock
34637 #: ../src/guestfs.pod:2003
34638 msgid ""
34639 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
34640 "pointer (which can be C<NULL>).  Any previous item with the same key is "
34641 "overwritten."
34642 msgstr ""
34643
34644 #. type: textblock
34645 #: ../src/guestfs.pod:2007
34646 msgid ""
34647 "You can use any C<key> you want, but your key should I<not> start with an "
34648 "underscore character.  Keys beginning with an underscore character are "
34649 "reserved for internal libguestfs purposes (eg. for implementing language "
34650 "bindings).  It is recommended that you prefix the key with some unique "
34651 "string to avoid collisions with other users."
34652 msgstr ""
34653
34654 #. type: textblock
34655 #: ../src/guestfs.pod:2013
34656 msgid "To retrieve the pointer, use:"
34657 msgstr ""
34658
34659 #. type: verbatim
34660 #: ../src/guestfs.pod:2015
34661 #, no-wrap
34662 msgid ""
34663 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
34664 "\n"
34665 msgstr ""
34666
34667 #. type: textblock
34668 #: ../src/guestfs.pod:2017
34669 msgid ""
34670 "This function returns C<NULL> if either no data is found associated with "
34671 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
34672 "C<NULL>."
34673 msgstr ""
34674
34675 #. type: textblock
34676 #: ../src/guestfs.pod:2021
34677 msgid ""
34678 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
34679 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
34680 "all.  In particular, libguestfs does I<not> try to free the data when the "
34681 "handle is closed.  If the data must be freed, then the caller must either "
34682 "free it before calling L</guestfs_close> or must set up a close callback to "
34683 "do it (see L</GUESTFS_EVENT_CLOSE>)."
34684 msgstr ""
34685
34686 #. type: textblock
34687 #: ../src/guestfs.pod:2028
34688 msgid "To walk over all entries, use these two functions:"
34689 msgstr ""
34690
34691 #. type: verbatim
34692 #: ../src/guestfs.pod:2030
34693 #, no-wrap
34694 msgid ""
34695 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
34696 "\n"
34697 msgstr ""
34698
34699 #. type: verbatim
34700 #: ../src/guestfs.pod:2032
34701 #, no-wrap
34702 msgid ""
34703 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
34704 "\n"
34705 msgstr ""
34706
34707 #. type: textblock
34708 #: ../src/guestfs.pod:2034
34709 msgid ""
34710 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
34711 "not have any particular meaning -- keys are not returned in any defined "
34712 "order).  A pointer to the key is returned in C<*key_rtn> and the "
34713 "corresponding data pointer is returned from the function.  C<NULL> is "
34714 "returned if there are no keys stored in the handle."
34715 msgstr ""
34716
34717 #. type: textblock
34718 #: ../src/guestfs.pod:2040
34719 msgid ""
34720 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
34721 "value of this function is also C<NULL> is there are no further entries to "
34722 "return."
34723 msgstr ""
34724
34725 #. type: textblock
34726 #: ../src/guestfs.pod:2044
34727 msgid "Notes about walking over entries:"
34728 msgstr ""
34729
34730 #. type: textblock
34731 #: ../src/guestfs.pod:2050
34732 msgid ""
34733 "You must not call C<guestfs_set_private> while walking over the entries."
34734 msgstr ""
34735
34736 #. type: textblock
34737 #: ../src/guestfs.pod:2055
34738 msgid ""
34739 "The handle maintains an internal iterator which is reset when you call "
34740 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
34741 "call C<guestfs_set_private>."
34742 msgstr ""
34743
34744 #. type: textblock
34745 #: ../src/guestfs.pod:2061
34746 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
34747 msgstr ""
34748
34749 #. type: verbatim
34750 #: ../src/guestfs.pod:2063
34751 #, no-wrap
34752 msgid ""
34753 " guestfs_set_private (g, key, NULL);\n"
34754 "\n"
34755 msgstr ""
34756
34757 #. type: textblock
34758 #: ../src/guestfs.pod:2065
34759 msgid "then that C<key> is not returned when walking."
34760 msgstr ""
34761
34762 #. type: textblock
34763 #: ../src/guestfs.pod:2069
34764 msgid ""
34765 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
34766 "C<guestfs_next_private> or C<guestfs_set_private>."
34767 msgstr ""
34768
34769 #. type: textblock
34770 #: ../src/guestfs.pod:2075
34771 msgid ""
34772 "The following example code shows how to print all keys and data pointers "
34773 "that are associated with the handle C<g>:"
34774 msgstr ""
34775
34776 #. type: verbatim
34777 #: ../src/guestfs.pod:2078
34778 #, no-wrap
34779 msgid ""
34780 " const char *key;\n"
34781 " void *data = guestfs_first_private (g, &key);\n"
34782 " while (data != NULL)\n"
34783 "   {\n"
34784 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
34785 "     data = guestfs_next_private (g, &key);\n"
34786 "   }\n"
34787 "\n"
34788 msgstr ""
34789
34790 #. type: textblock
34791 #: ../src/guestfs.pod:2086
34792 msgid ""
34793 "More commonly you are only interested in keys that begin with an application-"
34794 "specific prefix C<foo_>.  Modify the loop like so:"
34795 msgstr ""
34796
34797 #. type: verbatim
34798 #: ../src/guestfs.pod:2089
34799 #, no-wrap
34800 msgid ""
34801 " const char *key;\n"
34802 " void *data = guestfs_first_private (g, &key);\n"
34803 " while (data != NULL)\n"
34804 "   {\n"
34805 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34806 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
34807 "     data = guestfs_next_private (g, &key);\n"
34808 "   }\n"
34809 "\n"
34810 msgstr ""
34811
34812 #. type: textblock
34813 #: ../src/guestfs.pod:2098
34814 msgid ""
34815 "If you need to modify keys while walking, then you have to jump back to the "
34816 "beginning of the loop.  For example, to delete all keys prefixed with "
34817 "C<foo_>:"
34818 msgstr ""
34819
34820 #. type: verbatim
34821 #: ../src/guestfs.pod:2102
34822 #, no-wrap
34823 msgid ""
34824 "  const char *key;\n"
34825 "  void *data;\n"
34826 " again:\n"
34827 "  data = guestfs_first_private (g, &key);\n"
34828 "  while (data != NULL)\n"
34829 "    {\n"
34830 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34831 "        {\n"
34832 "          guestfs_set_private (g, key, NULL);\n"
34833 "          /* note that 'key' pointer is now invalid, and so is\n"
34834 "             the internal iterator */\n"
34835 "          goto again;\n"
34836 "        }\n"
34837 "      data = guestfs_next_private (g, &key);\n"
34838 "    }\n"
34839 "\n"
34840 msgstr ""
34841
34842 #. type: textblock
34843 #: ../src/guestfs.pod:2118
34844 msgid ""
34845 "Note that the above loop is guaranteed to terminate because the keys are "
34846 "being deleted, but other manipulations of keys within the loop might not "
34847 "terminate unless you also maintain an indication of which keys have been "
34848 "visited."
34849 msgstr ""
34850
34851 #. type: =end
34852 #: ../src/guestfs.pod:2123 ../src/guestfs.pod:2128
34853 msgid "html"
34854 msgstr ""
34855
34856 #. type: textblock
34857 #: ../src/guestfs.pod:2125
34858 msgid ""
34859 "<!-- old anchor for the next section --> <a name="
34860 "\"state_machine_and_low_level_event_api\"/>"
34861 msgstr ""
34862
34863 #. type: =head1
34864 #: ../src/guestfs.pod:2130
34865 msgid "ARCHITECTURE"
34866 msgstr ""
34867
34868 #. type: textblock
34869 #: ../src/guestfs.pod:2132
34870 msgid ""
34871 "Internally, libguestfs is implemented by running an appliance (a special "
34872 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
34873 "process of the main program."
34874 msgstr ""
34875
34876 #. type: verbatim
34877 #: ../src/guestfs.pod:2136
34878 #, no-wrap
34879 msgid ""
34880 "  ___________________\n"
34881 " /                   \\\n"
34882 " | main program      |\n"
34883 " |                   |\n"
34884 " |                   |           child process / appliance\n"
34885 " |                   |           __________________________\n"
34886 " |                   |          / qemu                     \\\n"
34887 " +-------------------+   RPC    |      +-----------------+ |\n"
34888 " | libguestfs     <--------------------> guestfsd        | |\n"
34889 " |                   |          |      +-----------------+ |\n"
34890 " \\___________________/          |      | Linux kernel    | |\n"
34891 "                                |      +--^--------------+ |\n"
34892 "                                \\_________|________________/\n"
34893 "                                          |\n"
34894 "                                   _______v______\n"
34895 "                                  /              \\\n"
34896 "                                  | Device or    |\n"
34897 "                                  | disk image   |\n"
34898 "                                  \\______________/\n"
34899 "\n"
34900 msgstr ""
34901
34902 #. type: textblock
34903 #: ../src/guestfs.pod:2156
34904 msgid ""
34905 "The library, linked to the main program, creates the child process and hence "
34906 "the appliance in the L</guestfs_launch> function."
34907 msgstr ""
34908
34909 #. type: textblock
34910 #: ../src/guestfs.pod:2159
34911 msgid ""
34912 "Inside the appliance is a Linux kernel and a complete stack of userspace "
34913 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
34914 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
34915 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
34916 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
34917 "attached to the qemu process which translates device access by the "
34918 "appliance's Linux kernel into accesses to the image."
34919 msgstr ""
34920
34921 #. type: textblock
34922 #: ../src/guestfs.pod:2168
34923 msgid ""
34924 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
34925 "Although the disk image you are attached to might also be used by some "
34926 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
34927 "care if both libguestfs's qemu process and your virtual machine are trying "
34928 "to update the disk image at the same time, since these usually results in "
34929 "massive disk corruption)."
34930 msgstr ""
34931
34932 #. type: =head1
34933 #: ../src/guestfs.pod:2175
34934 msgid "STATE MACHINE"
34935 msgstr ""
34936
34937 #. type: textblock
34938 #: ../src/guestfs.pod:2177
34939 msgid "libguestfs uses a state machine to model the child process:"
34940 msgstr ""
34941
34942 #. type: verbatim
34943 #: ../src/guestfs.pod:2179
34944 #, no-wrap
34945 msgid ""
34946 "                         |\n"
34947 "                    guestfs_create\n"
34948 "                         |\n"
34949 "                         |\n"
34950 "                     ____V_____\n"
34951 "                    /          \\\n"
34952 "                    |  CONFIG  |\n"
34953 "                    \\__________/\n"
34954 "                     ^ ^   ^  \\\n"
34955 "                    /  |    \\  \\ guestfs_launch\n"
34956 "                   /   |    _\\__V______\n"
34957 "                  /    |   /           \\\n"
34958 "                 /     |   | LAUNCHING |\n"
34959 "                /      |   \\___________/\n"
34960 "               /       |       /\n"
34961 "              /        |  guestfs_launch\n"
34962 "             /         |     /\n"
34963 "    ______  /        __|____V\n"
34964 "   /      \\ ------> /        \\\n"
34965 "   | BUSY |         | READY  |\n"
34966 "   \\______/ <------ \\________/\n"
34967 "\n"
34968 msgstr ""
34969
34970 #. type: textblock
34971 #: ../src/guestfs.pod:2201
34972 msgid ""
34973 "The normal transitions are (1) CONFIG (when the handle is created, but there "
34974 "is no child process), (2) LAUNCHING (when the child process is booting up), "
34975 "(3) alternating between READY and BUSY as commands are issued to, and "
34976 "carried out by, the child process."
34977 msgstr ""
34978
34979 #. type: textblock
34980 #: ../src/guestfs.pod:2206
34981 msgid ""
34982 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
34983 "asynchronously at any time (eg. due to some internal error), and that causes "
34984 "the state to transition back to CONFIG."
34985 msgstr ""
34986
34987 #. type: textblock
34988 #: ../src/guestfs.pod:2210
34989 msgid ""
34990 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
34991 "issued when in the CONFIG state."
34992 msgstr ""
34993
34994 #. type: textblock
34995 #: ../src/guestfs.pod:2213
34996 msgid ""
34997 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
34998 "L</guestfs_launch> blocks until the child process is READY to accept "
34999 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
35000 "moves the state from CONFIG to LAUNCHING while it is running."
35001 msgstr ""
35002
35003 #. type: textblock
35004 #: ../src/guestfs.pod:2219
35005 msgid ""
35006 "API actions such as L</guestfs_mount> can only be issued when in the READY "
35007 "state.  These API calls block waiting for the command to be carried out (ie. "
35008 "the state to transition to BUSY and then back to READY).  There are no non-"
35009 "blocking versions, and no way to issue more than one command per handle at "
35010 "the same time."
35011 msgstr ""
35012
35013 #. type: textblock
35014 #: ../src/guestfs.pod:2225
35015 msgid ""
35016 "Finally, the child process sends asynchronous messages back to the main "
35017 "program, such as kernel log messages.  You can register a callback to "
35018 "receive these messages."
35019 msgstr ""
35020
35021 #. type: =head1
35022 #: ../src/guestfs.pod:2229
35023 msgid "INTERNALS"
35024 msgstr ""
35025
35026 #. type: =head2
35027 #: ../src/guestfs.pod:2231
35028 msgid "COMMUNICATION PROTOCOL"
35029 msgstr ""
35030
35031 #. type: textblock
35032 #: ../src/guestfs.pod:2233
35033 msgid ""
35034 "Don't rely on using this protocol directly.  This section documents how it "
35035 "currently works, but it may change at any time."
35036 msgstr ""
35037
35038 #. type: textblock
35039 #: ../src/guestfs.pod:2236
35040 msgid ""
35041 "The protocol used to talk between the library and the daemon running inside "
35042 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
35043 "1014, RFC 1832, RFC 4506)."
35044 msgstr ""
35045
35046 #. type: textblock
35047 #: ../src/guestfs.pod:2240
35048 msgid ""
35049 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
35050 "this file is automatically generated)."
35051 msgstr ""
35052
35053 #. type: textblock
35054 #: ../src/guestfs.pod:2243
35055 msgid ""
35056 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
35057 "and C<FileOut> parameters, which are handled with very simple request/reply "
35058 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
35059 "parameters, which use the same request and reply messages, but they may also "
35060 "be followed by files sent using a chunked encoding."
35061 msgstr ""
35062
35063 #. type: =head3
35064 #: ../src/guestfs.pod:2250
35065 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
35066 msgstr ""
35067
35068 #. type: textblock
35069 #: ../src/guestfs.pod:2252
35070 msgid "For ordinary functions, the request message is:"
35071 msgstr ""
35072
35073 #. type: verbatim
35074 #: ../src/guestfs.pod:2254
35075 #, no-wrap
35076 msgid ""
35077 " total length (header + arguments,\n"
35078 "      but not including the length word itself)\n"
35079 " struct guestfs_message_header (encoded as XDR)\n"
35080 " struct guestfs_<foo>_args (encoded as XDR)\n"
35081 "\n"
35082 msgstr ""
35083
35084 #. type: textblock
35085 #: ../src/guestfs.pod:2259
35086 msgid ""
35087 "The total length field allows the daemon to allocate a fixed size buffer "
35088 "into which it slurps the rest of the message.  As a result, the total length "
35089 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
35090 "effective size of any request is limited to somewhere under this size."
35091 msgstr ""
35092
35093 #. type: textblock
35094 #: ../src/guestfs.pod:2265
35095 msgid ""
35096 "Note also that many functions don't take any arguments, in which case the "
35097 "C<guestfs_I<foo>_args> is completely omitted."
35098 msgstr ""
35099
35100 #. type: textblock
35101 #: ../src/guestfs.pod:2268
35102 msgid ""
35103 "The header contains the procedure number (C<guestfs_proc>) which is how the "
35104 "receiver knows what type of args structure to expect, or none at all."
35105 msgstr ""
35106
35107 #. type: textblock
35108 #: ../src/guestfs.pod:2272
35109 msgid ""
35110 "For functions that take optional arguments, the optional arguments are "
35111 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
35112 "arguments.  A bitmask in the header indicates which optional arguments are "
35113 "meaningful.  The bitmask is also checked to see if it contains bits set "
35114 "which the daemon does not know about (eg. if more optional arguments were "
35115 "added in a later version of the library), and this causes the call to be "
35116 "rejected."
35117 msgstr ""
35118
35119 #. type: textblock
35120 #: ../src/guestfs.pod:2280
35121 msgid "The reply message for ordinary functions is:"
35122 msgstr ""
35123
35124 #. type: verbatim
35125 #: ../src/guestfs.pod:2282
35126 #, no-wrap
35127 msgid ""
35128 " total length (header + ret,\n"
35129 "      but not including the length word itself)\n"
35130 " struct guestfs_message_header (encoded as XDR)\n"
35131 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35132 "\n"
35133 msgstr ""
35134
35135 #. type: textblock
35136 #: ../src/guestfs.pod:2287
35137 msgid ""
35138 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
35139 "functions that return no formal return values."
35140 msgstr ""
35141
35142 #. type: textblock
35143 #: ../src/guestfs.pod:2290
35144 msgid ""
35145 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
35146 msgstr ""
35147
35148 #. type: textblock
35149 #: ../src/guestfs.pod:2293
35150 msgid ""
35151 "In the case of an error, a flag is set in the header, and the reply message "
35152 "is slightly changed:"
35153 msgstr ""
35154
35155 #. type: verbatim
35156 #: ../src/guestfs.pod:2296
35157 #, no-wrap
35158 msgid ""
35159 " total length (header + error,\n"
35160 "      but not including the length word itself)\n"
35161 " struct guestfs_message_header (encoded as XDR)\n"
35162 " struct guestfs_message_error (encoded as XDR)\n"
35163 "\n"
35164 msgstr ""
35165
35166 #. type: textblock
35167 #: ../src/guestfs.pod:2301
35168 msgid ""
35169 "The C<guestfs_message_error> structure contains the error message as a "
35170 "string."
35171 msgstr ""
35172
35173 #. type: =head3
35174 #: ../src/guestfs.pod:2304
35175 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
35176 msgstr ""
35177
35178 #. type: textblock
35179 #: ../src/guestfs.pod:2306
35180 msgid ""
35181 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
35182 "The normal request message is sent (see above).  However this is followed by "
35183 "a sequence of file chunks."
35184 msgstr ""
35185
35186 #. type: verbatim
35187 #: ../src/guestfs.pod:2310
35188 #, no-wrap
35189 msgid ""
35190 " total length (header + arguments,\n"
35191 "      but not including the length word itself,\n"
35192 "      and not including the chunks)\n"
35193 " struct guestfs_message_header (encoded as XDR)\n"
35194 " struct guestfs_<foo>_args (encoded as XDR)\n"
35195 " sequence of chunks for FileIn param #0\n"
35196 " sequence of chunks for FileIn param #1 etc.\n"
35197 "\n"
35198 msgstr ""
35199
35200 #. type: textblock
35201 #: ../src/guestfs.pod:2318
35202 msgid "The \"sequence of chunks\" is:"
35203 msgstr ""
35204
35205 #. type: verbatim
35206 #: ../src/guestfs.pod:2320
35207 #, no-wrap
35208 msgid ""
35209 " length of chunk (not including length word itself)\n"
35210 " struct guestfs_chunk (encoded as XDR)\n"
35211 " length of chunk\n"
35212 " struct guestfs_chunk (encoded as XDR)\n"
35213 "   ...\n"
35214 " length of chunk\n"
35215 " struct guestfs_chunk (with data.data_len == 0)\n"
35216 "\n"
35217 msgstr ""
35218
35219 #. type: textblock
35220 #: ../src/guestfs.pod:2328
35221 msgid ""
35222 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
35223 "is set in the final chunk to indicate either successful completion or early "
35224 "cancellation."
35225 msgstr ""
35226
35227 #. type: textblock
35228 #: ../src/guestfs.pod:2332
35229 msgid ""
35230 "At time of writing there are no functions that have more than one FileIn "
35231 "parameter.  However this is (theoretically) supported, by sending the "
35232 "sequence of chunks for each FileIn parameter one after another (from left to "
35233 "right)."
35234 msgstr ""
35235
35236 #. type: textblock
35237 #: ../src/guestfs.pod:2337
35238 msgid ""
35239 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
35240 "transfer.  The library does this by sending a chunk with a special flag set "
35241 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
35242 "RPC, does I<not> send any reply, and goes back to reading the next request."
35243 msgstr ""
35244
35245 #. type: textblock
35246 #: ../src/guestfs.pod:2343
35247 msgid ""
35248 "The daemon may also cancel.  It does this by writing a special word "
35249 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
35250 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
35251 "cancel chunk).  The special word is chosen so that even if cancellation "
35252 "happens right at the end of the transfer (after the library has finished "
35253 "writing and has started listening for the reply), the \"spurious\" cancel "
35254 "flag will not be confused with the reply message."
35255 msgstr ""
35256
35257 #. type: textblock
35258 #: ../src/guestfs.pod:2352
35259 msgid ""
35260 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
35261 "limit), and also files where the size is not known in advance (eg. from "
35262 "pipes or sockets).  However the chunks are rather small "
35263 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
35264 "to keep much in memory."
35265 msgstr ""
35266
35267 #. type: =head3
35268 #: ../src/guestfs.pod:2358
35269 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
35270 msgstr ""
35271
35272 #. type: textblock
35273 #: ../src/guestfs.pod:2360
35274 msgid ""
35275 "The protocol for FileOut parameters is exactly the same as for FileIn "
35276 "parameters, but with the roles of daemon and library reversed."
35277 msgstr ""
35278
35279 #. type: verbatim
35280 #: ../src/guestfs.pod:2363
35281 #, no-wrap
35282 msgid ""
35283 " total length (header + ret,\n"
35284 "      but not including the length word itself,\n"
35285 "      and not including the chunks)\n"
35286 " struct guestfs_message_header (encoded as XDR)\n"
35287 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35288 " sequence of chunks for FileOut param #0\n"
35289 " sequence of chunks for FileOut param #1 etc.\n"
35290 "\n"
35291 msgstr ""
35292
35293 #. type: =head3
35294 #: ../src/guestfs.pod:2371
35295 msgid "INITIAL MESSAGE"
35296 msgstr ""
35297
35298 #. type: textblock
35299 #: ../src/guestfs.pod:2373
35300 msgid ""
35301 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
35302 "which indicates that the guest and daemon is alive.  This is what L</"
35303 "guestfs_launch> waits for."
35304 msgstr ""
35305
35306 #. type: =head3
35307 #: ../src/guestfs.pod:2377
35308 msgid "PROGRESS NOTIFICATION MESSAGES"
35309 msgstr ""
35310
35311 #. type: textblock
35312 #: ../src/guestfs.pod:2379
35313 msgid ""
35314 "The daemon may send progress notification messages at any time.  These are "
35315 "distinguished by the normal length word being replaced by "
35316 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
35317 msgstr ""
35318
35319 #. type: textblock
35320 #: ../src/guestfs.pod:2383
35321 msgid ""
35322 "The library turns them into progress callbacks (see L</"
35323 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
35324 "if not."
35325 msgstr ""
35326
35327 #. type: textblock
35328 #: ../src/guestfs.pod:2387
35329 msgid ""
35330 "The daemon self-limits the frequency of progress messages it sends (see "
35331 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
35332 "messages."
35333 msgstr ""
35334
35335 #. type: =head1
35336 #: ../src/guestfs.pod:2391
35337 msgid "LIBGUESTFS VERSION NUMBERS"
35338 msgstr ""
35339
35340 #. type: textblock
35341 #: ../src/guestfs.pod:2393
35342 msgid ""
35343 "Since April 2010, libguestfs has started to make separate development and "
35344 "stable releases, along with corresponding branches in our git repository.  "
35345 "These separate releases can be identified by version number:"
35346 msgstr ""
35347
35348 #. type: verbatim
35349 #: ../src/guestfs.pod:2398
35350 #, no-wrap
35351 msgid ""
35352 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
35353 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
35354 "       |\n"
35355 "       v\n"
35356 " 1  .  3  .  5\n"
35357 " ^           ^\n"
35358 " |           |\n"
35359 " |           `-------- sub-version\n"
35360 " |\n"
35361 " `------ always '1' because we don't change the ABI\n"
35362 "\n"
35363 msgstr ""
35364
35365 #. type: textblock
35366 #: ../src/guestfs.pod:2409
35367 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
35368 msgstr ""
35369
35370 #. type: textblock
35371 #: ../src/guestfs.pod:2411
35372 msgid ""
35373 "As time passes we cherry pick fixes from the development branch and backport "
35374 "those into the stable branch, the effect being that the stable branch should "
35375 "get more stable and less buggy over time.  So the stable releases are ideal "
35376 "for people who don't need new features but would just like the software to "
35377 "work."
35378 msgstr ""
35379
35380 #. type: textblock
35381 #: ../src/guestfs.pod:2417
35382 msgid "Our criteria for backporting changes are:"
35383 msgstr ""
35384
35385 #. type: textblock
35386 #: ../src/guestfs.pod:2423
35387 msgid ""
35388 "Documentation changes which don't affect any code are backported unless the "
35389 "documentation refers to a future feature which is not in stable."
35390 msgstr ""
35391
35392 #. type: textblock
35393 #: ../src/guestfs.pod:2429
35394 msgid ""
35395 "Bug fixes which are not controversial, fix obvious problems, and have been "
35396 "well tested are backported."
35397 msgstr ""
35398
35399 #. type: textblock
35400 #: ../src/guestfs.pod:2434
35401 msgid ""
35402 "Simple rearrangements of code which shouldn't affect how it works get "
35403 "backported.  This is so that the code in the two branches doesn't get too "
35404 "far out of step, allowing us to backport future fixes more easily."
35405 msgstr ""
35406
35407 #. type: textblock
35408 #: ../src/guestfs.pod:2440
35409 msgid ""
35410 "We I<don't> backport new features, new APIs, new tools etc, except in one "
35411 "exceptional case: the new feature is required in order to implement an "
35412 "important bug fix."
35413 msgstr ""
35414
35415 #. type: textblock
35416 #: ../src/guestfs.pod:2446
35417 msgid ""
35418 "A new stable branch starts when we think the new features in development are "
35419 "substantial and compelling enough over the current stable branch to warrant "
35420 "it.  When that happens we create new stable and development versions 1.N.0 "
35421 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
35422 "stable at this point, but by backporting fixes from development, that branch "
35423 "will stabilize over time."
35424 msgstr ""
35425
35426 #. type: =head1
35427 #: ../src/guestfs.pod:2454
35428 msgid "EXTENDING LIBGUESTFS"
35429 msgstr ""
35430
35431 #. type: =head2
35432 #: ../src/guestfs.pod:2456
35433 msgid "ADDING A NEW API ACTION"
35434 msgstr ""
35435
35436 #. type: textblock
35437 #: ../src/guestfs.pod:2458
35438 msgid ""
35439 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
35440 "documentation) are generated, and this makes it easy to extend the "
35441 "libguestfs API."
35442 msgstr ""
35443
35444 #. type: textblock
35445 #: ../src/guestfs.pod:2462
35446 msgid "To add a new API action there are two changes:"
35447 msgstr ""
35448
35449 #. type: textblock
35450 #: ../src/guestfs.pod:2468
35451 msgid ""
35452 "You need to add a description of the call (name, parameters, return type, "
35453 "tests, documentation) to C<generator/generator_actions.ml>."
35454 msgstr ""
35455
35456 #. type: textblock
35457 #: ../src/guestfs.pod:2471
35458 msgid ""
35459 "There are two sorts of API action, depending on whether the call goes "
35460 "through to the daemon in the appliance, or is serviced entirely by the "
35461 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
35462 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
35463 "an example of the latter, since a trace flag is maintained in the handle and "
35464 "all tracing is done on the library side."
35465 msgstr ""
35466
35467 #. type: textblock
35468 #: ../src/guestfs.pod:2479
35469 msgid ""
35470 "Most new actions are of the first type, and get added to the "
35471 "C<daemon_functions> list.  Each function has a unique procedure number used "
35472 "in the RPC protocol which is assigned to that action when we publish "
35473 "libguestfs and cannot be reused.  Take the latest procedure number and "
35474 "increment it."
35475 msgstr ""
35476
35477 #. type: textblock
35478 #: ../src/guestfs.pod:2485
35479 msgid ""
35480 "For library-only actions of the second type, add to the "
35481 "C<non_daemon_functions> list.  Since these functions are serviced by the "
35482 "library and do not travel over the RPC mechanism to the daemon, these "
35483 "functions do not need a procedure number, and so the procedure number is set "
35484 "to C<-1>."
35485 msgstr ""
35486
35487 #. type: textblock
35488 #: ../src/guestfs.pod:2493
35489 msgid "Implement the action (in C):"
35490 msgstr ""
35491
35492 #. type: textblock
35493 #: ../src/guestfs.pod:2495
35494 msgid ""
35495 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
35496 "C<daemon/> directory."
35497 msgstr ""
35498
35499 #. type: textblock
35500 #: ../src/guestfs.pod:2498
35501 msgid ""
35502 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
35503 "(note: double underscore) in the C<src/> directory."
35504 msgstr ""
35505
35506 #. type: textblock
35507 #: ../src/guestfs.pod:2501
35508 msgid "In either case, use another function as an example of what to do."
35509 msgstr ""
35510
35511 #. type: textblock
35512 #: ../src/guestfs.pod:2505
35513 msgid "After making these changes, use C<make> to compile."
35514 msgstr ""
35515
35516 #. type: textblock
35517 #: ../src/guestfs.pod:2507
35518 msgid ""
35519 "Note that you don't need to implement the RPC, language bindings, manual "
35520 "pages or anything else.  It's all automatically generated from the OCaml "
35521 "description."
35522 msgstr ""
35523
35524 #. type: =head2
35525 #: ../src/guestfs.pod:2511
35526 msgid "ADDING TESTS FOR AN API ACTION"
35527 msgstr ""
35528
35529 #. type: textblock
35530 #: ../src/guestfs.pod:2513
35531 msgid ""
35532 "You can supply zero or as many tests as you want per API call.  The tests "
35533 "can either be added as part of the API description (C<generator/"
35534 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
35535 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
35536 "slower, so if possible use the first method."
35537 msgstr ""
35538
35539 #. type: textblock
35540 #: ../src/guestfs.pod:2519
35541 msgid ""
35542 "The following describes the test environment used when you add an API test "
35543 "in C<generator_actions.ml>."
35544 msgstr ""
35545
35546 #. type: textblock
35547 #: ../src/guestfs.pod:2522
35548 msgid "The test environment has 4 block devices:"
35549 msgstr ""
35550
35551 #. type: =item
35552 #: ../src/guestfs.pod:2526
35553 msgid "C</dev/sda> 500MB"
35554 msgstr ""
35555
35556 #. type: textblock
35557 #: ../src/guestfs.pod:2528
35558 msgid "General block device for testing."
35559 msgstr ""
35560
35561 #. type: =item
35562 #: ../src/guestfs.pod:2530
35563 msgid "C</dev/sdb> 50MB"
35564 msgstr ""
35565
35566 #. type: textblock
35567 #: ../src/guestfs.pod:2532
35568 msgid ""
35569 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
35570 "operations."
35571 msgstr ""
35572
35573 #. type: =item
35574 #: ../src/guestfs.pod:2535
35575 msgid "C</dev/sdc> 10MB"
35576 msgstr ""
35577
35578 #. type: textblock
35579 #: ../src/guestfs.pod:2537
35580 msgid "Used in a few tests where two block devices are needed."
35581 msgstr ""
35582
35583 #. type: =item
35584 #: ../src/guestfs.pod:2539
35585 msgid "C</dev/sdd>"
35586 msgstr ""
35587
35588 #. type: textblock
35589 #: ../src/guestfs.pod:2541
35590 msgid "ISO with fixed content (see C<images/test.iso>)."
35591 msgstr ""
35592
35593 #. type: textblock
35594 #: ../src/guestfs.pod:2545
35595 msgid ""
35596 "To be able to run the tests in a reasonable amount of time, the libguestfs "
35597 "appliance and block devices are reused between tests.  So don't try testing "
35598 "L</guestfs_kill_subprocess> :-x"
35599 msgstr ""
35600
35601 #. type: textblock
35602 #: ../src/guestfs.pod:2549
35603 msgid ""
35604 "Each test starts with an initial scenario, selected using one of the "
35605 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
35606 "initialize the disks mentioned above in a particular way as documented in "
35607 "C<generator_types.ml>.  You should not assume anything about the previous "
35608 "contents of other disks that are not initialized."
35609 msgstr ""
35610
35611 #. type: textblock
35612 #: ../src/guestfs.pod:2555
35613 msgid ""
35614 "You can add a prerequisite clause to any individual test.  This is a run-"
35615 "time check, which, if it fails, causes the test to be skipped.  Useful if "
35616 "testing a command which might not work on all variations of libguestfs "
35617 "builds.  A test that has prerequisite of C<Always> means to run "
35618 "unconditionally."
35619 msgstr ""
35620
35621 #. type: textblock
35622 #: ../src/guestfs.pod:2561
35623 msgid ""
35624 "In addition, packagers can skip individual tests by setting environment "
35625 "variables before running C<make check>."
35626 msgstr ""
35627
35628 #. type: verbatim
35629 #: ../src/guestfs.pod:2564
35630 #, no-wrap
35631 msgid ""
35632 " SKIP_TEST_<CMD>_<NUM>=1\n"
35633 "\n"
35634 msgstr ""
35635
35636 #. type: textblock
35637 #: ../src/guestfs.pod:2566
35638 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
35639 msgstr ""
35640
35641 #. type: textblock
35642 #: ../src/guestfs.pod:2568
35643 msgid "or:"
35644 msgstr ""
35645
35646 #. type: verbatim
35647 #: ../src/guestfs.pod:2570
35648 #, no-wrap
35649 msgid ""
35650 " SKIP_TEST_<CMD>=1\n"
35651 "\n"
35652 msgstr ""
35653
35654 #. type: textblock
35655 #: ../src/guestfs.pod:2572
35656 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
35657 msgstr ""
35658
35659 #. type: textblock
35660 #: ../src/guestfs.pod:2574
35661 msgid "Packagers can run only certain tests by setting for example:"
35662 msgstr ""
35663
35664 #. type: verbatim
35665 #: ../src/guestfs.pod:2576
35666 #, no-wrap
35667 msgid ""
35668 " TEST_ONLY=\"vfs_type zerofree\"\n"
35669 "\n"
35670 msgstr ""
35671
35672 #. type: textblock
35673 #: ../src/guestfs.pod:2578
35674 msgid ""
35675 "See C<capitests/tests.c> for more details of how these environment variables "
35676 "work."
35677 msgstr ""
35678
35679 #. type: =head2
35680 #: ../src/guestfs.pod:2581
35681 msgid "DEBUGGING NEW API ACTIONS"
35682 msgstr ""
35683
35684 #. type: textblock
35685 #: ../src/guestfs.pod:2583
35686 msgid "Test new actions work before submitting them."
35687 msgstr ""
35688
35689 #. type: textblock
35690 #: ../src/guestfs.pod:2585
35691 msgid "You can use guestfish to try out new commands."
35692 msgstr ""
35693
35694 #. type: textblock
35695 #: ../src/guestfs.pod:2587
35696 msgid ""
35697 "Debugging the daemon is a problem because it runs inside a minimal "
35698 "environment.  However you can fprintf messages in the daemon to stderr, and "
35699 "they will show up if you use C<guestfish -v>."
35700 msgstr ""
35701
35702 #. type: =head2
35703 #: ../src/guestfs.pod:2591
35704 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
35705 msgstr ""
35706
35707 #. type: textblock
35708 #: ../src/guestfs.pod:2593
35709 msgid ""
35710 "Our C source code generally adheres to some basic code-formatting "
35711 "conventions.  The existing code base is not totally consistent on this "
35712 "front, but we do prefer that contributed code be formatted similarly.  In "
35713 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
35714 "indentation level, and other than that, follow the K&R style."
35715 msgstr ""
35716
35717 #. type: textblock
35718 #: ../src/guestfs.pod:2599
35719 msgid ""
35720 "If you use Emacs, add the following to one of one of your start-up files (e."
35721 "g., ~/.emacs), to help ensure that you get indentation right:"
35722 msgstr ""
35723
35724 #. type: verbatim
35725 #: ../src/guestfs.pod:2602
35726 #, no-wrap
35727 msgid ""
35728 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
35729 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
35730 " (add-hook 'find-file-hook\n"
35731 "     '(lambda () (if (and buffer-file-name\n"
35732 "                          (string-match \"/libguestfs\\\\>\"\n"
35733 "                              (buffer-file-name))\n"
35734 "                          (not (string-equal mode-name \"Change Log\"))\n"
35735 "                          (not (string-equal mode-name \"Makefile\")))\n"
35736 "                     (setq indent-tabs-mode nil))))\n"
35737 " \n"
35738 msgstr ""
35739
35740 #. type: verbatim
35741 #: ../src/guestfs.pod:2612
35742 #, no-wrap
35743 msgid ""
35744 " ;;; When editing C sources in libguestfs, use this style.\n"
35745 " (defun libguestfs-c-mode ()\n"
35746 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
35747 "   (interactive)\n"
35748 "   (c-set-style \"K&R\")\n"
35749 "   (setq c-indent-level 2)\n"
35750 "   (setq c-basic-offset 2))\n"
35751 " (add-hook 'c-mode-hook\n"
35752 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
35753 "                               (buffer-file-name))\n"
35754 "                           (libguestfs-c-mode))))\n"
35755 "\n"
35756 msgstr ""
35757
35758 #. type: textblock
35759 #: ../src/guestfs.pod:2624
35760 msgid "Enable warnings when compiling (and fix any problems this finds):"
35761 msgstr ""
35762
35763 #. type: verbatim
35764 #: ../src/guestfs.pod:2627
35765 #, no-wrap
35766 msgid ""
35767 " ./configure --enable-gcc-warnings\n"
35768 "\n"
35769 msgstr ""
35770
35771 #. type: textblock
35772 #: ../src/guestfs.pod:2629
35773 msgid "Useful targets are:"
35774 msgstr ""
35775
35776 #. type: verbatim
35777 #: ../src/guestfs.pod:2631
35778 #, no-wrap
35779 msgid ""
35780 " make syntax-check  # checks the syntax of the C code\n"
35781 " make check         # runs the test suite\n"
35782 "\n"
35783 msgstr ""
35784
35785 #. type: =head2
35786 #: ../src/guestfs.pod:2634
35787 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
35788 msgstr ""
35789
35790 #. type: textblock
35791 #: ../src/guestfs.pod:2636
35792 msgid ""
35793 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
35794 "which are used to do shell quoting."
35795 msgstr ""
35796
35797 #. type: =item
35798 #: ../src/guestfs.pod:2641
35799 msgid "%Q"
35800 msgstr ""
35801
35802 #. type: textblock
35803 #: ../src/guestfs.pod:2643
35804 msgid ""
35805 "Simple shell quoted string.  Any spaces or other shell characters are "
35806 "escaped for you."
35807 msgstr ""
35808
35809 #. type: =item
35810 #: ../src/guestfs.pod:2646
35811 msgid "%R"
35812 msgstr ""
35813
35814 #. type: textblock
35815 #: ../src/guestfs.pod:2648
35816 msgid ""
35817 "Same as C<%Q> except the string is treated as a path which is prefixed by "
35818 "the sysroot."
35819 msgstr ""
35820
35821 #. type: verbatim
35822 #: ../src/guestfs.pod:2655
35823 #, no-wrap
35824 msgid ""
35825 " asprintf (&cmd, \"cat %R\", path);\n"
35826 "\n"
35827 msgstr ""
35828
35829 #. type: textblock
35830 #: ../src/guestfs.pod:2657
35831 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
35832 msgstr ""
35833
35834 #. type: textblock
35835 #: ../src/guestfs.pod:2659
35836 msgid ""
35837 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
35838 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
35839 "they are not passed via the shell (instead, straight to exec).  You probably "
35840 "want to use the C<sysroot_path()> function however."
35841 msgstr ""
35842
35843 #. type: =head2
35844 #: ../src/guestfs.pod:2665
35845 msgid "SUBMITTING YOUR NEW API ACTIONS"
35846 msgstr ""
35847
35848 #. type: textblock
35849 #: ../src/guestfs.pod:2667
35850 msgid ""
35851 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
35852 "libguestfs> and CC to L<rjones@redhat.com>."
35853 msgstr ""
35854
35855 #. type: =head2
35856 #: ../src/guestfs.pod:2671
35857 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
35858 msgstr ""
35859
35860 #. type: textblock
35861 #: ../src/guestfs.pod:2673
35862 msgid "We support i18n (gettext anyhow) in the library."
35863 msgstr ""
35864
35865 #. type: textblock
35866 #: ../src/guestfs.pod:2675
35867 msgid ""
35868 "However many messages come from the daemon, and we don't translate those at "
35869 "the moment.  One reason is that the appliance generally has all locale files "
35870 "removed from it, because they take up a lot of space.  So we'd have to readd "
35871 "some of those, as well as copying our PO files into the appliance."
35872 msgstr ""
35873
35874 #. type: textblock
35875 #: ../src/guestfs.pod:2681
35876 msgid ""
35877 "Debugging messages are never translated, since they are intended for the "
35878 "programmers."
35879 msgstr ""
35880
35881 #. type: =head2
35882 #: ../src/guestfs.pod:2684
35883 msgid "SOURCE CODE SUBDIRECTORIES"
35884 msgstr ""
35885
35886 #. type: textblock
35887 #: ../src/guestfs.pod:2690
35888 msgid "The libguestfs appliance, build scripts and so on."
35889 msgstr ""
35890
35891 #. type: =item
35892 #: ../src/guestfs.pod:2692
35893 msgid "C<capitests>"
35894 msgstr ""
35895
35896 #. type: textblock
35897 #: ../src/guestfs.pod:2694
35898 msgid "Automated tests of the C API."
35899 msgstr ""
35900
35901 #. type: =item
35902 #: ../src/guestfs.pod:2696
35903 msgid "C<cat>"
35904 msgstr ""
35905
35906 #. type: textblock
35907 #: ../src/guestfs.pod:2698
35908 msgid ""
35909 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
35910 "documentation."
35911 msgstr ""
35912
35913 #. type: =item
35914 #: ../src/guestfs.pod:2701
35915 msgid "C<caution>"
35916 msgstr ""
35917
35918 #. type: textblock
35919 #: ../src/guestfs.pod:2703
35920 msgid ""
35921 "Safety and liveness tests of components that libguestfs depends upon (not of "
35922 "libguestfs itself).  Mainly this is for qemu and the kernel."
35923 msgstr ""
35924
35925 #. type: =item
35926 #: ../src/guestfs.pod:2706
35927 msgid "C<contrib>"
35928 msgstr ""
35929
35930 #. type: textblock
35931 #: ../src/guestfs.pod:2708
35932 msgid "Outside contributions, experimental parts."
35933 msgstr ""
35934
35935 #. type: =item
35936 #: ../src/guestfs.pod:2710
35937 msgid "C<daemon>"
35938 msgstr ""
35939
35940 #. type: textblock
35941 #: ../src/guestfs.pod:2712
35942 msgid ""
35943 "The daemon that runs inside the libguestfs appliance and carries out actions."
35944 msgstr ""
35945
35946 #. type: =item
35947 #: ../src/guestfs.pod:2715
35948 msgid "C<df>"
35949 msgstr ""
35950
35951 #. type: textblock
35952 #: ../src/guestfs.pod:2717
35953 msgid "L<virt-df(1)> command and documentation."
35954 msgstr ""
35955
35956 #. type: =item
35957 #: ../src/guestfs.pod:2719
35958 msgid "C<edit>"
35959 msgstr ""
35960
35961 #. type: textblock
35962 #: ../src/guestfs.pod:2721
35963 msgid "L<virt-edit(1)> command and documentation."
35964 msgstr ""
35965
35966 #. type: =item
35967 #: ../src/guestfs.pod:2723
35968 msgid "C<examples>"
35969 msgstr ""
35970
35971 #. type: textblock
35972 #: ../src/guestfs.pod:2725
35973 msgid "C API example code."
35974 msgstr ""
35975
35976 #. type: =item
35977 #: ../src/guestfs.pod:2727
35978 msgid "C<fish>"
35979 msgstr ""
35980
35981 #. type: textblock
35982 #: ../src/guestfs.pod:2729
35983 msgid ""
35984 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
35985 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
35986 "L<virt-tar-out(1)>."
35987 msgstr ""
35988
35989 #. type: =item
35990 #: ../src/guestfs.pod:2733
35991 msgid "C<fuse>"
35992 msgstr ""
35993
35994 #. type: textblock
35995 #: ../src/guestfs.pod:2735
35996 msgid ""
35997 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
35998 msgstr ""
35999
36000 #. type: =item
36001 #: ../src/guestfs.pod:2737
36002 msgid "C<generator>"
36003 msgstr ""
36004
36005 #. type: textblock
36006 #: ../src/guestfs.pod:2739
36007 msgid ""
36008 "The crucially important generator, used to automatically generate large "
36009 "amounts of boilerplate C code for things like RPC and bindings."
36010 msgstr ""
36011
36012 #. type: =item
36013 #: ../src/guestfs.pod:2742
36014 msgid "C<images>"
36015 msgstr ""
36016
36017 #. type: textblock
36018 #: ../src/guestfs.pod:2744
36019 msgid "Files used by the test suite."
36020 msgstr ""
36021
36022 #. type: textblock
36023 #: ../src/guestfs.pod:2746
36024 msgid "Some \"phony\" guest images which we test against."
36025 msgstr ""
36026
36027 #. type: =item
36028 #: ../src/guestfs.pod:2748
36029 msgid "C<inspector>"
36030 msgstr ""
36031
36032 #. type: textblock
36033 #: ../src/guestfs.pod:2750
36034 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
36035 msgstr ""
36036
36037 #. type: =item
36038 #: ../src/guestfs.pod:2752
36039 msgid "C<logo>"
36040 msgstr ""
36041
36042 #. type: textblock
36043 #: ../src/guestfs.pod:2754
36044 msgid "Logo used on the website.  The fish is called Arthur by the way."
36045 msgstr ""
36046
36047 #. type: =item
36048 #: ../src/guestfs.pod:2756
36049 msgid "C<m4>"
36050 msgstr ""
36051
36052 #. type: textblock
36053 #: ../src/guestfs.pod:2758
36054 msgid "M4 macros used by autoconf."
36055 msgstr ""
36056
36057 #. type: =item
36058 #: ../src/guestfs.pod:2760
36059 msgid "C<po>"
36060 msgstr ""
36061
36062 #. type: textblock
36063 #: ../src/guestfs.pod:2762
36064 msgid "Translations of simple gettext strings."
36065 msgstr ""
36066
36067 #. type: =item
36068 #: ../src/guestfs.pod:2764
36069 msgid "C<po-docs>"
36070 msgstr ""
36071
36072 #. type: textblock
36073 #: ../src/guestfs.pod:2766
36074 msgid ""
36075 "The build infrastructure and PO files for translations of manpages and POD "
36076 "files.  Eventually this will be combined with the C<po> directory, but that "
36077 "is rather complicated."
36078 msgstr ""
36079
36080 #. type: =item
36081 #: ../src/guestfs.pod:2770
36082 msgid "C<regressions>"
36083 msgstr ""
36084
36085 #. type: textblock
36086 #: ../src/guestfs.pod:2772
36087 msgid "Regression tests."
36088 msgstr ""
36089
36090 #. type: =item
36091 #: ../src/guestfs.pod:2774
36092 msgid "C<rescue>"
36093 msgstr ""
36094
36095 #. type: textblock
36096 #: ../src/guestfs.pod:2776
36097 msgid "L<virt-rescue(1)> command and documentation."
36098 msgstr ""
36099
36100 #. type: =item
36101 #: ../src/guestfs.pod:2778
36102 msgid "C<src>"
36103 msgstr ""
36104
36105 #. type: textblock
36106 #: ../src/guestfs.pod:2780
36107 msgid "Source code to the C library."
36108 msgstr ""
36109
36110 #. type: =item
36111 #: ../src/guestfs.pod:2782
36112 msgid "C<tools>"
36113 msgstr ""
36114
36115 #. type: textblock
36116 #: ../src/guestfs.pod:2784
36117 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
36118 msgstr ""
36119
36120 #. type: =item
36121 #: ../src/guestfs.pod:2786
36122 msgid "C<test-tool>"
36123 msgstr ""
36124
36125 #. type: textblock
36126 #: ../src/guestfs.pod:2788
36127 msgid ""
36128 "Test tool for end users to test if their qemu/kernel combination will work "
36129 "with libguestfs."
36130 msgstr ""
36131
36132 #. type: =item
36133 #: ../src/guestfs.pod:2791
36134 msgid "C<csharp>"
36135 msgstr ""
36136
36137 #. type: =item
36138 #: ../src/guestfs.pod:2793
36139 msgid "C<haskell>"
36140 msgstr ""
36141
36142 #. type: =item
36143 #: ../src/guestfs.pod:2795
36144 msgid "C<java>"
36145 msgstr ""
36146
36147 #. type: =item
36148 #: ../src/guestfs.pod:2797
36149 msgid "C<ocaml>"
36150 msgstr ""
36151
36152 #. type: =item
36153 #: ../src/guestfs.pod:2799
36154 msgid "C<php>"
36155 msgstr ""
36156
36157 #. type: =item
36158 #: ../src/guestfs.pod:2801
36159 msgid "C<perl>"
36160 msgstr ""
36161
36162 #. type: =item
36163 #: ../src/guestfs.pod:2803
36164 msgid "C<python>"
36165 msgstr ""
36166
36167 #. type: =item
36168 #: ../src/guestfs.pod:2805
36169 msgid "C<ruby>"
36170 msgstr ""
36171
36172 #. type: textblock
36173 #: ../src/guestfs.pod:2807
36174 msgid "Language bindings."
36175 msgstr ""
36176
36177 #. type: =head2
36178 #: ../src/guestfs.pod:2811
36179 msgid "MAKING A STABLE RELEASE"
36180 msgstr ""
36181
36182 #. type: textblock
36183 #: ../src/guestfs.pod:2813
36184 msgid ""
36185 "When we make a stable release, there are several steps documented here.  See "
36186 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
36187 "branch policy."
36188 msgstr ""
36189
36190 #. type: textblock
36191 #: ../src/guestfs.pod:2821
36192 msgid ""
36193 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
36194 msgstr ""
36195
36196 #. type: textblock
36197 #: ../src/guestfs.pod:2826
36198 msgid "Finalize RELEASE-NOTES."
36199 msgstr ""
36200
36201 #. type: textblock
36202 #: ../src/guestfs.pod:2830
36203 msgid "Update ROADMAP."
36204 msgstr ""
36205
36206 #. type: textblock
36207 #: ../src/guestfs.pod:2834
36208 msgid "Run C<src/api-support/update-from-tarballs.sh>."
36209 msgstr ""
36210
36211 #. type: textblock
36212 #: ../src/guestfs.pod:2838
36213 msgid "Push and pull from Transifex."
36214 msgstr ""
36215
36216 #. type: textblock
36217 #: ../src/guestfs.pod:2840
36218 msgid "Run:"
36219 msgstr ""
36220
36221 #. type: verbatim
36222 #: ../src/guestfs.pod:2842
36223 #, no-wrap
36224 msgid ""
36225 " tx push -s\n"
36226 "\n"
36227 msgstr ""
36228
36229 #. type: textblock
36230 #: ../src/guestfs.pod:2844
36231 msgid "to push the latest POT files to Transifex.  Then run:"
36232 msgstr ""
36233
36234 #. type: verbatim
36235 #: ../src/guestfs.pod:2846
36236 #, no-wrap
36237 msgid ""
36238 " ./tx-pull.sh\n"
36239 "\n"
36240 msgstr ""
36241
36242 #. type: textblock
36243 #: ../src/guestfs.pod:2848
36244 msgid "which is a wrapper to pull the latest translated C<*.po> files."
36245 msgstr ""
36246
36247 #. type: textblock
36248 #: ../src/guestfs.pod:2852
36249 msgid ""
36250 "Create new stable and development directories under L<http://libguestfs.org/"
36251 "download>."
36252 msgstr ""
36253
36254 #. type: textblock
36255 #: ../src/guestfs.pod:2857
36256 msgid "Create the branch in git:"
36257 msgstr ""
36258
36259 #. type: verbatim
36260 #: ../src/guestfs.pod:2859
36261 #, no-wrap
36262 msgid ""
36263 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
36264 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
36265 " git branch stable-1.XX\n"
36266 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
36267 "\n"
36268 msgstr ""
36269
36270 #. type: =head1
36271 #: ../src/guestfs.pod:2866
36272 msgid "LIMITS"
36273 msgstr ""
36274
36275 #. type: =head2
36276 #: ../src/guestfs.pod:2868
36277 msgid "PROTOCOL LIMITS"
36278 msgstr ""
36279
36280 #. type: textblock
36281 #: ../src/guestfs.pod:2870
36282 msgid ""
36283 "Internally libguestfs uses a message-based protocol to pass API calls and "
36284 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
36285 "plenty more detail about this).  The maximum message size used by the "
36286 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
36287 "aware of this limit.  The API calls which may be affected are individually "
36288 "documented, with a link back to this section of the documentation."
36289 msgstr ""
36290
36291 #. type: textblock
36292 #: ../src/guestfs.pod:2878
36293 msgid ""
36294 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
36295 "a simple string.  Because this string is at some point internally encoded as "
36296 "a message, the maximum size that it can return is slightly under 4 MB.  If "
36297 "the requested file is larger than this then you will get an error."
36298 msgstr ""
36299
36300 #. type: textblock
36301 #: ../src/guestfs.pod:2884
36302 msgid ""
36303 "In order to transfer large files into and out of the guest filesystem, you "
36304 "need to use particular calls that support this.  The sections L</UPLOADING> "
36305 "and L</DOWNLOADING> document how to do this."
36306 msgstr ""
36307
36308 #. type: textblock
36309 #: ../src/guestfs.pod:2888
36310 msgid ""
36311 "You might also consider mounting the disk image using our FUSE filesystem "
36312 "support (L<guestmount(1)>)."
36313 msgstr ""
36314
36315 #. type: =head2
36316 #: ../src/guestfs.pod:2891
36317 msgid "MAXIMUM NUMBER OF DISKS"
36318 msgstr ""
36319
36320 #. type: textblock
36321 #: ../src/guestfs.pod:2893
36322 msgid "When using virtio disks (the default) the current limit is B<25> disks."
36323 msgstr ""
36324
36325 #. type: textblock
36326 #: ../src/guestfs.pod:2896
36327 msgid ""
36328 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
36329 "slots.  However febootstrap only understands disks with names C</dev/vda> "
36330 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
36331 "purposes."
36332 msgstr ""
36333
36334 #. type: textblock
36335 #: ../src/guestfs.pod:2901
36336 msgid ""
36337 "We are working to substantially raise this limit in future versions but it "
36338 "requires complex changes to qemu."
36339 msgstr ""
36340
36341 #. type: textblock
36342 #: ../src/guestfs.pod:2904
36343 msgid ""
36344 "In future versions of libguestfs it should also be possible to \"hot plug\" "
36345 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
36346 "requires changes to qemu."
36347 msgstr ""
36348
36349 #. type: =head2
36350 #: ../src/guestfs.pod:2908
36351 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
36352 msgstr ""
36353
36354 #. type: textblock
36355 #: ../src/guestfs.pod:2910
36356 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
36357 msgstr ""
36358
36359 #. type: textblock
36360 #: ../src/guestfs.pod:2912
36361 msgid ""
36362 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
36363 "vda>, and C</dev/vda1> through C</dev/vda15>)."
36364 msgstr ""
36365
36366 #. type: textblock
36367 #: ../src/guestfs.pod:2915
36368 msgid ""
36369 "If you attach a disk with more than 15 partitions, the extra partitions are "
36370 "ignored by libguestfs."
36371 msgstr ""
36372
36373 #. type: =head2
36374 #: ../src/guestfs.pod:2918
36375 msgid "MAXIMUM SIZE OF A DISK"
36376 msgstr ""
36377
36378 #. type: textblock
36379 #: ../src/guestfs.pod:2920
36380 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
36381 msgstr ""
36382
36383 #. type: textblock
36384 #: ../src/guestfs.pod:2922
36385 msgid ""
36386 "We have tested block devices up to 1 exabyte (2**60 or "
36387 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
36388 "filesystem."
36389 msgstr ""
36390
36391 #. type: textblock
36392 #: ../src/guestfs.pod:2926
36393 msgid ""
36394 "Although libguestfs probably does not impose any limit, the underlying host "
36395 "storage will.  If you store disk images on a host ext4 filesystem, then the "
36396 "maximum size will be limited by the maximum ext4 file size (currently 16 "
36397 "TB).  If you store disk images as host logical volumes then you are limited "
36398 "by the maximum size of an LV."
36399 msgstr ""
36400
36401 #. type: textblock
36402 #: ../src/guestfs.pod:2932
36403 msgid ""
36404 "For the hugest disk image files, we recommend using XFS on the host for "
36405 "storage."
36406 msgstr ""
36407
36408 #. type: =head2
36409 #: ../src/guestfs.pod:2935
36410 msgid "MAXIMUM SIZE OF A PARTITION"
36411 msgstr ""
36412
36413 #. type: textblock
36414 #: ../src/guestfs.pod:2937
36415 msgid ""
36416 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
36417 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
36418 "address a partition located beyond 2 TB on the disk."
36419 msgstr ""
36420
36421 #. type: textblock
36422 #: ../src/guestfs.pod:2941
36423 msgid ""
36424 "It is recommended that you use GPT partitions on disks which are larger than "
36425 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
36426 "which are theoretically larger than the largest disk we could support."
36427 msgstr ""
36428
36429 #. type: =head2
36430 #: ../src/guestfs.pod:2946
36431 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
36432 msgstr ""
36433
36434 #. type: textblock
36435 #: ../src/guestfs.pod:2948
36436 msgid ""
36437 "This depends on the filesystem type.  libguestfs itself does not impose any "
36438 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
36439 "what these limits are."
36440 msgstr ""
36441
36442 #. type: =head2
36443 #: ../src/guestfs.pod:2952
36444 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
36445 msgstr ""
36446
36447 #. type: textblock
36448 #: ../src/guestfs.pod:2954
36449 msgid ""
36450 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
36451 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
36452 "uploads and downloads."
36453 msgstr ""
36454
36455 #. type: =head2
36456 #: ../src/guestfs.pod:2958
36457 msgid "INSPECTION LIMITS"
36458 msgstr ""
36459
36460 #. type: textblock
36461 #: ../src/guestfs.pod:2960
36462 msgid ""
36463 "The inspection code has several arbitrary limits on things like the size of "
36464 "Windows Registry hive it will read, and the length of product name.  These "
36465 "are intended to stop a malicious guest from consuming arbitrary amounts of "
36466 "memory and disk space on the host, and should not be reached in practice.  "
36467 "See the source code for more information."
36468 msgstr ""
36469
36470 #. type: textblock
36471 #: ../src/guestfs.pod:2986
36472 msgid ""
36473 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
36474 "effect as calling C<guestfs_set_verbose (g, 1)>."
36475 msgstr ""
36476
36477 #. type: textblock
36478 #: ../src/guestfs.pod:2998
36479 msgid ""
36480 "Set the path that libguestfs uses to search for a supermin appliance.  See "
36481 "the discussion of paths in section L</PATH> above."
36482 msgstr ""
36483
36484 #. type: textblock
36485 #: ../src/guestfs.pod:3007
36486 msgid "See also L</QEMU WRAPPERS> above."
36487 msgstr ""
36488
36489 #. type: textblock
36490 #: ../src/guestfs.pod:3011
36491 msgid ""
36492 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
36493 "effect as calling C<guestfs_set_trace (g, 1)>."
36494 msgstr ""
36495
36496 #. type: textblock
36497 #: ../src/guestfs.pod:3029
36498 msgid ""
36499 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
36500 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
36501 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
36502 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
36503 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
36504 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
36505 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
36506 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
36507 msgstr ""
36508
36509 #. type: textblock
36510 #: ../src/guestfs.pod:3059
36511 msgid ""
36512 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
36513 "(8)>, L<disktype(1)>."
36514 msgstr ""
36515
36516 #. type: =head1
36517 #: ../src/guestfs.pod:3066 ../tools/virt-make-fs.pl:553
36518 #: ../tools/virt-win-reg.pl:761
36519 msgid "BUGS"
36520 msgstr ""
36521
36522 #. type: textblock
36523 #: ../src/guestfs.pod:3068
36524 msgid "To get a list of bugs against libguestfs use this link:"
36525 msgstr ""
36526
36527 #. type: textblock
36528 #: ../src/guestfs.pod:3070
36529 msgid ""
36530 "L<https://bugzilla.redhat.com/buglist.cgi?"
36531 "component=libguestfs&product=Virtualization+Tools>"
36532 msgstr ""
36533
36534 #. type: textblock
36535 #: ../src/guestfs.pod:3072
36536 msgid "To report a new bug against libguestfs use this link:"
36537 msgstr ""
36538
36539 #. type: textblock
36540 #: ../src/guestfs.pod:3074
36541 msgid ""
36542 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
36543 "component=libguestfs&product=Virtualization+Tools>"
36544 msgstr ""
36545
36546 #. type: textblock
36547 #: ../src/guestfs.pod:3076
36548 msgid "When reporting a bug, please check:"
36549 msgstr ""
36550
36551 #. type: textblock
36552 #: ../src/guestfs.pod:3082
36553 msgid "That the bug hasn't been reported already."
36554 msgstr ""
36555
36556 #. type: textblock
36557 #: ../src/guestfs.pod:3086
36558 msgid "That you are testing a recent version."
36559 msgstr ""
36560
36561 #. type: textblock
36562 #: ../src/guestfs.pod:3090
36563 msgid "Describe the bug accurately, and give a way to reproduce it."
36564 msgstr ""
36565
36566 #. type: textblock
36567 #: ../src/guestfs.pod:3094
36568 msgid ""
36569 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
36570 "bug report."
36571 msgstr ""
36572
36573 #. type: textblock
36574 #: ../test-tool/libguestfs-test-tool.pod:5
36575 msgid "libguestfs-test-tool - End user tests for libguestfs"
36576 msgstr ""
36577
36578 #. type: verbatim
36579 #: ../test-tool/libguestfs-test-tool.pod:9
36580 #, no-wrap
36581 msgid ""
36582 " libguestfs-test-tool [--options]\n"
36583 "\n"
36584 msgstr ""
36585
36586 #. type: textblock
36587 #: ../test-tool/libguestfs-test-tool.pod:13
36588 msgid ""
36589 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
36590 "and developers, to allow them to check basic libguestfs functionality is "
36591 "working.  This is needed because libguestfs occasionally breaks for reasons "
36592 "beyond our control: usually because of changes in the underlying qemu or "
36593 "kernel packages, or the host environment."
36594 msgstr ""
36595
36596 #. type: textblock
36597 #: ../test-tool/libguestfs-test-tool.pod:20
36598 msgid "If you suspect a problem in libguestfs, then just run:"
36599 msgstr ""
36600
36601 #. type: verbatim
36602 #: ../test-tool/libguestfs-test-tool.pod:22
36603 #, no-wrap
36604 msgid ""
36605 " libguestfs-test-tool\n"
36606 "\n"
36607 msgstr ""
36608
36609 #. type: textblock
36610 #: ../test-tool/libguestfs-test-tool.pod:24
36611 msgid "It will print lots of diagnostic messages."
36612 msgstr ""
36613
36614 #. type: textblock
36615 #: ../test-tool/libguestfs-test-tool.pod:26
36616 msgid "If it runs to completion successfully, you will see this near the end:"
36617 msgstr ""
36618
36619 #. type: verbatim
36620 #: ../test-tool/libguestfs-test-tool.pod:28
36621 #, no-wrap
36622 msgid ""
36623 " ===== TEST FINISHED OK =====\n"
36624 "\n"
36625 msgstr ""
36626
36627 #. type: textblock
36628 #: ../test-tool/libguestfs-test-tool.pod:30
36629 msgid "and the test tool will exit with code 0."
36630 msgstr ""
36631
36632 #. type: textblock
36633 #: ../test-tool/libguestfs-test-tool.pod:32
36634 msgid ""
36635 "If it fails (and/or exits with non-zero error code), please paste the "
36636 "B<complete, unedited> output of the test tool into a bug report.  More "
36637 "information about reporting bugs can be found on the L<http://libguestfs.org/"
36638 "> website."
36639 msgstr ""
36640
36641 #. type: =item
36642 #: ../test-tool/libguestfs-test-tool.pod:41
36643 msgid "I<--help>"
36644 msgstr ""
36645
36646 #. type: textblock
36647 #: ../test-tool/libguestfs-test-tool.pod:43
36648 msgid "Display short usage information and exit."
36649 msgstr ""
36650
36651 #. type: =item
36652 #: ../test-tool/libguestfs-test-tool.pod:45
36653 msgid "I<--qemu qemu_binary>"
36654 msgstr ""
36655
36656 #. type: textblock
36657 #: ../test-tool/libguestfs-test-tool.pod:47
36658 msgid ""
36659 "If you have downloaded another qemu binary, point this option at the full "
36660 "path of the binary to try it."
36661 msgstr ""
36662
36663 #. type: =item
36664 #: ../test-tool/libguestfs-test-tool.pod:50
36665 msgid "I<--qemudir qemu_source_dir>"
36666 msgstr ""
36667
36668 #. type: textblock
36669 #: ../test-tool/libguestfs-test-tool.pod:52
36670 msgid ""
36671 "If you have compiled qemu from source, point this option at the source "
36672 "directory to try it."
36673 msgstr ""
36674
36675 #. type: =item
36676 #: ../test-tool/libguestfs-test-tool.pod:55
36677 msgid "I<--timeout N>"
36678 msgstr ""
36679
36680 #. type: textblock
36681 #: ../test-tool/libguestfs-test-tool.pod:57
36682 msgid ""
36683 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
36684 "does not usually need to be adjusted unless your machine is very slow."
36685 msgstr ""
36686
36687 #. type: =head1
36688 #: ../test-tool/libguestfs-test-tool.pod:63
36689 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
36690 msgstr ""
36691
36692 #. type: textblock
36693 #: ../test-tool/libguestfs-test-tool.pod:65
36694 msgid ""
36695 "If you have compiled another version of qemu from source and would like to "
36696 "try that, then you can use the I<--qemudir> option to point to the qemu "
36697 "source directory."
36698 msgstr ""
36699
36700 #. type: textblock
36701 #: ../test-tool/libguestfs-test-tool.pod:69
36702 msgid ""
36703 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
36704 "option to point to the binary."
36705 msgstr ""
36706
36707 #. type: textblock
36708 #: ../test-tool/libguestfs-test-tool.pod:72
36709 msgid ""
36710 "When using an alternate qemu with libguestfs, usually you would need to "
36711 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
36712 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
36713 "use either of the I<--qemudir> or I<--qemu> options."
36714 msgstr ""
36715
36716 #. type: textblock
36717 #: ../test-tool/libguestfs-test-tool.pod:79
36718 msgid ""
36719 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
36720 "I<1> if there was an error."
36721 msgstr ""
36722
36723 #. type: textblock
36724 #: ../test-tool/libguestfs-test-tool.pod:84
36725 msgid ""
36726 "For the full list of environment variables which may affect libguestfs, "
36727 "please see the L<guestfs(3)> manual page."
36728 msgstr ""
36729
36730 #. type: textblock
36731 #: ../test-tool/libguestfs-test-tool.pod:89
36732 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
36733 msgstr ""
36734
36735 #. type: textblock
36736 #: ../tools/virt-list-filesystems.pl:32
36737 msgid ""
36738 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
36739 msgstr ""
36740
36741 #. type: verbatim
36742 #: ../tools/virt-list-filesystems.pl:36
36743 #, no-wrap
36744 msgid ""
36745 " virt-list-filesystems [--options] domname\n"
36746 "\n"
36747 msgstr ""
36748
36749 #. type: verbatim
36750 #: ../tools/virt-list-filesystems.pl:38
36751 #, no-wrap
36752 msgid ""
36753 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
36754 "\n"
36755 msgstr ""
36756
36757 #. type: textblock
36758 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
36759 msgid ""
36760 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
36761 "replacement."
36762 msgstr ""
36763
36764 #. type: textblock
36765 #: ../tools/virt-list-filesystems.pl:45
36766 msgid ""
36767 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
36768 "are contained in a virtual machine or disk image."
36769 msgstr ""
36770
36771 #. type: textblock
36772 #: ../tools/virt-list-filesystems.pl:49
36773 msgid ""
36774 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
36775 "functionality.  For more complex cases you should look at the L<guestfish(1)"
36776 "> tool."
36777 msgstr ""
36778
36779 #. type: textblock
36780 #: ../tools/virt-list-filesystems.pl:112
36781 msgid ""
36782 "With this option, C<virt-list-filesystems> displays the type of each "
36783 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
36784 msgstr ""
36785
36786 #. type: =item
36787 #: ../tools/virt-list-filesystems.pl:119
36788 msgid "B<-a>"
36789 msgstr ""
36790
36791 #. type: textblock
36792 #: ../tools/virt-list-filesystems.pl:123
36793 msgid ""
36794 "Normally we only show mountable filesystems.  If this option is given then "
36795 "swap devices are shown too."
36796 msgstr ""
36797
36798 #. type: textblock
36799 #: ../tools/virt-list-filesystems.pl:197
36800 msgid ""
36801 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
36802 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
36803 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36804 msgstr ""
36805
36806 #. type: textblock
36807 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
36808 msgid "Copyright (C) 2009 Red Hat Inc."
36809 msgstr ""
36810
36811 #. type: textblock
36812 #: ../tools/virt-list-partitions.pl:32
36813 msgid ""
36814 "virt-list-partitions - List partitions in a virtual machine or disk image"
36815 msgstr ""
36816
36817 #. type: verbatim
36818 #: ../tools/virt-list-partitions.pl:36
36819 #, no-wrap
36820 msgid ""
36821 " virt-list-partitions [--options] domname\n"
36822 "\n"
36823 msgstr ""
36824
36825 #. type: verbatim
36826 #: ../tools/virt-list-partitions.pl:38
36827 #, no-wrap
36828 msgid ""
36829 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
36830 "\n"
36831 msgstr ""
36832
36833 #. type: textblock
36834 #: ../tools/virt-list-partitions.pl:45
36835 msgid ""
36836 "C<virt-list-partitions> is a command line tool to list the partitions that "
36837 "are contained in a virtual machine or disk image.  It is mainly useful as a "
36838 "first step to using L<virt-resize(1)>."
36839 msgstr ""
36840
36841 #. type: textblock
36842 #: ../tools/virt-list-partitions.pl:50
36843 msgid ""
36844 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
36845 "functionality.  For more complex cases you should look at the L<guestfish(1)"
36846 "> tool."
36847 msgstr ""
36848
36849 #. type: textblock
36850 #: ../tools/virt-list-partitions.pl:113
36851 msgid "Show sizes in human-readable form (eg. \"1G\")."
36852 msgstr ""
36853
36854 #. type: textblock
36855 #: ../tools/virt-list-partitions.pl:123
36856 msgid ""
36857 "With this option, C<virt-list-partitions> displays the type and size of each "
36858 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
36859 msgstr ""
36860
36861 #. type: =item
36862 #: ../tools/virt-list-partitions.pl:130
36863 msgid "B<-t>"
36864 msgstr ""
36865
36866 #. type: =item
36867 #: ../tools/virt-list-partitions.pl:132
36868 msgid "B<--total>"
36869 msgstr ""
36870
36871 #. type: textblock
36872 #: ../tools/virt-list-partitions.pl:134
36873 msgid ""
36874 "Display the total size of each block device (as a separate row or rows)."
36875 msgstr ""
36876
36877 #. type: textblock
36878 #: ../tools/virt-list-partitions.pl:267
36879 msgid ""
36880 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
36881 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
36882 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36883 msgstr ""
36884
36885 #. type: textblock
36886 #: ../tools/virt-list-partitions.pl:283
36887 msgid "Copyright (C) 2009-2010 Red Hat Inc."
36888 msgstr ""
36889
36890 #. type: textblock
36891 #: ../tools/virt-make-fs.pl:37
36892 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
36893 msgstr ""
36894
36895 #. type: verbatim
36896 #: ../tools/virt-make-fs.pl:41
36897 #, no-wrap
36898 msgid ""
36899 " virt-make-fs [--options] input.tar output.img\n"
36900 "\n"
36901 msgstr ""
36902
36903 #. type: verbatim
36904 #: ../tools/virt-make-fs.pl:43
36905 #, no-wrap
36906 msgid ""
36907 " virt-make-fs [--options] input.tar.gz output.img\n"
36908 "\n"
36909 msgstr ""
36910
36911 #. type: verbatim
36912 #: ../tools/virt-make-fs.pl:45
36913 #, no-wrap
36914 msgid ""
36915 " virt-make-fs [--options] directory output.img\n"
36916 "\n"
36917 msgstr ""
36918
36919 #. type: textblock
36920 #: ../tools/virt-make-fs.pl:49
36921 msgid ""
36922 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
36923 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
36924 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
36925 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
36926 "you want to attach these filesystems to existing virtual machines (eg. to "
36927 "import large amounts of read-only data to a VM)."
36928 msgstr ""
36929
36930 #. type: textblock
36931 #: ../tools/virt-make-fs.pl:57
36932 msgid "Basic usage is:"
36933 msgstr ""
36934
36935 #. type: verbatim
36936 #: ../tools/virt-make-fs.pl:59
36937 #, no-wrap
36938 msgid ""
36939 " virt-make-fs input output\n"
36940 "\n"
36941 msgstr ""
36942
36943 #. type: textblock
36944 #: ../tools/virt-make-fs.pl:61
36945 msgid ""
36946 "where C<input> is either a directory containing files that you want to add, "
36947 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
36948 "C<output> is a disk image.  The input type is detected automatically.  The "
36949 "output disk image defaults to a raw ext2 image unless you specify extra "
36950 "flags (see L</OPTIONS> below)."
36951 msgstr ""
36952
36953 #. type: =head2
36954 #: ../tools/virt-make-fs.pl:67
36955 msgid "EXTRA SPACE"
36956 msgstr ""
36957
36958 #. type: textblock
36959 #: ../tools/virt-make-fs.pl:69
36960 msgid ""
36961 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
36962 "the files that it contains, but might have extra space.  Depending on how "
36963 "you are going to use the output, you might think this extra space is wasted "
36964 "and want to minimize it, or you might want to leave space so that more files "
36965 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
36966 "but you can use the I<--size> flag to leave space in the filesystem if you "
36967 "want it."
36968 msgstr ""
36969
36970 #. type: textblock
36971 #: ../tools/virt-make-fs.pl:77
36972 msgid ""
36973 "An alternative way to leave extra space but not make the output image any "
36974 "bigger is to use an alternative disk image format (instead of the default "
36975 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
36976 "image format (check your hypervisor supports this before using it).  This "
36977 "allows you to choose a large I<--size> but the extra space won't actually be "
36978 "allocated in the image until you try to store something in it."
36979 msgstr ""
36980
36981 #. type: textblock
36982 #: ../tools/virt-make-fs.pl:85
36983 msgid ""
36984 "Don't forget that you can also use local commands including L<resize2fs(8)> "
36985 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
36986 "to build another image from scratch."
36987 msgstr ""
36988
36989 #. type: =head3
36990 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
36991 #: ../tools/virt-make-fs.pl:142
36992 msgid "EXAMPLE"
36993 msgstr ""
36994
36995 #. type: verbatim
36996 #: ../tools/virt-make-fs.pl:91
36997 #, no-wrap
36998 msgid ""
36999 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
37000 "\n"
37001 msgstr ""
37002
37003 #. type: =head2
37004 #: ../tools/virt-make-fs.pl:93
37005 msgid "FILESYSTEM TYPE"
37006 msgstr ""
37007
37008 #. type: textblock
37009 #: ../tools/virt-make-fs.pl:95
37010 msgid ""
37011 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
37012 "libguestfs supports can be used (but I<not> read-only formats like "
37013 "ISO9660).  Here are some of the more common choices:"
37014 msgstr ""
37015
37016 #. type: =item
37017 #: ../tools/virt-make-fs.pl:101
37018 msgid "I<ext3>"
37019 msgstr ""
37020
37021 #. type: textblock
37022 #: ../tools/virt-make-fs.pl:103
37023 msgid ""
37024 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
37025 "you are not going to use the filesystem in a way that requires the journal, "
37026 "then this is just wasted overhead."
37027 msgstr ""
37028
37029 #. type: =item
37030 #: ../tools/virt-make-fs.pl:107
37031 msgid "I<ntfs> or I<vfat>"
37032 msgstr ""
37033
37034 #. type: textblock
37035 #: ../tools/virt-make-fs.pl:109
37036 msgid "Useful if exporting data to a Windows guest."
37037 msgstr ""
37038
37039 #. type: textblock
37040 #: ../tools/virt-make-fs.pl:111
37041 msgid ""
37042 "I<Note for vfat>: The tar archive or local directory must only contain files "
37043 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
37044 "program running within libguestfs is unable to change the ownership of non-"
37045 "root files, since vfat itself does not support this."
37046 msgstr ""
37047
37048 #. type: =item
37049 #: ../tools/virt-make-fs.pl:116
37050 msgid "I<minix>"
37051 msgstr ""
37052
37053 #. type: textblock
37054 #: ../tools/virt-make-fs.pl:118
37055 msgid ""
37056 "Lower overhead than C<ext2>, but certain limitations on filename length and "
37057 "total filesystem size."
37058 msgstr ""
37059
37060 #. type: verbatim
37061 #: ../tools/virt-make-fs.pl:125
37062 #, no-wrap
37063 msgid ""
37064 " virt-make-fs --type=minix input minixfs.img\n"
37065 "\n"
37066 msgstr ""
37067
37068 #. type: =head2
37069 #: ../tools/virt-make-fs.pl:127
37070 msgid "TO PARTITION OR NOT TO PARTITION"
37071 msgstr ""
37072
37073 #. type: textblock
37074 #: ../tools/virt-make-fs.pl:129
37075 msgid "Optionally virt-make-fs can add a partition table to the output disk."
37076 msgstr ""
37077
37078 #. type: textblock
37079 #: ../tools/virt-make-fs.pl:131
37080 msgid ""
37081 "Adding a partition can make the disk image more compatible with certain "
37082 "virtualized operating systems which don't expect to see a filesystem "
37083 "directly located on a block device (Linux doesn't care and will happily "
37084 "handle both types)."
37085 msgstr ""
37086
37087 #. type: textblock
37088 #: ../tools/virt-make-fs.pl:136
37089 msgid ""
37090 "On the other hand, if you have a partition table then the output image is no "
37091 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
37092 "directly on a partitioned disk image.  (However libguestfs tools such as "
37093 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
37094 msgstr ""
37095
37096 #. type: textblock
37097 #: ../tools/virt-make-fs.pl:144
37098 msgid "Add an MBR partition:"
37099 msgstr ""
37100
37101 #. type: verbatim
37102 #: ../tools/virt-make-fs.pl:146
37103 #, no-wrap
37104 msgid ""
37105 " virt-make-fs --partition -- input disk.img\n"
37106 "\n"
37107 msgstr ""
37108
37109 #. type: textblock
37110 #: ../tools/virt-make-fs.pl:148
37111 msgid ""
37112 "If the output disk image could be terabyte-sized or larger, it's better to "
37113 "use an EFI/GPT-compatible partition table:"
37114 msgstr ""
37115
37116 #. type: verbatim
37117 #: ../tools/virt-make-fs.pl:151
37118 #, no-wrap
37119 msgid ""
37120 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
37121 "\n"
37122 msgstr ""
37123
37124 #. type: textblock
37125 #: ../tools/virt-make-fs.pl:179
37126 msgid "Enable debugging information."
37127 msgstr ""
37128
37129 #. type: =item
37130 #: ../tools/virt-make-fs.pl:185
37131 msgid "B<--size=E<lt>NE<gt>>"
37132 msgstr ""
37133
37134 #. type: =item
37135 #: ../tools/virt-make-fs.pl:187
37136 msgid "B<--size=+E<lt>NE<gt>>"
37137 msgstr ""
37138
37139 #. type: =item
37140 #: ../tools/virt-make-fs.pl:189
37141 msgid "B<-s E<lt>NE<gt>>"
37142 msgstr ""
37143
37144 #. type: =item
37145 #: ../tools/virt-make-fs.pl:191
37146 msgid "B<-s +E<lt>NE<gt>>"
37147 msgstr ""
37148
37149 #. type: textblock
37150 #: ../tools/virt-make-fs.pl:193
37151 msgid ""
37152 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
37153 msgstr ""
37154
37155 #. type: textblock
37156 #: ../tools/virt-make-fs.pl:196
37157 msgid ""
37158 "If this option is I<not> given, then the output image will be just large "
37159 "enough to contain all the files, with not much wasted space."
37160 msgstr ""
37161
37162 #. type: textblock
37163 #: ../tools/virt-make-fs.pl:199
37164 msgid ""
37165 "To choose a fixed size output disk, specify an absolute number followed by b/"
37166 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37167 "Petabytes or Exabytes.  This must be large enough to contain all the input "
37168 "files, else you will get an error."
37169 msgstr ""
37170
37171 #. type: textblock
37172 #: ../tools/virt-make-fs.pl:204
37173 msgid ""
37174 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
37175 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37176 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
37177 "the input files, and (approximately) an extra 200 MB free space."
37178 msgstr ""
37179
37180 #. type: textblock
37181 #: ../tools/virt-make-fs.pl:210
37182 msgid ""
37183 "Note that virt-make-fs estimates free space, and therefore will not produce "
37184 "filesystems containing precisely the free space requested.  (It is much more "
37185 "expensive and time-consuming to produce a filesystem which has precisely the "
37186 "desired free space)."
37187 msgstr ""
37188
37189 #. type: =item
37190 #: ../tools/virt-make-fs.pl:219
37191 msgid "B<--format=E<lt>fmtE<gt>>"
37192 msgstr ""
37193
37194 #. type: =item
37195 #: ../tools/virt-make-fs.pl:221
37196 msgid "B<-F E<lt>fmtE<gt>>"
37197 msgstr ""
37198
37199 #. type: textblock
37200 #: ../tools/virt-make-fs.pl:223
37201 msgid "Choose the output disk image format."
37202 msgstr ""
37203
37204 #. type: textblock
37205 #: ../tools/virt-make-fs.pl:225
37206 msgid "The default is C<raw> (raw disk image)."
37207 msgstr ""
37208
37209 #. type: textblock
37210 #: ../tools/virt-make-fs.pl:227
37211 msgid ""
37212 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
37213 "that would really make sense here is C<qcow2>."
37214 msgstr ""
37215
37216 #. type: =item
37217 #: ../tools/virt-make-fs.pl:234
37218 msgid "B<--type=E<lt>fsE<gt>>"
37219 msgstr ""
37220
37221 #. type: =item
37222 #: ../tools/virt-make-fs.pl:236
37223 msgid "B<-t E<lt>fsE<gt>>"
37224 msgstr ""
37225
37226 #. type: textblock
37227 #: ../tools/virt-make-fs.pl:238
37228 msgid "Choose the output filesystem type."
37229 msgstr ""
37230
37231 #. type: textblock
37232 #: ../tools/virt-make-fs.pl:240
37233 msgid "The default is C<ext2>."
37234 msgstr ""
37235
37236 #. type: textblock
37237 #: ../tools/virt-make-fs.pl:242
37238 msgid ""
37239 "Any filesystem which is supported read-write by libguestfs can be used here."
37240 msgstr ""
37241
37242 #. type: =item
37243 #: ../tools/virt-make-fs.pl:249
37244 msgid "B<--partition>"
37245 msgstr ""
37246
37247 #. type: =item
37248 #: ../tools/virt-make-fs.pl:251
37249 msgid "B<--partition=E<lt>parttypeE<gt>>"
37250 msgstr ""
37251
37252 #. type: textblock
37253 #: ../tools/virt-make-fs.pl:253
37254 msgid ""
37255 "If specified, this flag adds an MBR partition table to the output disk image."
37256 msgstr ""
37257
37258 #. type: textblock
37259 #: ../tools/virt-make-fs.pl:256
37260 msgid ""
37261 "You can change the partition table type, eg. I<--partition=gpt> for large "
37262 "disks."
37263 msgstr ""
37264
37265 #. type: textblock
37266 #: ../tools/virt-make-fs.pl:259
37267 msgid ""
37268 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
37269 "might consider the next parameter to be the partition type.  For example:"
37270 msgstr ""
37271
37272 #. type: verbatim
37273 #: ../tools/virt-make-fs.pl:263
37274 #, no-wrap
37275 msgid ""
37276 " virt-make-fs --partition input.tar ...\n"
37277 "\n"
37278 msgstr ""
37279
37280 #. type: textblock
37281 #: ../tools/virt-make-fs.pl:265
37282 msgid ""
37283 "would cause virt-make-fs to think you wanted to use a partition type of "
37284 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
37285 "dash) between options and the input file argument:"
37286 msgstr ""
37287
37288 #. type: verbatim
37289 #: ../tools/virt-make-fs.pl:269
37290 #, no-wrap
37291 msgid ""
37292 " virt-make-fs --partition -- input.tar ...\n"
37293 "\n"
37294 msgstr ""
37295
37296 #. type: textblock
37297 #: ../tools/virt-make-fs.pl:541
37298 msgid ""
37299 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
37300 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
37301 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
37302 msgstr ""
37303
37304 #. type: textblock
37305 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
37306 msgid ""
37307 "When reporting bugs, please enable debugging and capture the I<complete> "
37308 "output:"
37309 msgstr ""
37310
37311 #. type: verbatim
37312 #: ../tools/virt-make-fs.pl:558
37313 #, no-wrap
37314 msgid ""
37315 " export LIBGUESTFS_DEBUG=1\n"
37316 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
37317 "\n"
37318 msgstr ""
37319
37320 #. type: textblock
37321 #: ../tools/virt-make-fs.pl:561
37322 msgid ""
37323 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
37324 "redhat.com/>"
37325 msgstr ""
37326
37327 #. type: textblock
37328 #: ../tools/virt-tar.pl:33
37329 msgid "virt-tar - Extract or upload files to a virtual machine"
37330 msgstr ""
37331
37332 #. type: verbatim
37333 #: ../tools/virt-tar.pl:37
37334 #, no-wrap
37335 msgid ""
37336 " virt-tar [--options] -x domname directory tarball\n"
37337 "\n"
37338 msgstr ""
37339
37340 #. type: verbatim
37341 #: ../tools/virt-tar.pl:39
37342 #, no-wrap
37343 msgid ""
37344 " virt-tar [--options] -u domname tarball directory\n"
37345 "\n"
37346 msgstr ""
37347
37348 #. type: verbatim
37349 #: ../tools/virt-tar.pl:41
37350 #, no-wrap
37351 msgid ""
37352 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
37353 "\n"
37354 msgstr ""
37355
37356 #. type: verbatim
37357 #: ../tools/virt-tar.pl:43
37358 #, no-wrap
37359 msgid ""
37360 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
37361 "\n"
37362 msgstr ""
37363
37364 #. type: =head2
37365 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
37366 msgid "NOTE"
37367 msgstr ""
37368
37369 #. type: textblock
37370 #: ../tools/virt-tar.pl:47
37371 msgid ""
37372 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
37373 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
37374 msgstr ""
37375
37376 #. type: textblock
37377 #: ../tools/virt-tar.pl:52
37378 msgid "Download C</home> from the VM into a local tarball:"
37379 msgstr ""
37380
37381 #. type: verbatim
37382 #: ../tools/virt-tar.pl:54
37383 #, no-wrap
37384 msgid ""
37385 " virt-tar -x domname /home home.tar\n"
37386 "\n"
37387 msgstr ""
37388
37389 #. type: verbatim
37390 #: ../tools/virt-tar.pl:56
37391 #, no-wrap
37392 msgid ""
37393 " virt-tar -zx domname /home home.tar.gz\n"
37394 "\n"
37395 msgstr ""
37396
37397 #. type: textblock
37398 #: ../tools/virt-tar.pl:58
37399 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
37400 msgstr ""
37401
37402 #. type: verbatim
37403 #: ../tools/virt-tar.pl:60
37404 #, no-wrap
37405 msgid ""
37406 " virt-tar -u domname uploadstuff.tar /tmp\n"
37407 "\n"
37408 msgstr ""
37409
37410 #. type: verbatim
37411 #: ../tools/virt-tar.pl:62
37412 #, no-wrap
37413 msgid ""
37414 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
37415 "\n"
37416 msgstr ""
37417
37418 #. type: textblock
37419 #: ../tools/virt-tar.pl:66
37420 msgid ""
37421 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
37422 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
37423 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
37424 msgstr ""
37425
37426 #. type: textblock
37427 #: ../tools/virt-tar.pl:71
37428 msgid ""
37429 "You can use I<-x> (extract) on live virtual machines, but you might get "
37430 "inconsistent results or errors if there is filesystem activity inside the "
37431 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
37432 "work, but the only way to guarantee consistent results is if the virtual "
37433 "machine is shut down."
37434 msgstr ""
37435
37436 #. type: textblock
37437 #: ../tools/virt-tar.pl:79
37438 msgid ""
37439 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
37440 "parts of a guest filesystem.  There are many possibilities: making backups, "
37441 "uploading data files, snooping on guest activity, fixing or customizing "
37442 "guests, etc."
37443 msgstr ""
37444
37445 #. type: textblock
37446 #: ../tools/virt-tar.pl:84
37447 msgid ""
37448 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
37449 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
37450 "should look at the L<guestfish(1)> tool."
37451 msgstr ""
37452
37453 #. type: textblock
37454 #: ../tools/virt-tar.pl:88
37455 msgid ""
37456 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
37457 "its contents (recursively) from the virtual machine into a local tarball.  "
37458 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
37459 "virtual machine.  You cannot use these two options together."
37460 msgstr ""
37461
37462 #. type: textblock
37463 #: ../tools/virt-tar.pl:94
37464 msgid ""
37465 "In addition, you may need to use the I<-z> (gZip) option to enable "
37466 "compression.  When uploading, you have to specify I<-z> if the upload file "
37467 "is compressed because virt-tar won't detect this on its own."
37468 msgstr ""
37469
37470 #. type: textblock
37471 #: ../tools/virt-tar.pl:98
37472 msgid ""
37473 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
37474 "example it cannot do PKZip files or bzip2 compression.  If you want that "
37475 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
37476 "the L<libguestfs(3)> API)."
37477 msgstr ""
37478
37479 #. type: =item
37480 #: ../tools/virt-tar.pl:160
37481 msgid "B<--extract>"
37482 msgstr ""
37483
37484 #. type: =item
37485 #: ../tools/virt-tar.pl:162
37486 msgid "B<--download>"
37487 msgstr ""
37488
37489 #. type: =item
37490 #: ../tools/virt-tar.pl:164
37491 msgid "B<-u>"
37492 msgstr ""
37493
37494 #. type: =item
37495 #: ../tools/virt-tar.pl:166
37496 msgid "B<--upload>"
37497 msgstr ""
37498
37499 #. type: textblock
37500 #: ../tools/virt-tar.pl:168
37501 msgid ""
37502 "Use I<-x> to extract (download) a directory from a virtual machine to a "
37503 "local tarball."
37504 msgstr ""
37505
37506 #. type: textblock
37507 #: ../tools/virt-tar.pl:171
37508 msgid ""
37509 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
37510 "Please read the L</WARNING> section above before using this option."
37511 msgstr ""
37512
37513 #. type: textblock
37514 #: ../tools/virt-tar.pl:175
37515 msgid "You must specify exactly one of these options."
37516 msgstr ""
37517
37518 #. type: =item
37519 #: ../tools/virt-tar.pl:181
37520 msgid "B<-z>"
37521 msgstr ""
37522
37523 #. type: =item
37524 #: ../tools/virt-tar.pl:183
37525 msgid "B<--gzip>"
37526 msgstr ""
37527
37528 #. type: textblock
37529 #: ../tools/virt-tar.pl:185
37530 msgid "Specify that the input or output tarball is gzip-compressed."
37531 msgstr ""
37532
37533 #. type: textblock
37534 #: ../tools/virt-tar.pl:298
37535 msgid ""
37536 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
37537 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
37538 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
37539 "org/>."
37540 msgstr ""
37541
37542 #. type: textblock
37543 #: ../tools/virt-win-reg.pl:37
37544 msgid ""
37545 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
37546 msgstr ""
37547
37548 #. type: verbatim
37549 #: ../tools/virt-win-reg.pl:41
37550 #, no-wrap
37551 msgid ""
37552 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
37553 "\n"
37554 msgstr ""
37555
37556 #. type: verbatim
37557 #: ../tools/virt-win-reg.pl:43
37558 #, no-wrap
37559 msgid ""
37560 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
37561 "\n"
37562 msgstr ""
37563
37564 #. type: verbatim
37565 #: ../tools/virt-win-reg.pl:45
37566 #, no-wrap
37567 msgid ""
37568 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
37569 "\n"
37570 msgstr ""
37571
37572 #. type: verbatim
37573 #: ../tools/virt-win-reg.pl:47
37574 #, no-wrap
37575 msgid ""
37576 " virt-win-reg --merge domname [input.reg ...]\n"
37577 "\n"
37578 msgstr ""
37579
37580 #. type: verbatim
37581 #: ../tools/virt-win-reg.pl:49
37582 #, no-wrap
37583 msgid ""
37584 " virt-win-reg [--options] disk.img ... # instead of domname\n"
37585 "\n"
37586 msgstr ""
37587
37588 #. type: textblock
37589 #: ../tools/virt-win-reg.pl:53
37590 msgid ""
37591 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
37592 "virtual machines.  If you do this, you I<will> get irreversible disk "
37593 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
37594 "but doesn't catch all cases."
37595 msgstr ""
37596
37597 #. type: textblock
37598 #: ../tools/virt-win-reg.pl:58
37599 msgid ""
37600 "Modifying the Windows Registry is an inherently risky operation.  The format "
37601 "is deliberately obscure and undocumented, and Registry changes can leave the "
37602 "system unbootable.  Therefore when using the I<--merge> option, make sure "
37603 "you have a reliable backup first."
37604 msgstr ""
37605
37606 #. type: textblock
37607 #: ../tools/virt-win-reg.pl:65
37608 msgid ""
37609 "This program can export and merge Windows Registry entries from a Windows "
37610 "guest."
37611 msgstr ""
37612
37613 #. type: textblock
37614 #: ../tools/virt-win-reg.pl:68
37615 msgid ""
37616 "The first parameter is the libvirt guest name or the raw disk image of a "
37617 "Windows guest."
37618 msgstr ""
37619
37620 #. type: textblock
37621 #: ../tools/virt-win-reg.pl:71
37622 msgid ""
37623 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
37624 "exported (recursively).  For example:"
37625 msgstr ""
37626
37627 #. type: verbatim
37628 #: ../tools/virt-win-reg.pl:74
37629 #, no-wrap
37630 msgid ""
37631 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
37632 "\n"
37633 msgstr ""
37634
37635 #. type: textblock
37636 #: ../tools/virt-win-reg.pl:76
37637 msgid ""
37638 "You can also display single values from within registry keys, for example:"
37639 msgstr ""
37640
37641 #. type: verbatim
37642 #: ../tools/virt-win-reg.pl:79
37643 #, no-wrap
37644 msgid ""
37645 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
37646 " $ virt-win-reg Windows7 $cvkey ProductName\n"
37647 " Windows 7 Enterprise\n"
37648 "\n"
37649 msgstr ""
37650
37651 #. type: textblock
37652 #: ../tools/virt-win-reg.pl:83
37653 msgid ""
37654 "With I<--merge>, you can merge a textual regedit file into the Windows "
37655 "Registry:"
37656 msgstr ""
37657
37658 #. type: verbatim
37659 #: ../tools/virt-win-reg.pl:86
37660 #, no-wrap
37661 msgid ""
37662 " $ virt-win-reg --merge Windows7 changes.reg\n"
37663 "\n"
37664 msgstr ""
37665
37666 #. type: textblock
37667 #: ../tools/virt-win-reg.pl:90
37668 msgid ""
37669 "This program is only meant for simple access to the registry.  If you want "
37670 "to do complicated things with the registry, we suggest you download the "
37671 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
37672 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
37673 "L<hivexregedit(1)>."
37674 msgstr ""
37675
37676 #. type: =item
37677 #: ../tools/virt-win-reg.pl:159
37678 msgid "B<--merge>"
37679 msgstr ""
37680
37681 #. type: textblock
37682 #: ../tools/virt-win-reg.pl:161
37683 msgid ""
37684 "In merge mode, this merges a textual regedit file into the Windows Registry "
37685 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
37686 "displays or exports Registry entries instead."
37687 msgstr ""
37688
37689 #. type: textblock
37690 #: ../tools/virt-win-reg.pl:165
37691 msgid ""
37692 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
37693 "result in disk corruption.  However exporting (without this flag)  is always "
37694 "safe."
37695 msgstr ""
37696
37697 #. type: =item
37698 #: ../tools/virt-win-reg.pl:173
37699 msgid "B<--encoding> UTF-16LE|ASCII"
37700 msgstr ""
37701
37702 #. type: textblock
37703 #: ../tools/virt-win-reg.pl:175
37704 msgid ""
37705 "When merging (only), you may need to specify the encoding for strings to be "
37706 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
37707 "(3)/ENCODING STRINGS>."
37708 msgstr ""
37709
37710 #. type: textblock
37711 #: ../tools/virt-win-reg.pl:179
37712 msgid ""
37713 "The default is to use UTF-16LE, which should work with recent versions of "
37714 "Windows."
37715 msgstr ""
37716
37717 #. type: =item
37718 #: ../tools/virt-win-reg.pl:186
37719 msgid "B<--unsafe-printable-strings>"
37720 msgstr ""
37721
37722 #. type: textblock
37723 #: ../tools/virt-win-reg.pl:188
37724 msgid ""
37725 "When exporting (only), assume strings are UTF-16LE and print them as strings "
37726 "instead of hex sequences.  Remove the final zero codepoint from strings if "
37727 "present."
37728 msgstr ""
37729
37730 #. type: textblock
37731 #: ../tools/virt-win-reg.pl:192
37732 msgid ""
37733 "This is unsafe and does not preserve the fidelity of strings in the original "
37734 "Registry for various reasons:"
37735 msgstr ""
37736
37737 #. type: textblock
37738 #: ../tools/virt-win-reg.pl:199
37739 msgid ""
37740 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
37741 "other encodings will be corrupted by this transformation."
37742 msgstr ""
37743
37744 #. type: textblock
37745 #: ../tools/virt-win-reg.pl:204
37746 msgid ""
37747 "Assumes that everything which has type 1 or 2 is really a string and that "
37748 "everything else is not a string, but the type field in real Registries is "
37749 "not reliable."
37750 msgstr ""
37751
37752 #. type: textblock
37753 #: ../tools/virt-win-reg.pl:210
37754 msgid ""
37755 "Loses information about whether a zero codepoint followed the string in the "
37756 "Registry or not."
37757 msgstr ""
37758
37759 #. type: textblock
37760 #: ../tools/virt-win-reg.pl:215
37761 msgid ""
37762 "This all happens because the Registry itself contains no information about "
37763 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
37764 msgstr ""
37765
37766 #. type: textblock
37767 #: ../tools/virt-win-reg.pl:219
37768 msgid ""
37769 "You should only use this option for quick hacking and debugging of the "
37770 "Registry contents, and I<never> use it if the output is going to be passed "
37771 "into another program or stored in another Registry."
37772 msgstr ""
37773
37774 #. type: =head1
37775 #: ../tools/virt-win-reg.pl:556
37776 msgid "SUPPORTED SYSTEMS"
37777 msgstr ""
37778
37779 #. type: textblock
37780 #: ../tools/virt-win-reg.pl:558
37781 msgid ""
37782 "The program currently supports Windows NT-derived guests starting with "
37783 "Windows XP through to at least Windows 7."
37784 msgstr ""
37785
37786 #. type: textblock
37787 #: ../tools/virt-win-reg.pl:561
37788 msgid "The following Registry keys are supported:"
37789 msgstr ""
37790
37791 #. type: =item
37792 #: ../tools/virt-win-reg.pl:565
37793 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
37794 msgstr ""
37795
37796 #. type: =item
37797 #: ../tools/virt-win-reg.pl:567
37798 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
37799 msgstr ""
37800
37801 #. type: =item
37802 #: ../tools/virt-win-reg.pl:569
37803 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
37804 msgstr ""
37805
37806 #. type: =item
37807 #: ../tools/virt-win-reg.pl:571
37808 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
37809 msgstr ""
37810
37811 #. type: =item
37812 #: ../tools/virt-win-reg.pl:573
37813 msgid "C<HKEY_USERS\\.DEFAULT>"
37814 msgstr ""
37815
37816 #. type: =item
37817 #: ../tools/virt-win-reg.pl:575
37818 msgid "C<HKEY_USERS\\I<SID>>"
37819 msgstr ""
37820
37821 #. type: textblock
37822 #: ../tools/virt-win-reg.pl:577
37823 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
37824 msgstr ""
37825
37826 #. type: =item
37827 #: ../tools/virt-win-reg.pl:579
37828 msgid "C<HKEY_USERS\\I<username>>"
37829 msgstr ""
37830
37831 #. type: textblock
37832 #: ../tools/virt-win-reg.pl:581
37833 msgid ""
37834 "where I<username> is a local user name (this is a libguestfs extension)."
37835 msgstr ""
37836
37837 #. type: textblock
37838 #: ../tools/virt-win-reg.pl:585
37839 msgid ""
37840 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
37841 "C<HKEY_USERS>."
37842 msgstr ""
37843
37844 #. type: textblock
37845 #: ../tools/virt-win-reg.pl:588
37846 msgid ""
37847 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
37848 "supported (there is no \"current user\")."
37849 msgstr ""
37850
37851 #. type: =head1
37852 #: ../tools/virt-win-reg.pl:591
37853 msgid "ENCODING"
37854 msgstr ""
37855
37856 #. type: textblock
37857 #: ../tools/virt-win-reg.pl:593
37858 msgid ""
37859 "C<virt-win-reg> expects that regedit files have already been reencoded in "
37860 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
37861 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
37862 "Windows-style line endings, you may need to reencode the whole file before "
37863 "or after processing."
37864 msgstr ""
37865
37866 #. type: textblock
37867 #: ../tools/virt-win-reg.pl:599
37868 msgid ""
37869 "To reencode a file from Windows format to Linux (before processing it with "
37870 "the I<--merge> option), you would do something like this:"
37871 msgstr ""
37872
37873 #. type: verbatim
37874 #: ../tools/virt-win-reg.pl:602
37875 #, no-wrap
37876 msgid ""
37877 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
37878 "\n"
37879 msgstr ""
37880
37881 #. type: textblock
37882 #: ../tools/virt-win-reg.pl:604
37883 msgid ""
37884 "To go in the opposite direction, after exporting and before sending the file "
37885 "to a Windows user, do something like this:"
37886 msgstr ""
37887
37888 #. type: verbatim
37889 #: ../tools/virt-win-reg.pl:607
37890 #, no-wrap
37891 msgid ""
37892 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
37893 "\n"
37894 msgstr ""
37895
37896 #. type: textblock
37897 #: ../tools/virt-win-reg.pl:609
37898 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
37899 msgstr ""
37900
37901 #. type: textblock
37902 #: ../tools/virt-win-reg.pl:611
37903 msgid ""
37904 "If you are unsure about the current encoding, use the L<file(1)> command.  "
37905 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
37906 "style (CRLF) line endings, like this:"
37907 msgstr ""
37908
37909 #. type: verbatim
37910 #: ../tools/virt-win-reg.pl:615
37911 #, no-wrap
37912 msgid ""
37913 " $ file software.reg\n"
37914 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
37915 " with CRLF line terminators\n"
37916 "\n"
37917 msgstr ""
37918
37919 #. type: textblock
37920 #: ../tools/virt-win-reg.pl:619
37921 msgid "This file would need conversion before you could I<--merge> it."
37922 msgstr ""
37923
37924 #. type: =head1
37925 #: ../tools/virt-win-reg.pl:621
37926 msgid "CurrentControlSet etc."
37927 msgstr ""
37928
37929 #. type: textblock
37930 #: ../tools/virt-win-reg.pl:623
37931 msgid ""
37932 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
37933 "Registry at the level of the hive file, and therefore you cannot modify "
37934 "these."
37935 msgstr ""
37936
37937 #. type: textblock
37938 #: ../tools/virt-win-reg.pl:627
37939 msgid ""
37940 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
37941 "circumstances it might refer to another control set.  The way to find out is "
37942 "to look at the C<HKLM\\SYSTEM\\Select> key:"
37943 msgstr ""
37944
37945 #. type: verbatim
37946 #: ../tools/virt-win-reg.pl:631
37947 #, no-wrap
37948 msgid ""
37949 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
37950 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
37951 " \"Current\"=dword:00000001\n"
37952 " \"Default\"=dword:00000001\n"
37953 " \"Failed\"=dword:00000000\n"
37954 " \"LastKnownGood\"=dword:00000002\n"
37955 "\n"
37956 msgstr ""
37957
37958 #. type: textblock
37959 #: ../tools/virt-win-reg.pl:638
37960 msgid "\"Current\" is the one which Windows will choose when it boots."
37961 msgstr ""
37962
37963 #. type: textblock
37964 #: ../tools/virt-win-reg.pl:640
37965 msgid ""
37966 "Similarly, other C<Current...> keys in the path may need to be replaced."
37967 msgstr ""
37968
37969 #. type: =head1
37970 #: ../tools/virt-win-reg.pl:643
37971 msgid "WINDOWS TIPS"
37972 msgstr ""
37973
37974 #. type: textblock
37975 #: ../tools/virt-win-reg.pl:645
37976 msgid ""
37977 "Note that some of these tips modify the guest disk image.  The guest I<must> "
37978 "be shut off, else you will get disk corruption."
37979 msgstr ""
37980
37981 #. type: =head2
37982 #: ../tools/virt-win-reg.pl:648
37983 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
37984 msgstr ""
37985
37986 #. type: textblock
37987 #: ../tools/virt-win-reg.pl:650
37988 msgid ""
37989 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
37990 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
37991 "is uploaded into C<C:\\>:"
37992 msgstr ""
37993
37994 #. type: verbatim
37995 #: ../tools/virt-win-reg.pl:654
37996 #, no-wrap
37997 msgid ""
37998 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
37999 "\n"
38000 msgstr ""
38001
38002 #. type: textblock
38003 #: ../tools/virt-win-reg.pl:656
38004 msgid "Prepare a regedit file containing the registry change:"
38005 msgstr ""
38006
38007 #. type: verbatim
38008 #: ../tools/virt-win-reg.pl:658
38009 #, no-wrap
38010 msgid ""
38011 " cat > test.reg <<'EOF'\n"
38012 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
38013 " \"Test\"=\"c:\\\\test.bat\"\n"
38014 " EOF\n"
38015 "\n"
38016 msgstr ""
38017
38018 #. type: textblock
38019 #: ../tools/virt-win-reg.pl:663
38020 msgid ""
38021 "In this example we use the key C<RunOnce> which means that the script will "
38022 "run precisely once when the first user logs in.  If you want it to run every "
38023 "time a user logs in, replace C<RunOnce> with C<Run>."
38024 msgstr ""
38025
38026 #. type: textblock
38027 #: ../tools/virt-win-reg.pl:667
38028 msgid "Now update the registry:"
38029 msgstr ""
38030
38031 #. type: verbatim
38032 #: ../tools/virt-win-reg.pl:669
38033 #, no-wrap
38034 msgid ""
38035 " virt-win-reg --merge WindowsGuest test.reg\n"
38036 "\n"
38037 msgstr ""
38038
38039 #. type: =head2
38040 #: ../tools/virt-win-reg.pl:671
38041 msgid "INSTALLING A SERVICE"
38042 msgstr ""
38043
38044 #. type: textblock
38045 #: ../tools/virt-win-reg.pl:673
38046 msgid ""
38047 "This section assumes you are familiar with Windows services, and you either "
38048 "have a program which handles the Windows Service Control Protocol directly "
38049 "or you want to run any program using a service wrapper like SrvAny or the "
38050 "free RHSrvAny."
38051 msgstr ""
38052
38053 #. type: textblock
38054 #: ../tools/virt-win-reg.pl:678
38055 msgid ""
38056 "First upload the program and optionally the service wrapper.  In this case "
38057 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
38058 msgstr ""
38059
38060 #. type: verbatim
38061 #: ../tools/virt-win-reg.pl:682
38062 #, no-wrap
38063 msgid ""
38064 " guestfish -i -d WindowsGuest <<EOF\n"
38065 "   upload rhsrvany.exe /rhsrvany.exe\n"
38066 "   upload test.exe /test.exe\n"
38067 " EOF\n"
38068 "\n"
38069 msgstr ""
38070
38071 #. type: textblock
38072 #: ../tools/virt-win-reg.pl:687
38073 msgid ""
38074 "Prepare a regedit file containing the registry changes.  In this example, "
38075 "the first registry change is needed for the service itself or the service "
38076 "wrapper (if used).  The second registry change is only needed because I am "
38077 "using the RHSrvAny service wrapper."
38078 msgstr ""
38079
38080 #. type: verbatim
38081 #: ../tools/virt-win-reg.pl:692
38082 #, no-wrap
38083 msgid ""
38084 " cat > service.reg <<'EOF'\n"
38085 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
38086 " \"Type\"=dword:00000010\n"
38087 " \"Start\"=dword:00000002\n"
38088 " \"ErrorControl\"=dword:00000001\n"
38089 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
38090 " \"DisplayName\"=\"RHSrvAny\"\n"
38091 " \"ObjectName\"=\"NetworkService\"\n"
38092 " \n"
38093 msgstr ""
38094
38095 #. type: verbatim
38096 #: ../tools/virt-win-reg.pl:701
38097 #, no-wrap
38098 msgid ""
38099 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
38100 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
38101 " \"PWD\"=\"c:\\\\Temp\"\n"
38102 " EOF\n"
38103 "\n"
38104 msgstr ""
38105
38106 #. type: textblock
38107 #: ../tools/virt-win-reg.pl:712
38108 msgid ""
38109 "For use of C<ControlSet001> see the section above in this manual page.  You "
38110 "may need to adjust this according to the control set that is in use by the "
38111 "guest."
38112 msgstr ""
38113
38114 #. type: textblock
38115 #: ../tools/virt-win-reg.pl:718
38116 msgid ""
38117 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
38118 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
38119 "privileged account."
38120 msgstr ""
38121
38122 #. type: textblock
38123 #: ../tools/virt-win-reg.pl:724
38124 msgid ""
38125 "For the meaning of the magic numbers, see this Microsoft KB article: "
38126 "L<http://support.microsoft.com/kb/103000>."
38127 msgstr ""
38128
38129 #. type: textblock
38130 #: ../tools/virt-win-reg.pl:729
38131 msgid "Update the registry:"
38132 msgstr ""
38133
38134 #. type: verbatim
38135 #: ../tools/virt-win-reg.pl:731
38136 #, no-wrap
38137 msgid ""
38138 " virt-win-reg --merge WindowsGuest service.reg\n"
38139 "\n"
38140 msgstr ""
38141
38142 #. type: textblock
38143 #: ../tools/virt-win-reg.pl:735
38144 msgid ""
38145 "Be careful when passing parameters containing C<\\> (backslash) in the "
38146 "shell.  Usually you will have to use 'single quotes' or double backslashes "
38147 "(but not both) to protect them from the shell."
38148 msgstr ""
38149
38150 #. type: textblock
38151 #: ../tools/virt-win-reg.pl:739
38152 msgid "Paths and value names are case-insensitive."
38153 msgstr ""
38154
38155 #. type: textblock
38156 #: ../tools/virt-win-reg.pl:748
38157 msgid ""
38158 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
38159 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
38160 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38161 msgstr ""
38162
38163 #. type: verbatim
38164 #: ../tools/virt-win-reg.pl:766
38165 #, no-wrap
38166 msgid ""
38167 " export LIBGUESTFS_DEBUG=1\n"
38168 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
38169 "\n"
38170 msgstr ""
38171
38172 #. type: textblock
38173 #: ../tools/virt-win-reg.pl:769
38174 msgid ""
38175 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
38176 "redhat.com/>"
38177 msgstr ""