test-tool: Display TMPDIR.
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # rjones <rjones@redhat.com>, 2011.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-09-01 18:55+0200\n"
11 "PO-Revision-Date: 2011-07-17 20:50+0000\n"
12 "Last-Translator: rjones <rjones@redhat.com>\n"
13 "Language-Team: Japanese (http://www.transifex.net/projects/p/fedora/team/"
14 "ja/)\n"
15 "Language: ja\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=1; plural=0\n"
20
21 #. type: =head1
22 #: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
23 #: ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
24 #: ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14
25 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
26 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
27 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
28 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
29 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
30 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
31 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
32 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
33 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
34 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
35 #: ../tools/virt-win-reg.pl:35
36 msgid "NAME"
37 msgstr "名前"
38
39 #. type: textblock
40 #: ../cat/virt-cat.pod:5
41 msgid "virt-cat - Display files in a virtual machine"
42 msgstr ""
43
44 #. type: =head1
45 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
46 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
47 #: ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7
48 #: ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7
49 #: ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7
50 #: ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7
51 #: ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7
52 #: ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7
53 #: ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7
54 #: ../ruby/examples/guestfs-ruby.pod:7 ../src/guestfs.pod:7
55 #: ../test-tool/libguestfs-test-tool.pod:7
56 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
57 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
58 #: ../tools/virt-win-reg.pl:39
59 msgid "SYNOPSIS"
60 msgstr ""
61
62 #. type: verbatim
63 #: ../cat/virt-cat.pod:9
64 #, no-wrap
65 msgid ""
66 " virt-cat [--options] -d domname file [file ...]\n"
67 "\n"
68 msgstr ""
69
70 #. type: verbatim
71 #: ../cat/virt-cat.pod:11
72 #, no-wrap
73 msgid ""
74 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
75 "\n"
76 msgstr ""
77
78 #. type: textblock
79 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
80 #: ../inspector/virt-inspector.pod:13
81 msgid "Old-style:"
82 msgstr ""
83
84 #. type: verbatim
85 #: ../cat/virt-cat.pod:15
86 #, no-wrap
87 msgid ""
88 " virt-cat domname file\n"
89 "\n"
90 msgstr ""
91
92 #. type: verbatim
93 #: ../cat/virt-cat.pod:17
94 #, no-wrap
95 msgid ""
96 " virt-cat disk.img file\n"
97 "\n"
98 msgstr ""
99
100 #. type: =head1
101 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
102 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
103 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
104 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
105 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
106 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
107 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
108 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
109 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
110 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
111 #: ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11
112 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
113 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
114 #: ../tools/virt-win-reg.pl:63
115 msgid "DESCRIPTION"
116 msgstr ""
117
118 #. type: textblock
119 #: ../cat/virt-cat.pod:21
120 msgid ""
121 "C<virt-cat> is a command line tool to display the contents of C<file> where "
122 "C<file> exists in the named virtual machine (or disk image)."
123 msgstr ""
124
125 #. type: textblock
126 #: ../cat/virt-cat.pod:24
127 msgid ""
128 "Multiple filenames can be given, in which case they are concatenated "
129 "together.  Each filename must be a full path, starting at the root directory "
130 "(starting with '/')."
131 msgstr ""
132
133 #. type: textblock
134 #: ../cat/virt-cat.pod:28
135 msgid ""
136 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
137 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
138 "(see L</USING GUESTFISH> below)."
139 msgstr ""
140
141 #. type: =head1
142 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
143 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
144 #: ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29
145 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
146 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
147 #: ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50
148 msgid "EXAMPLES"
149 msgstr ""
150
151 #. type: textblock
152 #: ../cat/virt-cat.pod:34
153 msgid ""
154 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
155 msgstr ""
156
157 #. type: verbatim
158 #: ../cat/virt-cat.pod:37
159 #, no-wrap
160 msgid ""
161 " virt-cat -d mydomain /etc/fstab\n"
162 "\n"
163 msgstr ""
164
165 #. type: textblock
166 #: ../cat/virt-cat.pod:39
167 msgid "List syslog messages from a VM disk image file:"
168 msgstr ""
169
170 #. type: verbatim
171 #: ../cat/virt-cat.pod:41
172 #, no-wrap
173 msgid ""
174 " virt-cat -a disk.img /var/log/messages | tail\n"
175 "\n"
176 msgstr ""
177
178 #. type: textblock
179 #: ../cat/virt-cat.pod:43
180 msgid "Find out what DHCP IP address a VM acquired:"
181 msgstr ""
182
183 #. type: verbatim
184 #: ../cat/virt-cat.pod:45
185 #, no-wrap
186 msgid ""
187 " virt-cat -d mydomain /var/log/messages | \\\n"
188 "   grep 'dhclient: bound to' | tail\n"
189 "\n"
190 msgstr ""
191
192 #. type: textblock
193 #: ../cat/virt-cat.pod:48
194 msgid "Find out what packages were recently installed:"
195 msgstr ""
196
197 #. type: verbatim
198 #: ../cat/virt-cat.pod:50
199 #, no-wrap
200 msgid ""
201 " virt-cat -d mydomain /var/log/yum.log | tail\n"
202 "\n"
203 msgstr ""
204
205 #. type: textblock
206 #: ../cat/virt-cat.pod:52
207 msgid "Find out who is logged on inside a virtual machine:"
208 msgstr ""
209
210 #. type: verbatim
211 #: ../cat/virt-cat.pod:54
212 #, no-wrap
213 msgid ""
214 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
215 " who /tmp/utmp\n"
216 "\n"
217 msgstr ""
218
219 #. type: textblock
220 #: ../cat/virt-cat.pod:57
221 msgid "or who was logged on:"
222 msgstr ""
223
224 #. type: verbatim
225 #: ../cat/virt-cat.pod:59
226 #, no-wrap
227 msgid ""
228 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
229 " last -f /tmp/wtmp\n"
230 "\n"
231 msgstr ""
232
233 #. type: =head1
234 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
235 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
236 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
237 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
238 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
239 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
240 #: ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:37
241 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
242 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
243 #: ../tools/virt-win-reg.pl:96
244 msgid "OPTIONS"
245 msgstr ""
246
247 #. type: =item
248 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
249 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
250 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
251 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
252 #: ../resize/virt-resize.pod:245 ../tools/virt-list-filesystems.pl:61
253 #: ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161
254 #: ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
255 msgid "B<--help>"
256 msgstr ""
257
258 #. type: textblock
259 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
260 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
261 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
262 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
263 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
264 #: ../tools/virt-win-reg.pl:106
265 msgid "Display brief help."
266 msgstr ""
267
268 #. type: =item
269 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
270 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
271 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
272 msgid "B<-a> file"
273 msgstr ""
274
275 #. type: =item
276 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
277 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
278 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
279 msgid "B<--add> file"
280 msgstr ""
281
282 #. type: textblock
283 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
284 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
285 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
286 msgid ""
287 "Add I<file> which should be a disk image from a virtual machine.  If the "
288 "virtual machine has multiple block devices, you must supply all of them with "
289 "separate I<-a> options."
290 msgstr ""
291
292 #. type: textblock
293 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
294 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
295 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
296 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
297 msgid ""
298 "The format of the disk image is auto-detected.  To override this and force a "
299 "particular format use the I<--format=..> option."
300 msgstr ""
301
302 #. type: =item
303 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
304 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
305 msgid "B<-c> URI"
306 msgstr ""
307
308 #. type: =item
309 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
310 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
311 msgid "B<--connect> URI"
312 msgstr ""
313
314 #. type: textblock
315 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
316 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
317 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
318 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
319 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
320 msgid ""
321 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
322 "to the default libvirt hypervisor."
323 msgstr ""
324
325 #. type: textblock
326 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
327 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
328 msgid ""
329 "If you specify guest block devices directly (I<-a>), then libvirt is not "
330 "used at all."
331 msgstr ""
332
333 #. type: =item
334 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
335 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
336 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
337 msgid "B<-d> guest"
338 msgstr ""
339
340 #. type: =item
341 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
342 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
343 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
344 msgid "B<--domain> guest"
345 msgstr ""
346
347 #. type: textblock
348 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
349 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
350 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
351 msgid ""
352 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
353 "instead of names."
354 msgstr ""
355
356 #. type: =item
357 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
358 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
359 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
360 msgid "B<--echo-keys>"
361 msgstr ""
362
363 #. type: textblock
364 #: ../cat/virt-cat.pod:100
365 msgid ""
366 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
367 "so you cannot see what you are typing.  If you are not worried about Tempest "
368 "attacks and there is no one else in the room you can specify this flag to "
369 "see what you are typing."
370 msgstr ""
371
372 #. type: =item
373 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
374 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
375 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
376 #: ../rescue/virt-rescue.pod:124
377 msgid "B<--format=raw|qcow2|..>"
378 msgstr ""
379
380 #. type: =item
381 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
382 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
383 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
384 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
385 msgid "B<--format>"
386 msgstr ""
387
388 #. type: textblock
389 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
390 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
391 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
392 #: ../rescue/virt-rescue.pod:128
393 msgid ""
394 "The default for the I<-a> option is to auto-detect the format of the disk "
395 "image.  Using this forces the disk format for I<-a> options which follow on "
396 "the command line.  Using I<--format> with no argument switches back to auto-"
397 "detection for subsequent I<-a> options."
398 msgstr ""
399
400 #. type: textblock
401 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
402 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
403 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
404 #: ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133
405 #: ../src/guestfs.pod:2652
406 msgid "For example:"
407 msgstr ""
408
409 #. type: verbatim
410 #: ../cat/virt-cat.pod:116
411 #, no-wrap
412 msgid ""
413 " virt-cat --format=raw -a disk.img file\n"
414 "\n"
415 msgstr ""
416
417 #. type: textblock
418 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
419 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
420 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
421 msgid "forces raw format (no auto-detection) for C<disk.img>."
422 msgstr ""
423
424 #. type: verbatim
425 #: ../cat/virt-cat.pod:120
426 #, no-wrap
427 msgid ""
428 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
429 "\n"
430 msgstr ""
431
432 #. type: textblock
433 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
434 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
435 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
436 msgid ""
437 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
438 "detection for C<another.img>."
439 msgstr ""
440
441 #. type: textblock
442 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
443 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
444 #: ../rescue/virt-rescue.pod:144
445 msgid ""
446 "If you have untrusted raw-format guest disk images, you should use this "
447 "option to specify the disk format.  This avoids a possible security problem "
448 "with malicious guests (CVE-2010-3851)."
449 msgstr ""
450
451 #. type: =item
452 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
453 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
454 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
455 msgid "B<--keys-from-stdin>"
456 msgstr ""
457
458 #. type: textblock
459 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
460 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
461 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
462 msgid ""
463 "Read key or passphrase parameters from stdin.  The default is to try to read "
464 "passphrases from the user by opening C</dev/tty>."
465 msgstr ""
466
467 #. type: =item
468 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
469 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
470 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
471 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:178
472 msgid "B<-v>"
473 msgstr ""
474
475 #. type: =item
476 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
477 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
478 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
479 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:180
480 msgid "B<--verbose>"
481 msgstr ""
482
483 #. type: textblock
484 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
485 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
486 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:182
487 msgid "Enable verbose messages for debugging."
488 msgstr ""
489
490 #. type: =item
491 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
492 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
493 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
494 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:184
495 #: ../resize/virt-resize.pod:484
496 msgid "B<-V>"
497 msgstr ""
498
499 #. type: =item
500 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
501 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
502 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
503 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:186
504 #: ../resize/virt-resize.pod:486 ../tools/virt-list-filesystems.pl:69
505 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
506 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
507 msgid "B<--version>"
508 msgstr ""
509
510 #. type: textblock
511 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
512 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
513 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:188
514 #: ../resize/virt-resize.pod:488 ../tools/virt-list-filesystems.pl:71
515 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
516 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
517 msgid "Display version number and exit."
518 msgstr ""
519
520 #. type: =item
521 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
522 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
523 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
524 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:199
525 #: ../tools/virt-tar.pl:158
526 msgid "B<-x>"
527 msgstr ""
528
529 #. type: textblock
530 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
531 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
532 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:201
533 msgid "Enable tracing of libguestfs API calls."
534 msgstr ""
535
536 #. type: =head1
537 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
538 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:205
539 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
540 msgstr ""
541
542 #. type: textblock
543 #: ../cat/virt-cat.pod:154
544 msgid "Previous versions of virt-cat allowed you to write either:"
545 msgstr ""
546
547 #. type: verbatim
548 #: ../cat/virt-cat.pod:156
549 #, no-wrap
550 msgid ""
551 " virt-cat disk.img [disk.img ...] file\n"
552 "\n"
553 msgstr ""
554
555 #. type: textblock
556 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
557 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:211
558 msgid "or"
559 msgstr ""
560
561 #. type: verbatim
562 #: ../cat/virt-cat.pod:160
563 #, no-wrap
564 msgid ""
565 " virt-cat guestname file\n"
566 "\n"
567 msgstr ""
568
569 #. type: textblock
570 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
571 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:215
572 msgid ""
573 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
574 "the confusing case where a disk image might have the same name as a guest."
575 msgstr ""
576
577 #. type: textblock
578 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
579 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:219
580 msgid "For compatibility the old style is still supported."
581 msgstr ""
582
583 #. type: =head1
584 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
585 msgid "USING GUESTFISH"
586 msgstr ""
587
588 #. type: textblock
589 #: ../cat/virt-cat.pod:170
590 msgid ""
591 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
592 "C<virt-cat> doesn't work."
593 msgstr ""
594
595 #. type: textblock
596 #: ../cat/virt-cat.pod:173
597 msgid "Using C<virt-cat> is approximately equivalent to doing:"
598 msgstr ""
599
600 #. type: verbatim
601 #: ../cat/virt-cat.pod:175
602 #, no-wrap
603 msgid ""
604 " guestfish --ro -i -d domname download file -\n"
605 "\n"
606 msgstr ""
607
608 #. type: textblock
609 #: ../cat/virt-cat.pod:177
610 msgid ""
611 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
612 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
613 msgstr ""
614
615 #. type: textblock
616 #: ../cat/virt-cat.pod:181
617 msgid ""
618 "The command above uses libguestfs's guest inspection feature and so does not "
619 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
620 "disk images that don't contain guests.  To display a file from a disk image "
621 "directly, use:"
622 msgstr ""
623
624 #. type: verbatim
625 #: ../cat/virt-cat.pod:186
626 #, no-wrap
627 msgid ""
628 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
629 "\n"
630 msgstr ""
631
632 #. type: textblock
633 #: ../cat/virt-cat.pod:188
634 msgid ""
635 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
636 "the disk image, and C<file> is the full path to the file."
637 msgstr ""
638
639 #. type: =head1
640 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365
641 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
642 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:262
643 #: ../resize/virt-resize.pod:568 ../tools/virt-list-filesystems.pl:188
644 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
645 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
646 msgid "SHELL QUOTING"
647 msgstr ""
648
649 #. type: textblock
650 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367
651 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
652 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:264
653 #: ../resize/virt-resize.pod:570 ../tools/virt-list-filesystems.pl:190
654 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
655 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
656 msgid ""
657 "Libvirt guest names can contain arbitrary characters, some of which have "
658 "meaning to the shell such as C<#> and space.  You may need to quote or "
659 "escape these characters on the command line.  See the shell manual page L<sh"
660 "(1)> for details."
661 msgstr ""
662
663 #. type: =head1
664 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372
665 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
666 #: ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303
667 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:575
668 #: ../test-tool/libguestfs-test-tool.pod:77
669 msgid "EXIT STATUS"
670 msgstr ""
671
672 #. type: textblock
673 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
674 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
675 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
676 #: ../resize/virt-resize.pod:577
677 msgid ""
678 "This program returns 0 if successful, or non-zero if there was an error."
679 msgstr ""
680
681 #. type: =head1
682 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
683 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
684 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
685 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
686 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
687 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
688 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
689 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
690 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284
691 #: ../resize/virt-resize.pod:580 ../ruby/examples/guestfs-ruby.pod:36
692 #: ../src/guestfs.pod:3026 ../test-tool/libguestfs-test-tool.pod:87
693 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
694 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
695 #: ../tools/virt-win-reg.pl:746
696 msgid "SEE ALSO"
697 msgstr ""
698
699 #. type: textblock
700 #: ../cat/virt-cat.pod:205
701 msgid ""
702 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
703 "tar-out(1)>, L<http://libguestfs.org/>."
704 msgstr ""
705
706 #. type: =head1
707 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
708 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
709 #: ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:601
710 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
711 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
712 #: ../tools/virt-win-reg.pl:772
713 msgid "AUTHOR"
714 msgstr ""
715
716 #. type: textblock
717 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
718 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
719 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:294
720 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:210
721 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
722 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
723 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
724 msgstr ""
725
726 #. type: =head1
727 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
728 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
729 #: ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400
730 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:64
731 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
732 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
733 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:61
734 #: ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55
735 #: ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296
736 #: ../resize/virt-resize.pod:605 ../ruby/examples/guestfs-ruby.pod:51
737 #: ../src/guestfs.pod:3102 ../test-tool/libguestfs-test-tool.pod:97
738 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
739 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
740 #: ../tools/virt-win-reg.pl:776
741 msgid "COPYRIGHT"
742 msgstr ""
743
744 #. type: textblock
745 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
746 #: ../resize/virt-resize.pod:607
747 msgid "Copyright (C) 2010-2011 Red Hat Inc."
748 msgstr ""
749
750 #. type: textblock
751 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396
752 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
753 #: ../fish/guestfish.pod:1269 ../fish/virt-copy-in.pod:69
754 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
755 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328
756 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:300
757 #: ../resize/virt-resize.pod:609 ../test-tool/libguestfs-test-tool.pod:102
758 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
759 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
760 #: ../tools/virt-win-reg.pl:780
761 msgid ""
762 "This program is free software; you can redistribute it and/or modify it "
763 "under the terms of the GNU General Public License as published by the Free "
764 "Software Foundation; either version 2 of the License, or (at your option) "
765 "any later version."
766 msgstr ""
767
768 #. type: textblock
769 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
770 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
771 #: ../fish/guestfish.pod:1274 ../fish/virt-copy-in.pod:74
772 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
773 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333
774 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:305
775 #: ../resize/virt-resize.pod:614 ../test-tool/libguestfs-test-tool.pod:107
776 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
777 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
778 #: ../tools/virt-win-reg.pl:785
779 msgid ""
780 "This program is distributed in the hope that it will be useful, but WITHOUT "
781 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
782 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
783 "more details."
784 msgstr ""
785
786 #. type: textblock
787 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
788 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
789 #: ../fish/guestfish.pod:1279 ../fish/virt-copy-in.pod:79
790 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
791 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338
792 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:310
793 #: ../resize/virt-resize.pod:619 ../test-tool/libguestfs-test-tool.pod:112
794 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
795 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
796 #: ../tools/virt-win-reg.pl:790
797 msgid ""
798 "You should have received a copy of the GNU General Public License along with "
799 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
800 "Ave, Cambridge, MA 02139, USA."
801 msgstr ""
802
803 #. type: textblock
804 #: ../cat/virt-filesystems.pod:5
805 msgid ""
806 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
807 "virtual machine or disk image"
808 msgstr ""
809
810 #. type: verbatim
811 #: ../cat/virt-filesystems.pod:9
812 #, no-wrap
813 msgid ""
814 " virt-filesystems [--options] -d domname\n"
815 "\n"
816 msgstr ""
817
818 #. type: verbatim
819 #: ../cat/virt-filesystems.pod:11
820 #, no-wrap
821 msgid ""
822 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
823 "\n"
824 msgstr ""
825
826 #. type: textblock
827 #: ../cat/virt-filesystems.pod:15
828 msgid ""
829 "This tool allows you to discover filesystems, partitions, logical volumes, "
830 "and their sizes in a disk image or virtual machine.  It is a replacement for "
831 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
832 msgstr ""
833
834 #. type: textblock
835 #: ../cat/virt-filesystems.pod:20
836 msgid ""
837 "One use for this tool is from shell scripts to iterate over all filesystems "
838 "from a disk image:"
839 msgstr ""
840
841 #. type: verbatim
842 #: ../cat/virt-filesystems.pod:23
843 #, no-wrap
844 msgid ""
845 " for fs in $(virt-filesystems -a disk.img); do\n"
846 "   # ...\n"
847 " done\n"
848 "\n"
849 msgstr ""
850
851 #. type: textblock
852 #: ../cat/virt-filesystems.pod:27
853 msgid ""
854 "Another use is to list partitions before using another tool to modify those "
855 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
856 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
857 msgstr ""
858
859 #. type: textblock
860 #: ../cat/virt-filesystems.pod:32
861 msgid ""
862 "Various command line options control what this program displays.  You need "
863 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
864 "guest respectively.  If you just specify that then the program shows "
865 "filesystems found, one per line, like this:"
866 msgstr ""
867
868 #. type: verbatim
869 #: ../cat/virt-filesystems.pod:37
870 #, no-wrap
871 msgid ""
872 " $ virt-filesystems -a disk.img\n"
873 " /dev/sda1\n"
874 " /dev/vg_guest/lv_root\n"
875 "\n"
876 msgstr ""
877
878 #. type: textblock
879 #: ../cat/virt-filesystems.pod:41
880 msgid ""
881 "If you add I<-l> or I<--long> then the output includes extra information:"
882 msgstr ""
883
884 #. type: verbatim
885 #: ../cat/virt-filesystems.pod:44
886 #, no-wrap
887 msgid ""
888 " $ virt-filesystems -a disk.img -l\n"
889 " Name                   Type         VFS   Label  Size\n"
890 " /dev/sda1              filesystem   ext4  boot   524288000\n"
891 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
892 "\n"
893 msgstr ""
894
895 #. type: textblock
896 #: ../cat/virt-filesystems.pod:49
897 msgid ""
898 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
899 "shown as well:"
900 msgstr ""
901
902 #. type: verbatim
903 #: ../cat/virt-filesystems.pod:52
904 #, no-wrap
905 msgid ""
906 " $ virt-filesystems -a disk.img --extra\n"
907 " /dev/sda1\n"
908 " /dev/vg_guest/lv_root\n"
909 " /dev/vg_guest/lv_swap\n"
910 " /dev/vg_guest/lv_data\n"
911 "\n"
912 msgstr ""
913
914 #. type: textblock
915 #: ../cat/virt-filesystems.pod:58
916 msgid ""
917 "If you add I<--partitions> then partitions are shown instead of filesystems:"
918 msgstr ""
919
920 #. type: verbatim
921 #: ../cat/virt-filesystems.pod:60
922 #, no-wrap
923 msgid ""
924 " $ virt-filesystems -a disk.img --partitions\n"
925 " /dev/sda1\n"
926 " /dev/sda2\n"
927 "\n"
928 msgstr ""
929
930 #. type: textblock
931 #: ../cat/virt-filesystems.pod:64
932 msgid ""
933 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
934 "volumes>, I<--block-devices> to list those items."
935 msgstr ""
936
937 #. type: textblock
938 #: ../cat/virt-filesystems.pod:67
939 msgid ""
940 "You can use these options in combination as well (if you want a combination "
941 "including filesystems, you have to add I<--filesystems>).  Notice that some "
942 "items fall into several categories (eg. C</dev/sda1> might be both a "
943 "partition and a filesystem).  These items are listed several times.  To get "
944 "a list which includes absolutely everything that virt-filesystems knows "
945 "about, use the I<--all> option."
946 msgstr ""
947
948 #. type: textblock
949 #: ../cat/virt-filesystems.pod:74
950 msgid ""
951 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
952 "uuid> option to display device and filesystem UUIDs in the long output."
953 msgstr ""
954
955 #. type: textblock
956 #: ../cat/virt-filesystems.pod:78
957 msgid ""
958 "I<--all --long --uuid> is a useful combination to display all possible "
959 "information about everything."
960 msgstr ""
961
962 #. type: verbatim
963 #: ../cat/virt-filesystems.pod:81
964 #, no-wrap
965 msgid ""
966 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
967 " Name      Type       VFS  Label           Size Parent   UUID\n"
968 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
969 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
970 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
971 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
972 " /dev/sda  device     -    -               20G  -        -\n"
973 "\n"
974 msgstr ""
975
976 #. type: textblock
977 #: ../cat/virt-filesystems.pod:89
978 msgid ""
979 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
980 msgstr ""
981
982 #. type: =item
983 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
984 msgid "B<--all>"
985 msgstr ""
986
987 #. type: textblock
988 #: ../cat/virt-filesystems.pod:112
989 msgid ""
990 "Display everything.  This is currently the same as specifying these options: "
991 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
992 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
993 "added to this list in future)."
994 msgstr ""
995
996 #. type: textblock
997 #: ../cat/virt-filesystems.pod:117
998 msgid "See also I<--long>."
999 msgstr ""
1000
1001 #. type: =item
1002 #: ../cat/virt-filesystems.pod:119
1003 msgid "B<--blkdevs>"
1004 msgstr ""
1005
1006 #. type: =item
1007 #: ../cat/virt-filesystems.pod:121
1008 msgid "B<--block-devices>"
1009 msgstr ""
1010
1011 #. type: textblock
1012 #: ../cat/virt-filesystems.pod:123
1013 msgid "Display block devices."
1014 msgstr ""
1015
1016 #. type: =item
1017 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1018 msgid "B<--csv>"
1019 msgstr ""
1020
1021 #. type: textblock
1022 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1023 msgid ""
1024 "Write out the results in CSV format (comma-separated values).  This format "
1025 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1026 "ABOUT CSV FORMAT> below."
1027 msgstr ""
1028
1029 #. type: textblock
1030 #: ../cat/virt-filesystems.pod:150
1031 msgid ""
1032 "When prompting for keys and passphrases, virt-filesystems normally turns "
1033 "echoing off so you cannot see what you are typing.  If you are not worried "
1034 "about Tempest attacks and there is no one else in the room you can specify "
1035 "this flag to see what you are typing."
1036 msgstr ""
1037
1038 #. type: =item
1039 #: ../cat/virt-filesystems.pod:155
1040 msgid "B<--extra>"
1041 msgstr ""
1042
1043 #. type: textblock
1044 #: ../cat/virt-filesystems.pod:157
1045 msgid ""
1046 "This causes filesystems that are not ordinary, mountable filesystems to be "
1047 "displayed.  This category includes swapspace, and filesystems that are empty "
1048 "or contain unknown data."
1049 msgstr ""
1050
1051 #. type: textblock
1052 #: ../cat/virt-filesystems.pod:161
1053 msgid "This option implies I<--filesystems>."
1054 msgstr ""
1055
1056 #. type: =item
1057 #: ../cat/virt-filesystems.pod:163
1058 msgid "B<--filesystems>"
1059 msgstr ""
1060
1061 #. type: textblock
1062 #: ../cat/virt-filesystems.pod:165
1063 msgid ""
1064 "Display mountable filesystems.  If no display option was selected then this "
1065 "option is implied."
1066 msgstr ""
1067
1068 #. type: textblock
1069 #: ../cat/virt-filesystems.pod:168
1070 msgid "With I<--extra>, non-mountable filesystems are shown too."
1071 msgstr ""
1072
1073 #. type: verbatim
1074 #: ../cat/virt-filesystems.pod:181
1075 #, no-wrap
1076 msgid ""
1077 " virt-filesystems --format=raw -a disk.img\n"
1078 "\n"
1079 msgstr ""
1080
1081 #. type: verbatim
1082 #: ../cat/virt-filesystems.pod:185
1083 #, no-wrap
1084 msgid ""
1085 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1086 "\n"
1087 msgstr ""
1088
1089 #. type: =item
1090 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1091 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1092 #: ../tools/virt-list-partitions.pl:109
1093 msgid "B<-h>"
1094 msgstr ""
1095
1096 #. type: =item
1097 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1098 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1099 msgid "B<--human-readable>"
1100 msgstr ""
1101
1102 #. type: textblock
1103 #: ../cat/virt-filesystems.pod:198
1104 msgid "In I<--long> mode, display sizes in human-readable format."
1105 msgstr ""
1106
1107 #. type: =item
1108 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1109 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1110 msgid "B<-l>"
1111 msgstr ""
1112
1113 #. type: =item
1114 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1115 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1116 msgid "B<--long>"
1117 msgstr ""
1118
1119 #. type: textblock
1120 #: ../cat/virt-filesystems.pod:209
1121 msgid "Display extra columns of data (\"long format\")."
1122 msgstr ""
1123
1124 #. type: textblock
1125 #: ../cat/virt-filesystems.pod:211
1126 msgid "A title row is added unless you also specify I<--no-title>."
1127 msgstr ""
1128
1129 #. type: textblock
1130 #: ../cat/virt-filesystems.pod:213
1131 msgid ""
1132 "The extra columns displayed depend on what output you select, and the "
1133 "ordering of columns may change in future versions.  Use the title row, I<--"
1134 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1135 "programs."
1136 msgstr ""
1137
1138 #. type: textblock
1139 #: ../cat/virt-filesystems.pod:218
1140 msgid ""
1141 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1142 "default is to show raw numbers of I<bytes>."
1143 msgstr ""
1144
1145 #. type: textblock
1146 #: ../cat/virt-filesystems.pod:221
1147 msgid "Use I<--uuid> to display UUIDs too."
1148 msgstr ""
1149
1150 #. type: =item
1151 #: ../cat/virt-filesystems.pod:223
1152 msgid "B<--lvs>"
1153 msgstr ""
1154
1155 #. type: =item
1156 #: ../cat/virt-filesystems.pod:225
1157 msgid "B<--logvols>"
1158 msgstr ""
1159
1160 #. type: =item
1161 #: ../cat/virt-filesystems.pod:227
1162 msgid "B<--logical-volumes>"
1163 msgstr ""
1164
1165 #. type: textblock
1166 #: ../cat/virt-filesystems.pod:229
1167 msgid ""
1168 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1169 "of whether the LVs contain filesystems."
1170 msgstr ""
1171
1172 #. type: =item
1173 #: ../cat/virt-filesystems.pod:232
1174 msgid "B<--no-title>"
1175 msgstr ""
1176
1177 #. type: textblock
1178 #: ../cat/virt-filesystems.pod:234
1179 msgid "In I<--long> mode, don't add a title row."
1180 msgstr ""
1181
1182 #. type: textblock
1183 #: ../cat/virt-filesystems.pod:236
1184 msgid ""
1185 "Note that the order of the columns is not fixed, and may change in future "
1186 "versions of virt-filesystems, so using this option may give you unexpected "
1187 "surprises."
1188 msgstr ""
1189
1190 #. type: =item
1191 #: ../cat/virt-filesystems.pod:240
1192 msgid "B<--parts>"
1193 msgstr ""
1194
1195 #. type: =item
1196 #: ../cat/virt-filesystems.pod:242
1197 msgid "B<--partitions>"
1198 msgstr ""
1199
1200 #. type: textblock
1201 #: ../cat/virt-filesystems.pod:244
1202 msgid ""
1203 "Display partitions.  In this mode, these are displayed irrespective of "
1204 "whether the partitions contain filesystems."
1205 msgstr ""
1206
1207 #. type: =item
1208 #: ../cat/virt-filesystems.pod:247
1209 msgid "B<--pvs>"
1210 msgstr ""
1211
1212 #. type: =item
1213 #: ../cat/virt-filesystems.pod:249
1214 msgid "B<--physvols>"
1215 msgstr ""
1216
1217 #. type: =item
1218 #: ../cat/virt-filesystems.pod:251
1219 msgid "B<--physical-volumes>"
1220 msgstr ""
1221
1222 #. type: textblock
1223 #: ../cat/virt-filesystems.pod:253
1224 msgid "Display LVM physical volumes."
1225 msgstr ""
1226
1227 #. type: =item
1228 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1229 msgid "B<--uuid>"
1230 msgstr ""
1231
1232 #. type: =item
1233 #: ../cat/virt-filesystems.pod:257
1234 msgid "B<--uuids>"
1235 msgstr ""
1236
1237 #. type: textblock
1238 #: ../cat/virt-filesystems.pod:259
1239 msgid "In I<--long> mode, display UUIDs as well."
1240 msgstr ""
1241
1242 #. type: =item
1243 #: ../cat/virt-filesystems.pod:273
1244 msgid "B<--vgs>"
1245 msgstr ""
1246
1247 #. type: =item
1248 #: ../cat/virt-filesystems.pod:275
1249 msgid "B<--volgroups>"
1250 msgstr ""
1251
1252 #. type: =item
1253 #: ../cat/virt-filesystems.pod:277
1254 msgid "B<--volume-groups>"
1255 msgstr ""
1256
1257 #. type: textblock
1258 #: ../cat/virt-filesystems.pod:279
1259 msgid "Display LVM volume groups."
1260 msgstr ""
1261
1262 #. type: =head1
1263 #: ../cat/virt-filesystems.pod:287
1264 msgid "COLUMNS"
1265 msgstr ""
1266
1267 #. type: textblock
1268 #: ../cat/virt-filesystems.pod:289
1269 msgid ""
1270 "Note that columns in the output are subject to reordering and change in "
1271 "future versions of this tool."
1272 msgstr ""
1273
1274 #. type: =item
1275 #: ../cat/virt-filesystems.pod:294
1276 msgid "B<Name>"
1277 msgstr ""
1278
1279 #. type: textblock
1280 #: ../cat/virt-filesystems.pod:296
1281 msgid "The filesystem, partition, block device or LVM name."
1282 msgstr ""
1283
1284 #. type: textblock
1285 #: ../cat/virt-filesystems.pod:298
1286 msgid ""
1287 "For device and partition names these are displayed as canonical libguestfs "
1288 "names, so that for example C</dev/sda2> is the second partition on the first "
1289 "device."
1290 msgstr ""
1291
1292 #. type: textblock
1293 #: ../cat/virt-filesystems.pod:302
1294 msgid ""
1295 "If the I<--long> option is B<not> specified, then only the name column is "
1296 "shown in the output."
1297 msgstr ""
1298
1299 #. type: =item
1300 #: ../cat/virt-filesystems.pod:305
1301 msgid "B<Type>"
1302 msgstr ""
1303
1304 #. type: textblock
1305 #: ../cat/virt-filesystems.pod:307
1306 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1307 msgstr ""
1308
1309 #. type: =item
1310 #: ../cat/virt-filesystems.pod:309
1311 msgid "B<VFS>"
1312 msgstr ""
1313
1314 #. type: textblock
1315 #: ../cat/virt-filesystems.pod:311
1316 msgid ""
1317 "If there is a filesystem, then this column displays the filesystem type if "
1318 "one could be detected, eg. C<ext4>."
1319 msgstr ""
1320
1321 #. type: =item
1322 #: ../cat/virt-filesystems.pod:314
1323 msgid "B<Label>"
1324 msgstr ""
1325
1326 #. type: textblock
1327 #: ../cat/virt-filesystems.pod:316
1328 msgid ""
1329 "If the object has a label (used for identifying and mounting filesystems) "
1330 "then this column contains the label."
1331 msgstr ""
1332
1333 #. type: =item
1334 #: ../cat/virt-filesystems.pod:319
1335 msgid "B<Size>"
1336 msgstr ""
1337
1338 #. type: textblock
1339 #: ../cat/virt-filesystems.pod:321
1340 msgid ""
1341 "The size of the object in bytes.  If the I<--human> option is used then the "
1342 "size is displayed in a human-readable form."
1343 msgstr ""
1344
1345 #. type: =item
1346 #: ../cat/virt-filesystems.pod:324
1347 msgid "B<Parent>"
1348 msgstr ""
1349
1350 #. type: textblock
1351 #: ../cat/virt-filesystems.pod:326
1352 msgid ""
1353 "The parent column records the parent relationship between objects.  For "
1354 "example, if the object is a partition, then this column contains the name of "
1355 "the containing device.  If the object is a logical volume, then this column "
1356 "is the name of the volume group."
1357 msgstr ""
1358
1359 #. type: =item
1360 #: ../cat/virt-filesystems.pod:331
1361 msgid "B<UUID>"
1362 msgstr ""
1363
1364 #. type: textblock
1365 #: ../cat/virt-filesystems.pod:333
1366 msgid ""
1367 "If the object has a UUID (used for identifying and mounting filesystems and "
1368 "block devices) then this column contains the UUID as a string."
1369 msgstr ""
1370
1371 #. type: textblock
1372 #: ../cat/virt-filesystems.pod:337
1373 msgid "The UUID is only displayed if the I<--uuid> option is given."
1374 msgstr ""
1375
1376 #. type: =head1
1377 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1378 #: ../df/virt-df.pod:191
1379 msgid "NOTE ABOUT CSV FORMAT"
1380 msgstr ""
1381
1382 #. type: textblock
1383 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1384 #: ../df/virt-df.pod:193
1385 msgid ""
1386 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1387 "should be easy to parse, but it is definitely not easy to parse."
1388 msgstr ""
1389
1390 #. type: textblock
1391 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1392 #: ../df/virt-df.pod:196
1393 msgid ""
1394 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1395 "reliably.  This example has two columns:"
1396 msgstr ""
1397
1398 #. type: verbatim
1399 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1400 #: ../df/virt-df.pod:199
1401 #, no-wrap
1402 msgid ""
1403 " \"foo,bar\",baz\n"
1404 "\n"
1405 msgstr ""
1406
1407 #. type: textblock
1408 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1409 #: ../df/virt-df.pod:201
1410 msgid ""
1411 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1412 "reliably.  This example has one row:"
1413 msgstr ""
1414
1415 #. type: verbatim
1416 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1417 #: ../df/virt-df.pod:204
1418 #, no-wrap
1419 msgid ""
1420 " \"foo\n"
1421 " bar\",baz\n"
1422 "\n"
1423 msgstr ""
1424
1425 #. type: textblock
1426 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1427 #: ../df/virt-df.pod:207
1428 msgid ""
1429 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1430 "packaged in major Linux distributions)."
1431 msgstr ""
1432
1433 #. type: textblock
1434 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1435 #: ../df/virt-df.pod:210
1436 msgid ""
1437 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1438 "or Python's built-in csv library)."
1439 msgstr ""
1440
1441 #. type: textblock
1442 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1443 #: ../df/virt-df.pod:213
1444 msgid "Most spreadsheets and databases can import CSV directly."
1445 msgstr ""
1446
1447 #. type: textblock
1448 #: ../cat/virt-filesystems.pod:379
1449 msgid ""
1450 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1451 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1452 "libguestfs.org/>."
1453 msgstr ""
1454
1455 #. type: textblock
1456 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1457 #: ../tools/virt-win-reg.pl:778
1458 msgid "Copyright (C) 2010 Red Hat Inc."
1459 msgstr ""
1460
1461 #. type: textblock
1462 #: ../cat/virt-ls.pod:5
1463 msgid "virt-ls - List files in a virtual machine"
1464 msgstr ""
1465
1466 #. type: verbatim
1467 #: ../cat/virt-ls.pod:9
1468 #, no-wrap
1469 msgid ""
1470 " virt-ls [--options] -d domname directory [directory ...]\n"
1471 "\n"
1472 msgstr ""
1473
1474 #. type: verbatim
1475 #: ../cat/virt-ls.pod:11
1476 #, no-wrap
1477 msgid ""
1478 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1479 "\n"
1480 msgstr ""
1481
1482 #. type: textblock
1483 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1484 msgid "Old style:"
1485 msgstr ""
1486
1487 #. type: verbatim
1488 #: ../cat/virt-ls.pod:15
1489 #, no-wrap
1490 msgid ""
1491 " virt-ls [--options] domname directory\n"
1492 "\n"
1493 msgstr ""
1494
1495 #. type: verbatim
1496 #: ../cat/virt-ls.pod:17
1497 #, no-wrap
1498 msgid ""
1499 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1500 "\n"
1501 msgstr ""
1502
1503 #. type: textblock
1504 #: ../cat/virt-ls.pod:21
1505 msgid ""
1506 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1507 "more from a virtual machine or disk image."
1508 msgstr ""
1509
1510 #. type: textblock
1511 #: ../cat/virt-ls.pod:24
1512 msgid ""
1513 "Multiple directory names can be given, in which case the output from each is "
1514 "concatenated."
1515 msgstr ""
1516
1517 #. type: textblock
1518 #: ../cat/virt-ls.pod:27
1519 msgid ""
1520 "To list directories from a libvirt guest use the I<-d> option to specify the "
1521 "name of the guest.  For a disk image, use the I<-a> option."
1522 msgstr ""
1523
1524 #. type: textblock
1525 #: ../cat/virt-ls.pod:31
1526 msgid ""
1527 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1528 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1529 "(3)> API."
1530 msgstr ""
1531
1532 #. type: textblock
1533 #: ../cat/virt-ls.pod:37
1534 msgid "Get a list of all files and directories in a virtual machine:"
1535 msgstr ""
1536
1537 #. type: verbatim
1538 #: ../cat/virt-ls.pod:39
1539 #, no-wrap
1540 msgid ""
1541 " virt-ls -R -d guest /\n"
1542 "\n"
1543 msgstr ""
1544
1545 #. type: textblock
1546 #: ../cat/virt-ls.pod:41
1547 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1548 msgstr ""
1549
1550 #. type: verbatim
1551 #: ../cat/virt-ls.pod:43
1552 #, no-wrap
1553 msgid ""
1554 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1555 "\n"
1556 msgstr ""
1557
1558 #. type: textblock
1559 #: ../cat/virt-ls.pod:45
1560 msgid "List all public-writable directories in a Linux virtual machine:"
1561 msgstr ""
1562
1563 #. type: verbatim
1564 #: ../cat/virt-ls.pod:47
1565 #, no-wrap
1566 msgid ""
1567 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1568 "\n"
1569 msgstr ""
1570
1571 #. type: textblock
1572 #: ../cat/virt-ls.pod:49
1573 msgid "List all Unix domain sockets in a Linux virtual machine:"
1574 msgstr ""
1575
1576 #. type: verbatim
1577 #: ../cat/virt-ls.pod:51
1578 #, no-wrap
1579 msgid ""
1580 " virt-ls -lR -d guest / | grep '^s'\n"
1581 "\n"
1582 msgstr ""
1583
1584 #. type: textblock
1585 #: ../cat/virt-ls.pod:53
1586 msgid "List all regular files with filenames ending in '.png':"
1587 msgstr ""
1588
1589 #. type: verbatim
1590 #: ../cat/virt-ls.pod:55
1591 #, no-wrap
1592 msgid ""
1593 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1594 "\n"
1595 msgstr ""
1596
1597 #. type: textblock
1598 #: ../cat/virt-ls.pod:57
1599 msgid "To display files larger than 10MB in home directories:"
1600 msgstr ""
1601
1602 #. type: verbatim
1603 #: ../cat/virt-ls.pod:59
1604 #, no-wrap
1605 msgid ""
1606 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1607 "\n"
1608 msgstr ""
1609
1610 #. type: textblock
1611 #: ../cat/virt-ls.pod:61
1612 msgid "Find everything modified in the last 7 days:"
1613 msgstr ""
1614
1615 #. type: verbatim
1616 #: ../cat/virt-ls.pod:63
1617 #, no-wrap
1618 msgid ""
1619 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1620 "\n"
1621 msgstr ""
1622
1623 #. type: textblock
1624 #: ../cat/virt-ls.pod:65
1625 msgid "Find regular files modified in the last 24 hours:"
1626 msgstr ""
1627
1628 #. type: verbatim
1629 #: ../cat/virt-ls.pod:67
1630 #, no-wrap
1631 msgid ""
1632 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1633 "\n"
1634 msgstr ""
1635
1636 #. type: =head2
1637 #: ../cat/virt-ls.pod:69
1638 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1639 msgstr ""
1640
1641 #. type: textblock
1642 #: ../cat/virt-ls.pod:71
1643 msgid ""
1644 "Find the differences between files in a guest and an earlier snapshot of the "
1645 "same guest."
1646 msgstr ""
1647
1648 #. type: verbatim
1649 #: ../cat/virt-ls.pod:74
1650 #, no-wrap
1651 msgid ""
1652 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1653 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1654 " diff -u old new | less\n"
1655 "\n"
1656 msgstr ""
1657
1658 #. type: textblock
1659 #: ../cat/virt-ls.pod:78
1660 msgid ""
1661 "The commands above won't find files where the content has changed but the "
1662 "metadata (eg. file size and modification date) is the same.  To do that, you "
1663 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1664 "checksum> can be quite slow since it has to read and compute a checksum of "
1665 "every regular file in the virtual machine."
1666 msgstr ""
1667
1668 #. type: =head1
1669 #: ../cat/virt-ls.pod:84
1670 msgid "OUTPUT MODES"
1671 msgstr ""
1672
1673 #. type: textblock
1674 #: ../cat/virt-ls.pod:86
1675 msgid ""
1676 "C<virt-ls> has four output modes, controlled by different combinations of "
1677 "the I<-l> and I<-R> options."
1678 msgstr ""
1679
1680 #. type: =head2
1681 #: ../cat/virt-ls.pod:89
1682 msgid "SIMPLE LISTING"
1683 msgstr ""
1684
1685 #. type: textblock
1686 #: ../cat/virt-ls.pod:91
1687 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1688 msgstr ""
1689
1690 #. type: verbatim
1691 #: ../cat/virt-ls.pod:93
1692 #, no-wrap
1693 msgid ""
1694 " $ virt-ls -d guest /\n"
1695 " bin\n"
1696 " boot\n"
1697 " [etc.]\n"
1698 "\n"
1699 msgstr ""
1700
1701 #. type: =head2
1702 #: ../cat/virt-ls.pod:98
1703 msgid "LONG LISTING"
1704 msgstr ""
1705
1706 #. type: textblock
1707 #: ../cat/virt-ls.pod:100
1708 msgid ""
1709 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1710 "(more specifically, like the C<guestfs_ll> function)."
1711 msgstr ""
1712
1713 #. type: verbatim
1714 #: ../cat/virt-ls.pod:103
1715 #, no-wrap
1716 msgid ""
1717 " $ virt-ls -l -d guest /\n"
1718 " total 204\n"
1719 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1720 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1721 " [etc.]\n"
1722 "\n"
1723 msgstr ""
1724
1725 #. type: textblock
1726 #: ../cat/virt-ls.pod:109
1727 msgid ""
1728 "Note that while this is useful for displaying a directory, do not try "
1729 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1730 "instead."
1731 msgstr ""
1732
1733 #. type: =head2
1734 #: ../cat/virt-ls.pod:113
1735 msgid "RECURSIVE LISTING"
1736 msgstr ""
1737
1738 #. type: textblock
1739 #: ../cat/virt-ls.pod:115
1740 msgid ""
1741 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1742 "and directories recursively:"
1743 msgstr ""
1744
1745 #. type: verbatim
1746 #: ../cat/virt-ls.pod:118
1747 #, no-wrap
1748 msgid ""
1749 " $ virt-ls -R -d guest /tmp\n"
1750 " foo\n"
1751 " foo/bar\n"
1752 " [etc.]\n"
1753 "\n"
1754 msgstr ""
1755
1756 #. type: textblock
1757 #: ../cat/virt-ls.pod:123
1758 msgid ""
1759 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1760 "converts C<\\0> characters to C<\\n>."
1761 msgstr ""
1762
1763 #. type: =head2
1764 #: ../cat/virt-ls.pod:126
1765 msgid "RECURSIVE LONG LISTING"
1766 msgstr ""
1767
1768 #. type: textblock
1769 #: ../cat/virt-ls.pod:128
1770 msgid ""
1771 "Using I<-lR> options together changes the output to display directories "
1772 "recursively, with file stats, and optionally other features such as "
1773 "checksums and extended attributes."
1774 msgstr ""
1775
1776 #. type: textblock
1777 #: ../cat/virt-ls.pod:132
1778 msgid ""
1779 "Most of the interesting features of C<virt-ls> are only available when using "
1780 "I<-lR> mode."
1781 msgstr ""
1782
1783 #. type: textblock
1784 #: ../cat/virt-ls.pod:135
1785 msgid ""
1786 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1787 "you cannot use the output in another program (because filenames can contain "
1788 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1789 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1790 "on you by creating filenames with embedded newline characters.  To B<safely> "
1791 "parse the output in another program, use the I<--csv> (Comma-Separated "
1792 "Values) option."
1793 msgstr ""
1794
1795 #. type: textblock
1796 #: ../cat/virt-ls.pod:143
1797 msgid ""
1798 "Note that this output format is completely unrelated to the C<ls -lR> "
1799 "command."
1800 msgstr ""
1801
1802 #. type: verbatim
1803 #: ../cat/virt-ls.pod:146
1804 #, no-wrap
1805 msgid ""
1806 " $ virt-ls -lR -d guest /bin\n"
1807 " d 0555       4096 /bin\n"
1808 " - 0755        123 /bin/alsaunmute\n"
1809 " - 0755      28328 /bin/arch\n"
1810 " l 0777          4 /bin/awk -> gawk\n"
1811 " - 0755      27216 /bin/basename\n"
1812 " - 0755     943360 /bin/bash\n"
1813 " [etc.]\n"
1814 "\n"
1815 msgstr ""
1816
1817 #. type: textblock
1818 #: ../cat/virt-ls.pod:155
1819 msgid "These basic fields are always shown:"
1820 msgstr ""
1821
1822 #. type: =item
1823 #: ../cat/virt-ls.pod:159
1824 msgid "type"
1825 msgstr ""
1826
1827 #. type: textblock
1828 #: ../cat/virt-ls.pod:161
1829 msgid ""
1830 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1831 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1832 "link), C<s> (socket) or C<u> (unknown)."
1833 msgstr ""
1834
1835 #. type: =item
1836 #: ../cat/virt-ls.pod:171
1837 msgid "permissions"
1838 msgstr ""
1839
1840 #. type: textblock
1841 #: ../cat/virt-ls.pod:173
1842 msgid "The Unix permissions, displayed as a 4 digit octal number."
1843 msgstr ""
1844
1845 #. type: =item
1846 #: ../cat/virt-ls.pod:175
1847 msgid "size"
1848 msgstr ""
1849
1850 #. type: textblock
1851 #: ../cat/virt-ls.pod:177
1852 msgid ""
1853 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
1854 "readable> option is given, in which case this is shown as a human-readable "
1855 "number."
1856 msgstr ""
1857
1858 #. type: =head2
1859 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4188
1860 msgid "path"
1861 msgstr ""
1862
1863 #. type: textblock
1864 #: ../cat/virt-ls.pod:183
1865 msgid "The full path of the file or directory."
1866 msgstr ""
1867
1868 #. type: =item
1869 #: ../cat/virt-ls.pod:185
1870 msgid "link"
1871 msgstr ""
1872
1873 #. type: textblock
1874 #: ../cat/virt-ls.pod:187
1875 msgid "For symbolic links only, the link target."
1876 msgstr ""
1877
1878 #. type: textblock
1879 #: ../cat/virt-ls.pod:191
1880 msgid ""
1881 "In I<-lR> mode, additional command line options enable the display of more "
1882 "fields."
1883 msgstr ""
1884
1885 #. type: textblock
1886 #: ../cat/virt-ls.pod:194
1887 msgid ""
1888 "With the I<--uids> flag, these additional fields are displayed before the "
1889 "path:"
1890 msgstr ""
1891
1892 #. type: =item
1893 #: ../cat/virt-ls.pod:199
1894 msgid "uid"
1895 msgstr ""
1896
1897 #. type: =item
1898 #: ../cat/virt-ls.pod:201
1899 msgid "gid"
1900 msgstr ""
1901
1902 #. type: textblock
1903 #: ../cat/virt-ls.pod:203
1904 msgid ""
1905 "The UID and GID of the owner of the file (displayed numerically).  Note "
1906 "these only make sense in the context of a Unix-like guest."
1907 msgstr ""
1908
1909 #. type: textblock
1910 #: ../cat/virt-ls.pod:208
1911 msgid "With the I<--times> flag, these additional fields are displayed:"
1912 msgstr ""
1913
1914 #. type: =item
1915 #: ../cat/virt-ls.pod:212
1916 msgid "atime"
1917 msgstr ""
1918
1919 #. type: textblock
1920 #: ../cat/virt-ls.pod:214
1921 msgid "The time of last access."
1922 msgstr ""
1923
1924 #. type: =item
1925 #: ../cat/virt-ls.pod:216
1926 msgid "mtime"
1927 msgstr ""
1928
1929 #. type: textblock
1930 #: ../cat/virt-ls.pod:218
1931 msgid "The time of last modification."
1932 msgstr ""
1933
1934 #. type: =item
1935 #: ../cat/virt-ls.pod:220
1936 msgid "ctime"
1937 msgstr ""
1938
1939 #. type: textblock
1940 #: ../cat/virt-ls.pod:222
1941 msgid "The time of last status change."
1942 msgstr ""
1943
1944 #. type: textblock
1945 #: ../cat/virt-ls.pod:226
1946 msgid ""
1947 "The time fields are displayed as string dates and times, unless one of the "
1948 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
1949 msgstr ""
1950
1951 #. type: textblock
1952 #: ../cat/virt-ls.pod:229
1953 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
1954 msgstr ""
1955
1956 #. type: =item
1957 #: ../cat/virt-ls.pod:233
1958 msgid "device"
1959 msgstr ""
1960
1961 #. type: textblock
1962 #: ../cat/virt-ls.pod:235
1963 msgid ""
1964 "The device containing the file (displayed as major:minor).  This may not "
1965 "match devices as known to the guest."
1966 msgstr ""
1967
1968 #. type: =item
1969 #: ../cat/virt-ls.pod:238
1970 msgid "inode"
1971 msgstr ""
1972
1973 #. type: textblock
1974 #: ../cat/virt-ls.pod:240
1975 msgid "The inode number."
1976 msgstr ""
1977
1978 #. type: =item
1979 #: ../cat/virt-ls.pod:242
1980 msgid "nlink"
1981 msgstr ""
1982
1983 #. type: textblock
1984 #: ../cat/virt-ls.pod:244
1985 msgid "The number of hard links."
1986 msgstr ""
1987
1988 #. type: =item
1989 #: ../cat/virt-ls.pod:246
1990 msgid "rdev"
1991 msgstr ""
1992
1993 #. type: textblock
1994 #: ../cat/virt-ls.pod:248
1995 msgid ""
1996 "For block and char special files, the device (displayed as major:minor)."
1997 msgstr ""
1998
1999 #. type: =item
2000 #: ../cat/virt-ls.pod:251
2001 msgid "blocks"
2002 msgstr ""
2003
2004 #. type: textblock
2005 #: ../cat/virt-ls.pod:253
2006 msgid "The number of 512 byte blocks allocated to the file."
2007 msgstr ""
2008
2009 #. type: textblock
2010 #: ../cat/virt-ls.pod:257
2011 msgid ""
2012 "With the I<--checksum> flag, the checksum of the file contents is shown "
2013 "(only for regular files).  Computing file checksums can take a considerable "
2014 "amount of time."
2015 msgstr ""
2016
2017 #. type: =item
2018 #: ../cat/virt-ls.pod:280
2019 msgid "B<--checksum>"
2020 msgstr ""
2021
2022 #. type: =item
2023 #: ../cat/virt-ls.pod:282
2024 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2025 msgstr ""
2026
2027 #. type: textblock
2028 #: ../cat/virt-ls.pod:284
2029 msgid ""
2030 "Display checksum over file contents for regular files.  With no argument, "
2031 "this defaults to using I<md5>.  Using an argument, you can select the "
2032 "checksum type to use."
2033 msgstr ""
2034
2035 #. type: textblock
2036 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2037 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2038 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2039 msgid ""
2040 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2041 "LISTING> above."
2042 msgstr ""
2043
2044 #. type: textblock
2045 #: ../cat/virt-ls.pod:316
2046 msgid ""
2047 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2048 "so you cannot see what you are typing.  If you are not worried about Tempest "
2049 "attacks and there is no one else in the room you can specify this flag to "
2050 "see what you are typing."
2051 msgstr ""
2052
2053 #. type: =item
2054 #: ../cat/virt-ls.pod:321
2055 msgid "B<--extra-stats>"
2056 msgstr ""
2057
2058 #. type: textblock
2059 #: ../cat/virt-ls.pod:323
2060 msgid "Display extra stats."
2061 msgstr ""
2062
2063 #. type: verbatim
2064 #: ../cat/virt-ls.pod:339
2065 #, no-wrap
2066 msgid ""
2067 " virt-ls --format=raw -a disk.img /dir\n"
2068 "\n"
2069 msgstr ""
2070
2071 #. type: verbatim
2072 #: ../cat/virt-ls.pod:343
2073 #, no-wrap
2074 msgid ""
2075 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2076 "\n"
2077 msgstr ""
2078
2079 #. type: textblock
2080 #: ../cat/virt-ls.pod:356
2081 msgid "Display file sizes in human-readable format."
2082 msgstr ""
2083
2084 #. type: =item
2085 #: ../cat/virt-ls.pod:370
2086 msgid "B<-R>"
2087 msgstr ""
2088
2089 #. type: =item
2090 #: ../cat/virt-ls.pod:372
2091 msgid "B<--recursive>"
2092 msgstr ""
2093
2094 #. type: textblock
2095 #: ../cat/virt-ls.pod:374
2096 msgid ""
2097 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2098 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2099 "LISTING>."
2100 msgstr ""
2101
2102 #. type: textblock
2103 #: ../cat/virt-ls.pod:378
2104 msgid ""
2105 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2106 "LONG LISTING>."
2107 msgstr ""
2108
2109 #. type: textblock
2110 #: ../cat/virt-ls.pod:381
2111 msgid ""
2112 "C<virt-ls -R> produces a recursive list of files starting at the named "
2113 "directory.  See L</RECURSIVE LISTING>."
2114 msgstr ""
2115
2116 #. type: textblock
2117 #: ../cat/virt-ls.pod:384
2118 msgid ""
2119 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2120 "parsed.  See L</RECURSIVE LONG LISTING>."
2121 msgstr ""
2122
2123 #. type: =item
2124 #: ../cat/virt-ls.pod:387
2125 msgid "B<--times>"
2126 msgstr ""
2127
2128 #. type: textblock
2129 #: ../cat/virt-ls.pod:389
2130 msgid "Display time fields."
2131 msgstr ""
2132
2133 #. type: =item
2134 #: ../cat/virt-ls.pod:394
2135 msgid "B<--time-days>"
2136 msgstr ""
2137
2138 #. type: textblock
2139 #: ../cat/virt-ls.pod:396
2140 msgid "Display time fields as days before now (negative if in the future)."
2141 msgstr ""
2142
2143 #. type: textblock
2144 #: ../cat/virt-ls.pod:398
2145 msgid ""
2146 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2147 "of the file is between 0 and 86399 seconds."
2148 msgstr ""
2149
2150 #. type: =item
2151 #: ../cat/virt-ls.pod:404
2152 msgid "B<--time-relative>"
2153 msgstr ""
2154
2155 #. type: textblock
2156 #: ../cat/virt-ls.pod:406
2157 msgid "Display time fields as seconds before now (negative if in the future)."
2158 msgstr ""
2159
2160 #. type: =item
2161 #: ../cat/virt-ls.pod:411
2162 msgid "B<--time-t>"
2163 msgstr ""
2164
2165 #. type: textblock
2166 #: ../cat/virt-ls.pod:413
2167 msgid "Display time fields as seconds since the Unix epoch."
2168 msgstr ""
2169
2170 #. type: =item
2171 #: ../cat/virt-ls.pod:418
2172 msgid "B<--uids>"
2173 msgstr ""
2174
2175 #. type: textblock
2176 #: ../cat/virt-ls.pod:420
2177 msgid "Display UID and GID fields."
2178 msgstr ""
2179
2180 #. type: textblock
2181 #: ../cat/virt-ls.pod:445
2182 msgid "Previous versions of virt-ls allowed you to write either:"
2183 msgstr ""
2184
2185 #. type: verbatim
2186 #: ../cat/virt-ls.pod:447
2187 #, no-wrap
2188 msgid ""
2189 " virt-ls disk.img [disk.img ...] /dir\n"
2190 "\n"
2191 msgstr ""
2192
2193 #. type: verbatim
2194 #: ../cat/virt-ls.pod:451
2195 #, no-wrap
2196 msgid ""
2197 " virt-ls guestname /dir\n"
2198 "\n"
2199 msgstr ""
2200
2201 #. type: textblock
2202 #: ../cat/virt-ls.pod:497
2203 msgid ""
2204 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2205 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2206 "L<http://libguestfs.org/>."
2207 msgstr ""
2208
2209 #. type: textblock
2210 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2211 #: ../rescue/virt-rescue.pod:298
2212 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2213 msgstr ""
2214
2215 #. type: textblock
2216 #: ../df/virt-df.pod:5
2217 msgid "virt-df - Display free space on virtual filesystems"
2218 msgstr ""
2219
2220 #. type: verbatim
2221 #: ../df/virt-df.pod:9
2222 #, no-wrap
2223 msgid ""
2224 " virt-df [--options]\n"
2225 "\n"
2226 msgstr ""
2227
2228 #. type: verbatim
2229 #: ../df/virt-df.pod:11
2230 #, no-wrap
2231 msgid ""
2232 " virt-df [--options] -d domname\n"
2233 "\n"
2234 msgstr ""
2235
2236 #. type: verbatim
2237 #: ../df/virt-df.pod:13
2238 #, no-wrap
2239 msgid ""
2240 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2241 "\n"
2242 msgstr ""
2243
2244 #. type: verbatim
2245 #: ../df/virt-df.pod:17
2246 #, no-wrap
2247 msgid ""
2248 " virt-df [--options] domname\n"
2249 "\n"
2250 msgstr ""
2251
2252 #. type: verbatim
2253 #: ../df/virt-df.pod:19
2254 #, no-wrap
2255 msgid ""
2256 " virt-df [--options] disk.img [disk.img ...]\n"
2257 "\n"
2258 msgstr ""
2259
2260 #. type: textblock
2261 #: ../df/virt-df.pod:23
2262 msgid ""
2263 "C<virt-df> is a command line tool to display free space on virtual machine "
2264 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2265 "allocated to a virtual machine, but can look inside disk images to see how "
2266 "much space is really being used."
2267 msgstr ""
2268
2269 #. type: textblock
2270 #: ../df/virt-df.pod:28
2271 msgid ""
2272 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2273 "to get a list of all active and inactive guests, and performs a C<df>-type "
2274 "operation on each one in turn, printing out the results."
2275 msgstr ""
2276
2277 #. type: textblock
2278 #: ../df/virt-df.pod:32
2279 msgid ""
2280 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2281 "type operation on either the single named libvirt domain, or on the disk "
2282 "image(s) listed on the command line (which must all belong to a single VM).  "
2283 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2284 "guest>.  If you want to run on multiple guests, then you have to invoke "
2285 "C<virt-df> multiple times."
2286 msgstr ""
2287
2288 #. type: textblock
2289 #: ../df/virt-df.pod:39
2290 msgid ""
2291 "Use the I<--csv> option to get a format which can be easily parsed by other "
2292 "programs.  Other options are similar to the standard L<df(1)> command."
2293 msgstr ""
2294
2295 #. type: textblock
2296 #: ../df/virt-df.pod:45
2297 msgid ""
2298 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2299 "output human-readable:"
2300 msgstr ""
2301
2302 #. type: verbatim
2303 #: ../df/virt-df.pod:48
2304 #, no-wrap
2305 msgid ""
2306 " # virt-df -d F14x64 -h\n"
2307 " Filesystem                       Size     Used  Available  Use%\n"
2308 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2309 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2310 "\n"
2311 msgstr ""
2312
2313 #. type: textblock
2314 #: ../df/virt-df.pod:53
2315 msgid "Show disk usage for a disk image file called C<test.img>:"
2316 msgstr ""
2317
2318 #. type: verbatim
2319 #: ../df/virt-df.pod:55
2320 #, no-wrap
2321 msgid ""
2322 " $ virt-df -a test1.img\n"
2323 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2324 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2325 "\n"
2326 msgstr ""
2327
2328 #. type: verbatim
2329 #: ../df/virt-df.pod:112
2330 #, no-wrap
2331 msgid ""
2332 " virt-df --format=raw -a disk.img\n"
2333 "\n"
2334 msgstr ""
2335
2336 #. type: verbatim
2337 #: ../df/virt-df.pod:116
2338 #, no-wrap
2339 msgid ""
2340 " virt-df --format=raw -a disk.img --format -a another.img\n"
2341 "\n"
2342 msgstr ""
2343
2344 #. type: textblock
2345 #: ../df/virt-df.pod:129
2346 msgid "Print sizes in human-readable format."
2347 msgstr ""
2348
2349 #. type: textblock
2350 #: ../df/virt-df.pod:131
2351 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2352 msgstr ""
2353
2354 #. type: =item
2355 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2356 msgid "B<-i>"
2357 msgstr ""
2358
2359 #. type: =item
2360 #: ../df/virt-df.pod:135
2361 msgid "B<--inodes>"
2362 msgstr ""
2363
2364 #. type: textblock
2365 #: ../df/virt-df.pod:137
2366 msgid "Print inodes instead of blocks."
2367 msgstr ""
2368
2369 #. type: =item
2370 #: ../df/virt-df.pod:139
2371 msgid "B<--one-per-guest>"
2372 msgstr ""
2373
2374 #. type: textblock
2375 #: ../df/virt-df.pod:141
2376 msgid ""
2377 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2378 "disks from several guests to a single libguestfs appliance."
2379 msgstr ""
2380
2381 #. type: textblock
2382 #: ../df/virt-df.pod:144
2383 msgid "You might use this option in the following circumstances:"
2384 msgstr ""
2385
2386 #. type: =item
2387 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2388 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2389 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2390 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2391 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2392 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2393 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2394 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2395 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2396 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2397 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2398 #: ../fish/guestfish-actions.pod:1104 ../fish/guestfish-actions.pod:1108
2399 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
2400 #: ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128
2401 #: ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142
2402 #: ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150
2403 #: ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244
2404 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254
2405 #: ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300
2406 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1938
2407 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1952
2408 #: ../fish/guestfish-actions.pod:1959 ../fish/guestfish-actions.pod:1966
2409 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
2410 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
2411 #: ../inspector/virt-inspector.pod:393 ../inspector/virt-inspector.pod:397
2412 #: ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286
2413 #: ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301
2414 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
2415 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
2416 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
2417 #: ../src/guestfs-actions.pod:1667 ../src/guestfs-actions.pod:1671
2418 #: ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1679
2419 #: ../src/guestfs-actions.pod:1687 ../src/guestfs-actions.pod:1691
2420 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1705
2421 #: ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:1713
2422 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1855
2423 #: ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1865
2424 #: ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1930
2425 #: ../src/guestfs-actions.pod:1935 ../src/guestfs-actions.pod:2864
2426 #: ../src/guestfs-actions.pod:2870 ../src/guestfs-actions.pod:2878
2427 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:2892
2428 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2429 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2430 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
2431 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
2432 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
2433 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
2434 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
2435 #: ../src/guestfs.pod:1643 ../src/guestfs.pod:1648 ../src/guestfs.pod:1652
2436 #: ../src/guestfs.pod:1754 ../src/guestfs.pod:1759 ../src/guestfs.pod:1763
2437 #: ../src/guestfs.pod:1773 ../src/guestfs.pod:2047 ../src/guestfs.pod:2052
2438 #: ../src/guestfs.pod:2058 ../src/guestfs.pod:2066 ../src/guestfs.pod:2420
2439 #: ../src/guestfs.pod:2426 ../src/guestfs.pod:2431 ../src/guestfs.pod:2437
2440 #: ../src/guestfs.pod:2818 ../src/guestfs.pod:2823 ../src/guestfs.pod:2827
2441 #: ../src/guestfs.pod:2831 ../src/guestfs.pod:2835 ../src/guestfs.pod:2849
2442 #: ../src/guestfs.pod:2854 ../src/guestfs.pod:3079 ../src/guestfs.pod:3083
2443 #: ../src/guestfs.pod:3087 ../src/guestfs.pod:3091
2444 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2445 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2446 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2447 msgid "*"
2448 msgstr ""
2449
2450 #. type: textblock
2451 #: ../df/virt-df.pod:150
2452 msgid ""
2453 "If you think an untrusted guest might actively try to exploit the libguestfs "
2454 "appliance kernel, then this prevents one guest from interfering with the "
2455 "stats printed for another guest."
2456 msgstr ""
2457
2458 #. type: textblock
2459 #: ../df/virt-df.pod:156
2460 msgid ""
2461 "If the kernel has a bug which stops it from accessing a filesystem in one "
2462 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2463 "and report stats for further guests."
2464 msgstr ""
2465
2466 #. type: textblock
2467 #: ../df/virt-df.pod:165
2468 msgid ""
2469 "Print UUIDs instead of names.  This is useful for following a guest even "
2470 "when the guest is migrated or renamed, or when two guests happen to have the "
2471 "same name."
2472 msgstr ""
2473
2474 #. type: textblock
2475 #: ../df/virt-df.pod:169
2476 msgid ""
2477 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2478 "images, we still print the disk image name even when this option is "
2479 "specified."
2480 msgstr ""
2481
2482 #. type: textblock
2483 #: ../df/virt-df.pod:229
2484 msgid ""
2485 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2486 "libguestfs.org/>."
2487 msgstr ""
2488
2489 #. type: textblock
2490 #: ../edit/virt-edit.pod:5
2491 msgid "virt-edit - Edit a file in a virtual machine"
2492 msgstr ""
2493
2494 #. type: verbatim
2495 #: ../edit/virt-edit.pod:9
2496 #, no-wrap
2497 msgid ""
2498 " virt-edit [--options] -d domname file [file ...]\n"
2499 "\n"
2500 msgstr ""
2501
2502 #. type: verbatim
2503 #: ../edit/virt-edit.pod:11
2504 #, no-wrap
2505 msgid ""
2506 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2507 "\n"
2508 msgstr ""
2509
2510 #. type: verbatim
2511 #: ../edit/virt-edit.pod:13
2512 #, no-wrap
2513 msgid ""
2514 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2515 "\n"
2516 msgstr ""
2517
2518 #. type: verbatim
2519 #: ../edit/virt-edit.pod:17
2520 #, no-wrap
2521 msgid ""
2522 " virt-edit domname file\n"
2523 "\n"
2524 msgstr ""
2525
2526 #. type: verbatim
2527 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2528 #, no-wrap
2529 msgid ""
2530 " virt-edit disk.img [disk.img ...] file\n"
2531 "\n"
2532 msgstr ""
2533
2534 #. type: =head1
2535 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2536 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2537 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2538 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2539 msgid "WARNING"
2540 msgstr ""
2541
2542 #. type: textblock
2543 #: ../edit/virt-edit.pod:23
2544 msgid ""
2545 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2546 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2547 "doing this, but doesn't catch all cases."
2548 msgstr ""
2549
2550 #. type: textblock
2551 #: ../edit/virt-edit.pod:29
2552 msgid ""
2553 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2554 "exists in the named virtual machine (or disk image)."
2555 msgstr ""
2556
2557 #. type: textblock
2558 #: ../edit/virt-edit.pod:32
2559 msgid ""
2560 "Multiple filenames can be given, in which case they are each edited in "
2561 "turn.  Each filename must be a full path, starting at the root directory "
2562 "(starting with '/')."
2563 msgstr ""
2564
2565 #. type: textblock
2566 #: ../edit/virt-edit.pod:36
2567 msgid "If you want to just view a file, use L<virt-cat(1)>."
2568 msgstr ""
2569
2570 #. type: textblock
2571 #: ../edit/virt-edit.pod:38
2572 msgid ""
2573 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2574 "USING GUESTFISH> below)."
2575 msgstr ""
2576
2577 #. type: textblock
2578 #: ../edit/virt-edit.pod:41
2579 msgid ""
2580 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2581 "that and much more."
2582 msgstr ""
2583
2584 #. type: textblock
2585 #: ../edit/virt-edit.pod:46
2586 msgid "Edit the named files interactively:"
2587 msgstr ""
2588
2589 #. type: verbatim
2590 #: ../edit/virt-edit.pod:48
2591 #, no-wrap
2592 msgid ""
2593 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2594 "\n"
2595 msgstr ""
2596
2597 #. type: verbatim
2598 #: ../edit/virt-edit.pod:50
2599 #, no-wrap
2600 msgid ""
2601 " virt-edit -d mydomain /etc/passwd\n"
2602 "\n"
2603 msgstr ""
2604
2605 #. type: textblock
2606 #: ../edit/virt-edit.pod:52
2607 msgid "For Windows guests, some Windows paths are understood:"
2608 msgstr ""
2609
2610 #. type: verbatim
2611 #: ../edit/virt-edit.pod:54
2612 #, no-wrap
2613 msgid ""
2614 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2615 "\n"
2616 msgstr ""
2617
2618 #. type: textblock
2619 #: ../edit/virt-edit.pod:56
2620 msgid ""
2621 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2622 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2623 msgstr ""
2624
2625 #. type: verbatim
2626 #: ../edit/virt-edit.pod:60
2627 #, no-wrap
2628 msgid ""
2629 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2630 "\n"
2631 msgstr ""
2632
2633 #. type: =item
2634 #: ../edit/virt-edit.pod:81
2635 msgid "B<-b> extension"
2636 msgstr ""
2637
2638 #. type: =item
2639 #: ../edit/virt-edit.pod:83
2640 msgid "B<--backup> extension"
2641 msgstr ""
2642
2643 #. type: textblock
2644 #: ../edit/virt-edit.pod:85
2645 msgid ""
2646 "Create a backup of the original file I<in the guest disk image>.  The backup "
2647 "has the original filename with C<extension> added."
2648 msgstr ""
2649
2650 #. type: textblock
2651 #: ../edit/virt-edit.pod:88
2652 msgid ""
2653 "Usually the first character of C<extension> would be a dot C<.> so you would "
2654 "write:"
2655 msgstr ""
2656
2657 #. type: verbatim
2658 #: ../edit/virt-edit.pod:91
2659 #, no-wrap
2660 msgid ""
2661 " virt-edit -b .orig [etc]\n"
2662 "\n"
2663 msgstr ""
2664
2665 #. type: textblock
2666 #: ../edit/virt-edit.pod:93
2667 msgid "By default, no backup file is made."
2668 msgstr ""
2669
2670 #. type: =item
2671 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2672 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2673 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2674 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2675 msgid "B<-c URI>"
2676 msgstr ""
2677
2678 #. type: =item
2679 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2680 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2681 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2682 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2683 msgid "B<--connect URI>"
2684 msgstr ""
2685
2686 #. type: textblock
2687 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2688 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2689 #: ../tools/virt-win-reg.pl:135
2690 msgid ""
2691 "If you specify guest block devices directly, then libvirt is not used at all."
2692 msgstr ""
2693
2694 #. type: textblock
2695 #: ../edit/virt-edit.pod:114
2696 msgid ""
2697 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2698 "off so you cannot see what you are typing.  If you are not worried about "
2699 "Tempest attacks and there is no one else in the room you can specify this "
2700 "flag to see what you are typing."
2701 msgstr ""
2702
2703 #. type: =item
2704 #: ../edit/virt-edit.pod:119
2705 msgid "B<-e> EXPR"
2706 msgstr ""
2707
2708 #. type: =item
2709 #: ../edit/virt-edit.pod:121
2710 msgid "B<--expr> EXPR"
2711 msgstr ""
2712
2713 #. type: textblock
2714 #: ../edit/virt-edit.pod:123
2715 msgid ""
2716 "Instead of launching the external editor, non-interactively apply the Perl "
2717 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
2718 "EDITING> below."
2719 msgstr ""
2720
2721 #. type: textblock
2722 #: ../edit/virt-edit.pod:127
2723 msgid ""
2724 "Be careful to properly quote the expression to prevent it from being altered "
2725 "by the shell."
2726 msgstr ""
2727
2728 #. type: textblock
2729 #: ../edit/virt-edit.pod:130
2730 msgid "Note that this option is only available when Perl 5 is installed."
2731 msgstr ""
2732
2733 #. type: =item
2734 #: ../edit/virt-edit.pod:132
2735 msgid "B<--format> raw|qcow2|..."
2736 msgstr ""
2737
2738 #. type: verbatim
2739 #: ../edit/virt-edit.pod:143
2740 #, no-wrap
2741 msgid ""
2742 " virt-edit --format=raw -a disk.img file\n"
2743 "\n"
2744 msgstr ""
2745
2746 #. type: verbatim
2747 #: ../edit/virt-edit.pod:147
2748 #, no-wrap
2749 msgid ""
2750 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
2751 "\n"
2752 msgstr ""
2753
2754 #. type: textblock
2755 #: ../edit/virt-edit.pod:181
2756 msgid "Previous versions of virt-edit allowed you to write either:"
2757 msgstr ""
2758
2759 #. type: verbatim
2760 #: ../edit/virt-edit.pod:187
2761 #, no-wrap
2762 msgid ""
2763 " virt-edit guestname file\n"
2764 "\n"
2765 msgstr ""
2766
2767 #. type: =head1
2768 #: ../edit/virt-edit.pod:195
2769 msgid "NON-INTERACTIVE EDITING"
2770 msgstr ""
2771
2772 #. type: textblock
2773 #: ../edit/virt-edit.pod:197
2774 msgid ""
2775 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
2776 "administrator can interactively edit the file."
2777 msgstr ""
2778
2779 #. type: textblock
2780 #: ../edit/virt-edit.pod:200
2781 msgid ""
2782 "There are two ways also to use C<virt-edit> from scripts in order to make "
2783 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
2784 "like this, it's less error-prone to write scripts directly using the "
2785 "libguestfs API and Augeas for configuration file editing.)"
2786 msgstr ""
2787
2788 #. type: textblock
2789 #: ../edit/virt-edit.pod:206
2790 msgid ""
2791 "The first method is to temporarily set C<$EDITOR> to any script or program "
2792 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
2793 "update C<tmpfile> in place however it likes."
2794 msgstr ""
2795
2796 #. type: textblock
2797 #: ../edit/virt-edit.pod:210
2798 msgid ""
2799 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
2800 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
2801 "instances of C<foo> with C<bar> in a file:"
2802 msgstr ""
2803
2804 #. type: verbatim
2805 #: ../edit/virt-edit.pod:214
2806 #, no-wrap
2807 msgid ""
2808 " virt-edit -d domname filename -e 's/foo/bar/'\n"
2809 "\n"
2810 msgstr ""
2811
2812 #. type: textblock
2813 #: ../edit/virt-edit.pod:216
2814 msgid ""
2815 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
2816 "For example to delete root's password you could do:"
2817 msgstr ""
2818
2819 #. type: verbatim
2820 #: ../edit/virt-edit.pod:219
2821 #, no-wrap
2822 msgid ""
2823 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
2824 "\n"
2825 msgstr ""
2826
2827 #. type: textblock
2828 #: ../edit/virt-edit.pod:221
2829 msgid ""
2830 "What really happens is that the snippet is evaluated as a Perl expression "
2831 "for each line of the file.  The line, including the final C<\\n>, is passed "
2832 "in C<$_> and the expression should update C<$_> or leave it unchanged."
2833 msgstr ""
2834
2835 #. type: textblock
2836 #: ../edit/virt-edit.pod:226
2837 msgid ""
2838 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
2839 "C<apache> user account from the password file you can do:"
2840 msgstr ""
2841
2842 #. type: verbatim
2843 #: ../edit/virt-edit.pod:229
2844 #, no-wrap
2845 msgid ""
2846 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
2847 "\n"
2848 msgstr ""
2849
2850 #. type: textblock
2851 #: ../edit/virt-edit.pod:231
2852 msgid ""
2853 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
2854 "the end of the file is rather difficult this way since there is no concept "
2855 "of \"last line of the file\" - your expression just doesn't get called "
2856 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
2857 "want to do this."
2858 msgstr ""
2859
2860 #. type: textblock
2861 #: ../edit/virt-edit.pod:237
2862 msgid ""
2863 "The variable C<$lineno> contains the current line number.  As is "
2864 "traditional, the first line in the file is number C<1>."
2865 msgstr ""
2866
2867 #. type: textblock
2868 #: ../edit/virt-edit.pod:240
2869 msgid ""
2870 "The return value from the expression is ignored, but the expression may call "
2871 "C<die> in order to abort the whole program, leaving the original file "
2872 "untouched."
2873 msgstr ""
2874
2875 #. type: textblock
2876 #: ../edit/virt-edit.pod:244
2877 msgid ""
2878 "Remember when matching the end of a line that C<$_> may contain the final C<"
2879 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
2880 "newline then neither of these.  Thus to match or substitute some text at the "
2881 "end of a line, use this regular expression:"
2882 msgstr ""
2883
2884 #. type: verbatim
2885 #: ../edit/virt-edit.pod:249
2886 #, no-wrap
2887 msgid ""
2888 " /some text(\\r?\\n)?$/\n"
2889 "\n"
2890 msgstr ""
2891
2892 #. type: textblock
2893 #: ../edit/virt-edit.pod:251
2894 msgid ""
2895 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
2896 "$_> itself (since that would remove all newlines from the file):"
2897 msgstr ""
2898
2899 #. type: verbatim
2900 #: ../edit/virt-edit.pod:255
2901 #, no-wrap
2902 msgid ""
2903 " my $m = $_; chomp $m; $m =~ /some text$/\n"
2904 "\n"
2905 msgstr ""
2906
2907 #. type: =head1
2908 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
2909 msgid "WINDOWS PATHS"
2910 msgstr ""
2911
2912 #. type: textblock
2913 #: ../edit/virt-edit.pod:259
2914 msgid ""
2915 "C<virt-edit> has a limited ability to understand Windows drive letters and "
2916 "paths (eg. C<E:\\foo\\bar.txt>)."
2917 msgstr ""
2918
2919 #. type: textblock
2920 #: ../edit/virt-edit.pod:262
2921 msgid "If and only if the guest is running Windows then:"
2922 msgstr ""
2923
2924 #. type: textblock
2925 #: ../edit/virt-edit.pod:268
2926 msgid ""
2927 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
2928 "to the correct filesystem."
2929 msgstr ""
2930
2931 #. type: textblock
2932 #: ../edit/virt-edit.pod:273
2933 msgid ""
2934 "Any backslash (C<\\>) characters in the path are replaced with forward "
2935 "slashes so that libguestfs can process it."
2936 msgstr ""
2937
2938 #. type: textblock
2939 #: ../edit/virt-edit.pod:278
2940 msgid ""
2941 "The path is resolved case insensitively to locate the file that should be "
2942 "edited."
2943 msgstr ""
2944
2945 #. type: textblock
2946 #: ../edit/virt-edit.pod:283
2947 msgid "There are some known shortcomings:"
2948 msgstr ""
2949
2950 #. type: textblock
2951 #: ../edit/virt-edit.pod:289
2952 msgid "Some NTFS symbolic links may not be followed correctly."
2953 msgstr ""
2954
2955 #. type: textblock
2956 #: ../edit/virt-edit.pod:293
2957 msgid "NTFS junction points that cross filesystems are not followed."
2958 msgstr ""
2959
2960 #. type: textblock
2961 #: ../edit/virt-edit.pod:299
2962 msgid ""
2963 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
2964 "C<virt-edit> doesn't work."
2965 msgstr ""
2966
2967 #. type: textblock
2968 #: ../edit/virt-edit.pod:302
2969 msgid "Using C<virt-edit> is approximately equivalent to doing:"
2970 msgstr ""
2971
2972 #. type: verbatim
2973 #: ../edit/virt-edit.pod:304
2974 #, no-wrap
2975 msgid ""
2976 " guestfish --rw -i -d domname edit /file\n"
2977 "\n"
2978 msgstr ""
2979
2980 #. type: textblock
2981 #: ../edit/virt-edit.pod:306
2982 msgid ""
2983 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
2984 "path to the file."
2985 msgstr ""
2986
2987 #. type: textblock
2988 #: ../edit/virt-edit.pod:309
2989 msgid ""
2990 "The command above uses libguestfs's guest inspection feature and so does not "
2991 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
2992 "disk images that don't contain guests.  To edit a file on a disk image "
2993 "directly, use:"
2994 msgstr ""
2995
2996 #. type: verbatim
2997 #: ../edit/virt-edit.pod:314
2998 #, no-wrap
2999 msgid ""
3000 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3001 "\n"
3002 msgstr ""
3003
3004 #. type: textblock
3005 #: ../edit/virt-edit.pod:316
3006 msgid ""
3007 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3008 "the disk image to edit, and C</file> is the full path to the file."
3009 msgstr ""
3010
3011 #. type: textblock
3012 #: ../edit/virt-edit.pod:320
3013 msgid ""
3014 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3015 "C<write> or C<upload> instead:"
3016 msgstr ""
3017
3018 #. type: verbatim
3019 #: ../edit/virt-edit.pod:323
3020 #, no-wrap
3021 msgid ""
3022 " guestfish --rw -i -d domname touch /newfile\n"
3023 "\n"
3024 msgstr ""
3025
3026 #. type: verbatim
3027 #: ../edit/virt-edit.pod:325
3028 #, no-wrap
3029 msgid ""
3030 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3031 "\n"
3032 msgstr ""
3033
3034 #. type: verbatim
3035 #: ../edit/virt-edit.pod:327
3036 #, no-wrap
3037 msgid ""
3038 " guestfish --rw -i -d domname upload localfile /newfile\n"
3039 "\n"
3040 msgstr ""
3041
3042 #. type: =head1
3043 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3044 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:2965
3045 #: ../test-tool/libguestfs-test-tool.pod:82
3046 msgid "ENVIRONMENT VARIABLES"
3047 msgstr ""
3048
3049 #. type: =item
3050 #: ../edit/virt-edit.pod:333
3051 msgid "C<EDITOR>"
3052 msgstr ""
3053
3054 #. type: textblock
3055 #: ../edit/virt-edit.pod:335
3056 msgid ""
3057 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3058 "\"emacs -nw\">"
3059 msgstr ""
3060
3061 #. type: textblock
3062 #: ../edit/virt-edit.pod:338
3063 msgid "If not set, C<vi> is used."
3064 msgstr ""
3065
3066 #. type: textblock
3067 #: ../edit/virt-edit.pod:356
3068 msgid ""
3069 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3070 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3071 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3072 msgstr ""
3073
3074 #. type: textblock
3075 #: ../examples/guestfs-examples.pod:5
3076 msgid "guestfs-examples - Examples of using libguestfs from C"
3077 msgstr ""
3078
3079 #. type: verbatim
3080 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3081 #, no-wrap
3082 msgid ""
3083 " #include <guestfs.h>\n"
3084 " \n"
3085 msgstr ""
3086
3087 #. type: verbatim
3088 #: ../examples/guestfs-examples.pod:11
3089 #, no-wrap
3090 msgid ""
3091 " guestfs_h *g = guestfs_create ();\n"
3092 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3093 " guestfs_launch (g);\n"
3094 "\n"
3095 msgstr ""
3096
3097 #. type: verbatim
3098 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3099 #, no-wrap
3100 msgid ""
3101 " cc prog.c -o prog -lguestfs\n"
3102 "or:\n"
3103 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3104 "\n"
3105 msgstr ""
3106
3107 #. type: textblock
3108 #: ../examples/guestfs-examples.pod:21
3109 msgid ""
3110 "This manual page contains examples of calling libguestfs from the C "
3111 "programming language.  If you are not familiar with using libguestfs, you "
3112 "also need to read L<guestfs(3)>."
3113 msgstr ""
3114
3115 #. type: =head1
3116 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3117 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3118 #: ../python/examples/guestfs-python.pod:34
3119 #: ../ruby/examples/guestfs-ruby.pod:28
3120 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3121 msgstr ""
3122
3123 #. type: textblock
3124 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3125 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3126 #: ../python/examples/guestfs-python.pod:36
3127 #: ../ruby/examples/guestfs-ruby.pod:30
3128 msgid "@EXAMPLE1@"
3129 msgstr ""
3130
3131 #. type: =head1
3132 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3133 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3134 #: ../python/examples/guestfs-python.pod:38
3135 #: ../ruby/examples/guestfs-ruby.pod:32
3136 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3137 msgstr ""
3138
3139 #. type: textblock
3140 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3141 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3142 #: ../python/examples/guestfs-python.pod:40
3143 #: ../ruby/examples/guestfs-ruby.pod:34
3144 msgid "@EXAMPLE2@"
3145 msgstr ""
3146
3147 #. type: textblock
3148 #: ../examples/guestfs-examples.pod:35
3149 msgid ""
3150 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
3151 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
3152 "libguestfs.org/>."
3153 msgstr ""
3154
3155 #. type: =head1
3156 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396
3157 #: ../fish/guestfish.pod:1260 ../fish/virt-copy-in.pod:60
3158 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3159 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
3160 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:57
3161 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3162 #: ../python/examples/guestfs-python.pod:53
3163 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3098
3164 #: ../test-tool/libguestfs-test-tool.pod:93
3165 msgid "AUTHORS"
3166 msgstr ""
3167
3168 #. type: textblock
3169 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398
3170 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:62
3171 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3172 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
3173 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3174 #: ../perl/examples/guestfs-perl.pod:53
3175 #: ../python/examples/guestfs-python.pod:55
3176 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3100
3177 #: ../test-tool/libguestfs-test-tool.pod:95
3178 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3179 msgstr ""
3180
3181 #. type: textblock
3182 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96
3183 #: ../python/examples/guestfs-python.pod:59
3184 #: ../ruby/examples/guestfs-ruby.pod:53
3185 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3186 msgstr ""
3187
3188 #. type: textblock
3189 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404
3190 #: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98
3191 #: ../perl/examples/guestfs-perl.pod:59
3192 #: ../python/examples/guestfs-python.pod:61
3193 #: ../ruby/examples/guestfs-ruby.pod:55
3194 msgid ""
3195 "The examples in this manual page may be freely copied, modified and "
3196 "distributed without any restrictions."
3197 msgstr ""
3198
3199 #. type: textblock
3200 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407
3201 #: ../java/examples/guestfs-java.pod:68
3202 #: ../ocaml/examples/guestfs-ocaml.pod:101
3203 #: ../perl/examples/guestfs-perl.pod:62
3204 #: ../python/examples/guestfs-python.pod:64
3205 #: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3107
3206 msgid ""
3207 "This library is free software; you can redistribute it and/or modify it "
3208 "under the terms of the GNU Lesser General Public License as published by the "
3209 "Free Software Foundation; either version 2 of the License, or (at your "
3210 "option) any later version."
3211 msgstr ""
3212
3213 #. type: textblock
3214 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412
3215 #: ../java/examples/guestfs-java.pod:73
3216 #: ../ocaml/examples/guestfs-ocaml.pod:106
3217 #: ../perl/examples/guestfs-perl.pod:67
3218 #: ../python/examples/guestfs-python.pod:69
3219 #: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3112
3220 msgid ""
3221 "This library is distributed in the hope that it will be useful, but WITHOUT "
3222 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3223 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3224 "for more details."
3225 msgstr ""
3226
3227 #. type: textblock
3228 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417
3229 #: ../java/examples/guestfs-java.pod:78
3230 #: ../ocaml/examples/guestfs-ocaml.pod:111
3231 #: ../perl/examples/guestfs-perl.pod:72
3232 #: ../python/examples/guestfs-python.pod:74
3233 #: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3117
3234 msgid ""
3235 "You should have received a copy of the GNU Lesser General Public License "
3236 "along with this library; if not, write to the Free Software Foundation, "
3237 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3238 msgstr ""
3239
3240 #. type: =end
3241 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3242 msgid "comment"
3243 msgstr ""
3244
3245 #. type: textblock
3246 #: ../examples/guestfs-recipes.pod:5
3247 msgid ""
3248 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3249 "here.  The only way which works for both sorts of output is to just write "
3250 "the URL directly.  Do NOT use L<...> for URLs."
3251 msgstr ""
3252
3253 #. type: textblock
3254 #: ../examples/guestfs-recipes.pod:9
3255 msgid ""
3256 "We break with tradition here and don't use ALL CAPS for the section "
3257 "headings, as this makes them much easier to read."
3258 msgstr ""
3259
3260 #. type: textblock
3261 #: ../examples/guestfs-recipes.pod:16
3262 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3263 msgstr ""
3264
3265 #. type: textblock
3266 #: ../examples/guestfs-recipes.pod:20
3267 msgid ""
3268 "This page contains recipes for and links to things you can do using "
3269 "libguestfs, L<guestfish(1)> and the virt tools."
3270 msgstr ""
3271
3272 #. type: =head1
3273 #: ../examples/guestfs-recipes.pod:23
3274 msgid "Audit a virtual machine for setuid files"
3275 msgstr ""
3276
3277 #. type: textblock
3278 #: ../examples/guestfs-recipes.pod:25
3279 msgid ""
3280 "The link below contains a small program which can be used to audit a Linux "
3281 "virtual machine to see what setuid and setgid files it contains."
3282 msgstr ""
3283
3284 #. type: textblock
3285 #: ../examples/guestfs-recipes.pod:28
3286 msgid ""
3287 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3288 "files/#content"
3289 msgstr ""
3290
3291 #. type: =head1
3292 #: ../examples/guestfs-recipes.pod:30
3293 msgid "Change the background image in a Windows XP VM"
3294 msgstr ""
3295
3296 #. type: textblock
3297 #: ../examples/guestfs-recipes.pod:32
3298 msgid ""
3299 "The links below explain how to use L<guestfish(1)> to change the background "
3300 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3301 "be substantially different for each version of Windows."
3302 msgstr ""
3303
3304 #. type: textblock
3305 #: ../examples/guestfs-recipes.pod:37
3306 msgid ""
3307 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3308 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3309 msgstr ""
3310
3311 #. type: =head1
3312 #: ../examples/guestfs-recipes.pod:40
3313 msgid "Cloning a virtual machine (Linux)"
3314 msgstr ""
3315
3316 #. type: textblock
3317 #: ../examples/guestfs-recipes.pod:42
3318 msgid ""
3319 "The guestfish technique described in the link below works well for most "
3320 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3321 "slightly."
3322 msgstr ""
3323
3324 #. type: textblock
3325 #: ../examples/guestfs-recipes.pod:46
3326 msgid ""
3327 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3328 "vm/#content"
3329 msgstr ""
3330
3331 #. type: textblock
3332 #: ../examples/guestfs-recipes.pod:48
3333 msgid ""
3334 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3335 "discussion."
3336 msgstr ""
3337
3338 #. type: textblock
3339 #: ../examples/guestfs-recipes.pod:51
3340 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3341 msgstr ""
3342
3343 #. type: =head1
3344 #: ../examples/guestfs-recipes.pod:53
3345 msgid "Cloning a virtual machine (Windows)"
3346 msgstr ""
3347
3348 #. type: textblock
3349 #: ../examples/guestfs-recipes.pod:55
3350 msgid ""
3351 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3352 "straightforward.  Currently there is code in the Aeolus Oz project which "
3353 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3354 "we may add sysprepping ability."
3355 msgstr ""
3356
3357 #. type: textblock
3358 #: ../examples/guestfs-recipes.pod:60
3359 msgid ""
3360 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3361 "list/2011-May/msg00019.html"
3362 msgstr ""
3363
3364 #. type: =head1
3365 #: ../examples/guestfs-recipes.pod:63
3366 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3367 msgstr ""
3368
3369 #. type: textblock
3370 #: ../examples/guestfs-recipes.pod:65
3371 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3372 msgstr ""
3373
3374 #. type: verbatim
3375 #: ../examples/guestfs-recipes.pod:67
3376 #, no-wrap
3377 msgid ""
3378 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3379 "\n"
3380 msgstr ""
3381
3382 #. type: textblock
3383 #: ../examples/guestfs-recipes.pod:69
3384 msgid "To export just a subdirectory, eg. C</files>, do:"
3385 msgstr ""
3386
3387 #. type: verbatim
3388 #: ../examples/guestfs-recipes.pod:71
3389 #, no-wrap
3390 msgid ""
3391 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3392 "\n"
3393 msgstr ""
3394
3395 #. type: =head1
3396 #: ../examples/guestfs-recipes.pod:73
3397 msgid "Create empty disk images"
3398 msgstr ""
3399
3400 #. type: textblock
3401 #: ../examples/guestfs-recipes.pod:75
3402 msgid ""
3403 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3404 "The useful guide below explains the options available."
3405 msgstr ""
3406
3407 #. type: textblock
3408 #: ../examples/guestfs-recipes.pod:78
3409 msgid ""
3410 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3411 "#content"
3412 msgstr ""
3413
3414 #. type: =head1
3415 #: ../examples/guestfs-recipes.pod:80
3416 msgid "Dump raw filesystem content from inside a disk image or VM"
3417 msgstr ""
3418
3419 #. type: textblock
3420 #: ../examples/guestfs-recipes.pod:82
3421 msgid ""
3422 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3423 "filesystem content from any filesystem in a disk image or a VM (even one "
3424 "which is encrypted or buried inside an LV):"
3425 msgstr ""
3426
3427 #. type: verbatim
3428 #: ../examples/guestfs-recipes.pod:86
3429 #, no-wrap
3430 msgid ""
3431 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3432 "\n"
3433 msgstr ""
3434
3435 #. type: verbatim
3436 #: ../examples/guestfs-recipes.pod:88
3437 #, no-wrap
3438 msgid ""
3439 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3440 "\n"
3441 msgstr ""
3442
3443 #. type: textblock
3444 #: ../examples/guestfs-recipes.pod:90
3445 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3446 msgstr ""
3447
3448 #. type: =head1
3449 #: ../examples/guestfs-recipes.pod:92
3450 msgid "Edit grub configuration in a VM"
3451 msgstr ""
3452
3453 #. type: textblock
3454 #: ../examples/guestfs-recipes.pod:94
3455 msgid "You can use this to:"
3456 msgstr ""
3457
3458 #. type: textblock
3459 #: ../examples/guestfs-recipes.pod:100
3460 msgid "Fix a virtual machine that does not boot."
3461 msgstr ""
3462
3463 #. type: textblock
3464 #: ../examples/guestfs-recipes.pod:104
3465 msgid "Change which kernel is used to boot the VM."
3466 msgstr ""
3467
3468 #. type: textblock
3469 #: ../examples/guestfs-recipes.pod:108
3470 msgid "Change kernel command line options."
3471 msgstr ""
3472
3473 #. type: textblock
3474 #: ../examples/guestfs-recipes.pod:112
3475 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3476 msgstr ""
3477
3478 #. type: verbatim
3479 #: ../examples/guestfs-recipes.pod:114
3480 #, no-wrap
3481 msgid ""
3482 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3483 "\n"
3484 msgstr ""
3485
3486 #. type: textblock
3487 #: ../examples/guestfs-recipes.pod:116
3488 msgid ""
3489 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3490 "this:"
3491 msgstr ""
3492
3493 #. type: verbatim
3494 #: ../examples/guestfs-recipes.pod:119
3495 #, no-wrap
3496 msgid ""
3497 " virt-rescue -d BrokenGuest\n"
3498 "\n"
3499 msgstr ""
3500
3501 #. type: =head1
3502 #: ../examples/guestfs-recipes.pod:121
3503 msgid "Export any directory from a VM"
3504 msgstr ""
3505
3506 #. type: textblock
3507 #: ../examples/guestfs-recipes.pod:123
3508 msgid ""
3509 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3510 msgstr ""
3511
3512 #. type: verbatim
3513 #: ../examples/guestfs-recipes.pod:126
3514 #, no-wrap
3515 msgid ""
3516 " virt-copy-out -d Guest /home .\n"
3517 "\n"
3518 msgstr ""
3519
3520 #. type: textblock
3521 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3522 #: ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1934
3523 #: ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1922
3524 #: ../src/guestfs-actions.pod:2860 ../src/guestfs.pod:1639
3525 #: ../tools/virt-win-reg.pl:706
3526 msgid "Notes:"
3527 msgstr ""
3528
3529 #. type: textblock
3530 #: ../examples/guestfs-recipes.pod:134
3531 msgid ""
3532 "The final dot of the command is not a printing error.  It means we want to "
3533 "copy out to the current directory."
3534 msgstr ""
3535
3536 #. type: textblock
3537 #: ../examples/guestfs-recipes.pod:139
3538 msgid "This creates a directory called C<home> under the current directory."
3539 msgstr ""
3540
3541 #. type: textblock
3542 #: ../examples/guestfs-recipes.pod:143
3543 msgid ""
3544 "If the guest is a Windows guest then you can use drive letters and "
3545 "backslashes, but you must prefix the path with C<win:> and quote it to "
3546 "protect it from the shell, like this:"
3547 msgstr ""
3548
3549 #. type: verbatim
3550 #: ../examples/guestfs-recipes.pod:147
3551 #, no-wrap
3552 msgid ""
3553 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3554 "\n"
3555 msgstr ""
3556
3557 #. type: textblock
3558 #: ../examples/guestfs-recipes.pod:149
3559 msgid "To get the output as a compressed tarball, do:"
3560 msgstr ""
3561
3562 #. type: verbatim
3563 #: ../examples/guestfs-recipes.pod:151
3564 #, no-wrap
3565 msgid ""
3566 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3567 "\n"
3568 msgstr ""
3569
3570 #. type: textblock
3571 #: ../examples/guestfs-recipes.pod:153
3572 msgid ""
3573 "Although it sounds tempting, this is usually not a reliable way to get a "
3574 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
3575 "org/FAQ.html#backup"
3576 msgstr ""
3577
3578 #. type: =head1
3579 #: ../examples/guestfs-recipes.pod:157
3580 msgid "Find out which user is using the most space"
3581 msgstr ""
3582
3583 #. type: textblock
3584 #: ../examples/guestfs-recipes.pod:159
3585 msgid ""
3586 "This simple script examines a Linux guest to find out which user is using "
3587 "the most space in their home directory:"
3588 msgstr ""
3589
3590 #. type: verbatim
3591 #: ../examples/guestfs-recipes.pod:162
3592 #, no-wrap
3593 msgid ""
3594 " #!/bin/sh -\n"
3595 " \n"
3596 msgstr ""
3597
3598 #. type: verbatim
3599 #: ../examples/guestfs-recipes.pod:164
3600 #, no-wrap
3601 msgid ""
3602 " set -e\n"
3603 " \n"
3604 msgstr ""
3605
3606 #. type: verbatim
3607 #: ../examples/guestfs-recipes.pod:166
3608 #, no-wrap
3609 msgid ""
3610 " vm=\"$1\"\n"
3611 " dir=/home\n"
3612 " \n"
3613 msgstr ""
3614
3615 #. type: verbatim
3616 #: ../examples/guestfs-recipes.pod:169
3617 #, no-wrap
3618 msgid ""
3619 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3620 " \n"
3621 msgstr ""
3622
3623 #. type: verbatim
3624 #: ../examples/guestfs-recipes.pod:171
3625 #, no-wrap
3626 msgid ""
3627 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3628 "     echo -n \"$dir/$d\"\n"
3629 "     echo -ne '\\t'\n"
3630 "     guestfish --remote du \"$dir/$d\";\n"
3631 " done | sort -nr -k 2\n"
3632 " \n"
3633 msgstr ""
3634
3635 #. type: verbatim
3636 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3637 #, no-wrap
3638 msgid ""
3639 " guestfish --remote exit\n"
3640 "\n"
3641 msgstr ""
3642
3643 #. type: =head1
3644 #: ../examples/guestfs-recipes.pod:179
3645 msgid "Get DHCP address from a VM"
3646 msgstr ""
3647
3648 #. type: textblock
3649 #: ../examples/guestfs-recipes.pod:181
3650 msgid ""
3651 "The link below explains the many different possible techniques for getting "
3652 "the last assigned DHCP address of a virtual machine."
3653 msgstr ""
3654
3655 #. type: textblock
3656 #: ../examples/guestfs-recipes.pod:184
3657 msgid ""
3658 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
3659 "a-virtual-machine-disk-image/#content"
3660 msgstr ""
3661
3662 #. type: textblock
3663 #: ../examples/guestfs-recipes.pod:186
3664 msgid ""
3665 "In the libguestfs source examples directory you will find the latest version "
3666 "of the C<virt-dhcp-address.c> program."
3667 msgstr ""
3668
3669 #. type: =head1
3670 #: ../examples/guestfs-recipes.pod:189
3671 msgid "Get the operating system product name string"
3672 msgstr ""
3673
3674 #. type: textblock
3675 #: ../examples/guestfs-recipes.pod:191
3676 msgid "Save the following script into a file called C<product-name.sh>:"
3677 msgstr ""
3678
3679 #. type: verbatim
3680 #: ../examples/guestfs-recipes.pod:193
3681 #, no-wrap
3682 msgid ""
3683 " #!/bin/sh -\n"
3684 " set -e\n"
3685 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3686 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3687 " guestfish --remote inspect-get-product-name \"$root\"\n"
3688 " guestfish --remote exit\n"
3689 "\n"
3690 msgstr ""
3691
3692 #. type: textblock
3693 #: ../examples/guestfs-recipes.pod:200
3694 msgid "Make the script executable and run it on a named guest:"
3695 msgstr ""
3696
3697 #. type: verbatim
3698 #: ../examples/guestfs-recipes.pod:202
3699 #, no-wrap
3700 msgid ""
3701 " # product-name.sh RHEL60x64\n"
3702 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
3703 "\n"
3704 msgstr ""
3705
3706 #. type: textblock
3707 #: ../examples/guestfs-recipes.pod:205
3708 msgid ""
3709 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
3710 "C<xpath> command line tool or from your favourite programming language:"
3711 msgstr ""
3712
3713 #. type: verbatim
3714 #: ../examples/guestfs-recipes.pod:209
3715 #, no-wrap
3716 msgid ""
3717 " # virt-inspector RHEL60x64 > xml\n"
3718 " # xpath '//product_name' < xml\n"
3719 " Found 1 nodes:\n"
3720 " -- NODE --\n"
3721 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
3722 "\n"
3723 msgstr ""
3724
3725 #. type: =head1
3726 #: ../examples/guestfs-recipes.pod:215
3727 msgid "Get the default boot kernel for a Linux VM"
3728 msgstr ""
3729
3730 #. type: textblock
3731 #: ../examples/guestfs-recipes.pod:217
3732 msgid ""
3733 "The link below contains a program to print the default boot kernel for a "
3734 "Linux VM."
3735 msgstr ""
3736
3737 #. type: textblock
3738 #: ../examples/guestfs-recipes.pod:220
3739 msgid ""
3740 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
3741 "kernel-for-a-vm/#content"
3742 msgstr ""
3743
3744 #. type: textblock
3745 #: ../examples/guestfs-recipes.pod:222
3746 msgid ""
3747 "It uses Augeas, and the technique is generally applicable for many different "
3748 "tasks, such as:"
3749 msgstr ""
3750
3751 #. type: textblock
3752 #: ../examples/guestfs-recipes.pod:229
3753 msgid "listing the user accounts in the guest"
3754 msgstr ""
3755
3756 #. type: textblock
3757 #: ../examples/guestfs-recipes.pod:233
3758 msgid "what repositories is it configured to use"
3759 msgstr ""
3760
3761 #. type: textblock
3762 #: ../examples/guestfs-recipes.pod:237
3763 msgid "what NTP servers does it connect to"
3764 msgstr ""
3765
3766 #. type: textblock
3767 #: ../examples/guestfs-recipes.pod:241
3768 msgid "what were the boot messages last time it booted"
3769 msgstr ""
3770
3771 #. type: textblock
3772 #: ../examples/guestfs-recipes.pod:245
3773 msgid "listing who was logged in recently"
3774 msgstr ""
3775
3776 #. type: textblock
3777 #: ../examples/guestfs-recipes.pod:249
3778 msgid "http://augeas.net/"
3779 msgstr ""
3780
3781 #. type: =head1
3782 #: ../examples/guestfs-recipes.pod:251
3783 msgid "Install RPMs in a guest"
3784 msgstr ""
3785
3786 #. type: textblock
3787 #: ../examples/guestfs-recipes.pod:253
3788 msgid ""
3789 "The link below contains a method to install RPMs in a guest.  In fact the "
3790 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
3791 "installs them next time the guest is booted.  You could use this technique "
3792 "to install vital security updates in an offline guest."
3793 msgstr ""
3794
3795 #. type: textblock
3796 #: ../examples/guestfs-recipes.pod:259
3797 msgid ""
3798 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
3799 msgstr ""
3800
3801 #. type: =head1
3802 #: ../examples/guestfs-recipes.pod:261
3803 msgid "List applications installed in a VM"
3804 msgstr ""
3805
3806 #. type: textblock
3807 #: ../examples/guestfs-recipes.pod:263
3808 msgid "Save the following to a file C<list-apps.sh>:"
3809 msgstr ""
3810
3811 #. type: verbatim
3812 #: ../examples/guestfs-recipes.pod:265
3813 #, no-wrap
3814 msgid ""
3815 " #!/bin/sh -\n"
3816 " set -e\n"
3817 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3818 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3819 " guestfish --remote inspect-list-applications \"$root\"\n"
3820 " guestfish --remote exit\n"
3821 "\n"
3822 msgstr ""
3823
3824 #. type: textblock
3825 #: ../examples/guestfs-recipes.pod:272
3826 msgid ""
3827 "Make the file executable and then you can run it on any named virtual "
3828 "machine:"
3829 msgstr ""
3830
3831 #. type: verbatim
3832 #: ../examples/guestfs-recipes.pod:275
3833 #, no-wrap
3834 msgid ""
3835 " # list-apps.sh WinGuest\n"
3836 " [0] = {\n"
3837 "   app_name: Mozilla Firefox (3.6.12)\n"
3838 "   app_display_name: Mozilla Firefox (3.6.12)\n"
3839 "   app_epoch: 0\n"
3840 "   app_version: 3.6.12 (en-GB)\n"
3841 "   app_release:\n"
3842 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
3843 "   app_trans_path:\n"
3844 "   app_publisher: Mozilla\n"
3845 "   app_url: http://www.mozilla.com/en-GB/\n"
3846 "   app_source_package:\n"
3847 "   app_summary:\n"
3848 "   app_description: Mozilla Firefox\n"
3849 " }\n"
3850 " [1] = {\n"
3851 "   app_name: VLC media player\n"
3852 "   app_display_name: VLC media player 1.1.5\n"
3853 "   app_epoch: 0\n"
3854 "   app_version: 1.1.5\n"
3855 "   app_release:\n"
3856 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
3857 "   app_trans_path:\n"
3858 "   app_publisher: VideoLAN\n"
3859 "   app_url: http://www.videolan.org/\n"
3860 "   app_source_package:\n"
3861 "   app_summary:\n"
3862 "   app_description:\n"
3863 " }\n"
3864 "\n"
3865 msgstr ""
3866
3867 #. type: textblock
3868 #: ../examples/guestfs-recipes.pod:305
3869 msgid ""
3870 "If you want to run the script on disk images (instead of libvirt virtual "
3871 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
3872 ">."
3873 msgstr ""
3874
3875 #. type: =head1
3876 #: ../examples/guestfs-recipes.pod:309
3877 msgid "List files and directories in a VM"
3878 msgstr ""
3879
3880 #. type: textblock
3881 #: ../examples/guestfs-recipes.pod:311
3882 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
3883 msgstr ""
3884
3885 #. type: verbatim
3886 #: ../examples/guestfs-recipes.pod:313
3887 #, no-wrap
3888 msgid ""
3889 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
3890 "\n"
3891 msgstr ""
3892
3893 #. type: =head1
3894 #: ../examples/guestfs-recipes.pod:315
3895 msgid "List services in a Windows VM"
3896 msgstr ""
3897
3898 #. type: textblock
3899 #: ../examples/guestfs-recipes.pod:317
3900 msgid ""
3901 "The link below contains a script that can be used to list out the services "
3902 "from a Windows VM, and whether those services run at boot time or are loaded "
3903 "on demand."
3904 msgstr ""
3905
3906 #. type: textblock
3907 #: ../examples/guestfs-recipes.pod:321
3908 msgid ""
3909 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
3910 "#content"
3911 msgstr ""
3912
3913 #. type: =head1
3914 #: ../examples/guestfs-recipes.pod:323
3915 msgid "Make a disk image sparse"
3916 msgstr ""
3917
3918 #. type: textblock
3919 #: ../examples/guestfs-recipes.pod:325
3920 msgid ""
3921 "The link below contains some guides for making a disk image sparse (or "
3922 "reintroducing sparseness)."
3923 msgstr ""
3924
3925 #. type: textblock
3926 #: ../examples/guestfs-recipes.pod:328
3927 msgid ""
3928 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
3929 msgstr ""
3930
3931 #. type: =head1
3932 #: ../examples/guestfs-recipes.pod:330
3933 msgid "Monitor disk usage over time"
3934 msgstr ""
3935
3936 #. type: textblock
3937 #: ../examples/guestfs-recipes.pod:332
3938 msgid ""
3939 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
3940 "The link below contains a guide."
3941 msgstr ""
3942
3943 #. type: textblock
3944 #: ../examples/guestfs-recipes.pod:335
3945 msgid "http://virt-tools.org/learning/advanced-virt-df/"
3946 msgstr ""
3947
3948 #. type: =head1
3949 #: ../examples/guestfs-recipes.pod:337
3950 msgid "Reading the Windows Event Log from Windows Vista (or later)"
3951 msgstr ""
3952
3953 #. type: textblock
3954 #: ../examples/guestfs-recipes.pod:339
3955 msgid ""
3956 "L<guestfish(1)> plus the tools described in the link below can be used to "
3957 "read out the Windows Event Log from any virtual machine running Windows "
3958 "Vista or a later version."
3959 msgstr ""
3960
3961 #. type: textblock
3962 #: ../examples/guestfs-recipes.pod:343
3963 msgid ""
3964 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
3965 "guestfish/#content"
3966 msgstr ""
3967
3968 #. type: =head1
3969 #: ../examples/guestfs-recipes.pod:345
3970 msgid "Remove root password (Linux)"
3971 msgstr ""
3972
3973 #. type: textblock
3974 #: ../examples/guestfs-recipes.pod:347
3975 msgid ""
3976 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
3977 "files.  One use is to remove the root password from a Linux guest:"
3978 msgstr ""
3979
3980 #. type: verbatim
3981 #: ../examples/guestfs-recipes.pod:350
3982 #, no-wrap
3983 msgid ""
3984 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3985 "\n"
3986 msgstr ""
3987
3988 #. type: =head1
3989 #: ../examples/guestfs-recipes.pod:352
3990 msgid "Remove Administrator password (Windows)"
3991 msgstr ""
3992
3993 #. type: textblock
3994 #: ../examples/guestfs-recipes.pod:354
3995 msgid ""
3996 "The link below contains one technique for removing the Administrator "
3997 "password from a Windows VM, or to be more precise, it gives you a command "
3998 "prompt the next time you log in which you can use to bypass any security:"
3999 msgstr ""
4000
4001 #. type: textblock
4002 #: ../examples/guestfs-recipes.pod:359
4003 msgid ""
4004 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4005 "administrator-password-with-guestfish/"
4006 msgstr ""
4007
4008 #. type: =head1
4009 #: ../examples/guestfs-recipes.pod:361
4010 msgid "Unpack a live CD"
4011 msgstr ""
4012
4013 #. type: textblock
4014 #: ../examples/guestfs-recipes.pod:363
4015 msgid ""
4016 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4017 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4018 "layers, as outlined in the guide below."
4019 msgstr ""
4020
4021 #. type: textblock
4022 #: ../examples/guestfs-recipes.pod:367
4023 msgid ""
4024 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4025 "cd/#content"
4026 msgstr ""
4027
4028 #. type: =head1
4029 #: ../examples/guestfs-recipes.pod:369
4030 msgid "Uploading and downloading files"
4031 msgstr ""
4032
4033 #. type: textblock
4034 #: ../examples/guestfs-recipes.pod:371
4035 msgid ""
4036 "The link below contains general tips on uploading (copying in)  and "
4037 "downloading (copying out) files from VMs."
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../examples/guestfs-recipes.pod:374
4042 msgid ""
4043 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4044 msgstr ""
4045
4046 #. type: =head1
4047 #: ../examples/guestfs-recipes.pod:376
4048 msgid "Use libguestfs tools on VMware ESX guests"
4049 msgstr ""
4050
4051 #. type: textblock
4052 #: ../examples/guestfs-recipes.pod:378
4053 msgid ""
4054 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4055 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4056 msgstr ""
4057
4058 #. type: textblock
4059 #: ../examples/guestfs-recipes.pod:382
4060 msgid ""
4061 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4062 "guests/#content"
4063 msgstr ""
4064
4065 #. type: textblock
4066 #: ../examples/guestfs-recipes.pod:386
4067 msgid ""
4068 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4069 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4070 "(3)>, L<http://libguestfs.org/>."
4071 msgstr ""
4072
4073 #. type: textblock
4074 #: ../examples/guestfs-recipes.pod:402
4075 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4076 msgstr ""
4077
4078 #. type: =head2
4079 #: ../fish/guestfish-actions.pod:1
4080 msgid "add-cdrom"
4081 msgstr ""
4082
4083 #. type: verbatim
4084 #: ../fish/guestfish-actions.pod:3
4085 #, no-wrap
4086 msgid ""
4087 " add-cdrom filename\n"
4088 "\n"
4089 msgstr ""
4090
4091 #. type: textblock
4092 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:7
4093 msgid "This function adds a virtual CD-ROM disk image to the guest."
4094 msgstr ""
4095
4096 #. type: textblock
4097 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:9
4098 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4099 msgstr ""
4100
4101 #. type: textblock
4102 #: ../fish/guestfish-actions.pod:15
4103 msgid ""
4104 "This call checks for the existence of C<filename>.  This stops you from "
4105 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4106 "and C<http:> URLs.  To specify those, use the general L</config> call "
4107 "instead."
4108 msgstr ""
4109
4110 #. type: textblock
4111 #: ../fish/guestfish-actions.pod:22
4112 msgid ""
4113 "If you just want to add an ISO file (often you use this as an efficient way "
4114 "to transfer large files into the guest), then you should probably use L</add-"
4115 "drive-ro> instead."
4116 msgstr ""
4117
4118 #. type: textblock
4119 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4120 #: ../fish/guestfish-actions.pod:177
4121 msgid ""
4122 "This function is deprecated.  In new code, use the L</add_drive_opts> call "
4123 "instead."
4124 msgstr ""
4125
4126 #. type: textblock
4127 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4128 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:991
4129 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4130 #: ../fish/guestfish-actions.pod:3090 ../fish/guestfish-actions.pod:3297
4131 #: ../fish/guestfish-actions.pod:3411 ../fish/guestfish-actions.pod:3459
4132 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4383
4133 #: ../fish/guestfish-actions.pod:4405 ../fish/guestfish-actions.pod:4443
4134 #: ../fish/guestfish-actions.pod:5092 ../fish/guestfish-actions.pod:5198
4135 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
4136 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1518
4137 #: ../src/guestfs-actions.pod:2013 ../src/guestfs-actions.pod:2034
4138 #: ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4952
4139 #: ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5260
4140 #: ../src/guestfs-actions.pod:6549 ../src/guestfs-actions.pod:6579
4141 #: ../src/guestfs-actions.pod:6612 ../src/guestfs-actions.pod:6671
4142 #: ../src/guestfs-actions.pod:7607 ../src/guestfs-actions.pod:7719
4143 #: ../src/guestfs-actions.pod:7897
4144 msgid ""
4145 "Deprecated functions will not be removed from the API, but the fact that "
4146 "they are deprecated indicates that there are problems with correct use of "
4147 "these functions."
4148 msgstr ""
4149
4150 #. type: =head2
4151 #: ../fish/guestfish-actions.pod:35
4152 msgid "add-domain"
4153 msgstr ""
4154
4155 #. type: =head2
4156 #: ../fish/guestfish-actions.pod:37
4157 msgid "domain"
4158 msgstr ""
4159
4160 #. type: verbatim
4161 #: ../fish/guestfish-actions.pod:39
4162 #, no-wrap
4163 msgid ""
4164 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4165 "\n"
4166 msgstr ""
4167
4168 #. type: textblock
4169 #: ../fish/guestfish-actions.pod:41
4170 msgid ""
4171 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4172 "It works by connecting to libvirt, requesting the domain and domain XML from "
4173 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4174 msgstr ""
4175
4176 #. type: textblock
4177 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4178 msgid ""
4179 "The number of disks added is returned.  This operation is atomic: if an "
4180 "error is returned, then no disks are added."
4181 msgstr ""
4182
4183 #. type: textblock
4184 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4185 msgid ""
4186 "This function does some minimal checks to make sure the libvirt domain is "
4187 "not running (unless C<readonly> is true).  In a future version we will try "
4188 "to acquire the libvirt lock on each disk."
4189 msgstr ""
4190
4191 #. type: textblock
4192 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4193 msgid ""
4194 "Disks must be accessible locally.  This often means that adding disks from a "
4195 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4196 "unless those disks are accessible via the same device path locally too."
4197 msgstr ""
4198
4199 #. type: textblock
4200 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4201 msgid ""
4202 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4203 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4204 "libvirt URI (or one set through an environment variable, see the libvirt "
4205 "documentation for full details)."
4206 msgstr ""
4207
4208 #. type: textblock
4209 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4210 msgid ""
4211 "The optional C<live> flag controls whether this call will try to connect to "
4212 "a running virtual machine C<guestfsd> process if it sees a suitable "
4213 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4214 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4215 "DAEMONS> for more information."
4216 msgstr ""
4217
4218 #. type: textblock
4219 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4220 msgid ""
4221 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4222 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4223 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4224 "as usual."
4225 msgstr ""
4226
4227 #. type: textblock
4228 #: ../fish/guestfish-actions.pod:76
4229 msgid ""
4230 "The other optional parameters are passed directly through to L</add-drive-"
4231 "opts>."
4232 msgstr ""
4233
4234 #. type: textblock
4235 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4236 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1973
4237 #: ../fish/guestfish-actions.pod:3139 ../fish/guestfish-actions.pod:3312
4238 #: ../fish/guestfish-actions.pod:3447
4239 msgid ""
4240 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4241 msgstr ""
4242
4243 #. type: =head2
4244 #: ../fish/guestfish-actions.pod:81
4245 msgid "add-drive"
4246 msgstr ""
4247
4248 #. type: verbatim
4249 #: ../fish/guestfish-actions.pod:83
4250 #, no-wrap
4251 msgid ""
4252 " add-drive filename\n"
4253 "\n"
4254 msgstr ""
4255
4256 #. type: textblock
4257 #: ../fish/guestfish-actions.pod:85
4258 msgid ""
4259 "This function is the equivalent of calling L</add-drive-opts> with no "
4260 "optional parameters, so the disk is added writable, with the format being "
4261 "detected automatically."
4262 msgstr ""
4263
4264 #. type: textblock
4265 #: ../fish/guestfish-actions.pod:89
4266 msgid ""
4267 "Automatic detection of the format opens you up to a potential security hole "
4268 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4269 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4270 "you should think about replacing calls to this function with calls to L</add-"
4271 "drive-opts>, and specifying the format."
4272 msgstr ""
4273
4274 #. type: =head2
4275 #: ../fish/guestfish-actions.pod:96
4276 msgid "add-drive-opts"
4277 msgstr ""
4278
4279 #. type: =head2
4280 #: ../fish/guestfish-actions.pod:98
4281 msgid "add"
4282 msgstr ""
4283
4284 #. type: verbatim
4285 #: ../fish/guestfish-actions.pod:100
4286 #, no-wrap
4287 msgid ""
4288 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4289 "\n"
4290 msgstr ""
4291
4292 #. type: textblock
4293 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4294 msgid ""
4295 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4296 "The first time you call this function, the disk appears as C</dev/sda>, the "
4297 "second time as C</dev/sdb>, and so on."
4298 msgstr ""
4299
4300 #. type: textblock
4301 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4302 msgid ""
4303 "You don't necessarily need to be root when using libguestfs.  However you "
4304 "obviously do need sufficient permissions to access the filename for whatever "
4305 "operations you want to perform (ie. read access if you just want to read the "
4306 "image or write access if you want to modify the image)."
4307 msgstr ""
4308
4309 #. type: textblock
4310 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4311 msgid "This call checks that C<filename> exists."
4312 msgstr ""
4313
4314 #. type: textblock
4315 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3101
4316 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4660
4317 msgid "The optional arguments are:"
4318 msgstr ""
4319
4320 #. type: =item
4321 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4322 msgid "C<readonly>"
4323 msgstr ""
4324
4325 #. type: textblock
4326 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4327 msgid ""
4328 "If true then the image is treated as read-only.  Writes are still allowed, "
4329 "but they are stored in a temporary snapshot overlay which is discarded at "
4330 "the end.  The disk that you add is not modified."
4331 msgstr ""
4332
4333 #. type: =item
4334 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4335 msgid "C<format>"
4336 msgstr ""
4337
4338 #. type: textblock
4339 #: ../fish/guestfish-actions.pod:127
4340 msgid ""
4341 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4342 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4343 "include C<raw> and C<qcow2>."
4344 msgstr ""
4345
4346 #. type: textblock
4347 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4348 msgid ""
4349 "Automatic detection of the format opens you up to a potential security hole "
4350 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4351 "RHBZ#642934.  Specifying the format closes this security hole."
4352 msgstr ""
4353
4354 #. type: =item
4355 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4356 msgid "C<iface>"
4357 msgstr ""
4358
4359 #. type: textblock
4360 #: ../fish/guestfish-actions.pod:138
4361 msgid ""
4362 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4363 "add-drive-with-if> call (q.v.)"
4364 msgstr ""
4365
4366 #. type: =head2
4367 #: ../fish/guestfish-actions.pod:145
4368 msgid "add-drive-ro"
4369 msgstr ""
4370
4371 #. type: =head2
4372 #: ../fish/guestfish-actions.pod:147
4373 msgid "add-ro"
4374 msgstr ""
4375
4376 #. type: verbatim
4377 #: ../fish/guestfish-actions.pod:149
4378 #, no-wrap
4379 msgid ""
4380 " add-drive-ro filename\n"
4381 "\n"
4382 msgstr ""
4383
4384 #. type: textblock
4385 #: ../fish/guestfish-actions.pod:151
4386 msgid ""
4387 "This function is the equivalent of calling L</add-drive-opts> with the "
4388 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4389 "is added read-only, with the format being detected automatically."
4390 msgstr ""
4391
4392 #. type: =head2
4393 #: ../fish/guestfish-actions.pod:156
4394 msgid "add-drive-ro-with-if"
4395 msgstr ""
4396
4397 #. type: verbatim
4398 #: ../fish/guestfish-actions.pod:158
4399 #, no-wrap
4400 msgid ""
4401 " add-drive-ro-with-if filename iface\n"
4402 "\n"
4403 msgstr ""
4404
4405 #. type: textblock
4406 #: ../fish/guestfish-actions.pod:160
4407 msgid ""
4408 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4409 "interface emulation to use at run time."
4410 msgstr ""
4411
4412 #. type: =head2
4413 #: ../fish/guestfish-actions.pod:170
4414 msgid "add-drive-with-if"
4415 msgstr ""
4416
4417 #. type: verbatim
4418 #: ../fish/guestfish-actions.pod:172
4419 #, no-wrap
4420 msgid ""
4421 " add-drive-with-if filename iface\n"
4422 "\n"
4423 msgstr ""
4424
4425 #. type: textblock
4426 #: ../fish/guestfish-actions.pod:174
4427 msgid ""
4428 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4429 "interface emulation to use at run time."
4430 msgstr ""
4431
4432 #. type: =head2
4433 #: ../fish/guestfish-actions.pod:184
4434 msgid "aug-clear"
4435 msgstr ""
4436
4437 #. type: verbatim
4438 #: ../fish/guestfish-actions.pod:186
4439 #, no-wrap
4440 msgid ""
4441 " aug-clear augpath\n"
4442 "\n"
4443 msgstr ""
4444
4445 #. type: textblock
4446 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4447 msgid ""
4448 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4449 "L<augtool(1)> C<clear> command."
4450 msgstr ""
4451
4452 #. type: =head2
4453 #: ../fish/guestfish-actions.pod:191
4454 msgid "aug-close"
4455 msgstr ""
4456
4457 #. type: verbatim
4458 #: ../fish/guestfish-actions.pod:193
4459 #, no-wrap
4460 msgid ""
4461 " aug-close\n"
4462 "\n"
4463 msgstr ""
4464
4465 #. type: textblock
4466 #: ../fish/guestfish-actions.pod:195
4467 msgid ""
4468 "Close the current Augeas handle and free up any resources used by it.  After "
4469 "calling this, you have to call L</aug-init> again before you can use any "
4470 "other Augeas functions."
4471 msgstr ""
4472
4473 #. type: =head2
4474 #: ../fish/guestfish-actions.pod:200
4475 msgid "aug-defnode"
4476 msgstr ""
4477
4478 #. type: verbatim
4479 #: ../fish/guestfish-actions.pod:202
4480 #, no-wrap
4481 msgid ""
4482 " aug-defnode name expr val\n"
4483 "\n"
4484 msgstr ""
4485
4486 #. type: textblock
4487 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4488 msgid ""
4489 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4490 msgstr ""
4491
4492 #. type: textblock
4493 #: ../fish/guestfish-actions.pod:207
4494 msgid ""
4495 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4496 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4497 "containing that single node."
4498 msgstr ""
4499
4500 #. type: textblock
4501 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4502 msgid ""
4503 "On success this returns a pair containing the number of nodes in the "
4504 "nodeset, and a boolean flag if a node was created."
4505 msgstr ""
4506
4507 #. type: =head2
4508 #: ../fish/guestfish-actions.pod:215
4509 msgid "aug-defvar"
4510 msgstr ""
4511
4512 #. type: verbatim
4513 #: ../fish/guestfish-actions.pod:217
4514 #, no-wrap
4515 msgid ""
4516 " aug-defvar name expr\n"
4517 "\n"
4518 msgstr ""
4519
4520 #. type: textblock
4521 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4522 msgid ""
4523 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4524 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4525 msgstr ""
4526
4527 #. type: textblock
4528 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4529 msgid ""
4530 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4531 "evaluates to something which is not a nodeset."
4532 msgstr ""
4533
4534 #. type: =head2
4535 #: ../fish/guestfish-actions.pod:226
4536 msgid "aug-get"
4537 msgstr ""
4538
4539 #. type: verbatim
4540 #: ../fish/guestfish-actions.pod:228
4541 #, no-wrap
4542 msgid ""
4543 " aug-get augpath\n"
4544 "\n"
4545 msgstr ""
4546
4547 #. type: textblock
4548 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4549 msgid ""
4550 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4551 "node, the C<value> is returned."
4552 msgstr ""
4553
4554 #. type: =head2
4555 #: ../fish/guestfish-actions.pod:233
4556 msgid "aug-init"
4557 msgstr ""
4558
4559 #. type: verbatim
4560 #: ../fish/guestfish-actions.pod:235
4561 #, no-wrap
4562 msgid ""
4563 " aug-init root flags\n"
4564 "\n"
4565 msgstr ""
4566
4567 #. type: textblock
4568 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4569 msgid ""
4570 "Create a new Augeas handle for editing configuration files.  If there was "
4571 "any previous Augeas handle associated with this guestfs session, then it is "
4572 "closed."
4573 msgstr ""
4574
4575 #. type: textblock
4576 #: ../fish/guestfish-actions.pod:241
4577 msgid "You must call this before using any other L</aug-*> commands."
4578 msgstr ""
4579
4580 #. type: textblock
4581 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4582 msgid ""
4583 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4584 msgstr ""
4585
4586 #. type: textblock
4587 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4588 msgid ""
4589 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4590 "logical I<or> of the following integers:"
4591 msgstr ""
4592
4593 #. type: =item
4594 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4595 msgid "C<AUG_SAVE_BACKUP> = 1"
4596 msgstr ""
4597
4598 #. type: textblock
4599 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4600 msgid "Keep the original file with a C<.augsave> extension."
4601 msgstr ""
4602
4603 #. type: =item
4604 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4605 msgid "C<AUG_SAVE_NEWFILE> = 2"
4606 msgstr ""
4607
4608 #. type: textblock
4609 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4610 msgid ""
4611 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4612 "original.  Overrides C<AUG_SAVE_BACKUP>."
4613 msgstr ""
4614
4615 #. type: =item
4616 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4617 msgid "C<AUG_TYPE_CHECK> = 4"
4618 msgstr ""
4619
4620 #. type: textblock
4621 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4622 msgid "Typecheck lenses."
4623 msgstr ""
4624
4625 #. type: textblock
4626 #: ../fish/guestfish-actions.pod:266
4627 msgid ""
4628 "This option is only useful when debugging Augeas lenses.  Use of this option "
4629 "may require additional memory for the libguestfs appliance.  You may need to "
4630 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
4631 msgstr ""
4632
4633 #. type: =item
4634 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
4635 msgid "C<AUG_NO_STDINC> = 8"
4636 msgstr ""
4637
4638 #. type: textblock
4639 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
4640 msgid "Do not use standard load path for modules."
4641 msgstr ""
4642
4643 #. type: =item
4644 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
4645 msgid "C<AUG_SAVE_NOOP> = 16"
4646 msgstr ""
4647
4648 #. type: textblock
4649 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
4650 msgid "Make save a no-op, just record what would have been changed."
4651 msgstr ""
4652
4653 #. type: =item
4654 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
4655 msgid "C<AUG_NO_LOAD> = 32"
4656 msgstr ""
4657
4658 #. type: textblock
4659 #: ../fish/guestfish-actions.pod:281
4660 msgid "Do not load the tree in L</aug-init>."
4661 msgstr ""
4662
4663 #. type: textblock
4664 #: ../fish/guestfish-actions.pod:285
4665 msgid "To close the handle, you can call L</aug-close>."
4666 msgstr ""
4667
4668 #. type: textblock
4669 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
4670 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4671 msgstr ""
4672
4673 #. type: =head2
4674 #: ../fish/guestfish-actions.pod:289
4675 msgid "aug-insert"
4676 msgstr ""
4677
4678 #. type: verbatim
4679 #: ../fish/guestfish-actions.pod:291
4680 #, no-wrap
4681 msgid ""
4682 " aug-insert augpath label true|false\n"
4683 "\n"
4684 msgstr ""
4685
4686 #. type: textblock
4687 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
4688 msgid ""
4689 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4690 "or after C<path> (depending on the boolean flag C<before>)."
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
4695 msgid ""
4696 "C<path> must match exactly one existing node in the tree, and C<label> must "
4697 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4698 msgstr ""
4699
4700 #. type: =head2
4701 #: ../fish/guestfish-actions.pod:301
4702 msgid "aug-load"
4703 msgstr ""
4704
4705 #. type: verbatim
4706 #: ../fish/guestfish-actions.pod:303
4707 #, no-wrap
4708 msgid ""
4709 " aug-load\n"
4710 "\n"
4711 msgstr ""
4712
4713 #. type: textblock
4714 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
4715 msgid "Load files into the tree."
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
4720 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4721 msgstr ""
4722
4723 #. type: =head2
4724 #: ../fish/guestfish-actions.pod:310
4725 msgid "aug-ls"
4726 msgstr ""
4727
4728 #. type: verbatim
4729 #: ../fish/guestfish-actions.pod:312
4730 #, no-wrap
4731 msgid ""
4732 " aug-ls augpath\n"
4733 "\n"
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../fish/guestfish-actions.pod:314
4738 msgid ""
4739 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4740 "resulting nodes into alphabetical order."
4741 msgstr ""
4742
4743 #. type: =head2
4744 #: ../fish/guestfish-actions.pod:317
4745 msgid "aug-match"
4746 msgstr ""
4747
4748 #. type: verbatim
4749 #: ../fish/guestfish-actions.pod:319
4750 #, no-wrap
4751 msgid ""
4752 " aug-match augpath\n"
4753 "\n"
4754 msgstr ""
4755
4756 #. type: textblock
4757 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
4758 msgid ""
4759 "Returns a list of paths which match the path expression C<path>.  The "
4760 "returned paths are sufficiently qualified so that they match exactly one "
4761 "node in the current tree."
4762 msgstr ""
4763
4764 #. type: =head2
4765 #: ../fish/guestfish-actions.pod:325
4766 msgid "aug-mv"
4767 msgstr ""
4768
4769 #. type: verbatim
4770 #: ../fish/guestfish-actions.pod:327
4771 #, no-wrap
4772 msgid ""
4773 " aug-mv src dest\n"
4774 "\n"
4775 msgstr ""
4776
4777 #. type: textblock
4778 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
4779 msgid ""
4780 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4781 "C<dest> is overwritten if it exists."
4782 msgstr ""
4783
4784 #. type: =head2
4785 #: ../fish/guestfish-actions.pod:332
4786 msgid "aug-rm"
4787 msgstr ""
4788
4789 #. type: verbatim
4790 #: ../fish/guestfish-actions.pod:334
4791 #, no-wrap
4792 msgid ""
4793 " aug-rm augpath\n"
4794 "\n"
4795 msgstr ""
4796
4797 #. type: textblock
4798 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
4799 msgid "Remove C<path> and all of its children."
4800 msgstr ""
4801
4802 #. type: textblock
4803 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
4804 msgid "On success this returns the number of entries which were removed."
4805 msgstr ""
4806
4807 #. type: =head2
4808 #: ../fish/guestfish-actions.pod:340
4809 msgid "aug-save"
4810 msgstr ""
4811
4812 #. type: verbatim
4813 #: ../fish/guestfish-actions.pod:342
4814 #, no-wrap
4815 msgid ""
4816 " aug-save\n"
4817 "\n"
4818 msgstr ""
4819
4820 #. type: textblock
4821 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
4822 msgid "This writes all pending changes to disk."
4823 msgstr ""
4824
4825 #. type: textblock
4826 #: ../fish/guestfish-actions.pod:346
4827 msgid ""
4828 "The flags which were passed to L</aug-init> affect exactly how files are "
4829 "saved."
4830 msgstr ""
4831
4832 #. type: =head2
4833 #: ../fish/guestfish-actions.pod:349
4834 msgid "aug-set"
4835 msgstr ""
4836
4837 #. type: verbatim
4838 #: ../fish/guestfish-actions.pod:351
4839 #, no-wrap
4840 msgid ""
4841 " aug-set augpath val\n"
4842 "\n"
4843 msgstr ""
4844
4845 #. type: textblock
4846 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
4847 msgid "Set the value associated with C<path> to C<val>."
4848 msgstr ""
4849
4850 #. type: textblock
4851 #: ../fish/guestfish-actions.pod:355
4852 msgid ""
4853 "In the Augeas API, it is possible to clear a node by setting the value to "
4854 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4855 "this call.  Instead you must use the L</aug-clear> call."
4856 msgstr ""
4857
4858 #. type: =head2
4859 #: ../fish/guestfish-actions.pod:360
4860 msgid "available"
4861 msgstr ""
4862
4863 #. type: verbatim
4864 #: ../fish/guestfish-actions.pod:362
4865 #, no-wrap
4866 msgid ""
4867 " available 'groups ...'\n"
4868 "\n"
4869 msgstr ""
4870
4871 #. type: textblock
4872 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
4873 msgid ""
4874 "This command is used to check the availability of some groups of "
4875 "functionality in the appliance, which not all builds of the libguestfs "
4876 "appliance will be able to provide."
4877 msgstr ""
4878
4879 #. type: textblock
4880 #: ../fish/guestfish-actions.pod:368
4881 msgid ""
4882 "The libguestfs groups, and the functions that those groups correspond to, "
4883 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4884 "runtime by calling L</available-all-groups>."
4885 msgstr ""
4886
4887 #. type: textblock
4888 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
4889 msgid ""
4890 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4891 "\"]> would check for the availability of the Linux inotify functions and "
4892 "Augeas (configuration file editing) functions."
4893 msgstr ""
4894
4895 #. type: textblock
4896 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
4897 msgid "The command returns no error if I<all> requested groups are available."
4898 msgstr ""
4899
4900 #. type: textblock
4901 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
4902 msgid ""
4903 "It fails with an error if one or more of the requested groups is unavailable "
4904 "in the appliance."
4905 msgstr ""
4906
4907 #. type: textblock
4908 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
4909 msgid ""
4910 "If an unknown group name is included in the list of groups then an error is "
4911 "always returned."
4912 msgstr ""
4913
4914 #. type: textblock
4915 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
4916 msgid "I<Notes:>"
4917 msgstr ""
4918
4919 #. type: textblock
4920 #: ../fish/guestfish-actions.pod:392
4921 msgid "You must call L</launch> before calling this function."
4922 msgstr ""
4923
4924 #. type: textblock
4925 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
4926 msgid ""
4927 "The reason is because we don't know what groups are supported by the "
4928 "appliance/daemon until it is running and can be queried."
4929 msgstr ""
4930
4931 #. type: textblock
4932 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
4933 msgid ""
4934 "If a group of functions is available, this does not necessarily mean that "
4935 "they will work.  You still have to check for errors when calling individual "
4936 "API functions even if they are available."
4937 msgstr ""
4938
4939 #. type: textblock
4940 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
4941 msgid ""
4942 "It is usually the job of distro packagers to build complete functionality "
4943 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4944 "with all requirements satisfied, will support everything."
4945 msgstr ""
4946
4947 #. type: textblock
4948 #: ../fish/guestfish-actions.pod:414
4949 msgid ""
4950 "This call was added in version C<1.0.80>.  In previous versions of "
4951 "libguestfs all you could do would be to speculatively execute a command to "
4952 "find out if the daemon implemented it.  See also L</version>."
4953 msgstr ""
4954
4955 #. type: =head2
4956 #: ../fish/guestfish-actions.pod:421
4957 msgid "available-all-groups"
4958 msgstr ""
4959
4960 #. type: verbatim
4961 #: ../fish/guestfish-actions.pod:423
4962 #, no-wrap
4963 msgid ""
4964 " available-all-groups\n"
4965 "\n"
4966 msgstr ""
4967
4968 #. type: textblock
4969 #: ../fish/guestfish-actions.pod:425
4970 msgid ""
4971 "This command returns a list of all optional groups that this daemon knows "
4972 "about.  Note this returns both supported and unsupported groups.  To find "
4973 "out which ones the daemon can actually support you have to call L</"
4974 "available> on each member of the returned list."
4975 msgstr ""
4976
4977 #. type: textblock
4978 #: ../fish/guestfish-actions.pod:431
4979 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
4980 msgstr ""
4981
4982 #. type: =head2
4983 #: ../fish/guestfish-actions.pod:433
4984 msgid "base64-in"
4985 msgstr ""
4986
4987 #. type: verbatim
4988 #: ../fish/guestfish-actions.pod:435
4989 #, no-wrap
4990 msgid ""
4991 " base64-in (base64file|-) filename\n"
4992 "\n"
4993 msgstr ""
4994
4995 #. type: textblock
4996 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
4997 msgid ""
4998 "This command uploads base64-encoded data from C<base64file> to C<filename>."
4999 msgstr ""
5000
5001 #. type: textblock
5002 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5003 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:867
5004 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
5005 #: ../fish/guestfish-actions.pod:4663 ../fish/guestfish-actions.pod:4675
5006 #: ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4697
5007 #: ../fish/guestfish-actions.pod:4749 ../fish/guestfish-actions.pod:4758
5008 #: ../fish/guestfish-actions.pod:4812 ../fish/guestfish-actions.pod:4835
5009 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5010 msgstr ""
5011
5012 #. type: =head2
5013 #: ../fish/guestfish-actions.pod:442
5014 msgid "base64-out"
5015 msgstr ""
5016
5017 #. type: verbatim
5018 #: ../fish/guestfish-actions.pod:444
5019 #, no-wrap
5020 msgid ""
5021 " base64-out filename (base64file|-)\n"
5022 "\n"
5023 msgstr ""
5024
5025 #. type: textblock
5026 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5027 msgid ""
5028 "This command downloads the contents of C<filename>, writing it out to local "
5029 "file C<base64file> encoded as base64."
5030 msgstr ""
5031
5032 #. type: =head2
5033 #: ../fish/guestfish-actions.pod:451
5034 msgid "blockdev-flushbufs"
5035 msgstr ""
5036
5037 #. type: verbatim
5038 #: ../fish/guestfish-actions.pod:453
5039 #, no-wrap
5040 msgid ""
5041 " blockdev-flushbufs device\n"
5042 "\n"
5043 msgstr ""
5044
5045 #. type: textblock
5046 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5047 msgid ""
5048 "This tells the kernel to flush internal buffers associated with C<device>."
5049 msgstr ""
5050
5051 #. type: textblock
5052 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5053 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5054 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5055 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5056 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5057 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5058 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5059 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5060 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5061 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5062 msgid "This uses the L<blockdev(8)> command."
5063 msgstr ""
5064
5065 #. type: =head2
5066 #: ../fish/guestfish-actions.pod:460
5067 msgid "blockdev-getbsz"
5068 msgstr ""
5069
5070 #. type: verbatim
5071 #: ../fish/guestfish-actions.pod:462
5072 #, no-wrap
5073 msgid ""
5074 " blockdev-getbsz device\n"
5075 "\n"
5076 msgstr ""
5077
5078 #. type: textblock
5079 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5080 msgid "This returns the block size of a device."
5081 msgstr ""
5082
5083 #. type: textblock
5084 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5085 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5086 msgid ""
5087 "(Note this is different from both I<size in blocks> and I<filesystem block "
5088 "size>)."
5089 msgstr ""
5090
5091 #. type: =head2
5092 #: ../fish/guestfish-actions.pod:471
5093 msgid "blockdev-getro"
5094 msgstr ""
5095
5096 #. type: verbatim
5097 #: ../fish/guestfish-actions.pod:473
5098 #, no-wrap
5099 msgid ""
5100 " blockdev-getro device\n"
5101 "\n"
5102 msgstr ""
5103
5104 #. type: textblock
5105 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5106 msgid ""
5107 "Returns a boolean indicating if the block device is read-only (true if read-"
5108 "only, false if not)."
5109 msgstr ""
5110
5111 #. type: =head2
5112 #: ../fish/guestfish-actions.pod:480
5113 msgid "blockdev-getsize64"
5114 msgstr ""
5115
5116 #. type: verbatim
5117 #: ../fish/guestfish-actions.pod:482
5118 #, no-wrap
5119 msgid ""
5120 " blockdev-getsize64 device\n"
5121 "\n"
5122 msgstr ""
5123
5124 #. type: textblock
5125 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5126 msgid "This returns the size of the device in bytes."
5127 msgstr ""
5128
5129 #. type: textblock
5130 #: ../fish/guestfish-actions.pod:486
5131 msgid "See also L</blockdev-getsz>."
5132 msgstr ""
5133
5134 #. type: =head2
5135 #: ../fish/guestfish-actions.pod:490
5136 msgid "blockdev-getss"
5137 msgstr ""
5138
5139 #. type: verbatim
5140 #: ../fish/guestfish-actions.pod:492
5141 #, no-wrap
5142 msgid ""
5143 " blockdev-getss device\n"
5144 "\n"
5145 msgstr ""
5146
5147 #. type: textblock
5148 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5149 msgid ""
5150 "This returns the size of sectors on a block device.  Usually 512, but can be "
5151 "larger for modern devices."
5152 msgstr ""
5153
5154 #. type: textblock
5155 #: ../fish/guestfish-actions.pod:497
5156 msgid ""
5157 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5158 msgstr ""
5159
5160 #. type: =head2
5161 #: ../fish/guestfish-actions.pod:502
5162 msgid "blockdev-getsz"
5163 msgstr ""
5164
5165 #. type: verbatim
5166 #: ../fish/guestfish-actions.pod:504
5167 #, no-wrap
5168 msgid ""
5169 " blockdev-getsz device\n"
5170 "\n"
5171 msgstr ""
5172
5173 #. type: textblock
5174 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5175 msgid ""
5176 "This returns the size of the device in units of 512-byte sectors (even if "
5177 "the sectorsize isn't 512 bytes ... weird)."
5178 msgstr ""
5179
5180 #. type: textblock
5181 #: ../fish/guestfish-actions.pod:509
5182 msgid ""
5183 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5184 "blockdev-getsize64> for the more useful I<size in bytes>."
5185 msgstr ""
5186
5187 #. type: =head2
5188 #: ../fish/guestfish-actions.pod:515
5189 msgid "blockdev-rereadpt"
5190 msgstr ""
5191
5192 #. type: verbatim
5193 #: ../fish/guestfish-actions.pod:517
5194 #, no-wrap
5195 msgid ""
5196 " blockdev-rereadpt device\n"
5197 "\n"
5198 msgstr ""
5199
5200 #. type: textblock
5201 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5202 msgid "Reread the partition table on C<device>."
5203 msgstr ""
5204
5205 #. type: =head2
5206 #: ../fish/guestfish-actions.pod:523
5207 msgid "blockdev-setbsz"
5208 msgstr ""
5209
5210 #. type: verbatim
5211 #: ../fish/guestfish-actions.pod:525
5212 #, no-wrap
5213 msgid ""
5214 " blockdev-setbsz device blocksize\n"
5215 "\n"
5216 msgstr ""
5217
5218 #. type: textblock
5219 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5220 msgid "This sets the block size of a device."
5221 msgstr ""
5222
5223 #. type: =head2
5224 #: ../fish/guestfish-actions.pod:534
5225 msgid "blockdev-setro"
5226 msgstr ""
5227
5228 #. type: verbatim
5229 #: ../fish/guestfish-actions.pod:536
5230 #, no-wrap
5231 msgid ""
5232 " blockdev-setro device\n"
5233 "\n"
5234 msgstr ""
5235
5236 #. type: textblock
5237 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5238 msgid "Sets the block device named C<device> to read-only."
5239 msgstr ""
5240
5241 #. type: =head2
5242 #: ../fish/guestfish-actions.pod:542
5243 msgid "blockdev-setrw"
5244 msgstr ""
5245
5246 #. type: verbatim
5247 #: ../fish/guestfish-actions.pod:544
5248 #, no-wrap
5249 msgid ""
5250 " blockdev-setrw device\n"
5251 "\n"
5252 msgstr ""
5253
5254 #. type: textblock
5255 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5256 msgid "Sets the block device named C<device> to read-write."
5257 msgstr ""
5258
5259 #. type: =head2
5260 #: ../fish/guestfish-actions.pod:550
5261 msgid "btrfs-filesystem-resize"
5262 msgstr ""
5263
5264 #. type: verbatim
5265 #: ../fish/guestfish-actions.pod:552
5266 #, no-wrap
5267 msgid ""
5268 " btrfs-filesystem-resize mountpoint [size:..]\n"
5269 "\n"
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5274 msgid "This command resizes a btrfs filesystem."
5275 msgstr ""
5276
5277 #. type: textblock
5278 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5279 msgid ""
5280 "Note that unlike other resize calls, the filesystem has to be mounted and "
5281 "the parameter is the mountpoint not the device (this is a requirement of "
5282 "btrfs itself)."
5283 msgstr ""
5284
5285 #. type: textblock
5286 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3422
5287 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5194
5288 msgid "The optional parameters are:"
5289 msgstr ""
5290
5291 #. type: =item
5292 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3426
5293 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5198
5294 msgid "C<size>"
5295 msgstr ""
5296
5297 #. type: textblock
5298 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5299 msgid ""
5300 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5301 "resized to the maximum size."
5302 msgstr ""
5303
5304 #. type: textblock
5305 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5306 msgid "See also L<btrfs(8)>."
5307 msgstr ""
5308
5309 #. type: =head2
5310 #: ../fish/guestfish-actions.pod:575
5311 msgid "case-sensitive-path"
5312 msgstr ""
5313
5314 #. type: verbatim
5315 #: ../fish/guestfish-actions.pod:577
5316 #, no-wrap
5317 msgid ""
5318 " case-sensitive-path path\n"
5319 "\n"
5320 msgstr ""
5321
5322 #. type: textblock
5323 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5324 msgid ""
5325 "This can be used to resolve case insensitive paths on a filesystem which is "
5326 "case sensitive.  The use case is to resolve paths which you have read from "
5327 "Windows configuration files or the Windows Registry, to the true path."
5328 msgstr ""
5329
5330 #. type: textblock
5331 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5332 msgid ""
5333 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5334 "(and probably others), which is that although the underlying filesystem is "
5335 "case-insensitive, the driver exports the filesystem to Linux as case-"
5336 "sensitive."
5337 msgstr ""
5338
5339 #. type: textblock
5340 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5341 msgid ""
5342 "One consequence of this is that special directories such as C<c:\\windows> "
5343 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5344 "precise details of how they were created.  In Windows itself this would not "
5345 "be a problem."
5346 msgstr ""
5347
5348 #. type: textblock
5349 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5350 msgid ""
5351 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5352 "#posixfilenames1>"
5353 msgstr ""
5354
5355 #. type: textblock
5356 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5357 msgid ""
5358 "This function resolves the true case of each element in the path and returns "
5359 "the case-sensitive path."
5360 msgstr ""
5361
5362 #. type: textblock
5363 #: ../fish/guestfish-actions.pod:601
5364 msgid ""
5365 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5366 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5367 "the directories were originally created under Windows)."
5368 msgstr ""
5369
5370 #. type: textblock
5371 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5372 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5373 msgstr ""
5374
5375 #. type: textblock
5376 #: ../fish/guestfish-actions.pod:609
5377 msgid "See also L</realpath>."
5378 msgstr ""
5379
5380 #. type: =head2
5381 #: ../fish/guestfish-actions.pod:611
5382 msgid "cat"
5383 msgstr ""
5384
5385 #. type: verbatim
5386 #: ../fish/guestfish-actions.pod:613
5387 #, no-wrap
5388 msgid ""
5389 " cat path\n"
5390 "\n"
5391 msgstr ""
5392
5393 #. type: textblock
5394 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3842
5395 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5837
5396 msgid "Return the contents of the file named C<path>."
5397 msgstr ""
5398
5399 #. type: textblock
5400 #: ../fish/guestfish-actions.pod:617
5401 msgid ""
5402 "Note that this function cannot correctly handle binary files (specifically, "
5403 "files containing C<\\0> character which is treated as end of string).  For "
5404 "those you need to use the L</read-file> or L</download> functions which have "
5405 "a more complex interface."
5406 msgstr ""
5407
5408 #. type: textblock
5409 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5410 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
5411 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
5412 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
5413 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
5414 #: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1584
5415 #: ../fish/guestfish-actions.pod:1594 ../fish/guestfish-actions.pod:1613
5416 #: ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:3727
5417 #: ../fish/guestfish-actions.pod:3803 ../fish/guestfish-actions.pod:3820
5418 #: ../fish/guestfish-actions.pod:3835 ../fish/guestfish-actions.pod:4504
5419 #: ../fish/guestfish-actions.pod:4550 ../fish/guestfish-actions.pod:4635
5420 #: ../fish/guestfish-actions.pod:4650 ../fish/guestfish-actions.pod:5056
5421 #: ../fish/guestfish-actions.pod:5068 ../fish/guestfish-actions.pod:5086
5422 #: ../fish/guestfish-actions.pod:5103 ../fish/guestfish-actions.pod:5113
5423 #: ../fish/guestfish-actions.pod:5170 ../fish/guestfish-actions.pod:5180
5424 #: ../fish/guestfish-actions.pod:5209 ../fish/guestfish-actions.pod:5219
5425 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5426 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
5427 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
5428 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
5429 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
5430 #: ../src/guestfs-actions.pod:2363 ../src/guestfs-actions.pod:2387
5431 #: ../src/guestfs-actions.pod:2404 ../src/guestfs-actions.pod:2433
5432 #: ../src/guestfs-actions.pod:5619 ../src/guestfs-actions.pod:5645
5433 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
5434 #: ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:6777
5435 #: ../src/guestfs-actions.pod:6832 ../src/guestfs-actions.pod:6978
5436 #: ../src/guestfs-actions.pod:7002 ../src/guestfs-actions.pod:7667
5437 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7713
5438 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7758
5439 #: ../src/guestfs-actions.pod:7852 ../src/guestfs-actions.pod:7871
5440 #: ../src/guestfs-actions.pod:7917 ../src/guestfs-actions.pod:7936
5441 msgid ""
5442 "Because of the message protocol, there is a transfer limit of somewhere "
5443 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5444 msgstr ""
5445
5446 #. type: =head2
5447 #: ../fish/guestfish-actions.pod:625
5448 msgid "checksum"
5449 msgstr ""
5450
5451 #. type: verbatim
5452 #: ../fish/guestfish-actions.pod:627
5453 #, no-wrap
5454 msgid ""
5455 " checksum csumtype path\n"
5456 "\n"
5457 msgstr ""
5458
5459 #. type: textblock
5460 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5461 msgid ""
5462 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5463 msgstr ""
5464
5465 #. type: textblock
5466 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5467 msgid ""
5468 "The type of checksum to compute is given by the C<csumtype> parameter which "
5469 "must have one of the following values:"
5470 msgstr ""
5471
5472 #. type: =item
5473 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5474 msgid "C<crc>"
5475 msgstr ""
5476
5477 #. type: textblock
5478 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5479 msgid ""
5480 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5481 "C<cksum> command."
5482 msgstr ""
5483
5484 #. type: =item
5485 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5486 msgid "C<md5>"
5487 msgstr ""
5488
5489 #. type: textblock
5490 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5491 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5492 msgstr ""
5493
5494 #. type: =item
5495 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5496 msgid "C<sha1>"
5497 msgstr ""
5498
5499 #. type: textblock
5500 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5501 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5502 msgstr ""
5503
5504 #. type: =item
5505 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5506 msgid "C<sha224>"
5507 msgstr ""
5508
5509 #. type: textblock
5510 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5511 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5512 msgstr ""
5513
5514 #. type: =item
5515 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5516 msgid "C<sha256>"
5517 msgstr ""
5518
5519 #. type: textblock
5520 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5521 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5522 msgstr ""
5523
5524 #. type: =item
5525 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5526 msgid "C<sha384>"
5527 msgstr ""
5528
5529 #. type: textblock
5530 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5531 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5532 msgstr ""
5533
5534 #. type: =item
5535 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5536 msgid "C<sha512>"
5537 msgstr ""
5538
5539 #. type: textblock
5540 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5541 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5542 msgstr ""
5543
5544 #. type: textblock
5545 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5546 msgid "The checksum is returned as a printable string."
5547 msgstr ""
5548
5549 #. type: textblock
5550 #: ../fish/guestfish-actions.pod:670
5551 msgid "To get the checksum for a device, use L</checksum-device>."
5552 msgstr ""
5553
5554 #. type: textblock
5555 #: ../fish/guestfish-actions.pod:672
5556 msgid "To get the checksums for many files, use L</checksums-out>."
5557 msgstr ""
5558
5559 #. type: =head2
5560 #: ../fish/guestfish-actions.pod:674
5561 msgid "checksum-device"
5562 msgstr ""
5563
5564 #. type: verbatim
5565 #: ../fish/guestfish-actions.pod:676
5566 #, no-wrap
5567 msgid ""
5568 " checksum-device csumtype device\n"
5569 "\n"
5570 msgstr ""
5571
5572 #. type: textblock
5573 #: ../fish/guestfish-actions.pod:678
5574 msgid ""
5575 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5576 "device named C<device>.  For the types of checksums supported see the L</"
5577 "checksum> command."
5578 msgstr ""
5579
5580 #. type: =head2
5581 #: ../fish/guestfish-actions.pod:682
5582 msgid "checksums-out"
5583 msgstr ""
5584
5585 #. type: verbatim
5586 #: ../fish/guestfish-actions.pod:684
5587 #, no-wrap
5588 msgid ""
5589 " checksums-out csumtype directory (sumsfile|-)\n"
5590 "\n"
5591 msgstr ""
5592
5593 #. type: textblock
5594 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5595 msgid ""
5596 "This command computes the checksums of all regular files in C<directory> and "
5597 "then emits a list of those checksums to the local output file C<sumsfile>."
5598 msgstr ""
5599
5600 #. type: textblock
5601 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5602 msgid ""
5603 "This can be used for verifying the integrity of a virtual machine.  However "
5604 "to be properly secure you should pay attention to the output of the checksum "
5605 "command (it uses the ones from GNU coreutils).  In particular when the "
5606 "filename is not printable, coreutils uses a special backslash syntax.  For "
5607 "more information, see the GNU coreutils info file."
5608 msgstr ""
5609
5610 #. type: =head2
5611 #: ../fish/guestfish-actions.pod:700
5612 msgid "chmod"
5613 msgstr ""
5614
5615 #. type: verbatim
5616 #: ../fish/guestfish-actions.pod:702
5617 #, no-wrap
5618 msgid ""
5619 " chmod mode path\n"
5620 "\n"
5621 msgstr ""
5622
5623 #. type: textblock
5624 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
5625 msgid ""
5626 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5627 "supported."
5628 msgstr ""
5629
5630 #. type: textblock
5631 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
5632 msgid ""
5633 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5634 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5635 "C<700>."
5636 msgstr ""
5637
5638 #. type: textblock
5639 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3065
5640 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3214
5641 #: ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:1064
5642 #: ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4800
5643 #: ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4838
5644 msgid "The mode actually set is affected by the umask."
5645 msgstr ""
5646
5647 #. type: =head2
5648 #: ../fish/guestfish-actions.pod:713
5649 msgid "chown"
5650 msgstr ""
5651
5652 #. type: verbatim
5653 #: ../fish/guestfish-actions.pod:715
5654 #, no-wrap
5655 msgid ""
5656 " chown owner group path\n"
5657 "\n"
5658 msgstr ""
5659
5660 #. type: textblock
5661 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
5662 msgid "Change the file owner to C<owner> and group to C<group>."
5663 msgstr ""
5664
5665 #. type: textblock
5666 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2500
5667 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3662
5668 msgid ""
5669 "Only numeric uid and gid are supported.  If you want to use names, you will "
5670 "need to locate and parse the password file yourself (Augeas support makes "
5671 "this relatively easy)."
5672 msgstr ""
5673
5674 #. type: =head2
5675 #: ../fish/guestfish-actions.pod:723
5676 msgid "command"
5677 msgstr ""
5678
5679 #. type: verbatim
5680 #: ../fish/guestfish-actions.pod:725
5681 #, no-wrap
5682 msgid ""
5683 " command 'arguments ...'\n"
5684 "\n"
5685 msgstr ""
5686
5687 #. type: textblock
5688 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
5689 msgid ""
5690 "This call runs a command from the guest filesystem.  The filesystem must be "
5691 "mounted, and must contain a compatible operating system (ie. something "
5692 "Linux, with the same or compatible processor architecture)."
5693 msgstr ""
5694
5695 #. type: textblock
5696 #: ../fish/guestfish-actions.pod:732
5697 msgid ""
5698 "The single parameter is an argv-style list of arguments.  The first element "
5699 "is the name of the program to run.  Subsequent elements are parameters.  The "
5700 "list must be non-empty (ie. must contain a program name).  Note that the "
5701 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5702 msgstr ""
5703
5704 #. type: textblock
5705 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
5706 msgid "The return value is anything printed to I<stdout> by the command."
5707 msgstr ""
5708
5709 #. type: textblock
5710 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
5711 msgid ""
5712 "If the command returns a non-zero exit status, then this function returns an "
5713 "error message.  The error message string is the content of I<stderr> from "
5714 "the command."
5715 msgstr ""
5716
5717 #. type: textblock
5718 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5719 msgid ""
5720 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5721 "bin>.  If you require a program from another location, you should provide "
5722 "the full path in the first parameter."
5723 msgstr ""
5724
5725 #. type: textblock
5726 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
5727 msgid ""
5728 "Shared libraries and data files required by the program must be available on "
5729 "filesystems which are mounted in the correct places.  It is the caller's "
5730 "responsibility to ensure all filesystems that are needed are mounted at the "
5731 "right locations."
5732 msgstr ""
5733
5734 #. type: =head2
5735 #: ../fish/guestfish-actions.pod:760
5736 msgid "command-lines"
5737 msgstr ""
5738
5739 #. type: verbatim
5740 #: ../fish/guestfish-actions.pod:762
5741 #, no-wrap
5742 msgid ""
5743 " command-lines 'arguments ...'\n"
5744 "\n"
5745 msgstr ""
5746
5747 #. type: textblock
5748 #: ../fish/guestfish-actions.pod:764
5749 msgid ""
5750 "This is the same as L</command>, but splits the result into a list of lines."
5751 msgstr ""
5752
5753 #. type: textblock
5754 #: ../fish/guestfish-actions.pod:767
5755 msgid "See also: L</sh-lines>"
5756 msgstr ""
5757
5758 #. type: =head2
5759 #: ../fish/guestfish-actions.pod:772
5760 msgid "config"
5761 msgstr ""
5762
5763 #. type: verbatim
5764 #: ../fish/guestfish-actions.pod:774
5765 #, no-wrap
5766 msgid ""
5767 " config qemuparam qemuvalue\n"
5768 "\n"
5769 msgstr ""
5770
5771 #. type: textblock
5772 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
5773 msgid ""
5774 "This can be used to add arbitrary qemu command line parameters of the form "
5775 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5776 "setting some parameters which would interfere with parameters that we use."
5777 msgstr ""
5778
5779 #. type: textblock
5780 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
5781 msgid "The first character of C<param> string must be a C<-> (dash)."
5782 msgstr ""
5783
5784 #. type: textblock
5785 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
5786 msgid "C<value> can be NULL."
5787 msgstr ""
5788
5789 #. type: =head2
5790 #: ../fish/guestfish-actions.pod:785
5791 msgid "copy-size"
5792 msgstr ""
5793
5794 #. type: verbatim
5795 #: ../fish/guestfish-actions.pod:787
5796 #, no-wrap
5797 msgid ""
5798 " copy-size src dest size\n"
5799 "\n"
5800 msgstr ""
5801
5802 #. type: textblock
5803 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
5804 msgid ""
5805 "This command copies exactly C<size> bytes from one source device or file "
5806 "C<src> to another destination device or file C<dest>."
5807 msgstr ""
5808
5809 #. type: textblock
5810 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
5811 msgid ""
5812 "Note this will fail if the source is too short or if the destination is not "
5813 "large enough."
5814 msgstr ""
5815
5816 #. type: =head2
5817 #: ../fish/guestfish-actions.pod:795
5818 msgid "cp"
5819 msgstr ""
5820
5821 #. type: verbatim
5822 #: ../fish/guestfish-actions.pod:797
5823 #, no-wrap
5824 msgid ""
5825 " cp src dest\n"
5826 "\n"
5827 msgstr ""
5828
5829 #. type: textblock
5830 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
5831 msgid ""
5832 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5833 "destination filename or destination directory."
5834 msgstr ""
5835
5836 #. type: =head2
5837 #: ../fish/guestfish-actions.pod:802
5838 msgid "cp-a"
5839 msgstr ""
5840
5841 #. type: verbatim
5842 #: ../fish/guestfish-actions.pod:804
5843 #, no-wrap
5844 msgid ""
5845 " cp-a src dest\n"
5846 "\n"
5847 msgstr ""
5848
5849 #. type: textblock
5850 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
5851 msgid ""
5852 "This copies a file or directory from C<src> to C<dest> recursively using the "
5853 "C<cp -a> command."
5854 msgstr ""
5855
5856 #. type: =head2
5857 #: ../fish/guestfish-actions.pod:809
5858 msgid "dd"
5859 msgstr ""
5860
5861 #. type: verbatim
5862 #: ../fish/guestfish-actions.pod:811
5863 #, no-wrap
5864 msgid ""
5865 " dd src dest\n"
5866 "\n"
5867 msgstr ""
5868
5869 #. type: textblock
5870 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
5871 msgid ""
5872 "This command copies from one source device or file C<src> to another "
5873 "destination device or file C<dest>.  Normally you would use this to copy to "
5874 "or from a device or partition, for example to duplicate a filesystem."
5875 msgstr ""
5876
5877 #. type: textblock
5878 #: ../fish/guestfish-actions.pod:818
5879 msgid ""
5880 "If the destination is a device, it must be as large or larger than the "
5881 "source file or device, otherwise the copy will fail.  This command cannot do "
5882 "partial copies (see L</copy-size>)."
5883 msgstr ""
5884
5885 #. type: =head2
5886 #: ../fish/guestfish-actions.pod:822
5887 msgid "df"
5888 msgstr ""
5889
5890 #. type: verbatim
5891 #: ../fish/guestfish-actions.pod:824
5892 #, no-wrap
5893 msgid ""
5894 " df\n"
5895 "\n"
5896 msgstr ""
5897
5898 #. type: textblock
5899 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
5900 msgid "This command runs the C<df> command to report disk space used."
5901 msgstr ""
5902
5903 #. type: textblock
5904 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
5905 msgid ""
5906 "This command is mostly useful for interactive sessions.  It is I<not> "
5907 "intended that you try to parse the output string.  Use L</statvfs> from "
5908 "programs."
5909 msgstr ""
5910
5911 #. type: =head2
5912 #: ../fish/guestfish-actions.pod:832
5913 msgid "df-h"
5914 msgstr ""
5915
5916 #. type: verbatim
5917 #: ../fish/guestfish-actions.pod:834
5918 #, no-wrap
5919 msgid ""
5920 " df-h\n"
5921 "\n"
5922 msgstr ""
5923
5924 #. type: textblock
5925 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
5926 msgid ""
5927 "This command runs the C<df -h> command to report disk space used in human-"
5928 "readable format."
5929 msgstr ""
5930
5931 #. type: =head2
5932 #: ../fish/guestfish-actions.pod:843
5933 msgid "dmesg"
5934 msgstr ""
5935
5936 #. type: verbatim
5937 #: ../fish/guestfish-actions.pod:845
5938 #, no-wrap
5939 msgid ""
5940 " dmesg\n"
5941 "\n"
5942 msgstr ""
5943
5944 #. type: textblock
5945 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
5946 msgid ""
5947 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5948 "This is sometimes useful for extended debugging of problems."
5949 msgstr ""
5950
5951 #. type: textblock
5952 #: ../fish/guestfish-actions.pod:851
5953 msgid ""
5954 "Another way to get the same information is to enable verbose messages with "
5955 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
5956 "before running the program."
5957 msgstr ""
5958
5959 #. type: =head2
5960 #: ../fish/guestfish-actions.pod:856
5961 msgid "download"
5962 msgstr ""
5963
5964 #. type: verbatim
5965 #: ../fish/guestfish-actions.pod:858
5966 #, no-wrap
5967 msgid ""
5968 " download remotefilename (filename|-)\n"
5969 "\n"
5970 msgstr ""
5971
5972 #. type: textblock
5973 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
5974 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
5975 msgid ""
5976 "Download file C<remotefilename> and save it as C<filename> on the local "
5977 "machine."
5978 msgstr ""
5979
5980 #. type: textblock
5981 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4808
5982 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7237
5983 msgid "C<filename> can also be a named pipe."
5984 msgstr ""
5985
5986 #. type: textblock
5987 #: ../fish/guestfish-actions.pod:865
5988 msgid "See also L</upload>, L</cat>."
5989 msgstr ""
5990
5991 #. type: =head2
5992 #: ../fish/guestfish-actions.pod:869
5993 msgid "download-offset"
5994 msgstr ""
5995
5996 #. type: verbatim
5997 #: ../fish/guestfish-actions.pod:871
5998 #, no-wrap
5999 msgid ""
6000 " download-offset remotefilename (filename|-) offset size\n"
6001 "\n"
6002 msgstr ""
6003
6004 #. type: textblock
6005 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
6006 msgid ""
6007 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6008 "region must be within the file or device)."
6009 msgstr ""
6010
6011 #. type: textblock
6012 #: ../fish/guestfish-actions.pod:879
6013 msgid ""
6014 "Note that there is no limit on the amount of data that can be downloaded "
6015 "with this call, unlike with L</pread>, and this call always reads the full "
6016 "amount unless an error occurs."
6017 msgstr ""
6018
6019 #. type: textblock
6020 #: ../fish/guestfish-actions.pod:884
6021 msgid "See also L</download>, L</pread>."
6022 msgstr ""
6023
6024 #. type: =head2
6025 #: ../fish/guestfish-actions.pod:888
6026 msgid "drop-caches"
6027 msgstr ""
6028
6029 #. type: verbatim
6030 #: ../fish/guestfish-actions.pod:890
6031 #, no-wrap
6032 msgid ""
6033 " drop-caches whattodrop\n"
6034 "\n"
6035 msgstr ""
6036
6037 #. type: textblock
6038 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6039 msgid ""
6040 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6041 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6042 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6043 msgstr ""
6044
6045 #. type: textblock
6046 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6047 msgid "Setting C<whattodrop> to 3 should drop everything."
6048 msgstr ""
6049
6050 #. type: textblock
6051 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6052 msgid ""
6053 "This automatically calls L<sync(2)> before the operation, so that the "
6054 "maximum guest memory is freed."
6055 msgstr ""
6056
6057 #. type: =head2
6058 #: ../fish/guestfish-actions.pod:902
6059 msgid "du"
6060 msgstr ""
6061
6062 #. type: verbatim
6063 #: ../fish/guestfish-actions.pod:904
6064 #, no-wrap
6065 msgid ""
6066 " du path\n"
6067 "\n"
6068 msgstr ""
6069
6070 #. type: textblock
6071 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6072 msgid ""
6073 "This command runs the C<du -s> command to estimate file space usage for "
6074 "C<path>."
6075 msgstr ""
6076
6077 #. type: textblock
6078 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6079 msgid ""
6080 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6081 "estimate includes the contents of the directory and all subdirectories "
6082 "(recursively)."
6083 msgstr ""
6084
6085 #. type: textblock
6086 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6087 msgid ""
6088 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6089 msgstr ""
6090
6091 #. type: =head2
6092 #: ../fish/guestfish-actions.pod:916
6093 msgid "e2fsck-f"
6094 msgstr ""
6095
6096 #. type: verbatim
6097 #: ../fish/guestfish-actions.pod:918
6098 #, no-wrap
6099 msgid ""
6100 " e2fsck-f device\n"
6101 "\n"
6102 msgstr ""
6103
6104 #. type: textblock
6105 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6106 msgid ""
6107 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6108 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6109 "clean (I<-f>)."
6110 msgstr ""
6111
6112 #. type: textblock
6113 #: ../fish/guestfish-actions.pod:924
6114 msgid ""
6115 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6116 "should use L</fsck>."
6117 msgstr ""
6118
6119 #. type: =head2
6120 #: ../fish/guestfish-actions.pod:927
6121 msgid "echo-daemon"
6122 msgstr ""
6123
6124 #. type: verbatim
6125 #: ../fish/guestfish-actions.pod:929
6126 #, no-wrap
6127 msgid ""
6128 " echo-daemon 'words ...'\n"
6129 "\n"
6130 msgstr ""
6131
6132 #. type: textblock
6133 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6134 msgid ""
6135 "This command concatenates the list of C<words> passed with single spaces "
6136 "between them and returns the resulting string."
6137 msgstr ""
6138
6139 #. type: textblock
6140 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6141 msgid "You can use this command to test the connection through to the daemon."
6142 msgstr ""
6143
6144 #. type: textblock
6145 #: ../fish/guestfish-actions.pod:936
6146 msgid "See also L</ping-daemon>."
6147 msgstr ""
6148
6149 #. type: =head2
6150 #: ../fish/guestfish-actions.pod:938
6151 msgid "egrep"
6152 msgstr ""
6153
6154 #. type: verbatim
6155 #: ../fish/guestfish-actions.pod:940
6156 #, no-wrap
6157 msgid ""
6158 " egrep regex path\n"
6159 "\n"
6160 msgstr ""
6161
6162 #. type: textblock
6163 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6164 msgid ""
6165 "This calls the external C<egrep> program and returns the matching lines."
6166 msgstr ""
6167
6168 #. type: =head2
6169 #: ../fish/guestfish-actions.pod:948
6170 msgid "egrepi"
6171 msgstr ""
6172
6173 #. type: verbatim
6174 #: ../fish/guestfish-actions.pod:950
6175 #, no-wrap
6176 msgid ""
6177 " egrepi regex path\n"
6178 "\n"
6179 msgstr ""
6180
6181 #. type: textblock
6182 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6183 msgid ""
6184 "This calls the external C<egrep -i> program and returns the matching lines."
6185 msgstr ""
6186
6187 #. type: =head2
6188 #: ../fish/guestfish-actions.pod:958
6189 msgid "equal"
6190 msgstr ""
6191
6192 #. type: verbatim
6193 #: ../fish/guestfish-actions.pod:960
6194 #, no-wrap
6195 msgid ""
6196 " equal file1 file2\n"
6197 "\n"
6198 msgstr ""
6199
6200 #. type: textblock
6201 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6202 msgid ""
6203 "This compares the two files C<file1> and C<file2> and returns true if their "
6204 "content is exactly equal, or false otherwise."
6205 msgstr ""
6206
6207 #. type: textblock
6208 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6209 msgid "The external L<cmp(1)> program is used for the comparison."
6210 msgstr ""
6211
6212 #. type: =head2
6213 #: ../fish/guestfish-actions.pod:967
6214 msgid "exists"
6215 msgstr ""
6216
6217 #. type: verbatim
6218 #: ../fish/guestfish-actions.pod:969
6219 #, no-wrap
6220 msgid ""
6221 " exists path\n"
6222 "\n"
6223 msgstr ""
6224
6225 #. type: textblock
6226 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6227 msgid ""
6228 "This returns C<true> if and only if there is a file, directory (or anything) "
6229 "with the given C<path> name."
6230 msgstr ""
6231
6232 #. type: textblock
6233 #: ../fish/guestfish-actions.pod:974
6234 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6235 msgstr ""
6236
6237 #. type: =head2
6238 #: ../fish/guestfish-actions.pod:976
6239 msgid "fallocate"
6240 msgstr ""
6241
6242 #. type: verbatim
6243 #: ../fish/guestfish-actions.pod:978
6244 #, no-wrap
6245 msgid ""
6246 " fallocate path len\n"
6247 "\n"
6248 msgstr ""
6249
6250 #. type: textblock
6251 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6252 #: ../src/guestfs-actions.pod:1505 ../src/guestfs-actions.pod:1531
6253 msgid ""
6254 "This command preallocates a file (containing zero bytes) named C<path> of "
6255 "size C<len> bytes.  If the file exists already, it is overwritten."
6256 msgstr ""
6257
6258 #. type: textblock
6259 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1509
6260 msgid ""
6261 "Do not confuse this with the guestfish-specific C<alloc> command which "
6262 "allocates a file in the host and attaches it as a device."
6263 msgstr ""
6264
6265 #. type: textblock
6266 #: ../fish/guestfish-actions.pod:988
6267 msgid ""
6268 "This function is deprecated.  In new code, use the L</fallocate64> call "
6269 "instead."
6270 msgstr ""
6271
6272 #. type: =head2
6273 #: ../fish/guestfish-actions.pod:995
6274 msgid "fallocate64"
6275 msgstr ""
6276
6277 #. type: verbatim
6278 #: ../fish/guestfish-actions.pod:997
6279 #, no-wrap
6280 msgid ""
6281 " fallocate64 path len\n"
6282 "\n"
6283 msgstr ""
6284
6285 #. type: textblock
6286 #: ../fish/guestfish-actions.pod:1003
6287 msgid ""
6288 "Note that this call allocates disk blocks for the file.  To create a sparse "
6289 "file use L</truncate-size> instead."
6290 msgstr ""
6291
6292 #. type: textblock
6293 #: ../fish/guestfish-actions.pod:1006
6294 msgid ""
6295 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6296 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6297 "maximum size of files created through that call to 1GB."
6298 msgstr ""
6299
6300 #. type: textblock
6301 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6302 msgid ""
6303 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6304 "commands which create a file in the host and attach it as a device."
6305 msgstr ""
6306
6307 #. type: =head2
6308 #: ../fish/guestfish-actions.pod:1015
6309 msgid "fgrep"
6310 msgstr ""
6311
6312 #. type: verbatim
6313 #: ../fish/guestfish-actions.pod:1017
6314 #, no-wrap
6315 msgid ""
6316 " fgrep pattern path\n"
6317 "\n"
6318 msgstr ""
6319
6320 #. type: textblock
6321 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
6322 msgid ""
6323 "This calls the external C<fgrep> program and returns the matching lines."
6324 msgstr ""
6325
6326 #. type: =head2
6327 #: ../fish/guestfish-actions.pod:1025
6328 msgid "fgrepi"
6329 msgstr ""
6330
6331 #. type: verbatim
6332 #: ../fish/guestfish-actions.pod:1027
6333 #, no-wrap
6334 msgid ""
6335 " fgrepi pattern path\n"
6336 "\n"
6337 msgstr ""
6338
6339 #. type: textblock
6340 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
6341 msgid ""
6342 "This calls the external C<fgrep -i> program and returns the matching lines."
6343 msgstr ""
6344
6345 #. type: =head2
6346 #: ../fish/guestfish-actions.pod:1035
6347 msgid "file"
6348 msgstr ""
6349
6350 #. type: verbatim
6351 #: ../fish/guestfish-actions.pod:1037
6352 #, no-wrap
6353 msgid ""
6354 " file path\n"
6355 "\n"
6356 msgstr ""
6357
6358 #. type: textblock
6359 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
6360 msgid ""
6361 "This call uses the standard L<file(1)> command to determine the type or "
6362 "contents of the file."
6363 msgstr ""
6364
6365 #. type: textblock
6366 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
6367 msgid ""
6368 "This call will also transparently look inside various types of compressed "
6369 "file."
6370 msgstr ""
6371
6372 #. type: textblock
6373 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
6374 msgid ""
6375 "The exact command which runs is C<file -zb path>.  Note in particular that "
6376 "the filename is not prepended to the output (the I<-b> option)."
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
6381 msgid ""
6382 "The output depends on the output of the underlying L<file(1)> command and it "
6383 "can change in future in ways beyond our control.  In other words, the output "
6384 "is not guaranteed by the ABI."
6385 msgstr ""
6386
6387 #. type: textblock
6388 #: ../fish/guestfish-actions.pod:1053
6389 msgid ""
6390 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6391 "(etc), L</is-zero>."
6392 msgstr ""
6393
6394 #. type: =head2
6395 #: ../fish/guestfish-actions.pod:1056
6396 msgid "file-architecture"
6397 msgstr ""
6398
6399 #. type: verbatim
6400 #: ../fish/guestfish-actions.pod:1058
6401 #, no-wrap
6402 msgid ""
6403 " file-architecture filename\n"
6404 "\n"
6405 msgstr ""
6406
6407 #. type: textblock
6408 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
6409 msgid ""
6410 "This detects the architecture of the binary C<filename>, and returns it if "
6411 "known."
6412 msgstr ""
6413
6414 #. type: textblock
6415 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
6416 msgid "Currently defined architectures are:"
6417 msgstr ""
6418
6419 #. type: =item
6420 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6421 msgid "\"i386\""
6422 msgstr ""
6423
6424 #. type: textblock
6425 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6426 msgid ""
6427 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6428 "irrespective of the precise processor requirements of the binary."
6429 msgstr ""
6430
6431 #. type: =item
6432 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
6433 msgid "\"x86_64\""
6434 msgstr ""
6435
6436 #. type: textblock
6437 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
6438 msgid "64 bit x86-64."
6439 msgstr ""
6440
6441 #. type: =item
6442 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
6443 msgid "\"sparc\""
6444 msgstr ""
6445
6446 #. type: textblock
6447 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
6448 msgid "32 bit SPARC."
6449 msgstr ""
6450
6451 #. type: =item
6452 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
6453 msgid "\"sparc64\""
6454 msgstr ""
6455
6456 #. type: textblock
6457 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
6458 msgid "64 bit SPARC V9 and above."
6459 msgstr ""
6460
6461 #. type: =item
6462 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
6463 msgid "\"ia64\""
6464 msgstr ""
6465
6466 #. type: textblock
6467 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
6468 msgid "Intel Itanium."
6469 msgstr ""
6470
6471 #. type: =item
6472 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
6473 msgid "\"ppc\""
6474 msgstr ""
6475
6476 #. type: textblock
6477 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
6478 msgid "32 bit Power PC."
6479 msgstr ""
6480
6481 #. type: =item
6482 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
6483 msgid "\"ppc64\""
6484 msgstr ""
6485
6486 #. type: textblock
6487 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6488 msgid "64 bit Power PC."
6489 msgstr ""
6490
6491 #. type: textblock
6492 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6493 msgid "Libguestfs may return other architecture strings in future."
6494 msgstr ""
6495
6496 #. type: textblock
6497 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6498 msgid "The function works on at least the following types of files:"
6499 msgstr ""
6500
6501 #. type: textblock
6502 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6503 msgid "many types of Un*x and Linux binary"
6504 msgstr ""
6505
6506 #. type: textblock
6507 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6508 msgid "many types of Un*x and Linux shared library"
6509 msgstr ""
6510
6511 #. type: textblock
6512 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6513 msgid "Windows Win32 and Win64 binaries"
6514 msgstr ""
6515
6516 #. type: textblock
6517 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6518 msgid "Windows Win32 and Win64 DLLs"
6519 msgstr ""
6520
6521 #. type: textblock
6522 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6523 msgid "Win32 binaries and DLLs return C<i386>."
6524 msgstr ""
6525
6526 #. type: textblock
6527 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6528 msgid "Win64 binaries and DLLs return C<x86_64>."
6529 msgstr ""
6530
6531 #. type: textblock
6532 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6533 msgid "Linux kernel modules"
6534 msgstr ""
6535
6536 #. type: textblock
6537 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6538 msgid "Linux new-style initrd images"
6539 msgstr ""
6540
6541 #. type: textblock
6542 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6543 msgid "some non-x86 Linux vmlinuz kernels"
6544 msgstr ""
6545
6546 #. type: textblock
6547 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6548 msgid "What it can't do currently:"
6549 msgstr ""
6550
6551 #. type: textblock
6552 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6553 msgid "static libraries (libfoo.a)"
6554 msgstr ""
6555
6556 #. type: textblock
6557 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6558 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6559 msgstr ""
6560
6561 #. type: textblock
6562 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
6563 msgid "x86 Linux vmlinuz kernels"
6564 msgstr ""
6565
6566 #. type: textblock
6567 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
6568 msgid ""
6569 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6570 "compressed code, and are horribly hard to unpack.  If you want to find the "
6571 "architecture of a kernel, use the architecture of the associated initrd or "
6572 "kernel module(s) instead."
6573 msgstr ""
6574
6575 #. type: =head2
6576 #: ../fish/guestfish-actions.pod:1161
6577 msgid "filesize"
6578 msgstr ""
6579
6580 #. type: verbatim
6581 #: ../fish/guestfish-actions.pod:1163
6582 #, no-wrap
6583 msgid ""
6584 " filesize file\n"
6585 "\n"
6586 msgstr ""
6587
6588 #. type: textblock
6589 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
6590 msgid "This command returns the size of C<file> in bytes."
6591 msgstr ""
6592
6593 #. type: textblock
6594 #: ../fish/guestfish-actions.pod:1167
6595 msgid ""
6596 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
6597 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
6598 msgstr ""
6599
6600 #. type: =head2
6601 #: ../fish/guestfish-actions.pod:1171
6602 msgid "fill"
6603 msgstr ""
6604
6605 #. type: verbatim
6606 #: ../fish/guestfish-actions.pod:1173
6607 #, no-wrap
6608 msgid ""
6609 " fill c len path\n"
6610 "\n"
6611 msgstr ""
6612
6613 #. type: textblock
6614 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
6615 msgid ""
6616 "This command creates a new file called C<path>.  The initial content of the "
6617 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6618 "[0..255]>."
6619 msgstr ""
6620
6621 #. type: textblock
6622 #: ../fish/guestfish-actions.pod:1179
6623 msgid ""
6624 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6625 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6626 "L</fill-pattern>."
6627 msgstr ""
6628
6629 #. type: =head2
6630 #: ../fish/guestfish-actions.pod:1184
6631 msgid "fill-pattern"
6632 msgstr ""
6633
6634 #. type: verbatim
6635 #: ../fish/guestfish-actions.pod:1186
6636 #, no-wrap
6637 msgid ""
6638 " fill-pattern pattern len path\n"
6639 "\n"
6640 msgstr ""
6641
6642 #. type: textblock
6643 #: ../fish/guestfish-actions.pod:1188
6644 msgid ""
6645 "This function is like L</fill> except that it creates a new file of length "
6646 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6647 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6648 "bytes."
6649 msgstr ""
6650
6651 #. type: =head2
6652 #: ../fish/guestfish-actions.pod:1193
6653 msgid "find"
6654 msgstr ""
6655
6656 #. type: verbatim
6657 #: ../fish/guestfish-actions.pod:1195
6658 #, no-wrap
6659 msgid ""
6660 " find directory\n"
6661 "\n"
6662 msgstr ""
6663
6664 #. type: textblock
6665 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
6666 msgid ""
6667 "This command lists out all files and directories, recursively, starting at "
6668 "C<directory>.  It is essentially equivalent to running the shell command "
6669 "C<find directory -print> but some post-processing happens on the output, "
6670 "described below."
6671 msgstr ""
6672
6673 #. type: textblock
6674 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
6675 msgid ""
6676 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6677 "structure was:"
6678 msgstr ""
6679
6680 #. type: verbatim
6681 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
6682 #, no-wrap
6683 msgid ""
6684 " /tmp/a\n"
6685 " /tmp/b\n"
6686 " /tmp/c/d\n"
6687 "\n"
6688 msgstr ""
6689
6690 #. type: textblock
6691 #: ../fish/guestfish-actions.pod:1209
6692 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6693 msgstr ""
6694
6695 #. type: verbatim
6696 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
6697 #, no-wrap
6698 msgid ""
6699 " a\n"
6700 " b\n"
6701 " c\n"
6702 " c/d\n"
6703 "\n"
6704 msgstr ""
6705
6706 #. type: textblock
6707 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
6708 msgid "If C<directory> is not a directory, then this command returns an error."
6709 msgstr ""
6710
6711 #. type: textblock
6712 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
6713 msgid "The returned list is sorted."
6714 msgstr ""
6715
6716 #. type: textblock
6717 #: ../fish/guestfish-actions.pod:1222
6718 msgid "See also L</find0>."
6719 msgstr ""
6720
6721 #. type: =head2
6722 #: ../fish/guestfish-actions.pod:1227
6723 msgid "find0"
6724 msgstr ""
6725
6726 #. type: verbatim
6727 #: ../fish/guestfish-actions.pod:1229
6728 #, no-wrap
6729 msgid ""
6730 " find0 directory (files|-)\n"
6731 "\n"
6732 msgstr ""
6733
6734 #. type: textblock
6735 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
6736 msgid ""
6737 "This command lists out all files and directories, recursively, starting at "
6738 "C<directory>, placing the resulting list in the external file called "
6739 "C<files>."
6740 msgstr ""
6741
6742 #. type: textblock
6743 #: ../fish/guestfish-actions.pod:1235
6744 msgid ""
6745 "This command works the same way as L</find> with the following exceptions:"
6746 msgstr ""
6747
6748 #. type: textblock
6749 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
6750 msgid "The resulting list is written to an external file."
6751 msgstr ""
6752
6753 #. type: textblock
6754 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
6755 msgid ""
6756 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6757 "L<find(1)> option I<-print0>."
6758 msgstr ""
6759
6760 #. type: textblock
6761 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
6762 msgid "This command is not limited in the number of names that it can return."
6763 msgstr ""
6764
6765 #. type: textblock
6766 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
6767 msgid "The result list is not sorted."
6768 msgstr ""
6769
6770 #. type: =head2
6771 #: ../fish/guestfish-actions.pod:1262
6772 msgid "findfs-label"
6773 msgstr ""
6774
6775 #. type: verbatim
6776 #: ../fish/guestfish-actions.pod:1264
6777 #, no-wrap
6778 msgid ""
6779 " findfs-label label\n"
6780 "\n"
6781 msgstr ""
6782
6783 #. type: textblock
6784 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
6785 msgid ""
6786 "This command searches the filesystems and returns the one which has the "
6787 "given label.  An error is returned if no such filesystem can be found."
6788 msgstr ""
6789
6790 #. type: textblock
6791 #: ../fish/guestfish-actions.pod:1270
6792 msgid "To find the label of a filesystem, use L</vfs-label>."
6793 msgstr ""
6794
6795 #. type: =head2
6796 #: ../fish/guestfish-actions.pod:1272
6797 msgid "findfs-uuid"
6798 msgstr ""
6799
6800 #. type: verbatim
6801 #: ../fish/guestfish-actions.pod:1274
6802 #, no-wrap
6803 msgid ""
6804 " findfs-uuid uuid\n"
6805 "\n"
6806 msgstr ""
6807
6808 #. type: textblock
6809 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
6810 msgid ""
6811 "This command searches the filesystems and returns the one which has the "
6812 "given UUID.  An error is returned if no such filesystem can be found."
6813 msgstr ""
6814
6815 #. type: textblock
6816 #: ../fish/guestfish-actions.pod:1280
6817 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
6818 msgstr ""
6819
6820 #. type: =head2
6821 #: ../fish/guestfish-actions.pod:1282
6822 msgid "fsck"
6823 msgstr ""
6824
6825 #. type: verbatim
6826 #: ../fish/guestfish-actions.pod:1284
6827 #, no-wrap
6828 msgid ""
6829 " fsck fstype device\n"
6830 "\n"
6831 msgstr ""
6832
6833 #. type: textblock
6834 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
6835 msgid ""
6836 "This runs the filesystem checker (fsck) on C<device> which should have "
6837 "filesystem type C<fstype>."
6838 msgstr ""
6839
6840 #. type: textblock
6841 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
6842 msgid ""
6843 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6844 "codes from C<fsck>."
6845 msgstr ""
6846
6847 #. type: textblock
6848 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
6849 msgid "Multiple status codes can be summed together."
6850 msgstr ""
6851
6852 #. type: textblock
6853 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
6854 msgid ""
6855 "A non-zero return code can mean \"success\", for example if errors have been "
6856 "corrected on the filesystem."
6857 msgstr ""
6858
6859 #. type: textblock
6860 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
6861 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6862 msgstr ""
6863
6864 #. type: textblock
6865 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
6866 msgid ""
6867 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6868 msgstr ""
6869
6870 #. type: =head2
6871 #: ../fish/guestfish-actions.pod:1314
6872 msgid "get-append"
6873 msgstr ""
6874
6875 #. type: verbatim
6876 #: ../fish/guestfish-actions.pod:1316
6877 #, no-wrap
6878 msgid ""
6879 " get-append\n"
6880 "\n"
6881 msgstr ""
6882
6883 #. type: textblock
6884 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
6885 msgid ""
6886 "Return the additional kernel options which are added to the guest kernel "
6887 "command line."
6888 msgstr ""
6889
6890 #. type: textblock
6891 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
6892 msgid "If C<NULL> then no options are added."
6893 msgstr ""
6894
6895 #. type: =head2
6896 #: ../fish/guestfish-actions.pod:1323
6897 msgid "get-attach-method"
6898 msgstr ""
6899
6900 #. type: verbatim
6901 #: ../fish/guestfish-actions.pod:1325
6902 #, no-wrap
6903 msgid ""
6904 " get-attach-method\n"
6905 "\n"
6906 msgstr ""
6907
6908 #. type: textblock
6909 #: ../fish/guestfish-actions.pod:1327
6910 msgid "Return the current attach method.  See L</set-attach-method>."
6911 msgstr ""
6912
6913 #. type: =head2
6914 #: ../fish/guestfish-actions.pod:1329
6915 msgid "get-autosync"
6916 msgstr ""
6917
6918 #. type: verbatim
6919 #: ../fish/guestfish-actions.pod:1331
6920 #, no-wrap
6921 msgid ""
6922 " get-autosync\n"
6923 "\n"
6924 msgstr ""
6925
6926 #. type: textblock
6927 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
6928 msgid "Get the autosync flag."
6929 msgstr ""
6930
6931 #. type: =head2
6932 #: ../fish/guestfish-actions.pod:1335
6933 msgid "get-direct"
6934 msgstr ""
6935
6936 #. type: verbatim
6937 #: ../fish/guestfish-actions.pod:1337
6938 #, no-wrap
6939 msgid ""
6940 " get-direct\n"
6941 "\n"
6942 msgstr ""
6943
6944 #. type: textblock
6945 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
6946 msgid "Return the direct appliance mode flag."
6947 msgstr ""
6948
6949 #. type: =head2
6950 #: ../fish/guestfish-actions.pod:1341
6951 msgid "get-e2label"
6952 msgstr ""
6953
6954 #. type: verbatim
6955 #: ../fish/guestfish-actions.pod:1343
6956 #, no-wrap
6957 msgid ""
6958 " get-e2label device\n"
6959 "\n"
6960 msgstr ""
6961
6962 #. type: textblock
6963 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2004
6964 msgid ""
6965 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6966 msgstr ""
6967
6968 #. type: textblock
6969 #: ../fish/guestfish-actions.pod:1348
6970 msgid ""
6971 "This function is deprecated.  In new code, use the L</vfs_label> call "
6972 "instead."
6973 msgstr ""
6974
6975 #. type: =head2
6976 #: ../fish/guestfish-actions.pod:1355
6977 msgid "get-e2uuid"
6978 msgstr ""
6979
6980 #. type: verbatim
6981 #: ../fish/guestfish-actions.pod:1357
6982 #, no-wrap
6983 msgid ""
6984 " get-e2uuid device\n"
6985 "\n"
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2025
6990 msgid ""
6991 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6992 msgstr ""
6993
6994 #. type: textblock
6995 #: ../fish/guestfish-actions.pod:1362
6996 msgid ""
6997 "This function is deprecated.  In new code, use the L</vfs_uuid> call instead."
6998 msgstr ""
6999
7000 #. type: =head2
7001 #: ../fish/guestfish-actions.pod:1369
7002 msgid "get-memsize"
7003 msgstr ""
7004
7005 #. type: verbatim
7006 #: ../fish/guestfish-actions.pod:1371
7007 #, no-wrap
7008 msgid ""
7009 " get-memsize\n"
7010 "\n"
7011 msgstr ""
7012
7013 #. type: textblock
7014 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7015 msgid ""
7016 "This gets the memory size in megabytes allocated to the qemu subprocess."
7017 msgstr ""
7018
7019 #. type: textblock
7020 #: ../fish/guestfish-actions.pod:1376
7021 msgid ""
7022 "If L</set-memsize> was not called on this handle, and if "
7023 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7024 "value for memsize."
7025 msgstr ""
7026
7027 #. type: textblock
7028 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7029 #: ../fish/guestfish-actions.pod:4168 ../fish/guestfish-actions.pod:4270
7030 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7031 #: ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6424
7032 msgid ""
7033 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7034 msgstr ""
7035
7036 #. type: =head2
7037 #: ../fish/guestfish-actions.pod:1383
7038 msgid "get-network"
7039 msgstr ""
7040
7041 #. type: verbatim
7042 #: ../fish/guestfish-actions.pod:1385
7043 #, no-wrap
7044 msgid ""
7045 " get-network\n"
7046 "\n"
7047 msgstr ""
7048
7049 #. type: textblock
7050 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7051 msgid "This returns the enable network flag."
7052 msgstr ""
7053
7054 #. type: =head2
7055 #: ../fish/guestfish-actions.pod:1389
7056 msgid "get-path"
7057 msgstr ""
7058
7059 #. type: verbatim
7060 #: ../fish/guestfish-actions.pod:1391
7061 #, no-wrap
7062 msgid ""
7063 " get-path\n"
7064 "\n"
7065 msgstr ""
7066
7067 #. type: textblock
7068 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7069 msgid "Return the current search path."
7070 msgstr ""
7071
7072 #. type: textblock
7073 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7074 msgid ""
7075 "This is always non-NULL.  If it wasn't set already, then this will return "
7076 "the default path."
7077 msgstr ""
7078
7079 #. type: =head2
7080 #: ../fish/guestfish-actions.pod:1398
7081 msgid "get-pgroup"
7082 msgstr ""
7083
7084 #. type: verbatim
7085 #: ../fish/guestfish-actions.pod:1400
7086 #, no-wrap
7087 msgid ""
7088 " get-pgroup\n"
7089 "\n"
7090 msgstr ""
7091
7092 #. type: textblock
7093 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7094 msgid "This returns the process group flag."
7095 msgstr ""
7096
7097 #. type: =head2
7098 #: ../fish/guestfish-actions.pod:1404
7099 msgid "get-pid"
7100 msgstr ""
7101
7102 #. type: =head2
7103 #: ../fish/guestfish-actions.pod:1406
7104 msgid "pid"
7105 msgstr ""
7106
7107 #. type: verbatim
7108 #: ../fish/guestfish-actions.pod:1408
7109 #, no-wrap
7110 msgid ""
7111 " get-pid\n"
7112 "\n"
7113 msgstr ""
7114
7115 #. type: textblock
7116 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7117 msgid ""
7118 "Return the process ID of the qemu subprocess.  If there is no qemu "
7119 "subprocess, then this will return an error."
7120 msgstr ""
7121
7122 #. type: textblock
7123 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7124 msgid "This is an internal call used for debugging and testing."
7125 msgstr ""
7126
7127 #. type: =head2
7128 #: ../fish/guestfish-actions.pod:1415
7129 msgid "get-qemu"
7130 msgstr ""
7131
7132 #. type: verbatim
7133 #: ../fish/guestfish-actions.pod:1417
7134 #, no-wrap
7135 msgid ""
7136 " get-qemu\n"
7137 "\n"
7138 msgstr ""
7139
7140 #. type: textblock
7141 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7142 msgid "Return the current qemu binary."
7143 msgstr ""
7144
7145 #. type: textblock
7146 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7147 msgid ""
7148 "This is always non-NULL.  If it wasn't set already, then this will return "
7149 "the default qemu binary name."
7150 msgstr ""
7151
7152 #. type: =head2
7153 #: ../fish/guestfish-actions.pod:1424
7154 msgid "get-recovery-proc"
7155 msgstr ""
7156
7157 #. type: verbatim
7158 #: ../fish/guestfish-actions.pod:1426
7159 #, no-wrap
7160 msgid ""
7161 " get-recovery-proc\n"
7162 "\n"
7163 msgstr ""
7164
7165 #. type: textblock
7166 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7167 msgid "Return the recovery process enabled flag."
7168 msgstr ""
7169
7170 #. type: =head2
7171 #: ../fish/guestfish-actions.pod:1430
7172 msgid "get-selinux"
7173 msgstr ""
7174
7175 #. type: verbatim
7176 #: ../fish/guestfish-actions.pod:1432
7177 #, no-wrap
7178 msgid ""
7179 " get-selinux\n"
7180 "\n"
7181 msgstr ""
7182
7183 #. type: textblock
7184 #: ../fish/guestfish-actions.pod:1434
7185 msgid ""
7186 "This returns the current setting of the selinux flag which is passed to the "
7187 "appliance at boot time.  See L</set-selinux>."
7188 msgstr ""
7189
7190 #. type: =head2
7191 #: ../fish/guestfish-actions.pod:1440
7192 msgid "get-state"
7193 msgstr ""
7194
7195 #. type: verbatim
7196 #: ../fish/guestfish-actions.pod:1442
7197 #, no-wrap
7198 msgid ""
7199 " get-state\n"
7200 "\n"
7201 msgstr ""
7202
7203 #. type: textblock
7204 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7205 msgid ""
7206 "This returns the current state as an opaque integer.  This is only useful "
7207 "for printing debug and internal error messages."
7208 msgstr ""
7209
7210 #. type: textblock
7211 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2367
7212 #: ../fish/guestfish-actions.pod:2385 ../fish/guestfish-actions.pod:2423
7213 #: ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:2159
7214 #: ../src/guestfs-actions.pod:3439 ../src/guestfs-actions.pod:3468
7215 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3556
7216 msgid "For more information on states, see L<guestfs(3)>."
7217 msgstr ""
7218
7219 #. type: =head2
7220 #: ../fish/guestfish-actions.pod:1449
7221 msgid "get-trace"
7222 msgstr ""
7223
7224 #. type: verbatim
7225 #: ../fish/guestfish-actions.pod:1451
7226 #, no-wrap
7227 msgid ""
7228 " get-trace\n"
7229 "\n"
7230 msgstr ""
7231
7232 #. type: textblock
7233 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7234 msgid "Return the command trace flag."
7235 msgstr ""
7236
7237 #. type: =head2
7238 #: ../fish/guestfish-actions.pod:1455
7239 msgid "get-umask"
7240 msgstr ""
7241
7242 #. type: verbatim
7243 #: ../fish/guestfish-actions.pod:1457
7244 #, no-wrap
7245 msgid ""
7246 " get-umask\n"
7247 "\n"
7248 msgstr ""
7249
7250 #. type: textblock
7251 #: ../fish/guestfish-actions.pod:1459
7252 msgid ""
7253 "Return the current umask.  By default the umask is C<022> unless it has been "
7254 "set by calling L</umask>."
7255 msgstr ""
7256
7257 #. type: =head2
7258 #: ../fish/guestfish-actions.pod:1462
7259 msgid "get-verbose"
7260 msgstr ""
7261
7262 #. type: verbatim
7263 #: ../fish/guestfish-actions.pod:1464
7264 #, no-wrap
7265 msgid ""
7266 " get-verbose\n"
7267 "\n"
7268 msgstr ""
7269
7270 #. type: textblock
7271 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7272 msgid "This returns the verbose messages flag."
7273 msgstr ""
7274
7275 #. type: =head2
7276 #: ../fish/guestfish-actions.pod:1468
7277 msgid "getcon"
7278 msgstr ""
7279
7280 #. type: verbatim
7281 #: ../fish/guestfish-actions.pod:1470
7282 #, no-wrap
7283 msgid ""
7284 " getcon\n"
7285 "\n"
7286 msgstr ""
7287
7288 #. type: textblock
7289 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7290 msgid "This gets the SELinux security context of the daemon."
7291 msgstr ""
7292
7293 #. type: textblock
7294 #: ../fish/guestfish-actions.pod:1474
7295 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7296 msgstr ""
7297
7298 #. type: =head2
7299 #: ../fish/guestfish-actions.pod:1477
7300 msgid "getxattr"
7301 msgstr ""
7302
7303 #. type: verbatim
7304 #: ../fish/guestfish-actions.pod:1479
7305 #, no-wrap
7306 msgid ""
7307 " getxattr path name\n"
7308 "\n"
7309 msgstr ""
7310
7311 #. type: textblock
7312 #: ../fish/guestfish-actions.pod:1481
7313 msgid ""
7314 "Get a single extended attribute from file C<path> named C<name>.  This call "
7315 "follows symlinks.  If you want to lookup an extended attribute for the "
7316 "symlink itself, use L</lgetxattr>."
7317 msgstr ""
7318
7319 #. type: textblock
7320 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2512
7321 msgid ""
7322 "Normally it is better to get all extended attributes from a file in one go "
7323 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7324 "buggy and do not provide a way to list out attributes.  For these "
7325 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7326 "attributes you want in advance and call this function."
7327 msgstr ""
7328
7329 #. type: textblock
7330 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2519
7331 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3689
7332 msgid ""
7333 "Extended attribute values are blobs of binary data.  If there is no extended "
7334 "attribute named C<name>, this returns an error."
7335 msgstr ""
7336
7337 #. type: textblock
7338 #: ../fish/guestfish-actions.pod:1495
7339 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7340 msgstr ""
7341
7342 #. type: =head2
7343 #: ../fish/guestfish-actions.pod:1497
7344 msgid "getxattrs"
7345 msgstr ""
7346
7347 #. type: verbatim
7348 #: ../fish/guestfish-actions.pod:1499
7349 #, no-wrap
7350 msgid ""
7351 " getxattrs path\n"
7352 "\n"
7353 msgstr ""
7354
7355 #. type: textblock
7356 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7357 msgid ""
7358 "This call lists the extended attributes of the file or directory C<path>."
7359 msgstr ""
7360
7361 #. type: textblock
7362 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7363 msgid ""
7364 "At the system call level, this is a combination of the L<listxattr(2)> and "
7365 "L<getxattr(2)> calls."
7366 msgstr ""
7367
7368 #. type: textblock
7369 #: ../fish/guestfish-actions.pod:1507
7370 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7371 msgstr ""
7372
7373 #. type: =head2
7374 #: ../fish/guestfish-actions.pod:1509
7375 msgid "glob-expand"
7376 msgstr ""
7377
7378 #. type: verbatim
7379 #: ../fish/guestfish-actions.pod:1511
7380 #, no-wrap
7381 msgid ""
7382 " glob-expand pattern\n"
7383 "\n"
7384 msgstr ""
7385
7386 #. type: textblock
7387 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7388 msgid ""
7389 "This command searches for all the pathnames matching C<pattern> according to "
7390 "the wildcard expansion rules used by the shell."
7391 msgstr ""
7392
7393 #. type: textblock
7394 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7395 msgid ""
7396 "If no paths match, then this returns an empty list (note: not an error)."
7397 msgstr ""
7398
7399 #. type: textblock
7400 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7401 msgid ""
7402 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7403 "GLOB_BRACE>.  See that manual page for more details."
7404 msgstr ""
7405
7406 #. type: =head2
7407 #: ../fish/guestfish-actions.pod:1524
7408 msgid "grep"
7409 msgstr ""
7410
7411 #. type: verbatim
7412 #: ../fish/guestfish-actions.pod:1526
7413 #, no-wrap
7414 msgid ""
7415 " grep regex path\n"
7416 "\n"
7417 msgstr ""
7418
7419 #. type: textblock
7420 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7421 msgid "This calls the external C<grep> program and returns the matching lines."
7422 msgstr ""
7423
7424 #. type: =head2
7425 #: ../fish/guestfish-actions.pod:1534
7426 msgid "grepi"
7427 msgstr ""
7428
7429 #. type: verbatim
7430 #: ../fish/guestfish-actions.pod:1536
7431 #, no-wrap
7432 msgid ""
7433 " grepi regex path\n"
7434 "\n"
7435 msgstr ""
7436
7437 #. type: textblock
7438 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7439 msgid ""
7440 "This calls the external C<grep -i> program and returns the matching lines."
7441 msgstr ""
7442
7443 #. type: =head2
7444 #: ../fish/guestfish-actions.pod:1544
7445 msgid "grub-install"
7446 msgstr ""
7447
7448 #. type: verbatim
7449 #: ../fish/guestfish-actions.pod:1546
7450 #, no-wrap
7451 msgid ""
7452 " grub-install root device\n"
7453 "\n"
7454 msgstr ""
7455
7456 #. type: textblock
7457 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7458 msgid ""
7459 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7460 "the root directory being C<root>."
7461 msgstr ""
7462
7463 #. type: textblock
7464 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2335
7465 msgid ""
7466 "Note: If grub-install reports the error \"No suitable drive was found in the "
7467 "generated device map.\" it may be that you need to create a C</boot/grub/"
7468 "device.map> file first that contains the mapping between grub device names "
7469 "and Linux device names.  It is usually sufficient to create a file "
7470 "containing:"
7471 msgstr ""
7472
7473 #. type: verbatim
7474 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2342
7475 #, no-wrap
7476 msgid ""
7477 " (hd0) /dev/vda\n"
7478 "\n"
7479 msgstr ""
7480
7481 #. type: textblock
7482 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2344
7483 msgid "replacing C</dev/vda> with the name of the installation device."
7484 msgstr ""
7485
7486 #. type: =head2
7487 #: ../fish/guestfish-actions.pod:1562
7488 msgid "head"
7489 msgstr ""
7490
7491 #. type: verbatim
7492 #: ../fish/guestfish-actions.pod:1564
7493 #, no-wrap
7494 msgid ""
7495 " head path\n"
7496 "\n"
7497 msgstr ""
7498
7499 #. type: textblock
7500 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2356
7501 msgid ""
7502 "This command returns up to the first 10 lines of a file as a list of strings."
7503 msgstr ""
7504
7505 #. type: =head2
7506 #: ../fish/guestfish-actions.pod:1572
7507 msgid "head-n"
7508 msgstr ""
7509
7510 #. type: verbatim
7511 #: ../fish/guestfish-actions.pod:1574
7512 #, no-wrap
7513 msgid ""
7514 " head-n nrlines path\n"
7515 "\n"
7516 msgstr ""
7517
7518 #. type: textblock
7519 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2375
7520 msgid ""
7521 "If the parameter C<nrlines> is a positive number, this returns the first "
7522 "C<nrlines> lines of the file C<path>."
7523 msgstr ""
7524
7525 #. type: textblock
7526 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2378
7527 msgid ""
7528 "If the parameter C<nrlines> is a negative number, this returns lines from "
7529 "the file C<path>, excluding the last C<nrlines> lines."
7530 msgstr ""
7531
7532 #. type: textblock
7533 #: ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:4648
7534 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:6996
7535 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7536 msgstr ""
7537
7538 #. type: =head2
7539 #: ../fish/guestfish-actions.pod:1587
7540 msgid "hexdump"
7541 msgstr ""
7542
7543 #. type: verbatim
7544 #: ../fish/guestfish-actions.pod:1589
7545 #, no-wrap
7546 msgid ""
7547 " hexdump path\n"
7548 "\n"
7549 msgstr ""
7550
7551 #. type: textblock
7552 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2398
7553 msgid ""
7554 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7555 "readable, canonical hex dump of the file."
7556 msgstr ""
7557
7558 #. type: =head2
7559 #: ../fish/guestfish-actions.pod:1597
7560 msgid "initrd-cat"
7561 msgstr ""
7562
7563 #. type: verbatim
7564 #: ../fish/guestfish-actions.pod:1599
7565 #, no-wrap
7566 msgid ""
7567 " initrd-cat initrdpath filename\n"
7568 "\n"
7569 msgstr ""
7570
7571 #. type: textblock
7572 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2417
7573 msgid ""
7574 "This command unpacks the file C<filename> from the initrd file called "
7575 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7576 "character."
7577 msgstr ""
7578
7579 #. type: textblock
7580 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2421
7581 msgid ""
7582 "For example, in guestfish you could use the following command to examine the "
7583 "boot script (usually called C</init>)  contained in a Linux initrd or "
7584 "initramfs image:"
7585 msgstr ""
7586
7587 #. type: verbatim
7588 #: ../fish/guestfish-actions.pod:1609 ../src/guestfs-actions.pod:2425
7589 #, no-wrap
7590 msgid ""
7591 " initrd-cat /boot/initrd-<version>.img init\n"
7592 "\n"
7593 msgstr ""
7594
7595 #. type: textblock
7596 #: ../fish/guestfish-actions.pod:1611
7597 msgid "See also L</initrd-list>."
7598 msgstr ""
7599
7600 #. type: =head2
7601 #: ../fish/guestfish-actions.pod:1616
7602 msgid "initrd-list"
7603 msgstr ""
7604
7605 #. type: verbatim
7606 #: ../fish/guestfish-actions.pod:1618
7607 #, no-wrap
7608 msgid ""
7609 " initrd-list path\n"
7610 "\n"
7611 msgstr ""
7612
7613 #. type: textblock
7614 #: ../fish/guestfish-actions.pod:1620 ../src/guestfs-actions.pod:2444
7615 msgid "This command lists out files contained in an initrd."
7616 msgstr ""
7617
7618 #. type: textblock
7619 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2446
7620 msgid ""
7621 "The files are listed without any initial C</> character.  The files are "
7622 "listed in the order they appear (not necessarily alphabetical).  Directory "
7623 "names are listed as separate items."
7624 msgstr ""
7625
7626 #. type: textblock
7627 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2450
7628 msgid ""
7629 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7630 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7631 "files)."
7632 msgstr ""
7633
7634 #. type: =head2
7635 #: ../fish/guestfish-actions.pod:1630
7636 msgid "inotify-add-watch"
7637 msgstr ""
7638
7639 #. type: verbatim
7640 #: ../fish/guestfish-actions.pod:1632
7641 #, no-wrap
7642 msgid ""
7643 " inotify-add-watch path mask\n"
7644 "\n"
7645 msgstr ""
7646
7647 #. type: textblock
7648 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2467
7649 msgid "Watch C<path> for the events listed in C<mask>."
7650 msgstr ""
7651
7652 #. type: textblock
7653 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2469
7654 msgid ""
7655 "Note that if C<path> is a directory then events within that directory are "
7656 "watched, but this does I<not> happen recursively (in subdirectories)."
7657 msgstr ""
7658
7659 #. type: textblock
7660 #: ../fish/guestfish-actions.pod:1640 ../src/guestfs-actions.pod:2473
7661 msgid ""
7662 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7663 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7664 msgstr ""
7665
7666 #. type: =head2
7667 #: ../fish/guestfish-actions.pod:1644
7668 msgid "inotify-close"
7669 msgstr ""
7670
7671 #. type: verbatim
7672 #: ../fish/guestfish-actions.pod:1646
7673 #, no-wrap
7674 msgid ""
7675 " inotify-close\n"
7676 "\n"
7677 msgstr ""
7678
7679 #. type: textblock
7680 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2486
7681 msgid ""
7682 "This closes the inotify handle which was previously opened by inotify_init.  "
7683 "It removes all watches, throws away any pending events, and deallocates all "
7684 "resources."
7685 msgstr ""
7686
7687 #. type: =head2
7688 #: ../fish/guestfish-actions.pod:1652
7689 msgid "inotify-files"
7690 msgstr ""
7691
7692 #. type: verbatim
7693 #: ../fish/guestfish-actions.pod:1654
7694 #, no-wrap
7695 msgid ""
7696 " inotify-files\n"
7697 "\n"
7698 msgstr ""
7699
7700 #. type: textblock
7701 #: ../fish/guestfish-actions.pod:1656
7702 msgid ""
7703 "This function is a helpful wrapper around L</inotify-read> which just "
7704 "returns a list of pathnames of objects that were touched.  The returned "
7705 "pathnames are sorted and deduplicated."
7706 msgstr ""
7707
7708 #. type: =head2
7709 #: ../fish/guestfish-actions.pod:1660
7710 msgid "inotify-init"
7711 msgstr ""
7712
7713 #. type: verbatim
7714 #: ../fish/guestfish-actions.pod:1662
7715 #, no-wrap
7716 msgid ""
7717 " inotify-init maxevents\n"
7718 "\n"
7719 msgstr ""
7720
7721 #. type: textblock
7722 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2515
7723 msgid ""
7724 "This command creates a new inotify handle.  The inotify subsystem can be "
7725 "used to notify events which happen to objects in the guest filesystem."
7726 msgstr ""
7727
7728 #. type: textblock
7729 #: ../fish/guestfish-actions.pod:1668
7730 msgid ""
7731 "C<maxevents> is the maximum number of events which will be queued up between "
7732 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
7733 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
7734 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
7735 "but records the fact that it threw them away by setting a flag "
7736 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
7737 msgstr ""
7738
7739 #. type: textblock
7740 #: ../fish/guestfish-actions.pod:1678
7741 msgid ""
7742 "Before any events are generated, you have to add some watches to the "
7743 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
7744 "L</inotify-watch-all>."
7745 msgstr ""
7746
7747 #. type: textblock
7748 #: ../fish/guestfish-actions.pod:1684
7749 msgid ""
7750 "Queued up events should be read periodically by calling L</inotify-read> (or "
7751 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
7752 "If you don't read the events out often enough then you risk the internal "
7753 "queue overflowing."
7754 msgstr ""
7755
7756 #. type: textblock
7757 #: ../fish/guestfish-actions.pod:1691
7758 msgid ""
7759 "The handle should be closed after use by calling L</inotify-close>.  This "
7760 "also removes any watches automatically."
7761 msgstr ""
7762
7763 #. type: textblock
7764 #: ../fish/guestfish-actions.pod:1695 ../src/guestfs-actions.pod:2546
7765 msgid ""
7766 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7767 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7768 "that there is one global inotify handle per libguestfs instance."
7769 msgstr ""
7770
7771 #. type: =head2
7772 #: ../fish/guestfish-actions.pod:1700
7773 msgid "inotify-read"
7774 msgstr ""
7775
7776 #. type: verbatim
7777 #: ../fish/guestfish-actions.pod:1702
7778 #, no-wrap
7779 msgid ""
7780 " inotify-read\n"
7781 "\n"
7782 msgstr ""
7783
7784 #. type: textblock
7785 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
7786 msgid ""
7787 "Return the complete queue of events that have happened since the previous "
7788 "read call."
7789 msgstr ""
7790
7791 #. type: textblock
7792 #: ../fish/guestfish-actions.pod:1707 ../src/guestfs-actions.pod:2563
7793 msgid "If no events have happened, this returns an empty list."
7794 msgstr ""
7795
7796 #. type: textblock
7797 #: ../fish/guestfish-actions.pod:1709 ../src/guestfs-actions.pod:2565
7798 msgid ""
7799 "I<Note>: In order to make sure that all events have been read, you must call "
7800 "this function repeatedly until it returns an empty list.  The reason is that "
7801 "the call will read events up to the maximum appliance-to-host message size "
7802 "and leave remaining events in the queue."
7803 msgstr ""
7804
7805 #. type: =head2
7806 #: ../fish/guestfish-actions.pod:1715
7807 msgid "inotify-rm-watch"
7808 msgstr ""
7809
7810 #. type: verbatim
7811 #: ../fish/guestfish-actions.pod:1717
7812 #, no-wrap
7813 msgid ""
7814 " inotify-rm-watch wd\n"
7815 "\n"
7816 msgstr ""
7817
7818 #. type: textblock
7819 #: ../fish/guestfish-actions.pod:1719
7820 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
7821 msgstr ""
7822
7823 #. type: =head2
7824 #: ../fish/guestfish-actions.pod:1722
7825 msgid "inspect-get-arch"
7826 msgstr ""
7827
7828 #. type: verbatim
7829 #: ../fish/guestfish-actions.pod:1724
7830 #, no-wrap
7831 msgid ""
7832 " inspect-get-arch root\n"
7833 "\n"
7834 msgstr ""
7835
7836 #. type: textblock
7837 #: ../fish/guestfish-actions.pod:1726
7838 msgid ""
7839 "This returns the architecture of the inspected operating system.  The "
7840 "possible return values are listed under L</file-architecture>."
7841 msgstr ""
7842
7843 #. type: textblock
7844 #: ../fish/guestfish-actions.pod:1730 ../src/guestfs-actions.pod:2600
7845 msgid ""
7846 "If the architecture could not be determined, then the string C<unknown> is "
7847 "returned."
7848 msgstr ""
7849
7850 #. type: textblock
7851 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1816
7852 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1907
7853 #: ../fish/guestfish-actions.pod:1991 ../fish/guestfish-actions.pod:2052
7854 #: ../fish/guestfish-actions.pod:2073 ../fish/guestfish-actions.pod:2087
7855 #: ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2159
7856 #: ../fish/guestfish-actions.pod:2172 ../fish/guestfish-actions.pod:2185
7857 #: ../fish/guestfish-actions.pod:2195 ../fish/guestfish-actions.pod:2205
7858 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2313
7859 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:2603
7860 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2797
7861 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2947
7862 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
7863 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3132
7864 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3192
7865 #: ../src/guestfs-actions.pod:3212 ../src/guestfs-actions.pod:3229
7866 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3263
7867 #: ../src/guestfs-actions.pod:3365 ../src/guestfs-actions.pod:3406
7868 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7869 msgstr ""
7870
7871 #. type: =head2
7872 #: ../fish/guestfish-actions.pod:1735
7873 msgid "inspect-get-distro"
7874 msgstr ""
7875
7876 #. type: verbatim
7877 #: ../fish/guestfish-actions.pod:1737
7878 #, no-wrap
7879 msgid ""
7880 " inspect-get-distro root\n"
7881 "\n"
7882 msgstr ""
7883
7884 #. type: textblock
7885 #: ../fish/guestfish-actions.pod:1739 ../src/guestfs-actions.pod:2616
7886 msgid ""
7887 "This returns the distro (distribution) of the inspected operating system."
7888 msgstr ""
7889
7890 #. type: textblock
7891 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2619
7892 msgid "Currently defined distros are:"
7893 msgstr ""
7894
7895 #. type: =item
7896 #: ../fish/guestfish-actions.pod:1746 ../src/guestfs-actions.pod:2623
7897 msgid "\"archlinux\""
7898 msgstr ""
7899
7900 #. type: textblock
7901 #: ../fish/guestfish-actions.pod:1748 ../src/guestfs-actions.pod:2625
7902 msgid "Arch Linux."
7903 msgstr ""
7904
7905 #. type: =item
7906 #: ../fish/guestfish-actions.pod:1750 ../src/guestfs-actions.pod:2627
7907 msgid "\"centos\""
7908 msgstr ""
7909
7910 #. type: textblock
7911 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2629
7912 msgid "CentOS."
7913 msgstr ""
7914
7915 #. type: =item
7916 #: ../fish/guestfish-actions.pod:1754 ../src/guestfs-actions.pod:2631
7917 msgid "\"debian\""
7918 msgstr ""
7919
7920 #. type: textblock
7921 #: ../fish/guestfish-actions.pod:1756 ../src/guestfs-actions.pod:2633
7922 msgid "Debian."
7923 msgstr ""
7924
7925 #. type: =item
7926 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2635
7927 msgid "\"fedora\""
7928 msgstr ""
7929
7930 #. type: textblock
7931 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2637
7932 msgid "Fedora."
7933 msgstr ""
7934
7935 #. type: =item
7936 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2639
7937 msgid "\"gentoo\""
7938 msgstr ""
7939
7940 #. type: textblock
7941 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
7942 msgid "Gentoo."
7943 msgstr ""
7944
7945 #. type: =item
7946 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2643
7947 msgid "\"linuxmint\""
7948 msgstr ""
7949
7950 #. type: textblock
7951 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
7952 msgid "Linux Mint."
7953 msgstr ""
7954
7955 #. type: =item
7956 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
7957 msgid "\"mandriva\""
7958 msgstr ""
7959
7960 #. type: textblock
7961 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
7962 msgid "Mandriva."
7963 msgstr ""
7964
7965 #. type: =item
7966 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
7967 msgid "\"meego\""
7968 msgstr ""
7969
7970 #. type: textblock
7971 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
7972 msgid "MeeGo."
7973 msgstr ""
7974
7975 #. type: =item
7976 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
7977 msgid "\"pardus\""
7978 msgstr ""
7979
7980 #. type: textblock
7981 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
7982 msgid "Pardus."
7983 msgstr ""
7984
7985 #. type: =item
7986 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
7987 msgid "\"redhat-based\""
7988 msgstr ""
7989
7990 #. type: textblock
7991 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
7992 msgid "Some Red Hat-derived distro."
7993 msgstr ""
7994
7995 #. type: =item
7996 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
7997 msgid "\"rhel\""
7998 msgstr ""
7999
8000 #. type: textblock
8001 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
8002 msgid "Red Hat Enterprise Linux."
8003 msgstr ""
8004
8005 #. type: =item
8006 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
8007 msgid "\"scientificlinux\""
8008 msgstr ""
8009
8010 #. type: textblock
8011 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
8012 msgid "Scientific Linux."
8013 msgstr ""
8014
8015 #. type: =item
8016 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
8017 msgid "\"slackware\""
8018 msgstr ""
8019
8020 #. type: textblock
8021 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8022 msgid "Slackware."
8023 msgstr ""
8024
8025 #. type: =item
8026 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8027 msgid "\"ubuntu\""
8028 msgstr ""
8029
8030 #. type: textblock
8031 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8032 msgid "Ubuntu."
8033 msgstr ""
8034
8035 #. type: =item
8036 #: ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1886
8037 #: ../fish/guestfish-actions.pod:2150 ../src/guestfs-actions.pod:2679
8038 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:3163
8039 msgid "\"unknown\""
8040 msgstr ""
8041
8042 #. type: textblock
8043 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8044 msgid "The distro could not be determined."
8045 msgstr ""
8046
8047 #. type: =item
8048 #: ../fish/guestfish-actions.pod:1806 ../fish/guestfish-actions.pod:2142
8049 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:3155
8050 msgid "\"windows\""
8051 msgstr ""
8052
8053 #. type: textblock
8054 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8055 msgid ""
8056 "Windows does not have distributions.  This string is returned if the OS type "
8057 "is Windows."
8058 msgstr ""
8059
8060 #. type: textblock
8061 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1892
8062 #: ../fish/guestfish-actions.pod:2156 ../src/guestfs-actions.pod:2690
8063 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:3169
8064 msgid ""
8065 "Future versions of libguestfs may return other strings here.  The caller "
8066 "should be prepared to handle any string."
8067 msgstr ""
8068
8069 #. type: =head2
8070 #: ../fish/guestfish-actions.pod:1818
8071 msgid "inspect-get-drive-mappings"
8072 msgstr ""
8073
8074 #. type: verbatim
8075 #: ../fish/guestfish-actions.pod:1820
8076 #, no-wrap
8077 msgid ""
8078 " inspect-get-drive-mappings root\n"
8079 "\n"
8080 msgstr ""
8081
8082 #. type: textblock
8083 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2706
8084 msgid ""
8085 "This call is useful for Windows which uses a primitive system of assigning "
8086 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8087 "Windows Registry to find out how disks/partitions are mapped to drive "
8088 "letters, and returns a hash table as in the example below:"
8089 msgstr ""
8090
8091 #. type: verbatim
8092 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2712
8093 #, no-wrap
8094 msgid ""
8095 " C      =>     /dev/vda2\n"
8096 " E      =>     /dev/vdb1\n"
8097 " F      =>     /dev/vdc1\n"
8098 "\n"
8099 msgstr ""
8100
8101 #. type: textblock
8102 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2716
8103 msgid ""
8104 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8105 "and just contains the drive letter, without the customary colon separator "
8106 "character."
8107 msgstr ""
8108
8109 #. type: textblock
8110 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8111 msgid ""
8112 "In future we may support other operating systems that also used drive "
8113 "letters, but the keys for those might not be case insensitive and might be "
8114 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8115 "C<h1> etc."
8116 msgstr ""
8117
8118 #. type: textblock
8119 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2725
8120 msgid ""
8121 "For Windows guests, currently only hard drive mappings are returned.  "
8122 "Removable disks (eg. DVD-ROMs) are ignored."
8123 msgstr ""
8124
8125 #. type: textblock
8126 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8127 msgid ""
8128 "For guests that do not use drive mappings, or if the drive mappings could "
8129 "not be determined, this returns an empty hash table."
8130 msgstr ""
8131
8132 #. type: textblock
8133 #: ../fish/guestfish-actions.pod:1847
8134 msgid ""
8135 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8136 "get-mountpoints>, L</inspect-get-filesystems>."
8137 msgstr ""
8138
8139 #. type: =head2
8140 #: ../fish/guestfish-actions.pod:1851
8141 msgid "inspect-get-filesystems"
8142 msgstr ""
8143
8144 #. type: verbatim
8145 #: ../fish/guestfish-actions.pod:1853
8146 #, no-wrap
8147 msgid ""
8148 " inspect-get-filesystems root\n"
8149 "\n"
8150 msgstr ""
8151
8152 #. type: textblock
8153 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8154 msgid ""
8155 "This returns a list of all the filesystems that we think are associated with "
8156 "this operating system.  This includes the root filesystem, other ordinary "
8157 "filesystems, and non-mounted devices like swap partitions."
8158 msgstr ""
8159
8160 #. type: textblock
8161 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2754
8162 msgid ""
8163 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8164 "to be shared between operating systems."
8165 msgstr ""
8166
8167 #. type: textblock
8168 #: ../fish/guestfish-actions.pod:1863
8169 msgid ""
8170 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8171 "get-mountpoints>."
8172 msgstr ""
8173
8174 #. type: =head2
8175 #: ../fish/guestfish-actions.pod:1866
8176 msgid "inspect-get-format"
8177 msgstr ""
8178
8179 #. type: verbatim
8180 #: ../fish/guestfish-actions.pod:1868
8181 #, no-wrap
8182 msgid ""
8183 " inspect-get-format root\n"
8184 "\n"
8185 msgstr ""
8186
8187 #. type: textblock
8188 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2772
8189 msgid ""
8190 "This returns the format of the inspected operating system.  You can use it "
8191 "to detect install images, live CDs and similar."
8192 msgstr ""
8193
8194 #. type: textblock
8195 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2775
8196 msgid "Currently defined formats are:"
8197 msgstr ""
8198
8199 #. type: =item
8200 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2779
8201 msgid "\"installed\""
8202 msgstr ""
8203
8204 #. type: textblock
8205 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2781
8206 msgid "This is an installed operating system."
8207 msgstr ""
8208
8209 #. type: =item
8210 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2783
8211 msgid "\"installer\""
8212 msgstr ""
8213
8214 #. type: textblock
8215 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8216 msgid ""
8217 "The disk image being inspected is not an installed operating system, but a "
8218 "I<bootable> install disk, live CD, or similar."
8219 msgstr ""
8220
8221 #. type: textblock
8222 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2790
8223 msgid "The format of this disk image is not known."
8224 msgstr ""
8225
8226 #. type: =head2
8227 #: ../fish/guestfish-actions.pod:1897
8228 msgid "inspect-get-hostname"
8229 msgstr ""
8230
8231 #. type: verbatim
8232 #: ../fish/guestfish-actions.pod:1899
8233 #, no-wrap
8234 msgid ""
8235 " inspect-get-hostname root\n"
8236 "\n"
8237 msgstr ""
8238
8239 #. type: textblock
8240 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2810
8241 msgid ""
8242 "This function returns the hostname of the operating system as found by "
8243 "inspection of the guest's configuration files."
8244 msgstr ""
8245
8246 #. type: textblock
8247 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:2813
8248 msgid ""
8249 "If the hostname could not be determined, then the string C<unknown> is "
8250 "returned."
8251 msgstr ""
8252
8253 #. type: =head2
8254 #: ../fish/guestfish-actions.pod:1909
8255 msgid "inspect-get-icon"
8256 msgstr ""
8257
8258 #. type: verbatim
8259 #: ../fish/guestfish-actions.pod:1911
8260 #, no-wrap
8261 msgid ""
8262 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8263 "\n"
8264 msgstr ""
8265
8266 #. type: textblock
8267 #: ../fish/guestfish-actions.pod:1913 ../src/guestfs-actions.pod:2839
8268 msgid ""
8269 "This function returns an icon corresponding to the inspected operating "
8270 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8271 "to PNG if necessary)."
8272 msgstr ""
8273
8274 #. type: textblock
8275 #: ../fish/guestfish-actions.pod:1917 ../src/guestfs-actions.pod:2843
8276 msgid ""
8277 "If it was not possible to get an icon this function returns a zero-length "
8278 "(non-NULL) buffer.  I<Callers must check for this case>."
8279 msgstr ""
8280
8281 #. type: textblock
8282 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:2846
8283 msgid ""
8284 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8285 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8286 "this file will be returned.  You can disable favicons by passing the "
8287 "optional C<favicon> boolean as false (default is true)."
8288 msgstr ""
8289
8290 #. type: textblock
8291 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2852
8292 msgid ""
8293 "If finding the favicon fails, then we look in other places in the guest for "
8294 "a suitable icon."
8295 msgstr ""
8296
8297 #. type: textblock
8298 #: ../fish/guestfish-actions.pod:1929 ../src/guestfs-actions.pod:2855
8299 msgid ""
8300 "If the optional C<highquality> boolean is true then only high quality icons "
8301 "are returned, which means only icons of high resolution with an alpha "
8302 "channel.  The default (false) is to return any icon we can, even if it is of "
8303 "substandard quality."
8304 msgstr ""
8305
8306 #. type: textblock
8307 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2866
8308 msgid ""
8309 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8310 "before you call this, since it needs to read information from the guest "
8311 "filesystem during the call."
8312 msgstr ""
8313
8314 #. type: textblock
8315 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
8316 msgid ""
8317 "B<Security:> The icon data comes from the untrusted guest, and should be "
8318 "treated with caution.  PNG files have been known to contain exploits.  "
8319 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8320 "trying to process or display the icon."
8321 msgstr ""
8322
8323 #. type: textblock
8324 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2880
8325 msgid ""
8326 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8327 "tries to return the largest, highest quality icon available.  The "
8328 "application must scale the icon to the required size."
8329 msgstr ""
8330
8331 #. type: textblock
8332 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2887
8333 msgid ""
8334 "Extracting icons from Windows guests requires the external C<wrestool> "
8335 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8336 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8337 "installed separately."
8338 msgstr ""
8339
8340 #. type: textblock
8341 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8342 msgid ""
8343 "Operating system icons are usually trademarks.  Seek legal advice before "
8344 "using trademarks in applications."
8345 msgstr ""
8346
8347 #. type: =head2
8348 #: ../fish/guestfish-actions.pod:1975
8349 msgid "inspect-get-major-version"
8350 msgstr ""
8351
8352 #. type: verbatim
8353 #: ../fish/guestfish-actions.pod:1977
8354 #, no-wrap
8355 msgid ""
8356 " inspect-get-major-version root\n"
8357 "\n"
8358 msgstr ""
8359
8360 #. type: textblock
8361 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2935
8362 msgid ""
8363 "This returns the major version number of the inspected operating system."
8364 msgstr ""
8365
8366 #. type: textblock
8367 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:2938
8368 msgid ""
8369 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8370 "popular public names used by the operating system.  Notably the operating "
8371 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8372 "1).  You can find out the real versions corresponding to releases of Windows "
8373 "by consulting Wikipedia or MSDN."
8374 msgstr ""
8375
8376 #. type: textblock
8377 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2000
8378 #: ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2962
8379 msgid "If the version could not be determined, then C<0> is returned."
8380 msgstr ""
8381
8382 #. type: =head2
8383 #: ../fish/guestfish-actions.pod:1993
8384 msgid "inspect-get-minor-version"
8385 msgstr ""
8386
8387 #. type: verbatim
8388 #: ../fish/guestfish-actions.pod:1995
8389 #, no-wrap
8390 msgid ""
8391 " inspect-get-minor-version root\n"
8392 "\n"
8393 msgstr ""
8394
8395 #. type: textblock
8396 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:2959
8397 msgid ""
8398 "This returns the minor version number of the inspected operating system."
8399 msgstr ""
8400
8401 #. type: textblock
8402 #: ../fish/guestfish-actions.pod:2002
8403 msgid ""
8404 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8405 "get-major-version>."
8406 msgstr ""
8407
8408 #. type: =head2
8409 #: ../fish/guestfish-actions.pod:2005
8410 msgid "inspect-get-mountpoints"
8411 msgstr ""
8412
8413 #. type: verbatim
8414 #: ../fish/guestfish-actions.pod:2007
8415 #, no-wrap
8416 msgid ""
8417 " inspect-get-mountpoints root\n"
8418 "\n"
8419 msgstr ""
8420
8421 #. type: textblock
8422 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:2977
8423 msgid ""
8424 "This returns a hash of where we think the filesystems associated with this "
8425 "operating system should be mounted.  Callers should note that this is at "
8426 "best an educated guess made by reading configuration files such as C</etc/"
8427 "fstab>.  I<In particular note> that this may return filesystems which are "
8428 "non-existent or not mountable and callers should be prepared to handle or "
8429 "ignore failures if they try to mount them."
8430 msgstr ""
8431
8432 #. type: textblock
8433 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8434 msgid ""
8435 "Each element in the returned hashtable has a key which is the path of the "
8436 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8437 "mounted there (eg. C</dev/sda1>)."
8438 msgstr ""
8439
8440 #. type: textblock
8441 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2991
8442 msgid ""
8443 "Non-mounted devices such as swap devices are I<not> returned in this list."
8444 msgstr ""
8445
8446 #. type: textblock
8447 #: ../fish/guestfish-actions.pod:2026
8448 msgid ""
8449 "For operating systems like Windows which still use drive letters, this call "
8450 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8451 "information about the mapping of drive letters to partitions, see L</inspect-"
8452 "get-drive-mappings>."
8453 msgstr ""
8454
8455 #. type: textblock
8456 #: ../fish/guestfish-actions.pod:2032
8457 msgid ""
8458 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8459 "get-filesystems>."
8460 msgstr ""
8461
8462 #. type: =head2
8463 #: ../fish/guestfish-actions.pod:2035
8464 msgid "inspect-get-package-format"
8465 msgstr ""
8466
8467 #. type: verbatim
8468 #: ../fish/guestfish-actions.pod:2037
8469 #, no-wrap
8470 msgid ""
8471 " inspect-get-package-format root\n"
8472 "\n"
8473 msgstr ""
8474
8475 #. type: textblock
8476 #: ../fish/guestfish-actions.pod:2039
8477 msgid ""
8478 "This function and L</inspect-get-package-management> return the package "
8479 "format and package management tool used by the inspected operating system.  "
8480 "For example for Fedora these functions would return C<rpm> (package format) "
8481 "and C<yum> (package management)."
8482 msgstr ""
8483
8484 #. type: textblock
8485 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3023
8486 msgid ""
8487 "This returns the string C<unknown> if we could not determine the package "
8488 "format I<or> if the operating system does not have a real packaging system "
8489 "(eg. Windows)."
8490 msgstr ""
8491
8492 #. type: textblock
8493 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3027
8494 msgid ""
8495 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8496 "Future versions of libguestfs may return other strings."
8497 msgstr ""
8498
8499 #. type: =head2
8500 #: ../fish/guestfish-actions.pod:2054
8501 msgid "inspect-get-package-management"
8502 msgstr ""
8503
8504 #. type: verbatim
8505 #: ../fish/guestfish-actions.pod:2056
8506 #, no-wrap
8507 msgid ""
8508 " inspect-get-package-management root\n"
8509 "\n"
8510 msgstr ""
8511
8512 #. type: textblock
8513 #: ../fish/guestfish-actions.pod:2058
8514 msgid ""
8515 "L</inspect-get-package-format> and this function return the package format "
8516 "and package management tool used by the inspected operating system.  For "
8517 "example for Fedora these functions would return C<rpm> (package format) and "
8518 "C<yum> (package management)."
8519 msgstr ""
8520
8521 #. type: textblock
8522 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3049
8523 msgid ""
8524 "This returns the string C<unknown> if we could not determine the package "
8525 "management tool I<or> if the operating system does not have a real packaging "
8526 "system (eg. Windows)."
8527 msgstr ""
8528
8529 #. type: textblock
8530 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3053
8531 msgid ""
8532 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8533 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8534 "libguestfs may return other strings."
8535 msgstr ""
8536
8537 #. type: =head2
8538 #: ../fish/guestfish-actions.pod:2075
8539 msgid "inspect-get-product-name"
8540 msgstr ""
8541
8542 #. type: verbatim
8543 #: ../fish/guestfish-actions.pod:2077
8544 #, no-wrap
8545 msgid ""
8546 " inspect-get-product-name root\n"
8547 "\n"
8548 msgstr ""
8549
8550 #. type: textblock
8551 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
8552 msgid ""
8553 "This returns the product name of the inspected operating system.  The "
8554 "product name is generally some freeform string which can be displayed to the "
8555 "user, but should not be parsed by programs."
8556 msgstr ""
8557
8558 #. type: textblock
8559 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3076
8560 msgid ""
8561 "If the product name could not be determined, then the string C<unknown> is "
8562 "returned."
8563 msgstr ""
8564
8565 #. type: =head2
8566 #: ../fish/guestfish-actions.pod:2089
8567 msgid "inspect-get-product-variant"
8568 msgstr ""
8569
8570 #. type: verbatim
8571 #: ../fish/guestfish-actions.pod:2091
8572 #, no-wrap
8573 msgid ""
8574 " inspect-get-product-variant root\n"
8575 "\n"
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3092
8580 msgid "This returns the product variant of the inspected operating system."
8581 msgstr ""
8582
8583 #. type: textblock
8584 #: ../fish/guestfish-actions.pod:2096 ../src/guestfs-actions.pod:3095
8585 msgid ""
8586 "For Windows guests, this returns the contents of the Registry key C<HKLM"
8587 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
8588 "is usually a string such as C<Client> or C<Server> (other values are "
8589 "possible).  This can be used to distinguish consumer and enterprise versions "
8590 "of Windows that have the same version number (for example, Windows 7 and "
8591 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8592 "the latter is C<Server>)."
8593 msgstr ""
8594
8595 #. type: textblock
8596 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3104
8597 msgid ""
8598 "For enterprise Linux guests, in future we intend this to return the product "
8599 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8600 "implemented at present."
8601 msgstr ""
8602
8603 #. type: textblock
8604 #: ../fish/guestfish-actions.pod:2109 ../src/guestfs-actions.pod:3108
8605 msgid ""
8606 "If the product variant could not be determined, then the string C<unknown> "
8607 "is returned."
8608 msgstr ""
8609
8610 #. type: textblock
8611 #: ../fish/guestfish-actions.pod:2112
8612 msgid ""
8613 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8614 "get-product-name>, L</inspect-get-major-version>."
8615 msgstr ""
8616
8617 #. type: =head2
8618 #: ../fish/guestfish-actions.pod:2116
8619 msgid "inspect-get-roots"
8620 msgstr ""
8621
8622 #. type: verbatim
8623 #: ../fish/guestfish-actions.pod:2118
8624 #, no-wrap
8625 msgid ""
8626 " inspect-get-roots\n"
8627 "\n"
8628 msgstr ""
8629
8630 #. type: textblock
8631 #: ../fish/guestfish-actions.pod:2120
8632 msgid ""
8633 "This function is a convenient way to get the list of root devices, as "
8634 "returned from a previous call to L</inspect-os>, but without redoing the "
8635 "whole inspection process."
8636 msgstr ""
8637
8638 #. type: textblock
8639 #: ../fish/guestfish-actions.pod:2124
8640 msgid ""
8641 "This returns an empty list if either no root devices were found or the "
8642 "caller has not called L</inspect-os>."
8643 msgstr ""
8644
8645 #. type: =head2
8646 #: ../fish/guestfish-actions.pod:2129
8647 msgid "inspect-get-type"
8648 msgstr ""
8649
8650 #. type: verbatim
8651 #: ../fish/guestfish-actions.pod:2131
8652 #, no-wrap
8653 msgid ""
8654 " inspect-get-type root\n"
8655 "\n"
8656 msgstr ""
8657
8658 #. type: textblock
8659 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
8660 msgid ""
8661 "This returns the type of the inspected operating system.  Currently defined "
8662 "types are:"
8663 msgstr ""
8664
8665 #. type: =item
8666 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3151
8667 msgid "\"linux\""
8668 msgstr ""
8669
8670 #. type: textblock
8671 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3153
8672 msgid "Any Linux-based operating system."
8673 msgstr ""
8674
8675 #. type: textblock
8676 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3157
8677 msgid "Any Microsoft Windows operating system."
8678 msgstr ""
8679
8680 #. type: =item
8681 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3159
8682 msgid "\"freebsd\""
8683 msgstr ""
8684
8685 #. type: textblock
8686 #: ../fish/guestfish-actions.pod:2148 ../src/guestfs-actions.pod:3161
8687 msgid "FreeBSD."
8688 msgstr ""
8689
8690 #. type: textblock
8691 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3165
8692 msgid "The operating system type could not be determined."
8693 msgstr ""
8694
8695 #. type: =head2
8696 #: ../fish/guestfish-actions.pod:2161
8697 msgid "inspect-get-windows-current-control-set"
8698 msgstr ""
8699
8700 #. type: verbatim
8701 #: ../fish/guestfish-actions.pod:2163
8702 #, no-wrap
8703 msgid ""
8704 " inspect-get-windows-current-control-set root\n"
8705 "\n"
8706 msgstr ""
8707
8708 #. type: textblock
8709 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3185
8710 msgid ""
8711 "This returns the Windows CurrentControlSet of the inspected guest.  The "
8712 "CurrentControlSet is a registry key name such as C<ControlSet001>."
8713 msgstr ""
8714
8715 #. type: textblock
8716 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3188
8717 msgid ""
8718 "This call assumes that the guest is Windows and that the Registry could be "
8719 "examined by inspection.  If this is not the case then an error is returned."
8720 msgstr ""
8721
8722 #. type: =head2
8723 #: ../fish/guestfish-actions.pod:2174
8724 msgid "inspect-get-windows-systemroot"
8725 msgstr ""
8726
8727 #. type: verbatim
8728 #: ../fish/guestfish-actions.pod:2176
8729 #, no-wrap
8730 msgid ""
8731 " inspect-get-windows-systemroot root\n"
8732 "\n"
8733 msgstr ""
8734
8735 #. type: textblock
8736 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3205
8737 msgid ""
8738 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8739 "is a directory path such as C</WINDOWS>."
8740 msgstr ""
8741
8742 #. type: textblock
8743 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3208
8744 msgid ""
8745 "This call assumes that the guest is Windows and that the systemroot could be "
8746 "determined by inspection.  If this is not the case then an error is returned."
8747 msgstr ""
8748
8749 #. type: =head2
8750 #: ../fish/guestfish-actions.pod:2187
8751 msgid "inspect-is-live"
8752 msgstr ""
8753
8754 #. type: verbatim
8755 #: ../fish/guestfish-actions.pod:2189
8756 #, no-wrap
8757 msgid ""
8758 " inspect-is-live root\n"
8759 "\n"
8760 msgstr ""
8761
8762 #. type: textblock
8763 #: ../fish/guestfish-actions.pod:2191
8764 msgid ""
8765 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8766 "then this returns true if a live image was detected on the disk."
8767 msgstr ""
8768
8769 #. type: =head2
8770 #: ../fish/guestfish-actions.pod:2197
8771 msgid "inspect-is-multipart"
8772 msgstr ""
8773
8774 #. type: verbatim
8775 #: ../fish/guestfish-actions.pod:2199
8776 #, no-wrap
8777 msgid ""
8778 " inspect-is-multipart root\n"
8779 "\n"
8780 msgstr ""
8781
8782 #. type: textblock
8783 #: ../fish/guestfish-actions.pod:2201
8784 msgid ""
8785 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8786 "then this returns true if the disk is part of a set."
8787 msgstr ""
8788
8789 #. type: =head2
8790 #: ../fish/guestfish-actions.pod:2207
8791 msgid "inspect-is-netinst"
8792 msgstr ""
8793
8794 #. type: verbatim
8795 #: ../fish/guestfish-actions.pod:2209
8796 #, no-wrap
8797 msgid ""
8798 " inspect-is-netinst root\n"
8799 "\n"
8800 msgstr ""
8801
8802 #. type: textblock
8803 #: ../fish/guestfish-actions.pod:2211
8804 msgid ""
8805 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8806 "then this returns true if the disk is a network installer, ie. not a self-"
8807 "contained install CD but one which is likely to require network access to "
8808 "complete the install."
8809 msgstr ""
8810
8811 #. type: =head2
8812 #: ../fish/guestfish-actions.pod:2219
8813 msgid "inspect-list-applications"
8814 msgstr ""
8815
8816 #. type: verbatim
8817 #: ../fish/guestfish-actions.pod:2221
8818 #, no-wrap
8819 msgid ""
8820 " inspect-list-applications root\n"
8821 "\n"
8822 msgstr ""
8823
8824 #. type: textblock
8825 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:3275
8826 msgid "Return the list of applications installed in the operating system."
8827 msgstr ""
8828
8829 #. type: textblock
8830 #: ../fish/guestfish-actions.pod:2225
8831 msgid ""
8832 "I<Note:> This call works differently from other parts of the inspection "
8833 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
8834 "then mount up the disks, before calling this.  Listing applications is a "
8835 "significantly more difficult operation which requires access to the full "
8836 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
8837 "are just returning data cached in the libguestfs handle, this call actually "
8838 "reads parts of the mounted filesystems during the call."
8839 msgstr ""
8840
8841 #. type: textblock
8842 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3287
8843 msgid ""
8844 "This returns an empty list if the inspection code was not able to determine "
8845 "the list of applications."
8846 msgstr ""
8847
8848 #. type: textblock
8849 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3290
8850 msgid "The application structure contains the following fields:"
8851 msgstr ""
8852
8853 #. type: =item
8854 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
8855 msgid "C<app_name>"
8856 msgstr ""
8857
8858 #. type: textblock
8859 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
8860 msgid ""
8861 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8862 "guests, this is the package name."
8863 msgstr ""
8864
8865 #. type: =item
8866 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
8867 msgid "C<app_display_name>"
8868 msgstr ""
8869
8870 #. type: textblock
8871 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
8872 msgid ""
8873 "The display name of the application, sometimes localized to the install "
8874 "language of the guest operating system."
8875 msgstr ""
8876
8877 #. type: textblock
8878 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
8879 msgid ""
8880 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8881 "to display something can use C<app_name> instead."
8882 msgstr ""
8883
8884 #. type: =item
8885 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
8886 msgid "C<app_epoch>"
8887 msgstr ""
8888
8889 #. type: textblock
8890 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
8891 msgid ""
8892 "For package managers which use epochs, this contains the epoch of the "
8893 "package (an integer).  If unavailable, this is returned as C<0>."
8894 msgstr ""
8895
8896 #. type: =item
8897 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
8898 msgid "C<app_version>"
8899 msgstr ""
8900
8901 #. type: textblock
8902 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
8903 msgid ""
8904 "The version string of the application or package.  If unavailable this is "
8905 "returned as an empty string C<\"\">."
8906 msgstr ""
8907
8908 #. type: =item
8909 #: ../fish/guestfish-actions.pod:2265 ../src/guestfs-actions.pod:3317
8910 msgid "C<app_release>"
8911 msgstr ""
8912
8913 #. type: textblock
8914 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3319
8915 msgid ""
8916 "The release string of the application or package, for package managers that "
8917 "use this.  If unavailable this is returned as an empty string C<\"\">."
8918 msgstr ""
8919
8920 #. type: =item
8921 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
8922 msgid "C<app_install_path>"
8923 msgstr ""
8924
8925 #. type: textblock
8926 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
8927 msgid ""
8928 "The installation path of the application (on operating systems such as "
8929 "Windows which use installation paths).  This path is in the format used by "
8930 "the guest operating system, it is not a libguestfs path."
8931 msgstr ""
8932
8933 #. type: textblock
8934 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
8935 msgid "If unavailable this is returned as an empty string C<\"\">."
8936 msgstr ""
8937
8938 #. type: =item
8939 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
8940 msgid "C<app_trans_path>"
8941 msgstr ""
8942
8943 #. type: textblock
8944 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
8945 msgid ""
8946 "The install path translated into a libguestfs path.  If unavailable this is "
8947 "returned as an empty string C<\"\">."
8948 msgstr ""
8949
8950 #. type: =item
8951 #: ../fish/guestfish-actions.pod:2285 ../src/guestfs-actions.pod:3337
8952 msgid "C<app_publisher>"
8953 msgstr ""
8954
8955 #. type: textblock
8956 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
8957 msgid ""
8958 "The name of the publisher of the application, for package managers that use "
8959 "this.  If unavailable this is returned as an empty string C<\"\">."
8960 msgstr ""
8961
8962 #. type: =item
8963 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
8964 msgid "C<app_url>"
8965 msgstr ""
8966
8967 #. type: textblock
8968 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
8969 msgid ""
8970 "The URL (eg. upstream URL) of the application.  If unavailable this is "
8971 "returned as an empty string C<\"\">."
8972 msgstr ""
8973
8974 #. type: =item
8975 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
8976 msgid "C<app_source_package>"
8977 msgstr ""
8978
8979 #. type: textblock
8980 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
8981 msgid ""
8982 "For packaging systems which support this, the name of the source package.  "
8983 "If unavailable this is returned as an empty string C<\"\">."
8984 msgstr ""
8985
8986 #. type: =item
8987 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
8988 msgid "C<app_summary>"
8989 msgstr ""
8990
8991 #. type: textblock
8992 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
8993 msgid ""
8994 "A short (usually one line) description of the application or package.  If "
8995 "unavailable this is returned as an empty string C<\"\">."
8996 msgstr ""
8997
8998 #. type: =item
8999 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
9000 msgid "C<app_description>"
9001 msgstr ""
9002
9003 #. type: textblock
9004 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
9005 msgid ""
9006 "A longer description of the application or package.  If unavailable this is "
9007 "returned as an empty string C<\"\">."
9008 msgstr ""
9009
9010 #. type: =head2
9011 #: ../fish/guestfish-actions.pod:2315
9012 msgid "inspect-os"
9013 msgstr ""
9014
9015 #. type: verbatim
9016 #: ../fish/guestfish-actions.pod:2317
9017 #, no-wrap
9018 msgid ""
9019 " inspect-os\n"
9020 "\n"
9021 msgstr ""
9022
9023 #. type: textblock
9024 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3378
9025 msgid ""
9026 "This function uses other libguestfs functions and certain heuristics to "
9027 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9028 "for operating systems."
9029 msgstr ""
9030
9031 #. type: textblock
9032 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3382
9033 msgid "The list returned is empty if no operating systems were found."
9034 msgstr ""
9035
9036 #. type: textblock
9037 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3384
9038 msgid ""
9039 "If one operating system was found, then this returns a list with a single "
9040 "element, which is the name of the root filesystem of this operating system.  "
9041 "It is also possible for this function to return a list containing more than "
9042 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9043 "element being the root filesystem of one of the operating systems."
9044 msgstr ""
9045
9046 #. type: textblock
9047 #: ../fish/guestfish-actions.pod:2332
9048 msgid ""
9049 "You can pass the root string(s) returned to other L</inspect-get-*> "
9050 "functions in order to query further information about each operating system, "
9051 "such as the name and version."
9052 msgstr ""
9053
9054 #. type: textblock
9055 #: ../fish/guestfish-actions.pod:2337
9056 msgid ""
9057 "This function uses other libguestfs features such as L</mount-ro> and L</"
9058 "umount-all> in order to mount and unmount filesystems and look at the "
9059 "contents.  This should be called with no disks currently mounted.  The "
9060 "function may also use Augeas, so any existing Augeas handle will be closed."
9061 msgstr ""
9062
9063 #. type: textblock
9064 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3402
9065 msgid ""
9066 "This function cannot decrypt encrypted disks.  The caller must do that first "
9067 "(supplying the necessary keys) if the disk is encrypted."
9068 msgstr ""
9069
9070 #. type: textblock
9071 #: ../fish/guestfish-actions.pod:2349 ../fish/guestfish-actions.pod:2547
9072 #: ../fish/guestfish-actions.pod:2606
9073 msgid "See also L</list-filesystems>."
9074 msgstr ""
9075
9076 #. type: =head2
9077 #: ../fish/guestfish-actions.pod:2351
9078 msgid "is-blockdev"
9079 msgstr ""
9080
9081 #. type: verbatim
9082 #: ../fish/guestfish-actions.pod:2353
9083 #, no-wrap
9084 msgid ""
9085 " is-blockdev path\n"
9086 "\n"
9087 msgstr ""
9088
9089 #. type: textblock
9090 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3422
9091 msgid ""
9092 "This returns C<true> if and only if there is a block device with the given "
9093 "C<path> name."
9094 msgstr ""
9095
9096 #. type: textblock
9097 #: ../fish/guestfish-actions.pod:2358 ../fish/guestfish-actions.pod:2376
9098 #: ../fish/guestfish-actions.pod:2395 ../fish/guestfish-actions.pod:2404
9099 #: ../fish/guestfish-actions.pod:2414 ../fish/guestfish-actions.pod:2448
9100 #: ../fish/guestfish-actions.pod:2457
9101 msgid "See also L</stat>."
9102 msgstr ""
9103
9104 #. type: =head2
9105 #: ../fish/guestfish-actions.pod:2360
9106 msgid "is-busy"
9107 msgstr ""
9108
9109 #. type: verbatim
9110 #: ../fish/guestfish-actions.pod:2362
9111 #, no-wrap
9112 msgid ""
9113 " is-busy\n"
9114 "\n"
9115 msgstr ""
9116
9117 #. type: textblock
9118 #: ../fish/guestfish-actions.pod:2364 ../src/guestfs-actions.pod:3436
9119 msgid ""
9120 "This returns true iff this handle is busy processing a command (in the "
9121 "C<BUSY> state)."
9122 msgstr ""
9123
9124 #. type: =head2
9125 #: ../fish/guestfish-actions.pod:2369
9126 msgid "is-chardev"
9127 msgstr ""
9128
9129 #. type: verbatim
9130 #: ../fish/guestfish-actions.pod:2371
9131 #, no-wrap
9132 msgid ""
9133 " is-chardev path\n"
9134 "\n"
9135 msgstr ""
9136
9137 #. type: textblock
9138 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3451
9139 msgid ""
9140 "This returns C<true> if and only if there is a character device with the "
9141 "given C<path> name."
9142 msgstr ""
9143
9144 #. type: =head2
9145 #: ../fish/guestfish-actions.pod:2378
9146 msgid "is-config"
9147 msgstr ""
9148
9149 #. type: verbatim
9150 #: ../fish/guestfish-actions.pod:2380
9151 #, no-wrap
9152 msgid ""
9153 " is-config\n"
9154 "\n"
9155 msgstr ""
9156
9157 #. type: textblock
9158 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3465
9159 msgid ""
9160 "This returns true iff this handle is being configured (in the C<CONFIG> "
9161 "state)."
9162 msgstr ""
9163
9164 #. type: =head2
9165 #: ../fish/guestfish-actions.pod:2387
9166 msgid "is-dir"
9167 msgstr ""
9168
9169 #. type: verbatim
9170 #: ../fish/guestfish-actions.pod:2389
9171 #, no-wrap
9172 msgid ""
9173 " is-dir path\n"
9174 "\n"
9175 msgstr ""
9176
9177 #. type: textblock
9178 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3480
9179 msgid ""
9180 "This returns C<true> if and only if there is a directory with the given "
9181 "C<path> name.  Note that it returns false for other objects like files."
9182 msgstr ""
9183
9184 #. type: =head2
9185 #: ../fish/guestfish-actions.pod:2397
9186 msgid "is-fifo"
9187 msgstr ""
9188
9189 #. type: verbatim
9190 #: ../fish/guestfish-actions.pod:2399
9191 #, no-wrap
9192 msgid ""
9193 " is-fifo path\n"
9194 "\n"
9195 msgstr ""
9196
9197 #. type: textblock
9198 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3496
9199 msgid ""
9200 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9201 "given C<path> name."
9202 msgstr ""
9203
9204 #. type: =head2
9205 #: ../fish/guestfish-actions.pod:2406
9206 msgid "is-file"
9207 msgstr ""
9208
9209 #. type: verbatim
9210 #: ../fish/guestfish-actions.pod:2408
9211 #, no-wrap
9212 msgid ""
9213 " is-file path\n"
9214 "\n"
9215 msgstr ""
9216
9217 #. type: textblock
9218 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3511
9219 msgid ""
9220 "This returns C<true> if and only if there is a regular file with the given "
9221 "C<path> name.  Note that it returns false for other objects like directories."
9222 msgstr ""
9223
9224 #. type: =head2
9225 #: ../fish/guestfish-actions.pod:2416
9226 msgid "is-launching"
9227 msgstr ""
9228
9229 #. type: verbatim
9230 #: ../fish/guestfish-actions.pod:2418
9231 #, no-wrap
9232 msgid ""
9233 " is-launching\n"
9234 "\n"
9235 msgstr ""
9236
9237 #. type: textblock
9238 #: ../fish/guestfish-actions.pod:2420 ../src/guestfs-actions.pod:3526
9239 msgid ""
9240 "This returns true iff this handle is launching the subprocess (in the "
9241 "C<LAUNCHING> state)."
9242 msgstr ""
9243
9244 #. type: =head2
9245 #: ../fish/guestfish-actions.pod:2425
9246 msgid "is-lv"
9247 msgstr ""
9248
9249 #. type: verbatim
9250 #: ../fish/guestfish-actions.pod:2427
9251 #, no-wrap
9252 msgid ""
9253 " is-lv device\n"
9254 "\n"
9255 msgstr ""
9256
9257 #. type: textblock
9258 #: ../fish/guestfish-actions.pod:2429 ../src/guestfs-actions.pod:3541
9259 msgid ""
9260 "This command tests whether C<device> is a logical volume, and returns true "
9261 "iff this is the case."
9262 msgstr ""
9263
9264 #. type: =head2
9265 #: ../fish/guestfish-actions.pod:2432
9266 msgid "is-ready"
9267 msgstr ""
9268
9269 #. type: verbatim
9270 #: ../fish/guestfish-actions.pod:2434
9271 #, no-wrap
9272 msgid ""
9273 " is-ready\n"
9274 "\n"
9275 msgstr ""
9276
9277 #. type: textblock
9278 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3553
9279 msgid ""
9280 "This returns true iff this handle is ready to accept commands (in the "
9281 "C<READY> state)."
9282 msgstr ""
9283
9284 #. type: =head2
9285 #: ../fish/guestfish-actions.pod:2441
9286 msgid "is-socket"
9287 msgstr ""
9288
9289 #. type: verbatim
9290 #: ../fish/guestfish-actions.pod:2443
9291 #, no-wrap
9292 msgid ""
9293 " is-socket path\n"
9294 "\n"
9295 msgstr ""
9296
9297 #. type: textblock
9298 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3568
9299 msgid ""
9300 "This returns C<true> if and only if there is a Unix domain socket with the "
9301 "given C<path> name."
9302 msgstr ""
9303
9304 #. type: =head2
9305 #: ../fish/guestfish-actions.pod:2450
9306 msgid "is-symlink"
9307 msgstr ""
9308
9309 #. type: verbatim
9310 #: ../fish/guestfish-actions.pod:2452
9311 #, no-wrap
9312 msgid ""
9313 " is-symlink path\n"
9314 "\n"
9315 msgstr ""
9316
9317 #. type: textblock
9318 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3583
9319 msgid ""
9320 "This returns C<true> if and only if there is a symbolic link with the given "
9321 "C<path> name."
9322 msgstr ""
9323
9324 #. type: =head2
9325 #: ../fish/guestfish-actions.pod:2459
9326 msgid "is-zero"
9327 msgstr ""
9328
9329 #. type: verbatim
9330 #: ../fish/guestfish-actions.pod:2461
9331 #, no-wrap
9332 msgid ""
9333 " is-zero path\n"
9334 "\n"
9335 msgstr ""
9336
9337 #. type: textblock
9338 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3598
9339 msgid ""
9340 "This returns true iff the file exists and the file is empty or it contains "
9341 "all zero bytes."
9342 msgstr ""
9343
9344 #. type: =head2
9345 #: ../fish/guestfish-actions.pod:2466
9346 msgid "is-zero-device"
9347 msgstr ""
9348
9349 #. type: verbatim
9350 #: ../fish/guestfish-actions.pod:2468
9351 #, no-wrap
9352 msgid ""
9353 " is-zero-device device\n"
9354 "\n"
9355 msgstr ""
9356
9357 #. type: textblock
9358 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3611
9359 msgid "This returns true iff the device exists and contains all zero bytes."
9360 msgstr ""
9361
9362 #. type: textblock
9363 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3613
9364 msgid "Note that for large devices this can take a long time to run."
9365 msgstr ""
9366
9367 #. type: =head2
9368 #: ../fish/guestfish-actions.pod:2474
9369 msgid "kill-subprocess"
9370 msgstr ""
9371
9372 #. type: verbatim
9373 #: ../fish/guestfish-actions.pod:2476
9374 #, no-wrap
9375 msgid ""
9376 " kill-subprocess\n"
9377 "\n"
9378 msgstr ""
9379
9380 #. type: textblock
9381 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3624
9382 msgid "This kills the qemu subprocess.  You should never need to call this."
9383 msgstr ""
9384
9385 #. type: =head2
9386 #: ../fish/guestfish-actions.pod:2480
9387 msgid "launch"
9388 msgstr ""
9389
9390 #. type: =head2
9391 #: ../fish/guestfish-actions.pod:2482
9392 msgid "run"
9393 msgstr ""
9394
9395 #. type: verbatim
9396 #: ../fish/guestfish-actions.pod:2484
9397 #, no-wrap
9398 msgid ""
9399 " launch\n"
9400 "\n"
9401 msgstr ""
9402
9403 #. type: textblock
9404 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3635
9405 msgid ""
9406 "Internally libguestfs is implemented by running a virtual machine using "
9407 "L<qemu(1)>."
9408 msgstr ""
9409
9410 #. type: textblock
9411 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3638
9412 msgid ""
9413 "You should call this after configuring the handle (eg. adding drives) but "
9414 "before performing any actions."
9415 msgstr ""
9416
9417 #. type: =head2
9418 #: ../fish/guestfish-actions.pod:2492
9419 msgid "lchown"
9420 msgstr ""
9421
9422 #. type: verbatim
9423 #: ../fish/guestfish-actions.pod:2494
9424 #, no-wrap
9425 msgid ""
9426 " lchown owner group path\n"
9427 "\n"
9428 msgstr ""
9429
9430 #. type: textblock
9431 #: ../fish/guestfish-actions.pod:2496
9432 msgid ""
9433 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
9434 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9435 "target."
9436 msgstr ""
9437
9438 #. type: =head2
9439 #: ../fish/guestfish-actions.pod:2504
9440 msgid "lgetxattr"
9441 msgstr ""
9442
9443 #. type: verbatim
9444 #: ../fish/guestfish-actions.pod:2506
9445 #, no-wrap
9446 msgid ""
9447 " lgetxattr path name\n"
9448 "\n"
9449 msgstr ""
9450
9451 #. type: textblock
9452 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3678
9453 msgid ""
9454 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
9455 "is a symlink, then this call returns an extended attribute from the symlink."
9456 msgstr ""
9457
9458 #. type: textblock
9459 #: ../fish/guestfish-actions.pod:2522
9460 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
9461 msgstr ""
9462
9463 #. type: =head2
9464 #: ../fish/guestfish-actions.pod:2524
9465 msgid "lgetxattrs"
9466 msgstr ""
9467
9468 #. type: verbatim
9469 #: ../fish/guestfish-actions.pod:2526
9470 #, no-wrap
9471 msgid ""
9472 " lgetxattrs path\n"
9473 "\n"
9474 msgstr ""
9475
9476 #. type: textblock
9477 #: ../fish/guestfish-actions.pod:2528
9478 msgid ""
9479 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
9480 "it returns the extended attributes of the link itself."
9481 msgstr ""
9482
9483 #. type: =head2
9484 #: ../fish/guestfish-actions.pod:2532
9485 msgid "list-9p"
9486 msgstr ""
9487
9488 #. type: verbatim
9489 #: ../fish/guestfish-actions.pod:2534
9490 #, no-wrap
9491 msgid ""
9492 " list-9p\n"
9493 "\n"
9494 msgstr ""
9495
9496 #. type: textblock
9497 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3721
9498 msgid ""
9499 "List all 9p filesystems attached to the guest.  A list of mount tags is "
9500 "returned."
9501 msgstr ""
9502
9503 #. type: =head2
9504 #: ../fish/guestfish-actions.pod:2539
9505 msgid "list-devices"
9506 msgstr ""
9507
9508 #. type: verbatim
9509 #: ../fish/guestfish-actions.pod:2541
9510 #, no-wrap
9511 msgid ""
9512 " list-devices\n"
9513 "\n"
9514 msgstr ""
9515
9516 #. type: textblock
9517 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3735
9518 msgid "List all the block devices."
9519 msgstr ""
9520
9521 #. type: textblock
9522 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3737
9523 msgid "The full block device names are returned, eg. C</dev/sda>."
9524 msgstr ""
9525
9526 #. type: =head2
9527 #: ../fish/guestfish-actions.pod:2549
9528 msgid "list-dm-devices"
9529 msgstr ""
9530
9531 #. type: verbatim
9532 #: ../fish/guestfish-actions.pod:2551
9533 #, no-wrap
9534 msgid ""
9535 " list-dm-devices\n"
9536 "\n"
9537 msgstr ""
9538
9539 #. type: textblock
9540 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3752
9541 msgid "List all device mapper devices."
9542 msgstr ""
9543
9544 #. type: textblock
9545 #: ../fish/guestfish-actions.pod:2555
9546 msgid ""
9547 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9548 "previous call to L</luks-open>."
9549 msgstr ""
9550
9551 #. type: textblock
9552 #: ../fish/guestfish-actions.pod:2558
9553 msgid ""
9554 "Device mapper devices which correspond to logical volumes are I<not> "
9555 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9556 msgstr ""
9557
9558 #. type: =head2
9559 #: ../fish/guestfish-actions.pod:2562
9560 msgid "list-filesystems"
9561 msgstr ""
9562
9563 #. type: verbatim
9564 #: ../fish/guestfish-actions.pod:2564
9565 #, no-wrap
9566 msgid ""
9567 " list-filesystems\n"
9568 "\n"
9569 msgstr ""
9570
9571 #. type: textblock
9572 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3772
9573 msgid ""
9574 "This inspection command looks for filesystems on partitions, block devices "
9575 "and logical volumes, returning a list of devices containing filesystems and "
9576 "their type."
9577 msgstr ""
9578
9579 #. type: textblock
9580 #: ../fish/guestfish-actions.pod:2570 ../src/guestfs-actions.pod:3776
9581 msgid ""
9582 "The return value is a hash, where the keys are the devices containing "
9583 "filesystems, and the values are the filesystem types.  For example:"
9584 msgstr ""
9585
9586 #. type: verbatim
9587 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
9588 #, no-wrap
9589 msgid ""
9590 " \"/dev/sda1\" => \"ntfs\"\n"
9591 " \"/dev/sda2\" => \"ext2\"\n"
9592 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9593 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9594 "\n"
9595 msgstr ""
9596
9597 #. type: textblock
9598 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3785
9599 msgid ""
9600 "The value can have the special value \"unknown\", meaning the content of the "
9601 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9602 msgstr ""
9603
9604 #. type: textblock
9605 #: ../fish/guestfish-actions.pod:2583
9606 msgid ""
9607 "This command runs other libguestfs commands, which might include L</mount> "
9608 "and L</umount>, and therefore you should use this soon after launch and only "
9609 "when nothing is mounted."
9610 msgstr ""
9611
9612 #. type: textblock
9613 #: ../fish/guestfish-actions.pod:2587
9614 msgid ""
9615 "Not all of the filesystems returned will be mountable.  In particular, swap "
9616 "partitions are returned in the list.  Also this command does not check that "
9617 "each filesystem found is valid and mountable, and some filesystems might be "
9618 "mountable but require special options.  Filesystems may not all belong to a "
9619 "single logical operating system (use L</inspect-os> to look for OSes)."
9620 msgstr ""
9621
9622 #. type: =head2
9623 #: ../fish/guestfish-actions.pod:2595
9624 msgid "list-partitions"
9625 msgstr ""
9626
9627 #. type: verbatim
9628 #: ../fish/guestfish-actions.pod:2597
9629 #, no-wrap
9630 msgid ""
9631 " list-partitions\n"
9632 "\n"
9633 msgstr ""
9634
9635 #. type: textblock
9636 #: ../fish/guestfish-actions.pod:2599 ../src/guestfs-actions.pod:3814
9637 msgid "List all the partitions detected on all block devices."
9638 msgstr ""
9639
9640 #. type: textblock
9641 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3816
9642 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9643 msgstr ""
9644
9645 #. type: textblock
9646 #: ../fish/guestfish-actions.pod:2603
9647 msgid ""
9648 "This does not return logical volumes.  For that you will need to call L</"
9649 "lvs>."
9650 msgstr ""
9651
9652 #. type: =head2
9653 #: ../fish/guestfish-actions.pod:2608
9654 msgid "ll"
9655 msgstr ""
9656
9657 #. type: verbatim
9658 #: ../fish/guestfish-actions.pod:2610
9659 #, no-wrap
9660 msgid ""
9661 " ll directory\n"
9662 "\n"
9663 msgstr ""
9664
9665 #. type: textblock
9666 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3835
9667 msgid ""
9668 "List the files in C<directory> (relative to the root directory, there is no "
9669 "cwd) in the format of 'ls -la'."
9670 msgstr ""
9671
9672 #. type: textblock
9673 #: ../fish/guestfish-actions.pod:2615 ../src/guestfs-actions.pod:3838
9674 msgid ""
9675 "This command is mostly useful for interactive sessions.  It is I<not> "
9676 "intended that you try to parse the output string."
9677 msgstr ""
9678
9679 #. type: =head2
9680 #: ../fish/guestfish-actions.pod:2618
9681 msgid "ln"
9682 msgstr ""
9683
9684 #. type: verbatim
9685 #: ../fish/guestfish-actions.pod:2620
9686 #, no-wrap
9687 msgid ""
9688 " ln target linkname\n"
9689 "\n"
9690 msgstr ""
9691
9692 #. type: textblock
9693 #: ../fish/guestfish-actions.pod:2622 ../src/guestfs-actions.pod:3853
9694 msgid "This command creates a hard link using the C<ln> command."
9695 msgstr ""
9696
9697 #. type: =head2
9698 #: ../fish/guestfish-actions.pod:2624
9699 msgid "ln-f"
9700 msgstr ""
9701
9702 #. type: verbatim
9703 #: ../fish/guestfish-actions.pod:2626
9704 #, no-wrap
9705 msgid ""
9706 " ln-f target linkname\n"
9707 "\n"
9708 msgstr ""
9709
9710 #. type: textblock
9711 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3866
9712 msgid ""
9713 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
9714 "option removes the link (C<linkname>) if it exists already."
9715 msgstr ""
9716
9717 #. type: =head2
9718 #: ../fish/guestfish-actions.pod:2631
9719 msgid "ln-s"
9720 msgstr ""
9721
9722 #. type: verbatim
9723 #: ../fish/guestfish-actions.pod:2633
9724 #, no-wrap
9725 msgid ""
9726 " ln-s target linkname\n"
9727 "\n"
9728 msgstr ""
9729
9730 #. type: textblock
9731 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:3880
9732 msgid "This command creates a symbolic link using the C<ln -s> command."
9733 msgstr ""
9734
9735 #. type: =head2
9736 #: ../fish/guestfish-actions.pod:2637
9737 msgid "ln-sf"
9738 msgstr ""
9739
9740 #. type: verbatim
9741 #: ../fish/guestfish-actions.pod:2639
9742 #, no-wrap
9743 msgid ""
9744 " ln-sf target linkname\n"
9745 "\n"
9746 msgstr ""
9747
9748 #. type: textblock
9749 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3893
9750 msgid ""
9751 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
9752 "option removes the link (C<linkname>) if it exists already."
9753 msgstr ""
9754
9755 #. type: =head2
9756 #: ../fish/guestfish-actions.pod:2644
9757 msgid "lremovexattr"
9758 msgstr ""
9759
9760 #. type: verbatim
9761 #: ../fish/guestfish-actions.pod:2646
9762 #, no-wrap
9763 msgid ""
9764 " lremovexattr xattr path\n"
9765 "\n"
9766 msgstr ""
9767
9768 #. type: textblock
9769 #: ../fish/guestfish-actions.pod:2648
9770 msgid ""
9771 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
9772 "it removes an extended attribute of the link itself."
9773 msgstr ""
9774
9775 #. type: =head2
9776 #: ../fish/guestfish-actions.pod:2652
9777 msgid "ls"
9778 msgstr ""
9779
9780 #. type: verbatim
9781 #: ../fish/guestfish-actions.pod:2654
9782 #, no-wrap
9783 msgid ""
9784 " ls directory\n"
9785 "\n"
9786 msgstr ""
9787
9788 #. type: textblock
9789 #: ../fish/guestfish-actions.pod:2656 ../src/guestfs-actions.pod:3921
9790 msgid ""
9791 "List the files in C<directory> (relative to the root directory, there is no "
9792 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
9793 msgstr ""
9794
9795 #. type: textblock
9796 #: ../fish/guestfish-actions.pod:2660
9797 msgid ""
9798 "This command is mostly useful for interactive sessions.  Programs should "
9799 "probably use L</readdir> instead."
9800 msgstr ""
9801
9802 #. type: =head2
9803 #: ../fish/guestfish-actions.pod:2663
9804 msgid "lsetxattr"
9805 msgstr ""
9806
9807 #. type: verbatim
9808 #: ../fish/guestfish-actions.pod:2665
9809 #, no-wrap
9810 msgid ""
9811 " lsetxattr xattr val vallen path\n"
9812 "\n"
9813 msgstr ""
9814
9815 #. type: textblock
9816 #: ../fish/guestfish-actions.pod:2667
9817 msgid ""
9818 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
9819 "sets an extended attribute of the link itself."
9820 msgstr ""
9821
9822 #. type: =head2
9823 #: ../fish/guestfish-actions.pod:2671
9824 msgid "lstat"
9825 msgstr ""
9826
9827 #. type: verbatim
9828 #: ../fish/guestfish-actions.pod:2673
9829 #, no-wrap
9830 msgid ""
9831 " lstat path\n"
9832 "\n"
9833 msgstr ""
9834
9835 #. type: textblock
9836 #: ../fish/guestfish-actions.pod:2675 ../fish/guestfish-actions.pod:4483
9837 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:6736
9838 msgid "Returns file information for the given C<path>."
9839 msgstr ""
9840
9841 #. type: textblock
9842 #: ../fish/guestfish-actions.pod:2677
9843 msgid ""
9844 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
9845 "the link is stat-ed, not the file it refers to."
9846 msgstr ""
9847
9848 #. type: textblock
9849 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3963
9850 msgid "This is the same as the C<lstat(2)> system call."
9851 msgstr ""
9852
9853 #. type: =head2
9854 #: ../fish/guestfish-actions.pod:2683
9855 msgid "lstatlist"
9856 msgstr ""
9857
9858 #. type: verbatim
9859 #: ../fish/guestfish-actions.pod:2685
9860 #, no-wrap
9861 msgid ""
9862 " lstatlist path 'names ...'\n"
9863 "\n"
9864 msgstr ""
9865
9866 #. type: textblock
9867 #: ../fish/guestfish-actions.pod:2687
9868 msgid ""
9869 "This call allows you to perform the L</lstat> operation on multiple files, "
9870 "where all files are in the directory C<path>.  C<names> is the list of files "
9871 "from this directory."
9872 msgstr ""
9873
9874 #. type: textblock
9875 #: ../fish/guestfish-actions.pod:2691 ../src/guestfs-actions.pod:3982
9876 msgid ""
9877 "On return you get a list of stat structs, with a one-to-one correspondence "
9878 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9879 "then the C<ino> field of that structure is set to C<-1>."
9880 msgstr ""
9881
9882 #. type: textblock
9883 #: ../fish/guestfish-actions.pod:2696
9884 msgid ""
9885 "This call is intended for programs that want to efficiently list a directory "
9886 "contents without making many round-trips.  See also L</lxattrlist> for a "
9887 "similarly efficient call for getting extended attributes.  Very long "
9888 "directory listings might cause the protocol message size to be exceeded, "
9889 "causing this call to fail.  The caller must split up such requests into "
9890 "smaller groups of names."
9891 msgstr ""
9892
9893 #. type: =head2
9894 #: ../fish/guestfish-actions.pod:2704
9895 msgid "luks-add-key"
9896 msgstr ""
9897
9898 #. type: verbatim
9899 #: ../fish/guestfish-actions.pod:2706
9900 #, no-wrap
9901 msgid ""
9902 " luks-add-key device keyslot\n"
9903 "\n"
9904 msgstr ""
9905
9906 #. type: textblock
9907 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4010
9908 msgid ""
9909 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9910 "existing key, and is used to access the device.  C<newkey> is the new key to "
9911 "add.  C<keyslot> is the key slot that will be replaced."
9912 msgstr ""
9913
9914 #. type: textblock
9915 #: ../fish/guestfish-actions.pod:2713
9916 msgid ""
9917 "Note that if C<keyslot> already contains a key, then this command will "
9918 "fail.  You have to use L</luks-kill-slot> first to remove that key."
9919 msgstr ""
9920
9921 #. type: textblock
9922 #: ../fish/guestfish-actions.pod:2717 ../fish/guestfish-actions.pod:2739
9923 #: ../fish/guestfish-actions.pod:2752 ../fish/guestfish-actions.pod:2766
9924 #: ../fish/guestfish-actions.pod:2792 ../fish/guestfish-actions.pod:2802
9925 msgid ""
9926 "This command has one or more key or passphrase parameters.  Guestfish will "
9927 "prompt for these separately."
9928 msgstr ""
9929
9930 #. type: =head2
9931 #: ../fish/guestfish-actions.pod:2720
9932 msgid "luks-close"
9933 msgstr ""
9934
9935 #. type: verbatim
9936 #: ../fish/guestfish-actions.pod:2722
9937 #, no-wrap
9938 msgid ""
9939 " luks-close device\n"
9940 "\n"
9941 msgstr ""
9942
9943 #. type: textblock
9944 #: ../fish/guestfish-actions.pod:2724
9945 msgid ""
9946 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
9947 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
9948 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
9949 "block device."
9950 msgstr ""
9951
9952 #. type: =head2
9953 #: ../fish/guestfish-actions.pod:2730
9954 msgid "luks-format"
9955 msgstr ""
9956
9957 #. type: verbatim
9958 #: ../fish/guestfish-actions.pod:2732
9959 #, no-wrap
9960 msgid ""
9961 " luks-format device keyslot\n"
9962 "\n"
9963 msgstr ""
9964
9965 #. type: textblock
9966 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4051
9967 msgid ""
9968 "This command erases existing data on C<device> and formats the device as a "
9969 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9970 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9971 msgstr ""
9972
9973 #. type: textblock
9974 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:2755
9975 #: ../fish/guestfish-actions.pod:2842 ../fish/guestfish-actions.pod:3503
9976 #: ../fish/guestfish-actions.pod:4029 ../fish/guestfish-actions.pod:4354
9977 #: ../fish/guestfish-actions.pod:4377 ../fish/guestfish-actions.pod:4399
9978 #: ../fish/guestfish-actions.pod:5145 ../src/guestfs-actions.pod:4058
9979 #: ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4224
9980 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:6115
9981 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6573
9982 #: ../src/guestfs-actions.pod:6606 ../src/guestfs-actions.pod:7812
9983 msgid ""
9984 "B<This command is dangerous.  Without careful use you can easily destroy all "
9985 "your data>."
9986 msgstr ""
9987
9988 #. type: =head2
9989 #: ../fish/guestfish-actions.pod:2745
9990 msgid "luks-format-cipher"
9991 msgstr ""
9992
9993 #. type: verbatim
9994 #: ../fish/guestfish-actions.pod:2747
9995 #, no-wrap
9996 msgid ""
9997 " luks-format-cipher device keyslot cipher\n"
9998 "\n"
9999 msgstr ""
10000
10001 #. type: textblock
10002 #: ../fish/guestfish-actions.pod:2749
10003 msgid ""
10004 "This command is the same as L</luks-format> but it also allows you to set "
10005 "the C<cipher> used."
10006 msgstr ""
10007
10008 #. type: =head2
10009 #: ../fish/guestfish-actions.pod:2758
10010 msgid "luks-kill-slot"
10011 msgstr ""
10012
10013 #. type: verbatim
10014 #: ../fish/guestfish-actions.pod:2760
10015 #, no-wrap
10016 msgid ""
10017 " luks-kill-slot device keyslot\n"
10018 "\n"
10019 msgstr ""
10020
10021 #. type: textblock
10022 #: ../fish/guestfish-actions.pod:2762 ../src/guestfs-actions.pod:4098
10023 msgid ""
10024 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10025 "device C<device>.  C<key> must be one of the I<other> keys."
10026 msgstr ""
10027
10028 #. type: =head2
10029 #: ../fish/guestfish-actions.pod:2769
10030 msgid "luks-open"
10031 msgstr ""
10032
10033 #. type: verbatim
10034 #: ../fish/guestfish-actions.pod:2771
10035 #, no-wrap
10036 msgid ""
10037 " luks-open device mapname\n"
10038 "\n"
10039 msgstr ""
10040
10041 #. type: textblock
10042 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10043 msgid ""
10044 "This command opens a block device which has been encrypted according to the "
10045 "Linux Unified Key Setup (LUKS) standard."
10046 msgstr ""
10047
10048 #. type: textblock
10049 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10050 msgid "C<device> is the encrypted block device or partition."
10051 msgstr ""
10052
10053 #. type: textblock
10054 #: ../fish/guestfish-actions.pod:2778 ../src/guestfs-actions.pod:4123
10055 msgid ""
10056 "The caller must supply one of the keys associated with the LUKS block "
10057 "device, in the C<key> parameter."
10058 msgstr ""
10059
10060 #. type: textblock
10061 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4126
10062 msgid ""
10063 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10064 "writes to this block device are decrypted from and encrypted to the "
10065 "underlying C<device> respectively."
10066 msgstr ""
10067
10068 #. type: textblock
10069 #: ../fish/guestfish-actions.pod:2785
10070 msgid ""
10071 "If this block device contains LVM volume groups, then calling L</vgscan> "
10072 "followed by L</vg-activate-all> will make them visible."
10073 msgstr ""
10074
10075 #. type: textblock
10076 #: ../fish/guestfish-actions.pod:2789
10077 msgid "Use L</list-dm-devices> to list all device mapper devices."
10078 msgstr ""
10079
10080 #. type: =head2
10081 #: ../fish/guestfish-actions.pod:2795
10082 msgid "luks-open-ro"
10083 msgstr ""
10084
10085 #. type: verbatim
10086 #: ../fish/guestfish-actions.pod:2797
10087 #, no-wrap
10088 msgid ""
10089 " luks-open-ro device mapname\n"
10090 "\n"
10091 msgstr ""
10092
10093 #. type: textblock
10094 #: ../fish/guestfish-actions.pod:2799
10095 msgid ""
10096 "This is the same as L</luks-open> except that a read-only mapping is created."
10097 msgstr ""
10098
10099 #. type: =head2
10100 #: ../fish/guestfish-actions.pod:2805
10101 msgid "lvcreate"
10102 msgstr ""
10103
10104 #. type: verbatim
10105 #: ../fish/guestfish-actions.pod:2807
10106 #, no-wrap
10107 msgid ""
10108 " lvcreate logvol volgroup mbytes\n"
10109 "\n"
10110 msgstr ""
10111
10112 #. type: textblock
10113 #: ../fish/guestfish-actions.pod:2809 ../src/guestfs-actions.pod:4172
10114 msgid ""
10115 "This creates an LVM logical volume called C<logvol> on the volume group "
10116 "C<volgroup>, with C<size> megabytes."
10117 msgstr ""
10118
10119 #. type: =head2
10120 #: ../fish/guestfish-actions.pod:2812
10121 msgid "lvm-canonical-lv-name"
10122 msgstr ""
10123
10124 #. type: verbatim
10125 #: ../fish/guestfish-actions.pod:2814
10126 #, no-wrap
10127 msgid ""
10128 " lvm-canonical-lv-name lvname\n"
10129 "\n"
10130 msgstr ""
10131
10132 #. type: textblock
10133 #: ../fish/guestfish-actions.pod:2816 ../src/guestfs-actions.pod:4185
10134 msgid ""
10135 "This converts alternative naming schemes for LVs that you might find to the "
10136 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10137 "LV>."
10138 msgstr ""
10139
10140 #. type: textblock
10141 #: ../fish/guestfish-actions.pod:2820 ../src/guestfs-actions.pod:4189
10142 msgid ""
10143 "This command returns an error if the C<lvname> parameter does not refer to a "
10144 "logical volume."
10145 msgstr ""
10146
10147 #. type: textblock
10148 #: ../fish/guestfish-actions.pod:2823
10149 msgid "See also L</is-lv>."
10150 msgstr ""
10151
10152 #. type: =head2
10153 #: ../fish/guestfish-actions.pod:2825
10154 msgid "lvm-clear-filter"
10155 msgstr ""
10156
10157 #. type: verbatim
10158 #: ../fish/guestfish-actions.pod:2827
10159 #, no-wrap
10160 msgid ""
10161 " lvm-clear-filter\n"
10162 "\n"
10163 msgstr ""
10164
10165 #. type: textblock
10166 #: ../fish/guestfish-actions.pod:2829
10167 msgid ""
10168 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10169 "block device."
10170 msgstr ""
10171
10172 #. type: textblock
10173 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2863
10174 #: ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4249
10175 msgid ""
10176 "This command also clears the LVM cache and performs a volume group scan."
10177 msgstr ""
10178
10179 #. type: =head2
10180 #: ../fish/guestfish-actions.pod:2835
10181 msgid "lvm-remove-all"
10182 msgstr ""
10183
10184 #. type: verbatim
10185 #: ../fish/guestfish-actions.pod:2837
10186 #, no-wrap
10187 msgid ""
10188 " lvm-remove-all\n"
10189 "\n"
10190 msgstr ""
10191
10192 #. type: textblock
10193 #: ../fish/guestfish-actions.pod:2839 ../src/guestfs-actions.pod:4219
10194 msgid ""
10195 "This command removes all LVM logical volumes, volume groups and physical "
10196 "volumes."
10197 msgstr ""
10198
10199 #. type: =head2
10200 #: ../fish/guestfish-actions.pod:2845
10201 msgid "lvm-set-filter"
10202 msgstr ""
10203
10204 #. type: verbatim
10205 #: ../fish/guestfish-actions.pod:2847
10206 #, no-wrap
10207 msgid ""
10208 " lvm-set-filter 'devices ...'\n"
10209 "\n"
10210 msgstr ""
10211
10212 #. type: textblock
10213 #: ../fish/guestfish-actions.pod:2849 ../src/guestfs-actions.pod:4235
10214 msgid ""
10215 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10216 "block devices in the list C<devices>, and will ignore all other attached "
10217 "block devices."
10218 msgstr ""
10219
10220 #. type: textblock
10221 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4239
10222 msgid ""
10223 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10224 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10225 "there are two types of duplication possible: either cloned PVs/VGs which "
10226 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10227 "same name.  In normal operation you cannot create this situation, but you "
10228 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10229 "inside the LVM metadata."
10230 msgstr ""
10231
10232 #. type: textblock
10233 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4252
10234 msgid "You can filter whole block devices or individual partitions."
10235 msgstr ""
10236
10237 #. type: textblock
10238 #: ../fish/guestfish-actions.pod:2868 ../src/guestfs-actions.pod:4254
10239 msgid ""
10240 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10241 "filesystem), even if you are not filtering out that VG."
10242 msgstr ""
10243
10244 #. type: =head2
10245 #: ../fish/guestfish-actions.pod:2872
10246 msgid "lvremove"
10247 msgstr ""
10248
10249 #. type: verbatim
10250 #: ../fish/guestfish-actions.pod:2874
10251 #, no-wrap
10252 msgid ""
10253 " lvremove device\n"
10254 "\n"
10255 msgstr ""
10256
10257 #. type: textblock
10258 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4268
10259 msgid ""
10260 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10261 "LV, such as C</dev/VG/LV>."
10262 msgstr ""
10263
10264 #. type: textblock
10265 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4271
10266 msgid ""
10267 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10268 "dev/VG>."
10269 msgstr ""
10270
10271 #. type: =head2
10272 #: ../fish/guestfish-actions.pod:2882
10273 msgid "lvrename"
10274 msgstr ""
10275
10276 #. type: verbatim
10277 #: ../fish/guestfish-actions.pod:2884
10278 #, no-wrap
10279 msgid ""
10280 " lvrename logvol newlogvol\n"
10281 "\n"
10282 msgstr ""
10283
10284 #. type: textblock
10285 #: ../fish/guestfish-actions.pod:2886 ../src/guestfs-actions.pod:4285
10286 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10287 msgstr ""
10288
10289 #. type: =head2
10290 #: ../fish/guestfish-actions.pod:2888
10291 msgid "lvresize"
10292 msgstr ""
10293
10294 #. type: verbatim
10295 #: ../fish/guestfish-actions.pod:2890
10296 #, no-wrap
10297 msgid ""
10298 " lvresize device mbytes\n"
10299 "\n"
10300 msgstr ""
10301
10302 #. type: textblock
10303 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4298
10304 msgid ""
10305 "This resizes (expands or shrinks) an existing LVM logical volume to "
10306 "C<mbytes>.  When reducing, data in the reduced part is lost."
10307 msgstr ""
10308
10309 #. type: =head2
10310 #: ../fish/guestfish-actions.pod:2896
10311 msgid "lvresize-free"
10312 msgstr ""
10313
10314 #. type: verbatim
10315 #: ../fish/guestfish-actions.pod:2898
10316 #, no-wrap
10317 msgid ""
10318 " lvresize-free lv percent\n"
10319 "\n"
10320 msgstr ""
10321
10322 #. type: textblock
10323 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4313
10324 msgid ""
10325 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10326 "remaining free space in the volume group.  Commonly you would call this with "
10327 "pc = 100 which expands the logical volume as much as possible, using all "
10328 "remaining free space in the volume group."
10329 msgstr ""
10330
10331 #. type: =head2
10332 #: ../fish/guestfish-actions.pod:2906
10333 msgid "lvs"
10334 msgstr ""
10335
10336 #. type: verbatim
10337 #: ../fish/guestfish-actions.pod:2908
10338 #, no-wrap
10339 msgid ""
10340 " lvs\n"
10341 "\n"
10342 msgstr ""
10343
10344 #. type: textblock
10345 #: ../fish/guestfish-actions.pod:2910 ../src/guestfs-actions.pod:4328
10346 msgid ""
10347 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10348 "(8)> command."
10349 msgstr ""
10350
10351 #. type: textblock
10352 #: ../fish/guestfish-actions.pod:2913 ../src/guestfs-actions.pod:4331
10353 msgid ""
10354 "This returns a list of the logical volume device names (eg. C</dev/"
10355 "VolGroup00/LogVol00>)."
10356 msgstr ""
10357
10358 #. type: textblock
10359 #: ../fish/guestfish-actions.pod:2916
10360 msgid "See also L</lvs-full>, L</list-filesystems>."
10361 msgstr ""
10362
10363 #. type: =head2
10364 #: ../fish/guestfish-actions.pod:2918
10365 msgid "lvs-full"
10366 msgstr ""
10367
10368 #. type: verbatim
10369 #: ../fish/guestfish-actions.pod:2920
10370 #, no-wrap
10371 msgid ""
10372 " lvs-full\n"
10373 "\n"
10374 msgstr ""
10375
10376 #. type: textblock
10377 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4347
10378 msgid ""
10379 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10380 "(8)> command.  The \"full\" version includes all fields."
10381 msgstr ""
10382
10383 #. type: =head2
10384 #: ../fish/guestfish-actions.pod:2925
10385 msgid "lvuuid"
10386 msgstr ""
10387
10388 #. type: verbatim
10389 #: ../fish/guestfish-actions.pod:2927
10390 #, no-wrap
10391 msgid ""
10392 " lvuuid device\n"
10393 "\n"
10394 msgstr ""
10395
10396 #. type: textblock
10397 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4362
10398 msgid "This command returns the UUID of the LVM LV C<device>."
10399 msgstr ""
10400
10401 #. type: =head2
10402 #: ../fish/guestfish-actions.pod:2931
10403 msgid "lxattrlist"
10404 msgstr ""
10405
10406 #. type: verbatim
10407 #: ../fish/guestfish-actions.pod:2933
10408 #, no-wrap
10409 msgid ""
10410 " lxattrlist path 'names ...'\n"
10411 "\n"
10412 msgstr ""
10413
10414 #. type: textblock
10415 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4376
10416 msgid ""
10417 "This call allows you to get the extended attributes of multiple files, where "
10418 "all files are in the directory C<path>.  C<names> is the list of files from "
10419 "this directory."
10420 msgstr ""
10421
10422 #. type: textblock
10423 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4380
10424 msgid ""
10425 "On return you get a flat list of xattr structs which must be interpreted "
10426 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10427 "C<attrval> in this struct is zero-length to indicate there was an error "
10428 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10429 "number (the number of following attributes for this file, which could be C<"
10430 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10431 "for the first named file.  This repeats for the second and subsequent files."
10432 msgstr ""
10433
10434 #. type: textblock
10435 #: ../fish/guestfish-actions.pod:2949
10436 msgid ""
10437 "This call is intended for programs that want to efficiently list a directory "
10438 "contents without making many round-trips.  See also L</lstatlist> for a "
10439 "similarly efficient call for getting standard stats.  Very long directory "
10440 "listings might cause the protocol message size to be exceeded, causing this "
10441 "call to fail.  The caller must split up such requests into smaller groups of "
10442 "names."
10443 msgstr ""
10444
10445 #. type: =head2
10446 #: ../fish/guestfish-actions.pod:2957
10447 msgid "mkdir"
10448 msgstr ""
10449
10450 #. type: verbatim
10451 #: ../fish/guestfish-actions.pod:2959
10452 #, no-wrap
10453 msgid ""
10454 " mkdir path\n"
10455 "\n"
10456 msgstr ""
10457
10458 #. type: textblock
10459 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4410
10460 msgid "Create a directory named C<path>."
10461 msgstr ""
10462
10463 #. type: =head2
10464 #: ../fish/guestfish-actions.pod:2963
10465 msgid "mkdir-mode"
10466 msgstr ""
10467
10468 #. type: verbatim
10469 #: ../fish/guestfish-actions.pod:2965
10470 #, no-wrap
10471 msgid ""
10472 " mkdir-mode path mode\n"
10473 "\n"
10474 msgstr ""
10475
10476 #. type: textblock
10477 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4423
10478 msgid ""
10479 "This command creates a directory, setting the initial permissions of the "
10480 "directory to C<mode>."
10481 msgstr ""
10482
10483 #. type: textblock
10484 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4426
10485 msgid ""
10486 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10487 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10488 "other ways."
10489 msgstr ""
10490
10491 #. type: textblock
10492 #: ../fish/guestfish-actions.pod:2974
10493 msgid "See also L</mkdir>, L</umask>"
10494 msgstr ""
10495
10496 #. type: =head2
10497 #: ../fish/guestfish-actions.pod:2976
10498 msgid "mkdir-p"
10499 msgstr ""
10500
10501 #. type: verbatim
10502 #: ../fish/guestfish-actions.pod:2978
10503 #, no-wrap
10504 msgid ""
10505 " mkdir-p path\n"
10506 "\n"
10507 msgstr ""
10508
10509 #. type: textblock
10510 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4442
10511 msgid ""
10512 "Create a directory named C<path>, creating any parent directories as "
10513 "necessary.  This is like the C<mkdir -p> shell command."
10514 msgstr ""
10515
10516 #. type: =head2
10517 #: ../fish/guestfish-actions.pod:2983
10518 msgid "mkdtemp"
10519 msgstr ""
10520
10521 #. type: verbatim
10522 #: ../fish/guestfish-actions.pod:2985
10523 #, no-wrap
10524 msgid ""
10525 " mkdtemp template\n"
10526 "\n"
10527 msgstr ""
10528
10529 #. type: textblock
10530 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
10531 msgid ""
10532 "This command creates a temporary directory.  The C<template> parameter "
10533 "should be a full pathname for the temporary directory name with the final "
10534 "six characters being \"XXXXXX\"."
10535 msgstr ""
10536
10537 #. type: textblock
10538 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4460
10539 msgid ""
10540 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10541 "being suitable for Windows filesystems."
10542 msgstr ""
10543
10544 #. type: textblock
10545 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4463
10546 msgid "The name of the temporary directory that was created is returned."
10547 msgstr ""
10548
10549 #. type: textblock
10550 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4466
10551 msgid "The temporary directory is created with mode 0700 and is owned by root."
10552 msgstr ""
10553
10554 #. type: textblock
10555 #: ../fish/guestfish-actions.pod:3001 ../src/guestfs-actions.pod:4469
10556 msgid ""
10557 "The caller is responsible for deleting the temporary directory and its "
10558 "contents after use."
10559 msgstr ""
10560
10561 #. type: textblock
10562 #: ../fish/guestfish-actions.pod:3004 ../src/guestfs-actions.pod:4472
10563 msgid "See also: L<mkdtemp(3)>"
10564 msgstr ""
10565
10566 #. type: =head2
10567 #: ../fish/guestfish-actions.pod:3006
10568 msgid "mke2fs-J"
10569 msgstr ""
10570
10571 #. type: verbatim
10572 #: ../fish/guestfish-actions.pod:3008
10573 #, no-wrap
10574 msgid ""
10575 " mke2fs-J fstype blocksize device journal\n"
10576 "\n"
10577 msgstr ""
10578
10579 #. type: textblock
10580 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4488
10581 msgid ""
10582 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10583 "C<journal>.  It is equivalent to the command:"
10584 msgstr ""
10585
10586 #. type: verbatim
10587 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4492
10588 #, no-wrap
10589 msgid ""
10590 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10591 "\n"
10592 msgstr ""
10593
10594 #. type: textblock
10595 #: ../fish/guestfish-actions.pod:3016
10596 msgid "See also L</mke2journal>."
10597 msgstr ""
10598
10599 #. type: =head2
10600 #: ../fish/guestfish-actions.pod:3018
10601 msgid "mke2fs-JL"
10602 msgstr ""
10603
10604 #. type: verbatim
10605 #: ../fish/guestfish-actions.pod:3020
10606 #, no-wrap
10607 msgid ""
10608 " mke2fs-JL fstype blocksize device label\n"
10609 "\n"
10610 msgstr ""
10611
10612 #. type: textblock
10613 #: ../fish/guestfish-actions.pod:3022 ../src/guestfs-actions.pod:4509
10614 msgid ""
10615 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10616 "the journal labeled C<label>."
10617 msgstr ""
10618
10619 #. type: textblock
10620 #: ../fish/guestfish-actions.pod:3025
10621 msgid "See also L</mke2journal-L>."
10622 msgstr ""
10623
10624 #. type: =head2
10625 #: ../fish/guestfish-actions.pod:3027
10626 msgid "mke2fs-JU"
10627 msgstr ""
10628
10629 #. type: verbatim
10630 #: ../fish/guestfish-actions.pod:3029
10631 #, no-wrap
10632 msgid ""
10633 " mke2fs-JU fstype blocksize device uuid\n"
10634 "\n"
10635 msgstr ""
10636
10637 #. type: textblock
10638 #: ../fish/guestfish-actions.pod:3031 ../src/guestfs-actions.pod:4527
10639 msgid ""
10640 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10641 "the journal with UUID C<uuid>."
10642 msgstr ""
10643
10644 #. type: textblock
10645 #: ../fish/guestfish-actions.pod:3034
10646 msgid "See also L</mke2journal-U>."
10647 msgstr ""
10648
10649 #. type: =head2
10650 #: ../fish/guestfish-actions.pod:3036
10651 msgid "mke2journal"
10652 msgstr ""
10653
10654 #. type: verbatim
10655 #: ../fish/guestfish-actions.pod:3038
10656 #, no-wrap
10657 msgid ""
10658 " mke2journal blocksize device\n"
10659 "\n"
10660 msgstr ""
10661
10662 #. type: textblock
10663 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4543
10664 msgid ""
10665 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10666 "command:"
10667 msgstr ""
10668
10669 #. type: verbatim
10670 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4546
10671 #, no-wrap
10672 msgid ""
10673 " mke2fs -O journal_dev -b blocksize device\n"
10674 "\n"
10675 msgstr ""
10676
10677 #. type: =head2
10678 #: ../fish/guestfish-actions.pod:3045
10679 msgid "mke2journal-L"
10680 msgstr ""
10681
10682 #. type: verbatim
10683 #: ../fish/guestfish-actions.pod:3047
10684 #, no-wrap
10685 msgid ""
10686 " mke2journal-L blocksize label device\n"
10687 "\n"
10688 msgstr ""
10689
10690 #. type: textblock
10691 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4560
10692 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10693 msgstr ""
10694
10695 #. type: =head2
10696 #: ../fish/guestfish-actions.pod:3051
10697 msgid "mke2journal-U"
10698 msgstr ""
10699
10700 #. type: verbatim
10701 #: ../fish/guestfish-actions.pod:3053
10702 #, no-wrap
10703 msgid ""
10704 " mke2journal-U blocksize uuid device\n"
10705 "\n"
10706 msgstr ""
10707
10708 #. type: textblock
10709 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4574
10710 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10711 msgstr ""
10712
10713 #. type: =head2
10714 #: ../fish/guestfish-actions.pod:3057
10715 msgid "mkfifo"
10716 msgstr ""
10717
10718 #. type: verbatim
10719 #: ../fish/guestfish-actions.pod:3059
10720 #, no-wrap
10721 msgid ""
10722 " mkfifo mode path\n"
10723 "\n"
10724 msgstr ""
10725
10726 #. type: textblock
10727 #: ../fish/guestfish-actions.pod:3061
10728 msgid ""
10729 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10730 "is just a convenient wrapper around L</mknod>."
10731 msgstr ""
10732
10733 #. type: =head2
10734 #: ../fish/guestfish-actions.pod:3067
10735 msgid "mkfs"
10736 msgstr ""
10737
10738 #. type: verbatim
10739 #: ../fish/guestfish-actions.pod:3069
10740 #, no-wrap
10741 msgid ""
10742 " mkfs fstype device\n"
10743 "\n"
10744 msgstr ""
10745
10746 #. type: textblock
10747 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4604
10748 msgid ""
10749 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10750 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10751 msgstr ""
10752
10753 #. type: =head2
10754 #: ../fish/guestfish-actions.pod:3075
10755 msgid "mkfs-b"
10756 msgstr ""
10757
10758 #. type: verbatim
10759 #: ../fish/guestfish-actions.pod:3077
10760 #, no-wrap
10761 msgid ""
10762 " mkfs-b fstype blocksize device\n"
10763 "\n"
10764 msgstr ""
10765
10766 #. type: textblock
10767 #: ../fish/guestfish-actions.pod:3079
10768 msgid ""
10769 "This call is similar to L</mkfs>, but it allows you to control the block "
10770 "size of the resulting filesystem.  Supported block sizes depend on the "
10771 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10772 msgstr ""
10773
10774 #. type: textblock
10775 #: ../fish/guestfish-actions.pod:3084 ../fish/guestfish-actions.pod:3111
10776 #: ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:4670
10777 msgid ""
10778 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10779 "cluster size."
10780 msgstr ""
10781
10782 #. type: textblock
10783 #: ../fish/guestfish-actions.pod:3087
10784 msgid ""
10785 "This function is deprecated.  In new code, use the L</mkfs_opts> call "
10786 "instead."
10787 msgstr ""
10788
10789 #. type: =head2
10790 #: ../fish/guestfish-actions.pod:3094
10791 msgid "mkfs-opts"
10792 msgstr ""
10793
10794 #. type: verbatim
10795 #: ../fish/guestfish-actions.pod:3096
10796 #, no-wrap
10797 msgid ""
10798 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
10799 "\n"
10800 msgstr ""
10801
10802 #. type: textblock
10803 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4657
10804 msgid ""
10805 "This function creates a filesystem on C<device>.  The filesystem type is "
10806 "C<fstype>, for example C<ext3>."
10807 msgstr ""
10808
10809 #. type: =item
10810 #: ../fish/guestfish-actions.pod:3105 ../src/guestfs-actions.pod:4664
10811 msgid "C<blocksize>"
10812 msgstr ""
10813
10814 #. type: textblock
10815 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4666
10816 msgid ""
10817 "The filesystem block size.  Supported block sizes depend on the filesystem "
10818 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10819 "filesystems."
10820 msgstr ""
10821
10822 #. type: textblock
10823 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4673
10824 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10825 msgstr ""
10826
10827 #. type: =item
10828 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4675
10829 msgid "C<features>"
10830 msgstr ""
10831
10832 #. type: textblock
10833 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4677
10834 msgid "This passes the I<-O> parameter to the external mkfs program."
10835 msgstr ""
10836
10837 #. type: textblock
10838 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
10839 msgid ""
10840 "For certain filesystem types, this allows extra filesystem features to be "
10841 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10842 msgstr ""
10843
10844 #. type: textblock
10845 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
10846 msgid ""
10847 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10848 "type."
10849 msgstr ""
10850
10851 #. type: =item
10852 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
10853 msgid "C<inode>"
10854 msgstr ""
10855
10856 #. type: textblock
10857 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
10858 msgid ""
10859 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10860 "sets the inode size (only for ext2/3/4 filesystems at present)."
10861 msgstr ""
10862
10863 #. type: =item
10864 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4691
10865 msgid "C<sectorsize>"
10866 msgstr ""
10867
10868 #. type: textblock
10869 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4693
10870 msgid ""
10871 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10872 "sets sector size for ufs filesystem."
10873 msgstr ""
10874
10875 #. type: =head2
10876 #: ../fish/guestfish-actions.pod:3141
10877 msgid "mkmountpoint"
10878 msgstr ""
10879
10880 #. type: verbatim
10881 #: ../fish/guestfish-actions.pod:3143
10882 #, no-wrap
10883 msgid ""
10884 " mkmountpoint exemptpath\n"
10885 "\n"
10886 msgstr ""
10887
10888 #. type: textblock
10889 #: ../fish/guestfish-actions.pod:3145
10890 msgid ""
10891 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10892 "to create extra mountpoints before mounting the first filesystem."
10893 msgstr ""
10894
10895 #. type: textblock
10896 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4736
10897 msgid ""
10898 "These calls are I<only> necessary in some very limited circumstances, mainly "
10899 "the case where you want to mount a mix of unrelated and/or read-only "
10900 "filesystems together."
10901 msgstr ""
10902
10903 #. type: textblock
10904 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
10905 msgid ""
10906 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10907 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10908 "inside that.  You can unpack this as follows in guestfish:"
10909 msgstr ""
10910
10911 #. type: verbatim
10912 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4745
10913 #, no-wrap
10914 msgid ""
10915 " add-ro Fedora-11-i686-Live.iso\n"
10916 " run\n"
10917 " mkmountpoint /cd\n"
10918 " mkmountpoint /sqsh\n"
10919 " mkmountpoint /ext3fs\n"
10920 " mount /dev/sda /cd\n"
10921 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10922 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10923 "\n"
10924 msgstr ""
10925
10926 #. type: textblock
10927 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4754
10928 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10929 msgstr ""
10930
10931 #. type: textblock
10932 #: ../fish/guestfish-actions.pod:3169
10933 msgid ""
10934 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10935 "unexpected errors if you try to mix these calls.  It is safest to manually "
10936 "unmount filesystems and remove mountpoints after use."
10937 msgstr ""
10938
10939 #. type: textblock
10940 #: ../fish/guestfish-actions.pod:3173
10941 msgid ""
10942 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10943 "for this to work for manual mountpoints, you must ensure that the innermost "
10944 "mountpoints have the longest pathnames, as in the example code above."
10945 msgstr ""
10946
10947 #. type: textblock
10948 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4765
10949 msgid ""
10950 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10951 msgstr ""
10952
10953 #. type: textblock
10954 #: ../fish/guestfish-actions.pod:3180
10955 msgid ""
10956 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
10957 "L</umount-all> to be called when the handle is closed which can also trigger "
10958 "these issues."
10959 msgstr ""
10960
10961 #. type: =head2
10962 #: ../fish/guestfish-actions.pod:3184
10963 msgid "mknod"
10964 msgstr ""
10965
10966 #. type: verbatim
10967 #: ../fish/guestfish-actions.pod:3186
10968 #, no-wrap
10969 msgid ""
10970 " mknod mode devmajor devminor path\n"
10971 "\n"
10972 msgstr ""
10973
10974 #. type: textblock
10975 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4784
10976 msgid ""
10977 "This call creates block or character special devices, or named pipes (FIFOs)."
10978 msgstr ""
10979
10980 #. type: textblock
10981 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4787
10982 msgid ""
10983 "The C<mode> parameter should be the mode, using the standard constants.  "
10984 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10985 "used when creating block and character special devices."
10986 msgstr ""
10987
10988 #. type: textblock
10989 #: ../fish/guestfish-actions.pod:3196
10990 msgid ""
10991 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10992 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10993 "regular file).  These constants are available in the standard Linux header "
10994 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
10995 "wrappers around this command which bitwise OR in the appropriate constant "
10996 "for you."
10997 msgstr ""
10998
10999 #. type: =head2
11000 #: ../fish/guestfish-actions.pod:3206
11001 msgid "mknod-b"
11002 msgstr ""
11003
11004 #. type: verbatim
11005 #: ../fish/guestfish-actions.pod:3208
11006 #, no-wrap
11007 msgid ""
11008 " mknod-b mode devmajor devminor path\n"
11009 "\n"
11010 msgstr ""
11011
11012 #. type: textblock
11013 #: ../fish/guestfish-actions.pod:3210
11014 msgid ""
11015 "This call creates a block device node called C<path> with mode C<mode> and "
11016 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11017 "wrapper around L</mknod>."
11018 msgstr ""
11019
11020 #. type: =head2
11021 #: ../fish/guestfish-actions.pod:3216
11022 msgid "mknod-c"
11023 msgstr ""
11024
11025 #. type: verbatim
11026 #: ../fish/guestfish-actions.pod:3218
11027 #, no-wrap
11028 msgid ""
11029 " mknod-c mode devmajor devminor path\n"
11030 "\n"
11031 msgstr ""
11032
11033 #. type: textblock
11034 #: ../fish/guestfish-actions.pod:3220
11035 msgid ""
11036 "This call creates a char device node called C<path> with mode C<mode> and "
11037 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11038 "wrapper around L</mknod>."
11039 msgstr ""
11040
11041 #. type: =head2
11042 #: ../fish/guestfish-actions.pod:3226
11043 msgid "mkswap"
11044 msgstr ""
11045
11046 #. type: verbatim
11047 #: ../fish/guestfish-actions.pod:3228
11048 #, no-wrap
11049 msgid ""
11050 " mkswap device\n"
11051 "\n"
11052 msgstr ""
11053
11054 #. type: textblock
11055 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4850
11056 msgid "Create a swap partition on C<device>."
11057 msgstr ""
11058
11059 #. type: =head2
11060 #: ../fish/guestfish-actions.pod:3232
11061 msgid "mkswap-L"
11062 msgstr ""
11063
11064 #. type: verbatim
11065 #: ../fish/guestfish-actions.pod:3234
11066 #, no-wrap
11067 msgid ""
11068 " mkswap-L label device\n"
11069 "\n"
11070 msgstr ""
11071
11072 #. type: textblock
11073 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4863
11074 msgid "Create a swap partition on C<device> with label C<label>."
11075 msgstr ""
11076
11077 #. type: textblock
11078 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4865
11079 msgid ""
11080 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11081 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11082 "or swap tools."
11083 msgstr ""
11084
11085 #. type: =head2
11086 #: ../fish/guestfish-actions.pod:3242
11087 msgid "mkswap-U"
11088 msgstr ""
11089
11090 #. type: verbatim
11091 #: ../fish/guestfish-actions.pod:3244
11092 #, no-wrap
11093 msgid ""
11094 " mkswap-U uuid device\n"
11095 "\n"
11096 msgstr ""
11097
11098 #. type: textblock
11099 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4880
11100 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11101 msgstr ""
11102
11103 #. type: =head2
11104 #: ../fish/guestfish-actions.pod:3248
11105 msgid "mkswap-file"
11106 msgstr ""
11107
11108 #. type: verbatim
11109 #: ../fish/guestfish-actions.pod:3250
11110 #, no-wrap
11111 msgid ""
11112 " mkswap-file path\n"
11113 "\n"
11114 msgstr ""
11115
11116 #. type: textblock
11117 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4892
11118 msgid "Create a swap file."
11119 msgstr ""
11120
11121 #. type: textblock
11122 #: ../fish/guestfish-actions.pod:3254
11123 msgid ""
11124 "This command just writes a swap file signature to an existing file.  To "
11125 "create the file itself, use something like L</fallocate>."
11126 msgstr ""
11127
11128 #. type: =head2
11129 #: ../fish/guestfish-actions.pod:3257
11130 msgid "modprobe"
11131 msgstr ""
11132
11133 #. type: verbatim
11134 #: ../fish/guestfish-actions.pod:3259
11135 #, no-wrap
11136 msgid ""
11137 " modprobe modulename\n"
11138 "\n"
11139 msgstr ""
11140
11141 #. type: textblock
11142 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:4907
11143 msgid "This loads a kernel module in the appliance."
11144 msgstr ""
11145
11146 #. type: textblock
11147 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4909
11148 msgid ""
11149 "The kernel module must have been whitelisted when libguestfs was built (see "
11150 "C<appliance/kmod.whitelist.in> in the source)."
11151 msgstr ""
11152
11153 #. type: =head2
11154 #: ../fish/guestfish-actions.pod:3266
11155 msgid "mount"
11156 msgstr ""
11157
11158 #. type: verbatim
11159 #: ../fish/guestfish-actions.pod:3268
11160 #, no-wrap
11161 msgid ""
11162 " mount device mountpoint\n"
11163 "\n"
11164 msgstr ""
11165
11166 #. type: textblock
11167 #: ../fish/guestfish-actions.pod:3270 ../src/guestfs-actions.pod:4923
11168 msgid ""
11169 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11170 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11171 "those block devices contain partitions, they will have the usual names (eg. "
11172 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11173 msgstr ""
11174
11175 #. type: textblock
11176 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4929
11177 msgid ""
11178 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11179 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11180 "mounted on directories which already exist."
11181 msgstr ""
11182
11183 #. type: textblock
11184 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:4934
11185 msgid ""
11186 "The mounted filesystem is writable, if we have sufficient permissions on the "
11187 "underlying device."
11188 msgstr ""
11189
11190 #. type: textblock
11191 #: ../fish/guestfish-actions.pod:3284
11192 msgid ""
11193 "B<Important note:> When you use this call, the filesystem options C<sync> "
11194 "and C<noatime> are set implicitly.  This was originally done because we "
11195 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11196 "very large negative performance impact and negligible effect on "
11197 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11198 "code that needs performance, and instead use L</mount-options> (use an empty "
11199 "string for the first parameter if you don't want any options)."
11200 msgstr ""
11201
11202 #. type: textblock
11203 #: ../fish/guestfish-actions.pod:3294
11204 msgid ""
11205 "This function is deprecated.  In new code, use the L</mount_options> call "
11206 "instead."
11207 msgstr ""
11208
11209 #. type: =head2
11210 #: ../fish/guestfish-actions.pod:3301
11211 msgid "mount-9p"
11212 msgstr ""
11213
11214 #. type: verbatim
11215 #: ../fish/guestfish-actions.pod:3303
11216 #, no-wrap
11217 msgid ""
11218 " mount-9p mounttag mountpoint [options:..]\n"
11219 "\n"
11220 msgstr ""
11221
11222 #. type: textblock
11223 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:4973
11224 msgid ""
11225 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11226 "C<mountpoint>."
11227 msgstr ""
11228
11229 #. type: textblock
11230 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:4976
11231 msgid ""
11232 "If required, C<trans=virtio> will be automatically added to the options.  "
11233 "Any other options required can be passed in the optional C<options> "
11234 "parameter."
11235 msgstr ""
11236
11237 #. type: =head2
11238 #: ../fish/guestfish-actions.pod:3314
11239 msgid "mount-loop"
11240 msgstr ""
11241
11242 #. type: verbatim
11243 #: ../fish/guestfish-actions.pod:3316
11244 #, no-wrap
11245 msgid ""
11246 " mount-loop file mountpoint\n"
11247 "\n"
11248 msgstr ""
11249
11250 #. type: textblock
11251 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5015
11252 msgid ""
11253 "This command lets you mount C<file> (a filesystem image in a file) on a "
11254 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11255 "mountpoint>."
11256 msgstr ""
11257
11258 #. type: =head2
11259 #: ../fish/guestfish-actions.pod:3322
11260 msgid "mount-options"
11261 msgstr ""
11262
11263 #. type: verbatim
11264 #: ../fish/guestfish-actions.pod:3324
11265 #, no-wrap
11266 msgid ""
11267 " mount-options options device mountpoint\n"
11268 "\n"
11269 msgstr ""
11270
11271 #. type: textblock
11272 #: ../fish/guestfish-actions.pod:3326
11273 msgid ""
11274 "This is the same as the L</mount> command, but it allows you to set the "
11275 "mount options as for the L<mount(8)> I<-o> flag."
11276 msgstr ""
11277
11278 #. type: textblock
11279 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5035
11280 msgid ""
11281 "If the C<options> parameter is an empty string, then no options are passed "
11282 "(all options default to whatever the filesystem uses)."
11283 msgstr ""
11284
11285 #. type: =head2
11286 #: ../fish/guestfish-actions.pod:3334
11287 msgid "mount-ro"
11288 msgstr ""
11289
11290 #. type: verbatim
11291 #: ../fish/guestfish-actions.pod:3336
11292 #, no-wrap
11293 msgid ""
11294 " mount-ro device mountpoint\n"
11295 "\n"
11296 msgstr ""
11297
11298 #. type: textblock
11299 #: ../fish/guestfish-actions.pod:3338
11300 msgid ""
11301 "This is the same as the L</mount> command, but it mounts the filesystem with "
11302 "the read-only (I<-o ro>) flag."
11303 msgstr ""
11304
11305 #. type: =head2
11306 #: ../fish/guestfish-actions.pod:3341
11307 msgid "mount-vfs"
11308 msgstr ""
11309
11310 #. type: verbatim
11311 #: ../fish/guestfish-actions.pod:3343
11312 #, no-wrap
11313 msgid ""
11314 " mount-vfs options vfstype device mountpoint\n"
11315 "\n"
11316 msgstr ""
11317
11318 #. type: textblock
11319 #: ../fish/guestfish-actions.pod:3345
11320 msgid ""
11321 "This is the same as the L</mount> command, but it allows you to set both the "
11322 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11323 msgstr ""
11324
11325 #. type: =head2
11326 #: ../fish/guestfish-actions.pod:3349
11327 msgid "mountpoints"
11328 msgstr ""
11329
11330 #. type: verbatim
11331 #: ../fish/guestfish-actions.pod:3351
11332 #, no-wrap
11333 msgid ""
11334 " mountpoints\n"
11335 "\n"
11336 msgstr ""
11337
11338 #. type: textblock
11339 #: ../fish/guestfish-actions.pod:3353
11340 msgid ""
11341 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11342 "This one returns a hash table (map) of device name to directory where the "
11343 "device is mounted."
11344 msgstr ""
11345
11346 #. type: =head2
11347 #: ../fish/guestfish-actions.pod:3357
11348 msgid "mounts"
11349 msgstr ""
11350
11351 #. type: verbatim
11352 #: ../fish/guestfish-actions.pod:3359
11353 #, no-wrap
11354 msgid ""
11355 " mounts\n"
11356 "\n"
11357 msgstr ""
11358
11359 #. type: textblock
11360 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
11361 msgid ""
11362 "This returns the list of currently mounted filesystems.  It returns the list "
11363 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11364 msgstr ""
11365
11366 #. type: textblock
11367 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5099
11368 msgid "Some internal mounts are not shown."
11369 msgstr ""
11370
11371 #. type: textblock
11372 #: ../fish/guestfish-actions.pod:3366
11373 msgid "See also: L</mountpoints>"
11374 msgstr ""
11375
11376 #. type: =head2
11377 #: ../fish/guestfish-actions.pod:3368
11378 msgid "mv"
11379 msgstr ""
11380
11381 #. type: verbatim
11382 #: ../fish/guestfish-actions.pod:3370
11383 #, no-wrap
11384 msgid ""
11385 " mv src dest\n"
11386 "\n"
11387 msgstr ""
11388
11389 #. type: textblock
11390 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5116
11391 msgid ""
11392 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11393 "destination filename or destination directory."
11394 msgstr ""
11395
11396 #. type: =head2
11397 #: ../fish/guestfish-actions.pod:3375
11398 msgid "ntfs-3g-probe"
11399 msgstr ""
11400
11401 #. type: verbatim
11402 #: ../fish/guestfish-actions.pod:3377
11403 #, no-wrap
11404 msgid ""
11405 " ntfs-3g-probe true|false device\n"
11406 "\n"
11407 msgstr ""
11408
11409 #. type: textblock
11410 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5130
11411 msgid ""
11412 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11413 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11414 "write, and some cannot be mounted at all)."
11415 msgstr ""
11416
11417 #. type: textblock
11418 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5134
11419 msgid ""
11420 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11421 "can be mounted read-write.  Set it to false if you want to test if the "
11422 "volume can be mounted read-only."
11423 msgstr ""
11424
11425 #. type: textblock
11426 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5138
11427 msgid ""
11428 "The return value is an integer which C<0> if the operation would succeed, or "
11429 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11430 msgstr ""
11431
11432 #. type: =head2
11433 #: ../fish/guestfish-actions.pod:3391
11434 msgid "ntfsresize"
11435 msgstr ""
11436
11437 #. type: verbatim
11438 #: ../fish/guestfish-actions.pod:3393
11439 #, no-wrap
11440 msgid ""
11441 " ntfsresize device\n"
11442 "\n"
11443 msgstr ""
11444
11445 #. type: textblock
11446 #: ../fish/guestfish-actions.pod:3395 ../fish/guestfish-actions.pod:3419
11447 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5191
11448 msgid ""
11449 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11450 "size of the underlying device."
11451 msgstr ""
11452
11453 #. type: textblock
11454 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5155
11455 msgid ""
11456 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
11457 "consistency check (for safety).  You have to boot into Windows to perform "
11458 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
11459 "resize filesystems which have been marked in this way.  So in effect it is "
11460 "not possible to call ntfsresize multiple times on a single filesystem "
11461 "without booting into Windows between each resize."
11462 msgstr ""
11463
11464 #. type: textblock
11465 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3445
11466 #: ../src/guestfs-actions.pod:5163 ../src/guestfs-actions.pod:5217
11467 msgid "See also L<ntfsresize(8)>."
11468 msgstr ""
11469
11470 #. type: textblock
11471 #: ../fish/guestfish-actions.pod:3408 ../fish/guestfish-actions.pod:3456
11472 msgid ""
11473 "This function is deprecated.  In new code, use the L</ntfsresize_opts> call "
11474 "instead."
11475 msgstr ""
11476
11477 #. type: =head2
11478 #: ../fish/guestfish-actions.pod:3415
11479 msgid "ntfsresize-opts"
11480 msgstr ""
11481
11482 #. type: verbatim
11483 #: ../fish/guestfish-actions.pod:3417
11484 #, no-wrap
11485 msgid ""
11486 " ntfsresize-opts device [size:..] [force:..]\n"
11487 "\n"
11488 msgstr ""
11489
11490 #. type: textblock
11491 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
11492 msgid ""
11493 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
11494 "resized to fit the container (eg. partition)."
11495 msgstr ""
11496
11497 #. type: =item
11498 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5203
11499 msgid "C<force>"
11500 msgstr ""
11501
11502 #. type: textblock
11503 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5205
11504 msgid ""
11505 "If this option is true, then force the resize of the filesystem even if the "
11506 "filesystem is marked as requiring a consistency check."
11507 msgstr ""
11508
11509 #. type: textblock
11510 #: ../fish/guestfish-actions.pod:3436
11511 msgid ""
11512 "After the resize operation, the filesystem is always marked as requiring a "
11513 "consistency check (for safety).  You have to boot into Windows to perform "
11514 "this check and clear this condition.  If you I<don't> set the C<force> "
11515 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
11516 "a single filesystem without booting into Windows between each resize."
11517 msgstr ""
11518
11519 #. type: =head2
11520 #: ../fish/guestfish-actions.pod:3449
11521 msgid "ntfsresize-size"
11522 msgstr ""
11523
11524 #. type: verbatim
11525 #: ../fish/guestfish-actions.pod:3451
11526 #, no-wrap
11527 msgid ""
11528 " ntfsresize-size device size\n"
11529 "\n"
11530 msgstr ""
11531
11532 #. type: textblock
11533 #: ../fish/guestfish-actions.pod:3453
11534 msgid ""
11535 "This command is the same as L</ntfsresize> except that it allows you to "
11536 "specify the new size (in bytes) explicitly."
11537 msgstr ""
11538
11539 #. type: =head2
11540 #: ../fish/guestfish-actions.pod:3463
11541 msgid "part-add"
11542 msgstr ""
11543
11544 #. type: verbatim
11545 #: ../fish/guestfish-actions.pod:3465
11546 #, no-wrap
11547 msgid ""
11548 " part-add device prlogex startsect endsect\n"
11549 "\n"
11550 msgstr ""
11551
11552 #. type: textblock
11553 #: ../fish/guestfish-actions.pod:3467
11554 msgid ""
11555 "This command adds a partition to C<device>.  If there is no partition table "
11556 "on the device, call L</part-init> first."
11557 msgstr ""
11558
11559 #. type: textblock
11560 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
11561 msgid ""
11562 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11563 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11564 "C<logical>) and C<e> (or C<extended>) partition types."
11565 msgstr ""
11566
11567 #. type: textblock
11568 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5283
11569 msgid ""
11570 "C<startsect> and C<endsect> are the start and end of the partition in "
11571 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11572 "from the end of the disk (C<-1> is the last sector)."
11573 msgstr ""
11574
11575 #. type: textblock
11576 #: ../fish/guestfish-actions.pod:3479
11577 msgid ""
11578 "Creating a partition which covers the whole disk is not so easy.  Use L</"
11579 "part-disk> to do that."
11580 msgstr ""
11581
11582 #. type: =head2
11583 #: ../fish/guestfish-actions.pod:3482
11584 msgid "part-del"
11585 msgstr ""
11586
11587 #. type: verbatim
11588 #: ../fish/guestfish-actions.pod:3484
11589 #, no-wrap
11590 msgid ""
11591 " part-del device partnum\n"
11592 "\n"
11593 msgstr ""
11594
11595 #. type: textblock
11596 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5301
11597 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11598 msgstr ""
11599
11600 #. type: textblock
11601 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5303
11602 msgid ""
11603 "Note that in the case of MBR partitioning, deleting an extended partition "
11604 "also deletes any logical partitions it contains."
11605 msgstr ""
11606
11607 #. type: =head2
11608 #: ../fish/guestfish-actions.pod:3492
11609 msgid "part-disk"
11610 msgstr ""
11611
11612 #. type: verbatim
11613 #: ../fish/guestfish-actions.pod:3494
11614 #, no-wrap
11615 msgid ""
11616 " part-disk device parttype\n"
11617 "\n"
11618 msgstr ""
11619
11620 #. type: textblock
11621 #: ../fish/guestfish-actions.pod:3496
11622 msgid ""
11623 "This command is simply a combination of L</part-init> followed by L</part-"
11624 "add> to create a single primary partition covering the whole disk."
11625 msgstr ""
11626
11627 #. type: textblock
11628 #: ../fish/guestfish-actions.pod:3500
11629 msgid ""
11630 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11631 "possible values are described in L</part-init>."
11632 msgstr ""
11633
11634 #. type: =head2
11635 #: ../fish/guestfish-actions.pod:3506
11636 msgid "part-get-bootable"
11637 msgstr ""
11638
11639 #. type: verbatim
11640 #: ../fish/guestfish-actions.pod:3508
11641 #, no-wrap
11642 msgid ""
11643 " part-get-bootable device partnum\n"
11644 "\n"
11645 msgstr ""
11646
11647 #. type: textblock
11648 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5339
11649 msgid ""
11650 "This command returns true if the partition C<partnum> on C<device> has the "
11651 "bootable flag set."
11652 msgstr ""
11653
11654 #. type: textblock
11655 #: ../fish/guestfish-actions.pod:3513
11656 msgid "See also L</part-set-bootable>."
11657 msgstr ""
11658
11659 #. type: =head2
11660 #: ../fish/guestfish-actions.pod:3515
11661 msgid "part-get-mbr-id"
11662 msgstr ""
11663
11664 #. type: verbatim
11665 #: ../fish/guestfish-actions.pod:3517
11666 #, no-wrap
11667 msgid ""
11668 " part-get-mbr-id device partnum\n"
11669 "\n"
11670 msgstr ""
11671
11672 #. type: textblock
11673 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5355
11674 msgid ""
11675 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11676 "partition C<partnum>."
11677 msgstr ""
11678
11679 #. type: textblock
11680 #: ../fish/guestfish-actions.pod:3522 ../fish/guestfish-actions.pod:3666
11681 msgid ""
11682 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11683 "undefined results for other partition table types (see L</part-get-"
11684 "parttype>)."
11685 msgstr ""
11686
11687 #. type: =head2
11688 #: ../fish/guestfish-actions.pod:3526
11689 msgid "part-get-parttype"
11690 msgstr ""
11691
11692 #. type: verbatim
11693 #: ../fish/guestfish-actions.pod:3528
11694 #, no-wrap
11695 msgid ""
11696 " part-get-parttype device\n"
11697 "\n"
11698 msgstr ""
11699
11700 #. type: textblock
11701 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5372
11702 msgid ""
11703 "This command examines the partition table on C<device> and returns the "
11704 "partition table type (format) being used."
11705 msgstr ""
11706
11707 #. type: textblock
11708 #: ../fish/guestfish-actions.pod:3533
11709 msgid ""
11710 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11711 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11712 "possible, although unusual.  See L</part-init> for a full list."
11713 msgstr ""
11714
11715 #. type: =head2
11716 #: ../fish/guestfish-actions.pod:3538
11717 msgid "part-init"
11718 msgstr ""
11719
11720 #. type: verbatim
11721 #: ../fish/guestfish-actions.pod:3540
11722 #, no-wrap
11723 msgid ""
11724 " part-init device parttype\n"
11725 "\n"
11726 msgstr ""
11727
11728 #. type: textblock
11729 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5392
11730 msgid ""
11731 "This creates an empty partition table on C<device> of one of the partition "
11732 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11733 "(for large disks)."
11734 msgstr ""
11735
11736 #. type: textblock
11737 #: ../fish/guestfish-actions.pod:3546
11738 msgid ""
11739 "Initially there are no partitions.  Following this, you should call L</part-"
11740 "add> for each partition required."
11741 msgstr ""
11742
11743 #. type: textblock
11744 #: ../fish/guestfish-actions.pod:3549 ../src/guestfs-actions.pod:5399
11745 msgid "Possible values for C<parttype> are:"
11746 msgstr ""
11747
11748 #. type: =item
11749 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5403
11750 msgid "B<efi>"
11751 msgstr ""
11752
11753 #. type: =item
11754 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5405
11755 msgid "B<gpt>"
11756 msgstr ""
11757
11758 #. type: textblock
11759 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5407
11760 msgid "Intel EFI / GPT partition table."
11761 msgstr ""
11762
11763 #. type: textblock
11764 #: ../fish/guestfish-actions.pod:3559 ../src/guestfs-actions.pod:5409
11765 msgid ""
11766 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11767 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11768 "the C<mbr> format."
11769 msgstr ""
11770
11771 #. type: =item
11772 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5413
11773 msgid "B<mbr>"
11774 msgstr ""
11775
11776 #. type: =item
11777 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5415
11778 msgid "B<msdos>"
11779 msgstr ""
11780
11781 #. type: textblock
11782 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5417
11783 msgid ""
11784 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11785 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11786 "TB.  For large disks we recommend using C<gpt>."
11787 msgstr ""
11788
11789 #. type: textblock
11790 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
11791 msgid ""
11792 "Other partition table types that may work but are not supported include:"
11793 msgstr ""
11794
11795 #. type: =item
11796 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
11797 msgid "B<aix>"
11798 msgstr ""
11799
11800 #. type: textblock
11801 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
11802 msgid "AIX disk labels."
11803 msgstr ""
11804
11805 #. type: =item
11806 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
11807 msgid "B<amiga>"
11808 msgstr ""
11809
11810 #. type: =item
11811 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
11812 msgid "B<rdb>"
11813 msgstr ""
11814
11815 #. type: textblock
11816 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
11817 msgid "Amiga \"Rigid Disk Block\" format."
11818 msgstr ""
11819
11820 #. type: =item
11821 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
11822 msgid "B<bsd>"
11823 msgstr ""
11824
11825 #. type: textblock
11826 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
11827 msgid "BSD disk labels."
11828 msgstr ""
11829
11830 #. type: =item
11831 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
11832 msgid "B<dasd>"
11833 msgstr ""
11834
11835 #. type: textblock
11836 #: ../fish/guestfish-actions.pod:3595 ../src/guestfs-actions.pod:5445
11837 msgid "DASD, used on IBM mainframes."
11838 msgstr ""
11839
11840 #. type: =item
11841 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5447
11842 msgid "B<dvh>"
11843 msgstr ""
11844
11845 #. type: textblock
11846 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5449
11847 msgid "MIPS/SGI volumes."
11848 msgstr ""
11849
11850 #. type: =item
11851 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
11852 msgid "B<mac>"
11853 msgstr ""
11854
11855 #. type: textblock
11856 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
11857 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11858 msgstr ""
11859
11860 #. type: =item
11861 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
11862 msgid "B<pc98>"
11863 msgstr ""
11864
11865 #. type: textblock
11866 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
11867 msgid "NEC PC-98 format, common in Japan apparently."
11868 msgstr ""
11869
11870 #. type: =item
11871 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
11872 msgid "B<sun>"
11873 msgstr ""
11874
11875 #. type: textblock
11876 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
11877 msgid "Sun disk labels."
11878 msgstr ""
11879
11880 #. type: =head2
11881 #: ../fish/guestfish-actions.pod:3615
11882 msgid "part-list"
11883 msgstr ""
11884
11885 #. type: verbatim
11886 #: ../fish/guestfish-actions.pod:3617
11887 #, no-wrap
11888 msgid ""
11889 " part-list device\n"
11890 "\n"
11891 msgstr ""
11892
11893 #. type: textblock
11894 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5475
11895 msgid ""
11896 "This command parses the partition table on C<device> and returns the list of "
11897 "partitions found."
11898 msgstr ""
11899
11900 #. type: textblock
11901 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5478
11902 msgid "The fields in the returned structure are:"
11903 msgstr ""
11904
11905 #. type: =item
11906 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5482
11907 msgid "B<part_num>"
11908 msgstr ""
11909
11910 #. type: textblock
11911 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5484
11912 msgid "Partition number, counting from 1."
11913 msgstr ""
11914
11915 #. type: =item
11916 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
11917 msgid "B<part_start>"
11918 msgstr ""
11919
11920 #. type: textblock
11921 #: ../fish/guestfish-actions.pod:3632
11922 msgid ""
11923 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11924 "the device's sector size, see L</blockdev-getss>."
11925 msgstr ""
11926
11927 #. type: =item
11928 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5491
11929 msgid "B<part_end>"
11930 msgstr ""
11931
11932 #. type: textblock
11933 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5493
11934 msgid "End of the partition in bytes."
11935 msgstr ""
11936
11937 #. type: =item
11938 #: ../fish/guestfish-actions.pod:3639 ../src/guestfs-actions.pod:5495
11939 msgid "B<part_size>"
11940 msgstr ""
11941
11942 #. type: textblock
11943 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
11944 msgid "Size of the partition in bytes."
11945 msgstr ""
11946
11947 #. type: =head2
11948 #: ../fish/guestfish-actions.pod:3645
11949 msgid "part-set-bootable"
11950 msgstr ""
11951
11952 #. type: verbatim
11953 #: ../fish/guestfish-actions.pod:3647
11954 #, no-wrap
11955 msgid ""
11956 " part-set-bootable device partnum true|false\n"
11957 "\n"
11958 msgstr ""
11959
11960 #. type: textblock
11961 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5515
11962 msgid ""
11963 "This sets the bootable flag on partition numbered C<partnum> on device "
11964 "C<device>.  Note that partitions are numbered from 1."
11965 msgstr ""
11966
11967 #. type: textblock
11968 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5518
11969 msgid ""
11970 "The bootable flag is used by some operating systems (notably Windows) to "
11971 "determine which partition to boot from.  It is by no means universally "
11972 "recognized."
11973 msgstr ""
11974
11975 #. type: =head2
11976 #: ../fish/guestfish-actions.pod:3656
11977 msgid "part-set-mbr-id"
11978 msgstr ""
11979
11980 #. type: verbatim
11981 #: ../fish/guestfish-actions.pod:3658
11982 #, no-wrap
11983 msgid ""
11984 " part-set-mbr-id device partnum idbyte\n"
11985 "\n"
11986 msgstr ""
11987
11988 #. type: textblock
11989 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5534
11990 msgid ""
11991 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11992 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11993 "documentation are in fact hexadecimal numbers, but usually documented "
11994 "without any leading \"0x\" which might be confusing."
11995 msgstr ""
11996
11997 #. type: =head2
11998 #: ../fish/guestfish-actions.pod:3670
11999 msgid "part-set-name"
12000 msgstr ""
12001
12002 #. type: verbatim
12003 #: ../fish/guestfish-actions.pod:3672
12004 #, no-wrap
12005 msgid ""
12006 " part-set-name device partnum name\n"
12007 "\n"
12008 msgstr ""
12009
12010 #. type: textblock
12011 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5556
12012 msgid ""
12013 "This sets the partition name on partition numbered C<partnum> on device "
12014 "C<device>.  Note that partitions are numbered from 1."
12015 msgstr ""
12016
12017 #. type: textblock
12018 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5559
12019 msgid ""
12020 "The partition name can only be set on certain types of partition table.  "
12021 "This works on C<gpt> but not on C<mbr> partitions."
12022 msgstr ""
12023
12024 #. type: =head2
12025 #: ../fish/guestfish-actions.pod:3680
12026 msgid "part-to-dev"
12027 msgstr ""
12028
12029 #. type: verbatim
12030 #: ../fish/guestfish-actions.pod:3682
12031 #, no-wrap
12032 msgid ""
12033 " part-to-dev partition\n"
12034 "\n"
12035 msgstr ""
12036
12037 #. type: textblock
12038 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5572
12039 msgid ""
12040 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12041 "partition number, returning the device name (eg. \"/dev/sdb\")."
12042 msgstr ""
12043
12044 #. type: textblock
12045 #: ../fish/guestfish-actions.pod:3688
12046 msgid ""
12047 "The named partition must exist, for example as a string returned from L</"
12048 "list-partitions>."
12049 msgstr ""
12050
12051 #. type: =head2
12052 #: ../fish/guestfish-actions.pod:3691
12053 msgid "ping-daemon"
12054 msgstr ""
12055
12056 #. type: verbatim
12057 #: ../fish/guestfish-actions.pod:3693
12058 #, no-wrap
12059 msgid ""
12060 " ping-daemon\n"
12061 "\n"
12062 msgstr ""
12063
12064 #. type: textblock
12065 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5589
12066 msgid ""
12067 "This is a test probe into the guestfs daemon running inside the qemu "
12068 "subprocess.  Calling this function checks that the daemon responds to the "
12069 "ping message, without affecting the daemon or attached block device(s) in "
12070 "any other way."
12071 msgstr ""
12072
12073 #. type: =head2
12074 #: ../fish/guestfish-actions.pod:3700
12075 msgid "pread"
12076 msgstr ""
12077
12078 #. type: verbatim
12079 #: ../fish/guestfish-actions.pod:3702
12080 #, no-wrap
12081 msgid ""
12082 " pread path count offset\n"
12083 "\n"
12084 msgstr ""
12085
12086 #. type: textblock
12087 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5607
12088 msgid ""
12089 "This command lets you read part of a file.  It reads C<count> bytes of the "
12090 "file, starting at C<offset>, from file C<path>."
12091 msgstr ""
12092
12093 #. type: textblock
12094 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
12095 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
12096 msgid ""
12097 "This may read fewer bytes than requested.  For further details see the "
12098 "L<pread(2)> system call."
12099 msgstr ""
12100
12101 #. type: textblock
12102 #: ../fish/guestfish-actions.pod:3710
12103 msgid "See also L</pwrite>, L</pread-device>."
12104 msgstr ""
12105
12106 #. type: =head2
12107 #: ../fish/guestfish-actions.pod:3715
12108 msgid "pread-device"
12109 msgstr ""
12110
12111 #. type: verbatim
12112 #: ../fish/guestfish-actions.pod:3717
12113 #, no-wrap
12114 msgid ""
12115 " pread-device device count offset\n"
12116 "\n"
12117 msgstr ""
12118
12119 #. type: textblock
12120 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5633
12121 msgid ""
12122 "This command lets you read part of a file.  It reads C<count> bytes of "
12123 "C<device>, starting at C<offset>."
12124 msgstr ""
12125
12126 #. type: textblock
12127 #: ../fish/guestfish-actions.pod:3725
12128 msgid "See also L</pread>."
12129 msgstr ""
12130
12131 #. type: =head2
12132 #: ../fish/guestfish-actions.pod:3730
12133 msgid "pvcreate"
12134 msgstr ""
12135
12136 #. type: verbatim
12137 #: ../fish/guestfish-actions.pod:3732
12138 #, no-wrap
12139 msgid ""
12140 " pvcreate device\n"
12141 "\n"
12142 msgstr ""
12143
12144 #. type: textblock
12145 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5656
12146 msgid ""
12147 "This creates an LVM physical volume on the named C<device>, where C<device> "
12148 "should usually be a partition name such as C</dev/sda1>."
12149 msgstr ""
12150
12151 #. type: =head2
12152 #: ../fish/guestfish-actions.pod:3738
12153 msgid "pvremove"
12154 msgstr ""
12155
12156 #. type: verbatim
12157 #: ../fish/guestfish-actions.pod:3740
12158 #, no-wrap
12159 msgid ""
12160 " pvremove device\n"
12161 "\n"
12162 msgstr ""
12163
12164 #. type: textblock
12165 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5670
12166 msgid ""
12167 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12168 "it."
12169 msgstr ""
12170
12171 #. type: textblock
12172 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5673
12173 msgid ""
12174 "The implementation uses the C<pvremove> command which refuses to wipe "
12175 "physical volumes that contain any volume groups, so you have to remove those "
12176 "first."
12177 msgstr ""
12178
12179 #. type: =head2
12180 #: ../fish/guestfish-actions.pod:3749
12181 msgid "pvresize"
12182 msgstr ""
12183
12184 #. type: verbatim
12185 #: ../fish/guestfish-actions.pod:3751
12186 #, no-wrap
12187 msgid ""
12188 " pvresize device\n"
12189 "\n"
12190 msgstr ""
12191
12192 #. type: textblock
12193 #: ../fish/guestfish-actions.pod:3753 ../src/guestfs-actions.pod:5687
12194 msgid ""
12195 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12196 "the new size of the underlying device."
12197 msgstr ""
12198
12199 #. type: =head2
12200 #: ../fish/guestfish-actions.pod:3756
12201 msgid "pvresize-size"
12202 msgstr ""
12203
12204 #. type: verbatim
12205 #: ../fish/guestfish-actions.pod:3758
12206 #, no-wrap
12207 msgid ""
12208 " pvresize-size device size\n"
12209 "\n"
12210 msgstr ""
12211
12212 #. type: textblock
12213 #: ../fish/guestfish-actions.pod:3760
12214 msgid ""
12215 "This command is the same as L</pvresize> except that it allows you to "
12216 "specify the new size (in bytes) explicitly."
12217 msgstr ""
12218
12219 #. type: =head2
12220 #: ../fish/guestfish-actions.pod:3763
12221 msgid "pvs"
12222 msgstr ""
12223
12224 #. type: verbatim
12225 #: ../fish/guestfish-actions.pod:3765
12226 #, no-wrap
12227 msgid ""
12228 " pvs\n"
12229 "\n"
12230 msgstr ""
12231
12232 #. type: textblock
12233 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5713
12234 msgid ""
12235 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12236 "(8)> command."
12237 msgstr ""
12238
12239 #. type: textblock
12240 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5716
12241 msgid ""
12242 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12243 "sda2>)."
12244 msgstr ""
12245
12246 #. type: textblock
12247 #: ../fish/guestfish-actions.pod:3773
12248 msgid "See also L</pvs-full>."
12249 msgstr ""
12250
12251 #. type: =head2
12252 #: ../fish/guestfish-actions.pod:3775
12253 msgid "pvs-full"
12254 msgstr ""
12255
12256 #. type: verbatim
12257 #: ../fish/guestfish-actions.pod:3777
12258 #, no-wrap
12259 msgid ""
12260 " pvs-full\n"
12261 "\n"
12262 msgstr ""
12263
12264 #. type: textblock
12265 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5732
12266 msgid ""
12267 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12268 "(8)> command.  The \"full\" version includes all fields."
12269 msgstr ""
12270
12271 #. type: =head2
12272 #: ../fish/guestfish-actions.pod:3782
12273 msgid "pvuuid"
12274 msgstr ""
12275
12276 #. type: verbatim
12277 #: ../fish/guestfish-actions.pod:3784
12278 #, no-wrap
12279 msgid ""
12280 " pvuuid device\n"
12281 "\n"
12282 msgstr ""
12283
12284 #. type: textblock
12285 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5747
12286 msgid "This command returns the UUID of the LVM PV C<device>."
12287 msgstr ""
12288
12289 #. type: =head2
12290 #: ../fish/guestfish-actions.pod:3788
12291 msgid "pwrite"
12292 msgstr ""
12293
12294 #. type: verbatim
12295 #: ../fish/guestfish-actions.pod:3790
12296 #, no-wrap
12297 msgid ""
12298 " pwrite path content offset\n"
12299 "\n"
12300 msgstr ""
12301
12302 #. type: textblock
12303 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5763
12304 msgid ""
12305 "This command writes to part of a file.  It writes the data buffer C<content> "
12306 "to the file C<path> starting at offset C<offset>."
12307 msgstr ""
12308
12309 #. type: textblock
12310 #: ../fish/guestfish-actions.pod:3795 ../src/guestfs-actions.pod:5766
12311 msgid ""
12312 "This command implements the L<pwrite(2)> system call, and like that system "
12313 "call it may not write the full data requested.  The return value is the "
12314 "number of bytes that were actually written to the file.  This could even be "
12315 "0, although short writes are unlikely for regular files in ordinary "
12316 "circumstances."
12317 msgstr ""
12318
12319 #. type: textblock
12320 #: ../fish/guestfish-actions.pod:3801
12321 msgid "See also L</pread>, L</pwrite-device>."
12322 msgstr ""
12323
12324 #. type: =head2
12325 #: ../fish/guestfish-actions.pod:3806
12326 msgid "pwrite-device"
12327 msgstr ""
12328
12329 #. type: verbatim
12330 #: ../fish/guestfish-actions.pod:3808
12331 #, no-wrap
12332 msgid ""
12333 " pwrite-device device content offset\n"
12334 "\n"
12335 msgstr ""
12336
12337 #. type: textblock
12338 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5790
12339 msgid ""
12340 "This command writes to part of a device.  It writes the data buffer "
12341 "C<content> to C<device> starting at offset C<offset>."
12342 msgstr ""
12343
12344 #. type: textblock
12345 #: ../fish/guestfish-actions.pod:3813 ../src/guestfs-actions.pod:5793
12346 msgid ""
12347 "This command implements the L<pwrite(2)> system call, and like that system "
12348 "call it may not write the full data requested (although short writes to disk "
12349 "devices and partitions are probably impossible with standard Linux kernels)."
12350 msgstr ""
12351
12352 #. type: textblock
12353 #: ../fish/guestfish-actions.pod:3818
12354 msgid "See also L</pwrite>."
12355 msgstr ""
12356
12357 #. type: =head2
12358 #: ../fish/guestfish-actions.pod:3823
12359 msgid "read-file"
12360 msgstr ""
12361
12362 #. type: verbatim
12363 #: ../fish/guestfish-actions.pod:3825
12364 #, no-wrap
12365 msgid ""
12366 " read-file path\n"
12367 "\n"
12368 msgstr ""
12369
12370 #. type: textblock
12371 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5814
12372 msgid "This calls returns the contents of the file C<path> as a buffer."
12373 msgstr ""
12374
12375 #. type: textblock
12376 #: ../fish/guestfish-actions.pod:3830
12377 msgid ""
12378 "Unlike L</cat>, this function can correctly handle files that contain "
12379 "embedded ASCII NUL characters.  However unlike L</download>, this function "
12380 "is limited in the total size of file that can be handled."
12381 msgstr ""
12382
12383 #. type: =head2
12384 #: ../fish/guestfish-actions.pod:3838
12385 msgid "read-lines"
12386 msgstr ""
12387
12388 #. type: verbatim
12389 #: ../fish/guestfish-actions.pod:3840
12390 #, no-wrap
12391 msgid ""
12392 " read-lines path\n"
12393 "\n"
12394 msgstr ""
12395
12396 #. type: textblock
12397 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5839
12398 msgid ""
12399 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12400 "C<CRLF> character sequences are I<not> returned."
12401 msgstr ""
12402
12403 #. type: textblock
12404 #: ../fish/guestfish-actions.pod:3847
12405 msgid ""
12406 "Note that this function cannot correctly handle binary files (specifically, "
12407 "files containing C<\\0> character which is treated as end of line).  For "
12408 "those you need to use the L</read-file> function which has a more complex "
12409 "interface."
12410 msgstr ""
12411
12412 #. type: =head2
12413 #: ../fish/guestfish-actions.pod:3852
12414 msgid "readdir"
12415 msgstr ""
12416
12417 #. type: verbatim
12418 #: ../fish/guestfish-actions.pod:3854
12419 #, no-wrap
12420 msgid ""
12421 " readdir dir\n"
12422 "\n"
12423 msgstr ""
12424
12425 #. type: textblock
12426 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5859
12427 msgid "This returns the list of directory entries in directory C<dir>."
12428 msgstr ""
12429
12430 #. type: textblock
12431 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5861
12432 msgid ""
12433 "All entries in the directory are returned, including C<.> and C<..>.  The "
12434 "entries are I<not> sorted, but returned in the same order as the underlying "
12435 "filesystem."
12436 msgstr ""
12437
12438 #. type: textblock
12439 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
12440 msgid ""
12441 "Also this call returns basic file type information about each file.  The "
12442 "C<ftyp> field will contain one of the following characters:"
12443 msgstr ""
12444
12445 #. type: =item
12446 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5870
12447 msgid "'b'"
12448 msgstr ""
12449
12450 #. type: textblock
12451 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:5872
12452 msgid "Block special"
12453 msgstr ""
12454
12455 #. type: =item
12456 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:5874
12457 msgid "'c'"
12458 msgstr ""
12459
12460 #. type: textblock
12461 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:5876
12462 msgid "Char special"
12463 msgstr ""
12464
12465 #. type: =item
12466 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:5878
12467 msgid "'d'"
12468 msgstr ""
12469
12470 #. type: textblock
12471 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5880
12472 msgid "Directory"
12473 msgstr ""
12474
12475 #. type: =item
12476 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:5882
12477 msgid "'f'"
12478 msgstr ""
12479
12480 #. type: textblock
12481 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:5884
12482 msgid "FIFO (named pipe)"
12483 msgstr ""
12484
12485 #. type: =item
12486 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5886
12487 msgid "'l'"
12488 msgstr ""
12489
12490 #. type: textblock
12491 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5888
12492 msgid "Symbolic link"
12493 msgstr ""
12494
12495 #. type: =item
12496 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:5890
12497 msgid "'r'"
12498 msgstr ""
12499
12500 #. type: textblock
12501 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
12502 msgid "Regular file"
12503 msgstr ""
12504
12505 #. type: =item
12506 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
12507 msgid "'s'"
12508 msgstr ""
12509
12510 #. type: textblock
12511 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
12512 msgid "Socket"
12513 msgstr ""
12514
12515 #. type: =item
12516 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
12517 msgid "'u'"
12518 msgstr ""
12519
12520 #. type: textblock
12521 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
12522 msgid "Unknown file type"
12523 msgstr ""
12524
12525 #. type: =item
12526 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
12527 msgid "'?'"
12528 msgstr ""
12529
12530 #. type: textblock
12531 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
12532 msgid ""
12533 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12534 msgstr ""
12535
12536 #. type: textblock
12537 #: ../fish/guestfish-actions.pod:3906
12538 msgid ""
12539 "This function is primarily intended for use by programs.  To get a simple "
12540 "list of names, use L</ls>.  To get a printable directory for human "
12541 "consumption, use L</ll>."
12542 msgstr ""
12543
12544 #. type: =head2
12545 #: ../fish/guestfish-actions.pod:3910
12546 msgid "readlink"
12547 msgstr ""
12548
12549 #. type: verbatim
12550 #: ../fish/guestfish-actions.pod:3912
12551 #, no-wrap
12552 msgid ""
12553 " readlink path\n"
12554 "\n"
12555 msgstr ""
12556
12557 #. type: textblock
12558 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5925
12559 msgid "This command reads the target of a symbolic link."
12560 msgstr ""
12561
12562 #. type: =head2
12563 #: ../fish/guestfish-actions.pod:3916
12564 msgid "readlinklist"
12565 msgstr ""
12566
12567 #. type: verbatim
12568 #: ../fish/guestfish-actions.pod:3918
12569 #, no-wrap
12570 msgid ""
12571 " readlinklist path 'names ...'\n"
12572 "\n"
12573 msgstr ""
12574
12575 #. type: textblock
12576 #: ../fish/guestfish-actions.pod:3920 ../src/guestfs-actions.pod:5939
12577 msgid ""
12578 "This call allows you to do a C<readlink> operation on multiple files, where "
12579 "all files are in the directory C<path>.  C<names> is the list of files from "
12580 "this directory."
12581 msgstr ""
12582
12583 #. type: textblock
12584 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:5943
12585 msgid ""
12586 "On return you get a list of strings, with a one-to-one correspondence to the "
12587 "C<names> list.  Each string is the value of the symbolic link."
12588 msgstr ""
12589
12590 #. type: textblock
12591 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:5947
12592 msgid ""
12593 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12594 "result string is the empty string C<\"\">.  However the whole operation is "
12595 "completed even if there were C<readlink(2)> errors, and so you can call this "
12596 "function with names where you don't know if they are symbolic links already "
12597 "(albeit slightly less efficient)."
12598 msgstr ""
12599
12600 #. type: textblock
12601 #: ../fish/guestfish-actions.pod:3935 ../src/guestfs-actions.pod:5954
12602 msgid ""
12603 "This call is intended for programs that want to efficiently list a directory "
12604 "contents without making many round-trips.  Very long directory listings "
12605 "might cause the protocol message size to be exceeded, causing this call to "
12606 "fail.  The caller must split up such requests into smaller groups of names."
12607 msgstr ""
12608
12609 #. type: =head2
12610 #: ../fish/guestfish-actions.pod:3942
12611 msgid "realpath"
12612 msgstr ""
12613
12614 #. type: verbatim
12615 #: ../fish/guestfish-actions.pod:3944
12616 #, no-wrap
12617 msgid ""
12618 " realpath path\n"
12619 "\n"
12620 msgstr ""
12621
12622 #. type: textblock
12623 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5973
12624 msgid ""
12625 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12626 "has no C<.>, C<..> or symbolic link path elements."
12627 msgstr ""
12628
12629 #. type: =head2
12630 #: ../fish/guestfish-actions.pod:3949
12631 msgid "removexattr"
12632 msgstr ""
12633
12634 #. type: verbatim
12635 #: ../fish/guestfish-actions.pod:3951
12636 #, no-wrap
12637 msgid ""
12638 " removexattr xattr path\n"
12639 "\n"
12640 msgstr ""
12641
12642 #. type: textblock
12643 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:5988
12644 msgid ""
12645 "This call removes the extended attribute named C<xattr> of the file C<path>."
12646 msgstr ""
12647
12648 #. type: textblock
12649 #: ../fish/guestfish-actions.pod:3956
12650 msgid "See also: L</lremovexattr>, L<attr(5)>."
12651 msgstr ""
12652
12653 #. type: =head2
12654 #: ../fish/guestfish-actions.pod:3958
12655 msgid "resize2fs"
12656 msgstr ""
12657
12658 #. type: verbatim
12659 #: ../fish/guestfish-actions.pod:3960
12660 #, no-wrap
12661 msgid ""
12662 " resize2fs device\n"
12663 "\n"
12664 msgstr ""
12665
12666 #. type: textblock
12667 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6003
12668 msgid ""
12669 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12670 "underlying device."
12671 msgstr ""
12672
12673 #. type: textblock
12674 #: ../fish/guestfish-actions.pod:3965
12675 msgid ""
12676 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12677 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12678 "gives an error about this and sometimes not.  In any case, it is always safe "
12679 "to call L</e2fsck-f> before calling this function."
12680 msgstr ""
12681
12682 #. type: =head2
12683 #: ../fish/guestfish-actions.pod:3971
12684 msgid "resize2fs-M"
12685 msgstr ""
12686
12687 #. type: verbatim
12688 #: ../fish/guestfish-actions.pod:3973
12689 #, no-wrap
12690 msgid ""
12691 " resize2fs-M device\n"
12692 "\n"
12693 msgstr ""
12694
12695 #. type: textblock
12696 #: ../fish/guestfish-actions.pod:3975
12697 msgid ""
12698 "This command is the same as L</resize2fs>, but the filesystem is resized to "
12699 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
12700 "command."
12701 msgstr ""
12702
12703 #. type: textblock
12704 #: ../fish/guestfish-actions.pod:3979
12705 msgid ""
12706 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
12707 "and read the C<Block size> and C<Block count> values.  These two numbers, "
12708 "multiplied together, give the resulting size of the minimal filesystem in "
12709 "bytes."
12710 msgstr ""
12711
12712 #. type: =head2
12713 #: ../fish/guestfish-actions.pod:3984
12714 msgid "resize2fs-size"
12715 msgstr ""
12716
12717 #. type: verbatim
12718 #: ../fish/guestfish-actions.pod:3986
12719 #, no-wrap
12720 msgid ""
12721 " resize2fs-size device size\n"
12722 "\n"
12723 msgstr ""
12724
12725 #. type: textblock
12726 #: ../fish/guestfish-actions.pod:3988
12727 msgid ""
12728 "This command is the same as L</resize2fs> except that it allows you to "
12729 "specify the new size (in bytes) explicitly."
12730 msgstr ""
12731
12732 #. type: =head2
12733 #: ../fish/guestfish-actions.pod:3991
12734 msgid "rm"
12735 msgstr ""
12736
12737 #. type: verbatim
12738 #: ../fish/guestfish-actions.pod:3993
12739 #, no-wrap
12740 msgid ""
12741 " rm path\n"
12742 "\n"
12743 msgstr ""
12744
12745 #. type: textblock
12746 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6055
12747 msgid "Remove the single file C<path>."
12748 msgstr ""
12749
12750 #. type: =head2
12751 #: ../fish/guestfish-actions.pod:3997
12752 msgid "rm-rf"
12753 msgstr ""
12754
12755 #. type: verbatim
12756 #: ../fish/guestfish-actions.pod:3999
12757 #, no-wrap
12758 msgid ""
12759 " rm-rf path\n"
12760 "\n"
12761 msgstr ""
12762
12763 #. type: textblock
12764 #: ../fish/guestfish-actions.pod:4001 ../src/guestfs-actions.pod:6067
12765 msgid ""
12766 "Remove the file or directory C<path>, recursively removing the contents if "
12767 "its a directory.  This is like the C<rm -rf> shell command."
12768 msgstr ""
12769
12770 #. type: =head2
12771 #: ../fish/guestfish-actions.pod:4005
12772 msgid "rmdir"
12773 msgstr ""
12774
12775 #. type: verbatim
12776 #: ../fish/guestfish-actions.pod:4007
12777 #, no-wrap
12778 msgid ""
12779 " rmdir path\n"
12780 "\n"
12781 msgstr ""
12782
12783 #. type: textblock
12784 #: ../fish/guestfish-actions.pod:4009 ../src/guestfs-actions.pod:6081
12785 msgid "Remove the single directory C<path>."
12786 msgstr ""
12787
12788 #. type: =head2
12789 #: ../fish/guestfish-actions.pod:4011
12790 msgid "rmmountpoint"
12791 msgstr ""
12792
12793 #. type: verbatim
12794 #: ../fish/guestfish-actions.pod:4013
12795 #, no-wrap
12796 msgid ""
12797 " rmmountpoint exemptpath\n"
12798 "\n"
12799 msgstr ""
12800
12801 #. type: textblock
12802 #: ../fish/guestfish-actions.pod:4015
12803 msgid ""
12804 "This calls removes a mountpoint that was previously created with L</"
12805 "mkmountpoint>.  See L</mkmountpoint> for full details."
12806 msgstr ""
12807
12808 #. type: =head2
12809 #: ../fish/guestfish-actions.pod:4019
12810 msgid "scrub-device"
12811 msgstr ""
12812
12813 #. type: verbatim
12814 #: ../fish/guestfish-actions.pod:4021
12815 #, no-wrap
12816 msgid ""
12817 " scrub-device device\n"
12818 "\n"
12819 msgstr ""
12820
12821 #. type: textblock
12822 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6107
12823 msgid ""
12824 "This command writes patterns over C<device> to make data retrieval more "
12825 "difficult."
12826 msgstr ""
12827
12828 #. type: textblock
12829 #: ../fish/guestfish-actions.pod:4026 ../fish/guestfish-actions.pod:4041
12830 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6110
12831 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
12832 msgid ""
12833 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12834 "more details."
12835 msgstr ""
12836
12837 #. type: =head2
12838 #: ../fish/guestfish-actions.pod:4032
12839 msgid "scrub-file"
12840 msgstr ""
12841
12842 #. type: verbatim
12843 #: ../fish/guestfish-actions.pod:4034
12844 #, no-wrap
12845 msgid ""
12846 " scrub-file file\n"
12847 "\n"
12848 msgstr ""
12849
12850 #. type: textblock
12851 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6126
12852 msgid ""
12853 "This command writes patterns over a file to make data retrieval more "
12854 "difficult."
12855 msgstr ""
12856
12857 #. type: textblock
12858 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6129
12859 msgid "The file is I<removed> after scrubbing."
12860 msgstr ""
12861
12862 #. type: =head2
12863 #: ../fish/guestfish-actions.pod:4044
12864 msgid "scrub-freespace"
12865 msgstr ""
12866
12867 #. type: verbatim
12868 #: ../fish/guestfish-actions.pod:4046
12869 #, no-wrap
12870 msgid ""
12871 " scrub-freespace dir\n"
12872 "\n"
12873 msgstr ""
12874
12875 #. type: textblock
12876 #: ../fish/guestfish-actions.pod:4048
12877 msgid ""
12878 "This command creates the directory C<dir> and then fills it with files until "
12879 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
12880 "deletes them.  The intention is to scrub any free space on the partition "
12881 "containing C<dir>."
12882 msgstr ""
12883
12884 #. type: =head2
12885 #: ../fish/guestfish-actions.pod:4057
12886 msgid "set-append"
12887 msgstr ""
12888
12889 #. type: =head2
12890 #: ../fish/guestfish-actions.pod:4059
12891 msgid "append"
12892 msgstr ""
12893
12894 #. type: verbatim
12895 #: ../fish/guestfish-actions.pod:4061
12896 #, no-wrap
12897 msgid ""
12898 " set-append append\n"
12899 "\n"
12900 msgstr ""
12901
12902 #. type: textblock
12903 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6163
12904 msgid ""
12905 "This function is used to add additional options to the guest kernel command "
12906 "line."
12907 msgstr ""
12908
12909 #. type: textblock
12910 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6166
12911 msgid ""
12912 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12913 "environment variable."
12914 msgstr ""
12915
12916 #. type: textblock
12917 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6169
12918 msgid ""
12919 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12920 "(libguestfs always adds a few of its own)."
12921 msgstr ""
12922
12923 #. type: =head2
12924 #: ../fish/guestfish-actions.pod:4072
12925 msgid "set-attach-method"
12926 msgstr ""
12927
12928 #. type: =head2
12929 #: ../fish/guestfish-actions.pod:4074
12930 msgid "attach-method"
12931 msgstr ""
12932
12933 #. type: verbatim
12934 #: ../fish/guestfish-actions.pod:4076
12935 #, no-wrap
12936 msgid ""
12937 " set-attach-method attachmethod\n"
12938 "\n"
12939 msgstr ""
12940
12941 #. type: textblock
12942 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
12943 msgid ""
12944 "Set the method that libguestfs uses to connect to the back end guestfsd "
12945 "daemon.  Possible methods are:"
12946 msgstr ""
12947
12948 #. type: =item
12949 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
12950 #: ../src/guestfs.pod:2687
12951 msgid "C<appliance>"
12952 msgstr ""
12953
12954 #. type: textblock
12955 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
12956 msgid ""
12957 "Launch an appliance and connect to it.  This is the ordinary method and the "
12958 "default."
12959 msgstr ""
12960
12961 #. type: =item
12962 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6192
12963 msgid "C<unix:I<path>>"
12964 msgstr ""
12965
12966 #. type: textblock
12967 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6194
12968 msgid "Connect to the Unix domain socket I<path>."
12969 msgstr ""
12970
12971 #. type: textblock
12972 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6196
12973 msgid ""
12974 "This method lets you connect to an existing daemon or (using virtio-serial) "
12975 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
12976 "RUNNING DAEMONS>."
12977 msgstr ""
12978
12979 #. type: =head2
12980 #: ../fish/guestfish-actions.pod:4098
12981 msgid "set-autosync"
12982 msgstr ""
12983
12984 #. type: =head2
12985 #: ../fish/guestfish-actions.pod:4100
12986 msgid "autosync"
12987 msgstr ""
12988
12989 #. type: verbatim
12990 #: ../fish/guestfish-actions.pod:4102
12991 #, no-wrap
12992 msgid ""
12993 " set-autosync true|false\n"
12994 "\n"
12995 msgstr ""
12996
12997 #. type: textblock
12998 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
12999 msgid ""
13000 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13001 "effort attempt to make filesystems consistent and synchronized when the "
13002 "handle is closed (also if the program exits without closing handles)."
13003 msgstr ""
13004
13005 #. type: textblock
13006 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6217
13007 msgid ""
13008 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13009 "disabled by default)."
13010 msgstr ""
13011
13012 #. type: =head2
13013 #: ../fish/guestfish-actions.pod:4112
13014 msgid "set-direct"
13015 msgstr ""
13016
13017 #. type: =head2
13018 #: ../fish/guestfish-actions.pod:4114
13019 msgid "direct"
13020 msgstr ""
13021
13022 #. type: verbatim
13023 #: ../fish/guestfish-actions.pod:4116
13024 #, no-wrap
13025 msgid ""
13026 " set-direct true|false\n"
13027 "\n"
13028 msgstr ""
13029
13030 #. type: textblock
13031 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6230
13032 msgid ""
13033 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13034 "passed directly through to the appliance once it is launched."
13035 msgstr ""
13036
13037 #. type: textblock
13038 #: ../fish/guestfish-actions.pod:4122
13039 msgid ""
13040 "One consequence of this is that log messages aren't caught by the library "
13041 "and handled by L</set-log-message-callback>, but go straight to stdout."
13042 msgstr ""
13043
13044 #. type: textblock
13045 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6238
13046 msgid "You probably don't want to use this unless you know what you are doing."
13047 msgstr ""
13048
13049 #. type: textblock
13050 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6241
13051 msgid "The default is disabled."
13052 msgstr ""
13053
13054 #. type: =head2
13055 #: ../fish/guestfish-actions.pod:4131
13056 msgid "set-e2label"
13057 msgstr ""
13058
13059 #. type: verbatim
13060 #: ../fish/guestfish-actions.pod:4133
13061 #, no-wrap
13062 msgid ""
13063 " set-e2label device label\n"
13064 "\n"
13065 msgstr ""
13066
13067 #. type: textblock
13068 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6254
13069 msgid ""
13070 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13071 "C<label>.  Filesystem labels are limited to 16 characters."
13072 msgstr ""
13073
13074 #. type: textblock
13075 #: ../fish/guestfish-actions.pod:4139
13076 msgid ""
13077 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13078 "label on a filesystem."
13079 msgstr ""
13080
13081 #. type: =head2
13082 #: ../fish/guestfish-actions.pod:4142
13083 msgid "set-e2uuid"
13084 msgstr ""
13085
13086 #. type: verbatim
13087 #: ../fish/guestfish-actions.pod:4144
13088 #, no-wrap
13089 msgid ""
13090 " set-e2uuid device uuid\n"
13091 "\n"
13092 msgstr ""
13093
13094 #. type: textblock
13095 #: ../fish/guestfish-actions.pod:4146 ../src/guestfs-actions.pod:6272
13096 msgid ""
13097 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13098 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13099 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13100 msgstr ""
13101
13102 #. type: textblock
13103 #: ../fish/guestfish-actions.pod:4151
13104 msgid ""
13105 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13106 "UUID of a filesystem."
13107 msgstr ""
13108
13109 #. type: =head2
13110 #: ../fish/guestfish-actions.pod:4154
13111 msgid "set-memsize"
13112 msgstr ""
13113
13114 #. type: =head2
13115 #: ../fish/guestfish-actions.pod:4156
13116 msgid "memsize"
13117 msgstr ""
13118
13119 #. type: verbatim
13120 #: ../fish/guestfish-actions.pod:4158
13121 #, no-wrap
13122 msgid ""
13123 " set-memsize memsize\n"
13124 "\n"
13125 msgstr ""
13126
13127 #. type: textblock
13128 #: ../fish/guestfish-actions.pod:4160
13129 msgid ""
13130 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13131 "This only has any effect if called before L</launch>."
13132 msgstr ""
13133
13134 #. type: textblock
13135 #: ../fish/guestfish-actions.pod:4164 ../src/guestfs-actions.pod:6294
13136 msgid ""
13137 "You can also change this by setting the environment variable "
13138 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13139 msgstr ""
13140
13141 #. type: =head2
13142 #: ../fish/guestfish-actions.pod:4171
13143 msgid "set-network"
13144 msgstr ""
13145
13146 #. type: =head2
13147 #: ../fish/guestfish-actions.pod:4173
13148 msgid "network"
13149 msgstr ""
13150
13151 #. type: verbatim
13152 #: ../fish/guestfish-actions.pod:4175
13153 #, no-wrap
13154 msgid ""
13155 " set-network true|false\n"
13156 "\n"
13157 msgstr ""
13158
13159 #. type: textblock
13160 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6311
13161 msgid ""
13162 "If C<network> is true, then the network is enabled in the libguestfs "
13163 "appliance.  The default is false."
13164 msgstr ""
13165
13166 #. type: textblock
13167 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6314
13168 msgid ""
13169 "This affects whether commands are able to access the network (see L<guestfs"
13170 "(3)/RUNNING COMMANDS>)."
13171 msgstr ""
13172
13173 #. type: textblock
13174 #: ../fish/guestfish-actions.pod:4183
13175 msgid ""
13176 "You must call this before calling L</launch>, otherwise it has no effect."
13177 msgstr ""
13178
13179 #. type: =head2
13180 #: ../fish/guestfish-actions.pod:4186
13181 msgid "set-path"
13182 msgstr ""
13183
13184 #. type: verbatim
13185 #: ../fish/guestfish-actions.pod:4190
13186 #, no-wrap
13187 msgid ""
13188 " set-path searchpath\n"
13189 "\n"
13190 msgstr ""
13191
13192 #. type: textblock
13193 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13194 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13195 msgstr ""
13196
13197 #. type: textblock
13198 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6332
13199 msgid ""
13200 "The default is C<$libdir/guestfs> unless overridden by setting "
13201 "C<LIBGUESTFS_PATH> environment variable."
13202 msgstr ""
13203
13204 #. type: textblock
13205 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6335
13206 msgid "Setting C<path> to C<NULL> restores the default path."
13207 msgstr ""
13208
13209 #. type: =head2
13210 #: ../fish/guestfish-actions.pod:4199
13211 msgid "set-pgroup"
13212 msgstr ""
13213
13214 #. type: =head2
13215 #: ../fish/guestfish-actions.pod:4201
13216 msgid "pgroup"
13217 msgstr ""
13218
13219 #. type: verbatim
13220 #: ../fish/guestfish-actions.pod:4203
13221 #, no-wrap
13222 msgid ""
13223 " set-pgroup true|false\n"
13224 "\n"
13225 msgstr ""
13226
13227 #. type: textblock
13228 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6347
13229 msgid ""
13230 "If C<pgroup> is true, child processes are placed into their own process "
13231 "group."
13232 msgstr ""
13233
13234 #. type: textblock
13235 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6350
13236 msgid ""
13237 "The practical upshot of this is that signals like C<SIGINT> (from users "
13238 "pressing C<^C>) won't be received by the child process."
13239 msgstr ""
13240
13241 #. type: textblock
13242 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6353
13243 msgid ""
13244 "The default for this flag is false, because usually you want C<^C> to kill "
13245 "the subprocess."
13246 msgstr ""
13247
13248 #. type: =head2
13249 #: ../fish/guestfish-actions.pod:4214
13250 msgid "set-qemu"
13251 msgstr ""
13252
13253 #. type: =head2
13254 #: ../fish/guestfish-actions.pod:4216
13255 msgid "qemu"
13256 msgstr ""
13257
13258 #. type: verbatim
13259 #: ../fish/guestfish-actions.pod:4218
13260 #, no-wrap
13261 msgid ""
13262 " set-qemu qemu\n"
13263 "\n"
13264 msgstr ""
13265
13266 #. type: textblock
13267 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13268 msgid "Set the qemu binary that we will use."
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../fish/guestfish-actions.pod:4222 ../src/guestfs-actions.pod:6368
13273 msgid ""
13274 "The default is chosen when the library was compiled by the configure script."
13275 msgstr ""
13276
13277 #. type: textblock
13278 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
13279 msgid ""
13280 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13281 "variable."
13282 msgstr ""
13283
13284 #. type: textblock
13285 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6374
13286 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13287 msgstr ""
13288
13289 #. type: textblock
13290 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6376
13291 msgid ""
13292 "Note that you should call this function as early as possible after creating "
13293 "the handle.  This is because some pre-launch operations depend on testing "
13294 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13295 "don't retest features, and so you might see inconsistent results.  Using the "
13296 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13297 "the qemu binary at the same time as the handle is created."
13298 msgstr ""
13299
13300 #. type: =head2
13301 #: ../fish/guestfish-actions.pod:4238
13302 msgid "set-recovery-proc"
13303 msgstr ""
13304
13305 #. type: =head2
13306 #: ../fish/guestfish-actions.pod:4240
13307 msgid "recovery-proc"
13308 msgstr ""
13309
13310 #. type: verbatim
13311 #: ../fish/guestfish-actions.pod:4242
13312 #, no-wrap
13313 msgid ""
13314 " set-recovery-proc true|false\n"
13315 "\n"
13316 msgstr ""
13317
13318 #. type: textblock
13319 #: ../fish/guestfish-actions.pod:4244
13320 msgid ""
13321 "If this is called with the parameter C<false> then L</launch> does not "
13322 "create a recovery process.  The purpose of the recovery process is to stop "
13323 "runaway qemu processes in the case where the main program aborts abruptly."
13324 msgstr ""
13325
13326 #. type: textblock
13327 #: ../fish/guestfish-actions.pod:4249
13328 msgid ""
13329 "This only has any effect if called before L</launch>, and the default is "
13330 "true."
13331 msgstr ""
13332
13333 #. type: textblock
13334 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6402
13335 msgid ""
13336 "About the only time when you would want to disable this is if the main "
13337 "process will fork itself into the background (\"daemonize\" itself).  In "
13338 "this case the recovery process thinks that the main program has disappeared "
13339 "and so kills qemu, which is not very helpful."
13340 msgstr ""
13341
13342 #. type: =head2
13343 #: ../fish/guestfish-actions.pod:4258
13344 msgid "set-selinux"
13345 msgstr ""
13346
13347 #. type: =head2
13348 #: ../fish/guestfish-actions.pod:4260
13349 msgid "selinux"
13350 msgstr ""
13351
13352 #. type: verbatim
13353 #: ../fish/guestfish-actions.pod:4262
13354 #, no-wrap
13355 msgid ""
13356 " set-selinux true|false\n"
13357 "\n"
13358 msgstr ""
13359
13360 #. type: textblock
13361 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6418
13362 msgid ""
13363 "This sets the selinux flag that is passed to the appliance at boot time.  "
13364 "The default is C<selinux=0> (disabled)."
13365 msgstr ""
13366
13367 #. type: textblock
13368 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6421
13369 msgid ""
13370 "Note that if SELinux is enabled, it is always in Permissive mode "
13371 "(C<enforcing=0>)."
13372 msgstr ""
13373
13374 #. type: =head2
13375 #: ../fish/guestfish-actions.pod:4273
13376 msgid "set-trace"
13377 msgstr ""
13378
13379 #. type: =head2
13380 #: ../fish/guestfish-actions.pod:4275
13381 msgid "trace"
13382 msgstr ""
13383
13384 #. type: verbatim
13385 #: ../fish/guestfish-actions.pod:4277
13386 #, no-wrap
13387 msgid ""
13388 " set-trace true|false\n"
13389 "\n"
13390 msgstr ""
13391
13392 #. type: textblock
13393 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6437
13394 msgid ""
13395 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
13396 "return values are traced."
13397 msgstr ""
13398
13399 #. type: textblock
13400 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6440
13401 msgid ""
13402 "If you want to trace C API calls into libguestfs (and other libraries) then "
13403 "possibly a better way is to use the external ltrace(1) command."
13404 msgstr ""
13405
13406 #. type: textblock
13407 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6444
13408 msgid ""
13409 "Command traces are disabled unless the environment variable "
13410 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13411 msgstr ""
13412
13413 #. type: textblock
13414 #: ../fish/guestfish-actions.pod:4289
13415 msgid ""
13416 "Trace messages are normally sent to C<stderr>, unless you register a "
13417 "callback to send them somewhere else (see L</set-event-callback>)."
13418 msgstr ""
13419
13420 #. type: =head2
13421 #: ../fish/guestfish-actions.pod:4293
13422 msgid "set-verbose"
13423 msgstr ""
13424
13425 #. type: =head2
13426 #: ../fish/guestfish-actions.pod:4295
13427 msgid "verbose"
13428 msgstr ""
13429
13430 #. type: verbatim
13431 #: ../fish/guestfish-actions.pod:4297
13432 #, no-wrap
13433 msgid ""
13434 " set-verbose true|false\n"
13435 "\n"
13436 msgstr ""
13437
13438 #. type: textblock
13439 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6461
13440 msgid "If C<verbose> is true, this turns on verbose messages."
13441 msgstr ""
13442
13443 #. type: textblock
13444 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6463
13445 msgid ""
13446 "Verbose messages are disabled unless the environment variable "
13447 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13448 msgstr ""
13449
13450 #. type: textblock
13451 #: ../fish/guestfish-actions.pod:4304
13452 msgid ""
13453 "Verbose messages are normally sent to C<stderr>, unless you register a "
13454 "callback to send them somewhere else (see L</set-event-callback>)."
13455 msgstr ""
13456
13457 #. type: =head2
13458 #: ../fish/guestfish-actions.pod:4308
13459 msgid "setcon"
13460 msgstr ""
13461
13462 #. type: verbatim
13463 #: ../fish/guestfish-actions.pod:4310
13464 #, no-wrap
13465 msgid ""
13466 " setcon context\n"
13467 "\n"
13468 msgstr ""
13469
13470 #. type: textblock
13471 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6480
13472 msgid ""
13473 "This sets the SELinux security context of the daemon to the string "
13474 "C<context>."
13475 msgstr ""
13476
13477 #. type: textblock
13478 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6483
13479 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13480 msgstr ""
13481
13482 #. type: =head2
13483 #: ../fish/guestfish-actions.pod:4317
13484 msgid "setxattr"
13485 msgstr ""
13486
13487 #. type: verbatim
13488 #: ../fish/guestfish-actions.pod:4319
13489 #, no-wrap
13490 msgid ""
13491 " setxattr xattr val vallen path\n"
13492 "\n"
13493 msgstr ""
13494
13495 #. type: textblock
13496 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6498
13497 msgid ""
13498 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13499 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13500 msgstr ""
13501
13502 #. type: textblock
13503 #: ../fish/guestfish-actions.pod:4325
13504 msgid "See also: L</lsetxattr>, L<attr(5)>."
13505 msgstr ""
13506
13507 #. type: =head2
13508 #: ../fish/guestfish-actions.pod:4327
13509 msgid "sfdisk"
13510 msgstr ""
13511
13512 #. type: verbatim
13513 #: ../fish/guestfish-actions.pod:4329
13514 #, no-wrap
13515 msgid ""
13516 " sfdisk device cyls heads sectors 'lines ...'\n"
13517 "\n"
13518 msgstr ""
13519
13520 #. type: textblock
13521 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6518
13522 msgid ""
13523 "This is a direct interface to the L<sfdisk(8)> program for creating "
13524 "partitions on block devices."
13525 msgstr ""
13526
13527 #. type: textblock
13528 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6521
13529 msgid "C<device> should be a block device, for example C</dev/sda>."
13530 msgstr ""
13531
13532 #. type: textblock
13533 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6523
13534 msgid ""
13535 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13536 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
13537 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13538 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13539 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13540 "the kernel) cannot work out the right geometry and you will need to tell it."
13541 msgstr ""
13542
13543 #. type: textblock
13544 #: ../fish/guestfish-actions.pod:4344 ../src/guestfs-actions.pod:6531
13545 msgid ""
13546 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13547 "refer to the L<sfdisk(8)> manpage."
13548 msgstr ""
13549
13550 #. type: textblock
13551 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6534
13552 msgid ""
13553 "To create a single partition occupying the whole disk, you would pass "
13554 "C<lines> as a single element list, when the single element being the string "
13555 "C<,> (comma)."
13556 msgstr ""
13557
13558 #. type: textblock
13559 #: ../fish/guestfish-actions.pod:4351
13560 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13561 msgstr ""
13562
13563 #. type: textblock
13564 #: ../fish/guestfish-actions.pod:4357 ../fish/guestfish-actions.pod:4380
13565 #: ../fish/guestfish-actions.pod:4402
13566 msgid ""
13567 "This function is deprecated.  In new code, use the L</part_add> call instead."
13568 msgstr ""
13569
13570 #. type: =head2
13571 #: ../fish/guestfish-actions.pod:4364
13572 msgid "sfdiskM"
13573 msgstr ""
13574
13575 #. type: verbatim
13576 #: ../fish/guestfish-actions.pod:4366
13577 #, no-wrap
13578 msgid ""
13579 " sfdiskM device 'lines ...'\n"
13580 "\n"
13581 msgstr ""
13582
13583 #. type: textblock
13584 #: ../fish/guestfish-actions.pod:4368
13585 msgid ""
13586 "This is a simplified interface to the L</sfdisk> command, where partition "
13587 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13588 "you don't need to specify the cyls, heads and sectors parameters which were "
13589 "rarely if ever used anyway."
13590 msgstr ""
13591
13592 #. type: textblock
13593 #: ../fish/guestfish-actions.pod:4374
13594 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13595 msgstr ""
13596
13597 #. type: =head2
13598 #: ../fish/guestfish-actions.pod:4387
13599 msgid "sfdisk-N"
13600 msgstr ""
13601
13602 #. type: verbatim
13603 #: ../fish/guestfish-actions.pod:4389
13604 #, no-wrap
13605 msgid ""
13606 " sfdisk-N device partnum cyls heads sectors line\n"
13607 "\n"
13608 msgstr ""
13609
13610 #. type: textblock
13611 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6596
13612 msgid ""
13613 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13614 "(note: C<n> counts from 1)."
13615 msgstr ""
13616
13617 #. type: textblock
13618 #: ../fish/guestfish-actions.pod:4394
13619 msgid ""
13620 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13621 "cyls/heads/sectors parameters."
13622 msgstr ""
13623
13624 #. type: textblock
13625 #: ../fish/guestfish-actions.pod:4397
13626 msgid "See also: L</part-add>"
13627 msgstr ""
13628
13629 #. type: =head2
13630 #: ../fish/guestfish-actions.pod:4409
13631 msgid "sfdisk-disk-geometry"
13632 msgstr ""
13633
13634 #. type: verbatim
13635 #: ../fish/guestfish-actions.pod:4411
13636 #, no-wrap
13637 msgid ""
13638 " sfdisk-disk-geometry device\n"
13639 "\n"
13640 msgstr ""
13641
13642 #. type: textblock
13643 #: ../fish/guestfish-actions.pod:4413
13644 msgid ""
13645 "This displays the disk geometry of C<device> read from the partition table.  "
13646 "Especially in the case where the underlying block device has been resized, "
13647 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
13648 "kernel-geometry>)."
13649 msgstr ""
13650
13651 #. type: textblock
13652 #: ../fish/guestfish-actions.pod:4418 ../fish/guestfish-actions.pod:4427
13653 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6645
13654 msgid "The result is in human-readable format, and not designed to be parsed."
13655 msgstr ""
13656
13657 #. type: =head2
13658 #: ../fish/guestfish-actions.pod:4421
13659 msgid "sfdisk-kernel-geometry"
13660 msgstr ""
13661
13662 #. type: verbatim
13663 #: ../fish/guestfish-actions.pod:4423
13664 #, no-wrap
13665 msgid ""
13666 " sfdisk-kernel-geometry device\n"
13667 "\n"
13668 msgstr ""
13669
13670 #. type: textblock
13671 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6643
13672 msgid "This displays the kernel's idea of the geometry of C<device>."
13673 msgstr ""
13674
13675 #. type: =head2
13676 #: ../fish/guestfish-actions.pod:4430
13677 msgid "sfdisk-l"
13678 msgstr ""
13679
13680 #. type: verbatim
13681 #: ../fish/guestfish-actions.pod:4432
13682 #, no-wrap
13683 msgid ""
13684 " sfdisk-l device\n"
13685 "\n"
13686 msgstr ""
13687
13688 #. type: textblock
13689 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6659
13690 msgid ""
13691 "This displays the partition table on C<device>, in the human-readable output "
13692 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13693 msgstr ""
13694
13695 #. type: textblock
13696 #: ../fish/guestfish-actions.pod:4438
13697 msgid "See also: L</part-list>"
13698 msgstr ""
13699
13700 #. type: textblock
13701 #: ../fish/guestfish-actions.pod:4440
13702 msgid ""
13703 "This function is deprecated.  In new code, use the L</part_list> call "
13704 "instead."
13705 msgstr ""
13706
13707 #. type: =head2
13708 #: ../fish/guestfish-actions.pod:4447
13709 msgid "sh"
13710 msgstr ""
13711
13712 #. type: verbatim
13713 #: ../fish/guestfish-actions.pod:4449
13714 #, no-wrap
13715 msgid ""
13716 " sh command\n"
13717 "\n"
13718 msgstr ""
13719
13720 #. type: textblock
13721 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
13722 msgid ""
13723 "This call runs a command from the guest filesystem via the guest's C</bin/"
13724 "sh>."
13725 msgstr ""
13726
13727 #. type: textblock
13728 #: ../fish/guestfish-actions.pod:4454
13729 msgid "This is like L</command>, but passes the command to:"
13730 msgstr ""
13731
13732 #. type: verbatim
13733 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6688
13734 #, no-wrap
13735 msgid ""
13736 " /bin/sh -c \"command\"\n"
13737 "\n"
13738 msgstr ""
13739
13740 #. type: textblock
13741 #: ../fish/guestfish-actions.pod:4458 ../src/guestfs-actions.pod:6690
13742 msgid ""
13743 "Depending on the guest's shell, this usually results in wildcards being "
13744 "expanded, shell expressions being interpolated and so on."
13745 msgstr ""
13746
13747 #. type: textblock
13748 #: ../fish/guestfish-actions.pod:4462
13749 msgid "All the provisos about L</command> apply to this call."
13750 msgstr ""
13751
13752 #. type: =head2
13753 #: ../fish/guestfish-actions.pod:4464
13754 msgid "sh-lines"
13755 msgstr ""
13756
13757 #. type: verbatim
13758 #: ../fish/guestfish-actions.pod:4466
13759 #, no-wrap
13760 msgid ""
13761 " sh-lines command\n"
13762 "\n"
13763 msgstr ""
13764
13765 #. type: textblock
13766 #: ../fish/guestfish-actions.pod:4468
13767 msgid "This is the same as L</sh>, but splits the result into a list of lines."
13768 msgstr ""
13769
13770 #. type: textblock
13771 #: ../fish/guestfish-actions.pod:4471
13772 msgid "See also: L</command-lines>"
13773 msgstr ""
13774
13775 #. type: =head2
13776 #: ../fish/guestfish-actions.pod:4473
13777 msgid "sleep"
13778 msgstr ""
13779
13780 #. type: verbatim
13781 #: ../fish/guestfish-actions.pod:4475
13782 #, no-wrap
13783 msgid ""
13784 " sleep secs\n"
13785 "\n"
13786 msgstr ""
13787
13788 #. type: textblock
13789 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6724
13790 msgid "Sleep for C<secs> seconds."
13791 msgstr ""
13792
13793 #. type: =head2
13794 #: ../fish/guestfish-actions.pod:4479
13795 msgid "stat"
13796 msgstr ""
13797
13798 #. type: verbatim
13799 #: ../fish/guestfish-actions.pod:4481
13800 #, no-wrap
13801 msgid ""
13802 " stat path\n"
13803 "\n"
13804 msgstr ""
13805
13806 #. type: textblock
13807 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6738
13808 msgid "This is the same as the C<stat(2)> system call."
13809 msgstr ""
13810
13811 #. type: =head2
13812 #: ../fish/guestfish-actions.pod:4487
13813 msgid "statvfs"
13814 msgstr ""
13815
13816 #. type: verbatim
13817 #: ../fish/guestfish-actions.pod:4489
13818 #, no-wrap
13819 msgid ""
13820 " statvfs path\n"
13821 "\n"
13822 msgstr ""
13823
13824 #. type: textblock
13825 #: ../fish/guestfish-actions.pod:4491 ../src/guestfs-actions.pod:6752
13826 msgid ""
13827 "Returns file system statistics for any mounted file system.  C<path> should "
13828 "be a file or directory in the mounted file system (typically it is the mount "
13829 "point itself, but it doesn't need to be)."
13830 msgstr ""
13831
13832 #. type: textblock
13833 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6756
13834 msgid "This is the same as the C<statvfs(2)> system call."
13835 msgstr ""
13836
13837 #. type: =head2
13838 #: ../fish/guestfish-actions.pod:4497
13839 msgid "strings"
13840 msgstr ""
13841
13842 #. type: verbatim
13843 #: ../fish/guestfish-actions.pod:4499
13844 #, no-wrap
13845 msgid ""
13846 " strings path\n"
13847 "\n"
13848 msgstr ""
13849
13850 #. type: textblock
13851 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6770
13852 msgid ""
13853 "This runs the L<strings(1)> command on a file and returns the list of "
13854 "printable strings found."
13855 msgstr ""
13856
13857 #. type: =head2
13858 #: ../fish/guestfish-actions.pod:4507
13859 msgid "strings-e"
13860 msgstr ""
13861
13862 #. type: verbatim
13863 #: ../fish/guestfish-actions.pod:4509
13864 #, no-wrap
13865 msgid ""
13866 " strings-e encoding path\n"
13867 "\n"
13868 msgstr ""
13869
13870 #. type: textblock
13871 #: ../fish/guestfish-actions.pod:4511
13872 msgid ""
13873 "This is like the L</strings> command, but allows you to specify the encoding "
13874 "of strings that are looked for in the source file C<path>."
13875 msgstr ""
13876
13877 #. type: textblock
13878 #: ../fish/guestfish-actions.pod:4515 ../src/guestfs-actions.pod:6793
13879 msgid "Allowed encodings are:"
13880 msgstr ""
13881
13882 #. type: =item
13883 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
13884 msgid "s"
13885 msgstr ""
13886
13887 #. type: textblock
13888 #: ../fish/guestfish-actions.pod:4521
13889 msgid ""
13890 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13891 "ISO-8859-X (this is what L</strings> uses)."
13892 msgstr ""
13893
13894 #. type: =item
13895 #: ../fish/guestfish-actions.pod:4524 ../src/guestfs-actions.pod:6802
13896 msgid "S"
13897 msgstr ""
13898
13899 #. type: textblock
13900 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6804
13901 msgid "Single 8-bit-byte characters."
13902 msgstr ""
13903
13904 #. type: =item
13905 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
13906 msgid "b"
13907 msgstr ""
13908
13909 #. type: textblock
13910 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
13911 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13912 msgstr ""
13913
13914 #. type: =item
13915 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
13916 msgid "l (lower case letter L)"
13917 msgstr ""
13918
13919 #. type: textblock
13920 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
13921 msgid ""
13922 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13923 "examining binaries in Windows guests."
13924 msgstr ""
13925
13926 #. type: =item
13927 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6816
13928 msgid "B"
13929 msgstr ""
13930
13931 #. type: textblock
13932 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6818
13933 msgid "32-bit big endian such as UCS-4BE."
13934 msgstr ""
13935
13936 #. type: =item
13937 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:6820
13938 msgid "L"
13939 msgstr ""
13940
13941 #. type: textblock
13942 #: ../fish/guestfish-actions.pod:4544 ../src/guestfs-actions.pod:6822
13943 msgid "32-bit little endian such as UCS-4LE."
13944 msgstr ""
13945
13946 #. type: textblock
13947 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
13948 msgid "The returned strings are transcoded to UTF-8."
13949 msgstr ""
13950
13951 #. type: =head2
13952 #: ../fish/guestfish-actions.pod:4553
13953 msgid "swapoff-device"
13954 msgstr ""
13955
13956 #. type: verbatim
13957 #: ../fish/guestfish-actions.pod:4555
13958 #, no-wrap
13959 msgid ""
13960 " swapoff-device device\n"
13961 "\n"
13962 msgstr ""
13963
13964 #. type: textblock
13965 #: ../fish/guestfish-actions.pod:4557
13966 msgid ""
13967 "This command disables the libguestfs appliance swap device or partition "
13968 "named C<device>.  See L</swapon-device>."
13969 msgstr ""
13970
13971 #. type: =head2
13972 #: ../fish/guestfish-actions.pod:4561
13973 msgid "swapoff-file"
13974 msgstr ""
13975
13976 #. type: verbatim
13977 #: ../fish/guestfish-actions.pod:4563
13978 #, no-wrap
13979 msgid ""
13980 " swapoff-file file\n"
13981 "\n"
13982 msgstr ""
13983
13984 #. type: textblock
13985 #: ../fish/guestfish-actions.pod:4565 ../src/guestfs-actions.pod:6857
13986 msgid "This command disables the libguestfs appliance swap on file."
13987 msgstr ""
13988
13989 #. type: =head2
13990 #: ../fish/guestfish-actions.pod:4567
13991 msgid "swapoff-label"
13992 msgstr ""
13993
13994 #. type: verbatim
13995 #: ../fish/guestfish-actions.pod:4569
13996 #, no-wrap
13997 msgid ""
13998 " swapoff-label label\n"
13999 "\n"
14000 msgstr ""
14001
14002 #. type: textblock
14003 #: ../fish/guestfish-actions.pod:4571 ../src/guestfs-actions.pod:6869
14004 msgid ""
14005 "This command disables the libguestfs appliance swap on labeled swap "
14006 "partition."
14007 msgstr ""
14008
14009 #. type: =head2
14010 #: ../fish/guestfish-actions.pod:4574
14011 msgid "swapoff-uuid"
14012 msgstr ""
14013
14014 #. type: verbatim
14015 #: ../fish/guestfish-actions.pod:4576
14016 #, no-wrap
14017 msgid ""
14018 " swapoff-uuid uuid\n"
14019 "\n"
14020 msgstr ""
14021
14022 #. type: textblock
14023 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6882
14024 msgid ""
14025 "This command disables the libguestfs appliance swap partition with the given "
14026 "UUID."
14027 msgstr ""
14028
14029 #. type: =head2
14030 #: ../fish/guestfish-actions.pod:4581
14031 msgid "swapon-device"
14032 msgstr ""
14033
14034 #. type: verbatim
14035 #: ../fish/guestfish-actions.pod:4583
14036 #, no-wrap
14037 msgid ""
14038 " swapon-device device\n"
14039 "\n"
14040 msgstr ""
14041
14042 #. type: textblock
14043 #: ../fish/guestfish-actions.pod:4585
14044 msgid ""
14045 "This command enables the libguestfs appliance to use the swap device or "
14046 "partition named C<device>.  The increased memory is made available for all "
14047 "commands, for example those run using L</command> or L</sh>."
14048 msgstr ""
14049
14050 #. type: textblock
14051 #: ../fish/guestfish-actions.pod:4590 ../src/guestfs-actions.pod:6900
14052 msgid ""
14053 "Note that you should not swap to existing guest swap partitions unless you "
14054 "know what you are doing.  They may contain hibernation information, or other "
14055 "information that the guest doesn't want you to trash.  You also risk leaking "
14056 "information about the host to the guest this way.  Instead, attach a new "
14057 "host device to the guest and swap on that."
14058 msgstr ""
14059
14060 #. type: =head2
14061 #: ../fish/guestfish-actions.pod:4597
14062 msgid "swapon-file"
14063 msgstr ""
14064
14065 #. type: verbatim
14066 #: ../fish/guestfish-actions.pod:4599
14067 #, no-wrap
14068 msgid ""
14069 " swapon-file file\n"
14070 "\n"
14071 msgstr ""
14072
14073 #. type: textblock
14074 #: ../fish/guestfish-actions.pod:4601
14075 msgid ""
14076 "This command enables swap to a file.  See L</swapon-device> for other notes."
14077 msgstr ""
14078
14079 #. type: =head2
14080 #: ../fish/guestfish-actions.pod:4604
14081 msgid "swapon-label"
14082 msgstr ""
14083
14084 #. type: verbatim
14085 #: ../fish/guestfish-actions.pod:4606
14086 #, no-wrap
14087 msgid ""
14088 " swapon-label label\n"
14089 "\n"
14090 msgstr ""
14091
14092 #. type: textblock
14093 #: ../fish/guestfish-actions.pod:4608
14094 msgid ""
14095 "This command enables swap to a labeled swap partition.  See L</swapon-"
14096 "device> for other notes."
14097 msgstr ""
14098
14099 #. type: =head2
14100 #: ../fish/guestfish-actions.pod:4611
14101 msgid "swapon-uuid"
14102 msgstr ""
14103
14104 #. type: verbatim
14105 #: ../fish/guestfish-actions.pod:4613
14106 #, no-wrap
14107 msgid ""
14108 " swapon-uuid uuid\n"
14109 "\n"
14110 msgstr ""
14111
14112 #. type: textblock
14113 #: ../fish/guestfish-actions.pod:4615
14114 msgid ""
14115 "This command enables swap to a swap partition with the given UUID.  See L</"
14116 "swapon-device> for other notes."
14117 msgstr ""
14118
14119 #. type: =head2
14120 #: ../fish/guestfish-actions.pod:4618
14121 msgid "sync"
14122 msgstr ""
14123
14124 #. type: verbatim
14125 #: ../fish/guestfish-actions.pod:4620
14126 #, no-wrap
14127 msgid ""
14128 " sync\n"
14129 "\n"
14130 msgstr ""
14131
14132 #. type: textblock
14133 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6955
14134 msgid ""
14135 "This syncs the disk, so that any writes are flushed through to the "
14136 "underlying disk image."
14137 msgstr ""
14138
14139 #. type: textblock
14140 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6958
14141 msgid ""
14142 "You should always call this if you have modified a disk image, before "
14143 "closing the handle."
14144 msgstr ""
14145
14146 #. type: =head2
14147 #: ../fish/guestfish-actions.pod:4628
14148 msgid "tail"
14149 msgstr ""
14150
14151 #. type: verbatim
14152 #: ../fish/guestfish-actions.pod:4630
14153 #, no-wrap
14154 msgid ""
14155 " tail path\n"
14156 "\n"
14157 msgstr ""
14158
14159 #. type: textblock
14160 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:6971
14161 msgid ""
14162 "This command returns up to the last 10 lines of a file as a list of strings."
14163 msgstr ""
14164
14165 #. type: =head2
14166 #: ../fish/guestfish-actions.pod:4638
14167 msgid "tail-n"
14168 msgstr ""
14169
14170 #. type: verbatim
14171 #: ../fish/guestfish-actions.pod:4640
14172 #, no-wrap
14173 msgid ""
14174 " tail-n nrlines path\n"
14175 "\n"
14176 msgstr ""
14177
14178 #. type: textblock
14179 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:6990
14180 msgid ""
14181 "If the parameter C<nrlines> is a positive number, this returns the last "
14182 "C<nrlines> lines of the file C<path>."
14183 msgstr ""
14184
14185 #. type: textblock
14186 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:6993
14187 msgid ""
14188 "If the parameter C<nrlines> is a negative number, this returns lines from "
14189 "the file C<path>, starting with the C<-nrlines>th line."
14190 msgstr ""
14191
14192 #. type: =head2
14193 #: ../fish/guestfish-actions.pod:4653
14194 msgid "tar-in"
14195 msgstr ""
14196
14197 #. type: verbatim
14198 #: ../fish/guestfish-actions.pod:4655
14199 #, no-wrap
14200 msgid ""
14201 " tar-in (tarfile|-) directory\n"
14202 "\n"
14203 msgstr ""
14204
14205 #. type: textblock
14206 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7014
14207 msgid ""
14208 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14209 "tar file) into C<directory>."
14210 msgstr ""
14211
14212 #. type: textblock
14213 #: ../fish/guestfish-actions.pod:4660
14214 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14215 msgstr ""
14216
14217 #. type: =head2
14218 #: ../fish/guestfish-actions.pod:4665
14219 msgid "tar-out"
14220 msgstr ""
14221
14222 #. type: verbatim
14223 #: ../fish/guestfish-actions.pod:4667
14224 #, no-wrap
14225 msgid ""
14226 " tar-out directory (tarfile|-)\n"
14227 "\n"
14228 msgstr ""
14229
14230 #. type: textblock
14231 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7031
14232 msgid ""
14233 "This command packs the contents of C<directory> and downloads it to local "
14234 "file C<tarfile>."
14235 msgstr ""
14236
14237 #. type: textblock
14238 #: ../fish/guestfish-actions.pod:4672
14239 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14240 msgstr ""
14241
14242 #. type: =head2
14243 #: ../fish/guestfish-actions.pod:4677
14244 msgid "tgz-in"
14245 msgstr ""
14246
14247 #. type: verbatim
14248 #: ../fish/guestfish-actions.pod:4679
14249 #, no-wrap
14250 msgid ""
14251 " tgz-in (tarball|-) directory\n"
14252 "\n"
14253 msgstr ""
14254
14255 #. type: textblock
14256 #: ../fish/guestfish-actions.pod:4681 ../src/guestfs-actions.pod:7048
14257 msgid ""
14258 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14259 "tar file) into C<directory>."
14260 msgstr ""
14261
14262 #. type: textblock
14263 #: ../fish/guestfish-actions.pod:4684
14264 msgid "To upload an uncompressed tarball, use L</tar-in>."
14265 msgstr ""
14266
14267 #. type: =head2
14268 #: ../fish/guestfish-actions.pod:4688
14269 msgid "tgz-out"
14270 msgstr ""
14271
14272 #. type: verbatim
14273 #: ../fish/guestfish-actions.pod:4690
14274 #, no-wrap
14275 msgid ""
14276 " tgz-out directory (tarball|-)\n"
14277 "\n"
14278 msgstr ""
14279
14280 #. type: textblock
14281 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7064
14282 msgid ""
14283 "This command packs the contents of C<directory> and downloads it to local "
14284 "file C<tarball>."
14285 msgstr ""
14286
14287 #. type: textblock
14288 #: ../fish/guestfish-actions.pod:4695
14289 msgid "To download an uncompressed tarball, use L</tar-out>."
14290 msgstr ""
14291
14292 #. type: =head2
14293 #: ../fish/guestfish-actions.pod:4699
14294 msgid "touch"
14295 msgstr ""
14296
14297 #. type: verbatim
14298 #: ../fish/guestfish-actions.pod:4701
14299 #, no-wrap
14300 msgid ""
14301 " touch path\n"
14302 "\n"
14303 msgstr ""
14304
14305 #. type: textblock
14306 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7079
14307 msgid ""
14308 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14309 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14310 "length file."
14311 msgstr ""
14312
14313 #. type: textblock
14314 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7083
14315 msgid ""
14316 "This command only works on regular files, and will fail on other file types "
14317 "such as directories, symbolic links, block special etc."
14318 msgstr ""
14319
14320 #. type: =head2
14321 #: ../fish/guestfish-actions.pod:4710
14322 msgid "truncate"
14323 msgstr ""
14324
14325 #. type: verbatim
14326 #: ../fish/guestfish-actions.pod:4712
14327 #, no-wrap
14328 msgid ""
14329 " truncate path\n"
14330 "\n"
14331 msgstr ""
14332
14333 #. type: textblock
14334 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7096
14335 msgid ""
14336 "This command truncates C<path> to a zero-length file.  The file must exist "
14337 "already."
14338 msgstr ""
14339
14340 #. type: =head2
14341 #: ../fish/guestfish-actions.pod:4717
14342 msgid "truncate-size"
14343 msgstr ""
14344
14345 #. type: verbatim
14346 #: ../fish/guestfish-actions.pod:4719
14347 #, no-wrap
14348 msgid ""
14349 " truncate-size path size\n"
14350 "\n"
14351 msgstr ""
14352
14353 #. type: textblock
14354 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7110
14355 msgid ""
14356 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14357 "already."
14358 msgstr ""
14359
14360 #. type: textblock
14361 #: ../fish/guestfish-actions.pod:4724
14362 msgid ""
14363 "If the current file size is less than C<size> then the file is extended to "
14364 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14365 "blocks are not allocated for the file until you write to it).  To create a "
14366 "non-sparse file of zeroes, use L</fallocate64> instead."
14367 msgstr ""
14368
14369 #. type: =head2
14370 #: ../fish/guestfish-actions.pod:4730
14371 msgid "tune2fs-l"
14372 msgstr ""
14373
14374 #. type: verbatim
14375 #: ../fish/guestfish-actions.pod:4732
14376 #, no-wrap
14377 msgid ""
14378 " tune2fs-l device\n"
14379 "\n"
14380 msgstr ""
14381
14382 #. type: textblock
14383 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7129
14384 msgid ""
14385 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14386 "C<device>."
14387 msgstr ""
14388
14389 #. type: textblock
14390 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7132
14391 msgid ""
14392 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14393 "for more details.  The list of fields returned isn't clearly defined, and "
14394 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14395 "and the filesystem itself."
14396 msgstr ""
14397
14398 #. type: =head2
14399 #: ../fish/guestfish-actions.pod:4742
14400 msgid "txz-in"
14401 msgstr ""
14402
14403 #. type: verbatim
14404 #: ../fish/guestfish-actions.pod:4744
14405 #, no-wrap
14406 msgid ""
14407 " txz-in (tarball|-) directory\n"
14408 "\n"
14409 msgstr ""
14410
14411 #. type: textblock
14412 #: ../fish/guestfish-actions.pod:4746 ../src/guestfs-actions.pod:7152
14413 msgid ""
14414 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14415 "tar file) into C<directory>."
14416 msgstr ""
14417
14418 #. type: =head2
14419 #: ../fish/guestfish-actions.pod:4751
14420 msgid "txz-out"
14421 msgstr ""
14422
14423 #. type: verbatim
14424 #: ../fish/guestfish-actions.pod:4753
14425 #, no-wrap
14426 msgid ""
14427 " txz-out directory (tarball|-)\n"
14428 "\n"
14429 msgstr ""
14430
14431 #. type: textblock
14432 #: ../fish/guestfish-actions.pod:4755 ../src/guestfs-actions.pod:7166
14433 msgid ""
14434 "This command packs the contents of C<directory> and downloads it to local "
14435 "file C<tarball> (as an xz compressed tar archive)."
14436 msgstr ""
14437
14438 #. type: =head2
14439 #: ../fish/guestfish-actions.pod:4760
14440 msgid "umask"
14441 msgstr ""
14442
14443 #. type: verbatim
14444 #: ../fish/guestfish-actions.pod:4762
14445 #, no-wrap
14446 msgid ""
14447 " umask mask\n"
14448 "\n"
14449 msgstr ""
14450
14451 #. type: textblock
14452 #: ../fish/guestfish-actions.pod:4764 ../src/guestfs-actions.pod:7179
14453 msgid ""
14454 "This function sets the mask used for creating new files and device nodes to "
14455 "C<mask & 0777>."
14456 msgstr ""
14457
14458 #. type: textblock
14459 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
14460 msgid ""
14461 "Typical umask values would be C<022> which creates new files with "
14462 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14463 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14464 msgstr ""
14465
14466 #. type: textblock
14467 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7187
14468 msgid ""
14469 "The default umask is C<022>.  This is important because it means that "
14470 "directories and device nodes will be created with C<0644> or C<0755> mode "
14471 "even if you specify C<0777>."
14472 msgstr ""
14473
14474 #. type: textblock
14475 #: ../fish/guestfish-actions.pod:4776
14476 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
14477 msgstr ""
14478
14479 #. type: textblock
14480 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7194
14481 msgid "This call returns the previous umask."
14482 msgstr ""
14483
14484 #. type: =head2
14485 #: ../fish/guestfish-actions.pod:4781
14486 msgid "umount"
14487 msgstr ""
14488
14489 #. type: =head2
14490 #: ../fish/guestfish-actions.pod:4783
14491 msgid "unmount"
14492 msgstr ""
14493
14494 #. type: verbatim
14495 #: ../fish/guestfish-actions.pod:4785
14496 #, no-wrap
14497 msgid ""
14498 " umount pathordevice\n"
14499 "\n"
14500 msgstr ""
14501
14502 #. type: textblock
14503 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7206
14504 msgid ""
14505 "This unmounts the given filesystem.  The filesystem may be specified either "
14506 "by its mountpoint (path) or the device which contains the filesystem."
14507 msgstr ""
14508
14509 #. type: =head2
14510 #: ../fish/guestfish-actions.pod:4791
14511 msgid "umount-all"
14512 msgstr ""
14513
14514 #. type: =head2
14515 #: ../fish/guestfish-actions.pod:4793
14516 msgid "unmount-all"
14517 msgstr ""
14518
14519 #. type: verbatim
14520 #: ../fish/guestfish-actions.pod:4795
14521 #, no-wrap
14522 msgid ""
14523 " umount-all\n"
14524 "\n"
14525 msgstr ""
14526
14527 #. type: textblock
14528 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7219
14529 msgid "This unmounts all mounted filesystems."
14530 msgstr ""
14531
14532 #. type: textblock
14533 #: ../fish/guestfish-actions.pod:4799 ../src/guestfs-actions.pod:7221
14534 msgid "Some internal mounts are not unmounted by this call."
14535 msgstr ""
14536
14537 #. type: =head2
14538 #: ../fish/guestfish-actions.pod:4801
14539 msgid "upload"
14540 msgstr ""
14541
14542 #. type: verbatim
14543 #: ../fish/guestfish-actions.pod:4803
14544 #, no-wrap
14545 msgid ""
14546 " upload (filename|-) remotefilename\n"
14547 "\n"
14548 msgstr ""
14549
14550 #. type: textblock
14551 #: ../fish/guestfish-actions.pod:4805 ../fish/guestfish-actions.pod:4818
14552 #: ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7258
14553 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14554 msgstr ""
14555
14556 #. type: textblock
14557 #: ../fish/guestfish-actions.pod:4810
14558 msgid "See also L</download>."
14559 msgstr ""
14560
14561 #. type: =head2
14562 #: ../fish/guestfish-actions.pod:4814
14563 msgid "upload-offset"
14564 msgstr ""
14565
14566 #. type: verbatim
14567 #: ../fish/guestfish-actions.pod:4816
14568 #, no-wrap
14569 msgid ""
14570 " upload-offset (filename|-) remotefilename offset\n"
14571 "\n"
14572 msgstr ""
14573
14574 #. type: textblock
14575 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7261
14576 msgid ""
14577 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14578 "The intention is to overwrite parts of existing files or devices, although "
14579 "if a non-existant file is specified then it is created with a \"hole\" "
14580 "before C<offset>.  The size of the data written is implicit in the size of "
14581 "the source C<filename>."
14582 msgstr ""
14583
14584 #. type: textblock
14585 #: ../fish/guestfish-actions.pod:4828
14586 msgid ""
14587 "Note that there is no limit on the amount of data that can be uploaded with "
14588 "this call, unlike with L</pwrite>, and this call always writes the full "
14589 "amount unless an error occurs."
14590 msgstr ""
14591
14592 #. type: textblock
14593 #: ../fish/guestfish-actions.pod:4833
14594 msgid "See also L</upload>, L</pwrite>."
14595 msgstr ""
14596
14597 #. type: =head2
14598 #: ../fish/guestfish-actions.pod:4837
14599 msgid "utimens"
14600 msgstr ""
14601
14602 #. type: verbatim
14603 #: ../fish/guestfish-actions.pod:4839
14604 #, no-wrap
14605 msgid ""
14606 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14607 "\n"
14608 msgstr ""
14609
14610 #. type: textblock
14611 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7294
14612 msgid "This command sets the timestamps of a file with nanosecond precision."
14613 msgstr ""
14614
14615 #. type: textblock
14616 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7297
14617 msgid ""
14618 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14619 "from the epoch."
14620 msgstr ""
14621
14622 #. type: textblock
14623 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7300
14624 msgid ""
14625 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14626 "nanoseconds from the epoch."
14627 msgstr ""
14628
14629 #. type: textblock
14630 #: ../fish/guestfish-actions.pod:4850 ../src/guestfs-actions.pod:7303
14631 msgid ""
14632 "If the C<*nsecs> field contains the special value C<-1> then the "
14633 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14634 "ignored in this case)."
14635 msgstr ""
14636
14637 #. type: textblock
14638 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7307
14639 msgid ""
14640 "If the C<*nsecs> field contains the special value C<-2> then the "
14641 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14642 "in this case)."
14643 msgstr ""
14644
14645 #. type: =head2
14646 #: ../fish/guestfish-actions.pod:4858
14647 msgid "version"
14648 msgstr ""
14649
14650 #. type: verbatim
14651 #: ../fish/guestfish-actions.pod:4860
14652 #, no-wrap
14653 msgid ""
14654 " version\n"
14655 "\n"
14656 msgstr ""
14657
14658 #. type: textblock
14659 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7320
14660 msgid ""
14661 "Return the libguestfs version number that the program is linked against."
14662 msgstr ""
14663
14664 #. type: textblock
14665 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
14666 msgid ""
14667 "Note that because of dynamic linking this is not necessarily the version of "
14668 "libguestfs that you compiled against.  You can compile the program, and then "
14669 "at runtime dynamically link against a completely different C<libguestfs.so> "
14670 "library."
14671 msgstr ""
14672
14673 #. type: textblock
14674 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7328
14675 msgid ""
14676 "This call was added in version C<1.0.58>.  In previous versions of "
14677 "libguestfs there was no way to get the version number.  From C code you can "
14678 "use dynamic linker functions to find out if this symbol exists (if it "
14679 "doesn't, then it's an earlier version)."
14680 msgstr ""
14681
14682 #. type: textblock
14683 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7334
14684 msgid ""
14685 "The call returns a structure with four elements.  The first three (C<major>, "
14686 "C<minor> and C<release>) are numbers and correspond to the usual version "
14687 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14688 "but may be used for distro-specific information."
14689 msgstr ""
14690
14691 #. type: textblock
14692 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7340
14693 msgid ""
14694 "To construct the original version string: C<$major.$minor.$release$extra>"
14695 msgstr ""
14696
14697 #. type: textblock
14698 #: ../fish/guestfish-actions.pod:4885 ../src/guestfs-actions.pod:7343
14699 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14700 msgstr ""
14701
14702 #. type: textblock
14703 #: ../fish/guestfish-actions.pod:4887
14704 msgid ""
14705 "I<Note:> Don't use this call to test for availability of features.  In "
14706 "enterprise distributions we backport features from later versions into "
14707 "earlier versions, making this an unreliable way to test for features.  Use "
14708 "L</available> instead."
14709 msgstr ""
14710
14711 #. type: =head2
14712 #: ../fish/guestfish-actions.pod:4893
14713 msgid "vfs-label"
14714 msgstr ""
14715
14716 #. type: verbatim
14717 #: ../fish/guestfish-actions.pod:4895
14718 #, no-wrap
14719 msgid ""
14720 " vfs-label device\n"
14721 "\n"
14722 msgstr ""
14723
14724 #. type: textblock
14725 #: ../fish/guestfish-actions.pod:4897 ../src/guestfs-actions.pod:7363
14726 msgid "This returns the filesystem label of the filesystem on C<device>."
14727 msgstr ""
14728
14729 #. type: textblock
14730 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7366
14731 msgid "If the filesystem is unlabeled, this returns the empty string."
14732 msgstr ""
14733
14734 #. type: textblock
14735 #: ../fish/guestfish-actions.pod:4902
14736 msgid "To find a filesystem from the label, use L</findfs-label>."
14737 msgstr ""
14738
14739 #. type: =head2
14740 #: ../fish/guestfish-actions.pod:4904
14741 msgid "vfs-type"
14742 msgstr ""
14743
14744 #. type: verbatim
14745 #: ../fish/guestfish-actions.pod:4906
14746 #, no-wrap
14747 msgid ""
14748 " vfs-type device\n"
14749 "\n"
14750 msgstr ""
14751
14752 #. type: textblock
14753 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7381
14754 msgid ""
14755 "This command gets the filesystem type corresponding to the filesystem on "
14756 "C<device>."
14757 msgstr ""
14758
14759 #. type: textblock
14760 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7384
14761 msgid ""
14762 "For most filesystems, the result is the name of the Linux VFS module which "
14763 "would be used to mount this filesystem if you mounted it without specifying "
14764 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14765 msgstr ""
14766
14767 #. type: =head2
14768 #: ../fish/guestfish-actions.pod:4916
14769 msgid "vfs-uuid"
14770 msgstr ""
14771
14772 #. type: verbatim
14773 #: ../fish/guestfish-actions.pod:4918
14774 #, no-wrap
14775 msgid ""
14776 " vfs-uuid device\n"
14777 "\n"
14778 msgstr ""
14779
14780 #. type: textblock
14781 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7400
14782 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14783 msgstr ""
14784
14785 #. type: textblock
14786 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7403
14787 msgid "If the filesystem does not have a UUID, this returns the empty string."
14788 msgstr ""
14789
14790 #. type: textblock
14791 #: ../fish/guestfish-actions.pod:4925
14792 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
14793 msgstr ""
14794
14795 #. type: =head2
14796 #: ../fish/guestfish-actions.pod:4927
14797 msgid "vg-activate"
14798 msgstr ""
14799
14800 #. type: verbatim
14801 #: ../fish/guestfish-actions.pod:4929
14802 #, no-wrap
14803 msgid ""
14804 " vg-activate true|false 'volgroups ...'\n"
14805 "\n"
14806 msgstr ""
14807
14808 #. type: textblock
14809 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
14810 msgid ""
14811 "This command activates or (if C<activate> is false) deactivates all logical "
14812 "volumes in the listed volume groups C<volgroups>."
14813 msgstr ""
14814
14815 #. type: textblock
14816 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7422
14817 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14818 msgstr ""
14819
14820 #. type: textblock
14821 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7424
14822 msgid ""
14823 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14824 "activated or deactivated."
14825 msgstr ""
14826
14827 #. type: =head2
14828 #: ../fish/guestfish-actions.pod:4939
14829 msgid "vg-activate-all"
14830 msgstr ""
14831
14832 #. type: verbatim
14833 #: ../fish/guestfish-actions.pod:4941
14834 #, no-wrap
14835 msgid ""
14836 " vg-activate-all true|false\n"
14837 "\n"
14838 msgstr ""
14839
14840 #. type: textblock
14841 #: ../fish/guestfish-actions.pod:4943 ../src/guestfs-actions.pod:7437
14842 msgid ""
14843 "This command activates or (if C<activate> is false) deactivates all logical "
14844 "volumes in all volume groups."
14845 msgstr ""
14846
14847 #. type: textblock
14848 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7440
14849 msgid "This command is the same as running C<vgchange -a y|n>"
14850 msgstr ""
14851
14852 #. type: =head2
14853 #: ../fish/guestfish-actions.pod:4948
14854 msgid "vgcreate"
14855 msgstr ""
14856
14857 #. type: verbatim
14858 #: ../fish/guestfish-actions.pod:4950
14859 #, no-wrap
14860 msgid ""
14861 " vgcreate volgroup 'physvols ...'\n"
14862 "\n"
14863 msgstr ""
14864
14865 #. type: textblock
14866 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7453
14867 msgid ""
14868 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14869 "of physical volumes C<physvols>."
14870 msgstr ""
14871
14872 #. type: =head2
14873 #: ../fish/guestfish-actions.pod:4955
14874 msgid "vglvuuids"
14875 msgstr ""
14876
14877 #. type: verbatim
14878 #: ../fish/guestfish-actions.pod:4957
14879 #, no-wrap
14880 msgid ""
14881 " vglvuuids vgname\n"
14882 "\n"
14883 msgstr ""
14884
14885 #. type: textblock
14886 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7466
14887 msgid ""
14888 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14889 "volumes created in this volume group."
14890 msgstr ""
14891
14892 #. type: textblock
14893 #: ../fish/guestfish-actions.pod:4962
14894 msgid ""
14895 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
14896 "logical volumes and volume groups."
14897 msgstr ""
14898
14899 #. type: textblock
14900 #: ../fish/guestfish-actions.pod:4965
14901 msgid "See also L</vgpvuuids>."
14902 msgstr ""
14903
14904 #. type: =head2
14905 #: ../fish/guestfish-actions.pod:4967
14906 msgid "vgpvuuids"
14907 msgstr ""
14908
14909 #. type: verbatim
14910 #: ../fish/guestfish-actions.pod:4969
14911 #, no-wrap
14912 msgid ""
14913 " vgpvuuids vgname\n"
14914 "\n"
14915 msgstr ""
14916
14917 #. type: textblock
14918 #: ../fish/guestfish-actions.pod:4971 ../src/guestfs-actions.pod:7486
14919 msgid ""
14920 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14921 "volumes that this volume group resides on."
14922 msgstr ""
14923
14924 #. type: textblock
14925 #: ../fish/guestfish-actions.pod:4974
14926 msgid ""
14927 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
14928 "physical volumes and volume groups."
14929 msgstr ""
14930
14931 #. type: textblock
14932 #: ../fish/guestfish-actions.pod:4977
14933 msgid "See also L</vglvuuids>."
14934 msgstr ""
14935
14936 #. type: =head2
14937 #: ../fish/guestfish-actions.pod:4979
14938 msgid "vgremove"
14939 msgstr ""
14940
14941 #. type: verbatim
14942 #: ../fish/guestfish-actions.pod:4981
14943 #, no-wrap
14944 msgid ""
14945 " vgremove vgname\n"
14946 "\n"
14947 msgstr ""
14948
14949 #. type: textblock
14950 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7506
14951 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14952 msgstr ""
14953
14954 #. type: textblock
14955 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7508
14956 msgid ""
14957 "This also forcibly removes all logical volumes in the volume group (if any)."
14958 msgstr ""
14959
14960 #. type: =head2
14961 #: ../fish/guestfish-actions.pod:4988
14962 msgid "vgrename"
14963 msgstr ""
14964
14965 #. type: verbatim
14966 #: ../fish/guestfish-actions.pod:4990
14967 #, no-wrap
14968 msgid ""
14969 " vgrename volgroup newvolgroup\n"
14970 "\n"
14971 msgstr ""
14972
14973 #. type: textblock
14974 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7522
14975 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14976 msgstr ""
14977
14978 #. type: =head2
14979 #: ../fish/guestfish-actions.pod:4994
14980 msgid "vgs"
14981 msgstr ""
14982
14983 #. type: verbatim
14984 #: ../fish/guestfish-actions.pod:4996
14985 #, no-wrap
14986 msgid ""
14987 " vgs\n"
14988 "\n"
14989 msgstr ""
14990
14991 #. type: textblock
14992 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7533
14993 msgid ""
14994 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14995 "> command."
14996 msgstr ""
14997
14998 #. type: textblock
14999 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7536
15000 msgid ""
15001 "This returns a list of just the volume group names that were detected (eg. "
15002 "C<VolGroup00>)."
15003 msgstr ""
15004
15005 #. type: textblock
15006 #: ../fish/guestfish-actions.pod:5004
15007 msgid "See also L</vgs-full>."
15008 msgstr ""
15009
15010 #. type: =head2
15011 #: ../fish/guestfish-actions.pod:5006
15012 msgid "vgs-full"
15013 msgstr ""
15014
15015 #. type: verbatim
15016 #: ../fish/guestfish-actions.pod:5008
15017 #, no-wrap
15018 msgid ""
15019 " vgs-full\n"
15020 "\n"
15021 msgstr ""
15022
15023 #. type: textblock
15024 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7552
15025 msgid ""
15026 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15027 "> command.  The \"full\" version includes all fields."
15028 msgstr ""
15029
15030 #. type: =head2
15031 #: ../fish/guestfish-actions.pod:5013
15032 msgid "vgscan"
15033 msgstr ""
15034
15035 #. type: verbatim
15036 #: ../fish/guestfish-actions.pod:5015
15037 #, no-wrap
15038 msgid ""
15039 " vgscan\n"
15040 "\n"
15041 msgstr ""
15042
15043 #. type: textblock
15044 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7566
15045 msgid ""
15046 "This rescans all block devices and rebuilds the list of LVM physical "
15047 "volumes, volume groups and logical volumes."
15048 msgstr ""
15049
15050 #. type: =head2
15051 #: ../fish/guestfish-actions.pod:5020
15052 msgid "vguuid"
15053 msgstr ""
15054
15055 #. type: verbatim
15056 #: ../fish/guestfish-actions.pod:5022
15057 #, no-wrap
15058 msgid ""
15059 " vguuid vgname\n"
15060 "\n"
15061 msgstr ""
15062
15063 #. type: textblock
15064 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7579
15065 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15066 msgstr ""
15067
15068 #. type: =head2
15069 #: ../fish/guestfish-actions.pod:5026
15070 msgid "wc-c"
15071 msgstr ""
15072
15073 #. type: verbatim
15074 #: ../fish/guestfish-actions.pod:5028
15075 #, no-wrap
15076 msgid ""
15077 " wc-c path\n"
15078 "\n"
15079 msgstr ""
15080
15081 #. type: textblock
15082 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7619
15083 msgid ""
15084 "This command counts the characters in a file, using the C<wc -c> external "
15085 "command."
15086 msgstr ""
15087
15088 #. type: =head2
15089 #: ../fish/guestfish-actions.pod:5033
15090 msgid "wc-l"
15091 msgstr ""
15092
15093 #. type: verbatim
15094 #: ../fish/guestfish-actions.pod:5035
15095 #, no-wrap
15096 msgid ""
15097 " wc-l path\n"
15098 "\n"
15099 msgstr ""
15100
15101 #. type: textblock
15102 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7632
15103 msgid ""
15104 "This command counts the lines in a file, using the C<wc -l> external command."
15105 msgstr ""
15106
15107 #. type: =head2
15108 #: ../fish/guestfish-actions.pod:5040
15109 msgid "wc-w"
15110 msgstr ""
15111
15112 #. type: verbatim
15113 #: ../fish/guestfish-actions.pod:5042
15114 #, no-wrap
15115 msgid ""
15116 " wc-w path\n"
15117 "\n"
15118 msgstr ""
15119
15120 #. type: textblock
15121 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7645
15122 msgid ""
15123 "This command counts the words in a file, using the C<wc -w> external command."
15124 msgstr ""
15125
15126 #. type: =head2
15127 #: ../fish/guestfish-actions.pod:5047
15128 msgid "write"
15129 msgstr ""
15130
15131 #. type: verbatim
15132 #: ../fish/guestfish-actions.pod:5049
15133 #, no-wrap
15134 msgid ""
15135 " write path content\n"
15136 "\n"
15137 msgstr ""
15138
15139 #. type: textblock
15140 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7660
15141 msgid ""
15142 "This call creates a file called C<path>.  The content of the file is the "
15143 "string C<content> (which can contain any 8 bit data)."
15144 msgstr ""
15145
15146 #. type: textblock
15147 #: ../fish/guestfish-actions.pod:5054
15148 msgid "See also L</write-append>."
15149 msgstr ""
15150
15151 #. type: =head2
15152 #: ../fish/guestfish-actions.pod:5059
15153 msgid "write-append"
15154 msgstr ""
15155
15156 #. type: verbatim
15157 #: ../fish/guestfish-actions.pod:5061
15158 #, no-wrap
15159 msgid ""
15160 " write-append path content\n"
15161 "\n"
15162 msgstr ""
15163
15164 #. type: textblock
15165 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7680
15166 msgid ""
15167 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15168 "not exist, then a new file is created."
15169 msgstr ""
15170
15171 #. type: textblock
15172 #: ../fish/guestfish-actions.pod:5066
15173 msgid "See also L</write>."
15174 msgstr ""
15175
15176 #. type: =head2
15177 #: ../fish/guestfish-actions.pod:5071
15178 msgid "write-file"
15179 msgstr ""
15180
15181 #. type: verbatim
15182 #: ../fish/guestfish-actions.pod:5073
15183 #, no-wrap
15184 msgid ""
15185 " write-file path content size\n"
15186 "\n"
15187 msgstr ""
15188
15189 #. type: textblock
15190 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7700
15191 msgid ""
15192 "This call creates a file called C<path>.  The contents of the file is the "
15193 "string C<content> (which can contain any 8 bit data), with length C<size>."
15194 msgstr ""
15195
15196 #. type: textblock
15197 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7704
15198 msgid ""
15199 "As a special case, if C<size> is C<0> then the length is calculated using "
15200 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15201 msgstr ""
15202
15203 #. type: textblock
15204 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7708
15205 msgid ""
15206 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15207 "I<not> work, even if the length is specified."
15208 msgstr ""
15209
15210 #. type: textblock
15211 #: ../fish/guestfish-actions.pod:5089
15212 msgid ""
15213 "This function is deprecated.  In new code, use the L</write> call instead."
15214 msgstr ""
15215
15216 #. type: =head2
15217 #: ../fish/guestfish-actions.pod:5096
15218 msgid "zegrep"
15219 msgstr ""
15220
15221 #. type: verbatim
15222 #: ../fish/guestfish-actions.pod:5098
15223 #, no-wrap
15224 msgid ""
15225 " zegrep regex path\n"
15226 "\n"
15227 msgstr ""
15228
15229 #. type: textblock
15230 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7732
15231 msgid ""
15232 "This calls the external C<zegrep> program and returns the matching lines."
15233 msgstr ""
15234
15235 #. type: =head2
15236 #: ../fish/guestfish-actions.pod:5106
15237 msgid "zegrepi"
15238 msgstr ""
15239
15240 #. type: verbatim
15241 #: ../fish/guestfish-actions.pod:5108
15242 #, no-wrap
15243 msgid ""
15244 " zegrepi regex path\n"
15245 "\n"
15246 msgstr ""
15247
15248 #. type: textblock
15249 #: ../fish/guestfish-actions.pod:5110 ../src/guestfs-actions.pod:7751
15250 msgid ""
15251 "This calls the external C<zegrep -i> program and returns the matching lines."
15252 msgstr ""
15253
15254 #. type: =head2
15255 #: ../fish/guestfish-actions.pod:5116
15256 msgid "zero"
15257 msgstr ""
15258
15259 #. type: verbatim
15260 #: ../fish/guestfish-actions.pod:5118
15261 #, no-wrap
15262 msgid ""
15263 " zero device\n"
15264 "\n"
15265 msgstr ""
15266
15267 #. type: textblock
15268 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7769
15269 msgid "This command writes zeroes over the first few blocks of C<device>."
15270 msgstr ""
15271
15272 #. type: textblock
15273 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7771
15274 msgid ""
15275 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15276 "securely wipe the device).  It should be sufficient to remove any partition "
15277 "tables, filesystem superblocks and so on."
15278 msgstr ""
15279
15280 #. type: textblock
15281 #: ../fish/guestfish-actions.pod:5126 ../fish/guestfish-actions.pod:5141
15282 #: ../src/guestfs-actions.pod:7775 ../src/guestfs-actions.pod:7801
15283 msgid ""
15284 "If blocks are already zero, then this command avoids writing zeroes.  This "
15285 "prevents the underlying device from becoming non-sparse or growing "
15286 "unnecessarily."
15287 msgstr ""
15288
15289 #. type: textblock
15290 #: ../fish/guestfish-actions.pod:5130
15291 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
15292 msgstr ""
15293
15294 #. type: =head2
15295 #: ../fish/guestfish-actions.pod:5133
15296 msgid "zero-device"
15297 msgstr ""
15298
15299 #. type: verbatim
15300 #: ../fish/guestfish-actions.pod:5135
15301 #, no-wrap
15302 msgid ""
15303 " zero-device device\n"
15304 "\n"
15305 msgstr ""
15306
15307 #. type: textblock
15308 #: ../fish/guestfish-actions.pod:5137
15309 msgid ""
15310 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
15311 "which just zeroes the first few blocks of a device."
15312 msgstr ""
15313
15314 #. type: =head2
15315 #: ../fish/guestfish-actions.pod:5148
15316 msgid "zerofree"
15317 msgstr ""
15318
15319 #. type: verbatim
15320 #: ../fish/guestfish-actions.pod:5150
15321 #, no-wrap
15322 msgid ""
15323 " zerofree device\n"
15324 "\n"
15325 msgstr ""
15326
15327 #. type: textblock
15328 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7823
15329 msgid ""
15330 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15331 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15332 "possible to compress the filesystem more effectively."
15333 msgstr ""
15334
15335 #. type: textblock
15336 #: ../fish/guestfish-actions.pod:5157 ../src/guestfs-actions.pod:7828
15337 msgid "You should B<not> run this program if the filesystem is mounted."
15338 msgstr ""
15339
15340 #. type: textblock
15341 #: ../fish/guestfish-actions.pod:5160 ../src/guestfs-actions.pod:7831
15342 msgid ""
15343 "It is possible that using this program can damage the filesystem or data on "
15344 "the filesystem."
15345 msgstr ""
15346
15347 #. type: =head2
15348 #: ../fish/guestfish-actions.pod:5163
15349 msgid "zfgrep"
15350 msgstr ""
15351
15352 #. type: verbatim
15353 #: ../fish/guestfish-actions.pod:5165
15354 #, no-wrap
15355 msgid ""
15356 " zfgrep pattern path\n"
15357 "\n"
15358 msgstr ""
15359
15360 #. type: textblock
15361 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:7845
15362 msgid ""
15363 "This calls the external C<zfgrep> program and returns the matching lines."
15364 msgstr ""
15365
15366 #. type: =head2
15367 #: ../fish/guestfish-actions.pod:5173
15368 msgid "zfgrepi"
15369 msgstr ""
15370
15371 #. type: verbatim
15372 #: ../fish/guestfish-actions.pod:5175
15373 #, no-wrap
15374 msgid ""
15375 " zfgrepi pattern path\n"
15376 "\n"
15377 msgstr ""
15378
15379 #. type: textblock
15380 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7864
15381 msgid ""
15382 "This calls the external C<zfgrep -i> program and returns the matching lines."
15383 msgstr ""
15384
15385 #. type: =head2
15386 #: ../fish/guestfish-actions.pod:5183
15387 msgid "zfile"
15388 msgstr ""
15389
15390 #. type: verbatim
15391 #: ../fish/guestfish-actions.pod:5185
15392 #, no-wrap
15393 msgid ""
15394 " zfile meth path\n"
15395 "\n"
15396 msgstr ""
15397
15398 #. type: textblock
15399 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7883
15400 msgid ""
15401 "This command runs C<file> after first decompressing C<path> using C<method>."
15402 msgstr ""
15403
15404 #. type: textblock
15405 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7886
15406 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15407 msgstr ""
15408
15409 #. type: textblock
15410 #: ../fish/guestfish-actions.pod:5192
15411 msgid ""
15412 "Since 1.0.63, use L</file> instead which can now process compressed files."
15413 msgstr ""
15414
15415 #. type: textblock
15416 #: ../fish/guestfish-actions.pod:5195
15417 msgid ""
15418 "This function is deprecated.  In new code, use the L</file> call instead."
15419 msgstr ""
15420
15421 #. type: =head2
15422 #: ../fish/guestfish-actions.pod:5202
15423 msgid "zgrep"
15424 msgstr ""
15425
15426 #. type: verbatim
15427 #: ../fish/guestfish-actions.pod:5204
15428 #, no-wrap
15429 msgid ""
15430 " zgrep regex path\n"
15431 "\n"
15432 msgstr ""
15433
15434 #. type: textblock
15435 #: ../fish/guestfish-actions.pod:5206 ../src/guestfs-actions.pod:7910
15436 msgid ""
15437 "This calls the external C<zgrep> program and returns the matching lines."
15438 msgstr ""
15439
15440 #. type: =head2
15441 #: ../fish/guestfish-actions.pod:5212
15442 msgid "zgrepi"
15443 msgstr ""
15444
15445 #. type: verbatim
15446 #: ../fish/guestfish-actions.pod:5214
15447 #, no-wrap
15448 msgid ""
15449 " zgrepi regex path\n"
15450 "\n"
15451 msgstr ""
15452
15453 #. type: textblock
15454 #: ../fish/guestfish-actions.pod:5216 ../src/guestfs-actions.pod:7929
15455 msgid ""
15456 "This calls the external C<zgrep -i> program and returns the matching lines."
15457 msgstr ""
15458
15459 #. type: =head2
15460 #: ../fish/guestfish-commands.pod:1
15461 msgid "alloc"
15462 msgstr ""
15463
15464 #. type: =head2
15465 #: ../fish/guestfish-commands.pod:3
15466 msgid "allocate"
15467 msgstr ""
15468
15469 #. type: verbatim
15470 #: ../fish/guestfish-commands.pod:5
15471 #, no-wrap
15472 msgid ""
15473 " alloc filename size\n"
15474 "\n"
15475 msgstr ""
15476
15477 #. type: textblock
15478 #: ../fish/guestfish-commands.pod:7
15479 msgid ""
15480 "This creates an empty (zeroed) file of the given size, and then adds so it "
15481 "can be further examined."
15482 msgstr ""
15483
15484 #. type: textblock
15485 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
15486 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
15487 msgstr ""
15488
15489 #. type: textblock
15490 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
15491 msgid "Size can be specified using standard suffixes, eg. C<1M>."
15492 msgstr ""
15493
15494 #. type: textblock
15495 #: ../fish/guestfish-commands.pod:14
15496 msgid ""
15497 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
15498 "image, see L</PREPARED DISK IMAGES>."
15499 msgstr ""
15500
15501 #. type: =head2
15502 #: ../fish/guestfish-commands.pod:17
15503 msgid "copy-in"
15504 msgstr ""
15505
15506 #. type: verbatim
15507 #: ../fish/guestfish-commands.pod:19
15508 #, no-wrap
15509 msgid ""
15510 " copy-in local [local ...] /remotedir\n"
15511 "\n"
15512 msgstr ""
15513
15514 #. type: textblock
15515 #: ../fish/guestfish-commands.pod:21
15516 msgid ""
15517 "C<copy-in> copies local files or directories recursively into the disk "
15518 "image, placing them in the directory called C</remotedir> (which must "
15519 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
15520 "other commands as necessary."
15521 msgstr ""
15522
15523 #. type: textblock
15524 #: ../fish/guestfish-commands.pod:26
15525 msgid ""
15526 "Multiple local files and directories can be specified, but the last "
15527 "parameter must always be a remote directory.  Wildcards cannot be used."
15528 msgstr ""
15529
15530 #. type: =head2
15531 #: ../fish/guestfish-commands.pod:30
15532 msgid "copy-out"
15533 msgstr ""
15534
15535 #. type: verbatim
15536 #: ../fish/guestfish-commands.pod:32
15537 #, no-wrap
15538 msgid ""
15539 " copy-out remote [remote ...] localdir\n"
15540 "\n"
15541 msgstr ""
15542
15543 #. type: textblock
15544 #: ../fish/guestfish-commands.pod:34
15545 msgid ""
15546 "C<copy-out> copies remote files or directories recursively out of the disk "
15547 "image, placing them on the host disk in a local directory called C<localdir> "
15548 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
15549 "download>, L</tar-out> and other commands as necessary."
15550 msgstr ""
15551
15552 #. type: textblock
15553 #: ../fish/guestfish-commands.pod:40
15554 msgid ""
15555 "Multiple remote files and directories can be specified, but the last "
15556 "parameter must always be a local directory.  To download to the current "
15557 "directory, use C<.> as in:"
15558 msgstr ""
15559
15560 #. type: verbatim
15561 #: ../fish/guestfish-commands.pod:44
15562 #, no-wrap
15563 msgid ""
15564 " copy-out /home .\n"
15565 "\n"
15566 msgstr ""
15567
15568 #. type: textblock
15569 #: ../fish/guestfish-commands.pod:46
15570 msgid ""
15571 "Wildcards cannot be used in the ordinary command, but you can use them with "
15572 "the help of L</glob> like this:"
15573 msgstr ""
15574
15575 #. type: verbatim
15576 #: ../fish/guestfish-commands.pod:49
15577 #, no-wrap
15578 msgid ""
15579 " glob copy-out /home/* .\n"
15580 "\n"
15581 msgstr ""
15582
15583 #. type: =head2
15584 #: ../fish/guestfish-commands.pod:51
15585 msgid "display"
15586 msgstr ""
15587
15588 #. type: verbatim
15589 #: ../fish/guestfish-commands.pod:53
15590 #, no-wrap
15591 msgid ""
15592 " display filename\n"
15593 "\n"
15594 msgstr ""
15595
15596 #. type: textblock
15597 #: ../fish/guestfish-commands.pod:55
15598 msgid ""
15599 "Use C<display> (a graphical display program) to display an image file.  It "
15600 "downloads the file, and runs C<display> on it."
15601 msgstr ""
15602
15603 #. type: textblock
15604 #: ../fish/guestfish-commands.pod:58
15605 msgid ""
15606 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15607 "environment variable.  For example to use the GNOME display program:"
15608 msgstr ""
15609
15610 #. type: verbatim
15611 #: ../fish/guestfish-commands.pod:61
15612 #, no-wrap
15613 msgid ""
15614 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15615 "\n"
15616 msgstr ""
15617
15618 #. type: textblock
15619 #: ../fish/guestfish-commands.pod:63
15620 msgid "See also L<display(1)>."
15621 msgstr ""
15622
15623 #. type: =head2
15624 #: ../fish/guestfish-commands.pod:65
15625 msgid "echo"
15626 msgstr ""
15627
15628 #. type: verbatim
15629 #: ../fish/guestfish-commands.pod:67
15630 #, no-wrap
15631 msgid ""
15632 " echo [params ...]\n"
15633 "\n"
15634 msgstr ""
15635
15636 #. type: textblock
15637 #: ../fish/guestfish-commands.pod:69
15638 msgid "This echos the parameters to the terminal."
15639 msgstr ""
15640
15641 #. type: =head2
15642 #: ../fish/guestfish-commands.pod:71
15643 msgid "edit"
15644 msgstr ""
15645
15646 #. type: =head2
15647 #: ../fish/guestfish-commands.pod:73
15648 msgid "vi"
15649 msgstr ""
15650
15651 #. type: =head2
15652 #: ../fish/guestfish-commands.pod:75
15653 msgid "emacs"
15654 msgstr ""
15655
15656 #. type: verbatim
15657 #: ../fish/guestfish-commands.pod:77
15658 #, no-wrap
15659 msgid ""
15660 " edit filename\n"
15661 "\n"
15662 msgstr ""
15663
15664 #. type: textblock
15665 #: ../fish/guestfish-commands.pod:79
15666 msgid ""
15667 "This is used to edit a file.  It downloads the file, edits it locally using "
15668 "your editor, then uploads the result."
15669 msgstr ""
15670
15671 #. type: textblock
15672 #: ../fish/guestfish-commands.pod:82
15673 msgid ""
15674 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
15675 "or C<emacs> you will get those corresponding editors."
15676 msgstr ""
15677
15678 #. type: =head2
15679 #: ../fish/guestfish-commands.pod:86
15680 msgid "glob"
15681 msgstr ""
15682
15683 #. type: verbatim
15684 #: ../fish/guestfish-commands.pod:88
15685 #, no-wrap
15686 msgid ""
15687 " glob command args...\n"
15688 "\n"
15689 msgstr ""
15690
15691 #. type: textblock
15692 #: ../fish/guestfish-commands.pod:90
15693 msgid ""
15694 "Expand wildcards in any paths in the args list, and run C<command> "
15695 "repeatedly on each matching path."
15696 msgstr ""
15697
15698 #. type: textblock
15699 #: ../fish/guestfish-commands.pod:93
15700 msgid "See L</WILDCARDS AND GLOBBING>."
15701 msgstr ""
15702
15703 #. type: =head2
15704 #: ../fish/guestfish-commands.pod:95
15705 msgid "hexedit"
15706 msgstr ""
15707
15708 #. type: verbatim
15709 #: ../fish/guestfish-commands.pod:97
15710 #, no-wrap
15711 msgid ""
15712 " hexedit <filename|device>\n"
15713 " hexedit <filename|device> <max>\n"
15714 " hexedit <filename|device> <start> <max>\n"
15715 "\n"
15716 msgstr ""
15717
15718 #. type: textblock
15719 #: ../fish/guestfish-commands.pod:101
15720 msgid ""
15721 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
15722 "device."
15723 msgstr ""
15724
15725 #. type: textblock
15726 #: ../fish/guestfish-commands.pod:104
15727 msgid ""
15728 "This command works by downloading potentially the whole file or device, "
15729 "editing it locally, then uploading it.  If the file or device is large, you "
15730 "have to specify which part you wish to edit by using C<max> and/or C<start> "
15731 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
15732 "usual modifiers allowed such as C<1M> (1 megabyte)."
15733 msgstr ""
15734
15735 #. type: textblock
15736 #: ../fish/guestfish-commands.pod:111
15737 msgid "For example to edit the first few sectors of a disk you might do:"
15738 msgstr ""
15739
15740 #. type: verbatim
15741 #: ../fish/guestfish-commands.pod:114
15742 #, no-wrap
15743 msgid ""
15744 " hexedit /dev/sda 1M\n"
15745 "\n"
15746 msgstr ""
15747
15748 #. type: textblock
15749 #: ../fish/guestfish-commands.pod:116
15750 msgid ""
15751 "which would allow you to edit anywhere within the first megabyte of the disk."
15752 msgstr ""
15753
15754 #. type: textblock
15755 #: ../fish/guestfish-commands.pod:119
15756 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
15757 msgstr ""
15758
15759 #. type: verbatim
15760 #: ../fish/guestfish-commands.pod:121
15761 #, no-wrap
15762 msgid ""
15763 " hexedit /dev/sda1 0x400 0x400\n"
15764 "\n"
15765 msgstr ""
15766
15767 #. type: textblock
15768 #: ../fish/guestfish-commands.pod:123
15769 msgid "(assuming the superblock is in the standard location)."
15770 msgstr ""
15771
15772 #. type: textblock
15773 #: ../fish/guestfish-commands.pod:125
15774 msgid ""
15775 "This command requires the external L<hexedit(1)> program.  You can specify "
15776 "another program to use by setting the C<HEXEDITOR> environment variable."
15777 msgstr ""
15778
15779 #. type: textblock
15780 #: ../fish/guestfish-commands.pod:129
15781 msgid "See also L</hexdump>."
15782 msgstr ""
15783
15784 #. type: =head2
15785 #: ../fish/guestfish-commands.pod:131
15786 msgid "lcd"
15787 msgstr ""
15788
15789 #. type: verbatim
15790 #: ../fish/guestfish-commands.pod:133
15791 #, no-wrap
15792 msgid ""
15793 " lcd directory\n"
15794 "\n"
15795 msgstr ""
15796
15797 #. type: textblock
15798 #: ../fish/guestfish-commands.pod:135
15799 msgid ""
15800 "Change the local directory, ie. the current directory of guestfish itself."
15801 msgstr ""
15802
15803 #. type: textblock
15804 #: ../fish/guestfish-commands.pod:138
15805 msgid "Note that C<!cd> won't do what you might expect."
15806 msgstr ""
15807
15808 #. type: =head2
15809 #: ../fish/guestfish-commands.pod:140
15810 msgid "man"
15811 msgstr ""
15812
15813 #. type: =head2
15814 #: ../fish/guestfish-commands.pod:142
15815 msgid "manual"
15816 msgstr ""
15817
15818 #. type: verbatim
15819 #: ../fish/guestfish-commands.pod:144
15820 #, no-wrap
15821 msgid ""
15822 "  man\n"
15823 "\n"
15824 msgstr ""
15825
15826 #. type: textblock
15827 #: ../fish/guestfish-commands.pod:146
15828 msgid "Opens the manual page for guestfish."
15829 msgstr ""
15830
15831 #. type: =head2
15832 #: ../fish/guestfish-commands.pod:148
15833 msgid "more"
15834 msgstr ""
15835
15836 #. type: =head2
15837 #: ../fish/guestfish-commands.pod:150
15838 msgid "less"
15839 msgstr ""
15840
15841 #. type: verbatim
15842 #: ../fish/guestfish-commands.pod:152
15843 #, no-wrap
15844 msgid ""
15845 " more filename\n"
15846 "\n"
15847 msgstr ""
15848
15849 #. type: verbatim
15850 #: ../fish/guestfish-commands.pod:154
15851 #, no-wrap
15852 msgid ""
15853 " less filename\n"
15854 "\n"
15855 msgstr ""
15856
15857 #. type: textblock
15858 #: ../fish/guestfish-commands.pod:156
15859 msgid "This is used to view a file."
15860 msgstr ""
15861
15862 #. type: textblock
15863 #: ../fish/guestfish-commands.pod:158
15864 msgid ""
15865 "The default viewer is C<$PAGER>.  However if you use the alternate command "
15866 "C<less> you will get the C<less> command specifically."
15867 msgstr ""
15868
15869 #. type: =head2
15870 #: ../fish/guestfish-commands.pod:161
15871 msgid "reopen"
15872 msgstr ""
15873
15874 #. type: verbatim
15875 #: ../fish/guestfish-commands.pod:163
15876 #, no-wrap
15877 msgid ""
15878 "  reopen\n"
15879 "\n"
15880 msgstr ""
15881
15882 #. type: textblock
15883 #: ../fish/guestfish-commands.pod:165
15884 msgid ""
15885 "Close and reopen the libguestfs handle.  It is not necessary to use this "
15886 "normally, because the handle is closed properly when guestfish exits.  "
15887 "However this is occasionally useful for testing."
15888 msgstr ""
15889
15890 #. type: =head2
15891 #: ../fish/guestfish-commands.pod:169
15892 msgid "sparse"
15893 msgstr ""
15894
15895 #. type: verbatim
15896 #: ../fish/guestfish-commands.pod:171
15897 #, no-wrap
15898 msgid ""
15899 " sparse filename size\n"
15900 "\n"
15901 msgstr ""
15902
15903 #. type: textblock
15904 #: ../fish/guestfish-commands.pod:173
15905 msgid ""
15906 "This creates an empty sparse file of the given size, and then adds so it can "
15907 "be further examined."
15908 msgstr ""
15909
15910 #. type: textblock
15911 #: ../fish/guestfish-commands.pod:176
15912 msgid ""
15913 "In all respects it works the same as the L</alloc> command, except that the "
15914 "image file is allocated sparsely, which means that disk blocks are not "
15915 "assigned to the file until they are needed.  Sparse disk files only use "
15916 "space when written to, but they are slower and there is a danger you could "
15917 "run out of real disk space during a write operation."
15918 msgstr ""
15919
15920 #. type: =head2
15921 #: ../fish/guestfish-commands.pod:186
15922 msgid "supported"
15923 msgstr ""
15924
15925 #. type: verbatim
15926 #: ../fish/guestfish-commands.pod:188
15927 #, no-wrap
15928 msgid ""
15929 " supported\n"
15930 "\n"
15931 msgstr ""
15932
15933 #. type: textblock
15934 #: ../fish/guestfish-commands.pod:190
15935 msgid ""
15936 "This command returns a list of the optional groups known to the daemon, and "
15937 "indicates which ones are supported by this build of the libguestfs appliance."
15938 msgstr ""
15939
15940 #. type: textblock
15941 #: ../fish/guestfish-commands.pod:194
15942 msgid "See also L<guestfs(3)/AVAILABILITY>."
15943 msgstr ""
15944
15945 #. type: =head2
15946 #: ../fish/guestfish-commands.pod:196
15947 msgid "time"
15948 msgstr ""
15949
15950 #. type: verbatim
15951 #: ../fish/guestfish-commands.pod:198
15952 #, no-wrap
15953 msgid ""
15954 " time command args...\n"
15955 "\n"
15956 msgstr ""
15957
15958 #. type: textblock
15959 #: ../fish/guestfish-commands.pod:200
15960 msgid ""
15961 "Run the command as usual, but print the elapsed time afterwards.  This can "
15962 "be useful for benchmarking operations."
15963 msgstr ""
15964
15965 #. type: textblock
15966 #: ../fish/guestfish.pod:5
15967 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15968 msgstr ""
15969
15970 #. type: verbatim
15971 #: ../fish/guestfish.pod:9
15972 #, no-wrap
15973 msgid ""
15974 " guestfish [--options] [commands]\n"
15975 "\n"
15976 msgstr ""
15977
15978 #. type: verbatim
15979 #: ../fish/guestfish.pod:11
15980 #, no-wrap
15981 msgid ""
15982 " guestfish\n"
15983 "\n"
15984 msgstr ""
15985
15986 #. type: verbatim
15987 #: ../fish/guestfish.pod:13
15988 #, no-wrap
15989 msgid ""
15990 " guestfish [--ro|--rw] -a disk.img\n"
15991 "\n"
15992 msgstr ""
15993
15994 #. type: verbatim
15995 #: ../fish/guestfish.pod:15
15996 #, no-wrap
15997 msgid ""
15998 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
15999 "\n"
16000 msgstr ""
16001
16002 #. type: verbatim
16003 #: ../fish/guestfish.pod:17
16004 #, no-wrap
16005 msgid ""
16006 " guestfish -d libvirt-domain\n"
16007 "\n"
16008 msgstr ""
16009
16010 #. type: verbatim
16011 #: ../fish/guestfish.pod:19
16012 #, no-wrap
16013 msgid ""
16014 " guestfish [--ro|--rw] -a disk.img -i\n"
16015 "\n"
16016 msgstr ""
16017
16018 #. type: verbatim
16019 #: ../fish/guestfish.pod:21
16020 #, no-wrap
16021 msgid ""
16022 " guestfish -d libvirt-domain -i\n"
16023 "\n"
16024 msgstr ""
16025
16026 #. type: textblock
16027 #: ../fish/guestfish.pod:25
16028 msgid ""
16029 "Using guestfish in read/write mode on live virtual machines can be "
16030 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16031 "option to use guestfish safely if the disk image or virtual machine might be "
16032 "live."
16033 msgstr ""
16034
16035 #. type: textblock
16036 #: ../fish/guestfish.pod:32
16037 msgid ""
16038 "Guestfish is a shell and command-line tool for examining and modifying "
16039 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16040 "functionality of the guestfs API, see L<guestfs(3)>."
16041 msgstr ""
16042
16043 #. type: textblock
16044 #: ../fish/guestfish.pod:36
16045 msgid ""
16046 "Guestfish gives you structured access to the libguestfs API, from shell "
16047 "scripts or the command line or interactively.  If you want to rescue a "
16048 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16049 "command."
16050 msgstr ""
16051
16052 #. type: =head2
16053 #: ../fish/guestfish.pod:43
16054 msgid "As an interactive shell"
16055 msgstr ""
16056
16057 #. type: verbatim
16058 #: ../fish/guestfish.pod:45
16059 #, no-wrap
16060 msgid ""
16061 " $ guestfish\n"
16062 " \n"
16063 msgstr ""
16064
16065 #. type: verbatim
16066 #: ../fish/guestfish.pod:47
16067 #, no-wrap
16068 msgid ""
16069 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16070 " editing virtual machine filesystems.\n"
16071 " \n"
16072 msgstr ""
16073
16074 #. type: verbatim
16075 #: ../fish/guestfish.pod:50
16076 #, no-wrap
16077 msgid ""
16078 " Type: 'help' for a list of commands\n"
16079 "       'man' to read the manual\n"
16080 "       'quit' to quit the shell\n"
16081 " \n"
16082 msgstr ""
16083
16084 #. type: verbatim
16085 #: ../fish/guestfish.pod:54
16086 #, no-wrap
16087 msgid ""
16088 " ><fs> add-ro disk.img\n"
16089 " ><fs> run\n"
16090 " ><fs> list-filesystems\n"
16091 " /dev/sda1: ext4\n"
16092 " /dev/vg_guest/lv_root: ext4\n"
16093 " /dev/vg_guest/lv_swap: swap\n"
16094 " ><fs> mount /dev/vg_guest/lv_root /\n"
16095 " ><fs> cat /etc/fstab\n"
16096 " # /etc/fstab\n"
16097 " # Created by anaconda\n"
16098 " [...]\n"
16099 " ><fs> exit\n"
16100 "\n"
16101 msgstr ""
16102
16103 #. type: =head2
16104 #: ../fish/guestfish.pod:67
16105 msgid "From shell scripts"
16106 msgstr ""
16107
16108 #. type: textblock
16109 #: ../fish/guestfish.pod:69
16110 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16111 msgstr ""
16112
16113 #. type: verbatim
16114 #: ../fish/guestfish.pod:71
16115 #, no-wrap
16116 msgid ""
16117 " guestfish <<_EOF_\n"
16118 " add disk.img\n"
16119 " run\n"
16120 " mount /dev/vg_guest/lv_root /\n"
16121 " write /etc/motd \"Welcome, new users\"\n"
16122 " _EOF_\n"
16123 "\n"
16124 msgstr ""
16125
16126 #. type: textblock
16127 #: ../fish/guestfish.pod:78
16128 msgid "List the LVM logical volumes in a disk image:"
16129 msgstr ""
16130
16131 #. type: verbatim
16132 #: ../fish/guestfish.pod:80
16133 #, no-wrap
16134 msgid ""
16135 " guestfish -a disk.img --ro <<_EOF_\n"
16136 " run\n"
16137 " lvs\n"
16138 " _EOF_\n"
16139 "\n"
16140 msgstr ""
16141
16142 #. type: textblock
16143 #: ../fish/guestfish.pod:85
16144 msgid "List all the filesystems in a disk image:"
16145 msgstr ""
16146
16147 #. type: verbatim
16148 #: ../fish/guestfish.pod:87
16149 #, no-wrap
16150 msgid ""
16151 " guestfish -a disk.img --ro <<_EOF_\n"
16152 " run\n"
16153 " list-filesystems\n"
16154 " _EOF_\n"
16155 "\n"
16156 msgstr ""
16157
16158 #. type: =head2
16159 #: ../fish/guestfish.pod:92
16160 msgid "On one command line"
16161 msgstr ""
16162
16163 #. type: textblock
16164 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
16165 msgid "Update C</etc/resolv.conf> in a guest:"
16166 msgstr ""
16167
16168 #. type: verbatim
16169 #: ../fish/guestfish.pod:96
16170 #, no-wrap
16171 msgid ""
16172 " guestfish \\\n"
16173 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16174 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16175 "\n"
16176 msgstr ""
16177
16178 #. type: textblock
16179 #: ../fish/guestfish.pod:100
16180 msgid "Edit C</boot/grub/grub.conf> interactively:"
16181 msgstr ""
16182
16183 #. type: verbatim
16184 #: ../fish/guestfish.pod:102
16185 #, no-wrap
16186 msgid ""
16187 " guestfish --rw --add disk.img \\\n"
16188 "   --mount /dev/vg_guest/lv_root \\\n"
16189 "   --mount /dev/sda1:/boot \\\n"
16190 "   edit /boot/grub/grub.conf\n"
16191 "\n"
16192 msgstr ""
16193
16194 #. type: =head2
16195 #: ../fish/guestfish.pod:107
16196 msgid "Mount disks automatically"
16197 msgstr ""
16198
16199 #. type: textblock
16200 #: ../fish/guestfish.pod:109
16201 msgid ""
16202 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16203 msgstr ""
16204
16205 #. type: verbatim
16206 #: ../fish/guestfish.pod:112
16207 #, no-wrap
16208 msgid ""
16209 " guestfish --ro -a disk.img -i cat /etc/group\n"
16210 "\n"
16211 msgstr ""
16212
16213 #. type: verbatim
16214 #: ../fish/guestfish.pod:114
16215 #, no-wrap
16216 msgid ""
16217 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16218 "\n"
16219 msgstr ""
16220
16221 #. type: textblock
16222 #: ../fish/guestfish.pod:116
16223 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16224 msgstr ""
16225
16226 #. type: verbatim
16227 #: ../fish/guestfish.pod:118
16228 #, no-wrap
16229 msgid ""
16230 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16231 "\n"
16232 msgstr ""
16233
16234 #. type: =head2
16235 #: ../fish/guestfish.pod:120
16236 msgid "As a script interpreter"
16237 msgstr ""
16238
16239 #. type: textblock
16240 #: ../fish/guestfish.pod:122
16241 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16242 msgstr ""
16243
16244 #. type: verbatim
16245 #: ../fish/guestfish.pod:124
16246 #, no-wrap
16247 msgid ""
16248 " #!/usr/bin/guestfish -f\n"
16249 " sparse test1.img 100M\n"
16250 " run\n"
16251 " part-disk /dev/sda mbr\n"
16252 " mkfs ext2 /dev/sda1\n"
16253 "\n"
16254 msgstr ""
16255
16256 #. type: =head2
16257 #: ../fish/guestfish.pod:130
16258 msgid "Start with a prepared disk"
16259 msgstr ""
16260
16261 #. type: textblock
16262 #: ../fish/guestfish.pod:132
16263 msgid ""
16264 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16265 "single ext2-formatted partition:"
16266 msgstr ""
16267
16268 #. type: verbatim
16269 #: ../fish/guestfish.pod:135
16270 #, no-wrap
16271 msgid ""
16272 " guestfish -N fs\n"
16273 "\n"
16274 msgstr ""
16275
16276 #. type: textblock
16277 #: ../fish/guestfish.pod:137
16278 msgid "To list what is available do:"
16279 msgstr ""
16280
16281 #. type: verbatim
16282 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
16283 #, no-wrap
16284 msgid ""
16285 " guestfish -N help | less\n"
16286 "\n"
16287 msgstr ""
16288
16289 #. type: =head2
16290 #: ../fish/guestfish.pod:141
16291 msgid "Remote control"
16292 msgstr ""
16293
16294 #. type: verbatim
16295 #: ../fish/guestfish.pod:143
16296 #, no-wrap
16297 msgid ""
16298 " eval \"`guestfish --listen`\"\n"
16299 " guestfish --remote add-ro disk.img\n"
16300 " guestfish --remote run\n"
16301 " guestfish --remote lvs\n"
16302 "\n"
16303 msgstr ""
16304
16305 #. type: textblock
16306 #: ../fish/guestfish.pod:154
16307 msgid "Displays general help on options."
16308 msgstr ""
16309
16310 #. type: =item
16311 #: ../fish/guestfish.pod:158
16312 msgid "B<--cmd-help>"
16313 msgstr ""
16314
16315 #. type: textblock
16316 #: ../fish/guestfish.pod:160
16317 msgid "Lists all available guestfish commands."
16318 msgstr ""
16319
16320 #. type: =item
16321 #: ../fish/guestfish.pod:162
16322 msgid "B<-h cmd>"
16323 msgstr ""
16324
16325 #. type: =item
16326 #: ../fish/guestfish.pod:164
16327 msgid "B<--cmd-help cmd>"
16328 msgstr ""
16329
16330 #. type: textblock
16331 #: ../fish/guestfish.pod:166
16332 msgid "Displays detailed help on a single command C<cmd>."
16333 msgstr ""
16334
16335 #. type: =item
16336 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
16337 msgid "B<-a image>"
16338 msgstr ""
16339
16340 #. type: =item
16341 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
16342 msgid "B<--add image>"
16343 msgstr ""
16344
16345 #. type: textblock
16346 #: ../fish/guestfish.pod:172
16347 msgid "Add a block device or virtual machine image to the shell."
16348 msgstr ""
16349
16350 #. type: textblock
16351 #: ../fish/guestfish.pod:177
16352 msgid ""
16353 "Using this flag is mostly equivalent to using the C<add> command, with "
16354 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
16355 "the I<--format=...> flag was given."
16356 msgstr ""
16357
16358 #. type: textblock
16359 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
16360 msgid ""
16361 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16362 "URI to use.  The default is to use the default libvirt connection."
16363 msgstr ""
16364
16365 #. type: =item
16366 #: ../fish/guestfish.pod:189
16367 msgid "B<--csh>"
16368 msgstr ""
16369
16370 #. type: textblock
16371 #: ../fish/guestfish.pod:191
16372 msgid ""
16373 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16374 "section L</REMOTE CONTROL AND CSH> below."
16375 msgstr ""
16376
16377 #. type: =item
16378 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
16379 msgid "B<-d libvirt-domain>"
16380 msgstr ""
16381
16382 #. type: =item
16383 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
16384 msgid "B<--domain libvirt-domain>"
16385 msgstr ""
16386
16387 #. type: textblock
16388 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
16389 msgid ""
16390 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16391 "used, then any libvirt domain can be used.  However in write mode, only "
16392 "libvirt domains which are shut down can be named here."
16393 msgstr ""
16394
16395 #. type: textblock
16396 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
16397 msgid "Domain UUIDs can be used instead of names."
16398 msgstr ""
16399
16400 #. type: textblock
16401 #: ../fish/guestfish.pod:204
16402 msgid ""
16403 "Using this flag is mostly equivalent to using the C<add-domain> command, "
16404 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
16405 "if the I<--format:...> flag was given."
16406 msgstr ""
16407
16408 #. type: =item
16409 #: ../fish/guestfish.pod:208
16410 msgid "B<-D>"
16411 msgstr ""
16412
16413 #. type: =item
16414 #: ../fish/guestfish.pod:210
16415 msgid "B<--no-dest-paths>"
16416 msgstr ""
16417
16418 #. type: textblock
16419 #: ../fish/guestfish.pod:212
16420 msgid ""
16421 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16422 "to hit the tab key to complete paths on the guest filesystem, but this "
16423 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16424 "allow this feature to be disabled."
16425 msgstr ""
16426
16427 #. type: textblock
16428 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
16429 msgid ""
16430 "When prompting for keys and passphrases, guestfish normally turns echoing "
16431 "off so you cannot see what you are typing.  If you are not worried about "
16432 "Tempest attacks and there is no one else in the room you can specify this "
16433 "flag to see what you are typing."
16434 msgstr ""
16435
16436 #. type: =item
16437 #: ../fish/guestfish.pod:224
16438 msgid "B<-f file>"
16439 msgstr ""
16440
16441 #. type: =item
16442 #: ../fish/guestfish.pod:226
16443 msgid "B<--file file>"
16444 msgstr ""
16445
16446 #. type: textblock
16447 #: ../fish/guestfish.pod:228
16448 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16449 msgstr ""
16450
16451 #. type: verbatim
16452 #: ../fish/guestfish.pod:231
16453 #, no-wrap
16454 msgid ""
16455 " #!/usr/bin/guestfish -f\n"
16456 "\n"
16457 msgstr ""
16458
16459 #. type: verbatim
16460 #: ../fish/guestfish.pod:244
16461 #, no-wrap
16462 msgid ""
16463 " guestfish --format=raw -a disk.img\n"
16464 "\n"
16465 msgstr ""
16466
16467 #. type: verbatim
16468 #: ../fish/guestfish.pod:248
16469 #, no-wrap
16470 msgid ""
16471 " guestfish --format=raw -a disk.img --format -a another.img\n"
16472 "\n"
16473 msgstr ""
16474
16475 #. type: textblock
16476 #: ../fish/guestfish.pod:253
16477 msgid ""
16478 "If you have untrusted raw-format guest disk images, you should use this "
16479 "option to specify the disk format.  This avoids a possible security problem "
16480 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16481 msgstr ""
16482
16483 #. type: =item
16484 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
16485 msgid "B<--inspector>"
16486 msgstr ""
16487
16488 #. type: textblock
16489 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
16490 msgid ""
16491 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16492 "system and mount filesystems as they would be mounted on the real virtual "
16493 "machine."
16494 msgstr ""
16495
16496 #. type: textblock
16497 #: ../fish/guestfish.pod:266
16498 msgid "Typical usage is either:"
16499 msgstr ""
16500
16501 #. type: verbatim
16502 #: ../fish/guestfish.pod:268
16503 #, no-wrap
16504 msgid ""
16505 " guestfish -d myguest -i\n"
16506 "\n"
16507 msgstr ""
16508
16509 #. type: textblock
16510 #: ../fish/guestfish.pod:270
16511 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16512 msgstr ""
16513
16514 #. type: verbatim
16515 #: ../fish/guestfish.pod:272
16516 #, no-wrap
16517 msgid ""
16518 " guestfish --ro -d myguest -i\n"
16519 "\n"
16520 msgstr ""
16521
16522 #. type: textblock
16523 #: ../fish/guestfish.pod:274
16524 msgid "(for active domains, readonly), or specify the block device directly:"
16525 msgstr ""
16526
16527 #. type: verbatim
16528 #: ../fish/guestfish.pod:276
16529 #, no-wrap
16530 msgid ""
16531 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16532 "\n"
16533 msgstr ""
16534
16535 #. type: textblock
16536 #: ../fish/guestfish.pod:278
16537 msgid ""
16538 "Note that the command line syntax changed slightly over older versions of "
16539 "guestfish.  You can still use the old syntax:"
16540 msgstr ""
16541
16542 #. type: verbatim
16543 #: ../fish/guestfish.pod:281
16544 #, no-wrap
16545 msgid ""
16546 " guestfish [--ro] -i disk.img\n"
16547 "\n"
16548 msgstr ""
16549
16550 #. type: verbatim
16551 #: ../fish/guestfish.pod:283
16552 #, no-wrap
16553 msgid ""
16554 " guestfish [--ro] -i libvirt-domain\n"
16555 "\n"
16556 msgstr ""
16557
16558 #. type: textblock
16559 #: ../fish/guestfish.pod:285
16560 msgid ""
16561 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16562 "then using other commands to mount the filesystems that were found."
16563 msgstr ""
16564
16565 #. type: =item
16566 #: ../fish/guestfish.pod:294
16567 msgid "B<--listen>"
16568 msgstr ""
16569
16570 #. type: textblock
16571 #: ../fish/guestfish.pod:296
16572 msgid ""
16573 "Fork into the background and listen for remote commands.  See section L</"
16574 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16575 msgstr ""
16576
16577 #. type: =item
16578 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
16579 msgid "B<--live>"
16580 msgstr ""
16581
16582 #. type: textblock
16583 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
16584 msgid ""
16585 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
16586 "ATTACHING TO RUNNING DAEMONS>)."
16587 msgstr ""
16588
16589 #. type: =item
16590 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
16591 msgid "B<-m dev[:mountpoint[:options]]>"
16592 msgstr ""
16593
16594 #. type: =item
16595 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
16596 msgid "B<--mount dev[:mountpoint[:options]]>"
16597 msgstr ""
16598
16599 #. type: textblock
16600 #: ../fish/guestfish.pod:308
16601 msgid "Mount the named partition or logical volume on the given mountpoint."
16602 msgstr ""
16603
16604 #. type: textblock
16605 #: ../fish/guestfish.pod:310
16606 msgid "If the mountpoint is omitted, it defaults to C</>."
16607 msgstr ""
16608
16609 #. type: textblock
16610 #: ../fish/guestfish.pod:312
16611 msgid "You have to mount something on C</> before most commands will work."
16612 msgstr ""
16613
16614 #. type: textblock
16615 #: ../fish/guestfish.pod:314
16616 msgid ""
16617 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16618 "launched."
16619 msgstr ""
16620
16621 #. type: textblock
16622 #: ../fish/guestfish.pod:317
16623 msgid ""
16624 "If you don't know what filesystems a disk image contains, you can either run "
16625 "guestfish without this option, then list the partitions, filesystems and LVs "
16626 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
16627 "commands), or you can use the L<virt-filesystems(1)> program."
16628 msgstr ""
16629
16630 #. type: textblock
16631 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
16632 msgid ""
16633 "The third (and rarely used) part of the mount parameter is the list of mount "
16634 "options used to mount the underlying filesystem.  If this is not given, then "
16635 "the mount options are either the empty string or C<ro> (the latter if the "
16636 "I<--ro> flag is used).  By specifying the mount options, you override this "
16637 "default choice.  Probably the only time you would use this is to enable ACLs "
16638 "and/or extended attributes if the filesystem can support them:"
16639 msgstr ""
16640
16641 #. type: verbatim
16642 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
16643 #, no-wrap
16644 msgid ""
16645 " -m /dev/sda1:/:acl,user_xattr\n"
16646 "\n"
16647 msgstr ""
16648
16649 #. type: textblock
16650 #: ../fish/guestfish.pod:333
16651 msgid "Using this flag is equivalent to using the C<mount-options> command."
16652 msgstr ""
16653
16654 #. type: =item
16655 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
16656 #: ../resize/virt-resize.pod:358
16657 msgid "B<-n>"
16658 msgstr ""
16659
16660 #. type: =item
16661 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
16662 msgid "B<--no-sync>"
16663 msgstr ""
16664
16665 #. type: textblock
16666 #: ../fish/guestfish.pod:339
16667 msgid ""
16668 "Disable autosync.  This is enabled by default.  See the discussion of "
16669 "autosync in the L<guestfs(3)> manpage."
16670 msgstr ""
16671
16672 #. type: =item
16673 #: ../fish/guestfish.pod:342
16674 msgid "B<-N type>"
16675 msgstr ""
16676
16677 #. type: =item
16678 #: ../fish/guestfish.pod:344
16679 msgid "B<--new type>"
16680 msgstr ""
16681
16682 #. type: =item
16683 #: ../fish/guestfish.pod:346
16684 msgid "B<-N help>"
16685 msgstr ""
16686
16687 #. type: textblock
16688 #: ../fish/guestfish.pod:348
16689 msgid ""
16690 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16691 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16692 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16693 "IMAGES> below."
16694 msgstr ""
16695
16696 #. type: =item
16697 #: ../fish/guestfish.pod:353
16698 msgid "B<--progress-bars>"
16699 msgstr ""
16700
16701 #. type: textblock
16702 #: ../fish/guestfish.pod:355
16703 msgid "Enable progress bars, even when guestfish is used non-interactively."
16704 msgstr ""
16705
16706 #. type: textblock
16707 #: ../fish/guestfish.pod:357
16708 msgid ""
16709 "Progress bars are enabled by default when guestfish is used as an "
16710 "interactive shell."
16711 msgstr ""
16712
16713 #. type: =item
16714 #: ../fish/guestfish.pod:360
16715 msgid "B<--no-progress-bars>"
16716 msgstr ""
16717
16718 #. type: textblock
16719 #: ../fish/guestfish.pod:362
16720 msgid "Disable progress bars."
16721 msgstr ""
16722
16723 #. type: =item
16724 #: ../fish/guestfish.pod:364
16725 msgid "B<--remote[=pid]>"
16726 msgstr ""
16727
16728 #. type: textblock
16729 #: ../fish/guestfish.pod:366
16730 msgid ""
16731 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16732 "CONTROL GUESTFISH OVER A SOCKET> below."
16733 msgstr ""
16734
16735 #. type: =item
16736 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
16737 #: ../rescue/virt-rescue.pod:161
16738 msgid "B<-r>"
16739 msgstr ""
16740
16741 #. type: =item
16742 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
16743 #: ../rescue/virt-rescue.pod:163
16744 msgid "B<--ro>"
16745 msgstr ""
16746
16747 #. type: textblock
16748 #: ../fish/guestfish.pod:373
16749 msgid ""
16750 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16751 "mounts are done read-only."
16752 msgstr ""
16753
16754 #. type: textblock
16755 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
16756 msgid ""
16757 "The option must always be used if the disk image or virtual machine might be "
16758 "running, and is generally recommended in cases where you don't need write "
16759 "access to the disk."
16760 msgstr ""
16761
16762 #. type: textblock
16763 #: ../fish/guestfish.pod:380
16764 msgid ""
16765 "Note that prepared disk images created with I<-N> are not affected by this "
16766 "option.  Also commands like C<add> are not affected - you have to specify "
16767 "the C<readonly:true> option explicitly if you need it."
16768 msgstr ""
16769
16770 #. type: textblock
16771 #: ../fish/guestfish.pod:384
16772 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16773 msgstr ""
16774
16775 #. type: =item
16776 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
16777 #: ../rescue/virt-rescue.pod:173
16778 msgid "B<--selinux>"
16779 msgstr ""
16780
16781 #. type: textblock
16782 #: ../fish/guestfish.pod:388
16783 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16784 msgstr ""
16785
16786 #. type: textblock
16787 #: ../fish/guestfish.pod:394
16788 msgid ""
16789 "Enable very verbose messages.  This is particularly useful if you find a bug."
16790 msgstr ""
16791
16792 #. type: textblock
16793 #: ../fish/guestfish.pod:401
16794 msgid "Display the guestfish / libguestfs version number and exit."
16795 msgstr ""
16796
16797 #. type: =item
16798 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
16799 #: ../rescue/virt-rescue.pod:190
16800 msgid "B<-w>"
16801 msgstr ""
16802
16803 #. type: =item
16804 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
16805 #: ../rescue/virt-rescue.pod:192
16806 msgid "B<--rw>"
16807 msgstr ""
16808
16809 #. type: textblock
16810 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
16811 msgid ""
16812 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16813 "mounts are done read-write."
16814 msgstr ""
16815
16816 #. type: textblock
16817 #: ../fish/guestfish.pod:410
16818 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
16819 msgstr ""
16820
16821 #. type: textblock
16822 #: ../fish/guestfish.pod:414
16823 msgid "Echo each command before executing it."
16824 msgstr ""
16825
16826 #. type: =head1
16827 #: ../fish/guestfish.pod:418
16828 msgid "COMMANDS ON COMMAND LINE"
16829 msgstr ""
16830
16831 #. type: textblock
16832 #: ../fish/guestfish.pod:420
16833 msgid ""
16834 "Any additional (non-option) arguments are treated as commands to execute."
16835 msgstr ""
16836
16837 #. type: textblock
16838 #: ../fish/guestfish.pod:423
16839 msgid ""
16840 "Commands to execute should be separated by a colon (C<:>), where the colon "
16841 "is a separate parameter.  Thus:"
16842 msgstr ""
16843
16844 #. type: verbatim
16845 #: ../fish/guestfish.pod:426
16846 #, no-wrap
16847 msgid ""
16848 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16849 "\n"
16850 msgstr ""
16851
16852 #. type: textblock
16853 #: ../fish/guestfish.pod:428
16854 msgid ""
16855 "If there are no additional arguments, then we enter a shell, either an "
16856 "interactive shell with a prompt (if the input is a terminal) or a non-"
16857 "interactive shell."
16858 msgstr ""
16859
16860 #. type: textblock
16861 #: ../fish/guestfish.pod:432
16862 msgid ""
16863 "In either command line mode or non-interactive shell, the first command that "
16864 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16865 "prompt) if a command fails, you can continue to enter commands."
16866 msgstr ""
16867
16868 #. type: =head1
16869 #: ../fish/guestfish.pod:437
16870 msgid "USING launch (OR run)"
16871 msgstr ""
16872
16873 #. type: textblock
16874 #: ../fish/guestfish.pod:439
16875 msgid ""
16876 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16877 "then launch it, then mount any disks you need, and finally issue actions/"
16878 "commands.  So the general order of the day is:"
16879 msgstr ""
16880
16881 #. type: textblock
16882 #: ../fish/guestfish.pod:447
16883 msgid "add or -a/--add"
16884 msgstr ""
16885
16886 #. type: textblock
16887 #: ../fish/guestfish.pod:451
16888 msgid "launch (aka run)"
16889 msgstr ""
16890
16891 #. type: textblock
16892 #: ../fish/guestfish.pod:455
16893 msgid "mount or -m/--mount"
16894 msgstr ""
16895
16896 #. type: textblock
16897 #: ../fish/guestfish.pod:459
16898 msgid "any other commands"
16899 msgstr ""
16900
16901 #. type: textblock
16902 #: ../fish/guestfish.pod:463
16903 msgid ""
16904 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16905 "guest before mounting or performing any other commands."
16906 msgstr ""
16907
16908 #. type: textblock
16909 #: ../fish/guestfish.pod:466
16910 msgid ""
16911 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16912 "I<--new> options were given then C<run> is done automatically, simply "
16913 "because guestfish can't perform the action you asked for without doing this."
16914 msgstr ""
16915
16916 #. type: =head1
16917 #: ../fish/guestfish.pod:471
16918 msgid "OPENING DISKS FOR READ AND WRITE"
16919 msgstr ""
16920
16921 #. type: textblock
16922 #: ../fish/guestfish.pod:473
16923 msgid ""
16924 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
16925 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
16926 "I<-i> and I<-m> open disk images read-only or for writing."
16927 msgstr ""
16928
16929 #. type: textblock
16930 #: ../fish/guestfish.pod:478
16931 msgid ""
16932 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
16933 "opening disk images supplied on the command line for write.  To open a disk "
16934 "image read-only you have to do I<-a image --ro>."
16935 msgstr ""
16936
16937 #. type: textblock
16938 #: ../fish/guestfish.pod:482
16939 msgid ""
16940 "This matters: If you accidentally open a live VM disk image writable then "
16941 "you will cause irreversible disk corruption."
16942 msgstr ""
16943
16944 #. type: textblock
16945 #: ../fish/guestfish.pod:485
16946 msgid ""
16947 "In a future libguestfs we intend to change the default the other way.  Disk "
16948 "images will be opened read-only.  You will have to either specify "
16949 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
16950 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
16951 "access for disk images specified by those other command line options."
16952 msgstr ""
16953
16954 #. type: textblock
16955 #: ../fish/guestfish.pod:492
16956 msgid ""
16957 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
16958 "which does nothing (it is already the default).  However it is highly "
16959 "recommended that you use this option to indicate that you need write access, "
16960 "and prepare your scripts for the day when this option will be required for "
16961 "write access."
16962 msgstr ""
16963
16964 #. type: textblock
16965 #: ../fish/guestfish.pod:498
16966 msgid ""
16967 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
16968 "other libguestfs program apart from guestfish and guestmount."
16969 msgstr ""
16970
16971 #. type: =head1
16972 #: ../fish/guestfish.pod:501
16973 msgid "QUOTING"
16974 msgstr ""
16975
16976 #. type: textblock
16977 #: ../fish/guestfish.pod:503
16978 msgid ""
16979 "You can quote ordinary parameters using either single or double quotes.  For "
16980 "example:"
16981 msgstr ""
16982
16983 #. type: verbatim
16984 #: ../fish/guestfish.pod:506
16985 #, no-wrap
16986 msgid ""
16987 " add \"file with a space.img\"\n"
16988 "\n"
16989 msgstr ""
16990
16991 #. type: verbatim
16992 #: ../fish/guestfish.pod:508
16993 #, no-wrap
16994 msgid ""
16995 " rm '/file name'\n"
16996 "\n"
16997 msgstr ""
16998
16999 #. type: verbatim
17000 #: ../fish/guestfish.pod:510
17001 #, no-wrap
17002 msgid ""
17003 " rm '/\"'\n"
17004 "\n"
17005 msgstr ""
17006
17007 #. type: textblock
17008 #: ../fish/guestfish.pod:512
17009 msgid ""
17010 "A few commands require a list of strings to be passed.  For these, use a "
17011 "whitespace-separated list, enclosed in quotes.  Strings containing "
17012 "whitespace to be passed through must be enclosed in single quotes.  A "
17013 "literal single quote must be escaped with a backslash."
17014 msgstr ""
17015
17016 #. type: verbatim
17017 #: ../fish/guestfish.pod:517
17018 #, no-wrap
17019 msgid ""
17020 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17021 " command \"/bin/echo 'foo      bar'\"\n"
17022 " command \"/bin/echo \\'foo\\'\"\n"
17023 "\n"
17024 msgstr ""
17025
17026 #. type: =head2
17027 #: ../fish/guestfish.pod:521
17028 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17029 msgstr ""
17030
17031 #. type: textblock
17032 #: ../fish/guestfish.pod:523
17033 msgid ""
17034 "In double-quoted arguments (only) use backslash to insert special characters:"
17035 msgstr ""
17036
17037 #. type: =item
17038 #: ../fish/guestfish.pod:528
17039 msgid "C<\\a>"
17040 msgstr ""
17041
17042 #. type: textblock
17043 #: ../fish/guestfish.pod:530
17044 msgid "Alert (bell) character."
17045 msgstr ""
17046
17047 #. type: =item
17048 #: ../fish/guestfish.pod:532
17049 msgid "C<\\b>"
17050 msgstr ""
17051
17052 #. type: textblock
17053 #: ../fish/guestfish.pod:534
17054 msgid "Backspace character."
17055 msgstr ""
17056
17057 #. type: =item
17058 #: ../fish/guestfish.pod:536
17059 msgid "C<\\f>"
17060 msgstr ""
17061
17062 #. type: textblock
17063 #: ../fish/guestfish.pod:538
17064 msgid "Form feed character."
17065 msgstr ""
17066
17067 #. type: =item
17068 #: ../fish/guestfish.pod:540
17069 msgid "C<\\n>"
17070 msgstr ""
17071
17072 #. type: textblock
17073 #: ../fish/guestfish.pod:542
17074 msgid "Newline character."
17075 msgstr ""
17076
17077 #. type: =item
17078 #: ../fish/guestfish.pod:544
17079 msgid "C<\\r>"
17080 msgstr ""
17081
17082 #. type: textblock
17083 #: ../fish/guestfish.pod:546
17084 msgid "Carriage return character."
17085 msgstr ""
17086
17087 #. type: =item
17088 #: ../fish/guestfish.pod:548
17089 msgid "C<\\t>"
17090 msgstr ""
17091
17092 #. type: textblock
17093 #: ../fish/guestfish.pod:550
17094 msgid "Horizontal tab character."
17095 msgstr ""
17096
17097 #. type: =item
17098 #: ../fish/guestfish.pod:552
17099 msgid "C<\\v>"
17100 msgstr ""
17101
17102 #. type: textblock
17103 #: ../fish/guestfish.pod:554
17104 msgid "Vertical tab character."
17105 msgstr ""
17106
17107 #. type: =item
17108 #: ../fish/guestfish.pod:556
17109 msgid "C<\\\">"
17110 msgstr ""
17111
17112 #. type: textblock
17113 #: ../fish/guestfish.pod:558
17114 msgid "A literal double quote character."
17115 msgstr ""
17116
17117 #. type: =item
17118 #: ../fish/guestfish.pod:560
17119 msgid "C<\\ooo>"
17120 msgstr ""
17121
17122 #. type: textblock
17123 #: ../fish/guestfish.pod:562
17124 msgid ""
17125 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
17126 "(unlike C)."
17127 msgstr ""
17128
17129 #. type: =item
17130 #: ../fish/guestfish.pod:565
17131 msgid "C<\\xhh>"
17132 msgstr ""
17133
17134 #. type: textblock
17135 #: ../fish/guestfish.pod:567
17136 msgid ""
17137 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
17138 msgstr ""
17139
17140 #. type: textblock
17141 #: ../fish/guestfish.pod:570
17142 msgid ""
17143 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
17144 "strings."
17145 msgstr ""
17146
17147 #. type: =item
17148 #: ../fish/guestfish.pod:573
17149 msgid "C<\\\\>"
17150 msgstr ""
17151
17152 #. type: textblock
17153 #: ../fish/guestfish.pod:575
17154 msgid "A literal backslash character."
17155 msgstr ""
17156
17157 #. type: =head1
17158 #: ../fish/guestfish.pod:579
17159 msgid "OPTIONAL ARGUMENTS"
17160 msgstr ""
17161
17162 #. type: textblock
17163 #: ../fish/guestfish.pod:581
17164 msgid ""
17165 "Some commands take optional arguments.  These arguments appear in this "
17166 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17167 msgstr ""
17168
17169 #. type: verbatim
17170 #: ../fish/guestfish.pod:585
17171 #, no-wrap
17172 msgid ""
17173 " add-drive-opts filename\n"
17174 "\n"
17175 msgstr ""
17176
17177 #. type: verbatim
17178 #: ../fish/guestfish.pod:587
17179 #, no-wrap
17180 msgid ""
17181 " add-drive-opts filename readonly:true\n"
17182 "\n"
17183 msgstr ""
17184
17185 #. type: verbatim
17186 #: ../fish/guestfish.pod:589
17187 #, no-wrap
17188 msgid ""
17189 " add-drive-opts filename format:qcow2 readonly:false\n"
17190 "\n"
17191 msgstr ""
17192
17193 #. type: textblock
17194 #: ../fish/guestfish.pod:591
17195 msgid ""
17196 "Each optional argument can appear at most once.  All optional arguments must "
17197 "appear after the required ones."
17198 msgstr ""
17199
17200 #. type: =head1
17201 #: ../fish/guestfish.pod:594
17202 msgid "NUMBERS"
17203 msgstr ""
17204
17205 #. type: textblock
17206 #: ../fish/guestfish.pod:596
17207 msgid ""
17208 "This section applies to all commands which can take integers as parameters."
17209 msgstr ""
17210
17211 #. type: =head2
17212 #: ../fish/guestfish.pod:599
17213 msgid "SIZE SUFFIX"
17214 msgstr ""
17215
17216 #. type: textblock
17217 #: ../fish/guestfish.pod:601
17218 msgid ""
17219 "When the command takes a parameter measured in bytes, you can use one of the "
17220 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17221 msgstr ""
17222
17223 #. type: =item
17224 #: ../fish/guestfish.pod:607
17225 msgid "B<k> or B<K> or B<KiB>"
17226 msgstr ""
17227
17228 #. type: textblock
17229 #: ../fish/guestfish.pod:609
17230 msgid "The size in kilobytes (multiplied by 1024)."
17231 msgstr ""
17232
17233 #. type: =item
17234 #: ../fish/guestfish.pod:611
17235 msgid "B<KB>"
17236 msgstr ""
17237
17238 #. type: textblock
17239 #: ../fish/guestfish.pod:613
17240 msgid "The size in SI 1000 byte units."
17241 msgstr ""
17242
17243 #. type: =item
17244 #: ../fish/guestfish.pod:615
17245 msgid "B<M> or B<MiB>"
17246 msgstr ""
17247
17248 #. type: textblock
17249 #: ../fish/guestfish.pod:617
17250 msgid "The size in megabytes (multiplied by 1048576)."
17251 msgstr ""
17252
17253 #. type: =item
17254 #: ../fish/guestfish.pod:619
17255 msgid "B<MB>"
17256 msgstr ""
17257
17258 #. type: textblock
17259 #: ../fish/guestfish.pod:621
17260 msgid "The size in SI 1000000 byte units."
17261 msgstr ""
17262
17263 #. type: =item
17264 #: ../fish/guestfish.pod:623
17265 msgid "B<G> or B<GiB>"
17266 msgstr ""
17267
17268 #. type: textblock
17269 #: ../fish/guestfish.pod:625
17270 msgid "The size in gigabytes (multiplied by 2**30)."
17271 msgstr ""
17272
17273 #. type: =item
17274 #: ../fish/guestfish.pod:627
17275 msgid "B<GB>"
17276 msgstr ""
17277
17278 #. type: textblock
17279 #: ../fish/guestfish.pod:629
17280 msgid "The size in SI 10**9 byte units."
17281 msgstr ""
17282
17283 #. type: =item
17284 #: ../fish/guestfish.pod:631
17285 msgid "B<T> or B<TiB>"
17286 msgstr ""
17287
17288 #. type: textblock
17289 #: ../fish/guestfish.pod:633
17290 msgid "The size in terabytes (multiplied by 2**40)."
17291 msgstr ""
17292
17293 #. type: =item
17294 #: ../fish/guestfish.pod:635
17295 msgid "B<TB>"
17296 msgstr ""
17297
17298 #. type: textblock
17299 #: ../fish/guestfish.pod:637
17300 msgid "The size in SI 10**12 byte units."
17301 msgstr ""
17302
17303 #. type: =item
17304 #: ../fish/guestfish.pod:639
17305 msgid "B<P> or B<PiB>"
17306 msgstr ""
17307
17308 #. type: textblock
17309 #: ../fish/guestfish.pod:641
17310 msgid "The size in petabytes (multiplied by 2**50)."
17311 msgstr ""
17312
17313 #. type: =item
17314 #: ../fish/guestfish.pod:643
17315 msgid "B<PB>"
17316 msgstr ""
17317
17318 #. type: textblock
17319 #: ../fish/guestfish.pod:645
17320 msgid "The size in SI 10**15 byte units."
17321 msgstr ""
17322
17323 #. type: =item
17324 #: ../fish/guestfish.pod:647
17325 msgid "B<E> or B<EiB>"
17326 msgstr ""
17327
17328 #. type: textblock
17329 #: ../fish/guestfish.pod:649
17330 msgid "The size in exabytes (multiplied by 2**60)."
17331 msgstr ""
17332
17333 #. type: =item
17334 #: ../fish/guestfish.pod:651
17335 msgid "B<EB>"
17336 msgstr ""
17337
17338 #. type: textblock
17339 #: ../fish/guestfish.pod:653
17340 msgid "The size in SI 10**18 byte units."
17341 msgstr ""
17342
17343 #. type: =item
17344 #: ../fish/guestfish.pod:655
17345 msgid "B<Z> or B<ZiB>"
17346 msgstr ""
17347
17348 #. type: textblock
17349 #: ../fish/guestfish.pod:657
17350 msgid "The size in zettabytes (multiplied by 2**70)."
17351 msgstr ""
17352
17353 #. type: =item
17354 #: ../fish/guestfish.pod:659
17355 msgid "B<ZB>"
17356 msgstr ""
17357
17358 #. type: textblock
17359 #: ../fish/guestfish.pod:661
17360 msgid "The size in SI 10**21 byte units."
17361 msgstr ""
17362
17363 #. type: =item
17364 #: ../fish/guestfish.pod:663
17365 msgid "B<Y> or B<YiB>"
17366 msgstr ""
17367
17368 #. type: textblock
17369 #: ../fish/guestfish.pod:665
17370 msgid "The size in yottabytes (multiplied by 2**80)."
17371 msgstr ""
17372
17373 #. type: =item
17374 #: ../fish/guestfish.pod:667
17375 msgid "B<YB>"
17376 msgstr ""
17377
17378 #. type: textblock
17379 #: ../fish/guestfish.pod:669
17380 msgid "The size in SI 10**24 byte units."
17381 msgstr ""
17382
17383 #. type: verbatim
17384 #: ../fish/guestfish.pod:675
17385 #, no-wrap
17386 msgid ""
17387 " truncate-size /file 1G\n"
17388 "\n"
17389 msgstr ""
17390
17391 #. type: textblock
17392 #: ../fish/guestfish.pod:677
17393 msgid "would truncate the file to 1 gigabyte."
17394 msgstr ""
17395
17396 #. type: textblock
17397 #: ../fish/guestfish.pod:679
17398 msgid ""
17399 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
17400 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
17401 "suffix will probably not do what you expect."
17402 msgstr ""
17403
17404 #. type: =head2
17405 #: ../fish/guestfish.pod:683
17406 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17407 msgstr ""
17408
17409 #. type: textblock
17410 #: ../fish/guestfish.pod:685
17411 msgid ""
17412 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17413 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17414 msgstr ""
17415
17416 #. type: verbatim
17417 #: ../fish/guestfish.pod:688
17418 #, no-wrap
17419 msgid ""
17420 " 1234      decimal number 1234\n"
17421 " 02322     octal number, equivalent to decimal 1234\n"
17422 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17423 "\n"
17424 msgstr ""
17425
17426 #. type: textblock
17427 #: ../fish/guestfish.pod:692
17428 msgid ""
17429 "When using the C<chmod> command, you almost always want to specify an octal "
17430 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17431 "L<chmod(1)> program):"
17432 msgstr ""
17433
17434 #. type: verbatim
17435 #: ../fish/guestfish.pod:696
17436 #, no-wrap
17437 msgid ""
17438 " chmod 0777 /public  # OK\n"
17439 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17440 "\n"
17441 msgstr ""
17442
17443 #. type: textblock
17444 #: ../fish/guestfish.pod:699
17445 msgid ""
17446 "Commands that return numbers usually print them in decimal, but some "
17447 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17448 "octal, preceeded by C<0>)."
17449 msgstr ""
17450
17451 #. type: =head1
17452 #: ../fish/guestfish.pod:703
17453 msgid "WILDCARDS AND GLOBBING"
17454 msgstr ""
17455
17456 #. type: textblock
17457 #: ../fish/guestfish.pod:705
17458 msgid ""
17459 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17460 "(globbing) by default.  So for example the following will not do what you "
17461 "expect:"
17462 msgstr ""
17463
17464 #. type: verbatim
17465 #: ../fish/guestfish.pod:709
17466 #, no-wrap
17467 msgid ""
17468 " rm-rf /home/*\n"
17469 "\n"
17470 msgstr ""
17471
17472 #. type: textblock
17473 #: ../fish/guestfish.pod:711
17474 msgid ""
17475 "Assuming you don't have a directory called literally C</home/*> then the "
17476 "above command will return an error."
17477 msgstr ""
17478
17479 #. type: textblock
17480 #: ../fish/guestfish.pod:714
17481 msgid "To perform wildcard expansion, use the C<glob> command."
17482 msgstr ""
17483
17484 #. type: verbatim
17485 #: ../fish/guestfish.pod:716
17486 #, no-wrap
17487 msgid ""
17488 " glob rm-rf /home/*\n"
17489 "\n"
17490 msgstr ""
17491
17492 #. type: textblock
17493 #: ../fish/guestfish.pod:718
17494 msgid ""
17495 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17496 "many times), equivalent to:"
17497 msgstr ""
17498
17499 #. type: verbatim
17500 #: ../fish/guestfish.pod:721
17501 #, no-wrap
17502 msgid ""
17503 " rm-rf /home/jim\n"
17504 " rm-rf /home/joe\n"
17505 " rm-rf /home/mary\n"
17506 "\n"
17507 msgstr ""
17508
17509 #. type: textblock
17510 #: ../fish/guestfish.pod:725
17511 msgid "C<glob> only works on simple guest paths and not on device names."
17512 msgstr ""
17513
17514 #. type: textblock
17515 #: ../fish/guestfish.pod:727
17516 msgid ""
17517 "If you have several parameters, each containing a wildcard, then glob will "
17518 "perform a Cartesian product."
17519 msgstr ""
17520
17521 #. type: =head1
17522 #: ../fish/guestfish.pod:730
17523 msgid "COMMENTS"
17524 msgstr ""
17525
17526 #. type: textblock
17527 #: ../fish/guestfish.pod:732
17528 msgid ""
17529 "Any line which starts with a I<#> character is treated as a comment and "
17530 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17531 "a command.  For example:"
17532 msgstr ""
17533
17534 #. type: verbatim
17535 #: ../fish/guestfish.pod:736
17536 #, no-wrap
17537 msgid ""
17538 " # this is a comment\n"
17539 "         # this is a comment\n"
17540 " foo # NOT a comment\n"
17541 "\n"
17542 msgstr ""
17543
17544 #. type: textblock
17545 #: ../fish/guestfish.pod:740
17546 msgid "Blank lines are also ignored."
17547 msgstr ""
17548
17549 #. type: =head1
17550 #: ../fish/guestfish.pod:742
17551 msgid "RUNNING COMMANDS LOCALLY"
17552 msgstr ""
17553
17554 #. type: textblock
17555 #: ../fish/guestfish.pod:744
17556 msgid ""
17557 "Any line which starts with a I<!> character is treated as a command sent to "
17558 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17559 msgstr ""
17560
17561 #. type: verbatim
17562 #: ../fish/guestfish.pod:748
17563 #, no-wrap
17564 msgid ""
17565 " !mkdir local\n"
17566 " tgz-out /remote local/remote-data.tar.gz\n"
17567 "\n"
17568 msgstr ""
17569
17570 #. type: textblock
17571 #: ../fish/guestfish.pod:751
17572 msgid ""
17573 "will create a directory C<local> on the host, and then export the contents "
17574 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17575 "(See C<tgz-out>)."
17576 msgstr ""
17577
17578 #. type: textblock
17579 #: ../fish/guestfish.pod:755
17580 msgid ""
17581 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17582 "effect, due to the way that subprocesses work in Unix."
17583 msgstr ""
17584
17585 #. type: =head2
17586 #: ../fish/guestfish.pod:758
17587 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17588 msgstr ""
17589
17590 #. type: textblock
17591 #: ../fish/guestfish.pod:760
17592 msgid ""
17593 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
17594 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
17595 "and executed as guestfish commands."
17596 msgstr ""
17597
17598 #. type: textblock
17599 #: ../fish/guestfish.pod:764
17600 msgid ""
17601 "Thus you can use shell script to construct arbitrary guestfish commands "
17602 "which are then parsed by guestfish."
17603 msgstr ""
17604
17605 #. type: textblock
17606 #: ../fish/guestfish.pod:767
17607 msgid ""
17608 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
17609 "through C</foo.100>) using guestfish commands alone.  However this is simple "
17610 "if we use a shell script to create the guestfish commands for us:"
17611 msgstr ""
17612
17613 #. type: verbatim
17614 #: ../fish/guestfish.pod:772
17615 #, no-wrap
17616 msgid ""
17617 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
17618 "\n"
17619 msgstr ""
17620
17621 #. type: textblock
17622 #: ../fish/guestfish.pod:774
17623 msgid "or with names like C</foo.001>:"
17624 msgstr ""
17625
17626 #. type: verbatim
17627 #: ../fish/guestfish.pod:776
17628 #, no-wrap
17629 msgid ""
17630 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
17631 "\n"
17632 msgstr ""
17633
17634 #. type: textblock
17635 #: ../fish/guestfish.pod:778
17636 msgid ""
17637 "When using guestfish interactively it can be helpful to just run the shell "
17638 "script first (ie. remove the initial C<E<lt>> character so it is just an "
17639 "ordinary I<!> local command), see what guestfish commands it would run, and "
17640 "when you are happy with those prepend the C<E<lt>> character to run the "
17641 "guestfish commands for real."
17642 msgstr ""
17643
17644 #. type: =head1
17645 #: ../fish/guestfish.pod:784
17646 msgid "PIPES"
17647 msgstr ""
17648
17649 #. type: textblock
17650 #: ../fish/guestfish.pod:786
17651 msgid ""
17652 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17653 "command (a guestfish command) to the second command (any host command).  For "
17654 "example:"
17655 msgstr ""
17656
17657 #. type: verbatim
17658 #: ../fish/guestfish.pod:790
17659 #, no-wrap
17660 msgid ""
17661 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17662 "\n"
17663 msgstr ""
17664
17665 #. type: textblock
17666 #: ../fish/guestfish.pod:792
17667 msgid ""
17668 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17669 "program).  The above command would list all accounts in the guest filesystem "
17670 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17671 msgstr ""
17672
17673 #. type: verbatim
17674 #: ../fish/guestfish.pod:797
17675 #, no-wrap
17676 msgid ""
17677 " hexdump /bin/ls | head\n"
17678 " list-devices | tail -1\n"
17679 " tgz-out / - | tar ztf -\n"
17680 "\n"
17681 msgstr ""
17682
17683 #. type: textblock
17684 #: ../fish/guestfish.pod:801
17685 msgid ""
17686 "The space before the pipe symbol is required, any space after the pipe "
17687 "symbol is optional.  Everything after the pipe symbol is just passed "
17688 "straight to the host shell, so it can contain redirections, globs and "
17689 "anything else that makes sense on the host side."
17690 msgstr ""
17691
17692 #. type: textblock
17693 #: ../fish/guestfish.pod:806
17694 msgid ""
17695 "To use a literal argument which begins with a pipe symbol, you have to quote "
17696 "it, eg:"
17697 msgstr ""
17698
17699 #. type: verbatim
17700 #: ../fish/guestfish.pod:809
17701 #, no-wrap
17702 msgid ""
17703 " echo \"|\"\n"
17704 "\n"
17705 msgstr ""
17706
17707 #. type: =head1
17708 #: ../fish/guestfish.pod:811
17709 msgid "HOME DIRECTORIES"
17710 msgstr ""
17711
17712 #. type: textblock
17713 #: ../fish/guestfish.pod:813
17714 msgid ""
17715 "If a parameter starts with the character C<~> then the tilde may be expanded "
17716 "as a home directory path (either C<~> for the current user's home directory, "
17717 "or C<~user> for another user)."
17718 msgstr ""
17719
17720 #. type: textblock
17721 #: ../fish/guestfish.pod:817
17722 msgid ""
17723 "Note that home directory expansion happens for users known I<on the host>, "
17724 "not in the guest filesystem."
17725 msgstr ""
17726
17727 #. type: textblock
17728 #: ../fish/guestfish.pod:820
17729 msgid ""
17730 "To use a literal argument which begins with a tilde, you have to quote it, "
17731 "eg:"
17732 msgstr ""
17733
17734 #. type: verbatim
17735 #: ../fish/guestfish.pod:823
17736 #, no-wrap
17737 msgid ""
17738 " echo \"~\"\n"
17739 "\n"
17740 msgstr ""
17741
17742 #. type: =head2
17743 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
17744 msgid "ENCRYPTED DISKS"
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../fish/guestfish.pod:827
17749 msgid ""
17750 "Libguestfs has some support for Linux guests encrypted according to the "
17751 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17752 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
17753 "LUKS is supported."
17754 msgstr ""
17755
17756 #. type: textblock
17757 #: ../fish/guestfish.pod:832
17758 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17759 msgstr ""
17760
17761 #. type: verbatim
17762 #: ../fish/guestfish.pod:834
17763 #, no-wrap
17764 msgid ""
17765 " ><fs> vfs-type /dev/sda2\n"
17766 " crypto_LUKS\n"
17767 "\n"
17768 msgstr ""
17769
17770 #. type: textblock
17771 #: ../fish/guestfish.pod:837
17772 msgid ""
17773 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17774 "device called C</dev/mapper/luksdev>."
17775 msgstr ""
17776
17777 #. type: verbatim
17778 #: ../fish/guestfish.pod:840
17779 #, no-wrap
17780 msgid ""
17781 " ><fs> luks-open /dev/sda2 luksdev\n"
17782 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17783 "\n"
17784 msgstr ""
17785
17786 #. type: textblock
17787 #: ../fish/guestfish.pod:843
17788 msgid ""
17789 "Finally you have to tell LVM to scan for volume groups on the newly created "
17790 "mapper device:"
17791 msgstr ""
17792
17793 #. type: verbatim
17794 #: ../fish/guestfish.pod:846
17795 #, no-wrap
17796 msgid ""
17797 " vgscan\n"
17798 " vg-activate-all true\n"
17799 "\n"
17800 msgstr ""
17801
17802 #. type: textblock
17803 #: ../fish/guestfish.pod:849
17804 msgid "The logical volume(s) can now be mounted in the usual way."
17805 msgstr ""
17806
17807 #. type: textblock
17808 #: ../fish/guestfish.pod:851
17809 msgid ""
17810 "Before closing a LUKS device you must unmount any logical volumes on it and "
17811 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17812 "one.  Then you can close the mapper device:"
17813 msgstr ""
17814
17815 #. type: verbatim
17816 #: ../fish/guestfish.pod:855
17817 #, no-wrap
17818 msgid ""
17819 " vg-activate false /dev/VG\n"
17820 " luks-close /dev/mapper/luksdev\n"
17821 "\n"
17822 msgstr ""
17823
17824 #. type: textblock
17825 #: ../fish/guestfish.pod:860
17826 msgid ""
17827 "If a path is prefixed with C<win:> then you can use Windows-style drive "
17828 "letters and paths (with some limitations).  The following commands are "
17829 "equivalent:"
17830 msgstr ""
17831
17832 #. type: verbatim
17833 #: ../fish/guestfish.pod:864
17834 #, no-wrap
17835 msgid ""
17836 " file /WINDOWS/system32/config/system.LOG\n"
17837 "\n"
17838 msgstr ""
17839
17840 #. type: verbatim
17841 #: ../fish/guestfish.pod:866
17842 #, no-wrap
17843 msgid ""
17844 " file win:\\windows\\system32\\config\\system.log\n"
17845 "\n"
17846 msgstr ""
17847
17848 #. type: verbatim
17849 #: ../fish/guestfish.pod:868
17850 #, no-wrap
17851 msgid ""
17852 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
17853 "\n"
17854 msgstr ""
17855
17856 #. type: textblock
17857 #: ../fish/guestfish.pod:870
17858 msgid ""
17859 "The parameter is rewritten \"behind the scenes\" by looking up the position "
17860 "where the drive is mounted, prepending that to the path, changing all "
17861 "backslash characters to forward slash, then resolving the result using L</"
17862 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
17863 "the parameter might be rewritten like this:"
17864 msgstr ""
17865
17866 #. type: verbatim
17867 #: ../fish/guestfish.pod:876
17868 #, no-wrap
17869 msgid ""
17870 " win:e:\\foo\\bar => /e/FOO/bar\n"
17871 "\n"
17872 msgstr ""
17873
17874 #. type: textblock
17875 #: ../fish/guestfish.pod:878
17876 msgid "This only works in argument positions that expect a path."
17877 msgstr ""
17878
17879 #. type: =head1
17880 #: ../fish/guestfish.pod:880
17881 msgid "UPLOADING AND DOWNLOADING FILES"
17882 msgstr ""
17883
17884 #. type: textblock
17885 #: ../fish/guestfish.pod:882
17886 msgid ""
17887 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17888 "others which upload from or download to a local file, you can use the "
17889 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17890 msgstr ""
17891
17892 #. type: verbatim
17893 #: ../fish/guestfish.pod:886
17894 #, no-wrap
17895 msgid ""
17896 " upload - /foo\n"
17897 "\n"
17898 msgstr ""
17899
17900 #. type: textblock
17901 #: ../fish/guestfish.pod:888
17902 msgid ""
17903 "reads stdin and creates from that a file C</foo> in the disk image, and:"
17904 msgstr ""
17905
17906 #. type: verbatim
17907 #: ../fish/guestfish.pod:891
17908 #, no-wrap
17909 msgid ""
17910 " tar-out /etc - | tar tf -\n"
17911 "\n"
17912 msgstr ""
17913
17914 #. type: textblock
17915 #: ../fish/guestfish.pod:893
17916 msgid ""
17917 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17918 "command (see L</PIPES>)."
17919 msgstr ""
17920
17921 #. type: textblock
17922 #: ../fish/guestfish.pod:896
17923 msgid ""
17924 "When using C<-> to read from stdin, the input is read up to the end of "
17925 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17926 "some arbitrary end marker:"
17927 msgstr ""
17928
17929 #. type: verbatim
17930 #: ../fish/guestfish.pod:900
17931 #, no-wrap
17932 msgid ""
17933 " upload -<<END /foo\n"
17934 " input line 1\n"
17935 " input line 2\n"
17936 " input line 3\n"
17937 " END\n"
17938 "\n"
17939 msgstr ""
17940
17941 #. type: textblock
17942 #: ../fish/guestfish.pod:906
17943 msgid ""
17944 "Any string of characters can be used instead of C<END>.  The end marker must "
17945 "appear on a line of its own, without any preceeding or following characters "
17946 "(not even spaces)."
17947 msgstr ""
17948
17949 #. type: textblock
17950 #: ../fish/guestfish.pod:910
17951 msgid ""
17952 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17953 "upload local files (so-called \"FileIn\" parameters in the generator)."
17954 msgstr ""
17955
17956 #. type: =head1
17957 #: ../fish/guestfish.pod:913
17958 msgid "EXIT ON ERROR BEHAVIOUR"
17959 msgstr ""
17960
17961 #. type: textblock
17962 #: ../fish/guestfish.pod:915
17963 msgid ""
17964 "By default, guestfish will ignore any errors when in interactive mode (ie. "
17965 "taking commands from a human over a tty), and will exit on the first error "
17966 "in non-interactive mode (scripts, commands given on the command line)."
17967 msgstr ""
17968
17969 #. type: textblock
17970 #: ../fish/guestfish.pod:920
17971 msgid ""
17972 "If you prefix a command with a I<-> character, then that command will not "
17973 "cause guestfish to exit, even if that (one) command returns an error."
17974 msgstr ""
17975
17976 #. type: =head1
17977 #: ../fish/guestfish.pod:924
17978 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17979 msgstr ""
17980
17981 #. type: textblock
17982 #: ../fish/guestfish.pod:926
17983 msgid ""
17984 "Guestfish can be remote-controlled over a socket.  This is useful "
17985 "particularly in shell scripts where you want to make several different "
17986 "changes to a filesystem, but you don't want the overhead of starting up a "
17987 "guestfish process each time."
17988 msgstr ""
17989
17990 #. type: textblock
17991 #: ../fish/guestfish.pod:931
17992 msgid "Start a guestfish server process using:"
17993 msgstr ""
17994
17995 #. type: verbatim
17996 #: ../fish/guestfish.pod:933
17997 #, no-wrap
17998 msgid ""
17999 " eval \"`guestfish --listen`\"\n"
18000 "\n"
18001 msgstr ""
18002
18003 #. type: textblock
18004 #: ../fish/guestfish.pod:935
18005 msgid "and then send it commands by doing:"
18006 msgstr ""
18007
18008 #. type: verbatim
18009 #: ../fish/guestfish.pod:937
18010 #, no-wrap
18011 msgid ""
18012 " guestfish --remote cmd [...]\n"
18013 "\n"
18014 msgstr ""
18015
18016 #. type: textblock
18017 #: ../fish/guestfish.pod:939
18018 msgid "To cause the server to exit, send it the exit command:"
18019 msgstr ""
18020
18021 #. type: textblock
18022 #: ../fish/guestfish.pod:943
18023 msgid ""
18024 "Note that the server will normally exit if there is an error in a command.  "
18025 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18026 "BEHAVIOUR>."
18027 msgstr ""
18028
18029 #. type: =head2
18030 #: ../fish/guestfish.pod:947
18031 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18032 msgstr ""
18033
18034 #. type: textblock
18035 #: ../fish/guestfish.pod:949
18036 msgid ""
18037 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18038 "is how the I<--remote> option knows where to send the commands.  You can "
18039 "have several guestfish listener processes running using:"
18040 msgstr ""
18041
18042 #. type: verbatim
18043 #: ../fish/guestfish.pod:953
18044 #, no-wrap
18045 msgid ""
18046 " eval \"`guestfish --listen`\"\n"
18047 " pid1=$GUESTFISH_PID\n"
18048 " eval \"`guestfish --listen`\"\n"
18049 " pid2=$GUESTFISH_PID\n"
18050 " ...\n"
18051 " guestfish --remote=$pid1 cmd\n"
18052 " guestfish --remote=$pid2 cmd\n"
18053 "\n"
18054 msgstr ""
18055
18056 #. type: =head2
18057 #: ../fish/guestfish.pod:961
18058 msgid "REMOTE CONTROL AND CSH"
18059 msgstr ""
18060
18061 #. type: textblock
18062 #: ../fish/guestfish.pod:963
18063 msgid ""
18064 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18065 "option:"
18066 msgstr ""
18067
18068 #. type: verbatim
18069 #: ../fish/guestfish.pod:966
18070 #, no-wrap
18071 msgid ""
18072 " eval \"`guestfish --listen --csh`\"\n"
18073 "\n"
18074 msgstr ""
18075
18076 #. type: =head2
18077 #: ../fish/guestfish.pod:968
18078 msgid "REMOTE CONTROL DETAILS"
18079 msgstr ""
18080
18081 #. type: textblock
18082 #: ../fish/guestfish.pod:970
18083 msgid ""
18084 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18085 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18086 "and C<$PID> is the process ID of the server."
18087 msgstr ""
18088
18089 #. type: textblock
18090 #: ../fish/guestfish.pod:974
18091 msgid "Guestfish client and server versions must match exactly."
18092 msgstr ""
18093
18094 #. type: =head2
18095 #: ../fish/guestfish.pod:976
18096 msgid "REMOTE CONTROL RUN COMMAND HANGING"
18097 msgstr ""
18098
18099 #. type: textblock
18100 #: ../fish/guestfish.pod:978
18101 msgid ""
18102 "Using the C<run> (or C<launch>) command remotely in a command substitution "
18103 "context hangs, ie. don't do (note the backquotes):"
18104 msgstr ""
18105
18106 #. type: verbatim
18107 #: ../fish/guestfish.pod:981
18108 #, no-wrap
18109 msgid ""
18110 " a=`guestfish --remote run`\n"
18111 "\n"
18112 msgstr ""
18113
18114 #. type: textblock
18115 #: ../fish/guestfish.pod:983
18116 msgid ""
18117 "Since the C<run> command produces no output on stdout, this is not useful "
18118 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
18119 "cgi?id=592910>."
18120 msgstr ""
18121
18122 #. type: =head1
18123 #: ../fish/guestfish.pod:987
18124 msgid "PREPARED DISK IMAGES"
18125 msgstr ""
18126
18127 #. type: textblock
18128 #: ../fish/guestfish.pod:989
18129 msgid ""
18130 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18131 "preformatted disk images that guestfish can make for you to save typing.  "
18132 "This is particularly useful for testing purposes.  This option is used "
18133 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18134 "can be mixed with I<-a>)."
18135 msgstr ""
18136
18137 #. type: textblock
18138 #: ../fish/guestfish.pod:995
18139 msgid ""
18140 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18141 "the second and so on.  Existing files in the current directory are "
18142 "I<overwritten>."
18143 msgstr ""
18144
18145 #. type: textblock
18146 #: ../fish/guestfish.pod:999
18147 msgid ""
18148 "The type briefly describes how the disk should be sized, partitioned, how "
18149 "filesystem(s) should be created, and how content should be added.  "
18150 "Optionally the type can be followed by extra parameters, separated by C<:> "
18151 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18152 "allocated disk, containing a single partition, with the partition formatted "
18153 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18154 "disk instead."
18155 msgstr ""
18156
18157 #. type: textblock
18158 #: ../fish/guestfish.pod:1007
18159 msgid "To list the available types and any extra parameters they take, run:"
18160 msgstr ""
18161
18162 #. type: textblock
18163 #: ../fish/guestfish.pod:1011
18164 msgid ""
18165 "Note that the prepared filesystem is not mounted.  You would usually have to "
18166 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18167 msgstr ""
18168
18169 #. type: textblock
18170 #: ../fish/guestfish.pod:1015
18171 msgid ""
18172 "If any I<-N> or I<--new> options are given, the guest is automatically "
18173 "launched."
18174 msgstr ""
18175
18176 #. type: textblock
18177 #: ../fish/guestfish.pod:1020
18178 msgid "Create a 100MB disk with an ext4-formatted partition:"
18179 msgstr ""
18180
18181 #. type: verbatim
18182 #: ../fish/guestfish.pod:1022
18183 #, no-wrap
18184 msgid ""
18185 " guestfish -N fs:ext4\n"
18186 "\n"
18187 msgstr ""
18188
18189 #. type: textblock
18190 #: ../fish/guestfish.pod:1024
18191 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18192 msgstr ""
18193
18194 #. type: verbatim
18195 #: ../fish/guestfish.pod:1026
18196 #, no-wrap
18197 msgid ""
18198 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18199 "\n"
18200 msgstr ""
18201
18202 #. type: textblock
18203 #: ../fish/guestfish.pod:1028
18204 msgid "Create a blank 200MB disk:"
18205 msgstr ""
18206
18207 #. type: verbatim
18208 #: ../fish/guestfish.pod:1030
18209 #, no-wrap
18210 msgid ""
18211 " guestfish -N disk:200M\n"
18212 "\n"
18213 msgstr ""
18214
18215 #. type: =head1
18216 #: ../fish/guestfish.pod:1032
18217 msgid "PROGRESS BARS"
18218 msgstr ""
18219
18220 #. type: textblock
18221 #: ../fish/guestfish.pod:1034
18222 msgid ""
18223 "Some (not all) long-running commands send progress notification messages as "
18224 "they are running.  Guestfish turns these messages into progress bars."
18225 msgstr ""
18226
18227 #. type: textblock
18228 #: ../fish/guestfish.pod:1038
18229 msgid ""
18230 "When a command that supports progress bars takes longer than two seconds to "
18231 "run, and if progress bars are enabled, then you will see one appearing below "
18232 "the command:"
18233 msgstr ""
18234
18235 #. type: verbatim
18236 #: ../fish/guestfish.pod:1042
18237 #, no-wrap
18238 msgid ""
18239 " ><fs> copy-size /large-file /another-file 2048M\n"
18240 " / 10% [#####-----------------------------------------] 00:30\n"
18241 "\n"
18242 msgstr ""
18243
18244 #. type: textblock
18245 #: ../fish/guestfish.pod:1045
18246 msgid ""
18247 "The spinner on the left hand side moves round once for every progress "
18248 "notification received from the backend.  This is a (reasonably) golden "
18249 "assurance that the command is \"doing something\" even if the progress bar "
18250 "is not moving, because the command is able to send the progress "
18251 "notifications.  When the bar reaches 100% and the command finishes, the "
18252 "spinner disappears."
18253 msgstr ""
18254
18255 #. type: textblock
18256 #: ../fish/guestfish.pod:1052
18257 msgid ""
18258 "Progress bars are enabled by default when guestfish is used interactively.  "
18259 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18260 "and you can disable them completely using I<--no-progress-bars>."
18261 msgstr ""
18262
18263 #. type: =head1
18264 #: ../fish/guestfish.pod:1057
18265 msgid "GUESTFISH COMMANDS"
18266 msgstr ""
18267
18268 #. type: textblock
18269 #: ../fish/guestfish.pod:1059
18270 msgid ""
18271 "The commands in this section are guestfish convenience commands, in other "
18272 "words, they are not part of the L<guestfs(3)> API."
18273 msgstr ""
18274
18275 #. type: =head2
18276 #: ../fish/guestfish.pod:1062
18277 msgid "help"
18278 msgstr ""
18279
18280 #. type: verbatim
18281 #: ../fish/guestfish.pod:1064
18282 #, no-wrap
18283 msgid ""
18284 " help\n"
18285 " help cmd\n"
18286 "\n"
18287 msgstr ""
18288
18289 #. type: textblock
18290 #: ../fish/guestfish.pod:1067
18291 msgid "Without any parameter, this provides general help."
18292 msgstr ""
18293
18294 #. type: textblock
18295 #: ../fish/guestfish.pod:1069
18296 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18297 msgstr ""
18298
18299 #. type: =head2
18300 #: ../fish/guestfish.pod:1071
18301 msgid "quit | exit"
18302 msgstr ""
18303
18304 #. type: textblock
18305 #: ../fish/guestfish.pod:1073
18306 msgid "This exits guestfish.  You can also use C<^D> key."
18307 msgstr ""
18308
18309 #. type: textblock
18310 #: ../fish/guestfish.pod:1075
18311 msgid "@FISH_COMMANDS@"
18312 msgstr ""
18313
18314 #. type: =head1
18315 #: ../fish/guestfish.pod:1077
18316 msgid "COMMANDS"
18317 msgstr ""
18318
18319 #. type: textblock
18320 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1474
18321 msgid "@ACTIONS@"
18322 msgstr ""
18323
18324 #. type: textblock
18325 #: ../fish/guestfish.pod:1083
18326 msgid ""
18327 "guestfish returns 0 if the commands completed without error, or 1 if there "
18328 "was an error."
18329 msgstr ""
18330
18331 #. type: =item
18332 #: ../fish/guestfish.pod:1090
18333 msgid "EDITOR"
18334 msgstr ""
18335
18336 #. type: textblock
18337 #: ../fish/guestfish.pod:1092
18338 msgid ""
18339 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18340 "C<vi>."
18341 msgstr ""
18342
18343 #. type: =item
18344 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:2969
18345 msgid "FEBOOTSTRAP_KERNEL"
18346 msgstr ""
18347
18348 #. type: =item
18349 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:2971
18350 msgid "FEBOOTSTRAP_MODULES"
18351 msgstr ""
18352
18353 #. type: textblock
18354 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:2973
18355 msgid ""
18356 "These two environment variables allow the kernel that libguestfs uses in the "
18357 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
18358 "most recent host kernel is chosen.  For more information about kernel "
18359 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
18360 "available in febootstrap E<ge> 3.8."
18361 msgstr ""
18362
18363 #. type: =item
18364 #: ../fish/guestfish.pod:1105
18365 msgid "GUESTFISH_DISPLAY_IMAGE"
18366 msgstr ""
18367
18368 #. type: textblock
18369 #: ../fish/guestfish.pod:1107
18370 msgid ""
18371 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
18372 "If not set, it uses L<display(1)>."
18373 msgstr ""
18374
18375 #. type: =item
18376 #: ../fish/guestfish.pod:1110
18377 msgid "GUESTFISH_PID"
18378 msgstr ""
18379
18380 #. type: textblock
18381 #: ../fish/guestfish.pod:1112
18382 msgid ""
18383 "Used with the I<--remote> option to specify the remote guestfish process to "
18384 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18385 msgstr ""
18386
18387 #. type: =item
18388 #: ../fish/guestfish.pod:1116
18389 msgid "HEXEDITOR"
18390 msgstr ""
18391
18392 #. type: textblock
18393 #: ../fish/guestfish.pod:1118
18394 msgid ""
18395 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18396 "not specified, the external L<hexedit(1)> program is used."
18397 msgstr ""
18398
18399 #. type: =item
18400 #: ../fish/guestfish.pod:1122
18401 msgid "HOME"
18402 msgstr ""
18403
18404 #. type: textblock
18405 #: ../fish/guestfish.pod:1124
18406 msgid ""
18407 "If compiled with GNU readline support, various files in the home directory "
18408 "can be used.  See L</FILES>."
18409 msgstr ""
18410
18411 #. type: =item
18412 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2979
18413 msgid "LIBGUESTFS_APPEND"
18414 msgstr ""
18415
18416 #. type: textblock
18417 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:2981
18418 msgid "Pass additional options to the guest kernel."
18419 msgstr ""
18420
18421 #. type: =item
18422 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:2983
18423 msgid "LIBGUESTFS_DEBUG"
18424 msgstr ""
18425
18426 #. type: textblock
18427 #: ../fish/guestfish.pod:1133
18428 msgid ""
18429 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18430 "effect as using the B<-v> option."
18431 msgstr ""
18432
18433 #. type: =item
18434 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:2988
18435 msgid "LIBGUESTFS_MEMSIZE"
18436 msgstr ""
18437
18438 #. type: textblock
18439 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:2990
18440 msgid ""
18441 "Set the memory allocated to the qemu process, in megabytes.  For example:"
18442 msgstr ""
18443
18444 #. type: verbatim
18445 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:2993
18446 #, no-wrap
18447 msgid ""
18448 " LIBGUESTFS_MEMSIZE=700\n"
18449 "\n"
18450 msgstr ""
18451
18452 #. type: =item
18453 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:2995
18454 msgid "LIBGUESTFS_PATH"
18455 msgstr ""
18456
18457 #. type: textblock
18458 #: ../fish/guestfish.pod:1145
18459 msgid ""
18460 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18461 "the discussion of paths in L<guestfs(3)>."
18462 msgstr ""
18463
18464 #. type: =item
18465 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3000
18466 msgid "LIBGUESTFS_QEMU"
18467 msgstr ""
18468
18469 #. type: textblock
18470 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3002
18471 msgid ""
18472 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
18473 "which was found at compile time by the configure script is used."
18474 msgstr ""
18475
18476 #. type: =item
18477 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3008
18478 msgid "LIBGUESTFS_TRACE"
18479 msgstr ""
18480
18481 #. type: textblock
18482 #: ../fish/guestfish.pod:1156
18483 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18484 msgstr ""
18485
18486 #. type: =item
18487 #: ../fish/guestfish.pod:1158
18488 msgid "PAGER"
18489 msgstr ""
18490
18491 #. type: textblock
18492 #: ../fish/guestfish.pod:1160
18493 msgid ""
18494 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18495 "C<more>."
18496 msgstr ""
18497
18498 #. type: =item
18499 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3013
18500 msgid "TMPDIR"
18501 msgstr ""
18502
18503 #. type: textblock
18504 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3015
18505 msgid ""
18506 "Location of temporary directory, defaults to C</tmp> except for the cached "
18507 "supermin appliance which defaults to C</var/tmp>."
18508 msgstr ""
18509
18510 #. type: textblock
18511 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3018
18512 msgid ""
18513 "If libguestfs was compiled to use the supermin appliance then the real "
18514 "appliance is cached in this directory, shared between all handles belonging "
18515 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
18516 "use in case C</var/tmp> is not large enough."
18517 msgstr ""
18518
18519 #. type: =head1
18520 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
18521 #: ../rescue/virt-rescue.pod:269
18522 msgid "FILES"
18523 msgstr ""
18524
18525 #. type: =item
18526 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
18527 #: ../rescue/virt-rescue.pod:273
18528 msgid "$HOME/.libguestfs-tools.rc"
18529 msgstr ""
18530
18531 #. type: =item
18532 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
18533 #: ../rescue/virt-rescue.pod:275
18534 msgid "/etc/libguestfs-tools.conf"
18535 msgstr ""
18536
18537 #. type: textblock
18538 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
18539 #: ../rescue/virt-rescue.pod:277
18540 msgid ""
18541 "This configuration file controls the default read-only or read-write mode "
18542 "(I<--ro> or I<--rw>)."
18543 msgstr ""
18544
18545 #. type: textblock
18546 #: ../fish/guestfish.pod:1187
18547 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
18548 msgstr ""
18549
18550 #. type: =item
18551 #: ../fish/guestfish.pod:1189
18552 msgid "$HOME/.guestfish"
18553 msgstr ""
18554
18555 #. type: textblock
18556 #: ../fish/guestfish.pod:1191
18557 msgid ""
18558 "If compiled with GNU readline support, then the command history is saved in "
18559 "this file."
18560 msgstr ""
18561
18562 #. type: =item
18563 #: ../fish/guestfish.pod:1194
18564 msgid "$HOME/.inputrc"
18565 msgstr ""
18566
18567 #. type: =item
18568 #: ../fish/guestfish.pod:1196
18569 msgid "/etc/inputrc"
18570 msgstr ""
18571
18572 #. type: textblock
18573 #: ../fish/guestfish.pod:1198
18574 msgid ""
18575 "If compiled with GNU readline support, then these files can be used to "
18576 "configure readline.  For further information, please see L<readline(3)/"
18577 "INITIALIZATION FILE>."
18578 msgstr ""
18579
18580 #. type: textblock
18581 #: ../fish/guestfish.pod:1202
18582 msgid "To write rules which only apply to guestfish, use:"
18583 msgstr ""
18584
18585 #. type: verbatim
18586 #: ../fish/guestfish.pod:1204
18587 #, no-wrap
18588 msgid ""
18589 " $if guestfish\n"
18590 " ...\n"
18591 " $endif\n"
18592 "\n"
18593 msgstr ""
18594
18595 #. type: textblock
18596 #: ../fish/guestfish.pod:1208
18597 msgid ""
18598 "Variables that you can set in inputrc that change the behaviour of guestfish "
18599 "in useful ways include:"
18600 msgstr ""
18601
18602 #. type: =item
18603 #: ../fish/guestfish.pod:1213
18604 msgid "completion-ignore-case (default: on)"
18605 msgstr ""
18606
18607 #. type: textblock
18608 #: ../fish/guestfish.pod:1215
18609 msgid ""
18610 "By default, guestfish will ignore case when tab-completing paths on the "
18611 "disk.  Use:"
18612 msgstr ""
18613
18614 #. type: verbatim
18615 #: ../fish/guestfish.pod:1218
18616 #, no-wrap
18617 msgid ""
18618 " set completion-ignore-case off\n"
18619 "\n"
18620 msgstr ""
18621
18622 #. type: textblock
18623 #: ../fish/guestfish.pod:1220
18624 msgid "to make guestfish case sensitive."
18625 msgstr ""
18626
18627 #. type: =item
18628 #: ../fish/guestfish.pod:1224
18629 msgid "test1.img"
18630 msgstr ""
18631
18632 #. type: =item
18633 #: ../fish/guestfish.pod:1226
18634 msgid "test2.img (etc)"
18635 msgstr ""
18636
18637 #. type: textblock
18638 #: ../fish/guestfish.pod:1228
18639 msgid ""
18640 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
18641 "will be created in the file C<test1.img> in the current directory.  The "
18642 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
18643 "the same name will be overwritten."
18644 msgstr ""
18645
18646 #. type: textblock
18647 #: ../fish/guestfish.pod:1237
18648 msgid ""
18649 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
18650 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
18651 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
18652 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
18653 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
18654 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
18655 msgstr ""
18656
18657 #. type: textblock
18658 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3104
18659 #: ../test-tool/libguestfs-test-tool.pod:99
18660 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
18661 msgstr ""
18662
18663 #. type: textblock
18664 #: ../fish/virt-copy-in.pod:5
18665 msgid ""
18666 "virt-copy-in - Copy files and directories into a virtual machine disk image."
18667 msgstr ""
18668
18669 #. type: verbatim
18670 #: ../fish/virt-copy-in.pod:9
18671 #, no-wrap
18672 msgid ""
18673 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
18674 "\n"
18675 msgstr ""
18676
18677 #. type: verbatim
18678 #: ../fish/virt-copy-in.pod:11
18679 #, no-wrap
18680 msgid ""
18681 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
18682 "\n"
18683 msgstr ""
18684
18685 #. type: textblock
18686 #: ../fish/virt-copy-in.pod:15
18687 msgid ""
18688 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
18689 "causing disk corruption.  The virtual machine must be shut down before you "
18690 "use this command."
18691 msgstr ""
18692
18693 #. type: textblock
18694 #: ../fish/virt-copy-in.pod:21
18695 msgid ""
18696 "C<virt-copy-in> copies files and directories from the local disk into a "
18697 "virtual machine disk image or named libvirt domain."
18698 msgstr ""
18699
18700 #. type: textblock
18701 #: ../fish/virt-copy-in.pod:24
18702 msgid ""
18703 "You can give one of more filenames and directories on the command line.  "
18704 "Directories are copied in recursively.  The final parameter must be the "
18705 "destination directory in the disk image which must be an absolute path "
18706 "starting with a C</> character."
18707 msgstr ""
18708
18709 #. type: verbatim
18710 #: ../fish/virt-copy-in.pod:33
18711 #, no-wrap
18712 msgid ""
18713 " virt-copy-in -d MyGuest resolv.conf /etc\n"
18714 "\n"
18715 msgstr ""
18716
18717 #. type: textblock
18718 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
18719 msgid "Upload a home directory to a guest:"
18720 msgstr ""
18721
18722 #. type: verbatim
18723 #: ../fish/virt-copy-in.pod:37
18724 #, no-wrap
18725 msgid ""
18726 " virt-copy-in -d MyGuest skel /home\n"
18727 "\n"
18728 msgstr ""
18729
18730 #. type: =head1
18731 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
18732 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
18733 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
18734 msgstr ""
18735
18736 #. type: textblock
18737 #: ../fish/virt-copy-in.pod:41
18738 msgid ""
18739 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18740 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
18741 "are probably better off using guestfish directly."
18742 msgstr ""
18743
18744 #. type: textblock
18745 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
18746 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
18747 msgid ""
18748 "Since the shell script just passes options straight to guestfish, read "
18749 "L<guestfish(1)> to see the full list of options."
18750 msgstr ""
18751
18752 #. type: textblock
18753 #: ../fish/virt-copy-in.pod:52
18754 msgid ""
18755 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
18756 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18757 msgstr ""
18758
18759 #. type: textblock
18760 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
18761 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
18762 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
18763 msgstr ""
18764
18765 #. type: textblock
18766 #: ../fish/virt-copy-out.pod:5
18767 msgid ""
18768 "virt-copy-out - Copy files and directories out of a virtual machine disk "
18769 "image."
18770 msgstr ""
18771
18772 #. type: verbatim
18773 #: ../fish/virt-copy-out.pod:9
18774 #, no-wrap
18775 msgid ""
18776 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
18777 "\n"
18778 msgstr ""
18779
18780 #. type: verbatim
18781 #: ../fish/virt-copy-out.pod:11
18782 #, no-wrap
18783 msgid ""
18784 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
18785 "\n"
18786 msgstr ""
18787
18788 #. type: textblock
18789 #: ../fish/virt-copy-out.pod:15
18790 msgid ""
18791 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
18792 "image or named libvirt domain."
18793 msgstr ""
18794
18795 #. type: textblock
18796 #: ../fish/virt-copy-out.pod:18
18797 msgid ""
18798 "You can give one of more filenames and directories on the command line.  "
18799 "Directories are copied out recursively."
18800 msgstr ""
18801
18802 #. type: textblock
18803 #: ../fish/virt-copy-out.pod:23
18804 msgid "Download the home directories from a virtual machine:"
18805 msgstr ""
18806
18807 #. type: verbatim
18808 #: ../fish/virt-copy-out.pod:25
18809 #, no-wrap
18810 msgid ""
18811 " mkdir homes\n"
18812 " virt-copy-out -d MyGuest /home homes\n"
18813 "\n"
18814 msgstr ""
18815
18816 #. type: textblock
18817 #: ../fish/virt-copy-out.pod:30
18818 msgid ""
18819 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18820 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
18821 "are probably better off using guestfish directly."
18822 msgstr ""
18823
18824 #. type: textblock
18825 #: ../fish/virt-copy-out.pod:41
18826 msgid ""
18827 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
18828 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18829 msgstr ""
18830
18831 #. type: textblock
18832 #: ../fish/virt-tar-in.pod:5
18833 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
18834 msgstr ""
18835
18836 #. type: verbatim
18837 #: ../fish/virt-tar-in.pod:9
18838 #, no-wrap
18839 msgid ""
18840 " virt-tar-in -a disk.img data.tar /destination\n"
18841 "\n"
18842 msgstr ""
18843
18844 #. type: verbatim
18845 #: ../fish/virt-tar-in.pod:11
18846 #, no-wrap
18847 msgid ""
18848 " virt-tar-in -d domain data.tar /destination\n"
18849 "\n"
18850 msgstr ""
18851
18852 #. type: verbatim
18853 #: ../fish/virt-tar-in.pod:13
18854 #, no-wrap
18855 msgid ""
18856 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
18857 "\n"
18858 msgstr ""
18859
18860 #. type: textblock
18861 #: ../fish/virt-tar-in.pod:17
18862 msgid ""
18863 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
18864 "causing disk corruption.  The virtual machine must be shut down before you "
18865 "use this command."
18866 msgstr ""
18867
18868 #. type: textblock
18869 #: ../fish/virt-tar-in.pod:23
18870 msgid ""
18871 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
18872 "image or named libvirt domain."
18873 msgstr ""
18874
18875 #. type: textblock
18876 #: ../fish/virt-tar-in.pod:26
18877 msgid ""
18878 "The first parameter is the tar file.  Use C<-> to read the tar file from "
18879 "standard input.  The second parameter is the absolute target directory to "
18880 "unpack into."
18881 msgstr ""
18882
18883 #. type: verbatim
18884 #: ../fish/virt-tar-in.pod:34
18885 #, no-wrap
18886 msgid ""
18887 " virt-tar-in -d MyGuest homes.tar /home\n"
18888 "\n"
18889 msgstr ""
18890
18891 #. type: textblock
18892 #: ../fish/virt-tar-in.pod:38
18893 msgid ""
18894 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18895 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
18896 "probably better off using guestfish directly."
18897 msgstr ""
18898
18899 #. type: textblock
18900 #: ../fish/virt-tar-in.pod:49
18901 msgid ""
18902 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18903 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
18904 "org/>."
18905 msgstr ""
18906
18907 #. type: textblock
18908 #: ../fish/virt-tar-out.pod:5
18909 msgid ""
18910 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
18911 msgstr ""
18912
18913 #. type: verbatim
18914 #: ../fish/virt-tar-out.pod:9
18915 #, no-wrap
18916 msgid ""
18917 " virt-tar-out -a disk.img /dir files.tar\n"
18918 "\n"
18919 msgstr ""
18920
18921 #. type: verbatim
18922 #: ../fish/virt-tar-out.pod:11
18923 #, no-wrap
18924 msgid ""
18925 " virt-tar-out -d domain /dir files.tar\n"
18926 "\n"
18927 msgstr ""
18928
18929 #. type: verbatim
18930 #: ../fish/virt-tar-out.pod:13
18931 #, no-wrap
18932 msgid ""
18933 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
18934 "\n"
18935 msgstr ""
18936
18937 #. type: textblock
18938 #: ../fish/virt-tar-out.pod:17
18939 msgid ""
18940 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
18941 msgstr ""
18942
18943 #. type: textblock
18944 #: ../fish/virt-tar-out.pod:20
18945 msgid ""
18946 "The first parameter is the absolute path of the virtual machine directory.  "
18947 "The second parameter is the tar file to write.  Use C<-> to write to "
18948 "standard output."
18949 msgstr ""
18950
18951 #. type: textblock
18952 #: ../fish/virt-tar-out.pod:26
18953 msgid "Download the home directories from a guest:"
18954 msgstr ""
18955
18956 #. type: verbatim
18957 #: ../fish/virt-tar-out.pod:28
18958 #, no-wrap
18959 msgid ""
18960 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
18961 "\n"
18962 msgstr ""
18963
18964 #. type: textblock
18965 #: ../fish/virt-tar-out.pod:32
18966 msgid ""
18967 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18968 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
18969 "are probably better off using guestfish directly."
18970 msgstr ""
18971
18972 #. type: textblock
18973 #: ../fish/virt-tar-out.pod:43
18974 msgid ""
18975 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18976 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
18977 msgstr ""
18978
18979 #. type: textblock
18980 #: ../fuse/guestmount.pod:5
18981 msgid ""
18982 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
18983 msgstr ""
18984
18985 #. type: verbatim
18986 #: ../fuse/guestmount.pod:9
18987 #, no-wrap
18988 msgid ""
18989 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
18990 "\n"
18991 msgstr ""
18992
18993 #. type: verbatim
18994 #: ../fuse/guestmount.pod:11
18995 #, no-wrap
18996 msgid ""
18997 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
18998 "\n"
18999 msgstr ""
19000
19001 #. type: verbatim
19002 #: ../fuse/guestmount.pod:13
19003 #, no-wrap
19004 msgid ""
19005 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19006 "\n"
19007 msgstr ""
19008
19009 #. type: textblock
19010 #: ../fuse/guestmount.pod:17
19011 msgid ""
19012 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19013 "machines.  If you do this, you risk disk corruption in the VM."
19014 msgstr ""
19015
19016 #. type: textblock
19017 #: ../fuse/guestmount.pod:22
19018 msgid ""
19019 "The guestmount program can be used to mount virtual machine filesystems and "
19020 "other disk images on the host.  It uses libguestfs for access to the guest "
19021 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19022 "a mountable device."
19023 msgstr ""
19024
19025 #. type: textblock
19026 #: ../fuse/guestmount.pod:27
19027 msgid ""
19028 "Along with other options, you have to give at least one device (I<-a> "
19029 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19030 "option) or use the I<-i> inspection option.  How this works is better "
19031 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19032 "below."
19033 msgstr ""
19034
19035 #. type: textblock
19036 #: ../fuse/guestmount.pod:33
19037 msgid ""
19038 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
19039 "by you, and the filesystem will not be visible to any other users unless you "
19040 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
19041 "the filesystem, use the C<fusermount -u> command."
19042 msgstr ""
19043
19044 #. type: textblock
19045 #: ../fuse/guestmount.pod:41
19046 msgid ""
19047 "For a typical Windows guest which has its main filesystem on the first "
19048 "partition:"
19049 msgstr ""
19050
19051 #. type: verbatim
19052 #: ../fuse/guestmount.pod:44
19053 #, no-wrap
19054 msgid ""
19055 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19056 "\n"
19057 msgstr ""
19058
19059 #. type: textblock
19060 #: ../fuse/guestmount.pod:46
19061 msgid ""
19062 "For a typical Linux guest which has a /boot filesystem on the first "
19063 "partition, and the root filesystem on a logical volume:"
19064 msgstr ""
19065
19066 #. type: verbatim
19067 #: ../fuse/guestmount.pod:49
19068 #, no-wrap
19069 msgid ""
19070 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19071 "\n"
19072 msgstr ""
19073
19074 #. type: textblock
19075 #: ../fuse/guestmount.pod:51
19076 msgid "To get libguestfs to detect guest mountpoints for you:"
19077 msgstr ""
19078
19079 #. type: verbatim
19080 #: ../fuse/guestmount.pod:53
19081 #, no-wrap
19082 msgid ""
19083 " guestmount -a guest.img -i --ro /mnt\n"
19084 "\n"
19085 msgstr ""
19086
19087 #. type: textblock
19088 #: ../fuse/guestmount.pod:55
19089 msgid "For a libvirt guest called \"Guest\" you could do:"
19090 msgstr ""
19091
19092 #. type: verbatim
19093 #: ../fuse/guestmount.pod:57
19094 #, no-wrap
19095 msgid ""
19096 " guestmount -d Guest -i --ro /mnt\n"
19097 "\n"
19098 msgstr ""
19099
19100 #. type: textblock
19101 #: ../fuse/guestmount.pod:59
19102 msgid ""
19103 "If you don't know what filesystems are contained in a guest or disk image, "
19104 "use L<virt-filesystems(1)> first:"
19105 msgstr ""
19106
19107 #. type: verbatim
19108 #: ../fuse/guestmount.pod:62
19109 #, no-wrap
19110 msgid ""
19111 " virt-filesystems MyGuest\n"
19112 "\n"
19113 msgstr ""
19114
19115 #. type: textblock
19116 #: ../fuse/guestmount.pod:64
19117 msgid ""
19118 "If you want to trace the libguestfs calls but without excessive debugging "
19119 "information, we recommend:"
19120 msgstr ""
19121
19122 #. type: verbatim
19123 #: ../fuse/guestmount.pod:67
19124 #, no-wrap
19125 msgid ""
19126 " guestmount [...] --trace /mnt\n"
19127 "\n"
19128 msgstr ""
19129
19130 #. type: textblock
19131 #: ../fuse/guestmount.pod:69
19132 msgid "If you want to debug the program, we recommend:"
19133 msgstr ""
19134
19135 #. type: verbatim
19136 #: ../fuse/guestmount.pod:71
19137 #, no-wrap
19138 msgid ""
19139 " guestmount [...] --trace --verbose /mnt\n"
19140 "\n"
19141 msgstr ""
19142
19143 #. type: =head1
19144 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
19145 #: ../resize/virt-resize.pod:511
19146 msgid "NOTES"
19147 msgstr ""
19148
19149 #. type: =head2
19150 #: ../fuse/guestmount.pod:75
19151 msgid "Other users cannot see the filesystem by default"
19152 msgstr ""
19153
19154 #. type: textblock
19155 #: ../fuse/guestmount.pod:77
19156 msgid ""
19157 "If you mount a filesystem as one user (eg. root), then other users will not "
19158 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
19159 "option when mounting:"
19160 msgstr ""
19161
19162 #. type: verbatim
19163 #: ../fuse/guestmount.pod:81
19164 #, no-wrap
19165 msgid ""
19166 " sudo guestmount [...] -o allow_other /mnt\n"
19167 "\n"
19168 msgstr ""
19169
19170 #. type: textblock
19171 #: ../fuse/guestmount.pod:91
19172 msgid "Add a block device or virtual machine image."
19173 msgstr ""
19174
19175 #. type: =item
19176 #: ../fuse/guestmount.pod:114
19177 msgid "B<--dir-cache-timeout N>"
19178 msgstr ""
19179
19180 #. type: textblock
19181 #: ../fuse/guestmount.pod:116
19182 msgid ""
19183 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
19184 "seconds.  The readdir cache [actually, there are several semi-independent "
19185 "caches] is populated after a readdir(2) call with the stat and extended "
19186 "attributes of the files in the directory, in anticipation that they will be "
19187 "requested soon after."
19188 msgstr ""
19189
19190 #. type: textblock
19191 #: ../fuse/guestmount.pod:122
19192 msgid ""
19193 "There is also a different attribute cache implemented by FUSE (see the FUSE "
19194 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
19195 "requests, only cache existing ones."
19196 msgstr ""
19197
19198 #. type: textblock
19199 #: ../fuse/guestmount.pod:142
19200 msgid ""
19201 "If you have untrusted raw-format guest disk images, you should use this "
19202 "option to specify the disk format.  This avoids a possible security problem "
19203 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
19204 "guestfs_add_drive_opts>."
19205 msgstr ""
19206
19207 #. type: =item
19208 #: ../fuse/guestmount.pod:147
19209 msgid "B<--fuse-help>"
19210 msgstr ""
19211
19212 #. type: textblock
19213 #: ../fuse/guestmount.pod:149
19214 msgid "Display help on special FUSE options (see I<-o> below)."
19215 msgstr ""
19216
19217 #. type: textblock
19218 #: ../fuse/guestmount.pod:153
19219 msgid "Display brief help and exit."
19220 msgstr ""
19221
19222 #. type: textblock
19223 #: ../fuse/guestmount.pod:177
19224 msgid ""
19225 "Mount the named partition or logical volume on the given mountpoint B<in the "
19226 "guest> (this has nothing to do with mountpoints in the host)."
19227 msgstr ""
19228
19229 #. type: textblock
19230 #: ../fuse/guestmount.pod:180
19231 msgid ""
19232 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
19233 "something on C</>."
19234 msgstr ""
19235
19236 #. type: textblock
19237 #: ../fuse/guestmount.pod:197
19238 msgid ""
19239 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
19240 "unmounted.  If you specify this option, then we don't attempt to sync the "
19241 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
19242 msgstr ""
19243
19244 #. type: =item
19245 #: ../fuse/guestmount.pod:202
19246 msgid "B<-o option>"
19247 msgstr ""
19248
19249 #. type: =item
19250 #: ../fuse/guestmount.pod:204
19251 msgid "B<--option option>"
19252 msgstr ""
19253
19254 #. type: textblock
19255 #: ../fuse/guestmount.pod:206
19256 msgid "Pass extra options to FUSE."
19257 msgstr ""
19258
19259 #. type: textblock
19260 #: ../fuse/guestmount.pod:208
19261 msgid ""
19262 "To get a list of all the extra options supported by FUSE, use the command "
19263 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
19264 "of them are a good idea."
19265 msgstr ""
19266
19267 #. type: verbatim
19268 #: ../fuse/guestmount.pod:212
19269 #, no-wrap
19270 msgid ""
19271 " guestmount --fuse-help\n"
19272 "\n"
19273 msgstr ""
19274
19275 #. type: textblock
19276 #: ../fuse/guestmount.pod:214
19277 msgid "Some potentially useful FUSE options:"
19278 msgstr ""
19279
19280 #. type: =item
19281 #: ../fuse/guestmount.pod:218
19282 msgid "B<-o allow_other>"
19283 msgstr ""
19284
19285 #. type: textblock
19286 #: ../fuse/guestmount.pod:220
19287 msgid "Allow other users to see the filesystem."
19288 msgstr ""
19289
19290 #. type: =item
19291 #: ../fuse/guestmount.pod:222
19292 msgid "B<-o attr_timeout=N>"
19293 msgstr ""
19294
19295 #. type: textblock
19296 #: ../fuse/guestmount.pod:224
19297 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
19298 msgstr ""
19299
19300 #. type: =item
19301 #: ../fuse/guestmount.pod:226
19302 msgid "B<-o kernel_cache>"
19303 msgstr ""
19304
19305 #. type: textblock
19306 #: ../fuse/guestmount.pod:228
19307 msgid ""
19308 "Allow the kernel to cache files (reduces the number of reads that have to go "
19309 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
19310 "afford the extra memory usage."
19311 msgstr ""
19312
19313 #. type: =item
19314 #: ../fuse/guestmount.pod:232
19315 msgid "B<-o uid=N> B<-o gid=N>"
19316 msgstr ""
19317
19318 #. type: textblock
19319 #: ../fuse/guestmount.pod:234
19320 msgid ""
19321 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
19322 "the chosen values."
19323 msgstr ""
19324
19325 #. type: textblock
19326 #: ../fuse/guestmount.pod:243
19327 msgid ""
19328 "Add devices and mount everything read-only.  Also disallow writes and make "
19329 "the disk appear read-only to FUSE."
19330 msgstr ""
19331
19332 #. type: textblock
19333 #: ../fuse/guestmount.pod:246
19334 msgid ""
19335 "This is highly recommended if you are not going to edit the guest disk.  If "
19336 "the guest is running and this option is I<not> supplied, then there is a "
19337 "strong risk of disk corruption in the guest.  We try to prevent this from "
19338 "happening, but it is not always possible."
19339 msgstr ""
19340
19341 #. type: textblock
19342 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
19343 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19344 msgstr ""
19345
19346 #. type: textblock
19347 #: ../fuse/guestmount.pod:255
19348 msgid "Enable SELinux support for the guest."
19349 msgstr ""
19350
19351 #. type: textblock
19352 #: ../fuse/guestmount.pod:261
19353 msgid "Enable verbose messages from underlying libguestfs."
19354 msgstr ""
19355
19356 #. type: textblock
19357 #: ../fuse/guestmount.pod:267
19358 msgid "Display the program version and exit."
19359 msgstr ""
19360
19361 #. type: textblock
19362 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
19363 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
19364 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19365 msgstr ""
19366
19367 #. type: =item
19368 #: ../fuse/guestmount.pod:280
19369 msgid "B<--trace>"
19370 msgstr ""
19371
19372 #. type: textblock
19373 #: ../fuse/guestmount.pod:282
19374 msgid "Trace libguestfs calls and entry into each FUSE function."
19375 msgstr ""
19376
19377 #. type: textblock
19378 #: ../fuse/guestmount.pod:284
19379 msgid "This also stops the daemon from forking into the background."
19380 msgstr ""
19381
19382 #. type: textblock
19383 #: ../fuse/guestmount.pod:310
19384 msgid ""
19385 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
19386 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
19387 "net/>."
19388 msgstr ""
19389
19390 #. type: textblock
19391 #: ../fuse/guestmount.pod:325
19392 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
19393 msgstr ""
19394
19395 #. type: textblock
19396 #: ../inspector/virt-inspector.pod:5
19397 msgid ""
19398 "virt-inspector - Display operating system version and other information "
19399 "about a virtual machine"
19400 msgstr ""
19401
19402 #. type: verbatim
19403 #: ../inspector/virt-inspector.pod:9
19404 #, no-wrap
19405 msgid ""
19406 " virt-inspector [--options] -d domname\n"
19407 "\n"
19408 msgstr ""
19409
19410 #. type: verbatim
19411 #: ../inspector/virt-inspector.pod:11
19412 #, no-wrap
19413 msgid ""
19414 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
19415 "\n"
19416 msgstr ""
19417
19418 #. type: verbatim
19419 #: ../inspector/virt-inspector.pod:15
19420 #, no-wrap
19421 msgid ""
19422 " virt-inspector domname\n"
19423 "\n"
19424 msgstr ""
19425
19426 #. type: verbatim
19427 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
19428 #, no-wrap
19429 msgid ""
19430 " virt-inspector disk.img [disk.img ...]\n"
19431 "\n"
19432 msgstr ""
19433
19434 #. type: textblock
19435 #: ../inspector/virt-inspector.pod:21
19436 msgid ""
19437 "B<virt-inspector> examines a virtual machine or disk image and tries to "
19438 "determine the version of the operating system and other information about "
19439 "the virtual machine."
19440 msgstr ""
19441
19442 #. type: textblock
19443 #: ../inspector/virt-inspector.pod:25
19444 msgid "Virt-inspector produces XML output for feeding into other programs."
19445 msgstr ""
19446
19447 #. type: textblock
19448 #: ../inspector/virt-inspector.pod:27
19449 msgid ""
19450 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
19451 "the libvirt domain (see: C<virsh list --all>)."
19452 msgstr ""
19453
19454 #. type: textblock
19455 #: ../inspector/virt-inspector.pod:30
19456 msgid ""
19457 "You can also run virt-inspector directly on disk images from a single "
19458 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
19459 "has several block devices, in which case you should list several I<-a> "
19460 "options one after another, with the first corresponding to the guest's C</"
19461 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
19462 msgstr ""
19463
19464 #. type: textblock
19465 #: ../inspector/virt-inspector.pod:37
19466 msgid ""
19467 "You can also run virt-inspector on install disks, live CDs, bootable USB "
19468 "keys and similar."
19469 msgstr ""
19470
19471 #. type: textblock
19472 #: ../inspector/virt-inspector.pod:40
19473 msgid ""
19474 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
19475 "inspect several virtual machines, you have to run virt-inspector several "
19476 "times (for example, from a shell script for-loop)."
19477 msgstr ""
19478
19479 #. type: textblock
19480 #: ../inspector/virt-inspector.pod:45
19481 msgid ""
19482 "Because virt-inspector needs direct access to guest images, it won't "
19483 "normally work over remote libvirt connections."
19484 msgstr ""
19485
19486 #. type: textblock
19487 #: ../inspector/virt-inspector.pod:48
19488 msgid ""
19489 "All of the information available from virt-inspector is also available "
19490 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
19491 "The same information can also be fetched using guestfish or via libguestfs "
19492 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
19493 "WITH OTHER PROGRAMMING LANGUAGES>)."
19494 msgstr ""
19495
19496 #. type: textblock
19497 #: ../inspector/virt-inspector.pod:81
19498 msgid ""
19499 "Libvirt is only used if you specify a C<domname> on the command line.  If "
19500 "you specify guest block devices directly (I<-a>), then libvirt is not used "
19501 "at all."
19502 msgstr ""
19503
19504 #. type: textblock
19505 #: ../inspector/virt-inspector.pod:94
19506 msgid ""
19507 "When prompting for keys and passphrases, virt-inspector normally turns "
19508 "echoing off so you cannot see what you are typing.  If you are not worried "
19509 "about Tempest attacks and there is no one else in the room you can specify "
19510 "this flag to see what you are typing."
19511 msgstr ""
19512
19513 #. type: textblock
19514 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
19515 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
19516 #: ../tools/virt-win-reg.pl:144
19517 msgid ""
19518 "Specify the format of disk images given on the command line.  If this is "
19519 "omitted then the format is autodetected from the content of the disk image."
19520 msgstr ""
19521
19522 #. type: textblock
19523 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
19524 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
19525 #: ../tools/virt-win-reg.pl:148
19526 msgid ""
19527 "If disk images are requested from libvirt, then this program asks libvirt "
19528 "for this information.  In this case, the value of the format parameter is "
19529 "ignored."
19530 msgstr ""
19531
19532 #. type: textblock
19533 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
19534 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
19535 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
19536 #: ../tools/virt-win-reg.pl:152
19537 msgid ""
19538 "If working with untrusted raw-format guest disk images, you should ensure "
19539 "the format is always specified."
19540 msgstr ""
19541
19542 #. type: textblock
19543 #: ../inspector/virt-inspector.pod:139
19544 msgid "Previous versions of virt-inspector allowed you to write either:"
19545 msgstr ""
19546
19547 #. type: verbatim
19548 #: ../inspector/virt-inspector.pod:145
19549 #, no-wrap
19550 msgid ""
19551 " virt-inspector guestname\n"
19552 "\n"
19553 msgstr ""
19554
19555 #. type: =head1
19556 #: ../inspector/virt-inspector.pod:153
19557 msgid "XML FORMAT"
19558 msgstr ""
19559
19560 #. type: textblock
19561 #: ../inspector/virt-inspector.pod:155
19562 msgid ""
19563 "The virt-inspector XML is described precisely in a RELAX NG schema file "
19564 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
19565 "just an overview."
19566 msgstr ""
19567
19568 #. type: textblock
19569 #: ../inspector/virt-inspector.pod:159
19570 msgid ""
19571 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
19572 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
19573 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
19574 "which is vanishingly rare in real world VMs."
19575 msgstr ""
19576
19577 #. type: =head2
19578 #: ../inspector/virt-inspector.pod:164
19579 msgid "E<lt>operatingsystemE<gt>"
19580 msgstr ""
19581
19582 #. type: textblock
19583 #: ../inspector/virt-inspector.pod:166
19584 msgid ""
19585 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
19586 "describe the operating system, its architecture, the descriptive \"product "
19587 "name\" string, the type of OS and so on, as in this example:"
19588 msgstr ""
19589
19590 #. type: verbatim
19591 #: ../inspector/virt-inspector.pod:170
19592 #, no-wrap
19593 msgid ""
19594 " <operatingsystems>\n"
19595 "   <operatingsystem>\n"
19596 "     <root>/dev/sda2</root>\n"
19597 "     <name>windows</name>\n"
19598 "     <arch>i386</arch>\n"
19599 "     <distro>windows</distro>\n"
19600 "     <product_name>Windows 7 Enterprise</product_name>\n"
19601 "     <product_variant>Client</product_variant>\n"
19602 "     <major_version>6</major_version>\n"
19603 "     <minor_version>1</minor_version>\n"
19604 "     <windows_systemroot>/Windows</windows_systemroot>\n"
19605 "     <format>installed</format>\n"
19606 "\n"
19607 msgstr ""
19608
19609 #. type: textblock
19610 #: ../inspector/virt-inspector.pod:183
19611 msgid ""
19612 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
19613 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
19614 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
19615 "architecture.  The other fields are fairly self-explanatory, but because "
19616 "these fields are taken directly from the libguestfs inspection API you can "
19617 "find precise information from L<guestfs(3)/INSPECTION>."
19618 msgstr ""
19619
19620 #. type: textblock
19621 #: ../inspector/virt-inspector.pod:191
19622 msgid ""
19623 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
19624 "of view of libguestfs (block devices may have completely different names "
19625 "inside the VM itself)."
19626 msgstr ""
19627
19628 #. type: =head2
19629 #: ../inspector/virt-inspector.pod:195
19630 msgid "E<lt>mountpointsE<gt>"
19631 msgstr ""
19632
19633 #. type: textblock
19634 #: ../inspector/virt-inspector.pod:197
19635 msgid ""
19636 "Un*x-like guests typically have multiple filesystems which are mounted at "
19637 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
19638 "element which looks like this:"
19639 msgstr ""
19640
19641 #. type: verbatim
19642 #: ../inspector/virt-inspector.pod:201
19643 #, no-wrap
19644 msgid ""
19645 " <operatingsystems>\n"
19646 "   <operatingsystem>\n"
19647 "     ...\n"
19648 "     <mountpoints>\n"
19649 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
19650 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
19651 "     </mountpoints>\n"
19652 "\n"
19653 msgstr ""
19654
19655 #. type: textblock
19656 #: ../inspector/virt-inspector.pod:209
19657 msgid ""
19658 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
19659 "and may have completely different names inside the guest.  Only mountable "
19660 "filesystems appear in this list, not things like swap devices."
19661 msgstr ""
19662
19663 #. type: =head2
19664 #: ../inspector/virt-inspector.pod:214
19665 msgid "E<lt>filesystemsE<gt>"
19666 msgstr ""
19667
19668 #. type: textblock
19669 #: ../inspector/virt-inspector.pod:216
19670 msgid ""
19671 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
19672 "filesystems belonging to the guest, including swap and empty partitions.  "
19673 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
19674 "this OS or shared with this OS and other OSes)."
19675 msgstr ""
19676
19677 #. type: textblock
19678 #: ../inspector/virt-inspector.pod:222
19679 msgid "You might see something like this:"
19680 msgstr ""
19681
19682 #. type: verbatim
19683 #: ../inspector/virt-inspector.pod:224
19684 #, no-wrap
19685 msgid ""
19686 " <operatingsystems>\n"
19687 "   <operatingsystem>\n"
19688 "     ...\n"
19689 "     <filesystems>\n"
19690 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19691 "         <type>ext4</type>\n"
19692 "         <label>Fedora-13-x86_64</label>\n"
19693 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
19694 "       </filesystem>\n"
19695 "\n"
19696 msgstr ""
19697
19698 #. type: textblock
19699 #: ../inspector/virt-inspector.pod:234
19700 msgid ""
19701 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
19702 "the label, and the UUID."
19703 msgstr ""
19704
19705 #. type: =head2
19706 #: ../inspector/virt-inspector.pod:237
19707 msgid "E<lt>applicationsE<gt>"
19708 msgstr ""
19709
19710 #. type: textblock
19711 #: ../inspector/virt-inspector.pod:239
19712 msgid ""
19713 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
19714 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
19715 "machine."
19716 msgstr ""
19717
19718 #. type: textblock
19719 #: ../inspector/virt-inspector.pod:243
19720 msgid ""
19721 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
19722 "Typical values would be C<rpm> and C<deb>."
19723 msgstr ""
19724
19725 #. type: textblock
19726 #: ../inspector/virt-inspector.pod:246
19727 msgid ""
19728 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
19729 "Typical values include C<yum>, C<up2date> and C<apt>"
19730 msgstr ""
19731
19732 #. type: textblock
19733 #: ../inspector/virt-inspector.pod:249
19734 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
19735 msgstr ""
19736
19737 #. type: verbatim
19738 #: ../inspector/virt-inspector.pod:252
19739 #, no-wrap
19740 msgid ""
19741 " <operatingsystems>\n"
19742 "   <operatingsystem>\n"
19743 "     ...\n"
19744 "     <applications>\n"
19745 "       <application>\n"
19746 "         <name>coreutils</name>\n"
19747 "         <version>8.5</version>\n"
19748 "         <release>1</release>\n"
19749 "       </application>\n"
19750 "\n"
19751 msgstr ""
19752
19753 #. type: textblock
19754 #: ../inspector/virt-inspector.pod:262
19755 msgid ""
19756 "The version and release fields may not be available for some types guests.  "
19757 "Other fields are possible, see L<guestfs(3)/"
19758 "guestfs_inspect_list_applications>."
19759 msgstr ""
19760
19761 #. type: =head2
19762 #: ../inspector/virt-inspector.pod:266
19763 msgid "E<lt>drive_mappingsE<gt>"
19764 msgstr ""
19765
19766 #. type: textblock
19767 #: ../inspector/virt-inspector.pod:268
19768 msgid ""
19769 "For operating systems like Windows which use drive letters, virt-inspector "
19770 "is able to find out how drive letters map to filesystems."
19771 msgstr ""
19772
19773 #. type: verbatim
19774 #: ../inspector/virt-inspector.pod:272
19775 #, no-wrap
19776 msgid ""
19777 " <operatingsystems>\n"
19778 "   <operatingsystem>\n"
19779 "     ...\n"
19780 "     <drive_mappings>\n"
19781 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
19782 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
19783 "     </drive_mappings>\n"
19784 "\n"
19785 msgstr ""
19786
19787 #. type: textblock
19788 #: ../inspector/virt-inspector.pod:280
19789 msgid ""
19790 "In the example above, drive C maps to the filesystem on the second partition "
19791 "on the first disk, and drive E maps to the filesystem on the first partition "
19792 "on the second disk."
19793 msgstr ""
19794
19795 #. type: textblock
19796 #: ../inspector/virt-inspector.pod:284
19797 msgid ""
19798 "Note that this only covers permanent local filesystem mappings, not things "
19799 "like network shares.  Furthermore NTFS volume mount points may not be listed "
19800 "here."
19801 msgstr ""
19802
19803 #. type: =head2
19804 #: ../inspector/virt-inspector.pod:288
19805 msgid "E<lt>iconE<gt>"
19806 msgstr ""
19807
19808 #. type: textblock
19809 #: ../inspector/virt-inspector.pod:290
19810 msgid ""
19811 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
19812 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
19813 "very large and high quality."
19814 msgstr ""
19815
19816 #. type: verbatim
19817 #: ../inspector/virt-inspector.pod:294
19818 #, no-wrap
19819 msgid ""
19820 " <operatingsystems>\n"
19821 "   <operatingsystem>\n"
19822 "     ...\n"
19823 "     <icon>\n"
19824 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
19825 "       [... many lines of base64 data ...]\n"
19826 "     </icon>\n"
19827 "\n"
19828 msgstr ""
19829
19830 #. type: textblock
19831 #: ../inspector/virt-inspector.pod:302
19832 msgid ""
19833 "To display the icon, you have to extract it and convert the base64 data back "
19834 "to a binary file.  Use an XPath query or simply an editor to extract the "
19835 "data, then use the coreutils L<base64(1)> program to do the conversion back "
19836 "to a PNG file:"
19837 msgstr ""
19838
19839 #. type: verbatim
19840 #: ../inspector/virt-inspector.pod:307
19841 #, no-wrap
19842 msgid ""
19843 " base64 -i -d < icon.data > icon.png\n"
19844 "\n"
19845 msgstr ""
19846
19847 #. type: =head2
19848 #: ../inspector/virt-inspector.pod:309
19849 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
19850 msgstr ""
19851
19852 #. type: textblock
19853 #: ../inspector/virt-inspector.pod:311
19854 msgid ""
19855 "Virt-inspector can detect some operating system installers on install disks, "
19856 "live CDs, bootable USB keys and more."
19857 msgstr ""
19858
19859 #. type: textblock
19860 #: ../inspector/virt-inspector.pod:314
19861 msgid ""
19862 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
19863 "fields may be present to indicate a live CD, network installer, or one part "
19864 "of a multipart CD.  For example:"
19865 msgstr ""
19866
19867 #. type: verbatim
19868 #: ../inspector/virt-inspector.pod:318
19869 #, no-wrap
19870 msgid ""
19871 " <operatingsystems>\n"
19872 "   <operatingsystem>\n"
19873 "     <root>/dev/sda</root>\n"
19874 "     <name>linux</name>\n"
19875 "     <arch>i386</arch>\n"
19876 "     <distro>ubuntu</distro>\n"
19877 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
19878 "     <major_version>10</major_version>\n"
19879 "     <minor_version>10</minor_version>\n"
19880 "     <format>installer</format>\n"
19881 "     <live/>\n"
19882 "\n"
19883 msgstr ""
19884
19885 #. type: =head1
19886 #: ../inspector/virt-inspector.pod:330
19887 msgid "USING XPATH"
19888 msgstr ""
19889
19890 #. type: textblock
19891 #: ../inspector/virt-inspector.pod:332
19892 msgid ""
19893 "You can use the XPath query language to select parts of the XML.  We "
19894 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
19895 msgstr ""
19896
19897 #. type: verbatim
19898 #: ../inspector/virt-inspector.pod:338
19899 #, no-wrap
19900 msgid ""
19901 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
19902 " <filesystems>\n"
19903 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19904 "        <type>ext4</type>\n"
19905 " [...]\n"
19906 "\n"
19907 msgstr ""
19908
19909 #. type: verbatim
19910 #: ../inspector/virt-inspector.pod:344
19911 #, no-wrap
19912 msgid ""
19913 " $ virt-inspector -d Guest | \\\n"
19914 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
19915 " ext4\n"
19916 "\n"
19917 msgstr ""
19918
19919 #. type: verbatim
19920 #: ../inspector/virt-inspector.pod:348
19921 #, no-wrap
19922 msgid ""
19923 " $ virt-inspector -d Guest | \\\n"
19924 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
19925 " [displays the guest icon, if there is one]\n"
19926 "\n"
19927 msgstr ""
19928
19929 #. type: =head1
19930 #: ../inspector/virt-inspector.pod:359
19931 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
19932 msgstr ""
19933
19934 #. type: textblock
19935 #: ../inspector/virt-inspector.pod:361
19936 msgid ""
19937 "Early versions of libguestfs shipped with a different virt-inspector program "
19938 "written in Perl (the current version is written in C).  The XML output of "
19939 "the Perl virt-inspector was different and it could also output in other "
19940 "formats like text."
19941 msgstr ""
19942
19943 #. type: textblock
19944 #: ../inspector/virt-inspector.pod:366
19945 msgid ""
19946 "The old virt-inspector is no longer supported or shipped with libguestfs."
19947 msgstr ""
19948
19949 #. type: textblock
19950 #: ../inspector/virt-inspector.pod:369
19951 msgid ""
19952 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
19953 "versions of virt-inspector with different names:"
19954 msgstr ""
19955
19956 #. type: verbatim
19957 #: ../inspector/virt-inspector.pod:372
19958 #, no-wrap
19959 msgid ""
19960 " virt-inspector     Old Perl version.\n"
19961 " virt-inspector2    New C version.\n"
19962 "\n"
19963 msgstr ""
19964
19965 #. type: textblock
19966 #: ../inspector/virt-inspector.pod:382
19967 msgid ""
19968 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
19969 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
19970 msgstr ""
19971
19972 #. type: textblock
19973 #: ../inspector/virt-inspector.pod:399
19974 msgid "Matthew Booth L<mbooth@redhat.com>"
19975 msgstr ""
19976
19977 #. type: textblock
19978 #: ../java/examples/guestfs-java.pod:5
19979 msgid "guestfs-java - How to use libguestfs from Java"
19980 msgstr ""
19981
19982 #. type: verbatim
19983 #: ../java/examples/guestfs-java.pod:9
19984 #, no-wrap
19985 msgid ""
19986 " import com.redhat.et.libguestfs.*;\n"
19987 " \n"
19988 msgstr ""
19989
19990 #. type: verbatim
19991 #: ../java/examples/guestfs-java.pod:11
19992 #, no-wrap
19993 msgid ""
19994 " GuestFS g = new GuestFS ();\n"
19995 " g.add_drive_opts (\"disk.img\", null);\n"
19996 " g.launch ();\n"
19997 "\n"
19998 msgstr ""
19999
20000 #. type: textblock
20001 #: ../java/examples/guestfs-java.pod:17
20002 msgid ""
20003 "This manual page documents how to call libguestfs from the Java programming "
20004 "language.  This page just documents the differences from the C API and gives "
20005 "some examples.  If you are not familiar with using libguestfs, you also need "
20006 "to read L<guestfs(3)>."
20007 msgstr ""
20008
20009 #. type: =head2
20010 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
20011 msgid "CLOSING THE HANDLE"
20012 msgstr ""
20013
20014 #. type: textblock
20015 #: ../java/examples/guestfs-java.pod:24
20016 msgid ""
20017 "The handle is closed when it is reaped by the garbage collector.  Because "
20018 "libguestfs handles include a lot of state, it is also possible to close (and "
20019 "hence free) them explicitly by calling the C<close> method."
20020 msgstr ""
20021
20022 #. type: =head2
20023 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
20024 #: ../python/examples/guestfs-python.pod:21
20025 #: ../ruby/examples/guestfs-ruby.pod:22
20026 msgid "EXCEPTIONS"
20027 msgstr ""
20028
20029 #. type: textblock
20030 #: ../java/examples/guestfs-java.pod:31
20031 msgid ""
20032 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20033 "exception.  This has a single parameter which is the error message (a "
20034 "C<String>)."
20035 msgstr ""
20036
20037 #. type: textblock
20038 #: ../java/examples/guestfs-java.pod:35
20039 msgid "Calling any method on a closed handle raises the same exception."
20040 msgstr ""
20041
20042 #. type: textblock
20043 #: ../java/examples/guestfs-java.pod:47
20044 msgid ""
20045 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
20046 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20047 "libguestfs.org/>, L<http://caml.inria.fr/>."
20048 msgstr ""
20049
20050 #. type: textblock
20051 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
20052 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
20053 msgstr ""
20054
20055 #. type: textblock
20056 #: ../ocaml/examples/guestfs-ocaml.pod:5
20057 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
20058 msgstr ""
20059
20060 #. type: textblock
20061 #: ../ocaml/examples/guestfs-ocaml.pod:9
20062 msgid "Module style:"
20063 msgstr ""
20064
20065 #. type: verbatim
20066 #: ../ocaml/examples/guestfs-ocaml.pod:11
20067 #, no-wrap
20068 msgid ""
20069 " let g = Guestfs.create () in\n"
20070 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20071 " Guestfs.launch g;\n"
20072 "\n"
20073 msgstr ""
20074
20075 #. type: textblock
20076 #: ../ocaml/examples/guestfs-ocaml.pod:15
20077 msgid "Object-oriented style:"
20078 msgstr ""
20079
20080 #. type: verbatim
20081 #: ../ocaml/examples/guestfs-ocaml.pod:17
20082 #, no-wrap
20083 msgid ""
20084 " let g = new Guestfs.guestfs () in\n"
20085 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20086 " g#launch ();\n"
20087 "\n"
20088 msgstr ""
20089
20090 #. type: verbatim
20091 #: ../ocaml/examples/guestfs-ocaml.pod:21
20092 #, no-wrap
20093 msgid ""
20094 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
20095 "or:\n"
20096 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
20097 "\n"
20098 msgstr ""
20099
20100 #. type: textblock
20101 #: ../ocaml/examples/guestfs-ocaml.pod:27
20102 msgid ""
20103 "This manual page documents how to call libguestfs from the OCaml programming "
20104 "language.  This page just documents the differences from the C API and gives "
20105 "some examples.  If you are not familiar with using libguestfs, you also need "
20106 "to read L<guestfs(3)>."
20107 msgstr ""
20108
20109 #. type: =head2
20110 #: ../ocaml/examples/guestfs-ocaml.pod:32
20111 msgid "PROGRAMMING STYLES"
20112 msgstr ""
20113
20114 #. type: textblock
20115 #: ../ocaml/examples/guestfs-ocaml.pod:34
20116 msgid ""
20117 "There are two different programming styles supported by the OCaml bindings.  "
20118 "You can use a module style, with each C function mapped to an OCaml function:"
20119 msgstr ""
20120
20121 #. type: verbatim
20122 #: ../ocaml/examples/guestfs-ocaml.pod:38
20123 #, no-wrap
20124 msgid ""
20125 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
20126 "\n"
20127 msgstr ""
20128
20129 #. type: textblock
20130 #: ../ocaml/examples/guestfs-ocaml.pod:40
20131 msgid "becomes:"
20132 msgstr ""
20133
20134 #. type: verbatim
20135 #: ../ocaml/examples/guestfs-ocaml.pod:42
20136 #, no-wrap
20137 msgid ""
20138 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
20139 "\n"
20140 msgstr ""
20141
20142 #. type: textblock
20143 #: ../ocaml/examples/guestfs-ocaml.pod:44
20144 msgid ""
20145 "Alternately you can use an object-oriented style, calling methods on the "
20146 "class C<Guestfs.guestfs>:"
20147 msgstr ""
20148
20149 #. type: verbatim
20150 #: ../ocaml/examples/guestfs-ocaml.pod:47
20151 #, no-wrap
20152 msgid ""
20153 " method set_verbose : bool -> unit\n"
20154 "\n"
20155 msgstr ""
20156
20157 #. type: textblock
20158 #: ../ocaml/examples/guestfs-ocaml.pod:49
20159 msgid ""
20160 "The object-oriented style is usually briefer, and the minor performance "
20161 "penalty isn't noticable in the general overhead of performing libguestfs "
20162 "functions."
20163 msgstr ""
20164
20165 #. type: textblock
20166 #: ../ocaml/examples/guestfs-ocaml.pod:55
20167 msgid ""
20168 "The handle is closed when it is reaped by the garbage collector.  Because "
20169 "libguestfs handles include a lot of state, it is also possible to close (and "
20170 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
20171 "method."
20172 msgstr ""
20173
20174 #. type: textblock
20175 #: ../ocaml/examples/guestfs-ocaml.pod:62
20176 msgid ""
20177 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
20178 "exception.  This has a single parameter which is the error message (a "
20179 "string)."
20180 msgstr ""
20181
20182 #. type: textblock
20183 #: ../ocaml/examples/guestfs-ocaml.pod:66
20184 msgid ""
20185 "Calling any function/method on a closed handle raises C<Guestfs."
20186 "Handle_closed>.  The single parameter is the name of the function that you "
20187 "called."
20188 msgstr ""
20189
20190 #. type: textblock
20191 #: ../ocaml/examples/guestfs-ocaml.pod:80
20192 msgid ""
20193 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
20194 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20195 "libguestfs.org/>, L<http://caml.inria.fr/>."
20196 msgstr ""
20197
20198 #. type: textblock
20199 #: ../perl/examples/guestfs-perl.pod:5
20200 msgid "guestfs-perl - How to use libguestfs from Perl"
20201 msgstr ""
20202
20203 #. type: verbatim
20204 #: ../perl/examples/guestfs-perl.pod:9
20205 #, no-wrap
20206 msgid ""
20207 " use Sys::Guestfs;\n"
20208 " \n"
20209 msgstr ""
20210
20211 #. type: verbatim
20212 #: ../perl/examples/guestfs-perl.pod:11
20213 #, no-wrap
20214 msgid ""
20215 " my $h = Sys::Guestfs->new ();\n"
20216 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
20217 " $h->launch ();\n"
20218 " $h->mount_options ('', '/dev/sda1', '/');\n"
20219 " $h->touch ('/hello');\n"
20220 " $h->sync ();\n"
20221 "\n"
20222 msgstr ""
20223
20224 #. type: textblock
20225 #: ../perl/examples/guestfs-perl.pod:20
20226 msgid ""
20227 "This manual page documents how to call libguestfs from the Perl programming "
20228 "language.  This page just documents the differences from the C API and gives "
20229 "some examples.  If you are not familiar with using libguestfs, you also need "
20230 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
20231 msgstr ""
20232
20233 #. type: =head2
20234 #: ../perl/examples/guestfs-perl.pod:26
20235 msgid "ERRORS"
20236 msgstr ""
20237
20238 #. type: textblock
20239 #: ../perl/examples/guestfs-perl.pod:28
20240 msgid ""
20241 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
20242 ">)."
20243 msgstr ""
20244
20245 #. type: textblock
20246 #: ../perl/examples/guestfs-perl.pod:41
20247 msgid ""
20248 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
20249 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
20250 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20251 msgstr ""
20252
20253 #. type: textblock
20254 #: ../python/examples/guestfs-python.pod:5
20255 msgid "guestfs-python - How to use libguestfs from Python"
20256 msgstr ""
20257
20258 #. type: verbatim
20259 #: ../python/examples/guestfs-python.pod:9
20260 #, no-wrap
20261 msgid ""
20262 " import guestfs\n"
20263 " g = guestfs.GuestFS ()\n"
20264 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
20265 " g.launch\n"
20266 "\n"
20267 msgstr ""
20268
20269 #. type: textblock
20270 #: ../python/examples/guestfs-python.pod:16
20271 msgid ""
20272 "This manual page documents how to call libguestfs from the Python "
20273 "programming language.  This page just documents the differences from the C "
20274 "API and gives some examples.  If you are not familiar with using libguestfs, "
20275 "you also need to read L<guestfs(3)>."
20276 msgstr ""
20277
20278 #. type: textblock
20279 #: ../python/examples/guestfs-python.pod:23
20280 msgid ""
20281 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
20282 "single string argument which is the error message."
20283 msgstr ""
20284
20285 #. type: =head2
20286 #: ../python/examples/guestfs-python.pod:26
20287 msgid "MORE DOCUMENTATION"
20288 msgstr ""
20289
20290 #. type: textblock
20291 #: ../python/examples/guestfs-python.pod:28
20292 msgid "Type:"
20293 msgstr ""
20294
20295 #. type: verbatim
20296 #: ../python/examples/guestfs-python.pod:30
20297 #, no-wrap
20298 msgid ""
20299 " $ python\n"
20300 " >>> import guestfs\n"
20301 " >>> help (guestfs)\n"
20302 "\n"
20303 msgstr ""
20304
20305 #. type: textblock
20306 #: ../python/examples/guestfs-python.pod:44
20307 msgid ""
20308 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
20309 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20310 "libguestfs.org/>."
20311 msgstr ""
20312
20313 #. type: textblock
20314 #: ../rescue/virt-rescue.pod:5
20315 msgid "virt-rescue - Run a rescue shell on a virtual machine"
20316 msgstr ""
20317
20318 #. type: verbatim
20319 #: ../rescue/virt-rescue.pod:9
20320 #, no-wrap
20321 msgid ""
20322 " virt-rescue [--options] -d domname\n"
20323 "\n"
20324 msgstr ""
20325
20326 #. type: verbatim
20327 #: ../rescue/virt-rescue.pod:11
20328 #, no-wrap
20329 msgid ""
20330 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
20331 "\n"
20332 msgstr ""
20333
20334 #. type: verbatim
20335 #: ../rescue/virt-rescue.pod:15
20336 #, no-wrap
20337 msgid ""
20338 " virt-rescue [--options] domname\n"
20339 "\n"
20340 msgstr ""
20341
20342 #. type: verbatim
20343 #: ../rescue/virt-rescue.pod:17
20344 #, no-wrap
20345 msgid ""
20346 " virt-rescue [--options] disk.img [disk.img ...]\n"
20347 "\n"
20348 msgstr ""
20349
20350 #. type: textblock
20351 #: ../rescue/virt-rescue.pod:21
20352 msgid ""
20353 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
20354 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
20355 "you from doing this, but doesn't catch all cases."
20356 msgstr ""
20357
20358 #. type: textblock
20359 #: ../rescue/virt-rescue.pod:25
20360 msgid ""
20361 "However if you use the I<--ro> (read only) option, then you can attach a "
20362 "shell to a live virtual machine.  The results might be strange or "
20363 "inconsistent at times but you won't get disk corruption."
20364 msgstr ""
20365
20366 #. type: textblock
20367 #: ../rescue/virt-rescue.pod:31
20368 msgid ""
20369 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
20370 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
20371 "recovery tools which you can use to examine or rescue a virtual machine or "
20372 "disk image."
20373 msgstr ""
20374
20375 #. type: textblock
20376 #: ../rescue/virt-rescue.pod:36
20377 msgid ""
20378 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
20379 "on disk image(s):"
20380 msgstr ""
20381
20382 #. type: verbatim
20383 #: ../rescue/virt-rescue.pod:39
20384 #, no-wrap
20385 msgid ""
20386 " virt-rescue -d GuestName\n"
20387 "\n"
20388 msgstr ""
20389
20390 #. type: verbatim
20391 #: ../rescue/virt-rescue.pod:41
20392 #, no-wrap
20393 msgid ""
20394 " virt-rescue --ro -a /path/to/disk.img\n"
20395 "\n"
20396 msgstr ""
20397
20398 #. type: verbatim
20399 #: ../rescue/virt-rescue.pod:43
20400 #, no-wrap
20401 msgid ""
20402 " virt-rescue -a /dev/sdc\n"
20403 "\n"
20404 msgstr ""
20405
20406 #. type: textblock
20407 #: ../rescue/virt-rescue.pod:45
20408 msgid "For live VMs you I<must> use the --ro option."
20409 msgstr ""
20410
20411 #. type: textblock
20412 #: ../rescue/virt-rescue.pod:47
20413 msgid ""
20414 "When you run virt-rescue on a virtual machine or disk image, you are placed "
20415 "in an interactive bash shell where you can use many ordinary Linux "
20416 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
20417 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
20418 "is an empty directory called C</sysroot> where you can mount filesystems."
20419 msgstr ""
20420
20421 #. type: textblock
20422 #: ../rescue/virt-rescue.pod:54
20423 msgid ""
20424 "In the example below, we list logical volumes, then choose one to mount "
20425 "under C</sysroot>:"
20426 msgstr ""
20427
20428 #. type: verbatim
20429 #: ../rescue/virt-rescue.pod:57
20430 #, no-wrap
20431 msgid ""
20432 " ><rescue> lvs\n"
20433 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
20434 " lv_root vg_f11x64 -wi-a-   8.83G\n"
20435 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
20436 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
20437 " ><rescue> ls /sysroot\n"
20438 "\n"
20439 msgstr ""
20440
20441 #. type: textblock
20442 #: ../rescue/virt-rescue.pod:64
20443 msgid ""
20444 "If you don't know what filesystems are available on the virtual machine then "
20445 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
20446 msgstr ""
20447
20448 #. type: textblock
20449 #: ../rescue/virt-rescue.pod:70
20450 msgid ""
20451 "Virt-rescue can be used on I<any> disk image file or device, not just a "
20452 "virtual machine.  For example you can use it on a blank file if you want to "
20453 "partition that file (although we would recommend using L<guestfish(1)> "
20454 "instead as it is more suitable for this purpose).  You can even use virt-"
20455 "rescue on things like SD cards."
20456 msgstr ""
20457
20458 #. type: textblock
20459 #: ../rescue/virt-rescue.pod:76
20460 msgid ""
20461 "Virt-rescue does not require root.  You only need to run it as root if you "
20462 "need root to open the disk image."
20463 msgstr ""
20464
20465 #. type: textblock
20466 #: ../rescue/virt-rescue.pod:79
20467 msgid ""
20468 "This tool is just designed for quick interactive hacking on a virtual "
20469 "machine.  For more structured access to a virtual machine disk image, you "
20470 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
20471 "make scripted changes to guests, use L<guestfish(1)>."
20472 msgstr ""
20473
20474 #. type: =item
20475 #: ../rescue/virt-rescue.pod:103
20476 msgid "B<--append kernelopts>"
20477 msgstr ""
20478
20479 #. type: textblock
20480 #: ../rescue/virt-rescue.pod:105
20481 msgid "Pass additional options to the rescue kernel."
20482 msgstr ""
20483
20484 #. type: verbatim
20485 #: ../rescue/virt-rescue.pod:135
20486 #, no-wrap
20487 msgid ""
20488 " virt-rescue --format=raw -a disk.img\n"
20489 "\n"
20490 msgstr ""
20491
20492 #. type: verbatim
20493 #: ../rescue/virt-rescue.pod:139
20494 #, no-wrap
20495 msgid ""
20496 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
20497 "\n"
20498 msgstr ""
20499
20500 #. type: =item
20501 #: ../rescue/virt-rescue.pod:148
20502 msgid "B<-m MB>"
20503 msgstr ""
20504
20505 #. type: =item
20506 #: ../rescue/virt-rescue.pod:150
20507 msgid "B<--memsize MB>"
20508 msgstr ""
20509
20510 #. type: textblock
20511 #: ../rescue/virt-rescue.pod:152
20512 msgid ""
20513 "Change the amount of memory allocated to the rescue system.  The default is "
20514 "set by libguestfs and is small but adequate for running system tools.  The "
20515 "occasional program might need more memory.  The parameter is specified in "
20516 "megabytes."
20517 msgstr ""
20518
20519 #. type: =item
20520 #: ../rescue/virt-rescue.pod:157
20521 msgid "B<--network>"
20522 msgstr ""
20523
20524 #. type: textblock
20525 #: ../rescue/virt-rescue.pod:159
20526 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
20527 msgstr ""
20528
20529 #. type: textblock
20530 #: ../rescue/virt-rescue.pod:165
20531 msgid "Open the image read-only."
20532 msgstr ""
20533
20534 #. type: textblock
20535 #: ../rescue/virt-rescue.pod:175
20536 msgid ""
20537 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
20538 "SELINUX> before using this option."
20539 msgstr ""
20540
20541 #. type: textblock
20542 #: ../rescue/virt-rescue.pod:194
20543 msgid ""
20544 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
20545 "are done read-write."
20546 msgstr ""
20547
20548 #. type: textblock
20549 #: ../rescue/virt-rescue.pod:207
20550 msgid "Previous versions of virt-rescue allowed you to write either:"
20551 msgstr ""
20552
20553 #. type: verbatim
20554 #: ../rescue/virt-rescue.pod:209
20555 #, no-wrap
20556 msgid ""
20557 " virt-rescue disk.img [disk.img ...]\n"
20558 "\n"
20559 msgstr ""
20560
20561 #. type: verbatim
20562 #: ../rescue/virt-rescue.pod:213
20563 #, no-wrap
20564 msgid ""
20565 " virt-rescue guestname\n"
20566 "\n"
20567 msgstr ""
20568
20569 #. type: =head1
20570 #: ../rescue/virt-rescue.pod:221
20571 msgid "NETWORK"
20572 msgstr ""
20573
20574 #. type: textblock
20575 #: ../rescue/virt-rescue.pod:223
20576 msgid ""
20577 "Adding the I<--network> option enables QEMU user networking in the rescue "
20578 "appliance.  There are some differences between user networking and ordinary "
20579 "networking:"
20580 msgstr ""
20581
20582 #. type: =item
20583 #: ../rescue/virt-rescue.pod:229
20584 msgid "ping does not work"
20585 msgstr ""
20586
20587 #. type: textblock
20588 #: ../rescue/virt-rescue.pod:231
20589 msgid ""
20590 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
20591 "send the ping packets, and because virt-rescue must be able to run as non-"
20592 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
20593 "The ping command will appear to resolve addresses but will not be able to "
20594 "send or receive any packets.  This does not mean that the network is not "
20595 "working."
20596 msgstr ""
20597
20598 #. type: =item
20599 #: ../rescue/virt-rescue.pod:238
20600 msgid "cannot receive connections"
20601 msgstr ""
20602
20603 #. type: textblock
20604 #: ../rescue/virt-rescue.pod:240
20605 msgid "QEMU user networking cannot receive incoming connections."
20606 msgstr ""
20607
20608 #. type: =item
20609 #: ../rescue/virt-rescue.pod:242
20610 msgid "making TCP connections"
20611 msgstr ""
20612
20613 #. type: textblock
20614 #: ../rescue/virt-rescue.pod:244
20615 msgid ""
20616 "The virt-rescue appliance needs to be small and so does not include many "
20617 "network tools.  In particular there is no L<telnet(1)> command.  You can "
20618 "make TCP connections from the shell using the magical C</dev/tcp/"
20619 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
20620 msgstr ""
20621
20622 #. type: verbatim
20623 #: ../rescue/virt-rescue.pod:249
20624 #, no-wrap
20625 msgid ""
20626 " exec 3<>/dev/tcp/redhat.com/80\n"
20627 " echo \"GET /\" >&3\n"
20628 " cat <&3\n"
20629 "\n"
20630 msgstr ""
20631
20632 #. type: textblock
20633 #: ../rescue/virt-rescue.pod:253
20634 msgid "See L<bash(1)> for more details."
20635 msgstr ""
20636
20637 #. type: textblock
20638 #: ../rescue/virt-rescue.pod:259
20639 msgid ""
20640 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
20641 "ENVIRONMENT VARIABLES> for the complete list."
20642 msgstr ""
20643
20644 #. type: textblock
20645 #: ../rescue/virt-rescue.pod:286
20646 msgid ""
20647 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
20648 "libguestfs.org/>."
20649 msgstr ""
20650
20651 #. type: textblock
20652 #: ../resize/virt-resize.pod:5
20653 msgid "virt-resize - Resize a virtual machine disk"
20654 msgstr ""
20655
20656 #. type: verbatim
20657 #: ../resize/virt-resize.pod:9
20658 #, no-wrap
20659 msgid ""
20660 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
20661 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
20662 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
20663 "\n"
20664 msgstr ""
20665
20666 #. type: textblock
20667 #: ../resize/virt-resize.pod:15
20668 msgid ""
20669 "Virt-resize is a tool which can resize a virtual machine disk, making it "
20670 "larger or smaller overall, and resizing or deleting any partitions contained "
20671 "within."
20672 msgstr ""
20673
20674 #. type: textblock
20675 #: ../resize/virt-resize.pod:19
20676 msgid ""
20677 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
20678 "not> be used on live virtual machines - for consistent results, shut the "
20679 "virtual machine down before resizing it."
20680 msgstr ""
20681
20682 #. type: textblock
20683 #: ../resize/virt-resize.pod:23
20684 msgid ""
20685 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
20686 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
20687 msgstr ""
20688
20689 #. type: =item
20690 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257
20691 #: ../src/guestfs.pod:1395 ../src/guestfs.pod:2465
20692 msgid "1."
20693 msgstr ""
20694
20695 #. type: textblock
20696 #: ../resize/virt-resize.pod:33
20697 msgid ""
20698 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
20699 "fill the extra 5GB of space."
20700 msgstr ""
20701
20702 #. type: verbatim
20703 #: ../resize/virt-resize.pod:36
20704 #, no-wrap
20705 msgid ""
20706 " virt-filesystems --long -h --all -a olddisk\n"
20707 " \n"
20708 msgstr ""
20709
20710 #. type: verbatim
20711 #: ../resize/virt-resize.pod:38
20712 #, no-wrap
20713 msgid ""
20714 " truncate -r olddisk newdisk\n"
20715 " truncate -s +5G newdisk\n"
20716 " \n"
20717 msgstr ""
20718
20719 #. type: verbatim
20720 #: ../resize/virt-resize.pod:41
20721 #, no-wrap
20722 msgid ""
20723 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
20724 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
20725 "\n"
20726 msgstr ""
20727
20728 #. type: =item
20729 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261
20730 #: ../src/guestfs.pod:1399 ../src/guestfs.pod:2490
20731 msgid "2."
20732 msgstr ""
20733
20734 #. type: textblock
20735 #: ../resize/virt-resize.pod:46
20736 msgid ""
20737 "As above, but make the /boot partition 200MB bigger, while giving the "
20738 "remaining space to /dev/sda2:"
20739 msgstr ""
20740
20741 #. type: verbatim
20742 #: ../resize/virt-resize.pod:49
20743 #, no-wrap
20744 msgid ""
20745 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20746 "   olddisk newdisk\n"
20747 "\n"
20748 msgstr ""
20749
20750 #. type: =item
20751 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1405
20752 msgid "3."
20753 msgstr ""
20754
20755 #. type: textblock
20756 #: ../resize/virt-resize.pod:54
20757 msgid ""
20758 "As in the first example, but expand a logical volume as the final step.  "
20759 "This is what you would typically use for Linux guests that use LVM:"
20760 msgstr ""
20761
20762 #. type: verbatim
20763 #: ../resize/virt-resize.pod:58
20764 #, no-wrap
20765 msgid ""
20766 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
20767 "   olddisk newdisk\n"
20768 "\n"
20769 msgstr ""
20770
20771 #. type: =item
20772 #: ../resize/virt-resize.pod:61
20773 msgid "4."
20774 msgstr ""
20775
20776 #. type: textblock
20777 #: ../resize/virt-resize.pod:63
20778 msgid ""
20779 "As in the first example, but the output format will be qcow2 instead of a "
20780 "raw disk:"
20781 msgstr ""
20782
20783 #. type: verbatim
20784 #: ../resize/virt-resize.pod:66
20785 #, no-wrap
20786 msgid ""
20787 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
20788 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
20789 "\n"
20790 msgstr ""
20791
20792 #. type: =head1
20793 #: ../resize/virt-resize.pod:71
20794 msgid "DETAILED USAGE"
20795 msgstr ""
20796
20797 #. type: =head2
20798 #: ../resize/virt-resize.pod:73
20799 msgid "EXPANDING A VIRTUAL MACHINE DISK"
20800 msgstr ""
20801
20802 #. type: =item
20803 #: ../resize/virt-resize.pod:77
20804 msgid "1. Shut down the virtual machine"
20805 msgstr ""
20806
20807 #. type: =item
20808 #: ../resize/virt-resize.pod:79
20809 msgid "2. Locate input disk image"
20810 msgstr ""
20811
20812 #. type: textblock
20813 #: ../resize/virt-resize.pod:81
20814 msgid ""
20815 "Locate the input disk image (ie. the file or device on the host containing "
20816 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
20817 "dumpxml> like this to find the disk image name:"
20818 msgstr ""
20819
20820 #. type: verbatim
20821 #: ../resize/virt-resize.pod:85
20822 #, no-wrap
20823 msgid ""
20824 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
20825 " Found 1 nodes:\n"
20826 " -- NODE --\n"
20827 " <source dev=\"/dev/vg/lv_guest\" />\n"
20828 "\n"
20829 msgstr ""
20830
20831 #. type: =item
20832 #: ../resize/virt-resize.pod:90
20833 msgid "3. Look at current sizing"
20834 msgstr ""
20835
20836 #. type: textblock
20837 #: ../resize/virt-resize.pod:92
20838 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
20839 msgstr ""
20840
20841 #. type: verbatim
20842 #: ../resize/virt-resize.pod:95
20843 #, no-wrap
20844 msgid ""
20845 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
20846 " Name       Type       Size  Parent\n"
20847 " /dev/sda1  partition  101M  /dev/sda\n"
20848 " /dev/sda2  partition  7.9G  /dev/sda\n"
20849 " /dev/sda   device     8.0G  -\n"
20850 "\n"
20851 msgstr ""
20852
20853 #. type: textblock
20854 #: ../resize/virt-resize.pod:101
20855 msgid ""
20856 "(This example is a virtual machine with an 8 GB disk which we would like to "
20857 "expand up to 10 GB)."
20858 msgstr ""
20859
20860 #. type: =item
20861 #: ../resize/virt-resize.pod:104
20862 msgid "4. Create output disk"
20863 msgstr ""
20864
20865 #. type: textblock
20866 #: ../resize/virt-resize.pod:106
20867 msgid ""
20868 "Virt-resize cannot do in-place disk modifications.  You have to have space "
20869 "to store the resized output disk."
20870 msgstr ""
20871
20872 #. type: textblock
20873 #: ../resize/virt-resize.pod:109
20874 msgid ""
20875 "To store the resized disk image in a file, create a file of a suitable size:"
20876 msgstr ""
20877
20878 #. type: verbatim
20879 #: ../resize/virt-resize.pod:112
20880 #, no-wrap
20881 msgid ""
20882 " # rm -f outdisk\n"
20883 " # truncate -s 10G outdisk\n"
20884 "\n"
20885 msgstr ""
20886
20887 #. type: textblock
20888 #: ../resize/virt-resize.pod:115
20889 msgid "Or use L<lvcreate(1)> to create a logical volume:"
20890 msgstr ""
20891
20892 #. type: verbatim
20893 #: ../resize/virt-resize.pod:117
20894 #, no-wrap
20895 msgid ""
20896 " # lvcreate -L 10G -n lv_name vg_name\n"
20897 "\n"
20898 msgstr ""
20899
20900 #. type: textblock
20901 #: ../resize/virt-resize.pod:119
20902 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
20903 msgstr ""
20904
20905 #. type: verbatim
20906 #: ../resize/virt-resize.pod:121
20907 #, no-wrap
20908 msgid ""
20909 " # virsh pool-list\n"
20910 " # virsh vol-create-as poolname newvol 10G\n"
20911 "\n"
20912 msgstr ""
20913
20914 #. type: =item
20915 #: ../resize/virt-resize.pod:124
20916 msgid "5. Resize"
20917 msgstr ""
20918
20919 #. type: textblock
20920 #: ../resize/virt-resize.pod:126
20921 msgid ""
20922 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
20923 "file) and the output disk.  The output disk is the one created in the "
20924 "previous step."
20925 msgstr ""
20926
20927 #. type: verbatim
20928 #: ../resize/virt-resize.pod:130
20929 #, no-wrap
20930 msgid ""
20931 " # virt-resize indisk outdisk\n"
20932 "\n"
20933 msgstr ""
20934
20935 #. type: textblock
20936 #: ../resize/virt-resize.pod:132
20937 msgid ""
20938 "This command just copies disk image C<indisk> to disk image C<outdisk> "
20939 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
20940 "larger, then an extra, empty partition is created at the end of the disk "
20941 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
20942 "error."
20943 msgstr ""
20944
20945 #. type: textblock
20946 #: ../resize/virt-resize.pod:138
20947 msgid ""
20948 "More realistically you'd want to expand existing partitions in the disk "
20949 "image by passing extra options (for the full list see the L</OPTIONS> "
20950 "section below)."
20951 msgstr ""
20952
20953 #. type: textblock
20954 #: ../resize/virt-resize.pod:142
20955 msgid ""
20956 "L</--expand> is the most useful option.  It expands the named partition "
20957 "within the disk to fill any extra space:"
20958 msgstr ""
20959
20960 #. type: verbatim
20961 #: ../resize/virt-resize.pod:145
20962 #, no-wrap
20963 msgid ""
20964 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
20965 "\n"
20966 msgstr ""
20967
20968 #. type: textblock
20969 #: ../resize/virt-resize.pod:147
20970 msgid ""
20971 "(In this case, an extra partition is I<not> created at the end of the disk, "
20972 "because there will be no unused space)."
20973 msgstr ""
20974
20975 #. type: textblock
20976 #: ../resize/virt-resize.pod:150
20977 msgid ""
20978 "L</--resize> is the other commonly used option.  The following would "
20979 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
20980 "rest of the available space:"
20981 msgstr ""
20982
20983 #. type: verbatim
20984 #: ../resize/virt-resize.pod:154
20985 #, no-wrap
20986 msgid ""
20987 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20988 "     indisk outdisk\n"
20989 "\n"
20990 msgstr ""
20991
20992 #. type: textblock
20993 #: ../resize/virt-resize.pod:157
20994 msgid ""
20995 "If the expanded partition in the image contains a filesystem or LVM PV, then "
20996 "if virt-resize knows how, it will resize the contents, the equivalent of "
20997 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
20998 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
20999 "filesystems, so you would have to online resize them after booting the guest."
21000 msgstr ""
21001
21002 #. type: textblock
21003 #: ../resize/virt-resize.pod:164
21004 msgid "Other options are covered below."
21005 msgstr ""
21006
21007 #. type: =item
21008 #: ../resize/virt-resize.pod:166
21009 msgid "6. Test"
21010 msgstr ""
21011
21012 #. type: textblock
21013 #: ../resize/virt-resize.pod:168
21014 msgid "Thoroughly test the new disk image I<before> discarding the old one."
21015 msgstr ""
21016
21017 #. type: textblock
21018 #: ../resize/virt-resize.pod:170
21019 msgid "If you are using libvirt, edit the XML to point at the new disk:"
21020 msgstr ""
21021
21022 #. type: verbatim
21023 #: ../resize/virt-resize.pod:172
21024 #, no-wrap
21025 msgid ""
21026 " # virsh edit guestname\n"
21027 "\n"
21028 msgstr ""
21029
21030 #. type: textblock
21031 #: ../resize/virt-resize.pod:174
21032 msgid ""
21033 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
21034 "html#elementsDisks>"
21035 msgstr ""
21036
21037 #. type: textblock
21038 #: ../resize/virt-resize.pod:177
21039 msgid "Then start up the domain with the new, resized disk:"
21040 msgstr ""
21041
21042 #. type: verbatim
21043 #: ../resize/virt-resize.pod:179
21044 #, no-wrap
21045 msgid ""
21046 " # virsh start guestname\n"
21047 "\n"
21048 msgstr ""
21049
21050 #. type: textblock
21051 #: ../resize/virt-resize.pod:181
21052 msgid ""
21053 "and check that it still works.  See also the L</NOTES> section below for "
21054 "additional information."
21055 msgstr ""
21056
21057 #. type: =item
21058 #: ../resize/virt-resize.pod:184
21059 msgid "7. Resize LVs etc inside the guest"
21060 msgstr ""
21061
21062 #. type: textblock
21063 #: ../resize/virt-resize.pod:186
21064 msgid "(This can also be done offline using L<guestfish(1)>)"
21065 msgstr ""
21066
21067 #. type: textblock
21068 #: ../resize/virt-resize.pod:188
21069 msgid ""
21070 "Once the guest has booted you should see the new space available, at least "
21071 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
21072 "may need to resize LVs inside PVs, and also resize filesystem types that "
21073 "virt-resize does not know how to expand."
21074 msgstr ""
21075
21076 #. type: =head2
21077 #: ../resize/virt-resize.pod:195
21078 msgid "SHRINKING A VIRTUAL MACHINE DISK"
21079 msgstr ""
21080
21081 #. type: textblock
21082 #: ../resize/virt-resize.pod:197
21083 msgid ""
21084 "Shrinking is somewhat more complex than expanding, and only an overview is "
21085 "given here."
21086 msgstr ""
21087
21088 #. type: textblock
21089 #: ../resize/virt-resize.pod:200
21090 msgid ""
21091 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
21092 "filesystems).  The user has to shrink content before passing the disk image "
21093 "to virt-resize, and virt-resize will check that the content has been shrunk "
21094 "properly."
21095 msgstr ""
21096
21097 #. type: textblock
21098 #: ../resize/virt-resize.pod:205
21099 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
21100 msgstr ""
21101
21102 #. type: textblock
21103 #: ../resize/virt-resize.pod:207
21104 msgid ""
21105 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
21106 "steps 3 and 4 above to allocate a new disk image."
21107 msgstr ""
21108
21109 #. type: textblock
21110 #: ../resize/virt-resize.pod:210
21111 msgid ""
21112 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
21113 msgstr ""
21114
21115 #. type: =head2
21116 #: ../resize/virt-resize.pod:213
21117 msgid "IGNORING OR DELETING PARTITIONS"
21118 msgstr ""
21119
21120 #. type: textblock
21121 #: ../resize/virt-resize.pod:215
21122 msgid ""
21123 "virt-resize also gives a convenient way to ignore or delete partitions when "
21124 "copying from the input disk to the output disk.  Ignoring a partition speeds "
21125 "up the copy where you don't care about the existing contents of a "
21126 "partition.  Deleting a partition removes it completely, but note that it "
21127 "also renumbers any partitions after the one which is deleted, which can "
21128 "leave some guests unbootable."
21129 msgstr ""
21130
21131 #. type: =head2
21132 #: ../resize/virt-resize.pod:222
21133 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
21134 msgstr ""
21135
21136 #. type: textblock
21137 #: ../resize/virt-resize.pod:224
21138 msgid ""
21139 "If the input disk is in qcow2 format, then you may prefer that the output is "
21140 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
21141 "the fly.  The output format is simply determined by the format of the empty "
21142 "output container that you provide.  Thus to create qcow2 output, use:"
21143 msgstr ""
21144
21145 #. type: verbatim
21146 #: ../resize/virt-resize.pod:230
21147 #, no-wrap
21148 msgid ""
21149 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
21150 "\n"
21151 msgstr ""
21152
21153 #. type: textblock
21154 #: ../resize/virt-resize.pod:232
21155 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
21156 msgstr ""
21157
21158 #. type: textblock
21159 #: ../resize/virt-resize.pod:234
21160 msgid "Similarly, to get non-sparse raw output use:"
21161 msgstr ""
21162
21163 #. type: verbatim
21164 #: ../resize/virt-resize.pod:236
21165 #, no-wrap
21166 msgid ""
21167 " fallocate -l size outdisk\n"
21168 "\n"
21169 msgstr ""
21170
21171 #. type: textblock
21172 #: ../resize/virt-resize.pod:238
21173 msgid ""
21174 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
21175 "dev/zero of=outdisk bs=1M count=..>)"
21176 msgstr ""
21177
21178 #. type: textblock
21179 #: ../resize/virt-resize.pod:247
21180 msgid "Display help."
21181 msgstr ""
21182
21183 #. type: =item
21184 #: ../resize/virt-resize.pod:249
21185 msgid "B<-d>"
21186 msgstr ""
21187
21188 #. type: =item
21189 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
21190 #: ../tools/virt-win-reg.pl:120
21191 msgid "B<--debug>"
21192 msgstr ""
21193
21194 #. type: textblock
21195 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
21196 msgid "Enable debugging messages."
21197 msgstr ""
21198
21199 #. type: =item
21200 #: ../resize/virt-resize.pod:255
21201 msgid "B<--delete part>"
21202 msgstr ""
21203
21204 #. type: textblock
21205 #: ../resize/virt-resize.pod:257
21206 msgid ""
21207 "Delete the named partition.  It would be more accurate to describe this as "
21208 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
21209 "the original disk image is left intact."
21210 msgstr ""
21211
21212 #. type: textblock
21213 #: ../resize/virt-resize.pod:261
21214 msgid ""
21215 "Note that when you delete a partition, then anything contained in the "
21216 "partition is also deleted.  Furthermore, this causes any partitions that "
21217 "come after to be I<renumbered>, which can easily make your guest unbootable."
21218 msgstr ""
21219
21220 #. type: textblock
21221 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
21222 #: ../resize/virt-resize.pod:454
21223 msgid "You can give this option multiple times."
21224 msgstr ""
21225
21226 #. type: =item
21227 #: ../resize/virt-resize.pod:268
21228 msgid "B<--expand part>"
21229 msgstr ""
21230
21231 #. type: textblock
21232 #: ../resize/virt-resize.pod:270
21233 msgid ""
21234 "Expand the named partition so it uses up all extra space (space left over "
21235 "after any other resize changes that you request have been done)."
21236 msgstr ""
21237
21238 #. type: textblock
21239 #: ../resize/virt-resize.pod:273
21240 msgid ""
21241 "If virt-resize knows how, it will expand the direct content of the "
21242 "partition.  For example, if the partition is an LVM PV, it will expand the "
21243 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
21244 "content it doesn't know about alone."
21245 msgstr ""
21246
21247 #. type: textblock
21248 #: ../resize/virt-resize.pod:278
21249 msgid "Currently virt-resize can resize:"
21250 msgstr ""
21251
21252 #. type: textblock
21253 #: ../resize/virt-resize.pod:284
21254 msgid "ext2, ext3 and ext4 filesystems."
21255 msgstr ""
21256
21257 #. type: textblock
21258 #: ../resize/virt-resize.pod:288
21259 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
21260 msgstr ""
21261
21262 #. type: textblock
21263 #: ../resize/virt-resize.pod:290
21264 msgid ""
21265 "The filesystem must have been shut down consistently last time it was used.  "
21266 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
21267 "consistency check, so at the first boot after resizing Windows will check "
21268 "the disk."
21269 msgstr ""
21270
21271 #. type: textblock
21272 #: ../resize/virt-resize.pod:297
21273 msgid ""
21274 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
21275 "inside the PV, but see the I<--LV-expand> option.  The user could also "
21276 "resize LVs as desired after boot."
21277 msgstr ""
21278
21279 #. type: textblock
21280 #: ../resize/virt-resize.pod:303
21281 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
21282 msgstr ""
21283
21284 #. type: textblock
21285 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
21286 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
21287 msgstr ""
21288
21289 #. type: =item
21290 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
21291 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
21292 #: ../tools/virt-win-reg.pl:142
21293 msgid "B<--format> raw"
21294 msgstr ""
21295
21296 #. type: textblock
21297 #: ../resize/virt-resize.pod:311
21298 msgid ""
21299 "Specify the format of the input disk image.  If this flag is not given then "
21300 "it is auto-detected from the image itself."
21301 msgstr ""
21302
21303 #. type: textblock
21304 #: ../resize/virt-resize.pod:317
21305 msgid ""
21306 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
21307 "AND NON-SPARSE RAW FORMATS>."
21308 msgstr ""
21309
21310 #. type: =item
21311 #: ../resize/virt-resize.pod:320
21312 msgid "B<--ignore part>"
21313 msgstr ""
21314
21315 #. type: textblock
21316 #: ../resize/virt-resize.pod:322
21317 msgid ""
21318 "Ignore the named partition.  Effectively this means the partition is "
21319 "allocated on the destination disk, but the content is not copied across from "
21320 "the source disk.  The content of the partition will be blank (all zero "
21321 "bytes)."
21322 msgstr ""
21323
21324 #. type: =item
21325 #: ../resize/virt-resize.pod:329
21326 msgid "B<--LV-expand logvol>"
21327 msgstr ""
21328
21329 #. type: textblock
21330 #: ../resize/virt-resize.pod:331
21331 msgid ""
21332 "This takes the logical volume and, as a final step, expands it to fill all "
21333 "the space available in its volume group.  A typical usage, assuming a Linux "
21334 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
21335 "lv_root> would be:"
21336 msgstr ""
21337
21338 #. type: verbatim
21339 #: ../resize/virt-resize.pod:336
21340 #, no-wrap
21341 msgid ""
21342 " virt-resize indisk outdisk \\\n"
21343 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
21344 "\n"
21345 msgstr ""
21346
21347 #. type: textblock
21348 #: ../resize/virt-resize.pod:339
21349 msgid ""
21350 "This would first expand the partition (and PV), and then expand the root "
21351 "device to fill the extra space in the PV."
21352 msgstr ""
21353
21354 #. type: textblock
21355 #: ../resize/virt-resize.pod:342
21356 msgid ""
21357 "The contents of the LV are also resized if virt-resize knows how to do "
21358 "that.  You can stop virt-resize from trying to expand the content by using "
21359 "the option I<--no-expand-content>."
21360 msgstr ""
21361
21362 #. type: textblock
21363 #: ../resize/virt-resize.pod:346
21364 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
21365 msgstr ""
21366
21367 #. type: textblock
21368 #: ../resize/virt-resize.pod:348
21369 msgid ""
21370 "You can give this option multiple times, I<but> it doesn't make sense to do "
21371 "this unless the logical volumes you specify are all in different volume "
21372 "groups."
21373 msgstr ""
21374
21375 #. type: =item
21376 #: ../resize/virt-resize.pod:352
21377 msgid "B<--machine-readable>"
21378 msgstr ""
21379
21380 #. type: textblock
21381 #: ../resize/virt-resize.pod:354
21382 msgid ""
21383 "This option is used to make the output more machine friendly when being "
21384 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
21385 msgstr ""
21386
21387 #. type: =item
21388 #: ../resize/virt-resize.pod:360
21389 msgid "B<--dryrun>"
21390 msgstr ""
21391
21392 #. type: textblock
21393 #: ../resize/virt-resize.pod:362
21394 msgid "Print a summary of what would be done, but don't do anything."
21395 msgstr ""
21396
21397 #. type: =item
21398 #: ../resize/virt-resize.pod:364
21399 msgid "B<--no-copy-boot-loader>"
21400 msgstr ""
21401
21402 #. type: textblock
21403 #: ../resize/virt-resize.pod:366
21404 msgid ""
21405 "By default, virt-resize copies over some sectors at the start of the disk "
21406 "(up to the beginning of the first partition).  Commonly these sectors "
21407 "contain the Master Boot Record (MBR) and the boot loader, and are required "
21408 "in order for the guest to boot correctly."
21409 msgstr ""
21410
21411 #. type: textblock
21412 #: ../resize/virt-resize.pod:371
21413 msgid ""
21414 "If you specify this flag, then this initial copy is not done.  You may need "
21415 "to reinstall the boot loader in this case."
21416 msgstr ""
21417
21418 #. type: =item
21419 #: ../resize/virt-resize.pod:374
21420 msgid "B<--no-extra-partition>"
21421 msgstr ""
21422
21423 #. type: textblock
21424 #: ../resize/virt-resize.pod:376
21425 msgid ""
21426 "By default, virt-resize creates an extra partition if there is any extra, "
21427 "unused space after all resizing has happened.  Use this option to prevent "
21428 "the extra partition from being created.  If you do this then the extra space "
21429 "will be inaccessible until you run fdisk, parted, or some other partitioning "
21430 "tool in the guest."
21431 msgstr ""
21432
21433 #. type: textblock
21434 #: ../resize/virt-resize.pod:382
21435 msgid ""
21436 "Note that if the surplus space is smaller than 10 MB, no extra partition "
21437 "will be created."
21438 msgstr ""
21439
21440 #. type: =item
21441 #: ../resize/virt-resize.pod:385
21442 msgid "B<--no-expand-content>"
21443 msgstr ""
21444
21445 #. type: textblock
21446 #: ../resize/virt-resize.pod:387
21447 msgid ""
21448 "By default, virt-resize will try to expand the direct contents of "
21449 "partitions, if it knows how (see I<--expand> option above)."
21450 msgstr ""
21451
21452 #. type: textblock
21453 #: ../resize/virt-resize.pod:390
21454 msgid ""
21455 "If you give the I<--no-expand-content> option then virt-resize will not "
21456 "attempt this."
21457 msgstr ""
21458
21459 #. type: =item
21460 #: ../resize/virt-resize.pod:393
21461 msgid "B<--ntfsresize-force>"
21462 msgstr ""
21463
21464 #. type: textblock
21465 #: ../resize/virt-resize.pod:395
21466 msgid ""
21467 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
21468 "the NTFS disk is marked as needing a consistency check.  You have to use "
21469 "this option if you want to resize a Windows guest multiple times without "
21470 "booting into Windows between each resize."
21471 msgstr ""
21472
21473 #. type: =item
21474 #: ../resize/virt-resize.pod:401
21475 msgid "B<--output-format> raw"
21476 msgstr ""
21477
21478 #. type: textblock
21479 #: ../resize/virt-resize.pod:403
21480 msgid ""
21481 "Specify the format of the output disk image.  If this flag is not given then "
21482 "it is auto-detected from the image itself."
21483 msgstr ""
21484
21485 #. type: textblock
21486 #: ../resize/virt-resize.pod:409
21487 msgid ""
21488 "Note that this option I<does not create> the output format.  This option "
21489 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
21490 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
21491 "SPARSE RAW FORMATS>."
21492 msgstr ""
21493
21494 #. type: =item
21495 #: ../resize/virt-resize.pod:414
21496 msgid "B<-q>"
21497 msgstr ""
21498
21499 #. type: =item
21500 #: ../resize/virt-resize.pod:416
21501 msgid "B<--quiet>"
21502 msgstr ""
21503
21504 #. type: textblock
21505 #: ../resize/virt-resize.pod:418
21506 msgid "Don't print the summary."
21507 msgstr ""
21508
21509 #. type: =item
21510 #: ../resize/virt-resize.pod:420
21511 msgid "B<--resize part=size>"
21512 msgstr ""
21513
21514 #. type: textblock
21515 #: ../resize/virt-resize.pod:422
21516 msgid ""
21517 "Resize the named partition (expanding or shrinking it) so that it has the "
21518 "given size."
21519 msgstr ""
21520
21521 #. type: textblock
21522 #: ../resize/virt-resize.pod:425
21523 msgid ""
21524 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
21525 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
21526 "size; or as a relative number or percentage.  For example:"
21527 msgstr ""
21528
21529 #. type: verbatim
21530 #: ../resize/virt-resize.pod:431
21531 #, no-wrap
21532 msgid ""
21533 " --resize /dev/sda2=10G\n"
21534 "\n"
21535 msgstr ""
21536
21537 #. type: verbatim
21538 #: ../resize/virt-resize.pod:433
21539 #, no-wrap
21540 msgid ""
21541 " --resize /dev/sda4=90%\n"
21542 "\n"
21543 msgstr ""
21544
21545 #. type: verbatim
21546 #: ../resize/virt-resize.pod:435
21547 #, no-wrap
21548 msgid ""
21549 " --resize /dev/sda2=+1G\n"
21550 "\n"
21551 msgstr ""
21552
21553 #. type: verbatim
21554 #: ../resize/virt-resize.pod:437
21555 #, no-wrap
21556 msgid ""
21557 " --resize /dev/sda2=-200M\n"
21558 "\n"
21559 msgstr ""
21560
21561 #. type: verbatim
21562 #: ../resize/virt-resize.pod:439
21563 #, no-wrap
21564 msgid ""
21565 " --resize /dev/sda1=+128K\n"
21566 "\n"
21567 msgstr ""
21568
21569 #. type: verbatim
21570 #: ../resize/virt-resize.pod:441
21571 #, no-wrap
21572 msgid ""
21573 " --resize /dev/sda1=+10%\n"
21574 "\n"
21575 msgstr ""
21576
21577 #. type: verbatim
21578 #: ../resize/virt-resize.pod:443
21579 #, no-wrap
21580 msgid ""
21581 " --resize /dev/sda1=-10%\n"
21582 "\n"
21583 msgstr ""
21584
21585 #. type: textblock
21586 #: ../resize/virt-resize.pod:445
21587 msgid ""
21588 "You can increase the size of any partition.  Virt-resize will expand the "
21589 "direct content of the partition if it knows how (see I<--expand> below)."
21590 msgstr ""
21591
21592 #. type: textblock
21593 #: ../resize/virt-resize.pod:449
21594 msgid ""
21595 "You can only I<decrease> the size of partitions that contain filesystems or "
21596 "PVs which have already been shrunk.  Virt-resize will check this has been "
21597 "done before proceeding, or else will print an error (see also I<--resize-"
21598 "force>)."
21599 msgstr ""
21600
21601 #. type: =item
21602 #: ../resize/virt-resize.pod:456
21603 msgid "B<--resize-force part=size>"
21604 msgstr ""
21605
21606 #. type: textblock
21607 #: ../resize/virt-resize.pod:458
21608 msgid ""
21609 "This is the same as I<--resize> except that it will let you decrease the "
21610 "size of any partition.  Generally this means you will lose any data which "
21611 "was at the end of the partition you shrink, but you may not care about that "
21612 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
21613 "as a swap partition)."
21614 msgstr ""
21615
21616 #. type: textblock
21617 #: ../resize/virt-resize.pod:464
21618 msgid "See also the I<--ignore> option."
21619 msgstr ""
21620
21621 #. type: =item
21622 #: ../resize/virt-resize.pod:466
21623 msgid "B<--shrink part>"
21624 msgstr ""
21625
21626 #. type: textblock
21627 #: ../resize/virt-resize.pod:468
21628 msgid ""
21629 "Shrink the named partition until the overall disk image fits in the "
21630 "destination.  The named partition B<must> contain a filesystem or PV which "
21631 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
21632 "online tools).  Virt-resize will check this and give an error if it has not "
21633 "been done."
21634 msgstr ""
21635
21636 #. type: textblock
21637 #: ../resize/virt-resize.pod:474
21638 msgid ""
21639 "The amount by which the overall disk must be shrunk (after carrying out all "
21640 "other operations requested by the user) is called the \"deficit\".  For "
21641 "example, a straight copy (assume no other operations)  from a 5GB disk image "
21642 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
21643 "would give an error unless the user specified a partition to shrink and that "
21644 "partition had more than a gigabyte of free space."
21645 msgstr ""
21646
21647 #. type: =head1
21648 #: ../resize/virt-resize.pod:492
21649 msgid "MACHINE READABLE OUTPUT"
21650 msgstr ""
21651
21652 #. type: textblock
21653 #: ../resize/virt-resize.pod:494
21654 msgid ""
21655 "The I<--machine-readable> option can be used to make the output more machine "
21656 "friendly, which is useful when calling virt-resize from other programs, GUIs "
21657 "etc."
21658 msgstr ""
21659
21660 #. type: textblock
21661 #: ../resize/virt-resize.pod:498
21662 msgid ""
21663 "Use the option on its own to query the capabilities of the virt-resize "
21664 "binary.  Typical output looks like this:"
21665 msgstr ""
21666
21667 #. type: verbatim
21668 #: ../resize/virt-resize.pod:501
21669 #, no-wrap
21670 msgid ""
21671 " $ virt-resize --machine-readable\n"
21672 " virt-resize\n"
21673 " ntfsresize-force\n"
21674 " 32bitok\n"
21675 " ntfs\n"
21676 " btrfs\n"
21677 "\n"
21678 msgstr ""
21679
21680 #. type: textblock
21681 #: ../resize/virt-resize.pod:508
21682 msgid ""
21683 "A list of features is printed, one per line, and the program exits with "
21684 "status 0."
21685 msgstr ""
21686
21687 #. type: =head2
21688 #: ../resize/virt-resize.pod:513
21689 msgid "\"Partition 1 does not end on cylinder boundary.\""
21690 msgstr ""
21691
21692 #. type: textblock
21693 #: ../resize/virt-resize.pod:515
21694 msgid ""
21695 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
21696 "means the partitions will not be aligned to the ancient CHS geometry.  "
21697 "However CHS geometry is meaningless for disks manufactured since the early "
21698 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
21699 "cylinders is not required by any modern operating system."
21700 msgstr ""
21701
21702 #. type: =head2
21703 #: ../resize/virt-resize.pod:522
21704 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
21705 msgstr ""
21706
21707 #. type: textblock
21708 #: ../resize/virt-resize.pod:524
21709 msgid ""
21710 "In Windows Vista and later versions, Microsoft switched to using a separate "
21711 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
21712 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
21713 "the boot partition.  Doing so seems to break the guest completely.  However "
21714 "expanding the second partition (ie. C: drive) should work."
21715 msgstr ""
21716
21717 #. type: textblock
21718 #: ../resize/virt-resize.pod:531
21719 msgid ""
21720 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
21721 "NTFS partitions have been expanded.  This is just a safety check and (unless "
21722 "it find errors) is nothing to worry about."
21723 msgstr ""
21724
21725 #. type: =head2
21726 #: ../resize/virt-resize.pod:535
21727 msgid "GUEST BOOT STUCK AT \"GRUB\""
21728 msgstr ""
21729
21730 #. type: textblock
21731 #: ../resize/virt-resize.pod:537
21732 msgid ""
21733 "If a Linux guest does not boot after resizing, and the boot is stuck after "
21734 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
21735 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
21736 "although we think is to do with partition alignment."
21737 msgstr ""
21738
21739 #. type: verbatim
21740 #: ../resize/virt-resize.pod:542
21741 #, no-wrap
21742 msgid ""
21743 " guestfish -i -a newdisk\n"
21744 " ><fs> cat /boot/grub/device.map\n"
21745 " # check the contents of this file are sensible or\n"
21746 " # edit the file if necessary\n"
21747 " ><fs> grub-install / /dev/vda\n"
21748 " ><fs> exit\n"
21749 "\n"
21750 msgstr ""
21751
21752 #. type: textblock
21753 #: ../resize/virt-resize.pod:549
21754 msgid ""
21755 "For more flexible guest reconfiguration, including if you need to specify "
21756 "other parameters to grub-install, use L<virt-rescue(1)>."
21757 msgstr ""
21758
21759 #. type: =head1
21760 #: ../resize/virt-resize.pod:552
21761 msgid "ALTERNATIVE TOOLS"
21762 msgstr ""
21763
21764 #. type: textblock
21765 #: ../resize/virt-resize.pod:554
21766 msgid ""
21767 "There are several proprietary tools for resizing partitions.  We won't "
21768 "mention any here."
21769 msgstr ""
21770
21771 #. type: textblock
21772 #: ../resize/virt-resize.pod:557
21773 msgid ""
21774 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
21775 "operations on disk images.  They can resize and move partitions, but I don't "
21776 "think they can do anything with the contents, and they certainly don't "
21777 "understand LVM."
21778 msgstr ""
21779
21780 #. type: textblock
21781 #: ../resize/virt-resize.pod:562
21782 msgid ""
21783 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
21784 "but at a much lower level.  You will probably end up hand-calculating sector "
21785 "offsets, which is something that virt-resize was designed to avoid.  If you "
21786 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
21787 "I<--debug> flag."
21788 msgstr ""
21789
21790 #. type: textblock
21791 #: ../resize/virt-resize.pod:582
21792 msgid ""
21793 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
21794 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
21795 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
21796 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
21797 msgstr ""
21798
21799 #. type: textblock
21800 #: ../ruby/examples/guestfs-ruby.pod:5
21801 msgid "guestfs-ruby - How to use libguestfs from Ruby"
21802 msgstr ""
21803
21804 #. type: verbatim
21805 #: ../ruby/examples/guestfs-ruby.pod:9
21806 #, no-wrap
21807 msgid ""
21808 " require 'guestfs'\n"
21809 " g = Guestfs::Guestfs.new()\n"
21810 " g.add_drive_opts(\"disk.img\",\n"
21811 "                  :readonly => 1, :format => \"raw\")\n"
21812 " g.launch()\n"
21813 "\n"
21814 msgstr ""
21815
21816 #. type: textblock
21817 #: ../ruby/examples/guestfs-ruby.pod:17
21818 msgid ""
21819 "This manual page documents how to call libguestfs from the Ruby programming "
21820 "language.  This page just documents the differences from the C API and gives "
21821 "some examples.  If you are not familiar with using libguestfs, you also need "
21822 "to read L<guestfs(3)>."
21823 msgstr ""
21824
21825 #. type: textblock
21826 #: ../ruby/examples/guestfs-ruby.pod:24
21827 msgid ""
21828 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
21829 "This has a single parameter which is the error message (a string)."
21830 msgstr ""
21831
21832 #. type: textblock
21833 #: ../ruby/examples/guestfs-ruby.pod:38
21834 msgid ""
21835 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21836 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
21837 "libguestfs.org/>."
21838 msgstr ""
21839
21840 #. type: =head2
21841 #: ../src/guestfs-actions.pod:1
21842 msgid "guestfs_add_cdrom"
21843 msgstr ""
21844
21845 #. type: verbatim
21846 #: ../src/guestfs-actions.pod:3
21847 #, no-wrap
21848 msgid ""
21849 " int\n"
21850 " guestfs_add_cdrom (guestfs_h *g,\n"
21851 "                    const char *filename);\n"
21852 "\n"
21853 msgstr ""
21854
21855 #. type: textblock
21856 #: ../src/guestfs-actions.pod:17
21857 msgid ""
21858 "This call checks for the existence of C<filename>.  This stops you from "
21859 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21860 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
21861 "instead."
21862 msgstr ""
21863
21864 #. type: textblock
21865 #: ../src/guestfs-actions.pod:24
21866 msgid ""
21867 "If you just want to add an ISO file (often you use this as an efficient way "
21868 "to transfer large files into the guest), then you should probably use "
21869 "C<guestfs_add_drive_ro> instead."
21870 msgstr ""
21871
21872 #. type: textblock
21873 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
21874 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
21875 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
21876 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
21877 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
21878 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
21879 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
21880 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
21881 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
21882 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
21883 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
21884 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
21885 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
21886 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
21887 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
21888 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
21889 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
21890 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1513
21891 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
21892 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
21893 #: ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2490
21894 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2586
21895 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
21896 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3855
21897 #: ../src/guestfs-actions.pod:3869 ../src/guestfs-actions.pod:3882
21898 #: ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3911
21899 #: ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4019
21900 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4056
21901 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4102
21902 #: ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:4156
21903 #: ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4210
21904 #: ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4258
21905 #: ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4287
21906 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319
21907 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4432
21908 #: ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4496
21909 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4532
21910 #: ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4562
21911 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4593
21912 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4628
21913 #: ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:4771
21914 #: ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4821
21915 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4852
21916 #: ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:4882
21917 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4912
21918 #: ../src/guestfs-actions.pod:4947 ../src/guestfs-actions.pod:4980
21919 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5039
21920 #: ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:5070
21921 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5165
21922 #: ../src/guestfs-actions.pod:5219 ../src/guestfs-actions.pod:5255
21923 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5307
21924 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5465
21925 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5544
21926 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5594
21927 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5677
21928 #: ../src/guestfs-actions.pod:5690 ../src/guestfs-actions.pod:5704
21929 #: ../src/guestfs-actions.pod:5993 ../src/guestfs-actions.pod:6012
21930 #: ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6045
21931 #: ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071
21932 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097
21933 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6134
21934 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
21935 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6220
21936 #: ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6261
21937 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6301
21938 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6337
21939 #: ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6384
21940 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427
21941 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6470
21942 #: ../src/guestfs-actions.pod:6485 ../src/guestfs-actions.pod:6504
21943 #: ../src/guestfs-actions.pod:6541 ../src/guestfs-actions.pod:6571
21944 #: ../src/guestfs-actions.pod:6604 ../src/guestfs-actions.pod:6726
21945 #: ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:6859
21946 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6885
21947 #: ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6920
21948 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946
21949 #: ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:7020
21950 #: ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7053
21951 #: ../src/guestfs-actions.pod:7069 ../src/guestfs-actions.pod:7086
21952 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7119
21953 #: ../src/guestfs-actions.pod:7155 ../src/guestfs-actions.pod:7169
21954 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7223
21955 #: ../src/guestfs-actions.pod:7241 ../src/guestfs-actions.pod:7275
21956 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7427
21957 #: ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7456
21958 #: ../src/guestfs-actions.pod:7511 ../src/guestfs-actions.pod:7524
21959 #: ../src/guestfs-actions.pod:7569 ../src/guestfs-actions.pod:7602
21960 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7685
21961 #: ../src/guestfs-actions.pod:7711 ../src/guestfs-actions.pod:7782
21962 #: ../src/guestfs-actions.pod:7805 ../src/guestfs-actions.pod:7834
21963 msgid "This function returns 0 on success or -1 on error."
21964 msgstr ""
21965
21966 #. type: textblock
21967 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
21968 #: ../src/guestfs-actions.pod:275
21969 msgid ""
21970 "This function is deprecated.  In new code, use the L</"
21971 "guestfs_add_drive_opts> call instead."
21972 msgstr ""
21973
21974 #. type: textblock
21975 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
21976 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
21977 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
21978 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3648
21979 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:6222
21980 #: ../src/guestfs-actions.pod:6339 ../src/guestfs-actions.pod:6472
21981 #: ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:7088
21982 #: ../src/guestfs-actions.pod:7611
21983 msgid "(Added in 0.3)"
21984 msgstr ""
21985
21986 #. type: =head2
21987 #: ../src/guestfs-actions.pod:41
21988 msgid "guestfs_add_domain"
21989 msgstr ""
21990
21991 #. type: verbatim
21992 #: ../src/guestfs-actions.pod:43
21993 #, no-wrap
21994 msgid ""
21995 " int\n"
21996 " guestfs_add_domain (guestfs_h *g,\n"
21997 "                     const char *dom,\n"
21998 "                     ...);\n"
21999 "\n"
22000 msgstr ""
22001
22002 #. type: textblock
22003 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
22004 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2831
22005 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4966
22006 #: ../src/guestfs-actions.pod:5183
22007 msgid ""
22008 "You may supply a list of optional arguments to this call.  Use zero or more "
22009 "of the following pairs of parameters, and terminate the list with C<-1> on "
22010 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
22011 msgstr ""
22012
22013 #. type: verbatim
22014 #: ../src/guestfs-actions.pod:53
22015 #, no-wrap
22016 msgid ""
22017 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
22018 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
22019 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
22020 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
22021 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
22022 "\n"
22023 msgstr ""
22024
22025 #. type: textblock
22026 #: ../src/guestfs-actions.pod:59
22027 msgid ""
22028 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
22029 "It works by connecting to libvirt, requesting the domain and domain XML from "
22030 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
22031 "one."
22032 msgstr ""
22033
22034 #. type: textblock
22035 #: ../src/guestfs-actions.pod:94
22036 msgid ""
22037 "The other optional parameters are passed directly through to "
22038 "C<guestfs_add_drive_opts>."
22039 msgstr ""
22040
22041 #. type: textblock
22042 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
22043 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
22044 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
22045 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
22046 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
22047 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
22048 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
22049 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2949
22050 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:5142
22051 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5774
22052 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:7196
22053 #: ../src/guestfs-actions.pod:7622 ../src/guestfs-actions.pod:7635
22054 #: ../src/guestfs-actions.pod:7648
22055 msgid "On error this function returns -1."
22056 msgstr ""
22057
22058 #. type: textblock
22059 #: ../src/guestfs-actions.pod:99
22060 msgid "(Added in 1.7.4)"
22061 msgstr ""
22062
22063 #. type: =head2
22064 #: ../src/guestfs-actions.pod:101
22065 msgid "guestfs_add_domain_va"
22066 msgstr ""
22067
22068 #. type: verbatim
22069 #: ../src/guestfs-actions.pod:103
22070 #, no-wrap
22071 msgid ""
22072 " int\n"
22073 " guestfs_add_domain_va (guestfs_h *g,\n"
22074 "                        const char *dom,\n"
22075 "                        va_list args);\n"
22076 "\n"
22077 msgstr ""
22078
22079 #. type: textblock
22080 #: ../src/guestfs-actions.pod:108
22081 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
22082 msgstr ""
22083
22084 #. type: textblock
22085 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
22086 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
22087 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
22088 #: ../src/guestfs-actions.pod:2915 ../src/guestfs-actions.pod:2927
22089 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4724
22090 #: ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5006
22091 #: ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243
22092 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
22093 msgstr ""
22094
22095 #. type: =head2
22096 #: ../src/guestfs-actions.pod:112
22097 msgid "guestfs_add_domain_argv"
22098 msgstr ""
22099
22100 #. type: verbatim
22101 #: ../src/guestfs-actions.pod:114
22102 #, no-wrap
22103 msgid ""
22104 " int\n"
22105 " guestfs_add_domain_argv (guestfs_h *g,\n"
22106 "                          const char *dom,\n"
22107 "                          const struct guestfs_add_domain_argv *optargs);\n"
22108 "\n"
22109 msgstr ""
22110
22111 #. type: textblock
22112 #: ../src/guestfs-actions.pod:119
22113 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
22114 msgstr ""
22115
22116 #. type: =head2
22117 #: ../src/guestfs-actions.pod:123
22118 msgid "guestfs_add_drive"
22119 msgstr ""
22120
22121 #. type: verbatim
22122 #: ../src/guestfs-actions.pod:125
22123 #, no-wrap
22124 msgid ""
22125 " int\n"
22126 " guestfs_add_drive (guestfs_h *g,\n"
22127 "                    const char *filename);\n"
22128 "\n"
22129 msgstr ""
22130
22131 #. type: textblock
22132 #: ../src/guestfs-actions.pod:129
22133 msgid ""
22134 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
22135 "optional parameters, so the disk is added writable, with the format being "
22136 "detected automatically."
22137 msgstr ""
22138
22139 #. type: textblock
22140 #: ../src/guestfs-actions.pod:133
22141 msgid ""
22142 "Automatic detection of the format opens you up to a potential security hole "
22143 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
22144 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
22145 "you should think about replacing calls to this function with calls to "
22146 "C<guestfs_add_drive_opts>, and specifying the format."
22147 msgstr ""
22148
22149 #. type: =head2
22150 #: ../src/guestfs-actions.pod:144
22151 msgid "guestfs_add_drive_opts"
22152 msgstr ""
22153
22154 #. type: verbatim
22155 #: ../src/guestfs-actions.pod:146
22156 #, no-wrap
22157 msgid ""
22158 " int\n"
22159 " guestfs_add_drive_opts (guestfs_h *g,\n"
22160 "                         const char *filename,\n"
22161 "                         ...);\n"
22162 "\n"
22163 msgstr ""
22164
22165 #. type: verbatim
22166 #: ../src/guestfs-actions.pod:156
22167 #, no-wrap
22168 msgid ""
22169 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
22170 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
22171 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
22172 "\n"
22173 msgstr ""
22174
22175 #. type: textblock
22176 #: ../src/guestfs-actions.pod:185
22177 msgid ""
22178 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
22179 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
22180 "Possible formats include C<raw> and C<qcow2>."
22181 msgstr ""
22182
22183 #. type: textblock
22184 #: ../src/guestfs-actions.pod:196
22185 msgid ""
22186 "This rarely-used option lets you emulate the behaviour of the deprecated "
22187 "C<guestfs_add_drive_with_if> call (q.v.)"
22188 msgstr ""
22189
22190 #. type: textblock
22191 #: ../src/guestfs-actions.pod:203
22192 msgid "(Added in 1.5.23)"
22193 msgstr ""
22194
22195 #. type: =head2
22196 #: ../src/guestfs-actions.pod:205
22197 msgid "guestfs_add_drive_opts_va"
22198 msgstr ""
22199
22200 #. type: verbatim
22201 #: ../src/guestfs-actions.pod:207
22202 #, no-wrap
22203 msgid ""
22204 " int\n"
22205 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
22206 "                            const char *filename,\n"
22207 "                            va_list args);\n"
22208 "\n"
22209 msgstr ""
22210
22211 #. type: textblock
22212 #: ../src/guestfs-actions.pod:212
22213 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
22214 msgstr ""
22215
22216 #. type: =head2
22217 #: ../src/guestfs-actions.pod:216
22218 msgid "guestfs_add_drive_opts_argv"
22219 msgstr ""
22220
22221 #. type: verbatim
22222 #: ../src/guestfs-actions.pod:218
22223 #, no-wrap
22224 msgid ""
22225 " int\n"
22226 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
22227 "                              const char *filename,\n"
22228 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
22229 "\n"
22230 msgstr ""
22231
22232 #. type: textblock
22233 #: ../src/guestfs-actions.pod:223
22234 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
22235 msgstr ""
22236
22237 #. type: =head2
22238 #: ../src/guestfs-actions.pod:227
22239 msgid "guestfs_add_drive_ro"
22240 msgstr ""
22241
22242 #. type: verbatim
22243 #: ../src/guestfs-actions.pod:229
22244 #, no-wrap
22245 msgid ""
22246 " int\n"
22247 " guestfs_add_drive_ro (guestfs_h *g,\n"
22248 "                       const char *filename);\n"
22249 "\n"
22250 msgstr ""
22251
22252 #. type: textblock
22253 #: ../src/guestfs-actions.pod:233
22254 msgid ""
22255 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
22256 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
22257 "disk is added read-only, with the format being detected automatically."
22258 msgstr ""
22259
22260 #. type: textblock
22261 #: ../src/guestfs-actions.pod:240
22262 msgid "(Added in 1.0.38)"
22263 msgstr ""
22264
22265 #. type: =head2
22266 #: ../src/guestfs-actions.pod:242
22267 msgid "guestfs_add_drive_ro_with_if"
22268 msgstr ""
22269
22270 #. type: verbatim
22271 #: ../src/guestfs-actions.pod:244
22272 #, no-wrap
22273 msgid ""
22274 " int\n"
22275 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
22276 "                               const char *filename,\n"
22277 "                               const char *iface);\n"
22278 "\n"
22279 msgstr ""
22280
22281 #. type: textblock
22282 #: ../src/guestfs-actions.pod:249
22283 msgid ""
22284 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
22285 "QEMU interface emulation to use at run time."
22286 msgstr ""
22287
22288 #. type: textblock
22289 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
22290 #: ../src/guestfs-actions.pod:2436
22291 msgid "(Added in 1.0.84)"
22292 msgstr ""
22293
22294 #. type: =head2
22295 #: ../src/guestfs-actions.pod:263
22296 msgid "guestfs_add_drive_with_if"
22297 msgstr ""
22298
22299 #. type: verbatim
22300 #: ../src/guestfs-actions.pod:265
22301 #, no-wrap
22302 msgid ""
22303 " int\n"
22304 " guestfs_add_drive_with_if (guestfs_h *g,\n"
22305 "                            const char *filename,\n"
22306 "                            const char *iface);\n"
22307 "\n"
22308 msgstr ""
22309
22310 #. type: textblock
22311 #: ../src/guestfs-actions.pod:270
22312 msgid ""
22313 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
22314 "QEMU interface emulation to use at run time."
22315 msgstr ""
22316
22317 #. type: =head2
22318 #: ../src/guestfs-actions.pod:284
22319 msgid "guestfs_aug_clear"
22320 msgstr ""
22321
22322 #. type: verbatim
22323 #: ../src/guestfs-actions.pod:286
22324 #, no-wrap
22325 msgid ""
22326 " int\n"
22327 " guestfs_aug_clear (guestfs_h *g,\n"
22328 "                    const char *augpath);\n"
22329 "\n"
22330 msgstr ""
22331
22332 #. type: textblock
22333 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
22334 msgid "(Added in 1.3.4)"
22335 msgstr ""
22336
22337 #. type: =head2
22338 #: ../src/guestfs-actions.pod:297
22339 msgid "guestfs_aug_close"
22340 msgstr ""
22341
22342 #. type: verbatim
22343 #: ../src/guestfs-actions.pod:299
22344 #, no-wrap
22345 msgid ""
22346 " int\n"
22347 " guestfs_aug_close (guestfs_h *g);\n"
22348 "\n"
22349 msgstr ""
22350
22351 #. type: textblock
22352 #: ../src/guestfs-actions.pod:302
22353 msgid ""
22354 "Close the current Augeas handle and free up any resources used by it.  After "
22355 "calling this, you have to call C<guestfs_aug_init> again before you can use "
22356 "any other Augeas functions."
22357 msgstr ""
22358
22359 #. type: textblock
22360 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
22361 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
22362 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
22363 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
22364 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
22365 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
22366 #: ../src/guestfs-actions.pod:5851
22367 msgid "(Added in 0.7)"
22368 msgstr ""
22369
22370 #. type: =head2
22371 #: ../src/guestfs-actions.pod:311
22372 msgid "guestfs_aug_defnode"
22373 msgstr ""
22374
22375 #. type: verbatim
22376 #: ../src/guestfs-actions.pod:313
22377 #, no-wrap
22378 msgid ""
22379 " struct guestfs_int_bool *\n"
22380 " guestfs_aug_defnode (guestfs_h *g,\n"
22381 "                      const char *name,\n"
22382 "                      const char *expr,\n"
22383 "                      const char *val);\n"
22384 "\n"
22385 msgstr ""
22386
22387 #. type: textblock
22388 #: ../src/guestfs-actions.pod:322
22389 msgid ""
22390 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22391 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
22392 "containing that single node."
22393 msgstr ""
22394
22395 #. type: textblock
22396 #: ../src/guestfs-actions.pod:330
22397 msgid ""
22398 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
22399 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
22400 msgstr ""
22401
22402 #. type: =head2
22403 #: ../src/guestfs-actions.pod:336
22404 msgid "guestfs_aug_defvar"
22405 msgstr ""
22406
22407 #. type: verbatim
22408 #: ../src/guestfs-actions.pod:338
22409 #, no-wrap
22410 msgid ""
22411 " int\n"
22412 " guestfs_aug_defvar (guestfs_h *g,\n"
22413 "                     const char *name,\n"
22414 "                     const char *expr);\n"
22415 "\n"
22416 msgstr ""
22417
22418 #. type: =head2
22419 #: ../src/guestfs-actions.pod:354
22420 msgid "guestfs_aug_get"
22421 msgstr ""
22422
22423 #. type: verbatim
22424 #: ../src/guestfs-actions.pod:356
22425 #, no-wrap
22426 msgid ""
22427 " char *\n"
22428 " guestfs_aug_get (guestfs_h *g,\n"
22429 "                  const char *augpath);\n"
22430 "\n"
22431 msgstr ""
22432
22433 #. type: textblock
22434 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
22435 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
22436 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
22437 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
22438 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
22439 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
22440 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
22441 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2007
22442 #: ../src/guestfs-actions.pod:2028 ../src/guestfs-actions.pod:2209
22443 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2605
22444 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2799
22445 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3032
22446 #: ../src/guestfs-actions.pod:3060 ../src/guestfs-actions.pod:3081
22447 #: ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3174
22448 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
22449 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:4194
22450 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4474
22451 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5579
22452 #: ../src/guestfs-actions.pod:5749 ../src/guestfs-actions.pod:5927
22453 #: ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6632
22454 #: ../src/guestfs-actions.pod:6648 ../src/guestfs-actions.pod:6665
22455 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:7370
22456 #: ../src/guestfs-actions.pod:7389 ../src/guestfs-actions.pod:7407
22457 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7891
22458 msgid ""
22459 "This function returns a string, or NULL on error.  I<The caller must free "
22460 "the returned string after use>."
22461 msgstr ""
22462
22463 #. type: =head2
22464 #: ../src/guestfs-actions.pod:368
22465 msgid "guestfs_aug_init"
22466 msgstr ""
22467
22468 #. type: verbatim
22469 #: ../src/guestfs-actions.pod:370
22470 #, no-wrap
22471 msgid ""
22472 " int\n"
22473 " guestfs_aug_init (guestfs_h *g,\n"
22474 "                   const char *root,\n"
22475 "                   int flags);\n"
22476 "\n"
22477 msgstr ""
22478
22479 #. type: textblock
22480 #: ../src/guestfs-actions.pod:379
22481 msgid "You must call this before using any other C<guestfs_aug_*> commands."
22482 msgstr ""
22483
22484 #. type: textblock
22485 #: ../src/guestfs-actions.pod:404
22486 msgid ""
22487 "This option is only useful when debugging Augeas lenses.  Use of this option "
22488 "may require additional memory for the libguestfs appliance.  You may need to "
22489 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
22490 "C<guestfs_set_memsize>."
22491 msgstr ""
22492
22493 #. type: textblock
22494 #: ../src/guestfs-actions.pod:419
22495 msgid "Do not load the tree in C<guestfs_aug_init>."
22496 msgstr ""
22497
22498 #. type: textblock
22499 #: ../src/guestfs-actions.pod:423
22500 msgid "To close the handle, you can call C<guestfs_aug_close>."
22501 msgstr ""
22502
22503 #. type: =head2
22504 #: ../src/guestfs-actions.pod:431
22505 msgid "guestfs_aug_insert"
22506 msgstr ""
22507
22508 #. type: verbatim
22509 #: ../src/guestfs-actions.pod:433
22510 #, no-wrap
22511 msgid ""
22512 " int\n"
22513 " guestfs_aug_insert (guestfs_h *g,\n"
22514 "                     const char *augpath,\n"
22515 "                     const char *label,\n"
22516 "                     int before);\n"
22517 "\n"
22518 msgstr ""
22519
22520 #. type: =head2
22521 #: ../src/guestfs-actions.pod:451
22522 msgid "guestfs_aug_load"
22523 msgstr ""
22524
22525 #. type: verbatim
22526 #: ../src/guestfs-actions.pod:453
22527 #, no-wrap
22528 msgid ""
22529 " int\n"
22530 " guestfs_aug_load (guestfs_h *g);\n"
22531 "\n"
22532 msgstr ""
22533
22534 #. type: =head2
22535 #: ../src/guestfs-actions.pod:465
22536 msgid "guestfs_aug_ls"
22537 msgstr ""
22538
22539 #. type: verbatim
22540 #: ../src/guestfs-actions.pod:467
22541 #, no-wrap
22542 msgid ""
22543 " char **\n"
22544 " guestfs_aug_ls (guestfs_h *g,\n"
22545 "                 const char *augpath);\n"
22546 "\n"
22547 msgstr ""
22548
22549 #. type: textblock
22550 #: ../src/guestfs-actions.pod:471
22551 msgid ""
22552 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
22553 "sorting the resulting nodes into alphabetical order."
22554 msgstr ""
22555
22556 #. type: textblock
22557 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
22558 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
22559 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
22560 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
22561 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
22562 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
22563 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2383
22564 #: ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2503
22565 #: ../src/guestfs-actions.pod:2760 ../src/guestfs-actions.pod:3134
22566 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3724
22567 #: ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761
22568 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:3928
22569 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:5103
22570 #: ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:5847
22571 #: ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:6712
22572 #: ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6828
22573 #: ../src/guestfs-actions.pod:6974 ../src/guestfs-actions.pod:6998
22574 #: ../src/guestfs-actions.pod:7474 ../src/guestfs-actions.pod:7494
22575 #: ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7735
22576 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:7848
22577 #: ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7913
22578 #: ../src/guestfs-actions.pod:7932
22579 msgid ""
22580 "This function returns a NULL-terminated array of strings (like L<environ(3)"
22581 ">), or NULL if there was an error.  I<The caller must free the strings and "
22582 "the array after use>."
22583 msgstr ""
22584
22585 #. type: textblock
22586 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
22587 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
22588 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3519
22589 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4227
22590 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4447
22591 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:5107
22592 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:6059
22593 #: ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6085
22594 #: ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:7212
22595 #: ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7458
22596 #: ../src/guestfs-actions.pod:7723
22597 msgid "(Added in 0.8)"
22598 msgstr ""
22599
22600 #. type: =head2
22601 #: ../src/guestfs-actions.pod:480
22602 msgid "guestfs_aug_match"
22603 msgstr ""
22604
22605 #. type: verbatim
22606 #: ../src/guestfs-actions.pod:482
22607 #, no-wrap
22608 msgid ""
22609 " char **\n"
22610 " guestfs_aug_match (guestfs_h *g,\n"
22611 "                    const char *augpath);\n"
22612 "\n"
22613 msgstr ""
22614
22615 #. type: =head2
22616 #: ../src/guestfs-actions.pod:496
22617 msgid "guestfs_aug_mv"
22618 msgstr ""
22619
22620 #. type: verbatim
22621 #: ../src/guestfs-actions.pod:498
22622 #, no-wrap
22623 msgid ""
22624 " int\n"
22625 " guestfs_aug_mv (guestfs_h *g,\n"
22626 "                 const char *src,\n"
22627 "                 const char *dest);\n"
22628 "\n"
22629 msgstr ""
22630
22631 #. type: =head2
22632 #: ../src/guestfs-actions.pod:510
22633 msgid "guestfs_aug_rm"
22634 msgstr ""
22635
22636 #. type: verbatim
22637 #: ../src/guestfs-actions.pod:512
22638 #, no-wrap
22639 msgid ""
22640 " int\n"
22641 " guestfs_aug_rm (guestfs_h *g,\n"
22642 "                 const char *augpath);\n"
22643 "\n"
22644 msgstr ""
22645
22646 #. type: =head2
22647 #: ../src/guestfs-actions.pod:524
22648 msgid "guestfs_aug_save"
22649 msgstr ""
22650
22651 #. type: verbatim
22652 #: ../src/guestfs-actions.pod:526
22653 #, no-wrap
22654 msgid ""
22655 " int\n"
22656 " guestfs_aug_save (guestfs_h *g);\n"
22657 "\n"
22658 msgstr ""
22659
22660 #. type: textblock
22661 #: ../src/guestfs-actions.pod:531
22662 msgid ""
22663 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
22664 "are saved."
22665 msgstr ""
22666
22667 #. type: =head2
22668 #: ../src/guestfs-actions.pod:538
22669 msgid "guestfs_aug_set"
22670 msgstr ""
22671
22672 #. type: verbatim
22673 #: ../src/guestfs-actions.pod:540
22674 #, no-wrap
22675 msgid ""
22676 " int\n"
22677 " guestfs_aug_set (guestfs_h *g,\n"
22678 "                  const char *augpath,\n"
22679 "                  const char *val);\n"
22680 "\n"
22681 msgstr ""
22682
22683 #. type: textblock
22684 #: ../src/guestfs-actions.pod:547
22685 msgid ""
22686 "In the Augeas API, it is possible to clear a node by setting the value to "
22687 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22688 "this call.  Instead you must use the C<guestfs_aug_clear> call."
22689 msgstr ""
22690
22691 #. type: =head2
22692 #: ../src/guestfs-actions.pod:556
22693 msgid "guestfs_available"
22694 msgstr ""
22695
22696 #. type: verbatim
22697 #: ../src/guestfs-actions.pod:558
22698 #, no-wrap
22699 msgid ""
22700 " int\n"
22701 " guestfs_available (guestfs_h *g,\n"
22702 "                    char *const *groups);\n"
22703 "\n"
22704 msgstr ""
22705
22706 #. type: textblock
22707 #: ../src/guestfs-actions.pod:566
22708 msgid ""
22709 "The libguestfs groups, and the functions that those groups correspond to, "
22710 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22711 "runtime by calling C<guestfs_available_all_groups>."
22712 msgstr ""
22713
22714 #. type: textblock
22715 #: ../src/guestfs-actions.pod:590
22716 msgid "You must call C<guestfs_launch> before calling this function."
22717 msgstr ""
22718
22719 #. type: textblock
22720 #: ../src/guestfs-actions.pod:612
22721 msgid ""
22722 "This call was added in version C<1.0.80>.  In previous versions of "
22723 "libguestfs all you could do would be to speculatively execute a command to "
22724 "find out if the daemon implemented it.  See also C<guestfs_version>."
22725 msgstr ""
22726
22727 #. type: textblock
22728 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
22729 msgid "(Added in 1.0.80)"
22730 msgstr ""
22731
22732 #. type: =head2
22733 #: ../src/guestfs-actions.pod:623
22734 msgid "guestfs_available_all_groups"
22735 msgstr ""
22736
22737 #. type: verbatim
22738 #: ../src/guestfs-actions.pod:625
22739 #, no-wrap
22740 msgid ""
22741 " char **\n"
22742 " guestfs_available_all_groups (guestfs_h *g);\n"
22743 "\n"
22744 msgstr ""
22745
22746 #. type: textblock
22747 #: ../src/guestfs-actions.pod:628
22748 msgid ""
22749 "This command returns a list of all optional groups that this daemon knows "
22750 "about.  Note this returns both supported and unsupported groups.  To find "
22751 "out which ones the daemon can actually support you have to call "
22752 "C<guestfs_available> on each member of the returned list."
22753 msgstr ""
22754
22755 #. type: textblock
22756 #: ../src/guestfs-actions.pod:634
22757 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
22758 msgstr ""
22759
22760 #. type: textblock
22761 #: ../src/guestfs-actions.pod:640
22762 msgid "(Added in 1.3.15)"
22763 msgstr ""
22764
22765 #. type: =head2
22766 #: ../src/guestfs-actions.pod:642
22767 msgid "guestfs_base64_in"
22768 msgstr ""
22769
22770 #. type: verbatim
22771 #: ../src/guestfs-actions.pod:644
22772 #, no-wrap
22773 msgid ""
22774 " int\n"
22775 " guestfs_base64_in (guestfs_h *g,\n"
22776 "                    const char *base64file,\n"
22777 "                    const char *filename);\n"
22778 "\n"
22779 msgstr ""
22780
22781 #. type: textblock
22782 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
22783 msgid "(Added in 1.3.5)"
22784 msgstr ""
22785
22786 #. type: =head2
22787 #: ../src/guestfs-actions.pod:656
22788 msgid "guestfs_base64_out"
22789 msgstr ""
22790
22791 #. type: verbatim
22792 #: ../src/guestfs-actions.pod:658
22793 #, no-wrap
22794 msgid ""
22795 " int\n"
22796 " guestfs_base64_out (guestfs_h *g,\n"
22797 "                     const char *filename,\n"
22798 "                     const char *base64file);\n"
22799 "\n"
22800 msgstr ""
22801
22802 #. type: =head2
22803 #: ../src/guestfs-actions.pod:670
22804 msgid "guestfs_blockdev_flushbufs"
22805 msgstr ""
22806
22807 #. type: verbatim
22808 #: ../src/guestfs-actions.pod:672
22809 #, no-wrap
22810 msgid ""
22811 " int\n"
22812 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
22813 "                             const char *device);\n"
22814 "\n"
22815 msgstr ""
22816
22817 #. type: textblock
22818 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
22819 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
22820 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
22821 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
22822 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
22823 msgid "(Added in 0.9.3)"
22824 msgstr ""
22825
22826 #. type: =head2
22827 #: ../src/guestfs-actions.pod:685
22828 msgid "guestfs_blockdev_getbsz"
22829 msgstr ""
22830
22831 #. type: verbatim
22832 #: ../src/guestfs-actions.pod:687
22833 #, no-wrap
22834 msgid ""
22835 " int\n"
22836 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
22837 "                          const char *device);\n"
22838 "\n"
22839 msgstr ""
22840
22841 #. type: =head2
22842 #: ../src/guestfs-actions.pod:702
22843 msgid "guestfs_blockdev_getro"
22844 msgstr ""
22845
22846 #. type: verbatim
22847 #: ../src/guestfs-actions.pod:704
22848 #, no-wrap
22849 msgid ""
22850 " int\n"
22851 " guestfs_blockdev_getro (guestfs_h *g,\n"
22852 "                         const char *device);\n"
22853 "\n"
22854 msgstr ""
22855
22856 #. type: textblock
22857 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
22858 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
22859 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
22860 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
22861 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
22862 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3231
22863 #: ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3265
22864 #: ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3441
22865 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3470
22866 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3501
22867 #: ../src/guestfs-actions.pod:3517 ../src/guestfs-actions.pod:3531
22868 #: ../src/guestfs-actions.pod:3544 ../src/guestfs-actions.pod:3558
22869 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3588
22870 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3615
22871 #: ../src/guestfs-actions.pod:5344
22872 msgid "This function returns a C truth value on success or -1 on error."
22873 msgstr ""
22874
22875 #. type: =head2
22876 #: ../src/guestfs-actions.pod:717
22877 msgid "guestfs_blockdev_getsize64"
22878 msgstr ""
22879
22880 #. type: verbatim
22881 #: ../src/guestfs-actions.pod:719
22882 #, no-wrap
22883 msgid ""
22884 " int64_t\n"
22885 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
22886 "                             const char *device);\n"
22887 "\n"
22888 msgstr ""
22889
22890 #. type: textblock
22891 #: ../src/guestfs-actions.pod:725
22892 msgid "See also C<guestfs_blockdev_getsz>."
22893 msgstr ""
22894
22895 #. type: =head2
22896 #: ../src/guestfs-actions.pod:733
22897 msgid "guestfs_blockdev_getss"
22898 msgstr ""
22899
22900 #. type: verbatim
22901 #: ../src/guestfs-actions.pod:735
22902 #, no-wrap
22903 msgid ""
22904 " int\n"
22905 " guestfs_blockdev_getss (guestfs_h *g,\n"
22906 "                         const char *device);\n"
22907 "\n"
22908 msgstr ""
22909
22910 #. type: textblock
22911 #: ../src/guestfs-actions.pod:742
22912 msgid ""
22913 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
22914 "that)."
22915 msgstr ""
22916
22917 #. type: =head2
22918 #: ../src/guestfs-actions.pod:751
22919 msgid "guestfs_blockdev_getsz"
22920 msgstr ""
22921
22922 #. type: verbatim
22923 #: ../src/guestfs-actions.pod:753
22924 #, no-wrap
22925 msgid ""
22926 " int64_t\n"
22927 " guestfs_blockdev_getsz (guestfs_h *g,\n"
22928 "                         const char *device);\n"
22929 "\n"
22930 msgstr ""
22931
22932 #. type: textblock
22933 #: ../src/guestfs-actions.pod:760
22934 msgid ""
22935 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
22936 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
22937 msgstr ""
22938
22939 #. type: =head2
22940 #: ../src/guestfs-actions.pod:770
22941 msgid "guestfs_blockdev_rereadpt"
22942 msgstr ""
22943
22944 #. type: verbatim
22945 #: ../src/guestfs-actions.pod:772
22946 #, no-wrap
22947 msgid ""
22948 " int\n"
22949 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
22950 "                            const char *device);\n"
22951 "\n"
22952 msgstr ""
22953
22954 #. type: =head2
22955 #: ../src/guestfs-actions.pod:784
22956 msgid "guestfs_blockdev_setbsz"
22957 msgstr ""
22958
22959 #. type: verbatim
22960 #: ../src/guestfs-actions.pod:786
22961 #, no-wrap
22962 msgid ""
22963 " int\n"
22964 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
22965 "                          const char *device,\n"
22966 "                          int blocksize);\n"
22967 "\n"
22968 msgstr ""
22969
22970 #. type: =head2
22971 #: ../src/guestfs-actions.pod:802
22972 msgid "guestfs_blockdev_setro"
22973 msgstr ""
22974
22975 #. type: verbatim
22976 #: ../src/guestfs-actions.pod:804
22977 #, no-wrap
22978 msgid ""
22979 " int\n"
22980 " guestfs_blockdev_setro (guestfs_h *g,\n"
22981 "                         const char *device);\n"
22982 "\n"
22983 msgstr ""
22984
22985 #. type: =head2
22986 #: ../src/guestfs-actions.pod:816
22987 msgid "guestfs_blockdev_setrw"
22988 msgstr ""
22989
22990 #. type: verbatim
22991 #: ../src/guestfs-actions.pod:818
22992 #, no-wrap
22993 msgid ""
22994 " int\n"
22995 " guestfs_blockdev_setrw (guestfs_h *g,\n"
22996 "                         const char *device);\n"
22997 "\n"
22998 msgstr ""
22999
23000 #. type: =head2
23001 #: ../src/guestfs-actions.pod:830
23002 msgid "guestfs_btrfs_filesystem_resize"
23003 msgstr ""
23004
23005 #. type: verbatim
23006 #: ../src/guestfs-actions.pod:832
23007 #, no-wrap
23008 msgid ""
23009 " int\n"
23010 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
23011 "                                  const char *mountpoint,\n"
23012 "                                  ...);\n"
23013 "\n"
23014 msgstr ""
23015
23016 #. type: verbatim
23017 #: ../src/guestfs-actions.pod:842
23018 #, no-wrap
23019 msgid ""
23020 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
23021 "\n"
23022 msgstr ""
23023
23024 #. type: textblock
23025 #: ../src/guestfs-actions.pod:865
23026 msgid "(Added in 1.11.17)"
23027 msgstr ""
23028
23029 #. type: =head2
23030 #: ../src/guestfs-actions.pod:867
23031 msgid "guestfs_btrfs_filesystem_resize_va"
23032 msgstr ""
23033
23034 #. type: verbatim
23035 #: ../src/guestfs-actions.pod:869
23036 #, no-wrap
23037 msgid ""
23038 " int\n"
23039 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
23040 "                                     const char *mountpoint,\n"
23041 "                                     va_list args);\n"
23042 "\n"
23043 msgstr ""
23044
23045 #. type: textblock
23046 #: ../src/guestfs-actions.pod:874
23047 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
23048 msgstr ""
23049
23050 #. type: =head2
23051 #: ../src/guestfs-actions.pod:878
23052 msgid "guestfs_btrfs_filesystem_resize_argv"
23053 msgstr ""
23054
23055 #. type: verbatim
23056 #: ../src/guestfs-actions.pod:880
23057 #, no-wrap
23058 msgid ""
23059 " int\n"
23060 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
23061 "                                       const char *mountpoint,\n"
23062 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
23063 "\n"
23064 msgstr ""
23065
23066 #. type: textblock
23067 #: ../src/guestfs-actions.pod:885
23068 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
23069 msgstr ""
23070
23071 #. type: =head2
23072 #: ../src/guestfs-actions.pod:889
23073 msgid "guestfs_case_sensitive_path"
23074 msgstr ""
23075
23076 #. type: verbatim
23077 #: ../src/guestfs-actions.pod:891
23078 #, no-wrap
23079 msgid ""
23080 " char *\n"
23081 " guestfs_case_sensitive_path (guestfs_h *g,\n"
23082 "                              const char *path);\n"
23083 "\n"
23084 msgstr ""
23085
23086 #. type: textblock
23087 #: ../src/guestfs-actions.pod:917
23088 msgid ""
23089 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
23090 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
23091 "how the directories were originally created under Windows)."
23092 msgstr ""
23093
23094 #. type: textblock
23095 #: ../src/guestfs-actions.pod:925
23096 msgid "See also C<guestfs_realpath>."
23097 msgstr ""
23098
23099 #. type: textblock
23100 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7392
23101 msgid "(Added in 1.0.75)"
23102 msgstr ""
23103
23104 #. type: =head2
23105 #: ../src/guestfs-actions.pod:932
23106 msgid "guestfs_cat"
23107 msgstr ""
23108
23109 #. type: verbatim
23110 #: ../src/guestfs-actions.pod:934
23111 #, no-wrap
23112 msgid ""
23113 " char *\n"
23114 " guestfs_cat (guestfs_h *g,\n"
23115 "              const char *path);\n"
23116 "\n"
23117 msgstr ""
23118
23119 #. type: textblock
23120 #: ../src/guestfs-actions.pod:940
23121 msgid ""
23122 "Note that this function cannot correctly handle binary files (specifically, "
23123 "files containing C<\\0> character which is treated as end of string).  For "
23124 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
23125 "functions which have a more complex interface."
23126 msgstr ""
23127
23128 #. type: textblock
23129 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3745
23130 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3844
23131 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:4340
23132 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:5725
23133 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7545
23134 #: ../src/guestfs-actions.pod:7559
23135 msgid "(Added in 0.4)"
23136 msgstr ""
23137
23138 #. type: =head2
23139 #: ../src/guestfs-actions.pod:953
23140 msgid "guestfs_checksum"
23141 msgstr ""
23142
23143 #. type: verbatim
23144 #: ../src/guestfs-actions.pod:955
23145 #, no-wrap
23146 msgid ""
23147 " char *\n"
23148 " guestfs_checksum (guestfs_h *g,\n"
23149 "                   const char *csumtype,\n"
23150 "                   const char *path);\n"
23151 "\n"
23152 msgstr ""
23153
23154 #. type: textblock
23155 #: ../src/guestfs-actions.pod:1001
23156 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
23157 msgstr ""
23158
23159 #. type: textblock
23160 #: ../src/guestfs-actions.pod:1003
23161 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
23162 msgstr ""
23163
23164 #. type: textblock
23165 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
23166 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3443
23167 #: ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:3533
23168 #: ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:7248
23169 msgid "(Added in 1.0.2)"
23170 msgstr ""
23171
23172 #. type: =head2
23173 #: ../src/guestfs-actions.pod:1010
23174 msgid "guestfs_checksum_device"
23175 msgstr ""
23176
23177 #. type: verbatim
23178 #: ../src/guestfs-actions.pod:1012
23179 #, no-wrap
23180 msgid ""
23181 " char *\n"
23182 " guestfs_checksum_device (guestfs_h *g,\n"
23183 "                          const char *csumtype,\n"
23184 "                          const char *device);\n"
23185 "\n"
23186 msgstr ""
23187
23188 #. type: textblock
23189 #: ../src/guestfs-actions.pod:1017
23190 msgid ""
23191 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
23192 "device named C<device>.  For the types of checksums supported see the "
23193 "C<guestfs_checksum> command."
23194 msgstr ""
23195
23196 #. type: textblock
23197 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5174
23198 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5346
23199 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5546
23200 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7171
23201 #: ../src/guestfs-actions.pod:7571
23202 msgid "(Added in 1.3.2)"
23203 msgstr ""
23204
23205 #. type: =head2
23206 #: ../src/guestfs-actions.pod:1026
23207 msgid "guestfs_checksums_out"
23208 msgstr ""
23209
23210 #. type: verbatim
23211 #: ../src/guestfs-actions.pod:1028
23212 #, no-wrap
23213 msgid ""
23214 " int\n"
23215 " guestfs_checksums_out (guestfs_h *g,\n"
23216 "                        const char *csumtype,\n"
23217 "                        const char *directory,\n"
23218 "                        const char *sumsfile);\n"
23219 "\n"
23220 msgstr ""
23221
23222 #. type: textblock
23223 #: ../src/guestfs-actions.pod:1048
23224 msgid "(Added in 1.3.7)"
23225 msgstr ""
23226
23227 #. type: =head2
23228 #: ../src/guestfs-actions.pod:1050
23229 msgid "guestfs_chmod"
23230 msgstr ""
23231
23232 #. type: verbatim
23233 #: ../src/guestfs-actions.pod:1052
23234 #, no-wrap
23235 msgid ""
23236 " int\n"
23237 " guestfs_chmod (guestfs_h *g,\n"
23238 "                int mode,\n"
23239 "                const char *path);\n"
23240 "\n"
23241 msgstr ""
23242
23243 #. type: =head2
23244 #: ../src/guestfs-actions.pod:1070
23245 msgid "guestfs_chown"
23246 msgstr ""
23247
23248 #. type: verbatim
23249 #: ../src/guestfs-actions.pod:1072
23250 #, no-wrap
23251 msgid ""
23252 " int\n"
23253 " guestfs_chown (guestfs_h *g,\n"
23254 "                int owner,\n"
23255 "                int group,\n"
23256 "                const char *path);\n"
23257 "\n"
23258 msgstr ""
23259
23260 #. type: =head2
23261 #: ../src/guestfs-actions.pod:1088
23262 msgid "guestfs_command"
23263 msgstr ""
23264
23265 #. type: verbatim
23266 #: ../src/guestfs-actions.pod:1090
23267 #, no-wrap
23268 msgid ""
23269 " char *\n"
23270 " guestfs_command (guestfs_h *g,\n"
23271 "                  char *const *arguments);\n"
23272 "\n"
23273 msgstr ""
23274
23275 #. type: textblock
23276 #: ../src/guestfs-actions.pod:1099
23277 msgid ""
23278 "The single parameter is an argv-style list of arguments.  The first element "
23279 "is the name of the program to run.  Subsequent elements are parameters.  The "
23280 "list must be non-empty (ie. must contain a program name).  Note that the "
23281 "command runs directly, and is I<not> invoked via the shell (see "
23282 "C<guestfs_sh>)."
23283 msgstr ""
23284
23285 #. type: textblock
23286 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
23287 #: ../src/guestfs-actions.pod:1615
23288 msgid "(Added in 0.9.1)"
23289 msgstr ""
23290
23291 #. type: =head2
23292 #: ../src/guestfs-actions.pod:1132
23293 msgid "guestfs_command_lines"
23294 msgstr ""
23295
23296 #. type: verbatim
23297 #: ../src/guestfs-actions.pod:1134
23298 #, no-wrap
23299 msgid ""
23300 " char **\n"
23301 " guestfs_command_lines (guestfs_h *g,\n"
23302 "                        char *const *arguments);\n"
23303 "\n"
23304 msgstr ""
23305
23306 #. type: textblock
23307 #: ../src/guestfs-actions.pod:1138
23308 msgid ""
23309 "This is the same as C<guestfs_command>, but splits the result into a list of "
23310 "lines."
23311 msgstr ""
23312
23313 #. type: textblock
23314 #: ../src/guestfs-actions.pod:1141
23315 msgid "See also: C<guestfs_sh_lines>"
23316 msgstr ""
23317
23318 #. type: =head2
23319 #: ../src/guestfs-actions.pod:1152
23320 msgid "guestfs_config"
23321 msgstr ""
23322
23323 #. type: verbatim
23324 #: ../src/guestfs-actions.pod:1154
23325 #, no-wrap
23326 msgid ""
23327 " int\n"
23328 " guestfs_config (guestfs_h *g,\n"
23329 "                 const char *qemuparam,\n"
23330 "                 const char *qemuvalue);\n"
23331 "\n"
23332 msgstr ""
23333
23334 #. type: =head2
23335 #: ../src/guestfs-actions.pod:1172
23336 msgid "guestfs_copy_size"
23337 msgstr ""
23338
23339 #. type: verbatim
23340 #: ../src/guestfs-actions.pod:1174
23341 #, no-wrap
23342 msgid ""
23343 " int\n"
23344 " guestfs_copy_size (guestfs_h *g,\n"
23345 "                    const char *src,\n"
23346 "                    const char *dest,\n"
23347 "                    int64_t size);\n"
23348 "\n"
23349 msgstr ""
23350
23351 #. type: textblock
23352 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
23353 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
23354 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
23355 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:7243
23356 #: ../src/guestfs-actions.pod:7277 ../src/guestfs-actions.pod:7784
23357 #: ../src/guestfs-actions.pod:7807
23358 msgid ""
23359 "This long-running command can generate progress notification messages so "
23360 "that the caller can display a progress bar or indicator.  To receive these "
23361 "messages, the caller must register a progress event callback.  See L<guestfs"
23362 "(3)/GUESTFS_EVENT_PROGRESS>."
23363 msgstr ""
23364
23365 #. type: textblock
23366 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4367
23367 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:7478
23368 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7584
23369 msgid "(Added in 1.0.87)"
23370 msgstr ""
23371
23372 #. type: =head2
23373 #: ../src/guestfs-actions.pod:1195
23374 msgid "guestfs_cp"
23375 msgstr ""
23376
23377 #. type: verbatim
23378 #: ../src/guestfs-actions.pod:1197
23379 #, no-wrap
23380 msgid ""
23381 " int\n"
23382 " guestfs_cp (guestfs_h *g,\n"
23383 "             const char *src,\n"
23384 "             const char *dest);\n"
23385 "\n"
23386 msgstr ""
23387
23388 #. type: textblock
23389 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
23390 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
23391 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5121
23392 #: ../src/guestfs-actions.pod:5596
23393 msgid "(Added in 1.0.18)"
23394 msgstr ""
23395
23396 #. type: =head2
23397 #: ../src/guestfs-actions.pod:1209
23398 msgid "guestfs_cp_a"
23399 msgstr ""
23400
23401 #. type: verbatim
23402 #: ../src/guestfs-actions.pod:1211
23403 #, no-wrap
23404 msgid ""
23405 " int\n"
23406 " guestfs_cp_a (guestfs_h *g,\n"
23407 "               const char *src,\n"
23408 "               const char *dest);\n"
23409 "\n"
23410 msgstr ""
23411
23412 #. type: =head2
23413 #: ../src/guestfs-actions.pod:1223
23414 msgid "guestfs_dd"
23415 msgstr ""
23416
23417 #. type: verbatim
23418 #: ../src/guestfs-actions.pod:1225
23419 #, no-wrap
23420 msgid ""
23421 " int\n"
23422 " guestfs_dd (guestfs_h *g,\n"
23423 "             const char *src,\n"
23424 "             const char *dest);\n"
23425 "\n"
23426 msgstr ""
23427
23428 #. type: textblock
23429 #: ../src/guestfs-actions.pod:1235
23430 msgid ""
23431 "If the destination is a device, it must be as large or larger than the "
23432 "source file or device, otherwise the copy will fail.  This command cannot do "
23433 "partial copies (see C<guestfs_copy_size>)."
23434 msgstr ""
23435
23436 #. type: =head2
23437 #: ../src/guestfs-actions.pod:1243
23438 msgid "guestfs_df"
23439 msgstr ""
23440
23441 #. type: verbatim
23442 #: ../src/guestfs-actions.pod:1245
23443 #, no-wrap
23444 msgid ""
23445 " char *\n"
23446 " guestfs_df (guestfs_h *g);\n"
23447 "\n"
23448 msgstr ""
23449
23450 #. type: textblock
23451 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
23452 msgid ""
23453 "This command is mostly useful for interactive sessions.  It is I<not> "
23454 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
23455 "from programs."
23456 msgstr ""
23457
23458 #. type: textblock
23459 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
23460 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2366
23461 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2458
23462 #: ../src/guestfs-actions.pod:4477 ../src/guestfs-actions.pod:5021
23463 #: ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7005
23464 #: ../src/guestfs-actions.pod:7624 ../src/guestfs-actions.pod:7637
23465 #: ../src/guestfs-actions.pod:7650
23466 msgid "(Added in 1.0.54)"
23467 msgstr ""
23468
23469 #. type: =head2
23470 #: ../src/guestfs-actions.pod:1259
23471 msgid "guestfs_df_h"
23472 msgstr ""
23473
23474 #. type: verbatim
23475 #: ../src/guestfs-actions.pod:1261
23476 #, no-wrap
23477 msgid ""
23478 " char *\n"
23479 " guestfs_df_h (guestfs_h *g);\n"
23480 "\n"
23481 msgstr ""
23482
23483 #. type: =head2
23484 #: ../src/guestfs-actions.pod:1276
23485 msgid "guestfs_dmesg"
23486 msgstr ""
23487
23488 #. type: verbatim
23489 #: ../src/guestfs-actions.pod:1278
23490 #, no-wrap
23491 msgid ""
23492 " char *\n"
23493 " guestfs_dmesg (guestfs_h *g);\n"
23494 "\n"
23495 msgstr ""
23496
23497 #. type: textblock
23498 #: ../src/guestfs-actions.pod:1285
23499 msgid ""
23500 "Another way to get the same information is to enable verbose messages with "
23501 "C<guestfs_set_verbose> or by setting the environment variable "
23502 "C<LIBGUESTFS_DEBUG=1> before running the program."
23503 msgstr ""
23504
23505 #. type: =head2
23506 #: ../src/guestfs-actions.pod:1295
23507 msgid "guestfs_download"
23508 msgstr ""
23509
23510 #. type: verbatim
23511 #: ../src/guestfs-actions.pod:1297
23512 #, no-wrap
23513 msgid ""
23514 " int\n"
23515 " guestfs_download (guestfs_h *g,\n"
23516 "                   const char *remotefilename,\n"
23517 "                   const char *filename);\n"
23518 "\n"
23519 msgstr ""
23520
23521 #. type: textblock
23522 #: ../src/guestfs-actions.pod:1307
23523 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
23524 msgstr ""
23525
23526 #. type: =head2
23527 #: ../src/guestfs-actions.pod:1318
23528 msgid "guestfs_download_offset"
23529 msgstr ""
23530
23531 #. type: verbatim
23532 #: ../src/guestfs-actions.pod:1320
23533 #, no-wrap
23534 msgid ""
23535 " int\n"
23536 " guestfs_download_offset (guestfs_h *g,\n"
23537 "                          const char *remotefilename,\n"
23538 "                          const char *filename,\n"
23539 "                          int64_t offset,\n"
23540 "                          int64_t size);\n"
23541 "\n"
23542 msgstr ""
23543
23544 #. type: textblock
23545 #: ../src/guestfs-actions.pod:1333
23546 msgid ""
23547 "Note that there is no limit on the amount of data that can be downloaded "
23548 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
23549 "full amount unless an error occurs."
23550 msgstr ""
23551
23552 #. type: textblock
23553 #: ../src/guestfs-actions.pod:1338
23554 msgid "See also C<guestfs_download>, C<guestfs_pread>."
23555 msgstr ""
23556
23557 #. type: textblock
23558 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7282
23559 msgid "(Added in 1.5.17)"
23560 msgstr ""
23561
23562 #. type: =head2
23563 #: ../src/guestfs-actions.pod:1349
23564 msgid "guestfs_drop_caches"
23565 msgstr ""
23566
23567 #. type: verbatim
23568 #: ../src/guestfs-actions.pod:1351
23569 #, no-wrap
23570 msgid ""
23571 " int\n"
23572 " guestfs_drop_caches (guestfs_h *g,\n"
23573 "                      int whattodrop);\n"
23574 "\n"
23575 msgstr ""
23576
23577 #. type: =head2
23578 #: ../src/guestfs-actions.pod:1369
23579 msgid "guestfs_du"
23580 msgstr ""
23581
23582 #. type: verbatim
23583 #: ../src/guestfs-actions.pod:1371
23584 #, no-wrap
23585 msgid ""
23586 " int64_t\n"
23587 " guestfs_du (guestfs_h *g,\n"
23588 "             const char *path);\n"
23589 "\n"
23590 msgstr ""
23591
23592 #. type: =head2
23593 #: ../src/guestfs-actions.pod:1394
23594 msgid "guestfs_e2fsck_f"
23595 msgstr ""
23596
23597 #. type: verbatim
23598 #: ../src/guestfs-actions.pod:1396
23599 #, no-wrap
23600 msgid ""
23601 " int\n"
23602 " guestfs_e2fsck_f (guestfs_h *g,\n"
23603 "                   const char *device);\n"
23604 "\n"
23605 msgstr ""
23606
23607 #. type: textblock
23608 #: ../src/guestfs-actions.pod:1404
23609 msgid ""
23610 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
23611 "Normally you should use C<guestfs_fsck>."
23612 msgstr ""
23613
23614 #. type: textblock
23615 #: ../src/guestfs-actions.pod:1409
23616 msgid "(Added in 1.0.29)"
23617 msgstr ""
23618
23619 #. type: =head2
23620 #: ../src/guestfs-actions.pod:1411
23621 msgid "guestfs_echo_daemon"
23622 msgstr ""
23623
23624 #. type: verbatim
23625 #: ../src/guestfs-actions.pod:1413
23626 #, no-wrap
23627 msgid ""
23628 " char *\n"
23629 " guestfs_echo_daemon (guestfs_h *g,\n"
23630 "                      char *const *words);\n"
23631 "\n"
23632 msgstr ""
23633
23634 #. type: textblock
23635 #: ../src/guestfs-actions.pod:1422
23636 msgid "See also C<guestfs_ping_daemon>."
23637 msgstr ""
23638
23639 #. type: textblock
23640 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
23641 #: ../src/guestfs-actions.pod:6453
23642 msgid "(Added in 1.0.69)"
23643 msgstr ""
23644
23645 #. type: =head2
23646 #: ../src/guestfs-actions.pod:1429
23647 msgid "guestfs_egrep"
23648 msgstr ""
23649
23650 #. type: verbatim
23651 #: ../src/guestfs-actions.pod:1431
23652 #, no-wrap
23653 msgid ""
23654 " char **\n"
23655 " guestfs_egrep (guestfs_h *g,\n"
23656 "                const char *regex,\n"
23657 "                const char *path);\n"
23658 "\n"
23659 msgstr ""
23660
23661 #. type: textblock
23662 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
23663 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
23664 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
23665 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2479
23666 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2507
23667 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2575
23668 #: ../src/guestfs-actions.pod:2588 ../src/guestfs-actions.pod:3857
23669 #: ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3884
23670 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4899
23671 #: ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:5979
23672 #: ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6861
23673 #: ../src/guestfs-actions.pod:6874 ../src/guestfs-actions.pod:6887
23674 #: ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6922
23675 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948
23676 #: ../src/guestfs-actions.pod:7742 ../src/guestfs-actions.pod:7761
23677 #: ../src/guestfs-actions.pod:7855 ../src/guestfs-actions.pod:7874
23678 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7939
23679 msgid "(Added in 1.0.66)"
23680 msgstr ""
23681
23682 #. type: =head2
23683 #: ../src/guestfs-actions.pod:1448
23684 msgid "guestfs_egrepi"
23685 msgstr ""
23686
23687 #. type: verbatim
23688 #: ../src/guestfs-actions.pod:1450
23689 #, no-wrap
23690 msgid ""
23691 " char **\n"
23692 " guestfs_egrepi (guestfs_h *g,\n"
23693 "                 const char *regex,\n"
23694 "                 const char *path);\n"
23695 "\n"
23696 msgstr ""
23697
23698 #. type: =head2
23699 #: ../src/guestfs-actions.pod:1467
23700 msgid "guestfs_equal"
23701 msgstr ""
23702
23703 #. type: verbatim
23704 #: ../src/guestfs-actions.pod:1469
23705 #, no-wrap
23706 msgid ""
23707 " int\n"
23708 " guestfs_equal (guestfs_h *g,\n"
23709 "                const char *file1,\n"
23710 "                const char *file2);\n"
23711 "\n"
23712 msgstr ""
23713
23714 #. type: =head2
23715 #: ../src/guestfs-actions.pod:1483
23716 msgid "guestfs_exists"
23717 msgstr ""
23718
23719 #. type: verbatim
23720 #: ../src/guestfs-actions.pod:1485
23721 #, no-wrap
23722 msgid ""
23723 " int\n"
23724 " guestfs_exists (guestfs_h *g,\n"
23725 "                 const char *path);\n"
23726 "\n"
23727 msgstr ""
23728
23729 #. type: textblock
23730 #: ../src/guestfs-actions.pod:1492
23731 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
23732 msgstr ""
23733
23734 #. type: =head2
23735 #: ../src/guestfs-actions.pod:1498
23736 msgid "guestfs_fallocate"
23737 msgstr ""
23738
23739 #. type: verbatim
23740 #: ../src/guestfs-actions.pod:1500
23741 #, no-wrap
23742 msgid ""
23743 " int\n"
23744 " guestfs_fallocate (guestfs_h *g,\n"
23745 "                    const char *path,\n"
23746 "                    int len);\n"
23747 "\n"
23748 msgstr ""
23749
23750 #. type: textblock
23751 #: ../src/guestfs-actions.pod:1515
23752 msgid ""
23753 "This function is deprecated.  In new code, use the L</guestfs_fallocate64> "
23754 "call instead."
23755 msgstr ""
23756
23757 #. type: =head2
23758 #: ../src/guestfs-actions.pod:1524
23759 msgid "guestfs_fallocate64"
23760 msgstr ""
23761
23762 #. type: verbatim
23763 #: ../src/guestfs-actions.pod:1526
23764 #, no-wrap
23765 msgid ""
23766 " int\n"
23767 " guestfs_fallocate64 (guestfs_h *g,\n"
23768 "                      const char *path,\n"
23769 "                      int64_t len);\n"
23770 "\n"
23771 msgstr ""
23772
23773 #. type: textblock
23774 #: ../src/guestfs-actions.pod:1535
23775 msgid ""
23776 "Note that this call allocates disk blocks for the file.  To create a sparse "
23777 "file use C<guestfs_truncate_size> instead."
23778 msgstr ""
23779
23780 #. type: textblock
23781 #: ../src/guestfs-actions.pod:1538
23782 msgid ""
23783 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
23784 "oversight it only allowed 30 bit lengths to be specified, effectively "
23785 "limiting the maximum size of files created through that call to 1GB."
23786 msgstr ""
23787
23788 #. type: textblock
23789 #: ../src/guestfs-actions.pod:1549
23790 msgid "(Added in 1.3.17)"
23791 msgstr ""
23792
23793 #. type: =head2
23794 #: ../src/guestfs-actions.pod:1551
23795 msgid "guestfs_fgrep"
23796 msgstr ""
23797
23798 #. type: verbatim
23799 #: ../src/guestfs-actions.pod:1553
23800 #, no-wrap
23801 msgid ""
23802 " char **\n"
23803 " guestfs_fgrep (guestfs_h *g,\n"
23804 "                const char *pattern,\n"
23805 "                const char *path);\n"
23806 "\n"
23807 msgstr ""
23808
23809 #. type: =head2
23810 #: ../src/guestfs-actions.pod:1570
23811 msgid "guestfs_fgrepi"
23812 msgstr ""
23813
23814 #. type: verbatim
23815 #: ../src/guestfs-actions.pod:1572
23816 #, no-wrap
23817 msgid ""
23818 " char **\n"
23819 " guestfs_fgrepi (guestfs_h *g,\n"
23820 "                 const char *pattern,\n"
23821 "                 const char *path);\n"
23822 "\n"
23823 msgstr ""
23824
23825 #. type: =head2
23826 #: ../src/guestfs-actions.pod:1589
23827 msgid "guestfs_file"
23828 msgstr ""
23829
23830 #. type: verbatim
23831 #: ../src/guestfs-actions.pod:1591
23832 #, no-wrap
23833 msgid ""
23834 " char *\n"
23835 " guestfs_file (guestfs_h *g,\n"
23836 "               const char *path);\n"
23837 "\n"
23838 msgstr ""
23839
23840 #. type: textblock
23841 #: ../src/guestfs-actions.pod:1609
23842 msgid ""
23843 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
23844 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
23845 msgstr ""
23846
23847 #. type: =head2
23848 #: ../src/guestfs-actions.pod:1617
23849 msgid "guestfs_file_architecture"
23850 msgstr ""
23851
23852 #. type: verbatim
23853 #: ../src/guestfs-actions.pod:1619
23854 #, no-wrap
23855 msgid ""
23856 " char *\n"
23857 " guestfs_file_architecture (guestfs_h *g,\n"
23858 "                            const char *filename);\n"
23859 "\n"
23860 msgstr ""
23861
23862 #. type: textblock
23863 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
23864 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2608
23865 #: ../src/guestfs-actions.pod:2698 ../src/guestfs-actions.pod:2764
23866 #: ../src/guestfs-actions.pod:2951 ../src/guestfs-actions.pod:2969
23867 #: ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3084
23868 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3414
23869 #: ../src/guestfs-actions.pod:3546
23870 msgid "(Added in 1.5.3)"
23871 msgstr ""
23872
23873 #. type: =head2
23874 #: ../src/guestfs-actions.pod:1729
23875 msgid "guestfs_filesize"
23876 msgstr ""
23877
23878 #. type: verbatim
23879 #: ../src/guestfs-actions.pod:1731
23880 #, no-wrap
23881 msgid ""
23882 " int64_t\n"
23883 " guestfs_filesize (guestfs_h *g,\n"
23884 "                   const char *file);\n"
23885 "\n"
23886 msgstr ""
23887
23888 #. type: textblock
23889 #: ../src/guestfs-actions.pod:1737
23890 msgid ""
23891 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
23892 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
23893 "devices, use C<guestfs_blockdev_getsize64>."
23894 msgstr ""
23895
23896 #. type: textblock
23897 #: ../src/guestfs-actions.pod:1743
23898 msgid "(Added in 1.0.82)"
23899 msgstr ""
23900
23901 #. type: =head2
23902 #: ../src/guestfs-actions.pod:1745
23903 msgid "guestfs_fill"
23904 msgstr ""
23905
23906 #. type: verbatim
23907 #: ../src/guestfs-actions.pod:1747
23908 #, no-wrap
23909 msgid ""
23910 " int\n"
23911 " guestfs_fill (guestfs_h *g,\n"
23912 "               int c,\n"
23913 "               int len,\n"
23914 "               const char *path);\n"
23915 "\n"
23916 msgstr ""
23917
23918 #. type: textblock
23919 #: ../src/guestfs-actions.pod:1757
23920 msgid ""
23921 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23922 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
23923 "bytes use C<guestfs_fill_pattern>."
23924 msgstr ""
23925
23926 #. type: textblock
23927 #: ../src/guestfs-actions.pod:1769
23928 msgid "(Added in 1.0.79)"
23929 msgstr ""
23930
23931 #. type: =head2
23932 #: ../src/guestfs-actions.pod:1771
23933 msgid "guestfs_fill_pattern"
23934 msgstr ""
23935
23936 #. type: verbatim
23937 #: ../src/guestfs-actions.pod:1773
23938 #, no-wrap
23939 msgid ""
23940 " int\n"
23941 " guestfs_fill_pattern (guestfs_h *g,\n"
23942 "                       const char *pattern,\n"
23943 "                       int len,\n"
23944 "                       const char *path);\n"
23945 "\n"
23946 msgstr ""
23947
23948 #. type: textblock
23949 #: ../src/guestfs-actions.pod:1779
23950 msgid ""
23951 "This function is like C<guestfs_fill> except that it creates a new file of "
23952 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
23953 "pattern is truncated if necessary to ensure the length of the file is "
23954 "exactly C<len> bytes."
23955 msgstr ""
23956
23957 #. type: textblock
23958 #: ../src/guestfs-actions.pod:1791
23959 msgid "(Added in 1.3.12)"
23960 msgstr ""
23961
23962 #. type: =head2
23963 #: ../src/guestfs-actions.pod:1793
23964 msgid "guestfs_find"
23965 msgstr ""
23966
23967 #. type: verbatim
23968 #: ../src/guestfs-actions.pod:1795
23969 #, no-wrap
23970 msgid ""
23971 " char **\n"
23972 " guestfs_find (guestfs_h *g,\n"
23973 "               const char *directory);\n"
23974 "\n"
23975 msgstr ""
23976
23977 #. type: textblock
23978 #: ../src/guestfs-actions.pod:1811
23979 msgid ""
23980 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
23981 msgstr ""
23982
23983 #. type: textblock
23984 #: ../src/guestfs-actions.pod:1824
23985 msgid "See also C<guestfs_find0>."
23986 msgstr ""
23987
23988 #. type: textblock
23989 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4304
23990 #: ../src/guestfs-actions.pod:6014
23991 msgid "(Added in 1.0.27)"
23992 msgstr ""
23993
23994 #. type: =head2
23995 #: ../src/guestfs-actions.pod:1835
23996 msgid "guestfs_find0"
23997 msgstr ""
23998
23999 #. type: verbatim
24000 #: ../src/guestfs-actions.pod:1837
24001 #, no-wrap
24002 msgid ""
24003 " int\n"
24004 " guestfs_find0 (guestfs_h *g,\n"
24005 "                const char *directory,\n"
24006 "                const char *files);\n"
24007 "\n"
24008 msgstr ""
24009
24010 #. type: textblock
24011 #: ../src/guestfs-actions.pod:1846
24012 msgid ""
24013 "This command works the same way as C<guestfs_find> with the following "
24014 "exceptions:"
24015 msgstr ""
24016
24017 #. type: textblock
24018 #: ../src/guestfs-actions.pod:1873
24019 msgid "(Added in 1.0.74)"
24020 msgstr ""
24021
24022 #. type: =head2
24023 #: ../src/guestfs-actions.pod:1875
24024 msgid "guestfs_findfs_label"
24025 msgstr ""
24026
24027 #. type: verbatim
24028 #: ../src/guestfs-actions.pod:1877
24029 #, no-wrap
24030 msgid ""
24031 " char *\n"
24032 " guestfs_findfs_label (guestfs_h *g,\n"
24033 "                       const char *label);\n"
24034 "\n"
24035 msgstr ""
24036
24037 #. type: textblock
24038 #: ../src/guestfs-actions.pod:1885
24039 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
24040 msgstr ""
24041
24042 #. type: =head2
24043 #: ../src/guestfs-actions.pod:1892
24044 msgid "guestfs_findfs_uuid"
24045 msgstr ""
24046
24047 #. type: verbatim
24048 #: ../src/guestfs-actions.pod:1894
24049 #, no-wrap
24050 msgid ""
24051 " char *\n"
24052 " guestfs_findfs_uuid (guestfs_h *g,\n"
24053 "                      const char *uuid);\n"
24054 "\n"
24055 msgstr ""
24056
24057 #. type: textblock
24058 #: ../src/guestfs-actions.pod:1902
24059 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
24060 msgstr ""
24061
24062 #. type: =head2
24063 #: ../src/guestfs-actions.pod:1909
24064 msgid "guestfs_fsck"
24065 msgstr ""
24066
24067 #. type: verbatim
24068 #: ../src/guestfs-actions.pod:1911
24069 #, no-wrap
24070 msgid ""
24071 " int\n"
24072 " guestfs_fsck (guestfs_h *g,\n"
24073 "               const char *fstype,\n"
24074 "               const char *device);\n"
24075 "\n"
24076 msgstr ""
24077
24078 #. type: textblock
24079 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7789
24080 msgid "(Added in 1.0.16)"
24081 msgstr ""
24082
24083 #. type: =head2
24084 #: ../src/guestfs-actions.pod:1948
24085 msgid "guestfs_get_append"
24086 msgstr ""
24087
24088 #. type: verbatim
24089 #: ../src/guestfs-actions.pod:1950
24090 #, no-wrap
24091 msgid ""
24092 " const char *\n"
24093 " guestfs_get_append (guestfs_h *g);\n"
24094 "\n"
24095 msgstr ""
24096
24097 #. type: textblock
24098 #: ../src/guestfs-actions.pod:1958
24099 msgid ""
24100 "This function returns a string which may be NULL.  There is no way to return "
24101 "an error from this function.  The string is owned by the guest handle and "
24102 "must I<not> be freed."
24103 msgstr ""
24104
24105 #. type: textblock
24106 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5692
24107 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6616
24108 #: ../src/guestfs-actions.pod:6635 ../src/guestfs-actions.pod:6651
24109 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:7429
24110 #: ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7836
24111 msgid "(Added in 1.0.26)"
24112 msgstr ""
24113
24114 #. type: =head2
24115 #: ../src/guestfs-actions.pod:1964
24116 msgid "guestfs_get_attach_method"
24117 msgstr ""
24118
24119 #. type: verbatim
24120 #: ../src/guestfs-actions.pod:1966
24121 #, no-wrap
24122 msgid ""
24123 " char *\n"
24124 " guestfs_get_attach_method (guestfs_h *g);\n"
24125 "\n"
24126 msgstr ""
24127
24128 #. type: textblock
24129 #: ../src/guestfs-actions.pod:1969
24130 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
24131 msgstr ""
24132
24133 #. type: textblock
24134 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6204
24135 msgid "(Added in 1.9.8)"
24136 msgstr ""
24137
24138 #. type: =head2
24139 #: ../src/guestfs-actions.pod:1976
24140 msgid "guestfs_get_autosync"
24141 msgstr ""
24142
24143 #. type: verbatim
24144 #: ../src/guestfs-actions.pod:1978
24145 #, no-wrap
24146 msgid ""
24147 " int\n"
24148 " guestfs_get_autosync (guestfs_h *g);\n"
24149 "\n"
24150 msgstr ""
24151
24152 #. type: =head2
24153 #: ../src/guestfs-actions.pod:1987
24154 msgid "guestfs_get_direct"
24155 msgstr ""
24156
24157 #. type: verbatim
24158 #: ../src/guestfs-actions.pod:1989
24159 #, no-wrap
24160 msgid ""
24161 " int\n"
24162 " guestfs_get_direct (guestfs_h *g);\n"
24163 "\n"
24164 msgstr ""
24165
24166 #. type: textblock
24167 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6245
24168 msgid "(Added in 1.0.72)"
24169 msgstr ""
24170
24171 #. type: =head2
24172 #: ../src/guestfs-actions.pod:1998
24173 msgid "guestfs_get_e2label"
24174 msgstr ""
24175
24176 #. type: verbatim
24177 #: ../src/guestfs-actions.pod:2000
24178 #, no-wrap
24179 msgid ""
24180 " char *\n"
24181 " guestfs_get_e2label (guestfs_h *g,\n"
24182 "                      const char *device);\n"
24183 "\n"
24184 msgstr ""
24185
24186 #. type: textblock
24187 #: ../src/guestfs-actions.pod:2010
24188 msgid ""
24189 "This function is deprecated.  In new code, use the L</guestfs_vfs_label> "
24190 "call instead."
24191 msgstr ""
24192
24193 #. type: textblock
24194 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
24195 #: ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
24196 msgid "(Added in 1.0.15)"
24197 msgstr ""
24198
24199 #. type: =head2
24200 #: ../src/guestfs-actions.pod:2019
24201 msgid "guestfs_get_e2uuid"
24202 msgstr ""
24203
24204 #. type: verbatim
24205 #: ../src/guestfs-actions.pod:2021
24206 #, no-wrap
24207 msgid ""
24208 " char *\n"
24209 " guestfs_get_e2uuid (guestfs_h *g,\n"
24210 "                     const char *device);\n"
24211 "\n"
24212 msgstr ""
24213
24214 #. type: textblock
24215 #: ../src/guestfs-actions.pod:2031
24216 msgid ""
24217 "This function is deprecated.  In new code, use the L</guestfs_vfs_uuid> call "
24218 "instead."
24219 msgstr ""
24220
24221 #. type: =head2
24222 #: ../src/guestfs-actions.pod:2040
24223 msgid "guestfs_get_memsize"
24224 msgstr ""
24225
24226 #. type: verbatim
24227 #: ../src/guestfs-actions.pod:2042
24228 #, no-wrap
24229 msgid ""
24230 " int\n"
24231 " guestfs_get_memsize (guestfs_h *g);\n"
24232 "\n"
24233 msgstr ""
24234
24235 #. type: textblock
24236 #: ../src/guestfs-actions.pod:2048
24237 msgid ""
24238 "If C<guestfs_set_memsize> was not called on this handle, and if "
24239 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
24240 "value for memsize."
24241 msgstr ""
24242
24243 #. type: textblock
24244 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4595
24245 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4823
24246 #: ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4854
24247 #: ../src/guestfs-actions.pod:4871 ../src/guestfs-actions.pod:4884
24248 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6303
24249 #: ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:7198
24250 msgid "(Added in 1.0.55)"
24251 msgstr ""
24252
24253 #. type: =head2
24254 #: ../src/guestfs-actions.pod:2059
24255 msgid "guestfs_get_network"
24256 msgstr ""
24257
24258 #. type: verbatim
24259 #: ../src/guestfs-actions.pod:2061
24260 #, no-wrap
24261 msgid ""
24262 " int\n"
24263 " guestfs_get_network (guestfs_h *g);\n"
24264 "\n"
24265 msgstr ""
24266
24267 #. type: textblock
24268 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6322
24269 msgid "(Added in 1.5.4)"
24270 msgstr ""
24271
24272 #. type: =head2
24273 #: ../src/guestfs-actions.pod:2070
24274 msgid "guestfs_get_path"
24275 msgstr ""
24276
24277 #. type: verbatim
24278 #: ../src/guestfs-actions.pod:2072
24279 #, no-wrap
24280 msgid ""
24281 " const char *\n"
24282 " guestfs_get_path (guestfs_h *g);\n"
24283 "\n"
24284 msgstr ""
24285
24286 #. type: textblock
24287 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
24288 msgid ""
24289 "This function returns a string, or NULL on error.  The string is owned by "
24290 "the guest handle and must I<not> be freed."
24291 msgstr ""
24292
24293 #. type: =head2
24294 #: ../src/guestfs-actions.pod:2085
24295 msgid "guestfs_get_pgroup"
24296 msgstr ""
24297
24298 #. type: verbatim
24299 #: ../src/guestfs-actions.pod:2087
24300 #, no-wrap
24301 msgid ""
24302 " int\n"
24303 " guestfs_get_pgroup (guestfs_h *g);\n"
24304 "\n"
24305 msgstr ""
24306
24307 #. type: textblock
24308 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6358
24309 #: ../src/guestfs-actions.pod:7690
24310 msgid "(Added in 1.11.18)"
24311 msgstr ""
24312
24313 #. type: =head2
24314 #: ../src/guestfs-actions.pod:2096
24315 msgid "guestfs_get_pid"
24316 msgstr ""
24317
24318 #. type: verbatim
24319 #: ../src/guestfs-actions.pod:2098
24320 #, no-wrap
24321 msgid ""
24322 " int\n"
24323 " guestfs_get_pid (guestfs_h *g);\n"
24324 "\n"
24325 msgstr ""
24326
24327 #. type: textblock
24328 #: ../src/guestfs-actions.pod:2108
24329 msgid "(Added in 1.0.56)"
24330 msgstr ""
24331
24332 #. type: =head2
24333 #: ../src/guestfs-actions.pod:2110
24334 msgid "guestfs_get_qemu"
24335 msgstr ""
24336
24337 #. type: verbatim
24338 #: ../src/guestfs-actions.pod:2112
24339 #, no-wrap
24340 msgid ""
24341 " const char *\n"
24342 " guestfs_get_qemu (guestfs_h *g);\n"
24343 "\n"
24344 msgstr ""
24345
24346 #. type: textblock
24347 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6386
24348 msgid "(Added in 1.0.6)"
24349 msgstr ""
24350
24351 #. type: =head2
24352 #: ../src/guestfs-actions.pod:2125
24353 msgid "guestfs_get_recovery_proc"
24354 msgstr ""
24355
24356 #. type: verbatim
24357 #: ../src/guestfs-actions.pod:2127
24358 #, no-wrap
24359 msgid ""
24360 " int\n"
24361 " guestfs_get_recovery_proc (guestfs_h *g);\n"
24362 "\n"
24363 msgstr ""
24364
24365 #. type: textblock
24366 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3668
24367 #: ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4402
24368 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:5622
24369 #: ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6410
24370 #: ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7121
24371 #: ../src/guestfs-actions.pod:7313
24372 msgid "(Added in 1.0.77)"
24373 msgstr ""
24374
24375 #. type: =head2
24376 #: ../src/guestfs-actions.pod:2136
24377 msgid "guestfs_get_selinux"
24378 msgstr ""
24379
24380 #. type: verbatim
24381 #: ../src/guestfs-actions.pod:2138
24382 #, no-wrap
24383 msgid ""
24384 " int\n"
24385 " guestfs_get_selinux (guestfs_h *g);\n"
24386 "\n"
24387 msgstr ""
24388
24389 #. type: textblock
24390 #: ../src/guestfs-actions.pod:2141
24391 msgid ""
24392 "This returns the current setting of the selinux flag which is passed to the "
24393 "appliance at boot time.  See C<guestfs_set_selinux>."
24394 msgstr ""
24395
24396 #. type: textblock
24397 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
24398 #: ../src/guestfs-actions.pod:6429 ../src/guestfs-actions.pod:6487
24399 msgid "(Added in 1.0.67)"
24400 msgstr ""
24401
24402 #. type: =head2
24403 #: ../src/guestfs-actions.pod:2151
24404 msgid "guestfs_get_state"
24405 msgstr ""
24406
24407 #. type: verbatim
24408 #: ../src/guestfs-actions.pod:2153
24409 #, no-wrap
24410 msgid ""
24411 " int\n"
24412 " guestfs_get_state (guestfs_h *g);\n"
24413 "\n"
24414 msgstr ""
24415
24416 #. type: =head2
24417 #: ../src/guestfs-actions.pod:2165
24418 msgid "guestfs_get_trace"
24419 msgstr ""
24420
24421 #. type: verbatim
24422 #: ../src/guestfs-actions.pod:2167
24423 #, no-wrap
24424 msgid ""
24425 " int\n"
24426 " guestfs_get_trace (guestfs_h *g);\n"
24427 "\n"
24428 msgstr ""
24429
24430 #. type: =head2
24431 #: ../src/guestfs-actions.pod:2176
24432 msgid "guestfs_get_umask"
24433 msgstr ""
24434
24435 #. type: verbatim
24436 #: ../src/guestfs-actions.pod:2178
24437 #, no-wrap
24438 msgid ""
24439 " int\n"
24440 " guestfs_get_umask (guestfs_h *g);\n"
24441 "\n"
24442 msgstr ""
24443
24444 #. type: textblock
24445 #: ../src/guestfs-actions.pod:2181
24446 msgid ""
24447 "Return the current umask.  By default the umask is C<022> unless it has been "
24448 "set by calling C<guestfs_umask>."
24449 msgstr ""
24450
24451 #. type: =head2
24452 #: ../src/guestfs-actions.pod:2188
24453 msgid "guestfs_get_verbose"
24454 msgstr ""
24455
24456 #. type: verbatim
24457 #: ../src/guestfs-actions.pod:2190
24458 #, no-wrap
24459 msgid ""
24460 " int\n"
24461 " guestfs_get_verbose (guestfs_h *g);\n"
24462 "\n"
24463 msgstr ""
24464
24465 #. type: =head2
24466 #: ../src/guestfs-actions.pod:2199
24467 msgid "guestfs_getcon"
24468 msgstr ""
24469
24470 #. type: verbatim
24471 #: ../src/guestfs-actions.pod:2201
24472 #, no-wrap
24473 msgid ""
24474 " char *\n"
24475 " guestfs_getcon (guestfs_h *g);\n"
24476 "\n"
24477 msgstr ""
24478
24479 #. type: textblock
24480 #: ../src/guestfs-actions.pod:2206
24481 msgid ""
24482 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
24483 msgstr ""
24484
24485 #. type: =head2
24486 #: ../src/guestfs-actions.pod:2214
24487 msgid "guestfs_getxattr"
24488 msgstr ""
24489
24490 #. type: verbatim
24491 #: ../src/guestfs-actions.pod:2216
24492 #, no-wrap
24493 msgid ""
24494 " char *\n"
24495 " guestfs_getxattr (guestfs_h *g,\n"
24496 "                   const char *path,\n"
24497 "                   const char *name,\n"
24498 "                   size_t *size_r);\n"
24499 "\n"
24500 msgstr ""
24501
24502 #. type: textblock
24503 #: ../src/guestfs-actions.pod:2222
24504 msgid ""
24505 "Get a single extended attribute from file C<path> named C<name>.  This call "
24506 "follows symlinks.  If you want to lookup an extended attribute for the "
24507 "symlink itself, use C<guestfs_lgetxattr>."
24508 msgstr ""
24509
24510 #. type: textblock
24511 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
24512 msgid ""
24513 "Normally it is better to get all extended attributes from a file in one go "
24514 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
24515 "implementations are buggy and do not provide a way to list out attributes.  "
24516 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
24517 "extended attributes you want in advance and call this function."
24518 msgstr ""
24519
24520 #. type: textblock
24521 #: ../src/guestfs-actions.pod:2236
24522 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
24523 msgstr ""
24524
24525 #. type: textblock
24526 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2429
24527 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:3694
24528 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5641
24529 #: ../src/guestfs-actions.pod:5822
24530 msgid ""
24531 "This function returns a buffer, or NULL on error.  The size of the returned "
24532 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
24533 "after use>."
24534 msgstr ""
24535
24536 #. type: textblock
24537 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3698
24538 msgid "(Added in 1.7.24)"
24539 msgstr ""
24540
24541 #. type: =head2
24542 #: ../src/guestfs-actions.pod:2244
24543 msgid "guestfs_getxattrs"
24544 msgstr ""
24545
24546 #. type: verbatim
24547 #: ../src/guestfs-actions.pod:2246
24548 #, no-wrap
24549 msgid ""
24550 " struct guestfs_xattr_list *\n"
24551 " guestfs_getxattrs (guestfs_h *g,\n"
24552 "                    const char *path);\n"
24553 "\n"
24554 msgstr ""
24555
24556 #. type: textblock
24557 #: ../src/guestfs-actions.pod:2256
24558 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
24559 msgstr ""
24560
24561 #. type: textblock
24562 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3710
24563 #: ../src/guestfs-actions.pod:4398
24564 msgid ""
24565 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
24566 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
24567 msgstr ""
24568
24569 #. type: textblock
24570 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3714
24571 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3949
24572 #: ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6506
24573 #: ../src/guestfs-actions.pod:7901
24574 msgid "(Added in 1.0.59)"
24575 msgstr ""
24576
24577 #. type: =head2
24578 #: ../src/guestfs-actions.pod:2264
24579 msgid "guestfs_glob_expand"
24580 msgstr ""
24581
24582 #. type: verbatim
24583 #: ../src/guestfs-actions.pod:2266
24584 #, no-wrap
24585 msgid ""
24586 " char **\n"
24587 " guestfs_glob_expand (guestfs_h *g,\n"
24588 "                      const char *pattern);\n"
24589 "\n"
24590 msgstr ""
24591
24592 #. type: textblock
24593 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6699
24594 #: ../src/guestfs-actions.pod:6716
24595 msgid "(Added in 1.0.50)"
24596 msgstr ""
24597
24598 #. type: =head2
24599 #: ../src/guestfs-actions.pod:2287
24600 msgid "guestfs_grep"
24601 msgstr ""
24602
24603 #. type: verbatim
24604 #: ../src/guestfs-actions.pod:2289
24605 #, no-wrap
24606 msgid ""
24607 " char **\n"
24608 " guestfs_grep (guestfs_h *g,\n"
24609 "               const char *regex,\n"
24610 "               const char *path);\n"
24611 "\n"
24612 msgstr ""
24613
24614 #. type: =head2
24615 #: ../src/guestfs-actions.pod:2306
24616 msgid "guestfs_grepi"
24617 msgstr ""
24618
24619 #. type: verbatim
24620 #: ../src/guestfs-actions.pod:2308
24621 #, no-wrap
24622 msgid ""
24623 " char **\n"
24624 " guestfs_grepi (guestfs_h *g,\n"
24625 "                const char *regex,\n"
24626 "                const char *path);\n"
24627 "\n"
24628 msgstr ""
24629
24630 #. type: =head2
24631 #: ../src/guestfs-actions.pod:2325
24632 msgid "guestfs_grub_install"
24633 msgstr ""
24634
24635 #. type: verbatim
24636 #: ../src/guestfs-actions.pod:2327
24637 #, no-wrap
24638 msgid ""
24639 " int\n"
24640 " guestfs_grub_install (guestfs_h *g,\n"
24641 "                       const char *root,\n"
24642 "                       const char *device);\n"
24643 "\n"
24644 msgstr ""
24645
24646 #. type: textblock
24647 #: ../src/guestfs-actions.pod:2348
24648 msgid "(Added in 1.0.17)"
24649 msgstr ""
24650
24651 #. type: =head2
24652 #: ../src/guestfs-actions.pod:2350
24653 msgid "guestfs_head"
24654 msgstr ""
24655
24656 #. type: verbatim
24657 #: ../src/guestfs-actions.pod:2352
24658 #, no-wrap
24659 msgid ""
24660 " char **\n"
24661 " guestfs_head (guestfs_h *g,\n"
24662 "               const char *path);\n"
24663 "\n"
24664 msgstr ""
24665
24666 #. type: =head2
24667 #: ../src/guestfs-actions.pod:2368
24668 msgid "guestfs_head_n"
24669 msgstr ""
24670
24671 #. type: verbatim
24672 #: ../src/guestfs-actions.pod:2370
24673 #, no-wrap
24674 msgid ""
24675 " char **\n"
24676 " guestfs_head_n (guestfs_h *g,\n"
24677 "                 int nrlines,\n"
24678 "                 const char *path);\n"
24679 "\n"
24680 msgstr ""
24681
24682 #. type: =head2
24683 #: ../src/guestfs-actions.pod:2392
24684 msgid "guestfs_hexdump"
24685 msgstr ""
24686
24687 #. type: verbatim
24688 #: ../src/guestfs-actions.pod:2394
24689 #, no-wrap
24690 msgid ""
24691 " char *\n"
24692 " guestfs_hexdump (guestfs_h *g,\n"
24693 "                  const char *path);\n"
24694 "\n"
24695 msgstr ""
24696
24697 #. type: textblock
24698 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6780
24699 #: ../src/guestfs-actions.pod:6835
24700 msgid "(Added in 1.0.22)"
24701 msgstr ""
24702
24703 #. type: =head2
24704 #: ../src/guestfs-actions.pod:2409
24705 msgid "guestfs_initrd_cat"
24706 msgstr ""
24707
24708 #. type: verbatim
24709 #: ../src/guestfs-actions.pod:2411
24710 #, no-wrap
24711 msgid ""
24712 " char *\n"
24713 " guestfs_initrd_cat (guestfs_h *g,\n"
24714 "                     const char *initrdpath,\n"
24715 "                     const char *filename,\n"
24716 "                     size_t *size_r);\n"
24717 "\n"
24718 msgstr ""
24719
24720 #. type: textblock
24721 #: ../src/guestfs-actions.pod:2427
24722 msgid "See also C<guestfs_initrd_list>."
24723 msgstr ""
24724
24725 #. type: =head2
24726 #: ../src/guestfs-actions.pod:2438
24727 msgid "guestfs_initrd_list"
24728 msgstr ""
24729
24730 #. type: verbatim
24731 #: ../src/guestfs-actions.pod:2440
24732 #, no-wrap
24733 msgid ""
24734 " char **\n"
24735 " guestfs_initrd_list (guestfs_h *g,\n"
24736 "                      const char *path);\n"
24737 "\n"
24738 msgstr ""
24739
24740 #. type: =head2
24741 #: ../src/guestfs-actions.pod:2460
24742 msgid "guestfs_inotify_add_watch"
24743 msgstr ""
24744
24745 #. type: verbatim
24746 #: ../src/guestfs-actions.pod:2462
24747 #, no-wrap
24748 msgid ""
24749 " int64_t\n"
24750 " guestfs_inotify_add_watch (guestfs_h *g,\n"
24751 "                            const char *path,\n"
24752 "                            int mask);\n"
24753 "\n"
24754 msgstr ""
24755
24756 #. type: =head2
24757 #: ../src/guestfs-actions.pod:2481
24758 msgid "guestfs_inotify_close"
24759 msgstr ""
24760
24761 #. type: verbatim
24762 #: ../src/guestfs-actions.pod:2483
24763 #, no-wrap
24764 msgid ""
24765 " int\n"
24766 " guestfs_inotify_close (guestfs_h *g);\n"
24767 "\n"
24768 msgstr ""
24769
24770 #. type: =head2
24771 #: ../src/guestfs-actions.pod:2494
24772 msgid "guestfs_inotify_files"
24773 msgstr ""
24774
24775 #. type: verbatim
24776 #: ../src/guestfs-actions.pod:2496
24777 #, no-wrap
24778 msgid ""
24779 " char **\n"
24780 " guestfs_inotify_files (guestfs_h *g);\n"
24781 "\n"
24782 msgstr ""
24783
24784 #. type: textblock
24785 #: ../src/guestfs-actions.pod:2499
24786 msgid ""
24787 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
24788 "returns a list of pathnames of objects that were touched.  The returned "
24789 "pathnames are sorted and deduplicated."
24790 msgstr ""
24791
24792 #. type: =head2
24793 #: ../src/guestfs-actions.pod:2509
24794 msgid "guestfs_inotify_init"
24795 msgstr ""
24796
24797 #. type: verbatim
24798 #: ../src/guestfs-actions.pod:2511
24799 #, no-wrap
24800 msgid ""
24801 " int\n"
24802 " guestfs_inotify_init (guestfs_h *g,\n"
24803 "                       int maxevents);\n"
24804 "\n"
24805 msgstr ""
24806
24807 #. type: textblock
24808 #: ../src/guestfs-actions.pod:2519
24809 msgid ""
24810 "C<maxevents> is the maximum number of events which will be queued up between "
24811 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
24812 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
24813 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
24814 "throws away events, but records the fact that it threw them away by setting "
24815 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
24816 "C<guestfs_inotify_read>)."
24817 msgstr ""
24818
24819 #. type: textblock
24820 #: ../src/guestfs-actions.pod:2529
24821 msgid ""
24822 "Before any events are generated, you have to add some watches to the "
24823 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
24824 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
24825 msgstr ""
24826
24827 #. type: textblock
24828 #: ../src/guestfs-actions.pod:2535
24829 msgid ""
24830 "Queued up events should be read periodically by calling "
24831 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
24832 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
24833 "often enough then you risk the internal queue overflowing."
24834 msgstr ""
24835
24836 #. type: textblock
24837 #: ../src/guestfs-actions.pod:2542
24838 msgid ""
24839 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
24840 "This also removes any watches automatically."
24841 msgstr ""
24842
24843 #. type: =head2
24844 #: ../src/guestfs-actions.pod:2555
24845 msgid "guestfs_inotify_read"
24846 msgstr ""
24847
24848 #. type: verbatim
24849 #: ../src/guestfs-actions.pod:2557
24850 #, no-wrap
24851 msgid ""
24852 " struct guestfs_inotify_event_list *\n"
24853 " guestfs_inotify_read (guestfs_h *g);\n"
24854 "\n"
24855 msgstr ""
24856
24857 #. type: textblock
24858 #: ../src/guestfs-actions.pod:2571
24859 msgid ""
24860 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
24861 "there was an error.  I<The caller must call "
24862 "C<guestfs_free_inotify_event_list> after use>."
24863 msgstr ""
24864
24865 #. type: =head2
24866 #: ../src/guestfs-actions.pod:2577
24867 msgid "guestfs_inotify_rm_watch"
24868 msgstr ""
24869
24870 #. type: verbatim
24871 #: ../src/guestfs-actions.pod:2579
24872 #, no-wrap
24873 msgid ""
24874 " int\n"
24875 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
24876 "                           int wd);\n"
24877 "\n"
24878 msgstr ""
24879
24880 #. type: textblock
24881 #: ../src/guestfs-actions.pod:2583
24882 msgid ""
24883 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
24884 msgstr ""
24885
24886 #. type: =head2
24887 #: ../src/guestfs-actions.pod:2590
24888 msgid "guestfs_inspect_get_arch"
24889 msgstr ""
24890
24891 #. type: verbatim
24892 #: ../src/guestfs-actions.pod:2592
24893 #, no-wrap
24894 msgid ""
24895 " char *\n"
24896 " guestfs_inspect_get_arch (guestfs_h *g,\n"
24897 "                           const char *root);\n"
24898 "\n"
24899 msgstr ""
24900
24901 #. type: textblock
24902 #: ../src/guestfs-actions.pod:2596
24903 msgid ""
24904 "This returns the architecture of the inspected operating system.  The "
24905 "possible return values are listed under C<guestfs_file_architecture>."
24906 msgstr ""
24907
24908 #. type: =head2
24909 #: ../src/guestfs-actions.pod:2610
24910 msgid "guestfs_inspect_get_distro"
24911 msgstr ""
24912
24913 #. type: verbatim
24914 #: ../src/guestfs-actions.pod:2612
24915 #, no-wrap
24916 msgid ""
24917 " char *\n"
24918 " guestfs_inspect_get_distro (guestfs_h *g,\n"
24919 "                             const char *root);\n"
24920 "\n"
24921 msgstr ""
24922
24923 #. type: =head2
24924 #: ../src/guestfs-actions.pod:2700
24925 msgid "guestfs_inspect_get_drive_mappings"
24926 msgstr ""
24927
24928 #. type: verbatim
24929 #: ../src/guestfs-actions.pod:2702
24930 #, no-wrap
24931 msgid ""
24932 " char **\n"
24933 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
24934 "                                     const char *root);\n"
24935 "\n"
24936 msgstr ""
24937
24938 #. type: textblock
24939 #: ../src/guestfs-actions.pod:2731
24940 msgid ""
24941 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24942 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
24943 msgstr ""
24944
24945 #. type: textblock
24946 #: ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:3003
24947 #: ../src/guestfs-actions.pod:3801 ../src/guestfs-actions.pod:5083
24948 #: ../src/guestfs-actions.pod:7137
24949 msgid ""
24950 "This function returns a NULL-terminated array of strings, or NULL if there "
24951 "was an error.  The array of strings will always have length C<2n+1>, where "
24952 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
24953 "caller must free the strings and the array after use>."
24954 msgstr ""
24955
24956 #. type: textblock
24957 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:3197
24958 msgid "(Added in 1.9.17)"
24959 msgstr ""
24960
24961 #. type: =head2
24962 #: ../src/guestfs-actions.pod:2743
24963 msgid "guestfs_inspect_get_filesystems"
24964 msgstr ""
24965
24966 #. type: verbatim
24967 #: ../src/guestfs-actions.pod:2745
24968 #, no-wrap
24969 msgid ""
24970 " char **\n"
24971 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
24972 "                                  const char *root);\n"
24973 "\n"
24974 msgstr ""
24975
24976 #. type: textblock
24977 #: ../src/guestfs-actions.pod:2757
24978 msgid ""
24979 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24980 "C<guestfs_inspect_get_mountpoints>."
24981 msgstr ""
24982
24983 #. type: =head2
24984 #: ../src/guestfs-actions.pod:2766
24985 msgid "guestfs_inspect_get_format"
24986 msgstr ""
24987
24988 #. type: verbatim
24989 #: ../src/guestfs-actions.pod:2768
24990 #, no-wrap
24991 msgid ""
24992 " char *\n"
24993 " guestfs_inspect_get_format (guestfs_h *g,\n"
24994 "                             const char *root);\n"
24995 "\n"
24996 msgstr ""
24997
24998 #. type: textblock
24999 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:3233
25000 #: ../src/guestfs-actions.pod:3249 ../src/guestfs-actions.pod:3267
25001 #: ../src/guestfs-actions.pod:6033
25002 msgid "(Added in 1.9.4)"
25003 msgstr ""
25004
25005 #. type: =head2
25006 #: ../src/guestfs-actions.pod:2804
25007 msgid "guestfs_inspect_get_hostname"
25008 msgstr ""
25009
25010 #. type: verbatim
25011 #: ../src/guestfs-actions.pod:2806
25012 #, no-wrap
25013 msgid ""
25014 " char *\n"
25015 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
25016 "                               const char *root);\n"
25017 "\n"
25018 msgstr ""
25019
25020 #. type: textblock
25021 #: ../src/guestfs-actions.pod:2821
25022 msgid "(Added in 1.7.9)"
25023 msgstr ""
25024
25025 #. type: =head2
25026 #: ../src/guestfs-actions.pod:2823
25027 msgid "guestfs_inspect_get_icon"
25028 msgstr ""
25029
25030 #. type: verbatim
25031 #: ../src/guestfs-actions.pod:2825
25032 #, no-wrap
25033 msgid ""
25034 " char *\n"
25035 " guestfs_inspect_get_icon (guestfs_h *g,\n"
25036 "                           const char *root,\n"
25037 "                           size_t *size_r,\n"
25038 "                           ...);\n"
25039 "\n"
25040 msgstr ""
25041
25042 #. type: verbatim
25043 #: ../src/guestfs-actions.pod:2836
25044 #, no-wrap
25045 msgid ""
25046 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
25047 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
25048 "\n"
25049 msgstr ""
25050
25051 #. type: textblock
25052 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3728
25053 #: ../src/guestfs-actions.pod:4982
25054 msgid "(Added in 1.11.12)"
25055 msgstr ""
25056
25057 #. type: =head2
25058 #: ../src/guestfs-actions.pod:2905
25059 msgid "guestfs_inspect_get_icon_va"
25060 msgstr ""
25061
25062 #. type: verbatim
25063 #: ../src/guestfs-actions.pod:2907
25064 #, no-wrap
25065 msgid ""
25066 " char *\n"
25067 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
25068 "                              const char *root,\n"
25069 "                              size_t *size_r,\n"
25070 "                              va_list args);\n"
25071 "\n"
25072 msgstr ""
25073
25074 #. type: textblock
25075 #: ../src/guestfs-actions.pod:2913
25076 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
25077 msgstr ""
25078
25079 #. type: =head2
25080 #: ../src/guestfs-actions.pod:2917
25081 msgid "guestfs_inspect_get_icon_argv"
25082 msgstr ""
25083
25084 #. type: verbatim
25085 #: ../src/guestfs-actions.pod:2919
25086 #, no-wrap
25087 msgid ""
25088 " char *\n"
25089 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
25090 "                                const char *root,\n"
25091 "                                size_t *size_r,\n"
25092 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
25093 "\n"
25094 msgstr ""
25095
25096 #. type: textblock
25097 #: ../src/guestfs-actions.pod:2925
25098 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
25099 msgstr ""
25100
25101 #. type: =head2
25102 #: ../src/guestfs-actions.pod:2929
25103 msgid "guestfs_inspect_get_major_version"
25104 msgstr ""
25105
25106 #. type: verbatim
25107 #: ../src/guestfs-actions.pod:2931
25108 #, no-wrap
25109 msgid ""
25110 " int\n"
25111 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
25112 "                                    const char *root);\n"
25113 "\n"
25114 msgstr ""
25115
25116 #. type: =head2
25117 #: ../src/guestfs-actions.pod:2953
25118 msgid "guestfs_inspect_get_minor_version"
25119 msgstr ""
25120
25121 #. type: verbatim
25122 #: ../src/guestfs-actions.pod:2955
25123 #, no-wrap
25124 msgid ""
25125 " int\n"
25126 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
25127 "                                    const char *root);\n"
25128 "\n"
25129 msgstr ""
25130
25131 #. type: textblock
25132 #: ../src/guestfs-actions.pod:2964
25133 msgid ""
25134 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25135 "C<guestfs_inspect_get_major_version>."
25136 msgstr ""
25137
25138 #. type: =head2
25139 #: ../src/guestfs-actions.pod:2971
25140 msgid "guestfs_inspect_get_mountpoints"
25141 msgstr ""
25142
25143 #. type: verbatim
25144 #: ../src/guestfs-actions.pod:2973
25145 #, no-wrap
25146 msgid ""
25147 " char **\n"
25148 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
25149 "                                  const char *root);\n"
25150 "\n"
25151 msgstr ""
25152
25153 #. type: textblock
25154 #: ../src/guestfs-actions.pod:2994
25155 msgid ""
25156 "For operating systems like Windows which still use drive letters, this call "
25157 "will only return an entry for the first drive \"mounted on\" C</>.  For "
25158 "information about the mapping of drive letters to partitions, see "
25159 "C<guestfs_inspect_get_drive_mappings>."
25160 msgstr ""
25161
25162 #. type: textblock
25163 #: ../src/guestfs-actions.pod:3000
25164 msgid ""
25165 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25166 "C<guestfs_inspect_get_filesystems>."
25167 msgstr ""
25168
25169 #. type: =head2
25170 #: ../src/guestfs-actions.pod:3011
25171 msgid "guestfs_inspect_get_package_format"
25172 msgstr ""
25173
25174 #. type: verbatim
25175 #: ../src/guestfs-actions.pod:3013
25176 #, no-wrap
25177 msgid ""
25178 " char *\n"
25179 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
25180 "                                     const char *root);\n"
25181 "\n"
25182 msgstr ""
25183
25184 #. type: textblock
25185 #: ../src/guestfs-actions.pod:3017
25186 msgid ""
25187 "This function and C<guestfs_inspect_get_package_management> return the "
25188 "package format and package management tool used by the inspected operating "
25189 "system.  For example for Fedora these functions would return C<rpm> (package "
25190 "format) and C<yum> (package management)."
25191 msgstr ""
25192
25193 #. type: textblock
25194 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3063
25195 msgid "(Added in 1.7.5)"
25196 msgstr ""
25197
25198 #. type: =head2
25199 #: ../src/guestfs-actions.pod:3037
25200 msgid "guestfs_inspect_get_package_management"
25201 msgstr ""
25202
25203 #. type: verbatim
25204 #: ../src/guestfs-actions.pod:3039
25205 #, no-wrap
25206 msgid ""
25207 " char *\n"
25208 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
25209 "                                         const char *root);\n"
25210 "\n"
25211 msgstr ""
25212
25213 #. type: textblock
25214 #: ../src/guestfs-actions.pod:3043
25215 msgid ""
25216 "C<guestfs_inspect_get_package_format> and this function return the package "
25217 "format and package management tool used by the inspected operating system.  "
25218 "For example for Fedora these functions would return C<rpm> (package format) "
25219 "and C<yum> (package management)."
25220 msgstr ""
25221
25222 #. type: =head2
25223 #: ../src/guestfs-actions.pod:3065
25224 msgid "guestfs_inspect_get_product_name"
25225 msgstr ""
25226
25227 #. type: verbatim
25228 #: ../src/guestfs-actions.pod:3067
25229 #, no-wrap
25230 msgid ""
25231 " char *\n"
25232 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
25233 "                                   const char *root);\n"
25234 "\n"
25235 msgstr ""
25236
25237 #. type: =head2
25238 #: ../src/guestfs-actions.pod:3086
25239 msgid "guestfs_inspect_get_product_variant"
25240 msgstr ""
25241
25242 #. type: verbatim
25243 #: ../src/guestfs-actions.pod:3088
25244 #, no-wrap
25245 msgid ""
25246 " char *\n"
25247 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
25248 "                                      const char *root);\n"
25249 "\n"
25250 msgstr ""
25251
25252 #. type: textblock
25253 #: ../src/guestfs-actions.pod:3111
25254 msgid ""
25255 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25256 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
25257 msgstr ""
25258
25259 #. type: textblock
25260 #: ../src/guestfs-actions.pod:3118
25261 msgid "(Added in 1.9.13)"
25262 msgstr ""
25263
25264 #. type: =head2
25265 #: ../src/guestfs-actions.pod:3120
25266 msgid "guestfs_inspect_get_roots"
25267 msgstr ""
25268
25269 #. type: verbatim
25270 #: ../src/guestfs-actions.pod:3122
25271 #, no-wrap
25272 msgid ""
25273 " char **\n"
25274 " guestfs_inspect_get_roots (guestfs_h *g);\n"
25275 "\n"
25276 msgstr ""
25277
25278 #. type: textblock
25279 #: ../src/guestfs-actions.pod:3125
25280 msgid ""
25281 "This function is a convenient way to get the list of root devices, as "
25282 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
25283 "the whole inspection process."
25284 msgstr ""
25285
25286 #. type: textblock
25287 #: ../src/guestfs-actions.pod:3129
25288 msgid ""
25289 "This returns an empty list if either no root devices were found or the "
25290 "caller has not called C<guestfs_inspect_os>."
25291 msgstr ""
25292
25293 #. type: textblock
25294 #: ../src/guestfs-actions.pod:3138
25295 msgid "(Added in 1.7.3)"
25296 msgstr ""
25297
25298 #. type: =head2
25299 #: ../src/guestfs-actions.pod:3140
25300 msgid "guestfs_inspect_get_type"
25301 msgstr ""
25302
25303 #. type: verbatim
25304 #: ../src/guestfs-actions.pod:3142
25305 #, no-wrap
25306 msgid ""
25307 " char *\n"
25308 " guestfs_inspect_get_type (guestfs_h *g,\n"
25309 "                           const char *root);\n"
25310 "\n"
25311 msgstr ""
25312
25313 #. type: =head2
25314 #: ../src/guestfs-actions.pod:3179
25315 msgid "guestfs_inspect_get_windows_current_control_set"
25316 msgstr ""
25317
25318 #. type: verbatim
25319 #: ../src/guestfs-actions.pod:3181
25320 #, no-wrap
25321 msgid ""
25322 " char *\n"
25323 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
25324 "                                                  const char *root);\n"
25325 "\n"
25326 msgstr ""
25327
25328 #. type: =head2
25329 #: ../src/guestfs-actions.pod:3199
25330 msgid "guestfs_inspect_get_windows_systemroot"
25331 msgstr ""
25332
25333 #. type: verbatim
25334 #: ../src/guestfs-actions.pod:3201
25335 #, no-wrap
25336 msgid ""
25337 " char *\n"
25338 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
25339 "                                         const char *root);\n"
25340 "\n"
25341 msgstr ""
25342
25343 #. type: textblock
25344 #: ../src/guestfs-actions.pod:3217
25345 msgid "(Added in 1.5.25)"
25346 msgstr ""
25347
25348 #. type: =head2
25349 #: ../src/guestfs-actions.pod:3219
25350 msgid "guestfs_inspect_is_live"
25351 msgstr ""
25352
25353 #. type: verbatim
25354 #: ../src/guestfs-actions.pod:3221
25355 #, no-wrap
25356 msgid ""
25357 " int\n"
25358 " guestfs_inspect_is_live (guestfs_h *g,\n"
25359 "                          const char *root);\n"
25360 "\n"
25361 msgstr ""
25362
25363 #. type: textblock
25364 #: ../src/guestfs-actions.pod:3225
25365 msgid ""
25366 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25367 "disk), then this returns true if a live image was detected on the disk."
25368 msgstr ""
25369
25370 #. type: =head2
25371 #: ../src/guestfs-actions.pod:3235
25372 msgid "guestfs_inspect_is_multipart"
25373 msgstr ""
25374
25375 #. type: verbatim
25376 #: ../src/guestfs-actions.pod:3237
25377 #, no-wrap
25378 msgid ""
25379 " int\n"
25380 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
25381 "                               const char *root);\n"
25382 "\n"
25383 msgstr ""
25384
25385 #. type: textblock
25386 #: ../src/guestfs-actions.pod:3241
25387 msgid ""
25388 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25389 "disk), then this returns true if the disk is part of a set."
25390 msgstr ""
25391
25392 #. type: =head2
25393 #: ../src/guestfs-actions.pod:3251
25394 msgid "guestfs_inspect_is_netinst"
25395 msgstr ""
25396
25397 #. type: verbatim
25398 #: ../src/guestfs-actions.pod:3253
25399 #, no-wrap
25400 msgid ""
25401 " int\n"
25402 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
25403 "                             const char *root);\n"
25404 "\n"
25405 msgstr ""
25406
25407 #. type: textblock
25408 #: ../src/guestfs-actions.pod:3257
25409 msgid ""
25410 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25411 "disk), then this returns true if the disk is a network installer, ie. not a "
25412 "self-contained install CD but one which is likely to require network access "
25413 "to complete the install."
25414 msgstr ""
25415
25416 #. type: =head2
25417 #: ../src/guestfs-actions.pod:3269
25418 msgid "guestfs_inspect_list_applications"
25419 msgstr ""
25420
25421 #. type: verbatim
25422 #: ../src/guestfs-actions.pod:3271
25423 #, no-wrap
25424 msgid ""
25425 " struct guestfs_application_list *\n"
25426 " guestfs_inspect_list_applications (guestfs_h *g,\n"
25427 "                                    const char *root);\n"
25428 "\n"
25429 msgstr ""
25430
25431 #. type: textblock
25432 #: ../src/guestfs-actions.pod:3277
25433 msgid ""
25434 "I<Note:> This call works differently from other parts of the inspection "
25435 "API.  You have to call C<guestfs_inspect_os>, then "
25436 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
25437 "this.  Listing applications is a significantly more difficult operation "
25438 "which requires access to the full filesystem.  Also note that unlike the "
25439 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
25440 "the libguestfs handle, this call actually reads parts of the mounted "
25441 "filesystems during the call."
25442 msgstr ""
25443
25444 #. type: textblock
25445 #: ../src/guestfs-actions.pod:3367
25446 msgid ""
25447 "This function returns a C<struct guestfs_application_list *>, or NULL if "
25448 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
25449 "after use>."
25450 msgstr ""
25451
25452 #. type: textblock
25453 #: ../src/guestfs-actions.pod:3371
25454 msgid "(Added in 1.7.8)"
25455 msgstr ""
25456
25457 #. type: =head2
25458 #: ../src/guestfs-actions.pod:3373
25459 msgid "guestfs_inspect_os"
25460 msgstr ""
25461
25462 #. type: verbatim
25463 #: ../src/guestfs-actions.pod:3375
25464 #, no-wrap
25465 msgid ""
25466 " char **\n"
25467 " guestfs_inspect_os (guestfs_h *g);\n"
25468 "\n"
25469 msgstr ""
25470
25471 #. type: textblock
25472 #: ../src/guestfs-actions.pod:3391
25473 msgid ""
25474 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
25475 "functions in order to query further information about each operating system, "
25476 "such as the name and version."
25477 msgstr ""
25478
25479 #. type: textblock
25480 #: ../src/guestfs-actions.pod:3396
25481 msgid ""
25482 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
25483 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
25484 "the contents.  This should be called with no disks currently mounted.  The "
25485 "function may also use Augeas, so any existing Augeas handle will be closed."
25486 msgstr ""
25487
25488 #. type: textblock
25489 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3739
25490 #: ../src/guestfs-actions.pod:3821
25491 msgid "See also C<guestfs_list_filesystems>."
25492 msgstr ""
25493
25494 #. type: =head2
25495 #: ../src/guestfs-actions.pod:3416
25496 msgid "guestfs_is_blockdev"
25497 msgstr ""
25498
25499 #. type: verbatim
25500 #: ../src/guestfs-actions.pod:3418
25501 #, no-wrap
25502 msgid ""
25503 " int\n"
25504 " guestfs_is_blockdev (guestfs_h *g,\n"
25505 "                      const char *path);\n"
25506 "\n"
25507 msgstr ""
25508
25509 #. type: textblock
25510 #: ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:3454
25511 #: ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3499
25512 #: ../src/guestfs-actions.pod:3515 ../src/guestfs-actions.pod:3571
25513 #: ../src/guestfs-actions.pod:3586
25514 msgid "See also C<guestfs_stat>."
25515 msgstr ""
25516
25517 #. type: textblock
25518 #: ../src/guestfs-actions.pod:3429 ../src/guestfs-actions.pod:3458
25519 #: ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3575
25520 #: ../src/guestfs-actions.pod:3590
25521 msgid "(Added in 1.5.10)"
25522 msgstr ""
25523
25524 #. type: =head2
25525 #: ../src/guestfs-actions.pod:3431
25526 msgid "guestfs_is_busy"
25527 msgstr ""
25528
25529 #. type: verbatim
25530 #: ../src/guestfs-actions.pod:3433
25531 #, no-wrap
25532 msgid ""
25533 " int\n"
25534 " guestfs_is_busy (guestfs_h *g);\n"
25535 "\n"
25536 msgstr ""
25537
25538 #. type: =head2
25539 #: ../src/guestfs-actions.pod:3445
25540 msgid "guestfs_is_chardev"
25541 msgstr ""
25542
25543 #. type: verbatim
25544 #: ../src/guestfs-actions.pod:3447
25545 #, no-wrap
25546 msgid ""
25547 " int\n"
25548 " guestfs_is_chardev (guestfs_h *g,\n"
25549 "                     const char *path);\n"
25550 "\n"
25551 msgstr ""
25552
25553 #. type: =head2
25554 #: ../src/guestfs-actions.pod:3460
25555 msgid "guestfs_is_config"
25556 msgstr ""
25557
25558 #. type: verbatim
25559 #: ../src/guestfs-actions.pod:3462
25560 #, no-wrap
25561 msgid ""
25562 " int\n"
25563 " guestfs_is_config (guestfs_h *g);\n"
25564 "\n"
25565 msgstr ""
25566
25567 #. type: =head2
25568 #: ../src/guestfs-actions.pod:3474
25569 msgid "guestfs_is_dir"
25570 msgstr ""
25571
25572 #. type: verbatim
25573 #: ../src/guestfs-actions.pod:3476
25574 #, no-wrap
25575 msgid ""
25576 " int\n"
25577 " guestfs_is_dir (guestfs_h *g,\n"
25578 "                 const char *path);\n"
25579 "\n"
25580 msgstr ""
25581
25582 #. type: =head2
25583 #: ../src/guestfs-actions.pod:3490
25584 msgid "guestfs_is_fifo"
25585 msgstr ""
25586
25587 #. type: verbatim
25588 #: ../src/guestfs-actions.pod:3492
25589 #, no-wrap
25590 msgid ""
25591 " int\n"
25592 " guestfs_is_fifo (guestfs_h *g,\n"
25593 "                  const char *path);\n"
25594 "\n"
25595 msgstr ""
25596
25597 #. type: =head2
25598 #: ../src/guestfs-actions.pod:3505
25599 msgid "guestfs_is_file"
25600 msgstr ""
25601
25602 #. type: verbatim
25603 #: ../src/guestfs-actions.pod:3507
25604 #, no-wrap
25605 msgid ""
25606 " int\n"
25607 " guestfs_is_file (guestfs_h *g,\n"
25608 "                  const char *path);\n"
25609 "\n"
25610 msgstr ""
25611
25612 #. type: =head2
25613 #: ../src/guestfs-actions.pod:3521
25614 msgid "guestfs_is_launching"
25615 msgstr ""
25616
25617 #. type: verbatim
25618 #: ../src/guestfs-actions.pod:3523
25619 #, no-wrap
25620 msgid ""
25621 " int\n"
25622 " guestfs_is_launching (guestfs_h *g);\n"
25623 "\n"
25624 msgstr ""
25625
25626 #. type: =head2
25627 #: ../src/guestfs-actions.pod:3535
25628 msgid "guestfs_is_lv"
25629 msgstr ""
25630
25631 #. type: verbatim
25632 #: ../src/guestfs-actions.pod:3537
25633 #, no-wrap
25634 msgid ""
25635 " int\n"
25636 " guestfs_is_lv (guestfs_h *g,\n"
25637 "                const char *device);\n"
25638 "\n"
25639 msgstr ""
25640
25641 #. type: =head2
25642 #: ../src/guestfs-actions.pod:3548
25643 msgid "guestfs_is_ready"
25644 msgstr ""
25645
25646 #. type: verbatim
25647 #: ../src/guestfs-actions.pod:3550
25648 #, no-wrap
25649 msgid ""
25650 " int\n"
25651 " guestfs_is_ready (guestfs_h *g);\n"
25652 "\n"
25653 msgstr ""
25654
25655 #. type: =head2
25656 #: ../src/guestfs-actions.pod:3562
25657 msgid "guestfs_is_socket"
25658 msgstr ""
25659
25660 #. type: verbatim
25661 #: ../src/guestfs-actions.pod:3564
25662 #, no-wrap
25663 msgid ""
25664 " int\n"
25665 " guestfs_is_socket (guestfs_h *g,\n"
25666 "                    const char *path);\n"
25667 "\n"
25668 msgstr ""
25669
25670 #. type: =head2
25671 #: ../src/guestfs-actions.pod:3577
25672 msgid "guestfs_is_symlink"
25673 msgstr ""
25674
25675 #. type: verbatim
25676 #: ../src/guestfs-actions.pod:3579
25677 #, no-wrap
25678 msgid ""
25679 " int\n"
25680 " guestfs_is_symlink (guestfs_h *g,\n"
25681 "                     const char *path);\n"
25682 "\n"
25683 msgstr ""
25684
25685 #. type: =head2
25686 #: ../src/guestfs-actions.pod:3592
25687 msgid "guestfs_is_zero"
25688 msgstr ""
25689
25690 #. type: verbatim
25691 #: ../src/guestfs-actions.pod:3594
25692 #, no-wrap
25693 msgid ""
25694 " int\n"
25695 " guestfs_is_zero (guestfs_h *g,\n"
25696 "                  const char *path);\n"
25697 "\n"
25698 msgstr ""
25699
25700 #. type: textblock
25701 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3617
25702 msgid "(Added in 1.11.8)"
25703 msgstr ""
25704
25705 #. type: =head2
25706 #: ../src/guestfs-actions.pod:3605
25707 msgid "guestfs_is_zero_device"
25708 msgstr ""
25709
25710 #. type: verbatim
25711 #: ../src/guestfs-actions.pod:3607
25712 #, no-wrap
25713 msgid ""
25714 " int\n"
25715 " guestfs_is_zero_device (guestfs_h *g,\n"
25716 "                         const char *device);\n"
25717 "\n"
25718 msgstr ""
25719
25720 #. type: =head2
25721 #: ../src/guestfs-actions.pod:3619
25722 msgid "guestfs_kill_subprocess"
25723 msgstr ""
25724
25725 #. type: verbatim
25726 #: ../src/guestfs-actions.pod:3621
25727 #, no-wrap
25728 msgid ""
25729 " int\n"
25730 " guestfs_kill_subprocess (guestfs_h *g);\n"
25731 "\n"
25732 msgstr ""
25733
25734 #. type: =head2
25735 #: ../src/guestfs-actions.pod:3630
25736 msgid "guestfs_launch"
25737 msgstr ""
25738
25739 #. type: verbatim
25740 #: ../src/guestfs-actions.pod:3632
25741 #, no-wrap
25742 msgid ""
25743 " int\n"
25744 " guestfs_launch (guestfs_h *g);\n"
25745 "\n"
25746 msgstr ""
25747
25748 #. type: =head2
25749 #: ../src/guestfs-actions.pod:3650
25750 msgid "guestfs_lchown"
25751 msgstr ""
25752
25753 #. type: verbatim
25754 #: ../src/guestfs-actions.pod:3652
25755 #, no-wrap
25756 msgid ""
25757 " int\n"
25758 " guestfs_lchown (guestfs_h *g,\n"
25759 "                 int owner,\n"
25760 "                 int group,\n"
25761 "                 const char *path);\n"
25762 "\n"
25763 msgstr ""
25764
25765 #. type: textblock
25766 #: ../src/guestfs-actions.pod:3658
25767 msgid ""
25768 "Change the file owner to C<owner> and group to C<group>.  This is like "
25769 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
25770 "changed, not the target."
25771 msgstr ""
25772
25773 #. type: =head2
25774 #: ../src/guestfs-actions.pod:3670
25775 msgid "guestfs_lgetxattr"
25776 msgstr ""
25777
25778 #. type: verbatim
25779 #: ../src/guestfs-actions.pod:3672
25780 #, no-wrap
25781 msgid ""
25782 " char *\n"
25783 " guestfs_lgetxattr (guestfs_h *g,\n"
25784 "                    const char *path,\n"
25785 "                    const char *name,\n"
25786 "                    size_t *size_r);\n"
25787 "\n"
25788 msgstr ""
25789
25790 #. type: textblock
25791 #: ../src/guestfs-actions.pod:3692
25792 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
25793 msgstr ""
25794
25795 #. type: =head2
25796 #: ../src/guestfs-actions.pod:3700
25797 msgid "guestfs_lgetxattrs"
25798 msgstr ""
25799
25800 #. type: verbatim
25801 #: ../src/guestfs-actions.pod:3702
25802 #, no-wrap
25803 msgid ""
25804 " struct guestfs_xattr_list *\n"
25805 " guestfs_lgetxattrs (guestfs_h *g,\n"
25806 "                     const char *path);\n"
25807 "\n"
25808 msgstr ""
25809
25810 #. type: textblock
25811 #: ../src/guestfs-actions.pod:3706
25812 msgid ""
25813 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
25814 "then it returns the extended attributes of the link itself."
25815 msgstr ""
25816
25817 #. type: =head2
25818 #: ../src/guestfs-actions.pod:3716
25819 msgid "guestfs_list_9p"
25820 msgstr ""
25821
25822 #. type: verbatim
25823 #: ../src/guestfs-actions.pod:3718
25824 #, no-wrap
25825 msgid ""
25826 " char **\n"
25827 " guestfs_list_9p (guestfs_h *g);\n"
25828 "\n"
25829 msgstr ""
25830
25831 #. type: =head2
25832 #: ../src/guestfs-actions.pod:3730
25833 msgid "guestfs_list_devices"
25834 msgstr ""
25835
25836 #. type: verbatim
25837 #: ../src/guestfs-actions.pod:3732
25838 #, no-wrap
25839 msgid ""
25840 " char **\n"
25841 " guestfs_list_devices (guestfs_h *g);\n"
25842 "\n"
25843 msgstr ""
25844
25845 #. type: =head2
25846 #: ../src/guestfs-actions.pod:3747
25847 msgid "guestfs_list_dm_devices"
25848 msgstr ""
25849
25850 #. type: verbatim
25851 #: ../src/guestfs-actions.pod:3749
25852 #, no-wrap
25853 msgid ""
25854 " char **\n"
25855 " guestfs_list_dm_devices (guestfs_h *g);\n"
25856 "\n"
25857 msgstr ""
25858
25859 #. type: textblock
25860 #: ../src/guestfs-actions.pod:3754
25861 msgid ""
25862 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
25863 "previous call to C<guestfs_luks_open>."
25864 msgstr ""
25865
25866 #. type: textblock
25867 #: ../src/guestfs-actions.pod:3757
25868 msgid ""
25869 "Device mapper devices which correspond to logical volumes are I<not> "
25870 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
25871 "volumes."
25872 msgstr ""
25873
25874 #. type: textblock
25875 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:5221
25876 msgid "(Added in 1.11.15)"
25877 msgstr ""
25878
25879 #. type: =head2
25880 #: ../src/guestfs-actions.pod:3767
25881 msgid "guestfs_list_filesystems"
25882 msgstr ""
25883
25884 #. type: verbatim
25885 #: ../src/guestfs-actions.pod:3769
25886 #, no-wrap
25887 msgid ""
25888 " char **\n"
25889 " guestfs_list_filesystems (guestfs_h *g);\n"
25890 "\n"
25891 msgstr ""
25892
25893 #. type: textblock
25894 #: ../src/guestfs-actions.pod:3789
25895 msgid ""
25896 "This command runs other libguestfs commands, which might include "
25897 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
25898 "soon after launch and only when nothing is mounted."
25899 msgstr ""
25900
25901 #. type: textblock
25902 #: ../src/guestfs-actions.pod:3793
25903 msgid ""
25904 "Not all of the filesystems returned will be mountable.  In particular, swap "
25905 "partitions are returned in the list.  Also this command does not check that "
25906 "each filesystem found is valid and mountable, and some filesystems might be "
25907 "mountable but require special options.  Filesystems may not all belong to a "
25908 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
25909 msgstr ""
25910
25911 #. type: textblock
25912 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:5582
25913 msgid "(Added in 1.5.15)"
25914 msgstr ""
25915
25916 #. type: =head2
25917 #: ../src/guestfs-actions.pod:3809
25918 msgid "guestfs_list_partitions"
25919 msgstr ""
25920
25921 #. type: verbatim
25922 #: ../src/guestfs-actions.pod:3811
25923 #, no-wrap
25924 msgid ""
25925 " char **\n"
25926 " guestfs_list_partitions (guestfs_h *g);\n"
25927 "\n"
25928 msgstr ""
25929
25930 #. type: textblock
25931 #: ../src/guestfs-actions.pod:3818
25932 msgid ""
25933 "This does not return logical volumes.  For that you will need to call "
25934 "C<guestfs_lvs>."
25935 msgstr ""
25936
25937 #. type: =head2
25938 #: ../src/guestfs-actions.pod:3829
25939 msgid "guestfs_ll"
25940 msgstr ""
25941
25942 #. type: verbatim
25943 #: ../src/guestfs-actions.pod:3831
25944 #, no-wrap
25945 msgid ""
25946 " char *\n"
25947 " guestfs_ll (guestfs_h *g,\n"
25948 "             const char *directory);\n"
25949 "\n"
25950 msgstr ""
25951
25952 #. type: =head2
25953 #: ../src/guestfs-actions.pod:3846
25954 msgid "guestfs_ln"
25955 msgstr ""
25956
25957 #. type: verbatim
25958 #: ../src/guestfs-actions.pod:3848
25959 #, no-wrap
25960 msgid ""
25961 " int\n"
25962 " guestfs_ln (guestfs_h *g,\n"
25963 "             const char *target,\n"
25964 "             const char *linkname);\n"
25965 "\n"
25966 msgstr ""
25967
25968 #. type: =head2
25969 #: ../src/guestfs-actions.pod:3859
25970 msgid "guestfs_ln_f"
25971 msgstr ""
25972
25973 #. type: verbatim
25974 #: ../src/guestfs-actions.pod:3861
25975 #, no-wrap
25976 msgid ""
25977 " int\n"
25978 " guestfs_ln_f (guestfs_h *g,\n"
25979 "               const char *target,\n"
25980 "               const char *linkname);\n"
25981 "\n"
25982 msgstr ""
25983
25984 #. type: =head2
25985 #: ../src/guestfs-actions.pod:3873
25986 msgid "guestfs_ln_s"
25987 msgstr ""
25988
25989 #. type: verbatim
25990 #: ../src/guestfs-actions.pod:3875
25991 #, no-wrap
25992 msgid ""
25993 " int\n"
25994 " guestfs_ln_s (guestfs_h *g,\n"
25995 "               const char *target,\n"
25996 "               const char *linkname);\n"
25997 "\n"
25998 msgstr ""
25999
26000 #. type: =head2
26001 #: ../src/guestfs-actions.pod:3886
26002 msgid "guestfs_ln_sf"
26003 msgstr ""
26004
26005 #. type: verbatim
26006 #: ../src/guestfs-actions.pod:3888
26007 #, no-wrap
26008 msgid ""
26009 " int\n"
26010 " guestfs_ln_sf (guestfs_h *g,\n"
26011 "                const char *target,\n"
26012 "                const char *linkname);\n"
26013 "\n"
26014 msgstr ""
26015
26016 #. type: =head2
26017 #: ../src/guestfs-actions.pod:3900
26018 msgid "guestfs_lremovexattr"
26019 msgstr ""
26020
26021 #. type: verbatim
26022 #: ../src/guestfs-actions.pod:3902
26023 #, no-wrap
26024 msgid ""
26025 " int\n"
26026 " guestfs_lremovexattr (guestfs_h *g,\n"
26027 "                       const char *xattr,\n"
26028 "                       const char *path);\n"
26029 "\n"
26030 msgstr ""
26031
26032 #. type: textblock
26033 #: ../src/guestfs-actions.pod:3907
26034 msgid ""
26035 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
26036 "link, then it removes an extended attribute of the link itself."
26037 msgstr ""
26038
26039 #. type: =head2
26040 #: ../src/guestfs-actions.pod:3915
26041 msgid "guestfs_ls"
26042 msgstr ""
26043
26044 #. type: verbatim
26045 #: ../src/guestfs-actions.pod:3917
26046 #, no-wrap
26047 msgid ""
26048 " char **\n"
26049 " guestfs_ls (guestfs_h *g,\n"
26050 "             const char *directory);\n"
26051 "\n"
26052 msgstr ""
26053
26054 #. type: textblock
26055 #: ../src/guestfs-actions.pod:3925
26056 msgid ""
26057 "This command is mostly useful for interactive sessions.  Programs should "
26058 "probably use C<guestfs_readdir> instead."
26059 msgstr ""
26060
26061 #. type: =head2
26062 #: ../src/guestfs-actions.pod:3934
26063 msgid "guestfs_lsetxattr"
26064 msgstr ""
26065
26066 #. type: verbatim
26067 #: ../src/guestfs-actions.pod:3936
26068 #, no-wrap
26069 msgid ""
26070 " int\n"
26071 " guestfs_lsetxattr (guestfs_h *g,\n"
26072 "                    const char *xattr,\n"
26073 "                    const char *val,\n"
26074 "                    int vallen,\n"
26075 "                    const char *path);\n"
26076 "\n"
26077 msgstr ""
26078
26079 #. type: textblock
26080 #: ../src/guestfs-actions.pod:3943
26081 msgid ""
26082 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
26083 "then it sets an extended attribute of the link itself."
26084 msgstr ""
26085
26086 #. type: =head2
26087 #: ../src/guestfs-actions.pod:3951
26088 msgid "guestfs_lstat"
26089 msgstr ""
26090
26091 #. type: verbatim
26092 #: ../src/guestfs-actions.pod:3953
26093 #, no-wrap
26094 msgid ""
26095 " struct guestfs_stat *\n"
26096 " guestfs_lstat (guestfs_h *g,\n"
26097 "                const char *path);\n"
26098 "\n"
26099 msgstr ""
26100
26101 #. type: textblock
26102 #: ../src/guestfs-actions.pod:3959
26103 msgid ""
26104 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
26105 "link, then the link is stat-ed, not the file it refers to."
26106 msgstr ""
26107
26108 #. type: textblock
26109 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:6740
26110 msgid ""
26111 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
26112 "error.  I<The caller must call C<guestfs_free_stat> after use>."
26113 msgstr ""
26114
26115 #. type: textblock
26116 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:6744
26117 #: ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:7143
26118 msgid "(Added in 0.9.2)"
26119 msgstr ""
26120
26121 #. type: =head2
26122 #: ../src/guestfs-actions.pod:3971
26123 msgid "guestfs_lstatlist"
26124 msgstr ""
26125
26126 #. type: verbatim
26127 #: ../src/guestfs-actions.pod:3973
26128 #, no-wrap
26129 msgid ""
26130 " struct guestfs_stat_list *\n"
26131 " guestfs_lstatlist (guestfs_h *g,\n"
26132 "                    const char *path,\n"
26133 "                    char *const *names);\n"
26134 "\n"
26135 msgstr ""
26136
26137 #. type: textblock
26138 #: ../src/guestfs-actions.pod:3978
26139 msgid ""
26140 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
26141 "files, where all files are in the directory C<path>.  C<names> is the list "
26142 "of files from this directory."
26143 msgstr ""
26144
26145 #. type: textblock
26146 #: ../src/guestfs-actions.pod:3987
26147 msgid ""
26148 "This call is intended for programs that want to efficiently list a directory "
26149 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
26150 "for a similarly efficient call for getting extended attributes.  Very long "
26151 "directory listings might cause the protocol message size to be exceeded, "
26152 "causing this call to fail.  The caller must split up such requests into "
26153 "smaller groups of names."
26154 msgstr ""
26155
26156 #. type: textblock
26157 #: ../src/guestfs-actions.pod:3995
26158 msgid ""
26159 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
26160 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
26161 msgstr ""
26162
26163 #. type: =head2
26164 #: ../src/guestfs-actions.pod:4001
26165 msgid "guestfs_luks_add_key"
26166 msgstr ""
26167
26168 #. type: verbatim
26169 #: ../src/guestfs-actions.pod:4003
26170 #, no-wrap
26171 msgid ""
26172 " int\n"
26173 " guestfs_luks_add_key (guestfs_h *g,\n"
26174 "                       const char *device,\n"
26175 "                       const char *key,\n"
26176 "                       const char *newkey,\n"
26177 "                       int keyslot);\n"
26178 "\n"
26179 msgstr ""
26180
26181 #. type: textblock
26182 #: ../src/guestfs-actions.pod:4015
26183 msgid ""
26184 "Note that if C<keyslot> already contains a key, then this command will "
26185 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
26186 msgstr ""
26187
26188 #. type: textblock
26189 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4061
26190 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4104
26191 #: ../src/guestfs-actions.pod:4139 ../src/guestfs-actions.pod:4158
26192 msgid ""
26193 "This function takes a key or passphrase parameter which could contain "
26194 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
26195 "information."
26196 msgstr ""
26197
26198 #. type: textblock
26199 #: ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4065
26200 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4108
26201 msgid "(Added in 1.5.2)"
26202 msgstr ""
26203
26204 #. type: =head2
26205 #: ../src/guestfs-actions.pod:4027
26206 msgid "guestfs_luks_close"
26207 msgstr ""
26208
26209 #. type: verbatim
26210 #: ../src/guestfs-actions.pod:4029
26211 #, no-wrap
26212 msgid ""
26213 " int\n"
26214 " guestfs_luks_close (guestfs_h *g,\n"
26215 "                     const char *device);\n"
26216 "\n"
26217 msgstr ""
26218
26219 #. type: textblock
26220 #: ../src/guestfs-actions.pod:4033
26221 msgid ""
26222 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
26223 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
26224 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
26225 "underlying block device."
26226 msgstr ""
26227
26228 #. type: textblock
26229 #: ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4143
26230 #: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4212
26231 #: ../src/guestfs-actions.pod:4260
26232 msgid "(Added in 1.5.1)"
26233 msgstr ""
26234
26235 #. type: =head2
26236 #: ../src/guestfs-actions.pod:4043
26237 msgid "guestfs_luks_format"
26238 msgstr ""
26239
26240 #. type: verbatim
26241 #: ../src/guestfs-actions.pod:4045
26242 #, no-wrap
26243 msgid ""
26244 " int\n"
26245 " guestfs_luks_format (guestfs_h *g,\n"
26246 "                      const char *device,\n"
26247 "                      const char *key,\n"
26248 "                      int keyslot);\n"
26249 "\n"
26250 msgstr ""
26251
26252 #. type: =head2
26253 #: ../src/guestfs-actions.pod:4067
26254 msgid "guestfs_luks_format_cipher"
26255 msgstr ""
26256
26257 #. type: verbatim
26258 #: ../src/guestfs-actions.pod:4069
26259 #, no-wrap
26260 msgid ""
26261 " int\n"
26262 " guestfs_luks_format_cipher (guestfs_h *g,\n"
26263 "                             const char *device,\n"
26264 "                             const char *key,\n"
26265 "                             int keyslot,\n"
26266 "                             const char *cipher);\n"
26267 "\n"
26268 msgstr ""
26269
26270 #. type: textblock
26271 #: ../src/guestfs-actions.pod:4076
26272 msgid ""
26273 "This command is the same as C<guestfs_luks_format> but it also allows you to "
26274 "set the C<cipher> used."
26275 msgstr ""
26276
26277 #. type: =head2
26278 #: ../src/guestfs-actions.pod:4090
26279 msgid "guestfs_luks_kill_slot"
26280 msgstr ""
26281
26282 #. type: verbatim
26283 #: ../src/guestfs-actions.pod:4092
26284 #, no-wrap
26285 msgid ""
26286 " int\n"
26287 " guestfs_luks_kill_slot (guestfs_h *g,\n"
26288 "                         const char *device,\n"
26289 "                         const char *key,\n"
26290 "                         int keyslot);\n"
26291 "\n"
26292 msgstr ""
26293
26294 #. type: =head2
26295 #: ../src/guestfs-actions.pod:4110
26296 msgid "guestfs_luks_open"
26297 msgstr ""
26298
26299 #. type: verbatim
26300 #: ../src/guestfs-actions.pod:4112
26301 #, no-wrap
26302 msgid ""
26303 " int\n"
26304 " guestfs_luks_open (guestfs_h *g,\n"
26305 "                    const char *device,\n"
26306 "                    const char *key,\n"
26307 "                    const char *mapname);\n"
26308 "\n"
26309 msgstr ""
26310
26311 #. type: textblock
26312 #: ../src/guestfs-actions.pod:4130
26313 msgid ""
26314 "If this block device contains LVM volume groups, then calling "
26315 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
26316 "visible."
26317 msgstr ""
26318
26319 #. type: textblock
26320 #: ../src/guestfs-actions.pod:4134
26321 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
26322 msgstr ""
26323
26324 #. type: =head2
26325 #: ../src/guestfs-actions.pod:4145
26326 msgid "guestfs_luks_open_ro"
26327 msgstr ""
26328
26329 #. type: verbatim
26330 #: ../src/guestfs-actions.pod:4147
26331 #, no-wrap
26332 msgid ""
26333 " int\n"
26334 " guestfs_luks_open_ro (guestfs_h *g,\n"
26335 "                       const char *device,\n"
26336 "                       const char *key,\n"
26337 "                       const char *mapname);\n"
26338 "\n"
26339 msgstr ""
26340
26341 #. type: textblock
26342 #: ../src/guestfs-actions.pod:4153
26343 msgid ""
26344 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
26345 "created."
26346 msgstr ""
26347
26348 #. type: =head2
26349 #: ../src/guestfs-actions.pod:4164
26350 msgid "guestfs_lvcreate"
26351 msgstr ""
26352
26353 #. type: verbatim
26354 #: ../src/guestfs-actions.pod:4166
26355 #, no-wrap
26356 msgid ""
26357 " int\n"
26358 " guestfs_lvcreate (guestfs_h *g,\n"
26359 "                   const char *logvol,\n"
26360 "                   const char *volgroup,\n"
26361 "                   int mbytes);\n"
26362 "\n"
26363 msgstr ""
26364
26365 #. type: =head2
26366 #: ../src/guestfs-actions.pod:4179
26367 msgid "guestfs_lvm_canonical_lv_name"
26368 msgstr ""
26369
26370 #. type: verbatim
26371 #: ../src/guestfs-actions.pod:4181
26372 #, no-wrap
26373 msgid ""
26374 " char *\n"
26375 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
26376 "                                const char *lvname);\n"
26377 "\n"
26378 msgstr ""
26379
26380 #. type: textblock
26381 #: ../src/guestfs-actions.pod:4192
26382 msgid "See also C<guestfs_is_lv>."
26383 msgstr ""
26384
26385 #. type: textblock
26386 #: ../src/guestfs-actions.pod:4197
26387 msgid "(Added in 1.5.24)"
26388 msgstr ""
26389
26390 #. type: =head2
26391 #: ../src/guestfs-actions.pod:4199
26392 msgid "guestfs_lvm_clear_filter"
26393 msgstr ""
26394
26395 #. type: verbatim
26396 #: ../src/guestfs-actions.pod:4201
26397 #, no-wrap
26398 msgid ""
26399 " int\n"
26400 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
26401 "\n"
26402 msgstr ""
26403
26404 #. type: textblock
26405 #: ../src/guestfs-actions.pod:4204
26406 msgid ""
26407 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
26408 "see every block device."
26409 msgstr ""
26410
26411 #. type: =head2
26412 #: ../src/guestfs-actions.pod:4214
26413 msgid "guestfs_lvm_remove_all"
26414 msgstr ""
26415
26416 #. type: verbatim
26417 #: ../src/guestfs-actions.pod:4216
26418 #, no-wrap
26419 msgid ""
26420 " int\n"
26421 " guestfs_lvm_remove_all (guestfs_h *g);\n"
26422 "\n"
26423 msgstr ""
26424
26425 #. type: =head2
26426 #: ../src/guestfs-actions.pod:4229
26427 msgid "guestfs_lvm_set_filter"
26428 msgstr ""
26429
26430 #. type: verbatim
26431 #: ../src/guestfs-actions.pod:4231
26432 #, no-wrap
26433 msgid ""
26434 " int\n"
26435 " guestfs_lvm_set_filter (guestfs_h *g,\n"
26436 "                         char *const *devices);\n"
26437 "\n"
26438 msgstr ""
26439
26440 #. type: =head2
26441 #: ../src/guestfs-actions.pod:4262
26442 msgid "guestfs_lvremove"
26443 msgstr ""
26444
26445 #. type: verbatim
26446 #: ../src/guestfs-actions.pod:4264
26447 #, no-wrap
26448 msgid ""
26449 " int\n"
26450 " guestfs_lvremove (guestfs_h *g,\n"
26451 "                   const char *device);\n"
26452 "\n"
26453 msgstr ""
26454
26455 #. type: textblock
26456 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:5679
26457 #: ../src/guestfs-actions.pod:7513
26458 msgid "(Added in 1.0.13)"
26459 msgstr ""
26460
26461 #. type: =head2
26462 #: ../src/guestfs-actions.pod:4278
26463 msgid "guestfs_lvrename"
26464 msgstr ""
26465
26466 #. type: verbatim
26467 #: ../src/guestfs-actions.pod:4280
26468 #, no-wrap
26469 msgid ""
26470 " int\n"
26471 " guestfs_lvrename (guestfs_h *g,\n"
26472 "                   const char *logvol,\n"
26473 "                   const char *newlogvol);\n"
26474 "\n"
26475 msgstr ""
26476
26477 #. type: textblock
26478 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:7526
26479 msgid "(Added in 1.0.83)"
26480 msgstr ""
26481
26482 #. type: =head2
26483 #: ../src/guestfs-actions.pod:4291
26484 msgid "guestfs_lvresize"
26485 msgstr ""
26486
26487 #. type: verbatim
26488 #: ../src/guestfs-actions.pod:4293
26489 #, no-wrap
26490 msgid ""
26491 " int\n"
26492 " guestfs_lvresize (guestfs_h *g,\n"
26493 "                   const char *device,\n"
26494 "                   int mbytes);\n"
26495 "\n"
26496 msgstr ""
26497
26498 #. type: =head2
26499 #: ../src/guestfs-actions.pod:4306
26500 msgid "guestfs_lvresize_free"
26501 msgstr ""
26502
26503 #. type: verbatim
26504 #: ../src/guestfs-actions.pod:4308
26505 #, no-wrap
26506 msgid ""
26507 " int\n"
26508 " guestfs_lvresize_free (guestfs_h *g,\n"
26509 "                        const char *lv,\n"
26510 "                        int percent);\n"
26511 "\n"
26512 msgstr ""
26513
26514 #. type: textblock
26515 #: ../src/guestfs-actions.pod:4321
26516 msgid "(Added in 1.3.3)"
26517 msgstr ""
26518
26519 #. type: =head2
26520 #: ../src/guestfs-actions.pod:4323
26521 msgid "guestfs_lvs"
26522 msgstr ""
26523
26524 #. type: verbatim
26525 #: ../src/guestfs-actions.pod:4325
26526 #, no-wrap
26527 msgid ""
26528 " char **\n"
26529 " guestfs_lvs (guestfs_h *g);\n"
26530 "\n"
26531 msgstr ""
26532
26533 #. type: textblock
26534 #: ../src/guestfs-actions.pod:4334
26535 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
26536 msgstr ""
26537
26538 #. type: =head2
26539 #: ../src/guestfs-actions.pod:4342
26540 msgid "guestfs_lvs_full"
26541 msgstr ""
26542
26543 #. type: verbatim
26544 #: ../src/guestfs-actions.pod:4344
26545 #, no-wrap
26546 msgid ""
26547 " struct guestfs_lvm_lv_list *\n"
26548 " guestfs_lvs_full (guestfs_h *g);\n"
26549 "\n"
26550 msgstr ""
26551
26552 #. type: textblock
26553 #: ../src/guestfs-actions.pod:4350
26554 msgid ""
26555 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
26556 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
26557 msgstr ""
26558
26559 #. type: =head2
26560 #: ../src/guestfs-actions.pod:4356
26561 msgid "guestfs_lvuuid"
26562 msgstr ""
26563
26564 #. type: verbatim
26565 #: ../src/guestfs-actions.pod:4358
26566 #, no-wrap
26567 msgid ""
26568 " char *\n"
26569 " guestfs_lvuuid (guestfs_h *g,\n"
26570 "                 const char *device);\n"
26571 "\n"
26572 msgstr ""
26573
26574 #. type: =head2
26575 #: ../src/guestfs-actions.pod:4369
26576 msgid "guestfs_lxattrlist"
26577 msgstr ""
26578
26579 #. type: verbatim
26580 #: ../src/guestfs-actions.pod:4371
26581 #, no-wrap
26582 msgid ""
26583 " struct guestfs_xattr_list *\n"
26584 " guestfs_lxattrlist (guestfs_h *g,\n"
26585 "                     const char *path,\n"
26586 "                     char *const *names);\n"
26587 "\n"
26588 msgstr ""
26589
26590 #. type: textblock
26591 #: ../src/guestfs-actions.pod:4390
26592 msgid ""
26593 "This call is intended for programs that want to efficiently list a directory "
26594 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
26595 "a similarly efficient call for getting standard stats.  Very long directory "
26596 "listings might cause the protocol message size to be exceeded, causing this "
26597 "call to fail.  The caller must split up such requests into smaller groups of "
26598 "names."
26599 msgstr ""
26600
26601 #. type: =head2
26602 #: ../src/guestfs-actions.pod:4404
26603 msgid "guestfs_mkdir"
26604 msgstr ""
26605
26606 #. type: verbatim
26607 #: ../src/guestfs-actions.pod:4406
26608 #, no-wrap
26609 msgid ""
26610 " int\n"
26611 " guestfs_mkdir (guestfs_h *g,\n"
26612 "                const char *path);\n"
26613 "\n"
26614 msgstr ""
26615
26616 #. type: =head2
26617 #: ../src/guestfs-actions.pod:4416
26618 msgid "guestfs_mkdir_mode"
26619 msgstr ""
26620
26621 #. type: verbatim
26622 #: ../src/guestfs-actions.pod:4418
26623 #, no-wrap
26624 msgid ""
26625 " int\n"
26626 " guestfs_mkdir_mode (guestfs_h *g,\n"
26627 "                     const char *path,\n"
26628 "                     int mode);\n"
26629 "\n"
26630 msgstr ""
26631
26632 #. type: textblock
26633 #: ../src/guestfs-actions.pod:4430
26634 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
26635 msgstr ""
26636
26637 #. type: =head2
26638 #: ../src/guestfs-actions.pod:4436
26639 msgid "guestfs_mkdir_p"
26640 msgstr ""
26641
26642 #. type: verbatim
26643 #: ../src/guestfs-actions.pod:4438
26644 #, no-wrap
26645 msgid ""
26646 " int\n"
26647 " guestfs_mkdir_p (guestfs_h *g,\n"
26648 "                  const char *path);\n"
26649 "\n"
26650 msgstr ""
26651
26652 #. type: =head2
26653 #: ../src/guestfs-actions.pod:4449
26654 msgid "guestfs_mkdtemp"
26655 msgstr ""
26656
26657 #. type: verbatim
26658 #: ../src/guestfs-actions.pod:4451
26659 #, no-wrap
26660 msgid ""
26661 " char *\n"
26662 " guestfs_mkdtemp (guestfs_h *g,\n"
26663 "                  const char *template);\n"
26664 "\n"
26665 msgstr ""
26666
26667 #. type: =head2
26668 #: ../src/guestfs-actions.pod:4479
26669 msgid "guestfs_mke2fs_J"
26670 msgstr ""
26671
26672 #. type: verbatim
26673 #: ../src/guestfs-actions.pod:4481
26674 #, no-wrap
26675 msgid ""
26676 " int\n"
26677 " guestfs_mke2fs_J (guestfs_h *g,\n"
26678 "                   const char *fstype,\n"
26679 "                   int blocksize,\n"
26680 "                   const char *device,\n"
26681 "                   const char *journal);\n"
26682 "\n"
26683 msgstr ""
26684
26685 #. type: textblock
26686 #: ../src/guestfs-actions.pod:4494
26687 msgid "See also C<guestfs_mke2journal>."
26688 msgstr ""
26689
26690 #. type: textblock
26691 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4516
26692 #: ../src/guestfs-actions.pod:4534 ../src/guestfs-actions.pod:4550
26693 #: ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4578
26694 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4914
26695 msgid "(Added in 1.0.68)"
26696 msgstr ""
26697
26698 #. type: =head2
26699 #: ../src/guestfs-actions.pod:4500
26700 msgid "guestfs_mke2fs_JL"
26701 msgstr ""
26702
26703 #. type: verbatim
26704 #: ../src/guestfs-actions.pod:4502
26705 #, no-wrap
26706 msgid ""
26707 " int\n"
26708 " guestfs_mke2fs_JL (guestfs_h *g,\n"
26709 "                    const char *fstype,\n"
26710 "                    int blocksize,\n"
26711 "                    const char *device,\n"
26712 "                    const char *label);\n"
26713 "\n"
26714 msgstr ""
26715
26716 #. type: textblock
26717 #: ../src/guestfs-actions.pod:4512
26718 msgid "See also C<guestfs_mke2journal_L>."
26719 msgstr ""
26720
26721 #. type: =head2
26722 #: ../src/guestfs-actions.pod:4518
26723 msgid "guestfs_mke2fs_JU"
26724 msgstr ""
26725
26726 #. type: verbatim
26727 #: ../src/guestfs-actions.pod:4520
26728 #, no-wrap
26729 msgid ""
26730 " int\n"
26731 " guestfs_mke2fs_JU (guestfs_h *g,\n"
26732 "                    const char *fstype,\n"
26733 "                    int blocksize,\n"
26734 "                    const char *device,\n"
26735 "                    const char *uuid);\n"
26736 "\n"
26737 msgstr ""
26738
26739 #. type: textblock
26740 #: ../src/guestfs-actions.pod:4530
26741 msgid "See also C<guestfs_mke2journal_U>."
26742 msgstr ""
26743
26744 #. type: =head2
26745 #: ../src/guestfs-actions.pod:4536
26746 msgid "guestfs_mke2journal"
26747 msgstr ""
26748
26749 #. type: verbatim
26750 #: ../src/guestfs-actions.pod:4538
26751 #, no-wrap
26752 msgid ""
26753 " int\n"
26754 " guestfs_mke2journal (guestfs_h *g,\n"
26755 "                      int blocksize,\n"
26756 "                      const char *device);\n"
26757 "\n"
26758 msgstr ""
26759
26760 #. type: =head2
26761 #: ../src/guestfs-actions.pod:4552
26762 msgid "guestfs_mke2journal_L"
26763 msgstr ""
26764
26765 #. type: verbatim
26766 #: ../src/guestfs-actions.pod:4554
26767 #, no-wrap
26768 msgid ""
26769 " int\n"
26770 " guestfs_mke2journal_L (guestfs_h *g,\n"
26771 "                        int blocksize,\n"
26772 "                        const char *label,\n"
26773 "                        const char *device);\n"
26774 "\n"
26775 msgstr ""
26776
26777 #. type: =head2
26778 #: ../src/guestfs-actions.pod:4566
26779 msgid "guestfs_mke2journal_U"
26780 msgstr ""
26781
26782 #. type: verbatim
26783 #: ../src/guestfs-actions.pod:4568
26784 #, no-wrap
26785 msgid ""
26786 " int\n"
26787 " guestfs_mke2journal_U (guestfs_h *g,\n"
26788 "                        int blocksize,\n"
26789 "                        const char *uuid,\n"
26790 "                        const char *device);\n"
26791 "\n"
26792 msgstr ""
26793
26794 #. type: =head2
26795 #: ../src/guestfs-actions.pod:4580
26796 msgid "guestfs_mkfifo"
26797 msgstr ""
26798
26799 #. type: verbatim
26800 #: ../src/guestfs-actions.pod:4582
26801 #, no-wrap
26802 msgid ""
26803 " int\n"
26804 " guestfs_mkfifo (guestfs_h *g,\n"
26805 "                 int mode,\n"
26806 "                 const char *path);\n"
26807 "\n"
26808 msgstr ""
26809
26810 #. type: textblock
26811 #: ../src/guestfs-actions.pod:4587
26812 msgid ""
26813 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
26814 "is just a convenient wrapper around C<guestfs_mknod>."
26815 msgstr ""
26816
26817 #. type: =head2
26818 #: ../src/guestfs-actions.pod:4597
26819 msgid "guestfs_mkfs"
26820 msgstr ""
26821
26822 #. type: verbatim
26823 #: ../src/guestfs-actions.pod:4599
26824 #, no-wrap
26825 msgid ""
26826 " int\n"
26827 " guestfs_mkfs (guestfs_h *g,\n"
26828 "               const char *fstype,\n"
26829 "               const char *device);\n"
26830 "\n"
26831 msgstr ""
26832
26833 #. type: =head2
26834 #: ../src/guestfs-actions.pod:4612
26835 msgid "guestfs_mkfs_b"
26836 msgstr ""
26837
26838 #. type: verbatim
26839 #: ../src/guestfs-actions.pod:4614
26840 #, no-wrap
26841 msgid ""
26842 " int\n"
26843 " guestfs_mkfs_b (guestfs_h *g,\n"
26844 "                 const char *fstype,\n"
26845 "                 int blocksize,\n"
26846 "                 const char *device);\n"
26847 "\n"
26848 msgstr ""
26849
26850 #. type: textblock
26851 #: ../src/guestfs-actions.pod:4620
26852 msgid ""
26853 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
26854 "block size of the resulting filesystem.  Supported block sizes depend on the "
26855 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
26856 msgstr ""
26857
26858 #. type: textblock
26859 #: ../src/guestfs-actions.pod:4630
26860 msgid ""
26861 "This function is deprecated.  In new code, use the L</guestfs_mkfs_opts> "
26862 "call instead."
26863 msgstr ""
26864
26865 #. type: =head2
26866 #: ../src/guestfs-actions.pod:4639
26867 msgid "guestfs_mkfs_opts"
26868 msgstr ""
26869
26870 #. type: verbatim
26871 #: ../src/guestfs-actions.pod:4641
26872 #, no-wrap
26873 msgid ""
26874 " int\n"
26875 " guestfs_mkfs_opts (guestfs_h *g,\n"
26876 "                    const char *fstype,\n"
26877 "                    const char *device,\n"
26878 "                    ...);\n"
26879 "\n"
26880 msgstr ""
26881
26882 #. type: verbatim
26883 #: ../src/guestfs-actions.pod:4652
26884 #, no-wrap
26885 msgid ""
26886 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
26887 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
26888 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
26889 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
26890 "\n"
26891 msgstr ""
26892
26893 #. type: textblock
26894 #: ../src/guestfs-actions.pod:4700
26895 msgid "(Added in 1.7.19)"
26896 msgstr ""
26897
26898 #. type: =head2
26899 #: ../src/guestfs-actions.pod:4702
26900 msgid "guestfs_mkfs_opts_va"
26901 msgstr ""
26902
26903 #. type: verbatim
26904 #: ../src/guestfs-actions.pod:4704
26905 #, no-wrap
26906 msgid ""
26907 " int\n"
26908 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
26909 "                       const char *fstype,\n"
26910 "                       const char *device,\n"
26911 "                       va_list args);\n"
26912 "\n"
26913 msgstr ""
26914
26915 #. type: textblock
26916 #: ../src/guestfs-actions.pod:4710
26917 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
26918 msgstr ""
26919
26920 #. type: =head2
26921 #: ../src/guestfs-actions.pod:4714
26922 msgid "guestfs_mkfs_opts_argv"
26923 msgstr ""
26924
26925 #. type: verbatim
26926 #: ../src/guestfs-actions.pod:4716
26927 #, no-wrap
26928 msgid ""
26929 " int\n"
26930 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26931 "                         const char *fstype,\n"
26932 "                         const char *device,\n"
26933 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
26934 "\n"
26935 msgstr ""
26936
26937 #. type: textblock
26938 #: ../src/guestfs-actions.pod:4722
26939 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
26940 msgstr ""
26941
26942 #. type: =head2
26943 #: ../src/guestfs-actions.pod:4726
26944 msgid "guestfs_mkmountpoint"
26945 msgstr ""
26946
26947 #. type: verbatim
26948 #: ../src/guestfs-actions.pod:4728
26949 #, no-wrap
26950 msgid ""
26951 " int\n"
26952 " guestfs_mkmountpoint (guestfs_h *g,\n"
26953 "                       const char *exemptpath);\n"
26954 "\n"
26955 msgstr ""
26956
26957 #. type: textblock
26958 #: ../src/guestfs-actions.pod:4732
26959 msgid ""
26960 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
26961 "that can be used to create extra mountpoints before mounting the first "
26962 "filesystem."
26963 msgstr ""
26964
26965 #. type: textblock
26966 #: ../src/guestfs-actions.pod:4756
26967 msgid ""
26968 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
26969 "may get unexpected errors if you try to mix these calls.  It is safest to "
26970 "manually unmount filesystems and remove mountpoints after use."
26971 msgstr ""
26972
26973 #. type: textblock
26974 #: ../src/guestfs-actions.pod:4760
26975 msgid ""
26976 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
26977 "first, so for this to work for manual mountpoints, you must ensure that the "
26978 "innermost mountpoints have the longest pathnames, as in the example code "
26979 "above."
26980 msgstr ""
26981
26982 #. type: textblock
26983 #: ../src/guestfs-actions.pod:4767
26984 msgid ""
26985 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
26986 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
26987 "can also trigger these issues."
26988 msgstr ""
26989
26990 #. type: textblock
26991 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:5089
26992 #: ../src/guestfs-actions.pod:6099
26993 msgid "(Added in 1.0.62)"
26994 msgstr ""
26995
26996 #. type: =head2
26997 #: ../src/guestfs-actions.pod:4775
26998 msgid "guestfs_mknod"
26999 msgstr ""
27000
27001 #. type: verbatim
27002 #: ../src/guestfs-actions.pod:4777
27003 #, no-wrap
27004 msgid ""
27005 " int\n"
27006 " guestfs_mknod (guestfs_h *g,\n"
27007 "                int mode,\n"
27008 "                int devmajor,\n"
27009 "                int devminor,\n"
27010 "                const char *path);\n"
27011 "\n"
27012 msgstr ""
27013
27014 #. type: textblock
27015 #: ../src/guestfs-actions.pod:4792
27016 msgid ""
27017 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
27018 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
27019 "regular file).  These constants are available in the standard Linux header "
27020 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
27021 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
27022 "the appropriate constant for you."
27023 msgstr ""
27024
27025 #. type: =head2
27026 #: ../src/guestfs-actions.pod:4806
27027 msgid "guestfs_mknod_b"
27028 msgstr ""
27029
27030 #. type: verbatim
27031 #: ../src/guestfs-actions.pod:4808
27032 #, no-wrap
27033 msgid ""
27034 " int\n"
27035 " guestfs_mknod_b (guestfs_h *g,\n"
27036 "                  int mode,\n"
27037 "                  int devmajor,\n"
27038 "                  int devminor,\n"
27039 "                  const char *path);\n"
27040 "\n"
27041 msgstr ""
27042
27043 #. type: textblock
27044 #: ../src/guestfs-actions.pod:4815
27045 msgid ""
27046 "This call creates a block device node called C<path> with mode C<mode> and "
27047 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27048 "wrapper around C<guestfs_mknod>."
27049 msgstr ""
27050
27051 #. type: =head2
27052 #: ../src/guestfs-actions.pod:4825
27053 msgid "guestfs_mknod_c"
27054 msgstr ""
27055
27056 #. type: verbatim
27057 #: ../src/guestfs-actions.pod:4827
27058 #, no-wrap
27059 msgid ""
27060 " int\n"
27061 " guestfs_mknod_c (guestfs_h *g,\n"
27062 "                  int mode,\n"
27063 "                  int devmajor,\n"
27064 "                  int devminor,\n"
27065 "                  const char *path);\n"
27066 "\n"
27067 msgstr ""
27068
27069 #. type: textblock
27070 #: ../src/guestfs-actions.pod:4834
27071 msgid ""
27072 "This call creates a char device node called C<path> with mode C<mode> and "
27073 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27074 "wrapper around C<guestfs_mknod>."
27075 msgstr ""
27076
27077 #. type: =head2
27078 #: ../src/guestfs-actions.pod:4844
27079 msgid "guestfs_mkswap"
27080 msgstr ""
27081
27082 #. type: verbatim
27083 #: ../src/guestfs-actions.pod:4846
27084 #, no-wrap
27085 msgid ""
27086 " int\n"
27087 " guestfs_mkswap (guestfs_h *g,\n"
27088 "                 const char *device);\n"
27089 "\n"
27090 msgstr ""
27091
27092 #. type: =head2
27093 #: ../src/guestfs-actions.pod:4856
27094 msgid "guestfs_mkswap_L"
27095 msgstr ""
27096
27097 #. type: verbatim
27098 #: ../src/guestfs-actions.pod:4858
27099 #, no-wrap
27100 msgid ""
27101 " int\n"
27102 " guestfs_mkswap_L (guestfs_h *g,\n"
27103 "                   const char *label,\n"
27104 "                   const char *device);\n"
27105 "\n"
27106 msgstr ""
27107
27108 #. type: =head2
27109 #: ../src/guestfs-actions.pod:4873
27110 msgid "guestfs_mkswap_U"
27111 msgstr ""
27112
27113 #. type: verbatim
27114 #: ../src/guestfs-actions.pod:4875
27115 #, no-wrap
27116 msgid ""
27117 " int\n"
27118 " guestfs_mkswap_U (guestfs_h *g,\n"
27119 "                   const char *uuid,\n"
27120 "                   const char *device);\n"
27121 "\n"
27122 msgstr ""
27123
27124 #. type: =head2
27125 #: ../src/guestfs-actions.pod:4886
27126 msgid "guestfs_mkswap_file"
27127 msgstr ""
27128
27129 #. type: verbatim
27130 #: ../src/guestfs-actions.pod:4888
27131 #, no-wrap
27132 msgid ""
27133 " int\n"
27134 " guestfs_mkswap_file (guestfs_h *g,\n"
27135 "                      const char *path);\n"
27136 "\n"
27137 msgstr ""
27138
27139 #. type: textblock
27140 #: ../src/guestfs-actions.pod:4894
27141 msgid ""
27142 "This command just writes a swap file signature to an existing file.  To "
27143 "create the file itself, use something like C<guestfs_fallocate>."
27144 msgstr ""
27145
27146 #. type: =head2
27147 #: ../src/guestfs-actions.pod:4901
27148 msgid "guestfs_modprobe"
27149 msgstr ""
27150
27151 #. type: verbatim
27152 #: ../src/guestfs-actions.pod:4903
27153 #, no-wrap
27154 msgid ""
27155 " int\n"
27156 " guestfs_modprobe (guestfs_h *g,\n"
27157 "                   const char *modulename);\n"
27158 "\n"
27159 msgstr ""
27160
27161 #. type: =head2
27162 #: ../src/guestfs-actions.pod:4916
27163 msgid "guestfs_mount"
27164 msgstr ""
27165
27166 #. type: verbatim
27167 #: ../src/guestfs-actions.pod:4918
27168 #, no-wrap
27169 msgid ""
27170 " int\n"
27171 " guestfs_mount (guestfs_h *g,\n"
27172 "                const char *device,\n"
27173 "                const char *mountpoint);\n"
27174 "\n"
27175 msgstr ""
27176
27177 #. type: textblock
27178 #: ../src/guestfs-actions.pod:4937
27179 msgid ""
27180 "B<Important note:> When you use this call, the filesystem options C<sync> "
27181 "and C<noatime> are set implicitly.  This was originally done because we "
27182 "thought it would improve reliability, but it turns out that I<-o sync> has a "
27183 "very large negative performance impact and negligible effect on "
27184 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
27185 "in any code that needs performance, and instead use C<guestfs_mount_options> "
27186 "(use an empty string for the first parameter if you don't want any options)."
27187 msgstr ""
27188
27189 #. type: textblock
27190 #: ../src/guestfs-actions.pod:4949
27191 msgid ""
27192 "This function is deprecated.  In new code, use the L</guestfs_mount_options> "
27193 "call instead."
27194 msgstr ""
27195
27196 #. type: =head2
27197 #: ../src/guestfs-actions.pod:4958
27198 msgid "guestfs_mount_9p"
27199 msgstr ""
27200
27201 #. type: verbatim
27202 #: ../src/guestfs-actions.pod:4960
27203 #, no-wrap
27204 msgid ""
27205 " int\n"
27206 " guestfs_mount_9p (guestfs_h *g,\n"
27207 "                   const char *mounttag,\n"
27208 "                   const char *mountpoint,\n"
27209 "                   ...);\n"
27210 "\n"
27211 msgstr ""
27212
27213 #. type: verbatim
27214 #: ../src/guestfs-actions.pod:4971
27215 #, no-wrap
27216 msgid ""
27217 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
27218 "\n"
27219 msgstr ""
27220
27221 #. type: =head2
27222 #: ../src/guestfs-actions.pod:4984
27223 msgid "guestfs_mount_9p_va"
27224 msgstr ""
27225
27226 #. type: verbatim
27227 #: ../src/guestfs-actions.pod:4986
27228 #, no-wrap
27229 msgid ""
27230 " int\n"
27231 " guestfs_mount_9p_va (guestfs_h *g,\n"
27232 "                      const char *mounttag,\n"
27233 "                      const char *mountpoint,\n"
27234 "                      va_list args);\n"
27235 "\n"
27236 msgstr ""
27237
27238 #. type: textblock
27239 #: ../src/guestfs-actions.pod:4992
27240 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
27241 msgstr ""
27242
27243 #. type: =head2
27244 #: ../src/guestfs-actions.pod:4996
27245 msgid "guestfs_mount_9p_argv"
27246 msgstr ""
27247
27248 #. type: verbatim
27249 #: ../src/guestfs-actions.pod:4998
27250 #, no-wrap
27251 msgid ""
27252 " int\n"
27253 " guestfs_mount_9p_argv (guestfs_h *g,\n"
27254 "                        const char *mounttag,\n"
27255 "                        const char *mountpoint,\n"
27256 "                        const struct guestfs_mount_9p_argv *optargs);\n"
27257 "\n"
27258 msgstr ""
27259
27260 #. type: textblock
27261 #: ../src/guestfs-actions.pod:5004
27262 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
27263 msgstr ""
27264
27265 #. type: =head2
27266 #: ../src/guestfs-actions.pod:5008
27267 msgid "guestfs_mount_loop"
27268 msgstr ""
27269
27270 #. type: verbatim
27271 #: ../src/guestfs-actions.pod:5010
27272 #, no-wrap
27273 msgid ""
27274 " int\n"
27275 " guestfs_mount_loop (guestfs_h *g,\n"
27276 "                     const char *file,\n"
27277 "                     const char *mountpoint);\n"
27278 "\n"
27279 msgstr ""
27280
27281 #. type: =head2
27282 #: ../src/guestfs-actions.pod:5023
27283 msgid "guestfs_mount_options"
27284 msgstr ""
27285
27286 #. type: verbatim
27287 #: ../src/guestfs-actions.pod:5025
27288 #, no-wrap
27289 msgid ""
27290 " int\n"
27291 " guestfs_mount_options (guestfs_h *g,\n"
27292 "                        const char *options,\n"
27293 "                        const char *device,\n"
27294 "                        const char *mountpoint);\n"
27295 "\n"
27296 msgstr ""
27297
27298 #. type: textblock
27299 #: ../src/guestfs-actions.pod:5031
27300 msgid ""
27301 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27302 "the mount options as for the L<mount(8)> I<-o> flag."
27303 msgstr ""
27304
27305 #. type: textblock
27306 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5055
27307 #: ../src/guestfs-actions.pod:5072
27308 msgid "(Added in 1.0.10)"
27309 msgstr ""
27310
27311 #. type: =head2
27312 #: ../src/guestfs-actions.pod:5043
27313 msgid "guestfs_mount_ro"
27314 msgstr ""
27315
27316 #. type: verbatim
27317 #: ../src/guestfs-actions.pod:5045
27318 #, no-wrap
27319 msgid ""
27320 " int\n"
27321 " guestfs_mount_ro (guestfs_h *g,\n"
27322 "                   const char *device,\n"
27323 "                   const char *mountpoint);\n"
27324 "\n"
27325 msgstr ""
27326
27327 #. type: textblock
27328 #: ../src/guestfs-actions.pod:5050
27329 msgid ""
27330 "This is the same as the C<guestfs_mount> command, but it mounts the "
27331 "filesystem with the read-only (I<-o ro>) flag."
27332 msgstr ""
27333
27334 #. type: =head2
27335 #: ../src/guestfs-actions.pod:5057
27336 msgid "guestfs_mount_vfs"
27337 msgstr ""
27338
27339 #. type: verbatim
27340 #: ../src/guestfs-actions.pod:5059
27341 #, no-wrap
27342 msgid ""
27343 " int\n"
27344 " guestfs_mount_vfs (guestfs_h *g,\n"
27345 "                    const char *options,\n"
27346 "                    const char *vfstype,\n"
27347 "                    const char *device,\n"
27348 "                    const char *mountpoint);\n"
27349 "\n"
27350 msgstr ""
27351
27352 #. type: textblock
27353 #: ../src/guestfs-actions.pod:5066
27354 msgid ""
27355 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27356 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
27357 "t> flags."
27358 msgstr ""
27359
27360 #. type: =head2
27361 #: ../src/guestfs-actions.pod:5074
27362 msgid "guestfs_mountpoints"
27363 msgstr ""
27364
27365 #. type: verbatim
27366 #: ../src/guestfs-actions.pod:5076
27367 #, no-wrap
27368 msgid ""
27369 " char **\n"
27370 " guestfs_mountpoints (guestfs_h *g);\n"
27371 "\n"
27372 msgstr ""
27373
27374 #. type: textblock
27375 #: ../src/guestfs-actions.pod:5079
27376 msgid ""
27377 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
27378 "devices.  This one returns a hash table (map) of device name to directory "
27379 "where the device is mounted."
27380 msgstr ""
27381
27382 #. type: =head2
27383 #: ../src/guestfs-actions.pod:5091
27384 msgid "guestfs_mounts"
27385 msgstr ""
27386
27387 #. type: verbatim
27388 #: ../src/guestfs-actions.pod:5093
27389 #, no-wrap
27390 msgid ""
27391 " char **\n"
27392 " guestfs_mounts (guestfs_h *g);\n"
27393 "\n"
27394 msgstr ""
27395
27396 #. type: textblock
27397 #: ../src/guestfs-actions.pod:5101
27398 msgid "See also: C<guestfs_mountpoints>"
27399 msgstr ""
27400
27401 #. type: =head2
27402 #: ../src/guestfs-actions.pod:5109
27403 msgid "guestfs_mv"
27404 msgstr ""
27405
27406 #. type: verbatim
27407 #: ../src/guestfs-actions.pod:5111
27408 #, no-wrap
27409 msgid ""
27410 " int\n"
27411 " guestfs_mv (guestfs_h *g,\n"
27412 "             const char *src,\n"
27413 "             const char *dest);\n"
27414 "\n"
27415 msgstr ""
27416
27417 #. type: =head2
27418 #: ../src/guestfs-actions.pod:5123
27419 msgid "guestfs_ntfs_3g_probe"
27420 msgstr ""
27421
27422 #. type: verbatim
27423 #: ../src/guestfs-actions.pod:5125
27424 #, no-wrap
27425 msgid ""
27426 " int\n"
27427 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
27428 "                        int rw,\n"
27429 "                        const char *device);\n"
27430 "\n"
27431 msgstr ""
27432
27433 #. type: textblock
27434 #: ../src/guestfs-actions.pod:5144
27435 msgid "(Added in 1.0.43)"
27436 msgstr ""
27437
27438 #. type: =head2
27439 #: ../src/guestfs-actions.pod:5146
27440 msgid "guestfs_ntfsresize"
27441 msgstr ""
27442
27443 #. type: verbatim
27444 #: ../src/guestfs-actions.pod:5148
27445 #, no-wrap
27446 msgid ""
27447 " int\n"
27448 " guestfs_ntfsresize (guestfs_h *g,\n"
27449 "                     const char *device);\n"
27450 "\n"
27451 msgstr ""
27452
27453 #. type: textblock
27454 #: ../src/guestfs-actions.pod:5167 ../src/guestfs-actions.pod:5257
27455 msgid ""
27456 "This function is deprecated.  In new code, use the L</"
27457 "guestfs_ntfsresize_opts> call instead."
27458 msgstr ""
27459
27460 #. type: =head2
27461 #: ../src/guestfs-actions.pod:5176
27462 msgid "guestfs_ntfsresize_opts"
27463 msgstr ""
27464
27465 #. type: verbatim
27466 #: ../src/guestfs-actions.pod:5178
27467 #, no-wrap
27468 msgid ""
27469 " int\n"
27470 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
27471 "                          const char *device,\n"
27472 "                          ...);\n"
27473 "\n"
27474 msgstr ""
27475
27476 #. type: verbatim
27477 #: ../src/guestfs-actions.pod:5188
27478 #, no-wrap
27479 msgid ""
27480 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
27481 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
27482 "\n"
27483 msgstr ""
27484
27485 #. type: textblock
27486 #: ../src/guestfs-actions.pod:5208
27487 msgid ""
27488 "After the resize operation, the filesystem is always marked as requiring a "
27489 "consistency check (for safety).  You have to boot into Windows to perform "
27490 "this check and clear this condition.  If you I<don't> set the C<force> "
27491 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
27492 "times on a single filesystem without booting into Windows between each "
27493 "resize."
27494 msgstr ""
27495
27496 #. type: =head2
27497 #: ../src/guestfs-actions.pod:5223
27498 msgid "guestfs_ntfsresize_opts_va"
27499 msgstr ""
27500
27501 #. type: verbatim
27502 #: ../src/guestfs-actions.pod:5225
27503 #, no-wrap
27504 msgid ""
27505 " int\n"
27506 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
27507 "                             const char *device,\n"
27508 "                             va_list args);\n"
27509 "\n"
27510 msgstr ""
27511
27512 #. type: textblock
27513 #: ../src/guestfs-actions.pod:5230
27514 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
27515 msgstr ""
27516
27517 #. type: =head2
27518 #: ../src/guestfs-actions.pod:5234
27519 msgid "guestfs_ntfsresize_opts_argv"
27520 msgstr ""
27521
27522 #. type: verbatim
27523 #: ../src/guestfs-actions.pod:5236
27524 #, no-wrap
27525 msgid ""
27526 " int\n"
27527 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
27528 "                               const char *device,\n"
27529 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
27530 "\n"
27531 msgstr ""
27532
27533 #. type: textblock
27534 #: ../src/guestfs-actions.pod:5241
27535 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
27536 msgstr ""
27537
27538 #. type: =head2
27539 #: ../src/guestfs-actions.pod:5245
27540 msgid "guestfs_ntfsresize_size"
27541 msgstr ""
27542
27543 #. type: verbatim
27544 #: ../src/guestfs-actions.pod:5247
27545 #, no-wrap
27546 msgid ""
27547 " int\n"
27548 " guestfs_ntfsresize_size (guestfs_h *g,\n"
27549 "                          const char *device,\n"
27550 "                          int64_t size);\n"
27551 "\n"
27552 msgstr ""
27553
27554 #. type: textblock
27555 #: ../src/guestfs-actions.pod:5252
27556 msgid ""
27557 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
27558 "to specify the new size (in bytes) explicitly."
27559 msgstr ""
27560
27561 #. type: textblock
27562 #: ../src/guestfs-actions.pod:5264 ../src/guestfs-actions.pod:5706
27563 #: ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:6047
27564 #: ../src/guestfs-actions.pod:7670
27565 msgid "(Added in 1.3.14)"
27566 msgstr ""
27567
27568 #. type: =head2
27569 #: ../src/guestfs-actions.pod:5266
27570 msgid "guestfs_part_add"
27571 msgstr ""
27572
27573 #. type: verbatim
27574 #: ../src/guestfs-actions.pod:5268
27575 #, no-wrap
27576 msgid ""
27577 " int\n"
27578 " guestfs_part_add (guestfs_h *g,\n"
27579 "                   const char *device,\n"
27580 "                   const char *prlogex,\n"
27581 "                   int64_t startsect,\n"
27582 "                   int64_t endsect);\n"
27583 "\n"
27584 msgstr ""
27585
27586 #. type: textblock
27587 #: ../src/guestfs-actions.pod:5275
27588 msgid ""
27589 "This command adds a partition to C<device>.  If there is no partition table "
27590 "on the device, call C<guestfs_part_init> first."
27591 msgstr ""
27592
27593 #. type: textblock
27594 #: ../src/guestfs-actions.pod:5287
27595 msgid ""
27596 "Creating a partition which covers the whole disk is not so easy.  Use "
27597 "C<guestfs_part_disk> to do that."
27598 msgstr ""
27599
27600 #. type: textblock
27601 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5330
27602 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5467
27603 #: ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5524
27604 #: ../src/guestfs-actions.pod:5564
27605 msgid "(Added in 1.0.78)"
27606 msgstr ""
27607
27608 #. type: =head2
27609 #: ../src/guestfs-actions.pod:5294
27610 msgid "guestfs_part_del"
27611 msgstr ""
27612
27613 #. type: verbatim
27614 #: ../src/guestfs-actions.pod:5296
27615 #, no-wrap
27616 msgid ""
27617 " int\n"
27618 " guestfs_part_del (guestfs_h *g,\n"
27619 "                   const char *device,\n"
27620 "                   int partnum);\n"
27621 "\n"
27622 msgstr ""
27623
27624 #. type: =head2
27625 #: ../src/guestfs-actions.pod:5311
27626 msgid "guestfs_part_disk"
27627 msgstr ""
27628
27629 #. type: verbatim
27630 #: ../src/guestfs-actions.pod:5313
27631 #, no-wrap
27632 msgid ""
27633 " int\n"
27634 " guestfs_part_disk (guestfs_h *g,\n"
27635 "                    const char *device,\n"
27636 "                    const char *parttype);\n"
27637 "\n"
27638 msgstr ""
27639
27640 #. type: textblock
27641 #: ../src/guestfs-actions.pod:5318
27642 msgid ""
27643 "This command is simply a combination of C<guestfs_part_init> followed by "
27644 "C<guestfs_part_add> to create a single primary partition covering the whole "
27645 "disk."
27646 msgstr ""
27647
27648 #. type: textblock
27649 #: ../src/guestfs-actions.pod:5322
27650 msgid ""
27651 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27652 "possible values are described in C<guestfs_part_init>."
27653 msgstr ""
27654
27655 #. type: =head2
27656 #: ../src/guestfs-actions.pod:5332
27657 msgid "guestfs_part_get_bootable"
27658 msgstr ""
27659
27660 #. type: verbatim
27661 #: ../src/guestfs-actions.pod:5334
27662 #, no-wrap
27663 msgid ""
27664 " int\n"
27665 " guestfs_part_get_bootable (guestfs_h *g,\n"
27666 "                            const char *device,\n"
27667 "                            int partnum);\n"
27668 "\n"
27669 msgstr ""
27670
27671 #. type: textblock
27672 #: ../src/guestfs-actions.pod:5342
27673 msgid "See also C<guestfs_part_set_bootable>."
27674 msgstr ""
27675
27676 #. type: =head2
27677 #: ../src/guestfs-actions.pod:5348
27678 msgid "guestfs_part_get_mbr_id"
27679 msgstr ""
27680
27681 #. type: verbatim
27682 #: ../src/guestfs-actions.pod:5350
27683 #, no-wrap
27684 msgid ""
27685 " int\n"
27686 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
27687 "                          const char *device,\n"
27688 "                          int partnum);\n"
27689 "\n"
27690 msgstr ""
27691
27692 #. type: textblock
27693 #: ../src/guestfs-actions.pod:5358 ../src/guestfs-actions.pod:5540
27694 msgid ""
27695 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27696 "undefined results for other partition table types (see "
27697 "C<guestfs_part_get_parttype>)."
27698 msgstr ""
27699
27700 #. type: =head2
27701 #: ../src/guestfs-actions.pod:5366
27702 msgid "guestfs_part_get_parttype"
27703 msgstr ""
27704
27705 #. type: verbatim
27706 #: ../src/guestfs-actions.pod:5368
27707 #, no-wrap
27708 msgid ""
27709 " char *\n"
27710 " guestfs_part_get_parttype (guestfs_h *g,\n"
27711 "                            const char *device);\n"
27712 "\n"
27713 msgstr ""
27714
27715 #. type: textblock
27716 #: ../src/guestfs-actions.pod:5375
27717 msgid ""
27718 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27719 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27720 "possible, although unusual.  See C<guestfs_part_init> for a full list."
27721 msgstr ""
27722
27723 #. type: =head2
27724 #: ../src/guestfs-actions.pod:5385
27725 msgid "guestfs_part_init"
27726 msgstr ""
27727
27728 #. type: verbatim
27729 #: ../src/guestfs-actions.pod:5387
27730 #, no-wrap
27731 msgid ""
27732 " int\n"
27733 " guestfs_part_init (guestfs_h *g,\n"
27734 "                    const char *device,\n"
27735 "                    const char *parttype);\n"
27736 "\n"
27737 msgstr ""
27738
27739 #. type: textblock
27740 #: ../src/guestfs-actions.pod:5396
27741 msgid ""
27742 "Initially there are no partitions.  Following this, you should call "
27743 "C<guestfs_part_add> for each partition required."
27744 msgstr ""
27745
27746 #. type: =head2
27747 #: ../src/guestfs-actions.pod:5469
27748 msgid "guestfs_part_list"
27749 msgstr ""
27750
27751 #. type: verbatim
27752 #: ../src/guestfs-actions.pod:5471
27753 #, no-wrap
27754 msgid ""
27755 " struct guestfs_partition_list *\n"
27756 " guestfs_part_list (guestfs_h *g,\n"
27757 "                    const char *device);\n"
27758 "\n"
27759 msgstr ""
27760
27761 #. type: textblock
27762 #: ../src/guestfs-actions.pod:5488
27763 msgid ""
27764 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27765 "the device's sector size, see C<guestfs_blockdev_getss>."
27766 msgstr ""
27767
27768 #. type: textblock
27769 #: ../src/guestfs-actions.pod:5501
27770 msgid ""
27771 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
27772 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
27773 "use>."
27774 msgstr ""
27775
27776 #. type: =head2
27777 #: ../src/guestfs-actions.pod:5507
27778 msgid "guestfs_part_set_bootable"
27779 msgstr ""
27780
27781 #. type: verbatim
27782 #: ../src/guestfs-actions.pod:5509
27783 #, no-wrap
27784 msgid ""
27785 " int\n"
27786 " guestfs_part_set_bootable (guestfs_h *g,\n"
27787 "                            const char *device,\n"
27788 "                            int partnum,\n"
27789 "                            int bootable);\n"
27790 "\n"
27791 msgstr ""
27792
27793 #. type: =head2
27794 #: ../src/guestfs-actions.pod:5526
27795 msgid "guestfs_part_set_mbr_id"
27796 msgstr ""
27797
27798 #. type: verbatim
27799 #: ../src/guestfs-actions.pod:5528
27800 #, no-wrap
27801 msgid ""
27802 " int\n"
27803 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
27804 "                          const char *device,\n"
27805 "                          int partnum,\n"
27806 "                          int idbyte);\n"
27807 "\n"
27808 msgstr ""
27809
27810 #. type: =head2
27811 #: ../src/guestfs-actions.pod:5548
27812 msgid "guestfs_part_set_name"
27813 msgstr ""
27814
27815 #. type: verbatim
27816 #: ../src/guestfs-actions.pod:5550
27817 #, no-wrap
27818 msgid ""
27819 " int\n"
27820 " guestfs_part_set_name (guestfs_h *g,\n"
27821 "                        const char *device,\n"
27822 "                        int partnum,\n"
27823 "                        const char *name);\n"
27824 "\n"
27825 msgstr ""
27826
27827 #. type: =head2
27828 #: ../src/guestfs-actions.pod:5566
27829 msgid "guestfs_part_to_dev"
27830 msgstr ""
27831
27832 #. type: verbatim
27833 #: ../src/guestfs-actions.pod:5568
27834 #, no-wrap
27835 msgid ""
27836 " char *\n"
27837 " guestfs_part_to_dev (guestfs_h *g,\n"
27838 "                      const char *partition);\n"
27839 "\n"
27840 msgstr ""
27841
27842 #. type: textblock
27843 #: ../src/guestfs-actions.pod:5576
27844 msgid ""
27845 "The named partition must exist, for example as a string returned from "
27846 "C<guestfs_list_partitions>."
27847 msgstr ""
27848
27849 #. type: =head2
27850 #: ../src/guestfs-actions.pod:5584
27851 msgid "guestfs_ping_daemon"
27852 msgstr ""
27853
27854 #. type: verbatim
27855 #: ../src/guestfs-actions.pod:5586
27856 #, no-wrap
27857 msgid ""
27858 " int\n"
27859 " guestfs_ping_daemon (guestfs_h *g);\n"
27860 "\n"
27861 msgstr ""
27862
27863 #. type: =head2
27864 #: ../src/guestfs-actions.pod:5598
27865 msgid "guestfs_pread"
27866 msgstr ""
27867
27868 #. type: verbatim
27869 #: ../src/guestfs-actions.pod:5600
27870 #, no-wrap
27871 msgid ""
27872 " char *\n"
27873 " guestfs_pread (guestfs_h *g,\n"
27874 "                const char *path,\n"
27875 "                int count,\n"
27876 "                int64_t offset,\n"
27877 "                size_t *size_r);\n"
27878 "\n"
27879 msgstr ""
27880
27881 #. type: textblock
27882 #: ../src/guestfs-actions.pod:5613
27883 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
27884 msgstr ""
27885
27886 #. type: =head2
27887 #: ../src/guestfs-actions.pod:5624
27888 msgid "guestfs_pread_device"
27889 msgstr ""
27890
27891 #. type: verbatim
27892 #: ../src/guestfs-actions.pod:5626
27893 #, no-wrap
27894 msgid ""
27895 " char *\n"
27896 " guestfs_pread_device (guestfs_h *g,\n"
27897 "                       const char *device,\n"
27898 "                       int count,\n"
27899 "                       int64_t offset,\n"
27900 "                       size_t *size_r);\n"
27901 "\n"
27902 msgstr ""
27903
27904 #. type: textblock
27905 #: ../src/guestfs-actions.pod:5639
27906 msgid "See also C<guestfs_pread>."
27907 msgstr ""
27908
27909 #. type: textblock
27910 #: ../src/guestfs-actions.pod:5648
27911 msgid "(Added in 1.5.21)"
27912 msgstr ""
27913
27914 #. type: =head2
27915 #: ../src/guestfs-actions.pod:5650
27916 msgid "guestfs_pvcreate"
27917 msgstr ""
27918
27919 #. type: verbatim
27920 #: ../src/guestfs-actions.pod:5652
27921 #, no-wrap
27922 msgid ""
27923 " int\n"
27924 " guestfs_pvcreate (guestfs_h *g,\n"
27925 "                   const char *device);\n"
27926 "\n"
27927 msgstr ""
27928
27929 #. type: =head2
27930 #: ../src/guestfs-actions.pod:5664
27931 msgid "guestfs_pvremove"
27932 msgstr ""
27933
27934 #. type: verbatim
27935 #: ../src/guestfs-actions.pod:5666
27936 #, no-wrap
27937 msgid ""
27938 " int\n"
27939 " guestfs_pvremove (guestfs_h *g,\n"
27940 "                   const char *device);\n"
27941 "\n"
27942 msgstr ""
27943
27944 #. type: =head2
27945 #: ../src/guestfs-actions.pod:5681
27946 msgid "guestfs_pvresize"
27947 msgstr ""
27948
27949 #. type: verbatim
27950 #: ../src/guestfs-actions.pod:5683
27951 #, no-wrap
27952 msgid ""
27953 " int\n"
27954 " guestfs_pvresize (guestfs_h *g,\n"
27955 "                   const char *device);\n"
27956 "\n"
27957 msgstr ""
27958
27959 #. type: =head2
27960 #: ../src/guestfs-actions.pod:5694
27961 msgid "guestfs_pvresize_size"
27962 msgstr ""
27963
27964 #. type: verbatim
27965 #: ../src/guestfs-actions.pod:5696
27966 #, no-wrap
27967 msgid ""
27968 " int\n"
27969 " guestfs_pvresize_size (guestfs_h *g,\n"
27970 "                        const char *device,\n"
27971 "                        int64_t size);\n"
27972 "\n"
27973 msgstr ""
27974
27975 #. type: textblock
27976 #: ../src/guestfs-actions.pod:5701
27977 msgid ""
27978 "This command is the same as C<guestfs_pvresize> except that it allows you to "
27979 "specify the new size (in bytes) explicitly."
27980 msgstr ""
27981
27982 #. type: =head2
27983 #: ../src/guestfs-actions.pod:5708
27984 msgid "guestfs_pvs"
27985 msgstr ""
27986
27987 #. type: verbatim
27988 #: ../src/guestfs-actions.pod:5710
27989 #, no-wrap
27990 msgid ""
27991 " char **\n"
27992 " guestfs_pvs (guestfs_h *g);\n"
27993 "\n"
27994 msgstr ""
27995
27996 #. type: textblock
27997 #: ../src/guestfs-actions.pod:5719
27998 msgid "See also C<guestfs_pvs_full>."
27999 msgstr ""
28000
28001 #. type: =head2
28002 #: ../src/guestfs-actions.pod:5727
28003 msgid "guestfs_pvs_full"
28004 msgstr ""
28005
28006 #. type: verbatim
28007 #: ../src/guestfs-actions.pod:5729
28008 #, no-wrap
28009 msgid ""
28010 " struct guestfs_lvm_pv_list *\n"
28011 " guestfs_pvs_full (guestfs_h *g);\n"
28012 "\n"
28013 msgstr ""
28014
28015 #. type: textblock
28016 #: ../src/guestfs-actions.pod:5735
28017 msgid ""
28018 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
28019 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
28020 msgstr ""
28021
28022 #. type: =head2
28023 #: ../src/guestfs-actions.pod:5741
28024 msgid "guestfs_pvuuid"
28025 msgstr ""
28026
28027 #. type: verbatim
28028 #: ../src/guestfs-actions.pod:5743
28029 #, no-wrap
28030 msgid ""
28031 " char *\n"
28032 " guestfs_pvuuid (guestfs_h *g,\n"
28033 "                 const char *device);\n"
28034 "\n"
28035 msgstr ""
28036
28037 #. type: =head2
28038 #: ../src/guestfs-actions.pod:5754
28039 msgid "guestfs_pwrite"
28040 msgstr ""
28041
28042 #. type: verbatim
28043 #: ../src/guestfs-actions.pod:5756
28044 #, no-wrap
28045 msgid ""
28046 " int\n"
28047 " guestfs_pwrite (guestfs_h *g,\n"
28048 "                 const char *path,\n"
28049 "                 const char *content,\n"
28050 "                 size_t content_size,\n"
28051 "                 int64_t offset);\n"
28052 "\n"
28053 msgstr ""
28054
28055 #. type: textblock
28056 #: ../src/guestfs-actions.pod:5772
28057 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
28058 msgstr ""
28059
28060 #. type: =head2
28061 #: ../src/guestfs-actions.pod:5781
28062 msgid "guestfs_pwrite_device"
28063 msgstr ""
28064
28065 #. type: verbatim
28066 #: ../src/guestfs-actions.pod:5783
28067 #, no-wrap
28068 msgid ""
28069 " int\n"
28070 " guestfs_pwrite_device (guestfs_h *g,\n"
28071 "                        const char *device,\n"
28072 "                        const char *content,\n"
28073 "                        size_t content_size,\n"
28074 "                        int64_t offset);\n"
28075 "\n"
28076 msgstr ""
28077
28078 #. type: textblock
28079 #: ../src/guestfs-actions.pod:5798
28080 msgid "See also C<guestfs_pwrite>."
28081 msgstr ""
28082
28083 #. type: textblock
28084 #: ../src/guestfs-actions.pod:5805
28085 msgid "(Added in 1.5.20)"
28086 msgstr ""
28087
28088 #. type: =head2
28089 #: ../src/guestfs-actions.pod:5807
28090 msgid "guestfs_read_file"
28091 msgstr ""
28092
28093 #. type: verbatim
28094 #: ../src/guestfs-actions.pod:5809
28095 #, no-wrap
28096 msgid ""
28097 " char *\n"
28098 " guestfs_read_file (guestfs_h *g,\n"
28099 "                    const char *path,\n"
28100 "                    size_t *size_r);\n"
28101 "\n"
28102 msgstr ""
28103
28104 #. type: textblock
28105 #: ../src/guestfs-actions.pod:5817
28106 msgid ""
28107 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
28108 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
28109 "function is limited in the total size of file that can be handled."
28110 msgstr ""
28111
28112 #. type: textblock
28113 #: ../src/guestfs-actions.pod:5829
28114 msgid "(Added in 1.0.63)"
28115 msgstr ""
28116
28117 #. type: =head2
28118 #: ../src/guestfs-actions.pod:5831
28119 msgid "guestfs_read_lines"
28120 msgstr ""
28121
28122 #. type: verbatim
28123 #: ../src/guestfs-actions.pod:5833
28124 #, no-wrap
28125 msgid ""
28126 " char **\n"
28127 " guestfs_read_lines (guestfs_h *g,\n"
28128 "                     const char *path);\n"
28129 "\n"
28130 msgstr ""
28131
28132 #. type: textblock
28133 #: ../src/guestfs-actions.pod:5842
28134 msgid ""
28135 "Note that this function cannot correctly handle binary files (specifically, "
28136 "files containing C<\\0> character which is treated as end of line).  For "
28137 "those you need to use the C<guestfs_read_file> function which has a more "
28138 "complex interface."
28139 msgstr ""
28140
28141 #. type: =head2
28142 #: ../src/guestfs-actions.pod:5853
28143 msgid "guestfs_readdir"
28144 msgstr ""
28145
28146 #. type: verbatim
28147 #: ../src/guestfs-actions.pod:5855
28148 #, no-wrap
28149 msgid ""
28150 " struct guestfs_dirent_list *\n"
28151 " guestfs_readdir (guestfs_h *g,\n"
28152 "                  const char *dir);\n"
28153 "\n"
28154 msgstr ""
28155
28156 #. type: textblock
28157 #: ../src/guestfs-actions.pod:5909
28158 msgid ""
28159 "This function is primarily intended for use by programs.  To get a simple "
28160 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
28161 "consumption, use C<guestfs_ll>."
28162 msgstr ""
28163
28164 #. type: textblock
28165 #: ../src/guestfs-actions.pod:5913
28166 msgid ""
28167 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
28168 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
28169 msgstr ""
28170
28171 #. type: =head2
28172 #: ../src/guestfs-actions.pod:5919
28173 msgid "guestfs_readlink"
28174 msgstr ""
28175
28176 #. type: verbatim
28177 #: ../src/guestfs-actions.pod:5921
28178 #, no-wrap
28179 msgid ""
28180 " char *\n"
28181 " guestfs_readlink (guestfs_h *g,\n"
28182 "                   const char *path);\n"
28183 "\n"
28184 msgstr ""
28185
28186 #. type: =head2
28187 #: ../src/guestfs-actions.pod:5932
28188 msgid "guestfs_readlinklist"
28189 msgstr ""
28190
28191 #. type: verbatim
28192 #: ../src/guestfs-actions.pod:5934
28193 #, no-wrap
28194 msgid ""
28195 " char **\n"
28196 " guestfs_readlinklist (guestfs_h *g,\n"
28197 "                       const char *path,\n"
28198 "                       char *const *names);\n"
28199 "\n"
28200 msgstr ""
28201
28202 #. type: =head2
28203 #: ../src/guestfs-actions.pod:5967
28204 msgid "guestfs_realpath"
28205 msgstr ""
28206
28207 #. type: verbatim
28208 #: ../src/guestfs-actions.pod:5969
28209 #, no-wrap
28210 msgid ""
28211 " char *\n"
28212 " guestfs_realpath (guestfs_h *g,\n"
28213 "                   const char *path);\n"
28214 "\n"
28215 msgstr ""
28216
28217 #. type: =head2
28218 #: ../src/guestfs-actions.pod:5981
28219 msgid "guestfs_removexattr"
28220 msgstr ""
28221
28222 #. type: verbatim
28223 #: ../src/guestfs-actions.pod:5983
28224 #, no-wrap
28225 msgid ""
28226 " int\n"
28227 " guestfs_removexattr (guestfs_h *g,\n"
28228 "                      const char *xattr,\n"
28229 "                      const char *path);\n"
28230 "\n"
28231 msgstr ""
28232
28233 #. type: textblock
28234 #: ../src/guestfs-actions.pod:5991
28235 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
28236 msgstr ""
28237
28238 #. type: =head2
28239 #: ../src/guestfs-actions.pod:5997
28240 msgid "guestfs_resize2fs"
28241 msgstr ""
28242
28243 #. type: verbatim
28244 #: ../src/guestfs-actions.pod:5999
28245 #, no-wrap
28246 msgid ""
28247 " int\n"
28248 " guestfs_resize2fs (guestfs_h *g,\n"
28249 "                    const char *device);\n"
28250 "\n"
28251 msgstr ""
28252
28253 #. type: textblock
28254 #: ../src/guestfs-actions.pod:6006
28255 msgid ""
28256 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
28257 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
28258 "sometimes gives an error about this and sometimes not.  In any case, it is "
28259 "always safe to call C<guestfs_e2fsck_f> before calling this function."
28260 msgstr ""
28261
28262 #. type: =head2
28263 #: ../src/guestfs-actions.pod:6016
28264 msgid "guestfs_resize2fs_M"
28265 msgstr ""
28266
28267 #. type: verbatim
28268 #: ../src/guestfs-actions.pod:6018
28269 #, no-wrap
28270 msgid ""
28271 " int\n"
28272 " guestfs_resize2fs_M (guestfs_h *g,\n"
28273 "                      const char *device);\n"
28274 "\n"
28275 msgstr ""
28276
28277 #. type: textblock
28278 #: ../src/guestfs-actions.pod:6022
28279 msgid ""
28280 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
28281 "resized to its minimum size.  This works like the I<-M> option to the "
28282 "C<resize2fs> command."
28283 msgstr ""
28284
28285 #. type: textblock
28286 #: ../src/guestfs-actions.pod:6026
28287 msgid ""
28288 "To get the resulting size of the filesystem you should call "
28289 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
28290 "These two numbers, multiplied together, give the resulting size of the "
28291 "minimal filesystem in bytes."
28292 msgstr ""
28293
28294 #. type: =head2
28295 #: ../src/guestfs-actions.pod:6035
28296 msgid "guestfs_resize2fs_size"
28297 msgstr ""
28298
28299 #. type: verbatim
28300 #: ../src/guestfs-actions.pod:6037
28301 #, no-wrap
28302 msgid ""
28303 " int\n"
28304 " guestfs_resize2fs_size (guestfs_h *g,\n"
28305 "                         const char *device,\n"
28306 "                         int64_t size);\n"
28307 "\n"
28308 msgstr ""
28309
28310 #. type: textblock
28311 #: ../src/guestfs-actions.pod:6042
28312 msgid ""
28313 "This command is the same as C<guestfs_resize2fs> except that it allows you "
28314 "to specify the new size (in bytes) explicitly."
28315 msgstr ""
28316
28317 #. type: =head2
28318 #: ../src/guestfs-actions.pod:6049
28319 msgid "guestfs_rm"
28320 msgstr ""
28321
28322 #. type: verbatim
28323 #: ../src/guestfs-actions.pod:6051
28324 #, no-wrap
28325 msgid ""
28326 " int\n"
28327 " guestfs_rm (guestfs_h *g,\n"
28328 "             const char *path);\n"
28329 "\n"
28330 msgstr ""
28331
28332 #. type: =head2
28333 #: ../src/guestfs-actions.pod:6061
28334 msgid "guestfs_rm_rf"
28335 msgstr ""
28336
28337 #. type: verbatim
28338 #: ../src/guestfs-actions.pod:6063
28339 #, no-wrap
28340 msgid ""
28341 " int\n"
28342 " guestfs_rm_rf (guestfs_h *g,\n"
28343 "                const char *path);\n"
28344 "\n"
28345 msgstr ""
28346
28347 #. type: =head2
28348 #: ../src/guestfs-actions.pod:6075
28349 msgid "guestfs_rmdir"
28350 msgstr ""
28351
28352 #. type: verbatim
28353 #: ../src/guestfs-actions.pod:6077
28354 #, no-wrap
28355 msgid ""
28356 " int\n"
28357 " guestfs_rmdir (guestfs_h *g,\n"
28358 "                const char *path);\n"
28359 "\n"
28360 msgstr ""
28361
28362 #. type: =head2
28363 #: ../src/guestfs-actions.pod:6087
28364 msgid "guestfs_rmmountpoint"
28365 msgstr ""
28366
28367 #. type: verbatim
28368 #: ../src/guestfs-actions.pod:6089
28369 #, no-wrap
28370 msgid ""
28371 " int\n"
28372 " guestfs_rmmountpoint (guestfs_h *g,\n"
28373 "                       const char *exemptpath);\n"
28374 "\n"
28375 msgstr ""
28376
28377 #. type: textblock
28378 #: ../src/guestfs-actions.pod:6093
28379 msgid ""
28380 "This calls removes a mountpoint that was previously created with "
28381 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
28382 msgstr ""
28383
28384 #. type: =head2
28385 #: ../src/guestfs-actions.pod:6101
28386 msgid "guestfs_scrub_device"
28387 msgstr ""
28388
28389 #. type: verbatim
28390 #: ../src/guestfs-actions.pod:6103
28391 #, no-wrap
28392 msgid ""
28393 " int\n"
28394 " guestfs_scrub_device (guestfs_h *g,\n"
28395 "                       const char *device);\n"
28396 "\n"
28397 msgstr ""
28398
28399 #. type: textblock
28400 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6136
28401 #: ../src/guestfs-actions.pod:6155
28402 msgid "(Added in 1.0.52)"
28403 msgstr ""
28404
28405 #. type: =head2
28406 #: ../src/guestfs-actions.pod:6120
28407 msgid "guestfs_scrub_file"
28408 msgstr ""
28409
28410 #. type: verbatim
28411 #: ../src/guestfs-actions.pod:6122
28412 #, no-wrap
28413 msgid ""
28414 " int\n"
28415 " guestfs_scrub_file (guestfs_h *g,\n"
28416 "                     const char *file);\n"
28417 "\n"
28418 msgstr ""
28419
28420 #. type: =head2
28421 #: ../src/guestfs-actions.pod:6138
28422 msgid "guestfs_scrub_freespace"
28423 msgstr ""
28424
28425 #. type: verbatim
28426 #: ../src/guestfs-actions.pod:6140
28427 #, no-wrap
28428 msgid ""
28429 " int\n"
28430 " guestfs_scrub_freespace (guestfs_h *g,\n"
28431 "                          const char *dir);\n"
28432 "\n"
28433 msgstr ""
28434
28435 #. type: textblock
28436 #: ../src/guestfs-actions.pod:6144
28437 msgid ""
28438 "This command creates the directory C<dir> and then fills it with files until "
28439 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
28440 "and deletes them.  The intention is to scrub any free space on the partition "
28441 "containing C<dir>."
28442 msgstr ""
28443
28444 #. type: =head2
28445 #: ../src/guestfs-actions.pod:6157
28446 msgid "guestfs_set_append"
28447 msgstr ""
28448
28449 #. type: verbatim
28450 #: ../src/guestfs-actions.pod:6159
28451 #, no-wrap
28452 msgid ""
28453 " int\n"
28454 " guestfs_set_append (guestfs_h *g,\n"
28455 "                     const char *append);\n"
28456 "\n"
28457 msgstr ""
28458
28459 #. type: =head2
28460 #: ../src/guestfs-actions.pod:6176
28461 msgid "guestfs_set_attach_method"
28462 msgstr ""
28463
28464 #. type: verbatim
28465 #: ../src/guestfs-actions.pod:6178
28466 #, no-wrap
28467 msgid ""
28468 " int\n"
28469 " guestfs_set_attach_method (guestfs_h *g,\n"
28470 "                            const char *attachmethod);\n"
28471 "\n"
28472 msgstr ""
28473
28474 #. type: =head2
28475 #: ../src/guestfs-actions.pod:6206
28476 msgid "guestfs_set_autosync"
28477 msgstr ""
28478
28479 #. type: verbatim
28480 #: ../src/guestfs-actions.pod:6208
28481 #, no-wrap
28482 msgid ""
28483 " int\n"
28484 " guestfs_set_autosync (guestfs_h *g,\n"
28485 "                       int autosync);\n"
28486 "\n"
28487 msgstr ""
28488
28489 #. type: =head2
28490 #: ../src/guestfs-actions.pod:6224
28491 msgid "guestfs_set_direct"
28492 msgstr ""
28493
28494 #. type: verbatim
28495 #: ../src/guestfs-actions.pod:6226
28496 #, no-wrap
28497 msgid ""
28498 " int\n"
28499 " guestfs_set_direct (guestfs_h *g,\n"
28500 "                     int direct);\n"
28501 "\n"
28502 msgstr ""
28503
28504 #. type: textblock
28505 #: ../src/guestfs-actions.pod:6234
28506 msgid ""
28507 "One consequence of this is that log messages aren't caught by the library "
28508 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
28509 "stdout."
28510 msgstr ""
28511
28512 #. type: =head2
28513 #: ../src/guestfs-actions.pod:6247
28514 msgid "guestfs_set_e2label"
28515 msgstr ""
28516
28517 #. type: verbatim
28518 #: ../src/guestfs-actions.pod:6249
28519 #, no-wrap
28520 msgid ""
28521 " int\n"
28522 " guestfs_set_e2label (guestfs_h *g,\n"
28523 "                      const char *device,\n"
28524 "                      const char *label);\n"
28525 "\n"
28526 msgstr ""
28527
28528 #. type: textblock
28529 #: ../src/guestfs-actions.pod:6258
28530 msgid ""
28531 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
28532 "the existing label on a filesystem."
28533 msgstr ""
28534
28535 #. type: =head2
28536 #: ../src/guestfs-actions.pod:6265
28537 msgid "guestfs_set_e2uuid"
28538 msgstr ""
28539
28540 #. type: verbatim
28541 #: ../src/guestfs-actions.pod:6267
28542 #, no-wrap
28543 msgid ""
28544 " int\n"
28545 " guestfs_set_e2uuid (guestfs_h *g,\n"
28546 "                     const char *device,\n"
28547 "                     const char *uuid);\n"
28548 "\n"
28549 msgstr ""
28550
28551 #. type: textblock
28552 #: ../src/guestfs-actions.pod:6277
28553 msgid ""
28554 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
28555 "the existing UUID of a filesystem."
28556 msgstr ""
28557
28558 #. type: =head2
28559 #: ../src/guestfs-actions.pod:6284
28560 msgid "guestfs_set_memsize"
28561 msgstr ""
28562
28563 #. type: verbatim
28564 #: ../src/guestfs-actions.pod:6286
28565 #, no-wrap
28566 msgid ""
28567 " int\n"
28568 " guestfs_set_memsize (guestfs_h *g,\n"
28569 "                      int memsize);\n"
28570 "\n"
28571 msgstr ""
28572
28573 #. type: textblock
28574 #: ../src/guestfs-actions.pod:6290
28575 msgid ""
28576 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28577 "This only has any effect if called before C<guestfs_launch>."
28578 msgstr ""
28579
28580 #. type: =head2
28581 #: ../src/guestfs-actions.pod:6305
28582 msgid "guestfs_set_network"
28583 msgstr ""
28584
28585 #. type: verbatim
28586 #: ../src/guestfs-actions.pod:6307
28587 #, no-wrap
28588 msgid ""
28589 " int\n"
28590 " guestfs_set_network (guestfs_h *g,\n"
28591 "                      int network);\n"
28592 "\n"
28593 msgstr ""
28594
28595 #. type: textblock
28596 #: ../src/guestfs-actions.pod:6317
28597 msgid ""
28598 "You must call this before calling C<guestfs_launch>, otherwise it has no "
28599 "effect."
28600 msgstr ""
28601
28602 #. type: =head2
28603 #: ../src/guestfs-actions.pod:6324
28604 msgid "guestfs_set_path"
28605 msgstr ""
28606
28607 #. type: verbatim
28608 #: ../src/guestfs-actions.pod:6326
28609 #, no-wrap
28610 msgid ""
28611 " int\n"
28612 " guestfs_set_path (guestfs_h *g,\n"
28613 "                   const char *searchpath);\n"
28614 "\n"
28615 msgstr ""
28616
28617 #. type: =head2
28618 #: ../src/guestfs-actions.pod:6341
28619 msgid "guestfs_set_pgroup"
28620 msgstr ""
28621
28622 #. type: verbatim
28623 #: ../src/guestfs-actions.pod:6343
28624 #, no-wrap
28625 msgid ""
28626 " int\n"
28627 " guestfs_set_pgroup (guestfs_h *g,\n"
28628 "                     int pgroup);\n"
28629 "\n"
28630 msgstr ""
28631
28632 #. type: =head2
28633 #: ../src/guestfs-actions.pod:6360
28634 msgid "guestfs_set_qemu"
28635 msgstr ""
28636
28637 #. type: verbatim
28638 #: ../src/guestfs-actions.pod:6362
28639 #, no-wrap
28640 msgid ""
28641 " int\n"
28642 " guestfs_set_qemu (guestfs_h *g,\n"
28643 "                   const char *qemu);\n"
28644 "\n"
28645 msgstr ""
28646
28647 #. type: =head2
28648 #: ../src/guestfs-actions.pod:6388
28649 msgid "guestfs_set_recovery_proc"
28650 msgstr ""
28651
28652 #. type: verbatim
28653 #: ../src/guestfs-actions.pod:6390
28654 #, no-wrap
28655 msgid ""
28656 " int\n"
28657 " guestfs_set_recovery_proc (guestfs_h *g,\n"
28658 "                            int recoveryproc);\n"
28659 "\n"
28660 msgstr ""
28661
28662 #. type: textblock
28663 #: ../src/guestfs-actions.pod:6394
28664 msgid ""
28665 "If this is called with the parameter C<false> then C<guestfs_launch> does "
28666 "not create a recovery process.  The purpose of the recovery process is to "
28667 "stop runaway qemu processes in the case where the main program aborts "
28668 "abruptly."
28669 msgstr ""
28670
28671 #. type: textblock
28672 #: ../src/guestfs-actions.pod:6399
28673 msgid ""
28674 "This only has any effect if called before C<guestfs_launch>, and the default "
28675 "is true."
28676 msgstr ""
28677
28678 #. type: =head2
28679 #: ../src/guestfs-actions.pod:6412
28680 msgid "guestfs_set_selinux"
28681 msgstr ""
28682
28683 #. type: verbatim
28684 #: ../src/guestfs-actions.pod:6414
28685 #, no-wrap
28686 msgid ""
28687 " int\n"
28688 " guestfs_set_selinux (guestfs_h *g,\n"
28689 "                      int selinux);\n"
28690 "\n"
28691 msgstr ""
28692
28693 #. type: =head2
28694 #: ../src/guestfs-actions.pod:6431
28695 msgid "guestfs_set_trace"
28696 msgstr ""
28697
28698 #. type: verbatim
28699 #: ../src/guestfs-actions.pod:6433
28700 #, no-wrap
28701 msgid ""
28702 " int\n"
28703 " guestfs_set_trace (guestfs_h *g,\n"
28704 "                    int trace);\n"
28705 "\n"
28706 msgstr ""
28707
28708 #. type: textblock
28709 #: ../src/guestfs-actions.pod:6447
28710 msgid ""
28711 "Trace messages are normally sent to C<stderr>, unless you register a "
28712 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28713 msgstr ""
28714
28715 #. type: =head2
28716 #: ../src/guestfs-actions.pod:6455
28717 msgid "guestfs_set_verbose"
28718 msgstr ""
28719
28720 #. type: verbatim
28721 #: ../src/guestfs-actions.pod:6457
28722 #, no-wrap
28723 msgid ""
28724 " int\n"
28725 " guestfs_set_verbose (guestfs_h *g,\n"
28726 "                      int verbose);\n"
28727 "\n"
28728 msgstr ""
28729
28730 #. type: textblock
28731 #: ../src/guestfs-actions.pod:6466
28732 msgid ""
28733 "Verbose messages are normally sent to C<stderr>, unless you register a "
28734 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28735 msgstr ""
28736
28737 #. type: =head2
28738 #: ../src/guestfs-actions.pod:6474
28739 msgid "guestfs_setcon"
28740 msgstr ""
28741
28742 #. type: verbatim
28743 #: ../src/guestfs-actions.pod:6476
28744 #, no-wrap
28745 msgid ""
28746 " int\n"
28747 " guestfs_setcon (guestfs_h *g,\n"
28748 "                 const char *context);\n"
28749 "\n"
28750 msgstr ""
28751
28752 #. type: =head2
28753 #: ../src/guestfs-actions.pod:6489
28754 msgid "guestfs_setxattr"
28755 msgstr ""
28756
28757 #. type: verbatim
28758 #: ../src/guestfs-actions.pod:6491
28759 #, no-wrap
28760 msgid ""
28761 " int\n"
28762 " guestfs_setxattr (guestfs_h *g,\n"
28763 "                   const char *xattr,\n"
28764 "                   const char *val,\n"
28765 "                   int vallen,\n"
28766 "                   const char *path);\n"
28767 "\n"
28768 msgstr ""
28769
28770 #. type: textblock
28771 #: ../src/guestfs-actions.pod:6502
28772 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
28773 msgstr ""
28774
28775 #. type: =head2
28776 #: ../src/guestfs-actions.pod:6508
28777 msgid "guestfs_sfdisk"
28778 msgstr ""
28779
28780 #. type: verbatim
28781 #: ../src/guestfs-actions.pod:6510
28782 #, no-wrap
28783 msgid ""
28784 " int\n"
28785 " guestfs_sfdisk (guestfs_h *g,\n"
28786 "                 const char *device,\n"
28787 "                 int cyls,\n"
28788 "                 int heads,\n"
28789 "                 int sectors,\n"
28790 "                 char *const *lines);\n"
28791 "\n"
28792 msgstr ""
28793
28794 #. type: textblock
28795 #: ../src/guestfs-actions.pod:6538
28796 msgid ""
28797 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
28798 msgstr ""
28799
28800 #. type: textblock
28801 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6576
28802 #: ../src/guestfs-actions.pod:6609
28803 msgid ""
28804 "This function is deprecated.  In new code, use the L</guestfs_part_add> call "
28805 "instead."
28806 msgstr ""
28807
28808 #. type: =head2
28809 #: ../src/guestfs-actions.pod:6555
28810 msgid "guestfs_sfdiskM"
28811 msgstr ""
28812
28813 #. type: verbatim
28814 #: ../src/guestfs-actions.pod:6557
28815 #, no-wrap
28816 msgid ""
28817 " int\n"
28818 " guestfs_sfdiskM (guestfs_h *g,\n"
28819 "                  const char *device,\n"
28820 "                  char *const *lines);\n"
28821 "\n"
28822 msgstr ""
28823
28824 #. type: textblock
28825 #: ../src/guestfs-actions.pod:6562
28826 msgid ""
28827 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
28828 "partition sizes are specified in megabytes only (rounded to the nearest "
28829 "cylinder) and you don't need to specify the cyls, heads and sectors "
28830 "parameters which were rarely if ever used anyway."
28831 msgstr ""
28832
28833 #. type: textblock
28834 #: ../src/guestfs-actions.pod:6568
28835 msgid ""
28836 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
28837 "C<guestfs_part_disk>"
28838 msgstr ""
28839
28840 #. type: =head2
28841 #: ../src/guestfs-actions.pod:6585
28842 msgid "guestfs_sfdisk_N"
28843 msgstr ""
28844
28845 #. type: verbatim
28846 #: ../src/guestfs-actions.pod:6587
28847 #, no-wrap
28848 msgid ""
28849 " int\n"
28850 " guestfs_sfdisk_N (guestfs_h *g,\n"
28851 "                   const char *device,\n"
28852 "                   int partnum,\n"
28853 "                   int cyls,\n"
28854 "                   int heads,\n"
28855 "                   int sectors,\n"
28856 "                   const char *line);\n"
28857 "\n"
28858 msgstr ""
28859
28860 #. type: textblock
28861 #: ../src/guestfs-actions.pod:6599
28862 msgid ""
28863 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
28864 "for the cyls/heads/sectors parameters."
28865 msgstr ""
28866
28867 #. type: textblock
28868 #: ../src/guestfs-actions.pod:6602
28869 msgid "See also: C<guestfs_part_add>"
28870 msgstr ""
28871
28872 #. type: =head2
28873 #: ../src/guestfs-actions.pod:6618
28874 msgid "guestfs_sfdisk_disk_geometry"
28875 msgstr ""
28876
28877 #. type: verbatim
28878 #: ../src/guestfs-actions.pod:6620
28879 #, no-wrap
28880 msgid ""
28881 " char *\n"
28882 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
28883 "                               const char *device);\n"
28884 "\n"
28885 msgstr ""
28886
28887 #. type: textblock
28888 #: ../src/guestfs-actions.pod:6624
28889 msgid ""
28890 "This displays the disk geometry of C<device> read from the partition table.  "
28891 "Especially in the case where the underlying block device has been resized, "
28892 "this can be different from the kernel's idea of the geometry (see "
28893 "C<guestfs_sfdisk_kernel_geometry>)."
28894 msgstr ""
28895
28896 #. type: =head2
28897 #: ../src/guestfs-actions.pod:6637
28898 msgid "guestfs_sfdisk_kernel_geometry"
28899 msgstr ""
28900
28901 #. type: verbatim
28902 #: ../src/guestfs-actions.pod:6639
28903 #, no-wrap
28904 msgid ""
28905 " char *\n"
28906 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
28907 "                                 const char *device);\n"
28908 "\n"
28909 msgstr ""
28910
28911 #. type: =head2
28912 #: ../src/guestfs-actions.pod:6653
28913 msgid "guestfs_sfdisk_l"
28914 msgstr ""
28915
28916 #. type: verbatim
28917 #: ../src/guestfs-actions.pod:6655
28918 #, no-wrap
28919 msgid ""
28920 " char *\n"
28921 " guestfs_sfdisk_l (guestfs_h *g,\n"
28922 "                   const char *device);\n"
28923 "\n"
28924 msgstr ""
28925
28926 #. type: textblock
28927 #: ../src/guestfs-actions.pod:6663
28928 msgid "See also: C<guestfs_part_list>"
28929 msgstr ""
28930
28931 #. type: textblock
28932 #: ../src/guestfs-actions.pod:6668
28933 msgid ""
28934 "This function is deprecated.  In new code, use the L</guestfs_part_list> "
28935 "call instead."
28936 msgstr ""
28937
28938 #. type: =head2
28939 #: ../src/guestfs-actions.pod:6677
28940 msgid "guestfs_sh"
28941 msgstr ""
28942
28943 #. type: verbatim
28944 #: ../src/guestfs-actions.pod:6679
28945 #, no-wrap
28946 msgid ""
28947 " char *\n"
28948 " guestfs_sh (guestfs_h *g,\n"
28949 "             const char *command);\n"
28950 "\n"
28951 msgstr ""
28952
28953 #. type: textblock
28954 #: ../src/guestfs-actions.pod:6686
28955 msgid "This is like C<guestfs_command>, but passes the command to:"
28956 msgstr ""
28957
28958 #. type: textblock
28959 #: ../src/guestfs-actions.pod:6694
28960 msgid "All the provisos about C<guestfs_command> apply to this call."
28961 msgstr ""
28962
28963 #. type: =head2
28964 #: ../src/guestfs-actions.pod:6701
28965 msgid "guestfs_sh_lines"
28966 msgstr ""
28967
28968 #. type: verbatim
28969 #: ../src/guestfs-actions.pod:6703
28970 #, no-wrap
28971 msgid ""
28972 " char **\n"
28973 " guestfs_sh_lines (guestfs_h *g,\n"
28974 "                   const char *command);\n"
28975 "\n"
28976 msgstr ""
28977
28978 #. type: textblock
28979 #: ../src/guestfs-actions.pod:6707
28980 msgid ""
28981 "This is the same as C<guestfs_sh>, but splits the result into a list of "
28982 "lines."
28983 msgstr ""
28984
28985 #. type: textblock
28986 #: ../src/guestfs-actions.pod:6710
28987 msgid "See also: C<guestfs_command_lines>"
28988 msgstr ""
28989
28990 #. type: =head2
28991 #: ../src/guestfs-actions.pod:6718
28992 msgid "guestfs_sleep"
28993 msgstr ""
28994
28995 #. type: verbatim
28996 #: ../src/guestfs-actions.pod:6720
28997 #, no-wrap
28998 msgid ""
28999 " int\n"
29000 " guestfs_sleep (guestfs_h *g,\n"
29001 "                int secs);\n"
29002 "\n"
29003 msgstr ""
29004
29005 #. type: textblock
29006 #: ../src/guestfs-actions.pod:6728
29007 msgid "(Added in 1.0.41)"
29008 msgstr ""
29009
29010 #. type: =head2
29011 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-structs.pod:109
29012 msgid "guestfs_stat"
29013 msgstr ""
29014
29015 #. type: verbatim
29016 #: ../src/guestfs-actions.pod:6732
29017 #, no-wrap
29018 msgid ""
29019 " struct guestfs_stat *\n"
29020 " guestfs_stat (guestfs_h *g,\n"
29021 "               const char *path);\n"
29022 "\n"
29023 msgstr ""
29024
29025 #. type: =head2
29026 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-structs.pod:135
29027 msgid "guestfs_statvfs"
29028 msgstr ""
29029
29030 #. type: verbatim
29031 #: ../src/guestfs-actions.pod:6748
29032 #, no-wrap
29033 msgid ""
29034 " struct guestfs_statvfs *\n"
29035 " guestfs_statvfs (guestfs_h *g,\n"
29036 "                  const char *path);\n"
29037 "\n"
29038 msgstr ""
29039
29040 #. type: textblock
29041 #: ../src/guestfs-actions.pod:6758
29042 msgid ""
29043 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
29044 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
29045 msgstr ""
29046
29047 #. type: =head2
29048 #: ../src/guestfs-actions.pod:6764
29049 msgid "guestfs_strings"
29050 msgstr ""
29051
29052 #. type: verbatim
29053 #: ../src/guestfs-actions.pod:6766
29054 #, no-wrap
29055 msgid ""
29056 " char **\n"
29057 " guestfs_strings (guestfs_h *g,\n"
29058 "                  const char *path);\n"
29059 "\n"
29060 msgstr ""
29061
29062 #. type: =head2
29063 #: ../src/guestfs-actions.pod:6782
29064 msgid "guestfs_strings_e"
29065 msgstr ""
29066
29067 #. type: verbatim
29068 #: ../src/guestfs-actions.pod:6784
29069 #, no-wrap
29070 msgid ""
29071 " char **\n"
29072 " guestfs_strings_e (guestfs_h *g,\n"
29073 "                    const char *encoding,\n"
29074 "                    const char *path);\n"
29075 "\n"
29076 msgstr ""
29077
29078 #. type: textblock
29079 #: ../src/guestfs-actions.pod:6789
29080 msgid ""
29081 "This is like the C<guestfs_strings> command, but allows you to specify the "
29082 "encoding of strings that are looked for in the source file C<path>."
29083 msgstr ""
29084
29085 #. type: textblock
29086 #: ../src/guestfs-actions.pod:6799
29087 msgid ""
29088 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29089 "ISO-8859-X (this is what C<guestfs_strings> uses)."
29090 msgstr ""
29091
29092 #. type: =head2
29093 #: ../src/guestfs-actions.pod:6837
29094 msgid "guestfs_swapoff_device"
29095 msgstr ""
29096
29097 #. type: verbatim
29098 #: ../src/guestfs-actions.pod:6839
29099 #, no-wrap
29100 msgid ""
29101 " int\n"
29102 " guestfs_swapoff_device (guestfs_h *g,\n"
29103 "                         const char *device);\n"
29104 "\n"
29105 msgstr ""
29106
29107 #. type: textblock
29108 #: ../src/guestfs-actions.pod:6843
29109 msgid ""
29110 "This command disables the libguestfs appliance swap device or partition "
29111 "named C<device>.  See C<guestfs_swapon_device>."
29112 msgstr ""
29113
29114 #. type: =head2
29115 #: ../src/guestfs-actions.pod:6851
29116 msgid "guestfs_swapoff_file"
29117 msgstr ""
29118
29119 #. type: verbatim
29120 #: ../src/guestfs-actions.pod:6853
29121 #, no-wrap
29122 msgid ""
29123 " int\n"
29124 " guestfs_swapoff_file (guestfs_h *g,\n"
29125 "                       const char *file);\n"
29126 "\n"
29127 msgstr ""
29128
29129 #. type: =head2
29130 #: ../src/guestfs-actions.pod:6863
29131 msgid "guestfs_swapoff_label"
29132 msgstr ""
29133
29134 #. type: verbatim
29135 #: ../src/guestfs-actions.pod:6865
29136 #, no-wrap
29137 msgid ""
29138 " int\n"
29139 " guestfs_swapoff_label (guestfs_h *g,\n"
29140 "                        const char *label);\n"
29141 "\n"
29142 msgstr ""
29143
29144 #. type: =head2
29145 #: ../src/guestfs-actions.pod:6876
29146 msgid "guestfs_swapoff_uuid"
29147 msgstr ""
29148
29149 #. type: verbatim
29150 #: ../src/guestfs-actions.pod:6878
29151 #, no-wrap
29152 msgid ""
29153 " int\n"
29154 " guestfs_swapoff_uuid (guestfs_h *g,\n"
29155 "                       const char *uuid);\n"
29156 "\n"
29157 msgstr ""
29158
29159 #. type: =head2
29160 #: ../src/guestfs-actions.pod:6889
29161 msgid "guestfs_swapon_device"
29162 msgstr ""
29163
29164 #. type: verbatim
29165 #: ../src/guestfs-actions.pod:6891
29166 #, no-wrap
29167 msgid ""
29168 " int\n"
29169 " guestfs_swapon_device (guestfs_h *g,\n"
29170 "                        const char *device);\n"
29171 "\n"
29172 msgstr ""
29173
29174 #. type: textblock
29175 #: ../src/guestfs-actions.pod:6895
29176 msgid ""
29177 "This command enables the libguestfs appliance to use the swap device or "
29178 "partition named C<device>.  The increased memory is made available for all "
29179 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
29180 msgstr ""
29181
29182 #. type: =head2
29183 #: ../src/guestfs-actions.pod:6911
29184 msgid "guestfs_swapon_file"
29185 msgstr ""
29186
29187 #. type: verbatim
29188 #: ../src/guestfs-actions.pod:6913
29189 #, no-wrap
29190 msgid ""
29191 " int\n"
29192 " guestfs_swapon_file (guestfs_h *g,\n"
29193 "                      const char *file);\n"
29194 "\n"
29195 msgstr ""
29196
29197 #. type: textblock
29198 #: ../src/guestfs-actions.pod:6917
29199 msgid ""
29200 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
29201 "notes."
29202 msgstr ""
29203
29204 #. type: =head2
29205 #: ../src/guestfs-actions.pod:6924
29206 msgid "guestfs_swapon_label"
29207 msgstr ""
29208
29209 #. type: verbatim
29210 #: ../src/guestfs-actions.pod:6926
29211 #, no-wrap
29212 msgid ""
29213 " int\n"
29214 " guestfs_swapon_label (guestfs_h *g,\n"
29215 "                       const char *label);\n"
29216 "\n"
29217 msgstr ""
29218
29219 #. type: textblock
29220 #: ../src/guestfs-actions.pod:6930
29221 msgid ""
29222 "This command enables swap to a labeled swap partition.  See "
29223 "C<guestfs_swapon_device> for other notes."
29224 msgstr ""
29225
29226 #. type: =head2
29227 #: ../src/guestfs-actions.pod:6937
29228 msgid "guestfs_swapon_uuid"
29229 msgstr ""
29230
29231 #. type: verbatim
29232 #: ../src/guestfs-actions.pod:6939
29233 #, no-wrap
29234 msgid ""
29235 " int\n"
29236 " guestfs_swapon_uuid (guestfs_h *g,\n"
29237 "                      const char *uuid);\n"
29238 "\n"
29239 msgstr ""
29240
29241 #. type: textblock
29242 #: ../src/guestfs-actions.pod:6943
29243 msgid ""
29244 "This command enables swap to a swap partition with the given UUID.  See "
29245 "C<guestfs_swapon_device> for other notes."
29246 msgstr ""
29247
29248 #. type: =head2
29249 #: ../src/guestfs-actions.pod:6950
29250 msgid "guestfs_sync"
29251 msgstr ""
29252
29253 #. type: verbatim
29254 #: ../src/guestfs-actions.pod:6952
29255 #, no-wrap
29256 msgid ""
29257 " int\n"
29258 " guestfs_sync (guestfs_h *g);\n"
29259 "\n"
29260 msgstr ""
29261
29262 #. type: =head2
29263 #: ../src/guestfs-actions.pod:6965
29264 msgid "guestfs_tail"
29265 msgstr ""
29266
29267 #. type: verbatim
29268 #: ../src/guestfs-actions.pod:6967
29269 #, no-wrap
29270 msgid ""
29271 " char **\n"
29272 " guestfs_tail (guestfs_h *g,\n"
29273 "               const char *path);\n"
29274 "\n"
29275 msgstr ""
29276
29277 #. type: =head2
29278 #: ../src/guestfs-actions.pod:6983
29279 msgid "guestfs_tail_n"
29280 msgstr ""
29281
29282 #. type: verbatim
29283 #: ../src/guestfs-actions.pod:6985
29284 #, no-wrap
29285 msgid ""
29286 " char **\n"
29287 " guestfs_tail_n (guestfs_h *g,\n"
29288 "                 int nrlines,\n"
29289 "                 const char *path);\n"
29290 "\n"
29291 msgstr ""
29292
29293 #. type: =head2
29294 #: ../src/guestfs-actions.pod:7007
29295 msgid "guestfs_tar_in"
29296 msgstr ""
29297
29298 #. type: verbatim
29299 #: ../src/guestfs-actions.pod:7009
29300 #, no-wrap
29301 msgid ""
29302 " int\n"
29303 " guestfs_tar_in (guestfs_h *g,\n"
29304 "                 const char *tarfile,\n"
29305 "                 const char *directory);\n"
29306 "\n"
29307 msgstr ""
29308
29309 #. type: textblock
29310 #: ../src/guestfs-actions.pod:7017
29311 msgid ""
29312 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
29313 msgstr ""
29314
29315 #. type: textblock
29316 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7039
29317 #: ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7071
29318 msgid "(Added in 1.0.3)"
29319 msgstr ""
29320
29321 #. type: =head2
29322 #: ../src/guestfs-actions.pod:7024
29323 msgid "guestfs_tar_out"
29324 msgstr ""
29325
29326 #. type: verbatim
29327 #: ../src/guestfs-actions.pod:7026
29328 #, no-wrap
29329 msgid ""
29330 " int\n"
29331 " guestfs_tar_out (guestfs_h *g,\n"
29332 "                  const char *directory,\n"
29333 "                  const char *tarfile);\n"
29334 "\n"
29335 msgstr ""
29336
29337 #. type: textblock
29338 #: ../src/guestfs-actions.pod:7034
29339 msgid ""
29340 "To download a compressed tarball, use C<guestfs_tgz_out> or "
29341 "C<guestfs_txz_out>."
29342 msgstr ""
29343
29344 #. type: =head2
29345 #: ../src/guestfs-actions.pod:7041
29346 msgid "guestfs_tgz_in"
29347 msgstr ""
29348
29349 #. type: verbatim
29350 #: ../src/guestfs-actions.pod:7043
29351 #, no-wrap
29352 msgid ""
29353 " int\n"
29354 " guestfs_tgz_in (guestfs_h *g,\n"
29355 "                 const char *tarball,\n"
29356 "                 const char *directory);\n"
29357 "\n"
29358 msgstr ""
29359
29360 #. type: textblock
29361 #: ../src/guestfs-actions.pod:7051
29362 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
29363 msgstr ""
29364
29365 #. type: =head2
29366 #: ../src/guestfs-actions.pod:7057
29367 msgid "guestfs_tgz_out"
29368 msgstr ""
29369
29370 #. type: verbatim
29371 #: ../src/guestfs-actions.pod:7059
29372 #, no-wrap
29373 msgid ""
29374 " int\n"
29375 " guestfs_tgz_out (guestfs_h *g,\n"
29376 "                  const char *directory,\n"
29377 "                  const char *tarball);\n"
29378 "\n"
29379 msgstr ""
29380
29381 #. type: textblock
29382 #: ../src/guestfs-actions.pod:7067
29383 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
29384 msgstr ""
29385
29386 #. type: =head2
29387 #: ../src/guestfs-actions.pod:7073
29388 msgid "guestfs_touch"
29389 msgstr ""
29390
29391 #. type: verbatim
29392 #: ../src/guestfs-actions.pod:7075
29393 #, no-wrap
29394 msgid ""
29395 " int\n"
29396 " guestfs_touch (guestfs_h *g,\n"
29397 "                const char *path);\n"
29398 "\n"
29399 msgstr ""
29400
29401 #. type: =head2
29402 #: ../src/guestfs-actions.pod:7090
29403 msgid "guestfs_truncate"
29404 msgstr ""
29405
29406 #. type: verbatim
29407 #: ../src/guestfs-actions.pod:7092
29408 #, no-wrap
29409 msgid ""
29410 " int\n"
29411 " guestfs_truncate (guestfs_h *g,\n"
29412 "                   const char *path);\n"
29413 "\n"
29414 msgstr ""
29415
29416 #. type: =head2
29417 #: ../src/guestfs-actions.pod:7103
29418 msgid "guestfs_truncate_size"
29419 msgstr ""
29420
29421 #. type: verbatim
29422 #: ../src/guestfs-actions.pod:7105
29423 #, no-wrap
29424 msgid ""
29425 " int\n"
29426 " guestfs_truncate_size (guestfs_h *g,\n"
29427 "                        const char *path,\n"
29428 "                        int64_t size);\n"
29429 "\n"
29430 msgstr ""
29431
29432 #. type: textblock
29433 #: ../src/guestfs-actions.pod:7113
29434 msgid ""
29435 "If the current file size is less than C<size> then the file is extended to "
29436 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29437 "blocks are not allocated for the file until you write to it).  To create a "
29438 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
29439 msgstr ""
29440
29441 #. type: =head2
29442 #: ../src/guestfs-actions.pod:7123
29443 msgid "guestfs_tune2fs_l"
29444 msgstr ""
29445
29446 #. type: verbatim
29447 #: ../src/guestfs-actions.pod:7125
29448 #, no-wrap
29449 msgid ""
29450 " char **\n"
29451 " guestfs_tune2fs_l (guestfs_h *g,\n"
29452 "                    const char *device);\n"
29453 "\n"
29454 msgstr ""
29455
29456 #. type: =head2
29457 #: ../src/guestfs-actions.pod:7145
29458 msgid "guestfs_txz_in"
29459 msgstr ""
29460
29461 #. type: verbatim
29462 #: ../src/guestfs-actions.pod:7147
29463 #, no-wrap
29464 msgid ""
29465 " int\n"
29466 " guestfs_txz_in (guestfs_h *g,\n"
29467 "                 const char *tarball,\n"
29468 "                 const char *directory);\n"
29469 "\n"
29470 msgstr ""
29471
29472 #. type: =head2
29473 #: ../src/guestfs-actions.pod:7159
29474 msgid "guestfs_txz_out"
29475 msgstr ""
29476
29477 #. type: verbatim
29478 #: ../src/guestfs-actions.pod:7161
29479 #, no-wrap
29480 msgid ""
29481 " int\n"
29482 " guestfs_txz_out (guestfs_h *g,\n"
29483 "                  const char *directory,\n"
29484 "                  const char *tarball);\n"
29485 "\n"
29486 msgstr ""
29487
29488 #. type: =head2
29489 #: ../src/guestfs-actions.pod:7173
29490 msgid "guestfs_umask"
29491 msgstr ""
29492
29493 #. type: verbatim
29494 #: ../src/guestfs-actions.pod:7175
29495 #, no-wrap
29496 msgid ""
29497 " int\n"
29498 " guestfs_umask (guestfs_h *g,\n"
29499 "                int mask);\n"
29500 "\n"
29501 msgstr ""
29502
29503 #. type: textblock
29504 #: ../src/guestfs-actions.pod:7191
29505 msgid ""
29506 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
29507 "C<guestfs_mkdir>."
29508 msgstr ""
29509
29510 #. type: =head2
29511 #: ../src/guestfs-actions.pod:7200
29512 msgid "guestfs_umount"
29513 msgstr ""
29514
29515 #. type: verbatim
29516 #: ../src/guestfs-actions.pod:7202
29517 #, no-wrap
29518 msgid ""
29519 " int\n"
29520 " guestfs_umount (guestfs_h *g,\n"
29521 "                 const char *pathordevice);\n"
29522 "\n"
29523 msgstr ""
29524
29525 #. type: =head2
29526 #: ../src/guestfs-actions.pod:7214
29527 msgid "guestfs_umount_all"
29528 msgstr ""
29529
29530 #. type: verbatim
29531 #: ../src/guestfs-actions.pod:7216
29532 #, no-wrap
29533 msgid ""
29534 " int\n"
29535 " guestfs_umount_all (guestfs_h *g);\n"
29536 "\n"
29537 msgstr ""
29538
29539 #. type: =head2
29540 #: ../src/guestfs-actions.pod:7227
29541 msgid "guestfs_upload"
29542 msgstr ""
29543
29544 #. type: verbatim
29545 #: ../src/guestfs-actions.pod:7229
29546 #, no-wrap
29547 msgid ""
29548 " int\n"
29549 " guestfs_upload (guestfs_h *g,\n"
29550 "                 const char *filename,\n"
29551 "                 const char *remotefilename);\n"
29552 "\n"
29553 msgstr ""
29554
29555 #. type: textblock
29556 #: ../src/guestfs-actions.pod:7239
29557 msgid "See also C<guestfs_download>."
29558 msgstr ""
29559
29560 #. type: =head2
29561 #: ../src/guestfs-actions.pod:7250
29562 msgid "guestfs_upload_offset"
29563 msgstr ""
29564
29565 #. type: verbatim
29566 #: ../src/guestfs-actions.pod:7252
29567 #, no-wrap
29568 msgid ""
29569 " int\n"
29570 " guestfs_upload_offset (guestfs_h *g,\n"
29571 "                        const char *filename,\n"
29572 "                        const char *remotefilename,\n"
29573 "                        int64_t offset);\n"
29574 "\n"
29575 msgstr ""
29576
29577 #. type: textblock
29578 #: ../src/guestfs-actions.pod:7268
29579 msgid ""
29580 "Note that there is no limit on the amount of data that can be uploaded with "
29581 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
29582 "full amount unless an error occurs."
29583 msgstr ""
29584
29585 #. type: textblock
29586 #: ../src/guestfs-actions.pod:7273
29587 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
29588 msgstr ""
29589
29590 #. type: =head2
29591 #: ../src/guestfs-actions.pod:7284
29592 msgid "guestfs_utimens"
29593 msgstr ""
29594
29595 #. type: verbatim
29596 #: ../src/guestfs-actions.pod:7286
29597 #, no-wrap
29598 msgid ""
29599 " int\n"
29600 " guestfs_utimens (guestfs_h *g,\n"
29601 "                  const char *path,\n"
29602 "                  int64_t atsecs,\n"
29603 "                  int64_t atnsecs,\n"
29604 "                  int64_t mtsecs,\n"
29605 "                  int64_t mtnsecs);\n"
29606 "\n"
29607 msgstr ""
29608
29609 #. type: =head2
29610 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-structs.pod:175
29611 msgid "guestfs_version"
29612 msgstr ""
29613
29614 #. type: verbatim
29615 #: ../src/guestfs-actions.pod:7317
29616 #, no-wrap
29617 msgid ""
29618 " struct guestfs_version *\n"
29619 " guestfs_version (guestfs_h *g);\n"
29620 "\n"
29621 msgstr ""
29622
29623 #. type: textblock
29624 #: ../src/guestfs-actions.pod:7345
29625 msgid ""
29626 "I<Note:> Don't use this call to test for availability of features.  In "
29627 "enterprise distributions we backport features from later versions into "
29628 "earlier versions, making this an unreliable way to test for features.  Use "
29629 "C<guestfs_available> instead."
29630 msgstr ""
29631
29632 #. type: textblock
29633 #: ../src/guestfs-actions.pod:7351
29634 msgid ""
29635 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
29636 "error.  I<The caller must call C<guestfs_free_version> after use>."
29637 msgstr ""
29638
29639 #. type: textblock
29640 #: ../src/guestfs-actions.pod:7355
29641 msgid "(Added in 1.0.58)"
29642 msgstr ""
29643
29644 #. type: =head2
29645 #: ../src/guestfs-actions.pod:7357
29646 msgid "guestfs_vfs_label"
29647 msgstr ""
29648
29649 #. type: verbatim
29650 #: ../src/guestfs-actions.pod:7359
29651 #, no-wrap
29652 msgid ""
29653 " char *\n"
29654 " guestfs_vfs_label (guestfs_h *g,\n"
29655 "                    const char *device);\n"
29656 "\n"
29657 msgstr ""
29658
29659 #. type: textblock
29660 #: ../src/guestfs-actions.pod:7368
29661 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
29662 msgstr ""
29663
29664 #. type: textblock
29665 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7410
29666 msgid "(Added in 1.3.18)"
29667 msgstr ""
29668
29669 #. type: =head2
29670 #: ../src/guestfs-actions.pod:7375
29671 msgid "guestfs_vfs_type"
29672 msgstr ""
29673
29674 #. type: verbatim
29675 #: ../src/guestfs-actions.pod:7377
29676 #, no-wrap
29677 msgid ""
29678 " char *\n"
29679 " guestfs_vfs_type (guestfs_h *g,\n"
29680 "                   const char *device);\n"
29681 "\n"
29682 msgstr ""
29683
29684 #. type: =head2
29685 #: ../src/guestfs-actions.pod:7394
29686 msgid "guestfs_vfs_uuid"
29687 msgstr ""
29688
29689 #. type: verbatim
29690 #: ../src/guestfs-actions.pod:7396
29691 #, no-wrap
29692 msgid ""
29693 " char *\n"
29694 " guestfs_vfs_uuid (guestfs_h *g,\n"
29695 "                   const char *device);\n"
29696 "\n"
29697 msgstr ""
29698
29699 #. type: textblock
29700 #: ../src/guestfs-actions.pod:7405
29701 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
29702 msgstr ""
29703
29704 #. type: =head2
29705 #: ../src/guestfs-actions.pod:7412
29706 msgid "guestfs_vg_activate"
29707 msgstr ""
29708
29709 #. type: verbatim
29710 #: ../src/guestfs-actions.pod:7414
29711 #, no-wrap
29712 msgid ""
29713 " int\n"
29714 " guestfs_vg_activate (guestfs_h *g,\n"
29715 "                      int activate,\n"
29716 "                      char *const *volgroups);\n"
29717 "\n"
29718 msgstr ""
29719
29720 #. type: =head2
29721 #: ../src/guestfs-actions.pod:7431
29722 msgid "guestfs_vg_activate_all"
29723 msgstr ""
29724
29725 #. type: verbatim
29726 #: ../src/guestfs-actions.pod:7433
29727 #, no-wrap
29728 msgid ""
29729 " int\n"
29730 " guestfs_vg_activate_all (guestfs_h *g,\n"
29731 "                          int activate);\n"
29732 "\n"
29733 msgstr ""
29734
29735 #. type: =head2
29736 #: ../src/guestfs-actions.pod:7446
29737 msgid "guestfs_vgcreate"
29738 msgstr ""
29739
29740 #. type: verbatim
29741 #: ../src/guestfs-actions.pod:7448
29742 #, no-wrap
29743 msgid ""
29744 " int\n"
29745 " guestfs_vgcreate (guestfs_h *g,\n"
29746 "                   const char *volgroup,\n"
29747 "                   char *const *physvols);\n"
29748 "\n"
29749 msgstr ""
29750
29751 #. type: =head2
29752 #: ../src/guestfs-actions.pod:7460
29753 msgid "guestfs_vglvuuids"
29754 msgstr ""
29755
29756 #. type: verbatim
29757 #: ../src/guestfs-actions.pod:7462
29758 #, no-wrap
29759 msgid ""
29760 " char **\n"
29761 " guestfs_vglvuuids (guestfs_h *g,\n"
29762 "                    const char *vgname);\n"
29763 "\n"
29764 msgstr ""
29765
29766 #. type: textblock
29767 #: ../src/guestfs-actions.pod:7469
29768 msgid ""
29769 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
29770 "associate logical volumes and volume groups."
29771 msgstr ""
29772
29773 #. type: textblock
29774 #: ../src/guestfs-actions.pod:7472
29775 msgid "See also C<guestfs_vgpvuuids>."
29776 msgstr ""
29777
29778 #. type: =head2
29779 #: ../src/guestfs-actions.pod:7480
29780 msgid "guestfs_vgpvuuids"
29781 msgstr ""
29782
29783 #. type: verbatim
29784 #: ../src/guestfs-actions.pod:7482
29785 #, no-wrap
29786 msgid ""
29787 " char **\n"
29788 " guestfs_vgpvuuids (guestfs_h *g,\n"
29789 "                    const char *vgname);\n"
29790 "\n"
29791 msgstr ""
29792
29793 #. type: textblock
29794 #: ../src/guestfs-actions.pod:7489
29795 msgid ""
29796 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
29797 "associate physical volumes and volume groups."
29798 msgstr ""
29799
29800 #. type: textblock
29801 #: ../src/guestfs-actions.pod:7492
29802 msgid "See also C<guestfs_vglvuuids>."
29803 msgstr ""
29804
29805 #. type: =head2
29806 #: ../src/guestfs-actions.pod:7500
29807 msgid "guestfs_vgremove"
29808 msgstr ""
29809
29810 #. type: verbatim
29811 #: ../src/guestfs-actions.pod:7502
29812 #, no-wrap
29813 msgid ""
29814 " int\n"
29815 " guestfs_vgremove (guestfs_h *g,\n"
29816 "                   const char *vgname);\n"
29817 "\n"
29818 msgstr ""
29819
29820 #. type: =head2
29821 #: ../src/guestfs-actions.pod:7515
29822 msgid "guestfs_vgrename"
29823 msgstr ""
29824
29825 #. type: verbatim
29826 #: ../src/guestfs-actions.pod:7517
29827 #, no-wrap
29828 msgid ""
29829 " int\n"
29830 " guestfs_vgrename (guestfs_h *g,\n"
29831 "                   const char *volgroup,\n"
29832 "                   const char *newvolgroup);\n"
29833 "\n"
29834 msgstr ""
29835
29836 #. type: =head2
29837 #: ../src/guestfs-actions.pod:7528
29838 msgid "guestfs_vgs"
29839 msgstr ""
29840
29841 #. type: verbatim
29842 #: ../src/guestfs-actions.pod:7530
29843 #, no-wrap
29844 msgid ""
29845 " char **\n"
29846 " guestfs_vgs (guestfs_h *g);\n"
29847 "\n"
29848 msgstr ""
29849
29850 #. type: textblock
29851 #: ../src/guestfs-actions.pod:7539
29852 msgid "See also C<guestfs_vgs_full>."
29853 msgstr ""
29854
29855 #. type: =head2
29856 #: ../src/guestfs-actions.pod:7547
29857 msgid "guestfs_vgs_full"
29858 msgstr ""
29859
29860 #. type: verbatim
29861 #: ../src/guestfs-actions.pod:7549
29862 #, no-wrap
29863 msgid ""
29864 " struct guestfs_lvm_vg_list *\n"
29865 " guestfs_vgs_full (guestfs_h *g);\n"
29866 "\n"
29867 msgstr ""
29868
29869 #. type: textblock
29870 #: ../src/guestfs-actions.pod:7555
29871 msgid ""
29872 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
29873 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
29874 msgstr ""
29875
29876 #. type: =head2
29877 #: ../src/guestfs-actions.pod:7561
29878 msgid "guestfs_vgscan"
29879 msgstr ""
29880
29881 #. type: verbatim
29882 #: ../src/guestfs-actions.pod:7563
29883 #, no-wrap
29884 msgid ""
29885 " int\n"
29886 " guestfs_vgscan (guestfs_h *g);\n"
29887 "\n"
29888 msgstr ""
29889
29890 #. type: =head2
29891 #: ../src/guestfs-actions.pod:7573
29892 msgid "guestfs_vguuid"
29893 msgstr ""
29894
29895 #. type: verbatim
29896 #: ../src/guestfs-actions.pod:7575
29897 #, no-wrap
29898 msgid ""
29899 " char *\n"
29900 " guestfs_vguuid (guestfs_h *g,\n"
29901 "                 const char *vgname);\n"
29902 "\n"
29903 msgstr ""
29904
29905 #. type: =head2
29906 #: ../src/guestfs-actions.pod:7586
29907 msgid "guestfs_wait_ready"
29908 msgstr ""
29909
29910 #. type: verbatim
29911 #: ../src/guestfs-actions.pod:7588
29912 #, no-wrap
29913 msgid ""
29914 " int\n"
29915 " guestfs_wait_ready (guestfs_h *g);\n"
29916 "\n"
29917 msgstr ""
29918
29919 #. type: textblock
29920 #: ../src/guestfs-actions.pod:7591
29921 msgid "This function is a no op."
29922 msgstr ""
29923
29924 #. type: textblock
29925 #: ../src/guestfs-actions.pod:7593
29926 msgid ""
29927 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
29928 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
29929 "is no longer necessary because C<guestfs_launch> now does the waiting."
29930 msgstr ""
29931
29932 #. type: textblock
29933 #: ../src/guestfs-actions.pod:7598
29934 msgid ""
29935 "If you see any calls to this function in code then you can just remove them, "
29936 "unless you want to retain compatibility with older versions of the API."
29937 msgstr ""
29938
29939 #. type: textblock
29940 #: ../src/guestfs-actions.pod:7604
29941 msgid ""
29942 "This function is deprecated.  In new code, use the L</guestfs_launch> call "
29943 "instead."
29944 msgstr ""
29945
29946 #. type: =head2
29947 #: ../src/guestfs-actions.pod:7613
29948 msgid "guestfs_wc_c"
29949 msgstr ""
29950
29951 #. type: verbatim
29952 #: ../src/guestfs-actions.pod:7615
29953 #, no-wrap
29954 msgid ""
29955 " int\n"
29956 " guestfs_wc_c (guestfs_h *g,\n"
29957 "               const char *path);\n"
29958 "\n"
29959 msgstr ""
29960
29961 #. type: =head2
29962 #: ../src/guestfs-actions.pod:7626
29963 msgid "guestfs_wc_l"
29964 msgstr ""
29965
29966 #. type: verbatim
29967 #: ../src/guestfs-actions.pod:7628
29968 #, no-wrap
29969 msgid ""
29970 " int\n"
29971 " guestfs_wc_l (guestfs_h *g,\n"
29972 "               const char *path);\n"
29973 "\n"
29974 msgstr ""
29975
29976 #. type: =head2
29977 #: ../src/guestfs-actions.pod:7639
29978 msgid "guestfs_wc_w"
29979 msgstr ""
29980
29981 #. type: verbatim
29982 #: ../src/guestfs-actions.pod:7641
29983 #, no-wrap
29984 msgid ""
29985 " int\n"
29986 " guestfs_wc_w (guestfs_h *g,\n"
29987 "               const char *path);\n"
29988 "\n"
29989 msgstr ""
29990
29991 #. type: =head2
29992 #: ../src/guestfs-actions.pod:7652
29993 msgid "guestfs_write"
29994 msgstr ""
29995
29996 #. type: verbatim
29997 #: ../src/guestfs-actions.pod:7654
29998 #, no-wrap
29999 msgid ""
30000 " int\n"
30001 " guestfs_write (guestfs_h *g,\n"
30002 "                const char *path,\n"
30003 "                const char *content,\n"
30004 "                size_t content_size);\n"
30005 "\n"
30006 msgstr ""
30007
30008 #. type: textblock
30009 #: ../src/guestfs-actions.pod:7663
30010 msgid "See also C<guestfs_write_append>."
30011 msgstr ""
30012
30013 #. type: =head2
30014 #: ../src/guestfs-actions.pod:7672
30015 msgid "guestfs_write_append"
30016 msgstr ""
30017
30018 #. type: verbatim
30019 #: ../src/guestfs-actions.pod:7674
30020 #, no-wrap
30021 msgid ""
30022 " int\n"
30023 " guestfs_write_append (guestfs_h *g,\n"
30024 "                       const char *path,\n"
30025 "                       const char *content,\n"
30026 "                       size_t content_size);\n"
30027 "\n"
30028 msgstr ""
30029
30030 #. type: textblock
30031 #: ../src/guestfs-actions.pod:7683
30032 msgid "See also C<guestfs_write>."
30033 msgstr ""
30034
30035 #. type: =head2
30036 #: ../src/guestfs-actions.pod:7692
30037 msgid "guestfs_write_file"
30038 msgstr ""
30039
30040 #. type: verbatim
30041 #: ../src/guestfs-actions.pod:7694
30042 #, no-wrap
30043 msgid ""
30044 " int\n"
30045 " guestfs_write_file (guestfs_h *g,\n"
30046 "                     const char *path,\n"
30047 "                     const char *content,\n"
30048 "                     int size);\n"
30049 "\n"
30050 msgstr ""
30051
30052 #. type: textblock
30053 #: ../src/guestfs-actions.pod:7716
30054 msgid ""
30055 "This function is deprecated.  In new code, use the L</guestfs_write> call "
30056 "instead."
30057 msgstr ""
30058
30059 #. type: =head2
30060 #: ../src/guestfs-actions.pod:7725
30061 msgid "guestfs_zegrep"
30062 msgstr ""
30063
30064 #. type: verbatim
30065 #: ../src/guestfs-actions.pod:7727
30066 #, no-wrap
30067 msgid ""
30068 " char **\n"
30069 " guestfs_zegrep (guestfs_h *g,\n"
30070 "                 const char *regex,\n"
30071 "                 const char *path);\n"
30072 "\n"
30073 msgstr ""
30074
30075 #. type: =head2
30076 #: ../src/guestfs-actions.pod:7744
30077 msgid "guestfs_zegrepi"
30078 msgstr ""
30079
30080 #. type: verbatim
30081 #: ../src/guestfs-actions.pod:7746
30082 #, no-wrap
30083 msgid ""
30084 " char **\n"
30085 " guestfs_zegrepi (guestfs_h *g,\n"
30086 "                  const char *regex,\n"
30087 "                  const char *path);\n"
30088 "\n"
30089 msgstr ""
30090
30091 #. type: =head2
30092 #: ../src/guestfs-actions.pod:7763
30093 msgid "guestfs_zero"
30094 msgstr ""
30095
30096 #. type: verbatim
30097 #: ../src/guestfs-actions.pod:7765
30098 #, no-wrap
30099 msgid ""
30100 " int\n"
30101 " guestfs_zero (guestfs_h *g,\n"
30102 "               const char *device);\n"
30103 "\n"
30104 msgstr ""
30105
30106 #. type: textblock
30107 #: ../src/guestfs-actions.pod:7779
30108 msgid ""
30109 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
30110 "C<guestfs_is_zero_device>"
30111 msgstr ""
30112
30113 #. type: =head2
30114 #: ../src/guestfs-actions.pod:7791
30115 msgid "guestfs_zero_device"
30116 msgstr ""
30117
30118 #. type: verbatim
30119 #: ../src/guestfs-actions.pod:7793
30120 #, no-wrap
30121 msgid ""
30122 " int\n"
30123 " guestfs_zero_device (guestfs_h *g,\n"
30124 "                      const char *device);\n"
30125 "\n"
30126 msgstr ""
30127
30128 #. type: textblock
30129 #: ../src/guestfs-actions.pod:7797
30130 msgid ""
30131 "This command writes zeroes over the entire C<device>.  Compare with "
30132 "C<guestfs_zero> which just zeroes the first few blocks of a device."
30133 msgstr ""
30134
30135 #. type: textblock
30136 #: ../src/guestfs-actions.pod:7815
30137 msgid "(Added in 1.3.1)"
30138 msgstr ""
30139
30140 #. type: =head2
30141 #: ../src/guestfs-actions.pod:7817
30142 msgid "guestfs_zerofree"
30143 msgstr ""
30144
30145 #. type: verbatim
30146 #: ../src/guestfs-actions.pod:7819
30147 #, no-wrap
30148 msgid ""
30149 " int\n"
30150 " guestfs_zerofree (guestfs_h *g,\n"
30151 "                   const char *device);\n"
30152 "\n"
30153 msgstr ""
30154
30155 #. type: =head2
30156 #: ../src/guestfs-actions.pod:7838
30157 msgid "guestfs_zfgrep"
30158 msgstr ""
30159
30160 #. type: verbatim
30161 #: ../src/guestfs-actions.pod:7840
30162 #, no-wrap
30163 msgid ""
30164 " char **\n"
30165 " guestfs_zfgrep (guestfs_h *g,\n"
30166 "                 const char *pattern,\n"
30167 "                 const char *path);\n"
30168 "\n"
30169 msgstr ""
30170
30171 #. type: =head2
30172 #: ../src/guestfs-actions.pod:7857
30173 msgid "guestfs_zfgrepi"
30174 msgstr ""
30175
30176 #. type: verbatim
30177 #: ../src/guestfs-actions.pod:7859
30178 #, no-wrap
30179 msgid ""
30180 " char **\n"
30181 " guestfs_zfgrepi (guestfs_h *g,\n"
30182 "                  const char *pattern,\n"
30183 "                  const char *path);\n"
30184 "\n"
30185 msgstr ""
30186
30187 #. type: =head2
30188 #: ../src/guestfs-actions.pod:7876
30189 msgid "guestfs_zfile"
30190 msgstr ""
30191
30192 #. type: verbatim
30193 #: ../src/guestfs-actions.pod:7878
30194 #, no-wrap
30195 msgid ""
30196 " char *\n"
30197 " guestfs_zfile (guestfs_h *g,\n"
30198 "                const char *meth,\n"
30199 "                const char *path);\n"
30200 "\n"
30201 msgstr ""
30202
30203 #. type: textblock
30204 #: ../src/guestfs-actions.pod:7888
30205 msgid ""
30206 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
30207 "files."
30208 msgstr ""
30209
30210 #. type: textblock
30211 #: ../src/guestfs-actions.pod:7894
30212 msgid ""
30213 "This function is deprecated.  In new code, use the L</guestfs_file> call "
30214 "instead."
30215 msgstr ""
30216
30217 #. type: =head2
30218 #: ../src/guestfs-actions.pod:7903
30219 msgid "guestfs_zgrep"
30220 msgstr ""
30221
30222 #. type: verbatim
30223 #: ../src/guestfs-actions.pod:7905
30224 #, no-wrap
30225 msgid ""
30226 " char **\n"
30227 " guestfs_zgrep (guestfs_h *g,\n"
30228 "                const char *regex,\n"
30229 "                const char *path);\n"
30230 "\n"
30231 msgstr ""
30232
30233 #. type: =head2
30234 #: ../src/guestfs-actions.pod:7922
30235 msgid "guestfs_zgrepi"
30236 msgstr ""
30237
30238 #. type: verbatim
30239 #: ../src/guestfs-actions.pod:7924
30240 #, no-wrap
30241 msgid ""
30242 " char **\n"
30243 " guestfs_zgrepi (guestfs_h *g,\n"
30244 "                 const char *regex,\n"
30245 "                 const char *path);\n"
30246 "\n"
30247 msgstr ""
30248
30249 #. type: =item
30250 #: ../src/guestfs-availability.pod:3
30251 msgid "B<augeas>"
30252 msgstr ""
30253
30254 #. type: textblock
30255 #: ../src/guestfs-availability.pod:5
30256 msgid ""
30257 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
30258 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
30259 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
30260 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
30261 "L</guestfs_aug_save> L</guestfs_aug_set>"
30262 msgstr ""
30263
30264 #. type: =item
30265 #: ../src/guestfs-availability.pod:21
30266 msgid "B<btrfs>"
30267 msgstr ""
30268
30269 #. type: textblock
30270 #: ../src/guestfs-availability.pod:23
30271 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
30272 msgstr ""
30273
30274 #. type: =item
30275 #: ../src/guestfs-availability.pod:26
30276 msgid "B<inotify>"
30277 msgstr ""
30278
30279 #. type: textblock
30280 #: ../src/guestfs-availability.pod:28
30281 msgid ""
30282 "The following functions: L</guestfs_inotify_add_watch> L</"
30283 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
30284 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
30285 msgstr ""
30286
30287 #. type: =item
30288 #: ../src/guestfs-availability.pod:36
30289 msgid "B<linuxfsuuid>"
30290 msgstr ""
30291
30292 #. type: textblock
30293 #: ../src/guestfs-availability.pod:38
30294 msgid ""
30295 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
30296 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
30297 msgstr ""
30298
30299 #. type: =item
30300 #: ../src/guestfs-availability.pod:45
30301 msgid "B<linuxmodules>"
30302 msgstr ""
30303
30304 #. type: textblock
30305 #: ../src/guestfs-availability.pod:47
30306 msgid "The following functions: L</guestfs_modprobe>"
30307 msgstr ""
30308
30309 #. type: =item
30310 #: ../src/guestfs-availability.pod:50
30311 msgid "B<linuxxattrs>"
30312 msgstr ""
30313
30314 #. type: textblock
30315 #: ../src/guestfs-availability.pod:52
30316 msgid ""
30317 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
30318 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
30319 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
30320 "guestfs_setxattr>"
30321 msgstr ""
30322
30323 #. type: =item
30324 #: ../src/guestfs-availability.pod:63
30325 msgid "B<luks>"
30326 msgstr ""
30327
30328 #. type: textblock
30329 #: ../src/guestfs-availability.pod:65
30330 msgid ""
30331 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
30332 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
30333 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
30334 msgstr ""
30335
30336 #. type: =item
30337 #: ../src/guestfs-availability.pod:74
30338 msgid "B<lvm2>"
30339 msgstr ""
30340
30341 #. type: textblock
30342 #: ../src/guestfs-availability.pod:76
30343 msgid ""
30344 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
30345 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
30346 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
30347 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
30348 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
30349 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
30350 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
30351 msgstr ""
30352
30353 #. type: =item
30354 #: ../src/guestfs-availability.pod:99
30355 msgid "B<mknod>"
30356 msgstr ""
30357
30358 #. type: textblock
30359 #: ../src/guestfs-availability.pod:101
30360 msgid ""
30361 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
30362 "guestfs_mknod_b> L</guestfs_mknod_c>"
30363 msgstr ""
30364
30365 #. type: =item
30366 #: ../src/guestfs-availability.pod:107
30367 msgid "B<ntfs3g>"
30368 msgstr ""
30369
30370 #. type: textblock
30371 #: ../src/guestfs-availability.pod:109
30372 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
30373 msgstr ""
30374
30375 #. type: =item
30376 #: ../src/guestfs-availability.pod:112
30377 msgid "B<ntfsprogs>"
30378 msgstr ""
30379
30380 #. type: textblock
30381 #: ../src/guestfs-availability.pod:114
30382 msgid ""
30383 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
30384 "L</guestfs_ntfsresize_size>"
30385 msgstr ""
30386
30387 #. type: =item
30388 #: ../src/guestfs-availability.pod:119
30389 msgid "B<realpath>"
30390 msgstr ""
30391
30392 #. type: textblock
30393 #: ../src/guestfs-availability.pod:121
30394 msgid "The following functions: L</guestfs_realpath>"
30395 msgstr ""
30396
30397 #. type: =item
30398 #: ../src/guestfs-availability.pod:124
30399 msgid "B<scrub>"
30400 msgstr ""
30401
30402 #. type: textblock
30403 #: ../src/guestfs-availability.pod:126
30404 msgid ""
30405 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
30406 "guestfs_scrub_freespace>"
30407 msgstr ""
30408
30409 #. type: =item
30410 #: ../src/guestfs-availability.pod:131
30411 msgid "B<selinux>"
30412 msgstr ""
30413
30414 #. type: textblock
30415 #: ../src/guestfs-availability.pod:133
30416 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
30417 msgstr ""
30418
30419 #. type: =item
30420 #: ../src/guestfs-availability.pod:137
30421 msgid "B<xz>"
30422 msgstr ""
30423
30424 #. type: textblock
30425 #: ../src/guestfs-availability.pod:139
30426 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
30427 msgstr ""
30428
30429 #. type: =item
30430 #: ../src/guestfs-availability.pod:143
30431 msgid "B<zerofree>"
30432 msgstr ""
30433
30434 #. type: textblock
30435 #: ../src/guestfs-availability.pod:145
30436 msgid "The following functions: L</guestfs_zerofree>"
30437 msgstr ""
30438
30439 #. type: =head2
30440 #: ../src/guestfs-structs.pod:1
30441 msgid "guestfs_int_bool"
30442 msgstr ""
30443
30444 #. type: verbatim
30445 #: ../src/guestfs-structs.pod:3
30446 #, no-wrap
30447 msgid ""
30448 " struct guestfs_int_bool {\n"
30449 "   int32_t i;\n"
30450 "   int32_t b;\n"
30451 " };\n"
30452 " \n"
30453 msgstr ""
30454
30455 #. type: verbatim
30456 #: ../src/guestfs-structs.pod:8
30457 #, no-wrap
30458 msgid ""
30459 " struct guestfs_int_bool_list {\n"
30460 "   uint32_t len; /* Number of elements in list. */\n"
30461 "   struct guestfs_int_bool *val; /* Elements. */\n"
30462 " };\n"
30463 " \n"
30464 msgstr ""
30465
30466 #. type: verbatim
30467 #: ../src/guestfs-structs.pod:13
30468 #, no-wrap
30469 msgid ""
30470 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
30471 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
30472 "\n"
30473 msgstr ""
30474
30475 #. type: =head2
30476 #: ../src/guestfs-structs.pod:16
30477 msgid "guestfs_lvm_pv"
30478 msgstr ""
30479
30480 #. type: verbatim
30481 #: ../src/guestfs-structs.pod:18
30482 #, no-wrap
30483 msgid ""
30484 " struct guestfs_lvm_pv {\n"
30485 "   char *pv_name;\n"
30486 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30487 "   char pv_uuid[32];\n"
30488 "   char *pv_fmt;\n"
30489 "   uint64_t pv_size;\n"
30490 "   uint64_t dev_size;\n"
30491 "   uint64_t pv_free;\n"
30492 "   uint64_t pv_used;\n"
30493 "   char *pv_attr;\n"
30494 "   int64_t pv_pe_count;\n"
30495 "   int64_t pv_pe_alloc_count;\n"
30496 "   char *pv_tags;\n"
30497 "   uint64_t pe_start;\n"
30498 "   int64_t pv_mda_count;\n"
30499 "   uint64_t pv_mda_free;\n"
30500 " };\n"
30501 " \n"
30502 msgstr ""
30503
30504 #. type: verbatim
30505 #: ../src/guestfs-structs.pod:36
30506 #, no-wrap
30507 msgid ""
30508 " struct guestfs_lvm_pv_list {\n"
30509 "   uint32_t len; /* Number of elements in list. */\n"
30510 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
30511 " };\n"
30512 " \n"
30513 msgstr ""
30514
30515 #. type: verbatim
30516 #: ../src/guestfs-structs.pod:41
30517 #, no-wrap
30518 msgid ""
30519 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
30520 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
30521 "\n"
30522 msgstr ""
30523
30524 #. type: =head2
30525 #: ../src/guestfs-structs.pod:44
30526 msgid "guestfs_lvm_vg"
30527 msgstr ""
30528
30529 #. type: verbatim
30530 #: ../src/guestfs-structs.pod:46
30531 #, no-wrap
30532 msgid ""
30533 " struct guestfs_lvm_vg {\n"
30534 "   char *vg_name;\n"
30535 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30536 "   char vg_uuid[32];\n"
30537 "   char *vg_fmt;\n"
30538 "   char *vg_attr;\n"
30539 "   uint64_t vg_size;\n"
30540 "   uint64_t vg_free;\n"
30541 "   char *vg_sysid;\n"
30542 "   uint64_t vg_extent_size;\n"
30543 "   int64_t vg_extent_count;\n"
30544 "   int64_t vg_free_count;\n"
30545 "   int64_t max_lv;\n"
30546 "   int64_t max_pv;\n"
30547 "   int64_t pv_count;\n"
30548 "   int64_t lv_count;\n"
30549 "   int64_t snap_count;\n"
30550 "   int64_t vg_seqno;\n"
30551 "   char *vg_tags;\n"
30552 "   int64_t vg_mda_count;\n"
30553 "   uint64_t vg_mda_free;\n"
30554 " };\n"
30555 " \n"
30556 msgstr ""
30557
30558 #. type: verbatim
30559 #: ../src/guestfs-structs.pod:69
30560 #, no-wrap
30561 msgid ""
30562 " struct guestfs_lvm_vg_list {\n"
30563 "   uint32_t len; /* Number of elements in list. */\n"
30564 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
30565 " };\n"
30566 " \n"
30567 msgstr ""
30568
30569 #. type: verbatim
30570 #: ../src/guestfs-structs.pod:74
30571 #, no-wrap
30572 msgid ""
30573 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
30574 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
30575 "\n"
30576 msgstr ""
30577
30578 #. type: =head2
30579 #: ../src/guestfs-structs.pod:77
30580 msgid "guestfs_lvm_lv"
30581 msgstr ""
30582
30583 #. type: verbatim
30584 #: ../src/guestfs-structs.pod:79
30585 #, no-wrap
30586 msgid ""
30587 " struct guestfs_lvm_lv {\n"
30588 "   char *lv_name;\n"
30589 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30590 "   char lv_uuid[32];\n"
30591 "   char *lv_attr;\n"
30592 "   int64_t lv_major;\n"
30593 "   int64_t lv_minor;\n"
30594 "   int64_t lv_kernel_major;\n"
30595 "   int64_t lv_kernel_minor;\n"
30596 "   uint64_t lv_size;\n"
30597 "   int64_t seg_count;\n"
30598 "   char *origin;\n"
30599 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30600 "   float snap_percent;\n"
30601 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30602 "   float copy_percent;\n"
30603 "   char *move_pv;\n"
30604 "   char *lv_tags;\n"
30605 "   char *mirror_log;\n"
30606 "   char *modules;\n"
30607 " };\n"
30608 " \n"
30609 msgstr ""
30610
30611 #. type: verbatim
30612 #: ../src/guestfs-structs.pod:101
30613 #, no-wrap
30614 msgid ""
30615 " struct guestfs_lvm_lv_list {\n"
30616 "   uint32_t len; /* Number of elements in list. */\n"
30617 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
30618 " };\n"
30619 " \n"
30620 msgstr ""
30621
30622 #. type: verbatim
30623 #: ../src/guestfs-structs.pod:106
30624 #, no-wrap
30625 msgid ""
30626 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
30627 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
30628 "\n"
30629 msgstr ""
30630
30631 #. type: verbatim
30632 #: ../src/guestfs-structs.pod:111
30633 #, no-wrap
30634 msgid ""
30635 " struct guestfs_stat {\n"
30636 "   int64_t dev;\n"
30637 "   int64_t ino;\n"
30638 "   int64_t mode;\n"
30639 "   int64_t nlink;\n"
30640 "   int64_t uid;\n"
30641 "   int64_t gid;\n"
30642 "   int64_t rdev;\n"
30643 "   int64_t size;\n"
30644 "   int64_t blksize;\n"
30645 "   int64_t blocks;\n"
30646 "   int64_t atime;\n"
30647 "   int64_t mtime;\n"
30648 "   int64_t ctime;\n"
30649 " };\n"
30650 " \n"
30651 msgstr ""
30652
30653 #. type: verbatim
30654 #: ../src/guestfs-structs.pod:127
30655 #, no-wrap
30656 msgid ""
30657 " struct guestfs_stat_list {\n"
30658 "   uint32_t len; /* Number of elements in list. */\n"
30659 "   struct guestfs_stat *val; /* Elements. */\n"
30660 " };\n"
30661 " \n"
30662 msgstr ""
30663
30664 #. type: verbatim
30665 #: ../src/guestfs-structs.pod:132
30666 #, no-wrap
30667 msgid ""
30668 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
30669 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
30670 "\n"
30671 msgstr ""
30672
30673 #. type: verbatim
30674 #: ../src/guestfs-structs.pod:137
30675 #, no-wrap
30676 msgid ""
30677 " struct guestfs_statvfs {\n"
30678 "   int64_t bsize;\n"
30679 "   int64_t frsize;\n"
30680 "   int64_t blocks;\n"
30681 "   int64_t bfree;\n"
30682 "   int64_t bavail;\n"
30683 "   int64_t files;\n"
30684 "   int64_t ffree;\n"
30685 "   int64_t favail;\n"
30686 "   int64_t fsid;\n"
30687 "   int64_t flag;\n"
30688 "   int64_t namemax;\n"
30689 " };\n"
30690 " \n"
30691 msgstr ""
30692
30693 #. type: verbatim
30694 #: ../src/guestfs-structs.pod:151
30695 #, no-wrap
30696 msgid ""
30697 " struct guestfs_statvfs_list {\n"
30698 "   uint32_t len; /* Number of elements in list. */\n"
30699 "   struct guestfs_statvfs *val; /* Elements. */\n"
30700 " };\n"
30701 " \n"
30702 msgstr ""
30703
30704 #. type: verbatim
30705 #: ../src/guestfs-structs.pod:156
30706 #, no-wrap
30707 msgid ""
30708 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
30709 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
30710 "\n"
30711 msgstr ""
30712
30713 #. type: =head2
30714 #: ../src/guestfs-structs.pod:159
30715 msgid "guestfs_dirent"
30716 msgstr ""
30717
30718 #. type: verbatim
30719 #: ../src/guestfs-structs.pod:161
30720 #, no-wrap
30721 msgid ""
30722 " struct guestfs_dirent {\n"
30723 "   int64_t ino;\n"
30724 "   char ftyp;\n"
30725 "   char *name;\n"
30726 " };\n"
30727 " \n"
30728 msgstr ""
30729
30730 #. type: verbatim
30731 #: ../src/guestfs-structs.pod:167
30732 #, no-wrap
30733 msgid ""
30734 " struct guestfs_dirent_list {\n"
30735 "   uint32_t len; /* Number of elements in list. */\n"
30736 "   struct guestfs_dirent *val; /* Elements. */\n"
30737 " };\n"
30738 " \n"
30739 msgstr ""
30740
30741 #. type: verbatim
30742 #: ../src/guestfs-structs.pod:172
30743 #, no-wrap
30744 msgid ""
30745 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
30746 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
30747 "\n"
30748 msgstr ""
30749
30750 #. type: verbatim
30751 #: ../src/guestfs-structs.pod:177
30752 #, no-wrap
30753 msgid ""
30754 " struct guestfs_version {\n"
30755 "   int64_t major;\n"
30756 "   int64_t minor;\n"
30757 "   int64_t release;\n"
30758 "   char *extra;\n"
30759 " };\n"
30760 " \n"
30761 msgstr ""
30762
30763 #. type: verbatim
30764 #: ../src/guestfs-structs.pod:184
30765 #, no-wrap
30766 msgid ""
30767 " struct guestfs_version_list {\n"
30768 "   uint32_t len; /* Number of elements in list. */\n"
30769 "   struct guestfs_version *val; /* Elements. */\n"
30770 " };\n"
30771 " \n"
30772 msgstr ""
30773
30774 #. type: verbatim
30775 #: ../src/guestfs-structs.pod:189
30776 #, no-wrap
30777 msgid ""
30778 " void guestfs_free_version (struct guestfs_free_version *);\n"
30779 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
30780 "\n"
30781 msgstr ""
30782
30783 #. type: =head2
30784 #: ../src/guestfs-structs.pod:192
30785 msgid "guestfs_xattr"
30786 msgstr ""
30787
30788 #. type: verbatim
30789 #: ../src/guestfs-structs.pod:194
30790 #, no-wrap
30791 msgid ""
30792 " struct guestfs_xattr {\n"
30793 "   char *attrname;\n"
30794 "   /* The next two fields describe a byte array. */\n"
30795 "   uint32_t attrval_len;\n"
30796 "   char *attrval;\n"
30797 " };\n"
30798 " \n"
30799 msgstr ""
30800
30801 #. type: verbatim
30802 #: ../src/guestfs-structs.pod:201
30803 #, no-wrap
30804 msgid ""
30805 " struct guestfs_xattr_list {\n"
30806 "   uint32_t len; /* Number of elements in list. */\n"
30807 "   struct guestfs_xattr *val; /* Elements. */\n"
30808 " };\n"
30809 " \n"
30810 msgstr ""
30811
30812 #. type: verbatim
30813 #: ../src/guestfs-structs.pod:206
30814 #, no-wrap
30815 msgid ""
30816 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
30817 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
30818 "\n"
30819 msgstr ""
30820
30821 #. type: =head2
30822 #: ../src/guestfs-structs.pod:209
30823 msgid "guestfs_inotify_event"
30824 msgstr ""
30825
30826 #. type: verbatim
30827 #: ../src/guestfs-structs.pod:211
30828 #, no-wrap
30829 msgid ""
30830 " struct guestfs_inotify_event {\n"
30831 "   int64_t in_wd;\n"
30832 "   uint32_t in_mask;\n"
30833 "   uint32_t in_cookie;\n"
30834 "   char *in_name;\n"
30835 " };\n"
30836 " \n"
30837 msgstr ""
30838
30839 #. type: verbatim
30840 #: ../src/guestfs-structs.pod:218
30841 #, no-wrap
30842 msgid ""
30843 " struct guestfs_inotify_event_list {\n"
30844 "   uint32_t len; /* Number of elements in list. */\n"
30845 "   struct guestfs_inotify_event *val; /* Elements. */\n"
30846 " };\n"
30847 " \n"
30848 msgstr ""
30849
30850 #. type: verbatim
30851 #: ../src/guestfs-structs.pod:223
30852 #, no-wrap
30853 msgid ""
30854 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
30855 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
30856 "\n"
30857 msgstr ""
30858
30859 #. type: =head2
30860 #: ../src/guestfs-structs.pod:226
30861 msgid "guestfs_partition"
30862 msgstr ""
30863
30864 #. type: verbatim
30865 #: ../src/guestfs-structs.pod:228
30866 #, no-wrap
30867 msgid ""
30868 " struct guestfs_partition {\n"
30869 "   int32_t part_num;\n"
30870 "   uint64_t part_start;\n"
30871 "   uint64_t part_end;\n"
30872 "   uint64_t part_size;\n"
30873 " };\n"
30874 " \n"
30875 msgstr ""
30876
30877 #. type: verbatim
30878 #: ../src/guestfs-structs.pod:235
30879 #, no-wrap
30880 msgid ""
30881 " struct guestfs_partition_list {\n"
30882 "   uint32_t len; /* Number of elements in list. */\n"
30883 "   struct guestfs_partition *val; /* Elements. */\n"
30884 " };\n"
30885 " \n"
30886 msgstr ""
30887
30888 #. type: verbatim
30889 #: ../src/guestfs-structs.pod:240
30890 #, no-wrap
30891 msgid ""
30892 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
30893 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
30894 "\n"
30895 msgstr ""
30896
30897 #. type: =head2
30898 #: ../src/guestfs-structs.pod:243
30899 msgid "guestfs_application"
30900 msgstr ""
30901
30902 #. type: verbatim
30903 #: ../src/guestfs-structs.pod:245
30904 #, no-wrap
30905 msgid ""
30906 " struct guestfs_application {\n"
30907 "   char *app_name;\n"
30908 "   char *app_display_name;\n"
30909 "   int32_t app_epoch;\n"
30910 "   char *app_version;\n"
30911 "   char *app_release;\n"
30912 "   char *app_install_path;\n"
30913 "   char *app_trans_path;\n"
30914 "   char *app_publisher;\n"
30915 "   char *app_url;\n"
30916 "   char *app_source_package;\n"
30917 "   char *app_summary;\n"
30918 "   char *app_description;\n"
30919 " };\n"
30920 " \n"
30921 msgstr ""
30922
30923 #. type: verbatim
30924 #: ../src/guestfs-structs.pod:260
30925 #, no-wrap
30926 msgid ""
30927 " struct guestfs_application_list {\n"
30928 "   uint32_t len; /* Number of elements in list. */\n"
30929 "   struct guestfs_application *val; /* Elements. */\n"
30930 " };\n"
30931 " \n"
30932 msgstr ""
30933
30934 #. type: verbatim
30935 #: ../src/guestfs-structs.pod:265
30936 #, no-wrap
30937 msgid ""
30938 " void guestfs_free_application (struct guestfs_free_application *);\n"
30939 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
30940 "\n"
30941 msgstr ""
30942
30943 #. type: textblock
30944 #: ../src/guestfs.pod:5
30945 msgid "guestfs - Library for accessing and modifying virtual machine images"
30946 msgstr ""
30947
30948 #. type: verbatim
30949 #: ../src/guestfs.pod:11
30950 #, no-wrap
30951 msgid ""
30952 " guestfs_h *g = guestfs_create ();\n"
30953 " guestfs_add_drive (g, \"guest.img\");\n"
30954 " guestfs_launch (g);\n"
30955 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30956 " guestfs_touch (g, \"/hello\");\n"
30957 " guestfs_umount (g, \"/\");\n"
30958 " guestfs_close (g);\n"
30959 "\n"
30960 msgstr ""
30961
30962 #. type: textblock
30963 #: ../src/guestfs.pod:25
30964 msgid ""
30965 "Libguestfs is a library for accessing and modifying guest disk images.  "
30966 "Amongst the things this is good for: making batch configuration changes to "
30967 "guests, getting disk used/free statistics (see also: virt-df), migrating "
30968 "between virtualization systems (see also: virt-p2v), performing partial "
30969 "backups, performing partial guest clones, cloning guests and changing "
30970 "registry/UUID/hostname info, and much else besides."
30971 msgstr ""
30972
30973 #. type: textblock
30974 #: ../src/guestfs.pod:33
30975 msgid ""
30976 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
30977 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
30978 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
30979 "qcow2, vmdk."
30980 msgstr ""
30981
30982 #. type: textblock
30983 #: ../src/guestfs.pod:38
30984 msgid ""
30985 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
30986 "what filesystem is in each LV, etc.).  It can also run commands in the "
30987 "context of the guest.  Also you can access filesystems over FUSE."
30988 msgstr ""
30989
30990 #. type: textblock
30991 #: ../src/guestfs.pod:43
30992 msgid ""
30993 "Libguestfs is a library that can be linked with C and C++ management "
30994 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
30995 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
30996 "line."
30997 msgstr ""
30998
30999 #. type: textblock
31000 #: ../src/guestfs.pod:48
31001 msgid ""
31002 "You don't need to be root to use libguestfs, although obviously you do need "
31003 "enough permissions to access the disk images."
31004 msgstr ""
31005
31006 #. type: textblock
31007 #: ../src/guestfs.pod:51
31008 msgid ""
31009 "Libguestfs is a large API because it can do many things.  For a gentle "
31010 "introduction, please read the L</API OVERVIEW> section next."
31011 msgstr ""
31012
31013 #. type: textblock
31014 #: ../src/guestfs.pod:54
31015 msgid ""
31016 "There are also some example programs in the L<guestfs-examples(3)> manual "
31017 "page."
31018 msgstr ""
31019
31020 #. type: =head1
31021 #: ../src/guestfs.pod:57
31022 msgid "API OVERVIEW"
31023 msgstr ""
31024
31025 #. type: textblock
31026 #: ../src/guestfs.pod:59
31027 msgid ""
31028 "This section provides a gentler overview of the libguestfs API.  We also try "
31029 "to group API calls together, where that may not be obvious from reading "
31030 "about the individual calls in the main section of this manual."
31031 msgstr ""
31032
31033 #. type: =head2
31034 #: ../src/guestfs.pod:64
31035 msgid "HANDLES"
31036 msgstr ""
31037
31038 #. type: textblock
31039 #: ../src/guestfs.pod:66
31040 msgid ""
31041 "Before you can use libguestfs calls, you have to create a handle.  Then you "
31042 "must add at least one disk image to the handle, followed by launching the "
31043 "handle, then performing whatever operations you want, and finally closing "
31044 "the handle.  By convention we use the single letter C<g> for the name of the "
31045 "handle variable, although of course you can use any name you want."
31046 msgstr ""
31047
31048 #. type: textblock
31049 #: ../src/guestfs.pod:73
31050 msgid "The general structure of all libguestfs-using programs looks like this:"
31051 msgstr ""
31052
31053 #. type: verbatim
31054 #: ../src/guestfs.pod:76
31055 #, no-wrap
31056 msgid ""
31057 " guestfs_h *g = guestfs_create ();\n"
31058 " \n"
31059 msgstr ""
31060
31061 #. type: verbatim
31062 #: ../src/guestfs.pod:78
31063 #, no-wrap
31064 msgid ""
31065 " /* Call guestfs_add_drive additional times if there are\n"
31066 "  * multiple disk images.\n"
31067 "  */\n"
31068 " guestfs_add_drive (g, \"guest.img\");\n"
31069 " \n"
31070 msgstr ""
31071
31072 #. type: verbatim
31073 #: ../src/guestfs.pod:83
31074 #, no-wrap
31075 msgid ""
31076 " /* Most manipulation calls won't work until you've launched\n"
31077 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
31078 "  * and _before_ other commands.\n"
31079 "  */\n"
31080 " guestfs_launch (g);\n"
31081 " \n"
31082 msgstr ""
31083
31084 #. type: verbatim
31085 #: ../src/guestfs.pod:89
31086 #, no-wrap
31087 msgid ""
31088 " /* Now you can examine what partitions, LVs etc are available.\n"
31089 "  */\n"
31090 " char **partitions = guestfs_list_partitions (g);\n"
31091 " char **logvols = guestfs_lvs (g);\n"
31092 " \n"
31093 msgstr ""
31094
31095 #. type: verbatim
31096 #: ../src/guestfs.pod:94
31097 #, no-wrap
31098 msgid ""
31099 " /* To access a filesystem in the image, you must mount it.\n"
31100 "  */\n"
31101 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31102 " \n"
31103 msgstr ""
31104
31105 #. type: verbatim
31106 #: ../src/guestfs.pod:98
31107 #, no-wrap
31108 msgid ""
31109 " /* Now you can perform filesystem actions on the guest\n"
31110 "  * disk image.\n"
31111 "  */\n"
31112 " guestfs_touch (g, \"/hello\");\n"
31113 " \n"
31114 msgstr ""
31115
31116 #. type: verbatim
31117 #: ../src/guestfs.pod:103
31118 #, no-wrap
31119 msgid ""
31120 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
31121 "  * it is done automatically when you close the handle.  See\n"
31122 "  * discussion of autosync in this page.\n"
31123 "  */\n"
31124 " guestfs_sync (g);\n"
31125 " \n"
31126 msgstr ""
31127
31128 #. type: verbatim
31129 #: ../src/guestfs.pod:109
31130 #, no-wrap
31131 msgid ""
31132 " /* Close the handle 'g'. */\n"
31133 " guestfs_close (g);\n"
31134 "\n"
31135 msgstr ""
31136
31137 #. type: textblock
31138 #: ../src/guestfs.pod:112
31139 msgid ""
31140 "The code above doesn't include any error checking.  In real code you should "
31141 "check return values carefully for errors.  In general all functions that "
31142 "return integers return C<-1> on error, and all functions that return "
31143 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
31144 "how to handle errors, and consult the documentation for each function call "
31145 "below to see precisely how they return error indications.  See L<guestfs-"
31146 "examples(3)> for fully worked examples."
31147 msgstr ""
31148
31149 #. type: =head2
31150 #: ../src/guestfs.pod:121
31151 msgid "DISK IMAGES"
31152 msgstr ""
31153
31154 #. type: textblock
31155 #: ../src/guestfs.pod:123
31156 msgid ""
31157 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
31158 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
31159 "actual block device, or simply an empty file of zeroes that you have created "
31160 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
31161 "of these."
31162 msgstr ""
31163
31164 #. type: textblock
31165 #: ../src/guestfs.pod:129
31166 msgid ""
31167 "The call you should use in modern code for adding drives is L</"
31168 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
31169 "specifying that the format is raw, do:"
31170 msgstr ""
31171
31172 #. type: verbatim
31173 #: ../src/guestfs.pod:133
31174 #, no-wrap
31175 msgid ""
31176 " guestfs_add_drive_opts (g, filename,\n"
31177 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31178 "                         -1);\n"
31179 "\n"
31180 msgstr ""
31181
31182 #. type: textblock
31183 #: ../src/guestfs.pod:137
31184 msgid "You can add a disk read-only using:"
31185 msgstr ""
31186
31187 #. type: verbatim
31188 #: ../src/guestfs.pod:139
31189 #, no-wrap
31190 msgid ""
31191 " guestfs_add_drive_opts (g, filename,\n"
31192 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31193 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
31194 "                         -1);\n"
31195 "\n"
31196 msgstr ""
31197
31198 #. type: textblock
31199 #: ../src/guestfs.pod:144
31200 msgid ""
31201 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
31202 "libguestfs won't modify the file."
31203 msgstr ""
31204
31205 #. type: textblock
31206 #: ../src/guestfs.pod:147
31207 msgid ""
31208 "Be extremely cautious if the disk image is in use, eg. if it is being used "
31209 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
31210 "corruption, but adding it read-only is safe."
31211 msgstr ""
31212
31213 #. type: textblock
31214 #: ../src/guestfs.pod:151
31215 msgid ""
31216 "You must add at least one disk image, and you may add multiple disk images.  "
31217 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
31218 "first one you added), C</dev/sdb> (for the second one you added), etc."
31219 msgstr ""
31220
31221 #. type: textblock
31222 #: ../src/guestfs.pod:156
31223 msgid ""
31224 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
31225 "can call L</guestfs_list_devices> to get a list of the device names, in the "
31226 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
31227 msgstr ""
31228
31229 #. type: =head2
31230 #: ../src/guestfs.pod:161
31231 msgid "MOUNTING"
31232 msgstr ""
31233
31234 #. type: textblock
31235 #: ../src/guestfs.pod:163
31236 msgid ""
31237 "Before you can read or write files, create directories and so on in a disk "
31238 "image that contains filesystems, you have to mount those filesystems using "
31239 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
31240 "a disk image contains (for example) one partition with a filesystem on that "
31241 "partition, then you can mount it directly:"
31242 msgstr ""
31243
31244 #. type: verbatim
31245 #: ../src/guestfs.pod:170
31246 #, no-wrap
31247 msgid ""
31248 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
31249 "\n"
31250 msgstr ""
31251
31252 #. type: textblock
31253 #: ../src/guestfs.pod:172
31254 msgid ""
31255 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
31256 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
31257 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
31258 "that these are libguestfs virtual devices, and are nothing to do with host "
31259 "devices."
31260 msgstr ""
31261
31262 #. type: textblock
31263 #: ../src/guestfs.pod:178
31264 msgid ""
31265 "If you are given a disk image and you don't know what it contains then you "
31266 "have to find out.  Libguestfs can do that too: use L</"
31267 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
31268 "LVs, and either try mounting each to see what is mountable, or else examine "
31269 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
31270 "filesystems, use L</guestfs_list_filesystems>."
31271 msgstr ""
31272
31273 #. type: textblock
31274 #: ../src/guestfs.pod:186
31275 msgid ""
31276 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
31277 "L</INSPECTION> below).  But you might find it easier to look at higher level "
31278 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
31279 msgstr ""
31280
31281 #. type: textblock
31282 #: ../src/guestfs.pod:191
31283 msgid ""
31284 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
31285 "several other variations of the C<guestfs_mount_*> call."
31286 msgstr ""
31287
31288 #. type: =head2
31289 #: ../src/guestfs.pod:194
31290 msgid "FILESYSTEM ACCESS AND MODIFICATION"
31291 msgstr ""
31292
31293 #. type: textblock
31294 #: ../src/guestfs.pod:196
31295 msgid ""
31296 "The majority of the libguestfs API consists of fairly low-level calls for "
31297 "accessing and modifying the files, directories, symlinks etc on mounted "
31298 "filesystems.  There are over a hundred such calls which you can find listed "
31299 "in detail below in this man page, and we don't even pretend to cover them "
31300 "all in this overview."
31301 msgstr ""
31302
31303 #. type: textblock
31304 #: ../src/guestfs.pod:202
31305 msgid ""
31306 "Specify filenames as full paths, starting with C<\"/\"> and including the "
31307 "mount point."
31308 msgstr ""
31309
31310 #. type: textblock
31311 #: ../src/guestfs.pod:205
31312 msgid ""
31313 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
31314 "the file called C<\"etc/passwd\"> then you could do:"
31315 msgstr ""
31316
31317 #. type: verbatim
31318 #: ../src/guestfs.pod:208
31319 #, no-wrap
31320 msgid ""
31321 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
31322 "\n"
31323 msgstr ""
31324
31325 #. type: textblock
31326 #: ../src/guestfs.pod:210
31327 msgid ""
31328 "This would return C<data> as a newly allocated buffer containing the full "
31329 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
31330 "or C<NULL> if there was an error."
31331 msgstr ""
31332
31333 #. type: textblock
31334 #: ../src/guestfs.pod:214
31335 msgid ""
31336 "As another example, to create a top-level directory on that filesystem "
31337 "called C<\"var\"> you would do:"
31338 msgstr ""
31339
31340 #. type: verbatim
31341 #: ../src/guestfs.pod:217
31342 #, no-wrap
31343 msgid ""
31344 " guestfs_mkdir (g, \"/var\");\n"
31345 "\n"
31346 msgstr ""
31347
31348 #. type: textblock
31349 #: ../src/guestfs.pod:219
31350 msgid "To create a symlink you could do:"
31351 msgstr ""
31352
31353 #. type: verbatim
31354 #: ../src/guestfs.pod:221
31355 #, no-wrap
31356 msgid ""
31357 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
31358 "               \"/etc/rc3.d/S30portmap\");\n"
31359 "\n"
31360 msgstr ""
31361
31362 #. type: textblock
31363 #: ../src/guestfs.pod:224
31364 msgid ""
31365 "Libguestfs will reject attempts to use relative paths and there is no "
31366 "concept of a current working directory."
31367 msgstr ""
31368
31369 #. type: textblock
31370 #: ../src/guestfs.pod:227
31371 msgid ""
31372 "Libguestfs can return errors in many situations: for example if the "
31373 "filesystem isn't writable, or if a file or directory that you requested "
31374 "doesn't exist.  If you are using the C API (documented here)  you have to "
31375 "check for those error conditions after each call.  (Other language bindings "
31376 "turn these errors into exceptions)."
31377 msgstr ""
31378
31379 #. type: textblock
31380 #: ../src/guestfs.pod:233
31381 msgid ""
31382 "File writes are affected by the per-handle umask, set by calling L</"
31383 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
31384 msgstr ""
31385
31386 #. type: =head2
31387 #: ../src/guestfs.pod:236
31388 msgid "PARTITIONING"
31389 msgstr ""
31390
31391 #. type: textblock
31392 #: ../src/guestfs.pod:238
31393 msgid ""
31394 "Libguestfs contains API calls to read, create and modify partition tables on "
31395 "disk images."
31396 msgstr ""
31397
31398 #. type: textblock
31399 #: ../src/guestfs.pod:241
31400 msgid ""
31401 "In the common case where you want to create a single partition covering the "
31402 "whole disk, you should use the L</guestfs_part_disk> call:"
31403 msgstr ""
31404
31405 #. type: verbatim
31406 #: ../src/guestfs.pod:245
31407 #, no-wrap
31408 msgid ""
31409 " const char *parttype = \"mbr\";\n"
31410 " if (disk_is_larger_than_2TB)\n"
31411 "   parttype = \"gpt\";\n"
31412 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
31413 "\n"
31414 msgstr ""
31415
31416 #. type: textblock
31417 #: ../src/guestfs.pod:250
31418 msgid ""
31419 "Obviously this effectively wipes anything that was on that disk image before."
31420 msgstr ""
31421
31422 #. type: =head2
31423 #: ../src/guestfs.pod:253
31424 msgid "LVM2"
31425 msgstr ""
31426
31427 #. type: textblock
31428 #: ../src/guestfs.pod:255
31429 msgid ""
31430 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
31431 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
31432 "you familiarize yourself with the concepts of physical volumes, volume "
31433 "groups and logical volumes."
31434 msgstr ""
31435
31436 #. type: textblock
31437 #: ../src/guestfs.pod:260
31438 msgid ""
31439 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
31440 "tldp.org/HOWTO/LVM-HOWTO/>."
31441 msgstr ""
31442
31443 #. type: =head2
31444 #: ../src/guestfs.pod:263
31445 msgid "DOWNLOADING"
31446 msgstr ""
31447
31448 #. type: textblock
31449 #: ../src/guestfs.pod:265
31450 msgid ""
31451 "Use L</guestfs_cat> to download small, text only files.  This call is "
31452 "limited to files which are less than 2 MB and which cannot contain any ASCII "
31453 "NUL (C<\\0>) characters.  However the API is very simple to use."
31454 msgstr ""
31455
31456 #. type: textblock
31457 #: ../src/guestfs.pod:269
31458 msgid ""
31459 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
31460 "bit data, since it returns a (pointer, size) pair.  However it is still "
31461 "limited to \"small\" files, less than 2 MB."
31462 msgstr ""
31463
31464 #. type: textblock
31465 #: ../src/guestfs.pod:273
31466 msgid ""
31467 "L</guestfs_download> can be used to download any file, with no limits on "
31468 "content or size (even files larger than 4 GB)."
31469 msgstr ""
31470
31471 #. type: textblock
31472 #: ../src/guestfs.pod:276
31473 msgid ""
31474 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
31475 msgstr ""
31476
31477 #. type: =head2
31478 #: ../src/guestfs.pod:279
31479 msgid "UPLOADING"
31480 msgstr ""
31481
31482 #. type: textblock
31483 #: ../src/guestfs.pod:281
31484 msgid ""
31485 "It's often the case that you want to write a file or files to the disk image."
31486 msgstr ""
31487
31488 #. type: textblock
31489 #: ../src/guestfs.pod:284
31490 msgid ""
31491 "To write a small file with fixed content, use L</guestfs_write>.  To create "
31492 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
31493 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
31494 "of other functions for creating test files, for example L</guestfs_fill> and "
31495 "L</guestfs_fill_pattern>."
31496 msgstr ""
31497
31498 #. type: textblock
31499 #: ../src/guestfs.pod:290
31500 msgid ""
31501 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
31502 "file content or size (even files larger than 4 GB)."
31503 msgstr ""
31504
31505 #. type: textblock
31506 #: ../src/guestfs.pod:293
31507 msgid ""
31508 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
31509 msgstr ""
31510
31511 #. type: textblock
31512 #: ../src/guestfs.pod:295
31513 msgid ""
31514 "However the fastest way to upload I<large numbers of arbitrary files> is to "
31515 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
31516 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
31517 "in a predictable way (eg. adding it last after all other drives) then you "
31518 "can get the device name from L</guestfs_list_devices> and mount it directly "
31519 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
31520 "portable between kernel versions, and they don't support labels or UUIDs.  "
31521 "If you want to pre-build an image or you need to mount it using a label or "
31522 "UUID, use an ISO image instead."
31523 msgstr ""
31524
31525 #. type: =head2
31526 #: ../src/guestfs.pod:306
31527 msgid "COPYING"
31528 msgstr ""
31529
31530 #. type: textblock
31531 #: ../src/guestfs.pod:308
31532 msgid ""
31533 "There are various different commands for copying between files and devices "
31534 "and in and out of the guest filesystem.  These are summarised in the table "
31535 "below."
31536 msgstr ""
31537
31538 #. type: =item
31539 #: ../src/guestfs.pod:314
31540 msgid "B<file> to B<file>"
31541 msgstr ""
31542
31543 #. type: textblock
31544 #: ../src/guestfs.pod:316
31545 msgid ""
31546 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
31547 "directories recursively."
31548 msgstr ""
31549
31550 #. type: =item
31551 #: ../src/guestfs.pod:319
31552 msgid "B<file or device> to B<file or device>"
31553 msgstr ""
31554
31555 #. type: textblock
31556 #: ../src/guestfs.pod:321
31557 msgid ""
31558 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
31559 "devices in the guest."
31560 msgstr ""
31561
31562 #. type: textblock
31563 #: ../src/guestfs.pod:324
31564 msgid "Example: duplicate the contents of an LV:"
31565 msgstr ""
31566
31567 #. type: verbatim
31568 #: ../src/guestfs.pod:326
31569 #, no-wrap
31570 msgid ""
31571 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
31572 "\n"
31573 msgstr ""
31574
31575 #. type: textblock
31576 #: ../src/guestfs.pod:328
31577 msgid ""
31578 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
31579 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
31580 "guestfs_copy_size>."
31581 msgstr ""
31582
31583 #. type: =item
31584 #: ../src/guestfs.pod:332
31585 msgid "B<file on the host> to B<file or device>"
31586 msgstr ""
31587
31588 #. type: textblock
31589 #: ../src/guestfs.pod:334
31590 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
31591 msgstr ""
31592
31593 #. type: =item
31594 #: ../src/guestfs.pod:336
31595 msgid "B<file or device> to B<file on the host>"
31596 msgstr ""
31597
31598 #. type: textblock
31599 #: ../src/guestfs.pod:338
31600 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
31601 msgstr ""
31602
31603 #. type: =head2
31604 #: ../src/guestfs.pod:342
31605 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
31606 msgstr ""
31607
31608 #. type: textblock
31609 #: ../src/guestfs.pod:344
31610 msgid ""
31611 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
31612 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
31613 "appears you can only upload and download to files.  However many Un*x-like "
31614 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
31615 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
31616 "and arbitrary file descriptor N."
31617 msgstr ""
31618
31619 #. type: textblock
31620 #: ../src/guestfs.pod:352
31621 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
31622 msgstr ""
31623
31624 #. type: verbatim
31625 #: ../src/guestfs.pod:355
31626 #, no-wrap
31627 msgid ""
31628 " guestfs_download (g, filename, \"/dev/stdout\");\n"
31629 "\n"
31630 msgstr ""
31631
31632 #. type: textblock
31633 #: ../src/guestfs.pod:357
31634 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
31635 msgstr ""
31636
31637 #. type: verbatim
31638 #: ../src/guestfs.pod:359
31639 #, no-wrap
31640 msgid ""
31641 " char devfd[64];\n"
31642 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
31643 " guestfs_tar_out (g, \"/\", devfd);\n"
31644 "\n"
31645 msgstr ""
31646
31647 #. type: =head2
31648 #: ../src/guestfs.pod:363
31649 msgid "LISTING FILES"
31650 msgstr ""
31651
31652 #. type: textblock
31653 #: ../src/guestfs.pod:365
31654 msgid ""
31655 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
31656 "L<guestfish(1)>-equivalent command C<ll>)."
31657 msgstr ""
31658
31659 #. type: textblock
31660 #: ../src/guestfs.pod:368
31661 msgid ""
31662 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
31663 "programs, as a flat list of strings."
31664 msgstr ""
31665
31666 #. type: textblock
31667 #: ../src/guestfs.pod:371
31668 msgid ""
31669 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
31670 "directory, plus additional information about each one.  It is more "
31671 "equivalent to using the L<readdir(3)> call on a local filesystem."
31672 msgstr ""
31673
31674 #. type: textblock
31675 #: ../src/guestfs.pod:375
31676 msgid ""
31677 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
31678 msgstr ""
31679
31680 #. type: =head2
31681 #: ../src/guestfs.pod:378
31682 msgid "RUNNING COMMANDS"
31683 msgstr ""
31684
31685 #. type: textblock
31686 #: ../src/guestfs.pod:380
31687 msgid ""
31688 "Although libguestfs is primarily an API for manipulating files inside guest "
31689 "images, we also provide some limited facilities for running commands inside "
31690 "guests."
31691 msgstr ""
31692
31693 #. type: textblock
31694 #: ../src/guestfs.pod:384
31695 msgid "There are many limitations to this:"
31696 msgstr ""
31697
31698 #. type: textblock
31699 #: ../src/guestfs.pod:390
31700 msgid ""
31701 "The kernel version that the command runs under will be different from what "
31702 "it expects."
31703 msgstr ""
31704
31705 #. type: textblock
31706 #: ../src/guestfs.pod:395
31707 msgid ""
31708 "If the command needs to communicate with daemons, then most likely they "
31709 "won't be running."
31710 msgstr ""
31711
31712 #. type: textblock
31713 #: ../src/guestfs.pod:400
31714 msgid "The command will be running in limited memory."
31715 msgstr ""
31716
31717 #. type: textblock
31718 #: ../src/guestfs.pod:404
31719 msgid ""
31720 "The network may not be available unless you enable it (see L</"
31721 "guestfs_set_network>)."
31722 msgstr ""
31723
31724 #. type: textblock
31725 #: ../src/guestfs.pod:409
31726 msgid "Only supports Linux guests (not Windows, BSD, etc)."
31727 msgstr ""
31728
31729 #. type: textblock
31730 #: ../src/guestfs.pod:413
31731 msgid ""
31732 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
31733 msgstr ""
31734
31735 #. type: textblock
31736 #: ../src/guestfs.pod:418
31737 msgid ""
31738 "For SELinux guests, you may need to enable SELinux and load policy first.  "
31739 "See L</SELINUX> in this manpage."
31740 msgstr ""
31741
31742 #. type: textblock
31743 #: ../src/guestfs.pod:423
31744 msgid ""
31745 "I<Security:> It is not safe to run commands from untrusted, possibly "
31746 "malicious guests.  These commands may attempt to exploit your program by "
31747 "sending unexpected output.  They could also try to exploit the Linux kernel "
31748 "or qemu provided by the libguestfs appliance.  They could use the network "
31749 "provided by the libguestfs appliance to bypass ordinary network partitions "
31750 "and firewalls.  They could use the elevated privileges or different SELinux "
31751 "context of your program to their advantage."
31752 msgstr ""
31753
31754 #. type: textblock
31755 #: ../src/guestfs.pod:432
31756 msgid ""
31757 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
31758 "(a script which runs when the guest next boots normally), and to have this "
31759 "script run the commands you want in the normal context of the running guest, "
31760 "network security and so on.  For information about other security issues, "
31761 "see L</SECURITY>."
31762 msgstr ""
31763
31764 #. type: textblock
31765 #: ../src/guestfs.pod:440
31766 msgid ""
31767 "The two main API calls to run commands are L</guestfs_command> and L</"
31768 "guestfs_sh> (there are also variations)."
31769 msgstr ""
31770
31771 #. type: textblock
31772 #: ../src/guestfs.pod:443
31773 msgid ""
31774 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
31775 "shell globs, redirections, etc will work."
31776 msgstr ""
31777
31778 #. type: =head2
31779 #: ../src/guestfs.pod:446
31780 msgid "CONFIGURATION FILES"
31781 msgstr ""
31782
31783 #. type: textblock
31784 #: ../src/guestfs.pod:448
31785 msgid ""
31786 "To read and write configuration files in Linux guest filesystems, we "
31787 "strongly recommend using Augeas.  For example, Augeas understands how to "
31788 "read and write, say, a Linux shadow password file or X.org configuration "
31789 "file, and so avoids you having to write that code."
31790 msgstr ""
31791
31792 #. type: textblock
31793 #: ../src/guestfs.pod:453
31794 msgid ""
31795 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
31796 "document Augeas itself here because there is excellent documentation on the "
31797 "L<http://augeas.net/> website."
31798 msgstr ""
31799
31800 #. type: textblock
31801 #: ../src/guestfs.pod:457
31802 msgid ""
31803 "If you don't want to use Augeas (you fool!) then try calling L</"
31804 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
31805 "over."
31806 msgstr ""
31807
31808 #. type: =head2
31809 #: ../src/guestfs.pod:461
31810 msgid "SELINUX"
31811 msgstr ""
31812
31813 #. type: textblock
31814 #: ../src/guestfs.pod:463
31815 msgid ""
31816 "We support SELinux guests.  To ensure that labeling happens correctly in "
31817 "SELinux guests, you need to enable SELinux and load the guest's policy:"
31818 msgstr ""
31819
31820 #. type: textblock
31821 #: ../src/guestfs.pod:471
31822 msgid "Before launching, do:"
31823 msgstr ""
31824
31825 #. type: verbatim
31826 #: ../src/guestfs.pod:473
31827 #, no-wrap
31828 msgid ""
31829 " guestfs_set_selinux (g, 1);\n"
31830 "\n"
31831 msgstr ""
31832
31833 #. type: textblock
31834 #: ../src/guestfs.pod:477
31835 msgid ""
31836 "After mounting the guest's filesystem(s), load the policy.  This is best "
31837 "done by running the L<load_policy(8)> command in the guest itself:"
31838 msgstr ""
31839
31840 #. type: verbatim
31841 #: ../src/guestfs.pod:481
31842 #, no-wrap
31843 msgid ""
31844 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
31845 "\n"
31846 msgstr ""
31847
31848 #. type: textblock
31849 #: ../src/guestfs.pod:483
31850 msgid ""
31851 "(Older versions of C<load_policy> require you to specify the name of the "
31852 "policy file)."
31853 msgstr ""
31854
31855 #. type: textblock
31856 #: ../src/guestfs.pod:488
31857 msgid ""
31858 "Optionally, set the security context for the API.  The correct security "
31859 "context to use can only be known by inspecting the guest.  As an example:"
31860 msgstr ""
31861
31862 #. type: verbatim
31863 #: ../src/guestfs.pod:492
31864 #, no-wrap
31865 msgid ""
31866 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
31867 "\n"
31868 msgstr ""
31869
31870 #. type: textblock
31871 #: ../src/guestfs.pod:496
31872 msgid "This will work for running commands and editing existing files."
31873 msgstr ""
31874
31875 #. type: textblock
31876 #: ../src/guestfs.pod:498
31877 msgid ""
31878 "When new files are created, you may need to label them explicitly, for "
31879 "example by running the external command C<restorecon pathname>."
31880 msgstr ""
31881
31882 #. type: =head2
31883 #: ../src/guestfs.pod:502
31884 msgid "UMASK"
31885 msgstr ""
31886
31887 #. type: textblock
31888 #: ../src/guestfs.pod:504
31889 msgid ""
31890 "Certain calls are affected by the current file mode creation mask (the "
31891 "\"umask\").  In particular ones which create files or directories, such as "
31892 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
31893 "either the default mode that the file is created with or modifies the mode "
31894 "that you supply."
31895 msgstr ""
31896
31897 #. type: textblock
31898 #: ../src/guestfs.pod:510
31899 msgid ""
31900 "The default umask is C<022>, so files are created with modes such as C<0644> "
31901 "and directories with C<0755>."
31902 msgstr ""
31903
31904 #. type: textblock
31905 #: ../src/guestfs.pod:513
31906 msgid ""
31907 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
31908 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
31909 "guestfs_chmod> after creating each file or directory."
31910 msgstr ""
31911
31912 #. type: textblock
31913 #: ../src/guestfs.pod:517
31914 msgid "For more information about umask, see L<umask(2)>."
31915 msgstr ""
31916
31917 #. type: textblock
31918 #: ../src/guestfs.pod:521
31919 msgid ""
31920 "Libguestfs allows you to access Linux guests which have been encrypted using "
31921 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
31922 "standard.  This includes nearly all whole disk encryption systems used by "
31923 "modern Linux guests."
31924 msgstr ""
31925
31926 #. type: textblock
31927 #: ../src/guestfs.pod:527
31928 msgid ""
31929 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
31930 "returns the string C<crypto_LUKS>)."
31931 msgstr ""
31932
31933 #. type: textblock
31934 #: ../src/guestfs.pod:530
31935 msgid ""
31936 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
31937 "will require the passphrase!"
31938 msgstr ""
31939
31940 #. type: textblock
31941 #: ../src/guestfs.pod:533
31942 msgid ""
31943 "Opening a LUKS device creates a new device mapper device called C</dev/"
31944 "mapper/mapname> (where C<mapname> is the string you supply to L</"
31945 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
31946 "from and encrypted to the underlying block device respectively."
31947 msgstr ""
31948
31949 #. type: textblock
31950 #: ../src/guestfs.pod:539
31951 msgid ""
31952 "LVM volume groups on the device can be made visible by calling L</"
31953 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
31954 "(s) can now be mounted in the usual way."
31955 msgstr ""
31956
31957 #. type: textblock
31958 #: ../src/guestfs.pod:543
31959 msgid ""
31960 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
31961 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
31962 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
31963 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
31964 "underlying encrypted block device)."
31965 msgstr ""
31966
31967 #. type: =head2
31968 #: ../src/guestfs.pod:550
31969 msgid "INSPECTION"
31970 msgstr ""
31971
31972 #. type: textblock
31973 #: ../src/guestfs.pod:552
31974 msgid ""
31975 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
31976 "contains operating systems, an install CD or a live CD.  (These APIs used to "
31977 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
31978 "version 1.5.3 the most frequently used part of this library has been "
31979 "rewritten in C and moved into the core code)."
31980 msgstr ""
31981
31982 #. type: textblock
31983 #: ../src/guestfs.pod:559
31984 msgid ""
31985 "Add all disks belonging to the unknown virtual machine and call L</"
31986 "guestfs_launch> in the usual way."
31987 msgstr ""
31988
31989 #. type: textblock
31990 #: ../src/guestfs.pod:562
31991 msgid ""
31992 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
31993 "and certain heuristics, and returns a list of operating systems that were "
31994 "found.  An empty list means none were found.  A single element is the root "
31995 "filesystem of the operating system.  For dual- or multi-boot guests, "
31996 "multiple roots can be returned, each one corresponding to a separate "
31997 "operating system.  (Multi-boot virtual machines are extremely rare in the "
31998 "world of virtualization, but since this scenario can happen, we have built "
31999 "libguestfs to deal with it.)"
32000 msgstr ""
32001
32002 #. type: textblock
32003 #: ../src/guestfs.pod:571
32004 msgid ""
32005 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
32006 "to get additional details about that operating system.  For example, call L</"
32007 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
32008 "Windows and Linux-based operating systems respectively."
32009 msgstr ""
32010
32011 #. type: textblock
32012 #: ../src/guestfs.pod:577
32013 msgid ""
32014 "Un*x-like and Linux-based operating systems usually consist of several "
32015 "filesystems which are mounted at boot time (for example, a separate boot "
32016 "partition mounted on C</boot>).  The inspection rules are able to detect how "
32017 "filesystems correspond to mount points.  Call "
32018 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
32019 "hash table like this example:"
32020 msgstr ""
32021
32022 #. type: verbatim
32023 #: ../src/guestfs.pod:584
32024 #, no-wrap
32025 msgid ""
32026 " /boot => /dev/sda1\n"
32027 " /     => /dev/vg_guest/lv_root\n"
32028 " /usr  => /dev/vg_guest/lv_usr\n"
32029 "\n"
32030 msgstr ""
32031
32032 #. type: textblock
32033 #: ../src/guestfs.pod:588
32034 msgid ""
32035 "The caller can then make calls to L</guestfs_mount_options> to mount the "
32036 "filesystems as suggested."
32037 msgstr ""
32038
32039 #. type: textblock
32040 #: ../src/guestfs.pod:591
32041 msgid ""
32042 "Be careful to mount filesystems in the right order (eg. C</> before C</"
32043 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
32044 msgstr ""
32045
32046 #. type: textblock
32047 #: ../src/guestfs.pod:595
32048 msgid ""
32049 "Inspection currently only works for some common operating systems.  "
32050 "Contributors are welcome to send patches for other operating systems that we "
32051 "currently cannot detect."
32052 msgstr ""
32053
32054 #. type: textblock
32055 #: ../src/guestfs.pod:599
32056 msgid ""
32057 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
32058 "for more details.  The L</guestfs_inspect_os> function just ignores any "
32059 "encrypted devices."
32060 msgstr ""
32061
32062 #. type: textblock
32063 #: ../src/guestfs.pod:603
32064 msgid ""
32065 "A note on the implementation: The call L</guestfs_inspect_os> performs "
32066 "inspection and caches the results in the guest handle.  Subsequent calls to "
32067 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
32068 "read the disks.  If you change the content of the guest disks, you can redo "
32069 "inspection by calling L</guestfs_inspect_os> again.  (L</"
32070 "guestfs_inspect_list_applications> works a little differently from the other "
32071 "calls and does read the disks.  See documentation for that function for "
32072 "details)."
32073 msgstr ""
32074
32075 #. type: =head3
32076 #: ../src/guestfs.pod:612
32077 msgid "INSPECTING INSTALL DISKS"
32078 msgstr ""
32079
32080 #. type: textblock
32081 #: ../src/guestfs.pod:614
32082 msgid ""
32083 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
32084 "CDs and more."
32085 msgstr ""
32086
32087 #. type: textblock
32088 #: ../src/guestfs.pod:617
32089 msgid ""
32090 "Call L</guestfs_inspect_get_format> to return the format of the operating "
32091 "system, which currently can be C<installed> (a regular operating system) or "
32092 "C<installer> (some sort of install disk)."
32093 msgstr ""
32094
32095 #. type: textblock
32096 #: ../src/guestfs.pod:621
32097 msgid ""
32098 "Further information is available about the operating system that can be "
32099 "installed using the regular inspection APIs like L</"
32100 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
32101 msgstr ""
32102
32103 #. type: textblock
32104 #: ../src/guestfs.pod:626
32105 msgid ""
32106 "Some additional information specific to installer disks is also available "
32107 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
32108 "guestfs_inspect_is_multipart> calls."
32109 msgstr ""
32110
32111 #. type: =head2
32112 #: ../src/guestfs.pod:631
32113 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
32114 msgstr ""
32115
32116 #. type: textblock
32117 #: ../src/guestfs.pod:633
32118 msgid ""
32119 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
32120 "ntfs-3g.org/> driver."
32121 msgstr ""
32122
32123 #. type: =head3
32124 #: ../src/guestfs.pod:636
32125 msgid "DRIVE LETTERS AND PATHS"
32126 msgstr ""
32127
32128 #. type: textblock
32129 #: ../src/guestfs.pod:638
32130 msgid ""
32131 "DOS and Windows still use drive letters, and the filesystems are always "
32132 "treated as case insensitive by Windows itself, and therefore you might find "
32133 "a Windows configuration file referring to a path like C<c:\\windows"
32134 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
32135 "might be referred to as C</WINDOWS/System32>."
32136 msgstr ""
32137
32138 #. type: textblock
32139 #: ../src/guestfs.pod:644
32140 msgid ""
32141 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
32142 "L</guestfs_inspect_get_drive_mappings>)"
32143 msgstr ""
32144
32145 #. type: textblock
32146 #: ../src/guestfs.pod:647
32147 msgid ""
32148 "Dealing with separator characters (backslash vs forward slash) is outside "
32149 "the scope of libguestfs, but usually a simple character replacement will "
32150 "work."
32151 msgstr ""
32152
32153 #. type: textblock
32154 #: ../src/guestfs.pod:651
32155 msgid ""
32156 "To resolve the case insensitivity of paths, call L</"
32157 "guestfs_case_sensitive_path>."
32158 msgstr ""
32159
32160 #. type: =head3
32161 #: ../src/guestfs.pod:654
32162 msgid "ACCESSING THE WINDOWS REGISTRY"
32163 msgstr ""
32164
32165 #. type: textblock
32166 #: ../src/guestfs.pod:656
32167 msgid ""
32168 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
32169 "files, through the library C<hivex> which is part of the libguestfs project "
32170 "although ships as a separate tarball.  You have to locate and download the "
32171 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
32172 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
32173 "reg(1)> for more help on this issue."
32174 msgstr ""
32175
32176 #. type: =head3
32177 #: ../src/guestfs.pod:664
32178 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
32179 msgstr ""
32180
32181 #. type: textblock
32182 #: ../src/guestfs.pod:666
32183 msgid ""
32184 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
32185 "provide something which looks like a Linux symlink.  The way it tries to do "
32186 "the rewriting is described here:"
32187 msgstr ""
32188
32189 #. type: textblock
32190 #: ../src/guestfs.pod:670
32191 msgid ""
32192 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
32193 "symbolic-links/>"
32194 msgstr ""
32195
32196 #. type: textblock
32197 #: ../src/guestfs.pod:672
32198 msgid ""
32199 "The essential problem is that ntfs-3g simply does not have enough "
32200 "information to do a correct job.  NTFS links can contain drive letters and "
32201 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
32202 "It is almost certainly the case that libguestfs callers should ignore what "
32203 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
32204 msgstr ""
32205
32206 #. type: textblock
32207 #: ../src/guestfs.pod:679
32208 msgid ""
32209 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
32210 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
32211 "attribute, and read the raw reparse data from that (you can find the format "
32212 "documented in various places around the web)."
32213 msgstr ""
32214
32215 #. type: =head3
32216 #: ../src/guestfs.pod:684
32217 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
32218 msgstr ""
32219
32220 #. type: textblock
32221 #: ../src/guestfs.pod:686
32222 msgid ""
32223 "There are other useful extended attributes that can be read from ntfs-3g "
32224 "filesystems (using L</guestfs_getxattr>).  See:"
32225 msgstr ""
32226
32227 #. type: textblock
32228 #: ../src/guestfs.pod:689
32229 msgid ""
32230 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
32231 msgstr ""
32232
32233 #. type: =head2
32234 #: ../src/guestfs.pod:691
32235 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
32236 msgstr ""
32237
32238 #. type: textblock
32239 #: ../src/guestfs.pod:693
32240 msgid ""
32241 "Although we don't want to discourage you from using the C API, we will "
32242 "mention here that the same API is also available in other languages."
32243 msgstr ""
32244
32245 #. type: textblock
32246 #: ../src/guestfs.pod:696
32247 msgid ""
32248 "The API is broadly identical in all supported languages.  This means that "
32249 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
32250 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
32251 "OCaml.  In other words, a straightforward, predictable isomorphism between "
32252 "each language."
32253 msgstr ""
32254
32255 #. type: textblock
32256 #: ../src/guestfs.pod:702
32257 msgid ""
32258 "Error messages are automatically transformed into exceptions if the language "
32259 "supports it."
32260 msgstr ""
32261
32262 #. type: textblock
32263 #: ../src/guestfs.pod:705
32264 msgid ""
32265 "We don't try to \"object orientify\" parts of the API in OO languages, "
32266 "although contributors are welcome to write higher level APIs above what we "
32267 "provide in their favourite languages if they wish."
32268 msgstr ""
32269
32270 #. type: =item
32271 #: ../src/guestfs.pod:711
32272 msgid "B<C++>"
32273 msgstr ""
32274
32275 #. type: textblock
32276 #: ../src/guestfs.pod:713
32277 msgid ""
32278 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
32279 "identical to the C API.  C++ classes and exceptions are not used."
32280 msgstr ""
32281
32282 #. type: =item
32283 #: ../src/guestfs.pod:717
32284 msgid "B<C#>"
32285 msgstr ""
32286
32287 #. type: textblock
32288 #: ../src/guestfs.pod:719
32289 msgid ""
32290 "The C# bindings are highly experimental.  Please read the warnings at the "
32291 "top of C<csharp/Libguestfs.cs>."
32292 msgstr ""
32293
32294 #. type: =item
32295 #: ../src/guestfs.pod:722
32296 msgid "B<Haskell>"
32297 msgstr ""
32298
32299 #. type: textblock
32300 #: ../src/guestfs.pod:724
32301 msgid ""
32302 "This is the only language binding that is working but incomplete.  Only "
32303 "calls which return simple integers have been bound in Haskell, and we are "
32304 "looking for help to complete this binding."
32305 msgstr ""
32306
32307 #. type: =item
32308 #: ../src/guestfs.pod:728
32309 msgid "B<Java>"
32310 msgstr ""
32311
32312 #. type: textblock
32313 #: ../src/guestfs.pod:730
32314 msgid ""
32315 "Full documentation is contained in the Javadoc which is distributed with "
32316 "libguestfs.  For examples, see L<guestfs-java(3)>."
32317 msgstr ""
32318
32319 #. type: =item
32320 #: ../src/guestfs.pod:733
32321 msgid "B<OCaml>"
32322 msgstr ""
32323
32324 #. type: textblock
32325 #: ../src/guestfs.pod:735
32326 msgid "See L<guestfs-ocaml(3)>."
32327 msgstr ""
32328
32329 #. type: =item
32330 #: ../src/guestfs.pod:737
32331 msgid "B<Perl>"
32332 msgstr ""
32333
32334 #. type: textblock
32335 #: ../src/guestfs.pod:739
32336 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
32337 msgstr ""
32338
32339 #. type: =item
32340 #: ../src/guestfs.pod:741
32341 msgid "B<PHP>"
32342 msgstr ""
32343
32344 #. type: textblock
32345 #: ../src/guestfs.pod:743
32346 msgid ""
32347 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
32348 "the php-libguestfs package for your distribution."
32349 msgstr ""
32350
32351 #. type: textblock
32352 #: ../src/guestfs.pod:746
32353 msgid "The PHP binding only works correctly on 64 bit machines."
32354 msgstr ""
32355
32356 #. type: =item
32357 #: ../src/guestfs.pod:748
32358 msgid "B<Python>"
32359 msgstr ""
32360
32361 #. type: textblock
32362 #: ../src/guestfs.pod:750
32363 msgid "See L<guestfs-python(3)>."
32364 msgstr ""
32365
32366 #. type: =item
32367 #: ../src/guestfs.pod:752
32368 msgid "B<Ruby>"
32369 msgstr ""
32370
32371 #. type: textblock
32372 #: ../src/guestfs.pod:754
32373 msgid "See L<guestfs-ruby(3)>."
32374 msgstr ""
32375
32376 #. type: =item
32377 #: ../src/guestfs.pod:756
32378 msgid "B<shell scripts>"
32379 msgstr ""
32380
32381 #. type: textblock
32382 #: ../src/guestfs.pod:758
32383 msgid "See L<guestfish(1)>."
32384 msgstr ""
32385
32386 #. type: =head2
32387 #: ../src/guestfs.pod:762
32388 msgid "LIBGUESTFS GOTCHAS"
32389 msgstr ""
32390
32391 #. type: textblock
32392 #: ../src/guestfs.pod:764
32393 msgid ""
32394 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
32395 "system [...] that works in the way it is documented but is counterintuitive "
32396 "and almost invites mistakes.\""
32397 msgstr ""
32398
32399 #. type: textblock
32400 #: ../src/guestfs.pod:768
32401 msgid ""
32402 "Since we developed libguestfs and the associated tools, there are several "
32403 "things we would have designed differently, but are now stuck with for "
32404 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
32405 "release, you can expect these to change.  Beware of them."
32406 msgstr ""
32407
32408 #. type: =item
32409 #: ../src/guestfs.pod:776
32410 msgid "Autosync / forgetting to sync."
32411 msgstr ""
32412
32413 #. type: textblock
32414 #: ../src/guestfs.pod:778
32415 msgid ""
32416 "I<Update:> Autosync is enabled by default for all API users starting from "
32417 "libguestfs 1.5.24.  This section only applies to older versions."
32418 msgstr ""
32419
32420 #. type: textblock
32421 #: ../src/guestfs.pod:781
32422 msgid ""
32423 "When modifying a filesystem from C or another language, you B<must> unmount "
32424 "all filesystems and call L</guestfs_sync> explicitly before you close the "
32425 "libguestfs handle.  You can also call:"
32426 msgstr ""
32427
32428 #. type: verbatim
32429 #: ../src/guestfs.pod:785
32430 #, no-wrap
32431 msgid ""
32432 " guestfs_set_autosync (g, 1);\n"
32433 "\n"
32434 msgstr ""
32435
32436 #. type: textblock
32437 #: ../src/guestfs.pod:787
32438 msgid ""
32439 "to have the unmount/sync done automatically for you when the handle 'g' is "
32440 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
32441 msgstr ""
32442
32443 #. type: textblock
32444 #: ../src/guestfs.pod:791
32445 msgid ""
32446 "If you forget to do this, then it is entirely possible that your changes "
32447 "won't be written out, or will be partially written, or (very rarely) that "
32448 "you'll get disk corruption."
32449 msgstr ""
32450
32451 #. type: textblock
32452 #: ../src/guestfs.pod:795
32453 msgid ""
32454 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
32455 "guestfish scripts that forget to sync will work just fine, which can make "
32456 "this very puzzling if you are trying to debug a problem."
32457 msgstr ""
32458
32459 #. type: =item
32460 #: ../src/guestfs.pod:799
32461 msgid "Mount option C<-o sync> should not be the default."
32462 msgstr ""
32463
32464 #. type: textblock
32465 #: ../src/guestfs.pod:801
32466 msgid ""
32467 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
32468 "However C<-o sync> does not add any reliability benefit, but does have a "
32469 "very large performance impact."
32470 msgstr ""
32471
32472 #. type: textblock
32473 #: ../src/guestfs.pod:805
32474 msgid ""
32475 "The work around is to use L</guestfs_mount_options> and set the mount "
32476 "options that you actually want to use."
32477 msgstr ""
32478
32479 #. type: =item
32480 #: ../src/guestfs.pod:808
32481 msgid "Read-only should be the default."
32482 msgstr ""
32483
32484 #. type: textblock
32485 #: ../src/guestfs.pod:810
32486 msgid ""
32487 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
32488 "specify I<--rw> if you want to make changes to the image."
32489 msgstr ""
32490
32491 #. type: textblock
32492 #: ../src/guestfs.pod:813
32493 msgid "This would reduce the potential to corrupt live VM images."
32494 msgstr ""
32495
32496 #. type: textblock
32497 #: ../src/guestfs.pod:815
32498 msgid ""
32499 "Note that many filesystems change the disk when you just mount and unmount, "
32500 "even if you didn't perform any writes.  You need to use L</"
32501 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
32502 msgstr ""
32503
32504 #. type: =item
32505 #: ../src/guestfs.pod:819
32506 msgid "guestfish command line is hard to use."
32507 msgstr ""
32508
32509 #. type: textblock
32510 #: ../src/guestfs.pod:821
32511 msgid ""
32512 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
32513 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
32514 "exist, so it fails.  In earlier versions of guestfish the error message was "
32515 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
32516 "we should have used C<guestfish -c command> to run commands."
32517 msgstr ""
32518
32519 #. type: =item
32520 #: ../src/guestfs.pod:828
32521 msgid "guestfish megabyte modifiers don't work right on all commands"
32522 msgstr ""
32523
32524 #. type: textblock
32525 #: ../src/guestfs.pod:830
32526 msgid ""
32527 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
32528 "other modifiers).  What guestfish actually does is to multiply the number "
32529 "part by the modifier part and pass the result to the C API.  However this "
32530 "doesn't work for a few APIs which aren't expecting bytes, but are already "
32531 "expecting some other unit (eg. megabytes)."
32532 msgstr ""
32533
32534 #. type: textblock
32535 #: ../src/guestfs.pod:837
32536 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
32537 msgstr ""
32538
32539 #. type: verbatim
32540 #: ../src/guestfs.pod:839
32541 #, no-wrap
32542 msgid ""
32543 " lvcreate LV VG 100M\n"
32544 "\n"
32545 msgstr ""
32546
32547 #. type: textblock
32548 #: ../src/guestfs.pod:841
32549 msgid ""
32550 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
32551 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
32552 "megabytes * megabytes) logical volume.  The error message you get from this "
32553 "is also a little obscure."
32554 msgstr ""
32555
32556 #. type: textblock
32557 #: ../src/guestfs.pod:846
32558 msgid ""
32559 "This could be fixed in the generator by specially marking parameters and "
32560 "return values which take bytes or other units."
32561 msgstr ""
32562
32563 #. type: =item
32564 #: ../src/guestfs.pod:849
32565 msgid "Ambiguity between devices and paths"
32566 msgstr ""
32567
32568 #. type: textblock
32569 #: ../src/guestfs.pod:851
32570 msgid ""
32571 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
32572 "sdb2>) and a similar pathname.  A file might just happen to be called "
32573 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
32574 msgstr ""
32575
32576 #. type: textblock
32577 #: ../src/guestfs.pod:856
32578 msgid ""
32579 "In the current API we usually resolve this ambiguity by having two separate "
32580 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
32581 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
32582 "detecting if the path supplied begins with C</dev/>."
32583 msgstr ""
32584
32585 #. type: textblock
32586 #: ../src/guestfs.pod:862
32587 msgid ""
32588 "To avoid both the ambiguity and the need to duplicate some calls, we could "
32589 "make paths/devices into structured names.  One way to do this would be to "
32590 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
32591 "aspect of grub.  Another way would be to use a structured type, equivalent "
32592 "to this OCaml type:"
32593 msgstr ""
32594
32595 #. type: verbatim
32596 #: ../src/guestfs.pod:868
32597 #, no-wrap
32598 msgid ""
32599 " type path = Path of string | Device of int | Partition of int * int\n"
32600 "\n"
32601 msgstr ""
32602
32603 #. type: textblock
32604 #: ../src/guestfs.pod:870
32605 msgid "which would allow you to pass arguments like:"
32606 msgstr ""
32607
32608 #. type: verbatim
32609 #: ../src/guestfs.pod:872
32610 #, no-wrap
32611 msgid ""
32612 " Path \"/foo/bar\"\n"
32613 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
32614 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
32615 " Path \"/dev/sdb2\"    (* not a device *)\n"
32616 "\n"
32617 msgstr ""
32618
32619 #. type: textblock
32620 #: ../src/guestfs.pod:877
32621 msgid ""
32622 "As you can see there are still problems to resolve even with this "
32623 "representation.  Also consider how it might work in guestfish."
32624 msgstr ""
32625
32626 #. type: =head2
32627 #: ../src/guestfs.pod:882
32628 msgid "KEYS AND PASSPHRASES"
32629 msgstr ""
32630
32631 #. type: textblock
32632 #: ../src/guestfs.pod:884
32633 msgid ""
32634 "Certain libguestfs calls take a parameter that contains sensitive key "
32635 "material, passed in as a C string."
32636 msgstr ""
32637
32638 #. type: textblock
32639 #: ../src/guestfs.pod:887
32640 msgid ""
32641 "In the future we would hope to change the libguestfs implementation so that "
32642 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
32643 "swap.  However this is I<not> done at the moment, because of the complexity "
32644 "of such an implementation."
32645 msgstr ""
32646
32647 #. type: textblock
32648 #: ../src/guestfs.pod:892
32649 msgid ""
32650 "Therefore you should be aware that any key parameter you pass to libguestfs "
32651 "might end up being written out to the swap partition.  If this is a concern, "
32652 "scrub the swap partition or don't use libguestfs on encrypted devices."
32653 msgstr ""
32654
32655 #. type: =head2
32656 #: ../src/guestfs.pod:897
32657 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
32658 msgstr ""
32659
32660 #. type: textblock
32661 #: ../src/guestfs.pod:899
32662 msgid ""
32663 "All high-level libguestfs actions are synchronous.  If you want to use "
32664 "libguestfs asynchronously then you must create a thread."
32665 msgstr ""
32666
32667 #. type: textblock
32668 #: ../src/guestfs.pod:902
32669 msgid ""
32670 "Only use the handle from a single thread.  Either use the handle exclusively "
32671 "from one thread, or provide your own mutex so that two threads cannot issue "
32672 "calls on the same handle at the same time."
32673 msgstr ""
32674
32675 #. type: textblock
32676 #: ../src/guestfs.pod:906
32677 msgid ""
32678 "See the graphical program guestfs-browser for one possible architecture for "
32679 "multithreaded programs using libvirt and libguestfs."
32680 msgstr ""
32681
32682 #. type: =head2
32683 #: ../src/guestfs.pod:909
32684 msgid "PATH"
32685 msgstr ""
32686
32687 #. type: textblock
32688 #: ../src/guestfs.pod:911
32689 msgid ""
32690 "Libguestfs needs a supermin appliance, which it finds by looking along an "
32691 "internal path."
32692 msgstr ""
32693
32694 #. type: textblock
32695 #: ../src/guestfs.pod:914
32696 msgid ""
32697 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
32698 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
32699 msgstr ""
32700
32701 #. type: textblock
32702 #: ../src/guestfs.pod:917
32703 msgid ""
32704 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
32705 "to change the directories that libguestfs will search in.  The value is a "
32706 "colon-separated list of paths.  The current directory is I<not> searched "
32707 "unless the path contains an empty element or C<.>.  For example "
32708 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
32709 "then C</usr/lib/guestfs>."
32710 msgstr ""
32711
32712 #. type: =head2
32713 #: ../src/guestfs.pod:924
32714 msgid "QEMU WRAPPERS"
32715 msgstr ""
32716
32717 #. type: textblock
32718 #: ../src/guestfs.pod:926
32719 msgid ""
32720 "If you want to compile your own qemu, run qemu from a non-standard location, "
32721 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
32722 "around qemu."
32723 msgstr ""
32724
32725 #. type: textblock
32726 #: ../src/guestfs.pod:930
32727 msgid ""
32728 "There is one important rule to remember: you I<must C<exec qemu>> as the "
32729 "last command in the shell script (so that qemu replaces the shell and "
32730 "becomes the direct child of the libguestfs-using program).  If you don't do "
32731 "this, then the qemu process won't be cleaned up correctly."
32732 msgstr ""
32733
32734 #. type: textblock
32735 #: ../src/guestfs.pod:935
32736 msgid ""
32737 "Here is an example of a wrapper, where I have built my own copy of qemu from "
32738 "source:"
32739 msgstr ""
32740
32741 #. type: verbatim
32742 #: ../src/guestfs.pod:938
32743 #, no-wrap
32744 msgid ""
32745 " #!/bin/sh -\n"
32746 " qemudir=/home/rjones/d/qemu\n"
32747 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
32748 "\n"
32749 msgstr ""
32750
32751 #. type: textblock
32752 #: ../src/guestfs.pod:942
32753 msgid ""
32754 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
32755 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
32756 "example:"
32757 msgstr ""
32758
32759 #. type: verbatim
32760 #: ../src/guestfs.pod:946
32761 #, no-wrap
32762 msgid ""
32763 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
32764 "\n"
32765 msgstr ""
32766
32767 #. type: textblock
32768 #: ../src/guestfs.pod:948
32769 msgid ""
32770 "Note that libguestfs also calls qemu with the -help and -version options in "
32771 "order to determine features."
32772 msgstr ""
32773
32774 #. type: =head2
32775 #: ../src/guestfs.pod:951
32776 msgid "ATTACHING TO RUNNING DAEMONS"
32777 msgstr ""
32778
32779 #. type: textblock
32780 #: ../src/guestfs.pod:953
32781 msgid ""
32782 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
32783 "babies.  Use with caution."
32784 msgstr ""
32785
32786 #. type: textblock
32787 #: ../src/guestfs.pod:956
32788 msgid ""
32789 "I<Note (2):> This section explains how to attach to a running daemon from a "
32790 "low level perspective.  For most users, simply using virt tools such as "
32791 "L<guestfish(1)> with the I<--live> option will \"just work\"."
32792 msgstr ""
32793
32794 #. type: =head3
32795 #: ../src/guestfs.pod:960
32796 msgid "Using guestfs_set_attach_method"
32797 msgstr ""
32798
32799 #. type: textblock
32800 #: ../src/guestfs.pod:962
32801 msgid ""
32802 "By calling L</guestfs_set_attach_method> you can change how the library "
32803 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
32804 "ARCHITECTURE> for some background)."
32805 msgstr ""
32806
32807 #. type: textblock
32808 #: ../src/guestfs.pod:966
32809 msgid ""
32810 "The normal attach method is C<appliance>, where a small appliance is created "
32811 "containing the daemon, and then the library connects to this."
32812 msgstr ""
32813
32814 #. type: textblock
32815 #: ../src/guestfs.pod:969
32816 msgid ""
32817 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
32818 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
32819 "daemon over the Unix domain socket."
32820 msgstr ""
32821
32822 #. type: textblock
32823 #: ../src/guestfs.pod:973
32824 msgid ""
32825 "The normal use for this is to connect to a running virtual machine that "
32826 "contains a C<guestfsd> daemon, and send commands so you can read and write "
32827 "files inside the live virtual machine."
32828 msgstr ""
32829
32830 #. type: =head3
32831 #: ../src/guestfs.pod:977
32832 msgid "Using guestfs_add_domain with live flag"
32833 msgstr ""
32834
32835 #. type: textblock
32836 #: ../src/guestfs.pod:979
32837 msgid ""
32838 "L</guestfs_add_domain> provides some help for getting the correct attach "
32839 "method.  If you pass the C<live> option to this function, then (if the "
32840 "virtual machine is running) it will examine the libvirt XML looking for a "
32841 "virtio-serial channel to connect to:"
32842 msgstr ""
32843
32844 #. type: verbatim
32845 #: ../src/guestfs.pod:985
32846 #, no-wrap
32847 msgid ""
32848 " <domain>\n"
32849 "   ...\n"
32850 "   <devices>\n"
32851 "     ...\n"
32852 "     <channel type='unix'>\n"
32853 "       <source mode='bind' path='/path/to/socket'/>\n"
32854 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
32855 "     </channel>\n"
32856 "     ...\n"
32857 "   </devices>\n"
32858 " </domain>\n"
32859 "\n"
32860 msgstr ""
32861
32862 #. type: textblock
32863 #: ../src/guestfs.pod:997
32864 msgid ""
32865 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
32866 "method to C<unix:/path/to/socket>."
32867 msgstr ""
32868
32869 #. type: textblock
32870 #: ../src/guestfs.pod:1000
32871 msgid ""
32872 "Some of the libguestfs tools (including guestfish) support a I<--live> "
32873 "option which is passed through to L</guestfs_add_domain> thus allowing you "
32874 "to attach to and modify live virtual machines."
32875 msgstr ""
32876
32877 #. type: textblock
32878 #: ../src/guestfs.pod:1004
32879 msgid ""
32880 "The virtual machine needs to have been set up beforehand so that it has the "
32881 "virtio-serial channel and so that guestfsd is running inside it."
32882 msgstr ""
32883
32884 #. type: =head2
32885 #: ../src/guestfs.pod:1008
32886 msgid "ABI GUARANTEE"
32887 msgstr ""
32888
32889 #. type: textblock
32890 #: ../src/guestfs.pod:1010
32891 msgid ""
32892 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
32893 "actions as outlined in this section.  Although we will deprecate some "
32894 "actions, for example if they get replaced by newer calls, we will keep the "
32895 "old actions forever.  This allows you the developer to program in confidence "
32896 "against the libguestfs API."
32897 msgstr ""
32898
32899 #. type: =head2
32900 #: ../src/guestfs.pod:1016
32901 msgid "BLOCK DEVICE NAMING"
32902 msgstr ""
32903
32904 #. type: textblock
32905 #: ../src/guestfs.pod:1018
32906 msgid ""
32907 "In the kernel there is now quite a profusion of schemata for naming block "
32908 "devices (in this context, by I<block device> I mean a physical or virtual "
32909 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
32910 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
32911 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
32912 "for the old IDE driver (particularly for SATA devices) those devices also "
32913 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
32914 "paravirtualized drivers.  This has created several different naming systems, "
32915 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
32916 msgstr ""
32917
32918 #. type: textblock
32919 #: ../src/guestfs.pod:1030
32920 msgid ""
32921 "As discussed above, libguestfs uses a qemu appliance running an embedded "
32922 "Linux kernel to access block devices.  We can run a variety of appliances "
32923 "based on a variety of Linux kernels."
32924 msgstr ""
32925
32926 #. type: textblock
32927 #: ../src/guestfs.pod:1034
32928 msgid ""
32929 "This causes a problem for libguestfs because many API calls use device or "
32930 "partition names.  Working scripts and the recipe (example) scripts that we "
32931 "make available over the internet could fail if the naming scheme changes."
32932 msgstr ""
32933
32934 #. type: textblock
32935 #: ../src/guestfs.pod:1039
32936 msgid ""
32937 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
32938 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
32939 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
32940 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
32941 msgstr ""
32942
32943 #. type: textblock
32944 #: ../src/guestfs.pod:1045
32945 msgid ""
32946 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
32947 "L</guestfs_list_partitions> and similar calls return the true names of the "
32948 "devices and partitions as known to the appliance."
32949 msgstr ""
32950
32951 #. type: =head3
32952 #: ../src/guestfs.pod:1050
32953 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
32954 msgstr ""
32955
32956 #. type: textblock
32957 #: ../src/guestfs.pod:1052
32958 msgid ""
32959 "Usually this translation is transparent.  However in some (very rare)  cases "
32960 "you may need to know the exact algorithm.  Such cases include where you use "
32961 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
32962 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
32963 msgstr ""
32964
32965 #. type: textblock
32966 #: ../src/guestfs.pod:1058
32967 msgid ""
32968 "The algorithm is applied only to I<parameters> which are known to be either "
32969 "device or partition names.  Return values from functions such as L</"
32970 "guestfs_list_devices> are never changed."
32971 msgstr ""
32972
32973 #. type: textblock
32974 #: ../src/guestfs.pod:1066
32975 msgid "Is the string a parameter which is a device or partition name?"
32976 msgstr ""
32977
32978 #. type: textblock
32979 #: ../src/guestfs.pod:1070
32980 msgid "Does the string begin with C</dev/sd>?"
32981 msgstr ""
32982
32983 #. type: textblock
32984 #: ../src/guestfs.pod:1074
32985 msgid ""
32986 "Does the named device exist? If so, we use that device.  However if I<not> "
32987 "then we continue with this algorithm."
32988 msgstr ""
32989
32990 #. type: textblock
32991 #: ../src/guestfs.pod:1079
32992 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
32993 msgstr ""
32994
32995 #. type: textblock
32996 #: ../src/guestfs.pod:1081
32997 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
32998 msgstr ""
32999
33000 #. type: textblock
33001 #: ../src/guestfs.pod:1083
33002 msgid "If that named device exists, use it.  If not, continue."
33003 msgstr ""
33004
33005 #. type: textblock
33006 #: ../src/guestfs.pod:1087
33007 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
33008 msgstr ""
33009
33010 #. type: textblock
33011 #: ../src/guestfs.pod:1089
33012 msgid "If that named device exists, use it.  If not, return an error."
33013 msgstr ""
33014
33015 #. type: =head3
33016 #: ../src/guestfs.pod:1093
33017 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
33018 msgstr ""
33019
33020 #. type: textblock
33021 #: ../src/guestfs.pod:1095
33022 msgid ""
33023 "Although the standard naming scheme and automatic translation is useful for "
33024 "simple programs and guestfish scripts, for larger programs it is best not to "
33025 "rely on this mechanism."
33026 msgstr ""
33027
33028 #. type: textblock
33029 #: ../src/guestfs.pod:1099
33030 msgid ""
33031 "Where possible for maximum future portability programs using libguestfs "
33032 "should use these future-proof techniques:"
33033 msgstr ""
33034
33035 #. type: textblock
33036 #: ../src/guestfs.pod:1106
33037 msgid ""
33038 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
33039 "device names, and then use those names directly."
33040 msgstr ""
33041
33042 #. type: textblock
33043 #: ../src/guestfs.pod:1109
33044 msgid ""
33045 "Since those device names exist by definition, they will never be translated."
33046 msgstr ""
33047
33048 #. type: textblock
33049 #: ../src/guestfs.pod:1114
33050 msgid ""
33051 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
33052 "filesystem labels."
33053 msgstr ""
33054
33055 #. type: =head1
33056 #: ../src/guestfs.pod:1119
33057 msgid "SECURITY"
33058 msgstr ""
33059
33060 #. type: textblock
33061 #: ../src/guestfs.pod:1121
33062 msgid ""
33063 "This section discusses security implications of using libguestfs, "
33064 "particularly with untrusted or malicious guests or disk images."
33065 msgstr ""
33066
33067 #. type: =head2
33068 #: ../src/guestfs.pod:1124
33069 msgid "GENERAL SECURITY CONSIDERATIONS"
33070 msgstr ""
33071
33072 #. type: textblock
33073 #: ../src/guestfs.pod:1126
33074 msgid ""
33075 "Be careful with any files or data that you download from a guest (by "
33076 "\"download\" we mean not just the L</guestfs_download> command but any "
33077 "command that reads files, filenames, directories or anything else from a "
33078 "disk image).  An attacker could manipulate the data to fool your program "
33079 "into doing the wrong thing.  Consider cases such as:"
33080 msgstr ""
33081
33082 #. type: textblock
33083 #: ../src/guestfs.pod:1136
33084 msgid "the data (file etc) not being present"
33085 msgstr ""
33086
33087 #. type: textblock
33088 #: ../src/guestfs.pod:1140
33089 msgid "being present but empty"
33090 msgstr ""
33091
33092 #. type: textblock
33093 #: ../src/guestfs.pod:1144
33094 msgid "being much larger than normal"
33095 msgstr ""
33096
33097 #. type: textblock
33098 #: ../src/guestfs.pod:1148
33099 msgid "containing arbitrary 8 bit data"
33100 msgstr ""
33101
33102 #. type: textblock
33103 #: ../src/guestfs.pod:1152
33104 msgid "being in an unexpected character encoding"
33105 msgstr ""
33106
33107 #. type: textblock
33108 #: ../src/guestfs.pod:1156
33109 msgid "containing homoglyphs."
33110 msgstr ""
33111
33112 #. type: =head2
33113 #: ../src/guestfs.pod:1160
33114 msgid "SECURITY OF MOUNTING FILESYSTEMS"
33115 msgstr ""
33116
33117 #. type: textblock
33118 #: ../src/guestfs.pod:1162
33119 msgid ""
33120 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
33121 "(VFS) module can sometimes be escalated into exploits by deliberately "
33122 "creating a malicious, malformed filesystem.  These exploits are very severe "
33123 "for two reasons.  Firstly there are very many filesystem drivers in the "
33124 "kernel, and many of them are infrequently used and not much developer "
33125 "attention has been paid to the code.  Linux userspace helps potential "
33126 "crackers by detecting the filesystem type and automatically choosing the "
33127 "right VFS driver, even if that filesystem type is obscure or unexpected for "
33128 "the administrator.  Secondly, a kernel-level exploit is like a local root "
33129 "exploit (worse in some ways), giving immediate and total access to the "
33130 "system right down to the hardware level."
33131 msgstr ""
33132
33133 #. type: textblock
33134 #: ../src/guestfs.pod:1175
33135 msgid ""
33136 "That explains why you should never mount a filesystem from an untrusted "
33137 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
33138 "inside a qemu virtual machine, usually running as a non-root user.  The "
33139 "attacker would need to write a filesystem which first exploited the kernel, "
33140 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
33141 "the libguestfs protocol, and finally to be as serious as the host kernel "
33142 "exploit it would need to escalate its privileges to root.  This multi-step "
33143 "escalation, performed by a static piece of data, is thought to be extremely "
33144 "hard to do, although we never say 'never' about security issues."
33145 msgstr ""
33146
33147 #. type: textblock
33148 #: ../src/guestfs.pod:1186
33149 msgid ""
33150 "In any case callers can reduce the attack surface by forcing the filesystem "
33151 "type when mounting (use L</guestfs_mount_vfs>)."
33152 msgstr ""
33153
33154 #. type: =head2
33155 #: ../src/guestfs.pod:1189
33156 msgid "PROTOCOL SECURITY"
33157 msgstr ""
33158
33159 #. type: textblock
33160 #: ../src/guestfs.pod:1191
33161 msgid ""
33162 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
33163 "defined upper message size.  However a program that uses libguestfs must "
33164 "also take care - for example you can write a program that downloads a binary "
33165 "from a disk image and executes it locally, and no amount of protocol "
33166 "security will save you from the consequences."
33167 msgstr ""
33168
33169 #. type: =head2
33170 #: ../src/guestfs.pod:1197
33171 msgid "INSPECTION SECURITY"
33172 msgstr ""
33173
33174 #. type: textblock
33175 #: ../src/guestfs.pod:1199
33176 msgid ""
33177 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
33178 "directly from the guest, and these could contain any 8 bit data.  Callers "
33179 "should be careful to escape these before printing them to a structured file "
33180 "(for example, use HTML escaping if creating a web page)."
33181 msgstr ""
33182
33183 #. type: textblock
33184 #: ../src/guestfs.pod:1205
33185 msgid ""
33186 "Guest configuration may be altered in unusual ways by the administrator of "
33187 "the virtual machine, and may not reflect reality (particularly for untrusted "
33188 "or actively malicious guests).  For example we parse the hostname from "
33189 "configuration files like C</etc/sysconfig/network> that we find in the "
33190 "guest, but the guest administrator can easily manipulate these files to "
33191 "provide the wrong hostname."
33192 msgstr ""
33193
33194 #. type: textblock
33195 #: ../src/guestfs.pod:1213
33196 msgid ""
33197 "The inspection API parses guest configuration using two external libraries: "
33198 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
33199 "designed to be robust in the face of malicious data, although denial of "
33200 "service attacks are still possible, for example with oversized configuration "
33201 "files."
33202 msgstr ""
33203
33204 #. type: =head2
33205 #: ../src/guestfs.pod:1219
33206 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
33207 msgstr ""
33208
33209 #. type: textblock
33210 #: ../src/guestfs.pod:1221
33211 msgid ""
33212 "Be very cautious about running commands from the guest.  By running a "
33213 "command in the guest, you are giving CPU time to a binary that you do not "
33214 "control, under the same user account as the library, albeit wrapped in qemu "
33215 "virtualization.  More information and alternatives can be found in the "
33216 "section L</RUNNING COMMANDS>."
33217 msgstr ""
33218
33219 #. type: =head2
33220 #: ../src/guestfs.pod:1227
33221 msgid "CVE-2010-3851"
33222 msgstr ""
33223
33224 #. type: textblock
33225 #: ../src/guestfs.pod:1229
33226 msgid "https://bugzilla.redhat.com/642934"
33227 msgstr ""
33228
33229 #. type: textblock
33230 #: ../src/guestfs.pod:1231
33231 msgid ""
33232 "This security bug concerns the automatic disk format detection that qemu "
33233 "does on disk images."
33234 msgstr ""
33235
33236 #. type: textblock
33237 #: ../src/guestfs.pod:1234
33238 msgid ""
33239 "A raw disk image is just the raw bytes, there is no header.  Other disk "
33240 "images like qcow2 contain a special header.  Qemu deals with this by looking "
33241 "for one of the known headers, and if none is found then assuming the disk "
33242 "image must be raw."
33243 msgstr ""
33244
33245 #. type: textblock
33246 #: ../src/guestfs.pod:1239
33247 msgid ""
33248 "This allows a guest which has been given a raw disk image to write some "
33249 "other header.  At next boot (or when the disk image is accessed by "
33250 "libguestfs) qemu would do autodetection and think the disk image format was, "
33251 "say, qcow2 based on the header written by the guest."
33252 msgstr ""
33253
33254 #. type: textblock
33255 #: ../src/guestfs.pod:1244
33256 msgid ""
33257 "This in itself would not be a problem, but qcow2 offers many features, one "
33258 "of which is to allow a disk image to refer to another image (called the "
33259 "\"backing disk\").  It does this by placing the path to the backing disk "
33260 "into the qcow2 header.  This path is not validated and could point to any "
33261 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
33262 "\"holes\" in the qcow2 disk image, which of course is completely under the "
33263 "control of the attacker."
33264 msgstr ""
33265
33266 #. type: textblock
33267 #: ../src/guestfs.pod:1252
33268 msgid ""
33269 "In libguestfs this is rather hard to exploit except under two circumstances:"
33270 msgstr ""
33271
33272 #. type: textblock
33273 #: ../src/guestfs.pod:1259
33274 msgid "You have enabled the network or have opened the disk in write mode."
33275 msgstr ""
33276
33277 #. type: textblock
33278 #: ../src/guestfs.pod:1263
33279 msgid ""
33280 "You are also running untrusted code from the guest (see L</RUNNING "
33281 "COMMANDS>)."
33282 msgstr ""
33283
33284 #. type: textblock
33285 #: ../src/guestfs.pod:1268
33286 msgid ""
33287 "The way to avoid this is to specify the expected disk format when adding "
33288 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
33289 "should always do this if the disk is raw format, and it's a good idea for "
33290 "other cases too."
33291 msgstr ""
33292
33293 #. type: textblock
33294 #: ../src/guestfs.pod:1273
33295 msgid ""
33296 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
33297 "format is fetched from libvirt and passed through."
33298 msgstr ""
33299
33300 #. type: textblock
33301 #: ../src/guestfs.pod:1276
33302 msgid ""
33303 "For libguestfs tools, use the I<--format> command line parameter as "
33304 "appropriate."
33305 msgstr ""
33306
33307 #. type: =head1
33308 #: ../src/guestfs.pod:1279
33309 msgid "CONNECTION MANAGEMENT"
33310 msgstr ""
33311
33312 #. type: =head2
33313 #: ../src/guestfs.pod:1281
33314 msgid "guestfs_h *"
33315 msgstr ""
33316
33317 #. type: textblock
33318 #: ../src/guestfs.pod:1283
33319 msgid ""
33320 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
33321 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
33322 "handle and release all resources used."
33323 msgstr ""
33324
33325 #. type: textblock
33326 #: ../src/guestfs.pod:1287
33327 msgid ""
33328 "For information on using multiple handles and threads, see the section L</"
33329 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
33330 msgstr ""
33331
33332 #. type: =head2
33333 #: ../src/guestfs.pod:1290
33334 msgid "guestfs_create"
33335 msgstr ""
33336
33337 #. type: verbatim
33338 #: ../src/guestfs.pod:1292
33339 #, no-wrap
33340 msgid ""
33341 " guestfs_h *guestfs_create (void);\n"
33342 "\n"
33343 msgstr ""
33344
33345 #. type: textblock
33346 #: ../src/guestfs.pod:1294
33347 msgid "Create a connection handle."
33348 msgstr ""
33349
33350 #. type: textblock
33351 #: ../src/guestfs.pod:1296
33352 msgid ""
33353 "On success this returns a non-NULL pointer to a handle.  On error it returns "
33354 "NULL."
33355 msgstr ""
33356
33357 #. type: textblock
33358 #: ../src/guestfs.pod:1299
33359 msgid ""
33360 "You have to \"configure\" the handle after creating it.  This includes "
33361 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
33362 "handle at least once."
33363 msgstr ""
33364
33365 #. type: textblock
33366 #: ../src/guestfs.pod:1303
33367 msgid "After configuring the handle, you have to call L</guestfs_launch>."
33368 msgstr ""
33369
33370 #. type: textblock
33371 #: ../src/guestfs.pod:1305
33372 msgid ""
33373 "You may also want to configure error handling for the handle.  See the L</"
33374 "ERROR HANDLING> section below."
33375 msgstr ""
33376
33377 #. type: =head2
33378 #: ../src/guestfs.pod:1308
33379 msgid "guestfs_close"
33380 msgstr ""
33381
33382 #. type: verbatim
33383 #: ../src/guestfs.pod:1310
33384 #, no-wrap
33385 msgid ""
33386 " void guestfs_close (guestfs_h *g);\n"
33387 "\n"
33388 msgstr ""
33389
33390 #. type: textblock
33391 #: ../src/guestfs.pod:1312
33392 msgid "This closes the connection handle and frees up all resources used."
33393 msgstr ""
33394
33395 #. type: textblock
33396 #: ../src/guestfs.pod:1314
33397 msgid ""
33398 "If autosync was set on the handle and the handle was launched, then this "
33399 "implicitly calls various functions to unmount filesystems and sync the "
33400 "disk.  See L</guestfs_set_autosync> for more details."
33401 msgstr ""
33402
33403 #. type: textblock
33404 #: ../src/guestfs.pod:1318
33405 msgid "If a close callback was set on the handle, then it is called."
33406 msgstr ""
33407
33408 #. type: =head1
33409 #: ../src/guestfs.pod:1320
33410 msgid "ERROR HANDLING"
33411 msgstr ""
33412
33413 #. type: textblock
33414 #: ../src/guestfs.pod:1322
33415 msgid ""
33416 "API functions can return errors.  For example, almost all functions that "
33417 "return C<int> will return C<-1> to indicate an error."
33418 msgstr ""
33419
33420 #. type: textblock
33421 #: ../src/guestfs.pod:1325
33422 msgid ""
33423 "Additional information is available for errors: an error message string and "
33424 "optionally an error number (errno) if the thing that failed was a system "
33425 "call."
33426 msgstr ""
33427
33428 #. type: textblock
33429 #: ../src/guestfs.pod:1329
33430 msgid ""
33431 "You can get at the additional information about the last error on the handle "
33432 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
33433 "up an error handler with L</guestfs_set_error_handler>."
33434 msgstr ""
33435
33436 #. type: textblock
33437 #: ../src/guestfs.pod:1334
33438 msgid ""
33439 "When the handle is created, a default error handler is installed which "
33440 "prints the error message string to C<stderr>.  For small short-running "
33441 "command line programs it is sufficient to do:"
33442 msgstr ""
33443
33444 #. type: verbatim
33445 #: ../src/guestfs.pod:1338
33446 #, no-wrap
33447 msgid ""
33448 " if (guestfs_launch (g) == -1)\n"
33449 "   exit (EXIT_FAILURE);\n"
33450 "\n"
33451 msgstr ""
33452
33453 #. type: textblock
33454 #: ../src/guestfs.pod:1341
33455 msgid ""
33456 "since the default error handler will ensure that an error message has been "
33457 "printed to C<stderr> before the program exits."
33458 msgstr ""
33459
33460 #. type: textblock
33461 #: ../src/guestfs.pod:1344
33462 msgid ""
33463 "For other programs the caller will almost certainly want to install an "
33464 "alternate error handler or do error handling in-line like this:"
33465 msgstr ""
33466
33467 #. type: verbatim
33468 #: ../src/guestfs.pod:1347
33469 #, no-wrap
33470 msgid ""
33471 " g = guestfs_create ();\n"
33472 " \n"
33473 msgstr ""
33474
33475 #. type: verbatim
33476 #: ../src/guestfs.pod:1349
33477 #, no-wrap
33478 msgid ""
33479 " /* This disables the default behaviour of printing errors\n"
33480 "    on stderr. */\n"
33481 " guestfs_set_error_handler (g, NULL, NULL);\n"
33482 " \n"
33483 msgstr ""
33484
33485 #. type: verbatim
33486 #: ../src/guestfs.pod:1353
33487 #, no-wrap
33488 msgid ""
33489 " if (guestfs_launch (g) == -1) {\n"
33490 "   /* Examine the error message and print it etc. */\n"
33491 "   char *msg = guestfs_last_error (g);\n"
33492 "   int errnum = guestfs_last_errno (g);\n"
33493 "   fprintf (stderr, \"%s\\n\", msg);\n"
33494 "   /* ... */\n"
33495 "  }\n"
33496 "\n"
33497 msgstr ""
33498
33499 #. type: textblock
33500 #: ../src/guestfs.pod:1361
33501 msgid ""
33502 "Out of memory errors are handled differently.  The default action is to call "
33503 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
33504 "guestfs_set_out_of_memory_handler>."
33505 msgstr ""
33506
33507 #. type: textblock
33508 #: ../src/guestfs.pod:1365
33509 msgid ""
33510 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
33511 "because there is no handle if this happens there is no way to get additional "
33512 "error information.  However L</guestfs_create> is supposed to be a "
33513 "lightweight operation which can only fail because of insufficient memory (it "
33514 "returns NULL in this case)."
33515 msgstr ""
33516
33517 #. type: =head2
33518 #: ../src/guestfs.pod:1371
33519 msgid "guestfs_last_error"
33520 msgstr ""
33521
33522 #. type: verbatim
33523 #: ../src/guestfs.pod:1373
33524 #, no-wrap
33525 msgid ""
33526 " const char *guestfs_last_error (guestfs_h *g);\n"
33527 "\n"
33528 msgstr ""
33529
33530 #. type: textblock
33531 #: ../src/guestfs.pod:1375
33532 msgid ""
33533 "This returns the last error message that happened on C<g>.  If there has not "
33534 "been an error since the handle was created, then this returns C<NULL>."
33535 msgstr ""
33536
33537 #. type: textblock
33538 #: ../src/guestfs.pod:1379
33539 msgid ""
33540 "The lifetime of the returned string is until the next error occurs, or L</"
33541 "guestfs_close> is called."
33542 msgstr ""
33543
33544 #. type: =head2
33545 #: ../src/guestfs.pod:1382
33546 msgid "guestfs_last_errno"
33547 msgstr ""
33548
33549 #. type: verbatim
33550 #: ../src/guestfs.pod:1384
33551 #, no-wrap
33552 msgid ""
33553 " int guestfs_last_errno (guestfs_h *g);\n"
33554 "\n"
33555 msgstr ""
33556
33557 #. type: textblock
33558 #: ../src/guestfs.pod:1386
33559 msgid "This returns the last error number (errno) that happened on C<g>."
33560 msgstr ""
33561
33562 #. type: textblock
33563 #: ../src/guestfs.pod:1388
33564 msgid "If successful, an errno integer not equal to zero is returned."
33565 msgstr ""
33566
33567 #. type: textblock
33568 #: ../src/guestfs.pod:1390
33569 msgid ""
33570 "If no error, this returns 0.  This call can return 0 in three situations:"
33571 msgstr ""
33572
33573 #. type: textblock
33574 #: ../src/guestfs.pod:1397
33575 msgid "There has not been any error on the handle."
33576 msgstr ""
33577
33578 #. type: textblock
33579 #: ../src/guestfs.pod:1401
33580 msgid ""
33581 "There has been an error but the errno was meaningless.  This corresponds to "
33582 "the case where the error did not come from a failed system call, but for "
33583 "some other reason."
33584 msgstr ""
33585
33586 #. type: textblock
33587 #: ../src/guestfs.pod:1407
33588 msgid ""
33589 "There was an error from a failed system call, but for some reason the errno "
33590 "was not captured and returned.  This usually indicates a bug in libguestfs."
33591 msgstr ""
33592
33593 #. type: textblock
33594 #: ../src/guestfs.pod:1413
33595 msgid ""
33596 "Libguestfs tries to convert the errno from inside the applicance into a "
33597 "corresponding errno for the caller (not entirely trivial: the appliance "
33598 "might be running a completely different operating system from the library "
33599 "and error numbers are not standardized across Un*xen).  If this could not be "
33600 "done, then the error is translated to C<EINVAL>.  In practice this should "
33601 "only happen in very rare circumstances."
33602 msgstr ""
33603
33604 #. type: =head2
33605 #: ../src/guestfs.pod:1421
33606 msgid "guestfs_set_error_handler"
33607 msgstr ""
33608
33609 #. type: verbatim
33610 #: ../src/guestfs.pod:1423
33611 #, no-wrap
33612 msgid ""
33613 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
33614 "                                           void *opaque,\n"
33615 "                                           const char *msg);\n"
33616 " void guestfs_set_error_handler (guestfs_h *g,\n"
33617 "                                 guestfs_error_handler_cb cb,\n"
33618 "                                 void *opaque);\n"
33619 "\n"
33620 msgstr ""
33621
33622 #. type: textblock
33623 #: ../src/guestfs.pod:1430
33624 msgid ""
33625 "The callback C<cb> will be called if there is an error.  The parameters "
33626 "passed to the callback are an opaque data pointer and the error message "
33627 "string."
33628 msgstr ""
33629
33630 #. type: textblock
33631 #: ../src/guestfs.pod:1434
33632 msgid ""
33633 "C<errno> is not passed to the callback.  To get that the callback must call "
33634 "L</guestfs_last_errno>."
33635 msgstr ""
33636
33637 #. type: textblock
33638 #: ../src/guestfs.pod:1437
33639 msgid ""
33640 "Note that the message string C<msg> is freed as soon as the callback "
33641 "function returns, so if you want to stash it somewhere you must make your "
33642 "own copy."
33643 msgstr ""
33644
33645 #. type: textblock
33646 #: ../src/guestfs.pod:1441
33647 msgid "The default handler prints messages on C<stderr>."
33648 msgstr ""
33649
33650 #. type: textblock
33651 #: ../src/guestfs.pod:1443
33652 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
33653 msgstr ""
33654
33655 #. type: =head2
33656 #: ../src/guestfs.pod:1445
33657 msgid "guestfs_get_error_handler"
33658 msgstr ""
33659
33660 #. type: verbatim
33661 #: ../src/guestfs.pod:1447
33662 #, no-wrap
33663 msgid ""
33664 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
33665 "                                                     void **opaque_rtn);\n"
33666 "\n"
33667 msgstr ""
33668
33669 #. type: textblock
33670 #: ../src/guestfs.pod:1450
33671 msgid "Returns the current error handler callback."
33672 msgstr ""
33673
33674 #. type: =head2
33675 #: ../src/guestfs.pod:1452
33676 msgid "guestfs_set_out_of_memory_handler"
33677 msgstr ""
33678
33679 #. type: verbatim
33680 #: ../src/guestfs.pod:1454
33681 #, no-wrap
33682 msgid ""
33683 " typedef void (*guestfs_abort_cb) (void);\n"
33684 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
33685 "                                         guestfs_abort_cb);\n"
33686 "\n"
33687 msgstr ""
33688
33689 #. type: textblock
33690 #: ../src/guestfs.pod:1458
33691 msgid ""
33692 "The callback C<cb> will be called if there is an out of memory situation.  "
33693 "I<Note this callback must not return>."
33694 msgstr ""
33695
33696 #. type: textblock
33697 #: ../src/guestfs.pod:1461
33698 msgid "The default is to call L<abort(3)>."
33699 msgstr ""
33700
33701 #. type: textblock
33702 #: ../src/guestfs.pod:1463
33703 msgid ""
33704 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
33705 msgstr ""
33706
33707 #. type: =head2
33708 #: ../src/guestfs.pod:1466
33709 msgid "guestfs_get_out_of_memory_handler"
33710 msgstr ""
33711
33712 #. type: verbatim
33713 #: ../src/guestfs.pod:1468
33714 #, no-wrap
33715 msgid ""
33716 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
33717 "\n"
33718 msgstr ""
33719
33720 #. type: textblock
33721 #: ../src/guestfs.pod:1470
33722 msgid "This returns the current out of memory handler."
33723 msgstr ""
33724
33725 #. type: =head1
33726 #: ../src/guestfs.pod:1472
33727 msgid "API CALLS"
33728 msgstr ""
33729
33730 #. type: =head1
33731 #: ../src/guestfs.pod:1476
33732 msgid "STRUCTURES"
33733 msgstr ""
33734
33735 #. type: textblock
33736 #: ../src/guestfs.pod:1478
33737 msgid "@STRUCTS@"
33738 msgstr ""
33739
33740 #. type: =head1
33741 #: ../src/guestfs.pod:1480
33742 msgid "AVAILABILITY"
33743 msgstr ""
33744
33745 #. type: =head2
33746 #: ../src/guestfs.pod:1482
33747 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
33748 msgstr ""
33749
33750 #. type: textblock
33751 #: ../src/guestfs.pod:1484
33752 msgid ""
33753 "Using L</guestfs_available> you can test availability of the following "
33754 "groups of functions.  This test queries the appliance to see if the "
33755 "appliance you are currently using supports the functionality."
33756 msgstr ""
33757
33758 #. type: textblock
33759 #: ../src/guestfs.pod:1489
33760 msgid "@AVAILABILITY@"
33761 msgstr ""
33762
33763 #. type: =head2
33764 #: ../src/guestfs.pod:1491
33765 msgid "GUESTFISH supported COMMAND"
33766 msgstr ""
33767
33768 #. type: textblock
33769 #: ../src/guestfs.pod:1493
33770 msgid ""
33771 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
33772 "prints out the available groups and whether they are supported by this build "
33773 "of libguestfs.  Note however that you have to do C<run> first."
33774 msgstr ""
33775
33776 #. type: =head2
33777 #: ../src/guestfs.pod:1498
33778 msgid "SINGLE CALLS AT COMPILE TIME"
33779 msgstr ""
33780
33781 #. type: textblock
33782 #: ../src/guestfs.pod:1500
33783 msgid ""
33784 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
33785 "function, such as:"
33786 msgstr ""
33787
33788 #. type: verbatim
33789 #: ../src/guestfs.pod:1503
33790 #, no-wrap
33791 msgid ""
33792 " #define LIBGUESTFS_HAVE_DD 1\n"
33793 "\n"
33794 msgstr ""
33795
33796 #. type: textblock
33797 #: ../src/guestfs.pod:1505
33798 msgid "if L</guestfs_dd> is available."
33799 msgstr ""
33800
33801 #. type: textblock
33802 #: ../src/guestfs.pod:1507
33803 msgid ""
33804 "Before version 1.5.8, if you needed to test whether a single libguestfs "
33805 "function is available at compile time, we recommended using build tools such "
33806 "as autoconf or cmake.  For example in autotools you could use:"
33807 msgstr ""
33808
33809 #. type: verbatim
33810 #: ../src/guestfs.pod:1512
33811 #, no-wrap
33812 msgid ""
33813 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
33814 " AC_CHECK_FUNCS([guestfs_dd])\n"
33815 "\n"
33816 msgstr ""
33817
33818 #. type: textblock
33819 #: ../src/guestfs.pod:1515
33820 msgid ""
33821 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
33822 "in your program."
33823 msgstr ""
33824
33825 #. type: =head2
33826 #: ../src/guestfs.pod:1518
33827 msgid "SINGLE CALLS AT RUN TIME"
33828 msgstr ""
33829
33830 #. type: textblock
33831 #: ../src/guestfs.pod:1520
33832 msgid ""
33833 "Testing at compile time doesn't guarantee that a function really exists in "
33834 "the library.  The reason is that you might be dynamically linked against a "
33835 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
33836 "This situation unfortunately results in a segmentation fault, which is a "
33837 "shortcoming of the C dynamic linking system itself."
33838 msgstr ""
33839
33840 #. type: textblock
33841 #: ../src/guestfs.pod:1527
33842 msgid ""
33843 "You can use L<dlopen(3)> to test if a function is available at run time, as "
33844 "in this example program (note that you still need the compile time check as "
33845 "well):"
33846 msgstr ""
33847
33848 #. type: verbatim
33849 #: ../src/guestfs.pod:1531
33850 #, no-wrap
33851 msgid ""
33852 " #include <stdio.h>\n"
33853 " #include <stdlib.h>\n"
33854 " #include <unistd.h>\n"
33855 " #include <dlfcn.h>\n"
33856 " #include <guestfs.h>\n"
33857 " \n"
33858 msgstr ""
33859
33860 #. type: verbatim
33861 #: ../src/guestfs.pod:1537
33862 #, no-wrap
33863 msgid ""
33864 " main ()\n"
33865 " {\n"
33866 " #ifdef LIBGUESTFS_HAVE_DD\n"
33867 "   void *dl;\n"
33868 "   int has_function;\n"
33869 " \n"
33870 msgstr ""
33871
33872 #. type: verbatim
33873 #: ../src/guestfs.pod:1543
33874 #, no-wrap
33875 msgid ""
33876 "   /* Test if the function guestfs_dd is really available. */\n"
33877 "   dl = dlopen (NULL, RTLD_LAZY);\n"
33878 "   if (!dl) {\n"
33879 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
33880 "     exit (EXIT_FAILURE);\n"
33881 "   }\n"
33882 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
33883 "   dlclose (dl);\n"
33884 " \n"
33885 msgstr ""
33886
33887 #. type: verbatim
33888 #: ../src/guestfs.pod:1552
33889 #, no-wrap
33890 msgid ""
33891 "   if (!has_function)\n"
33892 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
33893 "   else {\n"
33894 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
33895 "     /* Now it's safe to call\n"
33896 "     guestfs_dd (g, \"foo\", \"bar\");\n"
33897 "     */\n"
33898 "   }\n"
33899 " #else\n"
33900 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
33901 " #endif\n"
33902 "  }\n"
33903 "\n"
33904 msgstr ""
33905
33906 #. type: textblock
33907 #: ../src/guestfs.pod:1565
33908 msgid ""
33909 "You may think the above is an awful lot of hassle, and it is.  There are "
33910 "other ways outside of the C linking system to ensure that this kind of "
33911 "incompatibility never arises, such as using package versioning:"
33912 msgstr ""
33913
33914 #. type: verbatim
33915 #: ../src/guestfs.pod:1570
33916 #, no-wrap
33917 msgid ""
33918 " Requires: libguestfs >= 1.0.80\n"
33919 "\n"
33920 msgstr ""
33921
33922 #. type: =head1
33923 #: ../src/guestfs.pod:1572
33924 msgid "CALLS WITH OPTIONAL ARGUMENTS"
33925 msgstr ""
33926
33927 #. type: textblock
33928 #: ../src/guestfs.pod:1574
33929 msgid ""
33930 "A recent feature of the API is the introduction of calls which take optional "
33931 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
33932 "takes variable arguments (ie. C<...>), as in this example:"
33933 msgstr ""
33934
33935 #. type: verbatim
33936 #: ../src/guestfs.pod:1579
33937 #, no-wrap
33938 msgid ""
33939 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
33940 "\n"
33941 msgstr ""
33942
33943 #. type: textblock
33944 #: ../src/guestfs.pod:1581
33945 msgid ""
33946 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
33947 "call with no optional arguments specified:"
33948 msgstr ""
33949
33950 #. type: verbatim
33951 #: ../src/guestfs.pod:1584
33952 #, no-wrap
33953 msgid ""
33954 " guestfs_add_drive_opts (g, filename, -1);\n"
33955 "\n"
33956 msgstr ""
33957
33958 #. type: textblock
33959 #: ../src/guestfs.pod:1586
33960 msgid "With a single optional argument:"
33961 msgstr ""
33962
33963 #. type: verbatim
33964 #: ../src/guestfs.pod:1588
33965 #, no-wrap
33966 msgid ""
33967 " guestfs_add_drive_opts (g, filename,\n"
33968 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33969 "                         -1);\n"
33970 "\n"
33971 msgstr ""
33972
33973 #. type: textblock
33974 #: ../src/guestfs.pod:1592
33975 msgid "With two:"
33976 msgstr ""
33977
33978 #. type: verbatim
33979 #: ../src/guestfs.pod:1594
33980 #, no-wrap
33981 msgid ""
33982 " guestfs_add_drive_opts (g, filename,\n"
33983 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33984 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33985 "                         -1);\n"
33986 "\n"
33987 msgstr ""
33988
33989 #. type: textblock
33990 #: ../src/guestfs.pod:1599
33991 msgid ""
33992 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
33993 "happen!"
33994 msgstr ""
33995
33996 #. type: =head2
33997 #: ../src/guestfs.pod:1602
33998 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
33999 msgstr ""
34000
34001 #. type: textblock
34002 #: ../src/guestfs.pod:1604
34003 msgid ""
34004 "The second variant has the same name with the suffix C<_va>, which works the "
34005 "same way but takes a C<va_list>.  See the C manual for details.  For the "
34006 "example function, this is declared:"
34007 msgstr ""
34008
34009 #. type: verbatim
34010 #: ../src/guestfs.pod:1608
34011 #, no-wrap
34012 msgid ""
34013 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
34014 "                                va_list args);\n"
34015 "\n"
34016 msgstr ""
34017
34018 #. type: =head2
34019 #: ../src/guestfs.pod:1611
34020 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
34021 msgstr ""
34022
34023 #. type: textblock
34024 #: ../src/guestfs.pod:1613
34025 msgid ""
34026 "The third variant is useful where you need to construct these calls.  You "
34027 "pass in a structure where you fill in the optional fields.  The structure "
34028 "has a bitmask as the first element which you must set to indicate which "
34029 "fields you have filled in.  For our example function the structure and call "
34030 "are declared:"
34031 msgstr ""
34032
34033 #. type: verbatim
34034 #: ../src/guestfs.pod:1619
34035 #, no-wrap
34036 msgid ""
34037 " struct guestfs_add_drive_opts_argv {\n"
34038 "   uint64_t bitmask;\n"
34039 "   int readonly;\n"
34040 "   const char *format;\n"
34041 "   /* ... */\n"
34042 " };\n"
34043 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
34044 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
34045 "\n"
34046 msgstr ""
34047
34048 #. type: textblock
34049 #: ../src/guestfs.pod:1628
34050 msgid "You could call it like this:"
34051 msgstr ""
34052
34053 #. type: verbatim
34054 #: ../src/guestfs.pod:1630
34055 #, no-wrap
34056 msgid ""
34057 " struct guestfs_add_drive_opts_argv optargs = {\n"
34058 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
34059 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
34060 "   .readonly = 1,\n"
34061 "   .format = \"qcow2\"\n"
34062 " };\n"
34063 " \n"
34064 msgstr ""
34065
34066 #. type: verbatim
34067 #: ../src/guestfs.pod:1637
34068 #, no-wrap
34069 msgid ""
34070 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
34071 "\n"
34072 msgstr ""
34073
34074 #. type: textblock
34075 #: ../src/guestfs.pod:1645
34076 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
34077 msgstr ""
34078
34079 #. type: textblock
34080 #: ../src/guestfs.pod:1650
34081 msgid "You do not need to fill in all fields of the structure."
34082 msgstr ""
34083
34084 #. type: textblock
34085 #: ../src/guestfs.pod:1654
34086 msgid ""
34087 "There must be a one-to-one correspondence between fields of the structure "
34088 "that are filled in, and bits set in the bitmask."
34089 msgstr ""
34090
34091 #. type: =head2
34092 #: ../src/guestfs.pod:1659
34093 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
34094 msgstr ""
34095
34096 #. type: textblock
34097 #: ../src/guestfs.pod:1661
34098 msgid ""
34099 "In other languages, optional arguments are expressed in the way that is "
34100 "natural for that language.  We refer you to the language-specific "
34101 "documentation for more details on that."
34102 msgstr ""
34103
34104 #. type: textblock
34105 #: ../src/guestfs.pod:1665
34106 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
34107 msgstr ""
34108
34109 #. type: =head2
34110 #: ../src/guestfs.pod:1667
34111 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
34112 msgstr ""
34113
34114 #. type: textblock
34115 #: ../src/guestfs.pod:1669
34116 msgid ""
34117 "B<Note:> This section documents the generic event mechanism introduced in "
34118 "libguestfs 1.10, which you should use in new code if possible.  The old "
34119 "functions C<guestfs_set_log_message_callback>, "
34120 "C<guestfs_set_subprocess_quit_callback>, "
34121 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
34122 "C<guestfs_set_progress_callback> are no longer documented in this manual "
34123 "page.  Because of the ABI guarantee, the old functions continue to work."
34124 msgstr ""
34125
34126 #. type: textblock
34127 #: ../src/guestfs.pod:1678
34128 msgid ""
34129 "Handles generate events when certain things happen, such as log messages "
34130 "being generated, progress messages during long-running operations, or the "
34131 "handle being closed.  The API calls described below let you register a "
34132 "callback to be called when events happen.  You can register multiple "
34133 "callbacks (for the same, different or overlapping sets of events), and "
34134 "individually remove callbacks.  If callbacks are not removed, then they "
34135 "remain in force until the handle is closed."
34136 msgstr ""
34137
34138 #. type: textblock
34139 #: ../src/guestfs.pod:1686
34140 msgid ""
34141 "In the current implementation, events are only generated synchronously: that "
34142 "means that events (and hence callbacks) can only happen while you are in the "
34143 "middle of making another libguestfs call.  The callback is called in the "
34144 "same thread."
34145 msgstr ""
34146
34147 #. type: textblock
34148 #: ../src/guestfs.pod:1691
34149 msgid ""
34150 "Events may contain a payload, usually nothing (void), an array of 64 bit "
34151 "unsigned integers, or a message buffer.  Payloads are discussed later on."
34152 msgstr ""
34153
34154 #. type: =head3
34155 #: ../src/guestfs.pod:1695
34156 msgid "CLASSES OF EVENTS"
34157 msgstr ""
34158
34159 #. type: =item
34160 #: ../src/guestfs.pod:1699
34161 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
34162 msgstr ""
34163
34164 #. type: textblock
34165 #: ../src/guestfs.pod:1702
34166 msgid ""
34167 "The callback function will be called while the handle is being closed "
34168 "(synchronously from L</guestfs_close>)."
34169 msgstr ""
34170
34171 #. type: textblock
34172 #: ../src/guestfs.pod:1705
34173 msgid ""
34174 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
34175 "handles that are open when the program exits.  This means that this callback "
34176 "might be called indirectly from L<exit(3)>, which can cause unexpected "
34177 "problems in higher-level languages (eg. if your HLL interpreter has already "
34178 "been cleaned up by the time this is called, and if your callback then jumps "
34179 "into some HLL function)."
34180 msgstr ""
34181
34182 #. type: textblock
34183 #: ../src/guestfs.pod:1712
34184 msgid ""
34185 "If no callback is registered: the handle is closed without any callback "
34186 "being invoked."
34187 msgstr ""
34188
34189 #. type: =item
34190 #: ../src/guestfs.pod:1715
34191 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
34192 msgstr ""
34193
34194 #. type: textblock
34195 #: ../src/guestfs.pod:1718
34196 msgid ""
34197 "The callback function will be called when the child process quits, either "
34198 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
34199 "corresponds to a transition from any state to the CONFIG state)."
34200 msgstr ""
34201
34202 #. type: textblock
34203 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
34204 msgid "If no callback is registered: the event is ignored."
34205 msgstr ""
34206
34207 #. type: =item
34208 #: ../src/guestfs.pod:1724
34209 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
34210 msgstr ""
34211
34212 #. type: textblock
34213 #: ../src/guestfs.pod:1727
34214 msgid ""
34215 "The callback function will be called when the child process becomes ready "
34216 "first time after it has been launched.  (This corresponds to a transition "
34217 "from LAUNCHING to the READY state)."
34218 msgstr ""
34219
34220 #. type: =item
34221 #: ../src/guestfs.pod:1733
34222 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
34223 msgstr ""
34224
34225 #. type: textblock
34226 #: ../src/guestfs.pod:1736
34227 msgid ""
34228 "Some long-running operations can generate progress messages.  If this "
34229 "callback is registered, then it will be called each time a progress message "
34230 "is generated (usually two seconds after the operation started, and three "
34231 "times per second thereafter until it completes, although the frequency may "
34232 "change in future versions)."
34233 msgstr ""
34234
34235 #. type: textblock
34236 #: ../src/guestfs.pod:1742
34237 msgid ""
34238 "The callback receives in the payload four unsigned 64 bit numbers which are "
34239 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
34240 msgstr ""
34241
34242 #. type: textblock
34243 #: ../src/guestfs.pod:1745
34244 msgid ""
34245 "The units of C<total> are not defined, although for some operations C<total> "
34246 "may relate in some way to the amount of data to be transferred (eg. in bytes "
34247 "or megabytes), and C<position> may be the portion which has been transferred."
34248 msgstr ""
34249
34250 #. type: textblock
34251 #: ../src/guestfs.pod:1750
34252 msgid "The only defined and stable parts of the API are:"
34253 msgstr ""
34254
34255 #. type: textblock
34256 #: ../src/guestfs.pod:1756
34257 msgid ""
34258 "The callback can display to the user some type of progress bar or indicator "
34259 "which shows the ratio of C<position>:C<total>."
34260 msgstr ""
34261
34262 #. type: textblock
34263 #: ../src/guestfs.pod:1761
34264 msgid "0 E<lt>= C<position> E<lt>= C<total>"
34265 msgstr ""
34266
34267 #. type: textblock
34268 #: ../src/guestfs.pod:1765
34269 msgid ""
34270 "If any progress notification is sent during a call, then a final progress "
34271 "notification is always sent when C<position> = C<total> (I<unless> the call "
34272 "fails with an error)."
34273 msgstr ""
34274
34275 #. type: textblock
34276 #: ../src/guestfs.pod:1769
34277 msgid ""
34278 "This is to simplify caller code, so callers can easily set the progress "
34279 "indicator to \"100%\" at the end of the operation, without requiring special "
34280 "code to detect this case."
34281 msgstr ""
34282
34283 #. type: textblock
34284 #: ../src/guestfs.pod:1775
34285 msgid ""
34286 "For some calls we are unable to estimate the progress of the call, but we "
34287 "can still generate progress messages to indicate activity.  This is known as "
34288 "\"pulse mode\", and is directly supported by certain progress bar "
34289 "implementations (eg. GtkProgressBar)."
34290 msgstr ""
34291
34292 #. type: textblock
34293 #: ../src/guestfs.pod:1780
34294 msgid ""
34295 "For these calls, zero or more progress messages are generated with "
34296 "C<position = 0> and C<total = 1>, followed by a final message with "
34297 "C<position = total = 1>."
34298 msgstr ""
34299
34300 #. type: textblock
34301 #: ../src/guestfs.pod:1784
34302 msgid ""
34303 "As noted above, if the call fails with an error then the final message may "
34304 "not be generated."
34305 msgstr ""
34306
34307 #. type: textblock
34308 #: ../src/guestfs.pod:1789
34309 msgid ""
34310 "The callback also receives the procedure number (C<proc_nr>) and serial "
34311 "number (C<serial>) of the call.  These are only useful for debugging "
34312 "protocol issues, and the callback can normally ignore them.  The callback "
34313 "may want to print these numbers in error messages or debugging messages."
34314 msgstr ""
34315
34316 #. type: textblock
34317 #: ../src/guestfs.pod:1795
34318 msgid "If no callback is registered: progress messages are discarded."
34319 msgstr ""
34320
34321 #. type: =item
34322 #: ../src/guestfs.pod:1797
34323 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
34324 msgstr ""
34325
34326 #. type: textblock
34327 #: ../src/guestfs.pod:1800
34328 msgid ""
34329 "The callback function is called whenever a log message is generated by qemu, "
34330 "the appliance kernel, guestfsd (daemon), or utility programs."
34331 msgstr ""
34332
34333 #. type: textblock
34334 #: ../src/guestfs.pod:1803
34335 msgid ""
34336 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
34337 "guestfs_launch>) then additional debug messages are generated."
34338 msgstr ""
34339
34340 #. type: textblock
34341 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
34342 msgid ""
34343 "If no callback is registered: the messages are discarded unless the verbose "
34344 "flag is set in which case they are sent to stderr.  You can override the "
34345 "printing of verbose messages to stderr by setting up a callback."
34346 msgstr ""
34347
34348 #. type: =item
34349 #: ../src/guestfs.pod:1811
34350 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
34351 msgstr ""
34352
34353 #. type: textblock
34354 #: ../src/guestfs.pod:1814
34355 msgid ""
34356 "The callback function is called whenever a log message is generated by the "
34357 "library part of libguestfs."
34358 msgstr ""
34359
34360 #. type: textblock
34361 #: ../src/guestfs.pod:1817
34362 msgid ""
34363 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
34364 "messages are generated."
34365 msgstr ""
34366
34367 #. type: =item
34368 #: ../src/guestfs.pod:1825
34369 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
34370 msgstr ""
34371
34372 #. type: textblock
34373 #: ../src/guestfs.pod:1828
34374 msgid ""
34375 "The callback function is called whenever a trace message is generated.  This "
34376 "only applies if the trace flag (L</guestfs_set_trace>) is set."
34377 msgstr ""
34378
34379 #. type: textblock
34380 #: ../src/guestfs.pod:1831
34381 msgid ""
34382 "If no callback is registered: the messages are sent to stderr.  You can "
34383 "override the printing of trace messages to stderr by setting up a callback."
34384 msgstr ""
34385
34386 #. type: =head3
34387 #: ../src/guestfs.pod:1837
34388 msgid "guestfs_set_event_callback"
34389 msgstr ""
34390
34391 #. type: verbatim
34392 #: ../src/guestfs.pod:1839
34393 #, no-wrap
34394 msgid ""
34395 " int guestfs_set_event_callback (guestfs_h *g,\n"
34396 "                                 guestfs_event_callback cb,\n"
34397 "                                 uint64_t event_bitmask,\n"
34398 "                                 int flags,\n"
34399 "                                 void *opaque);\n"
34400 "\n"
34401 msgstr ""
34402
34403 #. type: textblock
34404 #: ../src/guestfs.pod:1845
34405 msgid ""
34406 "This function registers a callback (C<cb>) for all event classes in the "
34407 "C<event_bitmask>."
34408 msgstr ""
34409
34410 #. type: textblock
34411 #: ../src/guestfs.pod:1848
34412 msgid ""
34413 "For example, to register for all log message events, you could call this "
34414 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
34415 "To register a single callback for all possible classes of events, use "
34416 "C<GUESTFS_EVENT_ALL>."
34417 msgstr ""
34418
34419 #. type: textblock
34420 #: ../src/guestfs.pod:1854
34421 msgid "C<flags> should always be passed as 0."
34422 msgstr ""
34423
34424 #. type: textblock
34425 #: ../src/guestfs.pod:1856
34426 msgid ""
34427 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
34428 "it for any purpose."
34429 msgstr ""
34430
34431 #. type: textblock
34432 #: ../src/guestfs.pod:1859
34433 msgid ""
34434 "The return value is the event handle (an integer) which you can use to "
34435 "delete the callback (see below)."
34436 msgstr ""
34437
34438 #. type: textblock
34439 #: ../src/guestfs.pod:1862
34440 msgid ""
34441 "If there is an error, this function returns C<-1>, and sets the error in the "
34442 "handle in the usual way (see L</guestfs_last_error> etc.)"
34443 msgstr ""
34444
34445 #. type: textblock
34446 #: ../src/guestfs.pod:1865
34447 msgid ""
34448 "Callbacks remain in effect until they are deleted, or until the handle is "
34449 "closed."
34450 msgstr ""
34451
34452 #. type: textblock
34453 #: ../src/guestfs.pod:1868
34454 msgid ""
34455 "In the case where multiple callbacks are registered for a particular event "
34456 "class, all of the callbacks are called.  The order in which multiple "
34457 "callbacks are called is not defined."
34458 msgstr ""
34459
34460 #. type: =head3
34461 #: ../src/guestfs.pod:1872
34462 msgid "guestfs_delete_event_callback"
34463 msgstr ""
34464
34465 #. type: verbatim
34466 #: ../src/guestfs.pod:1874
34467 #, no-wrap
34468 msgid ""
34469 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
34470 "\n"
34471 msgstr ""
34472
34473 #. type: textblock
34474 #: ../src/guestfs.pod:1876
34475 msgid ""
34476 "Delete a callback that was previously registered.  C<event_handle> should be "
34477 "the integer that was returned by a previous call to "
34478 "C<guestfs_set_event_callback> on the same handle."
34479 msgstr ""
34480
34481 #. type: =head3
34482 #: ../src/guestfs.pod:1880
34483 msgid "guestfs_event_callback"
34484 msgstr ""
34485
34486 #. type: verbatim
34487 #: ../src/guestfs.pod:1882
34488 #, no-wrap
34489 msgid ""
34490 " typedef void (*guestfs_event_callback) (\n"
34491 "                  guestfs_h *g,\n"
34492 "                  void *opaque,\n"
34493 "                  uint64_t event,\n"
34494 "                  int event_handle,\n"
34495 "                  int flags,\n"
34496 "                  const char *buf, size_t buf_len,\n"
34497 "                  const uint64_t *array, size_t array_len);\n"
34498 "\n"
34499 msgstr ""
34500
34501 #. type: textblock
34502 #: ../src/guestfs.pod:1891
34503 msgid ""
34504 "This is the type of the event callback function that you have to provide."
34505 msgstr ""
34506
34507 #. type: textblock
34508 #: ../src/guestfs.pod:1894
34509 msgid ""
34510 "The basic parameters are: the handle (C<g>), the opaque user pointer "
34511 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
34512 "handle, and C<flags> which in the current API you should ignore."
34513 msgstr ""
34514
34515 #. type: textblock
34516 #: ../src/guestfs.pod:1898
34517 msgid ""
34518 "The remaining parameters contain the event payload (if any).  Each event may "
34519 "contain a payload, which usually relates to the event class, but for future "
34520 "proofing your code should be written to handle any payload for any event "
34521 "class."
34522 msgstr ""
34523
34524 #. type: textblock
34525 #: ../src/guestfs.pod:1903
34526 msgid ""
34527 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
34528 "there is no message buffer).  Note that this message buffer can contain "
34529 "arbitrary 8 bit data, including NUL bytes."
34530 msgstr ""
34531
34532 #. type: textblock
34533 #: ../src/guestfs.pod:1907
34534 msgid ""
34535 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
34536 "moment this is only used for progress messages."
34537 msgstr ""
34538
34539 #. type: =head3
34540 #: ../src/guestfs.pod:1910
34541 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
34542 msgstr ""
34543
34544 #. type: textblock
34545 #: ../src/guestfs.pod:1912
34546 msgid ""
34547 "One motivation for the generic event API was to allow GUI programs to "
34548 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
34549 "unconditionally to C<stderr>."
34550 msgstr ""
34551
34552 #. type: textblock
34553 #: ../src/guestfs.pod:1916
34554 msgid ""
34555 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
34556 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
34557 "messages are not events; you must capture error messages separately)."
34558 msgstr ""
34559
34560 #. type: textblock
34561 #: ../src/guestfs.pod:1921
34562 msgid ""
34563 "Programs have to set up a callback to capture the classes of events of "
34564 "interest:"
34565 msgstr ""
34566
34567 #. type: verbatim
34568 #: ../src/guestfs.pod:1924
34569 #, no-wrap
34570 msgid ""
34571 " int eh =\n"
34572 "   guestfs_set_event_callback\n"
34573 "     (g, message_callback,\n"
34574 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
34575 "      GUESTFS_EVENT_TRACE,\n"
34576 "      0, NULL) == -1)\n"
34577 " if (eh == -1) {\n"
34578 "   // handle error in the usual way\n"
34579 " }\n"
34580 "\n"
34581 msgstr ""
34582
34583 #. type: textblock
34584 #: ../src/guestfs.pod:1934
34585 msgid ""
34586 "The callback can then direct messages to the appropriate place.  In this "
34587 "example, messages are directed to syslog:"
34588 msgstr ""
34589
34590 #. type: verbatim
34591 #: ../src/guestfs.pod:1937
34592 #, no-wrap
34593 msgid ""
34594 " static void\n"
34595 " message_callback (\n"
34596 "         guestfs_h *g,\n"
34597 "         void *opaque,\n"
34598 "         uint64_t event,\n"
34599 "         int event_handle,\n"
34600 "         int flags,\n"
34601 "         const char *buf, size_t buf_len,\n"
34602 "         const uint64_t *array, size_t array_len)\n"
34603 " {\n"
34604 "   const int priority = LOG_USER|LOG_INFO;\n"
34605 "   if (buf_len > 0)\n"
34606 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
34607 " }\n"
34608 "\n"
34609 msgstr ""
34610
34611 #. type: =head1
34612 #: ../src/guestfs.pod:1952
34613 msgid "CANCELLING LONG TRANSFERS"
34614 msgstr ""
34615
34616 #. type: textblock
34617 #: ../src/guestfs.pod:1954
34618 msgid ""
34619 "Some operations can be cancelled by the caller while they are in progress.  "
34620 "Currently only operations that involve uploading or downloading data can be "
34621 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
34622 "parameters in the generator)."
34623 msgstr ""
34624
34625 #. type: =head2
34626 #: ../src/guestfs.pod:1959
34627 msgid "guestfs_user_cancel"
34628 msgstr ""
34629
34630 #. type: verbatim
34631 #: ../src/guestfs.pod:1961
34632 #, no-wrap
34633 msgid ""
34634 " void guestfs_user_cancel (guestfs_h *g);\n"
34635 "\n"
34636 msgstr ""
34637
34638 #. type: textblock
34639 #: ../src/guestfs.pod:1963
34640 msgid ""
34641 "C<guestfs_user_cancel> cancels the current upload or download operation."
34642 msgstr ""
34643
34644 #. type: textblock
34645 #: ../src/guestfs.pod:1966
34646 msgid ""
34647 "Unlike most other libguestfs calls, this function is signal safe and thread "
34648 "safe.  You can call it from a signal handler or from another thread, without "
34649 "needing to do any locking."
34650 msgstr ""
34651
34652 #. type: textblock
34653 #: ../src/guestfs.pod:1970
34654 msgid ""
34655 "The transfer that was in progress (if there is one) will stop shortly "
34656 "afterwards, and will return an error.  The errno (see L</"
34657 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
34658 "out if the operation was cancelled or failed because of another error."
34659 msgstr ""
34660
34661 #. type: textblock
34662 #: ../src/guestfs.pod:1976
34663 msgid ""
34664 "No cleanup is performed: for example, if a file was being uploaded then "
34665 "after cancellation there may be a partially uploaded file.  It is the "
34666 "caller's responsibility to clean up if necessary."
34667 msgstr ""
34668
34669 #. type: textblock
34670 #: ../src/guestfs.pod:1980
34671 msgid "There are two common places that you might call C<guestfs_user_cancel>."
34672 msgstr ""
34673
34674 #. type: textblock
34675 #: ../src/guestfs.pod:1982
34676 msgid ""
34677 "In an interactive text-based program, you might call it from a C<SIGINT> "
34678 "signal handler so that pressing C<^C> cancels the current operation.  (You "
34679 "also need to call L</guestfs_set_pgroup> so that child processes don't "
34680 "receive the C<^C> signal)."
34681 msgstr ""
34682
34683 #. type: textblock
34684 #: ../src/guestfs.pod:1987
34685 msgid ""
34686 "In a graphical program, when the main thread is displaying a progress bar "
34687 "with a cancel button, wire up the cancel button to call this function."
34688 msgstr ""
34689
34690 #. type: =head1
34691 #: ../src/guestfs.pod:1991
34692 msgid "PRIVATE DATA AREA"
34693 msgstr ""
34694
34695 #. type: textblock
34696 #: ../src/guestfs.pod:1993
34697 msgid ""
34698 "You can attach named pieces of private data to the libguestfs handle, fetch "
34699 "them by name, and walk over them, for the lifetime of the handle.  This is "
34700 "called the private data area and is only available from the C API."
34701 msgstr ""
34702
34703 #. type: textblock
34704 #: ../src/guestfs.pod:1998
34705 msgid "To attach a named piece of data, use the following call:"
34706 msgstr ""
34707
34708 #. type: verbatim
34709 #: ../src/guestfs.pod:2000
34710 #, no-wrap
34711 msgid ""
34712 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
34713 "\n"
34714 msgstr ""
34715
34716 #. type: textblock
34717 #: ../src/guestfs.pod:2002
34718 msgid ""
34719 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
34720 "pointer (which can be C<NULL>).  Any previous item with the same key is "
34721 "overwritten."
34722 msgstr ""
34723
34724 #. type: textblock
34725 #: ../src/guestfs.pod:2006
34726 msgid ""
34727 "You can use any C<key> you want, but your key should I<not> start with an "
34728 "underscore character.  Keys beginning with an underscore character are "
34729 "reserved for internal libguestfs purposes (eg. for implementing language "
34730 "bindings).  It is recommended that you prefix the key with some unique "
34731 "string to avoid collisions with other users."
34732 msgstr ""
34733
34734 #. type: textblock
34735 #: ../src/guestfs.pod:2012
34736 msgid "To retrieve the pointer, use:"
34737 msgstr ""
34738
34739 #. type: verbatim
34740 #: ../src/guestfs.pod:2014
34741 #, no-wrap
34742 msgid ""
34743 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
34744 "\n"
34745 msgstr ""
34746
34747 #. type: textblock
34748 #: ../src/guestfs.pod:2016
34749 msgid ""
34750 "This function returns C<NULL> if either no data is found associated with "
34751 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
34752 "C<NULL>."
34753 msgstr ""
34754
34755 #. type: textblock
34756 #: ../src/guestfs.pod:2020
34757 msgid ""
34758 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
34759 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
34760 "all.  In particular, libguestfs does I<not> try to free the data when the "
34761 "handle is closed.  If the data must be freed, then the caller must either "
34762 "free it before calling L</guestfs_close> or must set up a close callback to "
34763 "do it (see L</GUESTFS_EVENT_CLOSE>)."
34764 msgstr ""
34765
34766 #. type: textblock
34767 #: ../src/guestfs.pod:2027
34768 msgid "To walk over all entries, use these two functions:"
34769 msgstr ""
34770
34771 #. type: verbatim
34772 #: ../src/guestfs.pod:2029
34773 #, no-wrap
34774 msgid ""
34775 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
34776 "\n"
34777 msgstr ""
34778
34779 #. type: verbatim
34780 #: ../src/guestfs.pod:2031
34781 #, no-wrap
34782 msgid ""
34783 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
34784 "\n"
34785 msgstr ""
34786
34787 #. type: textblock
34788 #: ../src/guestfs.pod:2033
34789 msgid ""
34790 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
34791 "not have any particular meaning -- keys are not returned in any defined "
34792 "order).  A pointer to the key is returned in C<*key_rtn> and the "
34793 "corresponding data pointer is returned from the function.  C<NULL> is "
34794 "returned if there are no keys stored in the handle."
34795 msgstr ""
34796
34797 #. type: textblock
34798 #: ../src/guestfs.pod:2039
34799 msgid ""
34800 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
34801 "value of this function is also C<NULL> is there are no further entries to "
34802 "return."
34803 msgstr ""
34804
34805 #. type: textblock
34806 #: ../src/guestfs.pod:2043
34807 msgid "Notes about walking over entries:"
34808 msgstr ""
34809
34810 #. type: textblock
34811 #: ../src/guestfs.pod:2049
34812 msgid ""
34813 "You must not call C<guestfs_set_private> while walking over the entries."
34814 msgstr ""
34815
34816 #. type: textblock
34817 #: ../src/guestfs.pod:2054
34818 msgid ""
34819 "The handle maintains an internal iterator which is reset when you call "
34820 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
34821 "call C<guestfs_set_private>."
34822 msgstr ""
34823
34824 #. type: textblock
34825 #: ../src/guestfs.pod:2060
34826 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
34827 msgstr ""
34828
34829 #. type: verbatim
34830 #: ../src/guestfs.pod:2062
34831 #, no-wrap
34832 msgid ""
34833 " guestfs_set_private (g, key, NULL);\n"
34834 "\n"
34835 msgstr ""
34836
34837 #. type: textblock
34838 #: ../src/guestfs.pod:2064
34839 msgid "then that C<key> is not returned when walking."
34840 msgstr ""
34841
34842 #. type: textblock
34843 #: ../src/guestfs.pod:2068
34844 msgid ""
34845 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
34846 "C<guestfs_next_private> or C<guestfs_set_private>."
34847 msgstr ""
34848
34849 #. type: textblock
34850 #: ../src/guestfs.pod:2074
34851 msgid ""
34852 "The following example code shows how to print all keys and data pointers "
34853 "that are associated with the handle C<g>:"
34854 msgstr ""
34855
34856 #. type: verbatim
34857 #: ../src/guestfs.pod:2077
34858 #, no-wrap
34859 msgid ""
34860 " const char *key;\n"
34861 " void *data = guestfs_first_private (g, &key);\n"
34862 " while (data != NULL)\n"
34863 "   {\n"
34864 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
34865 "     data = guestfs_next_private (g, &key);\n"
34866 "   }\n"
34867 "\n"
34868 msgstr ""
34869
34870 #. type: textblock
34871 #: ../src/guestfs.pod:2085
34872 msgid ""
34873 "More commonly you are only interested in keys that begin with an application-"
34874 "specific prefix C<foo_>.  Modify the loop like so:"
34875 msgstr ""
34876
34877 #. type: verbatim
34878 #: ../src/guestfs.pod:2088
34879 #, no-wrap
34880 msgid ""
34881 " const char *key;\n"
34882 " void *data = guestfs_first_private (g, &key);\n"
34883 " while (data != NULL)\n"
34884 "   {\n"
34885 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34886 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
34887 "     data = guestfs_next_private (g, &key);\n"
34888 "   }\n"
34889 "\n"
34890 msgstr ""
34891
34892 #. type: textblock
34893 #: ../src/guestfs.pod:2097
34894 msgid ""
34895 "If you need to modify keys while walking, then you have to jump back to the "
34896 "beginning of the loop.  For example, to delete all keys prefixed with "
34897 "C<foo_>:"
34898 msgstr ""
34899
34900 #. type: verbatim
34901 #: ../src/guestfs.pod:2101
34902 #, no-wrap
34903 msgid ""
34904 "  const char *key;\n"
34905 "  void *data;\n"
34906 " again:\n"
34907 "  data = guestfs_first_private (g, &key);\n"
34908 "  while (data != NULL)\n"
34909 "    {\n"
34910 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34911 "        {\n"
34912 "          guestfs_set_private (g, key, NULL);\n"
34913 "          /* note that 'key' pointer is now invalid, and so is\n"
34914 "             the internal iterator */\n"
34915 "          goto again;\n"
34916 "        }\n"
34917 "      data = guestfs_next_private (g, &key);\n"
34918 "    }\n"
34919 "\n"
34920 msgstr ""
34921
34922 #. type: textblock
34923 #: ../src/guestfs.pod:2117
34924 msgid ""
34925 "Note that the above loop is guaranteed to terminate because the keys are "
34926 "being deleted, but other manipulations of keys within the loop might not "
34927 "terminate unless you also maintain an indication of which keys have been "
34928 "visited."
34929 msgstr ""
34930
34931 #. type: =end
34932 #: ../src/guestfs.pod:2122 ../src/guestfs.pod:2127
34933 msgid "html"
34934 msgstr ""
34935
34936 #. type: textblock
34937 #: ../src/guestfs.pod:2124
34938 msgid ""
34939 "<!-- old anchor for the next section --> <a name="
34940 "\"state_machine_and_low_level_event_api\"/>"
34941 msgstr ""
34942
34943 #. type: =head1
34944 #: ../src/guestfs.pod:2129
34945 msgid "ARCHITECTURE"
34946 msgstr ""
34947
34948 #. type: textblock
34949 #: ../src/guestfs.pod:2131
34950 msgid ""
34951 "Internally, libguestfs is implemented by running an appliance (a special "
34952 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
34953 "process of the main program."
34954 msgstr ""
34955
34956 #. type: verbatim
34957 #: ../src/guestfs.pod:2135
34958 #, no-wrap
34959 msgid ""
34960 "  ___________________\n"
34961 " /                   \\\n"
34962 " | main program      |\n"
34963 " |                   |\n"
34964 " |                   |           child process / appliance\n"
34965 " |                   |           __________________________\n"
34966 " |                   |          / qemu                     \\\n"
34967 " +-------------------+   RPC    |      +-----------------+ |\n"
34968 " | libguestfs     <--------------------> guestfsd        | |\n"
34969 " |                   |          |      +-----------------+ |\n"
34970 " \\___________________/          |      | Linux kernel    | |\n"
34971 "                                |      +--^--------------+ |\n"
34972 "                                \\_________|________________/\n"
34973 "                                          |\n"
34974 "                                   _______v______\n"
34975 "                                  /              \\\n"
34976 "                                  | Device or    |\n"
34977 "                                  | disk image   |\n"
34978 "                                  \\______________/\n"
34979 "\n"
34980 msgstr ""
34981
34982 #. type: textblock
34983 #: ../src/guestfs.pod:2155
34984 msgid ""
34985 "The library, linked to the main program, creates the child process and hence "
34986 "the appliance in the L</guestfs_launch> function."
34987 msgstr ""
34988
34989 #. type: textblock
34990 #: ../src/guestfs.pod:2158
34991 msgid ""
34992 "Inside the appliance is a Linux kernel and a complete stack of userspace "
34993 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
34994 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
34995 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
34996 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
34997 "attached to the qemu process which translates device access by the "
34998 "appliance's Linux kernel into accesses to the image."
34999 msgstr ""
35000
35001 #. type: textblock
35002 #: ../src/guestfs.pod:2167
35003 msgid ""
35004 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
35005 "Although the disk image you are attached to might also be used by some "
35006 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
35007 "care if both libguestfs's qemu process and your virtual machine are trying "
35008 "to update the disk image at the same time, since these usually results in "
35009 "massive disk corruption)."
35010 msgstr ""
35011
35012 #. type: =head1
35013 #: ../src/guestfs.pod:2174
35014 msgid "STATE MACHINE"
35015 msgstr ""
35016
35017 #. type: textblock
35018 #: ../src/guestfs.pod:2176
35019 msgid "libguestfs uses a state machine to model the child process:"
35020 msgstr ""
35021
35022 #. type: verbatim
35023 #: ../src/guestfs.pod:2178
35024 #, no-wrap
35025 msgid ""
35026 "                         |\n"
35027 "                    guestfs_create\n"
35028 "                         |\n"
35029 "                         |\n"
35030 "                     ____V_____\n"
35031 "                    /          \\\n"
35032 "                    |  CONFIG  |\n"
35033 "                    \\__________/\n"
35034 "                     ^ ^   ^  \\\n"
35035 "                    /  |    \\  \\ guestfs_launch\n"
35036 "                   /   |    _\\__V______\n"
35037 "                  /    |   /           \\\n"
35038 "                 /     |   | LAUNCHING |\n"
35039 "                /      |   \\___________/\n"
35040 "               /       |       /\n"
35041 "              /        |  guestfs_launch\n"
35042 "             /         |     /\n"
35043 "    ______  /        __|____V\n"
35044 "   /      \\ ------> /        \\\n"
35045 "   | BUSY |         | READY  |\n"
35046 "   \\______/ <------ \\________/\n"
35047 "\n"
35048 msgstr ""
35049
35050 #. type: textblock
35051 #: ../src/guestfs.pod:2200
35052 msgid ""
35053 "The normal transitions are (1) CONFIG (when the handle is created, but there "
35054 "is no child process), (2) LAUNCHING (when the child process is booting up), "
35055 "(3) alternating between READY and BUSY as commands are issued to, and "
35056 "carried out by, the child process."
35057 msgstr ""
35058
35059 #. type: textblock
35060 #: ../src/guestfs.pod:2205
35061 msgid ""
35062 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
35063 "asynchronously at any time (eg. due to some internal error), and that causes "
35064 "the state to transition back to CONFIG."
35065 msgstr ""
35066
35067 #. type: textblock
35068 #: ../src/guestfs.pod:2209
35069 msgid ""
35070 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
35071 "issued when in the CONFIG state."
35072 msgstr ""
35073
35074 #. type: textblock
35075 #: ../src/guestfs.pod:2212
35076 msgid ""
35077 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
35078 "L</guestfs_launch> blocks until the child process is READY to accept "
35079 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
35080 "moves the state from CONFIG to LAUNCHING while it is running."
35081 msgstr ""
35082
35083 #. type: textblock
35084 #: ../src/guestfs.pod:2218
35085 msgid ""
35086 "API actions such as L</guestfs_mount> can only be issued when in the READY "
35087 "state.  These API calls block waiting for the command to be carried out (ie. "
35088 "the state to transition to BUSY and then back to READY).  There are no non-"
35089 "blocking versions, and no way to issue more than one command per handle at "
35090 "the same time."
35091 msgstr ""
35092
35093 #. type: textblock
35094 #: ../src/guestfs.pod:2224
35095 msgid ""
35096 "Finally, the child process sends asynchronous messages back to the main "
35097 "program, such as kernel log messages.  You can register a callback to "
35098 "receive these messages."
35099 msgstr ""
35100
35101 #. type: =head1
35102 #: ../src/guestfs.pod:2228
35103 msgid "INTERNALS"
35104 msgstr ""
35105
35106 #. type: =head2
35107 #: ../src/guestfs.pod:2230
35108 msgid "COMMUNICATION PROTOCOL"
35109 msgstr ""
35110
35111 #. type: textblock
35112 #: ../src/guestfs.pod:2232
35113 msgid ""
35114 "Don't rely on using this protocol directly.  This section documents how it "
35115 "currently works, but it may change at any time."
35116 msgstr ""
35117
35118 #. type: textblock
35119 #: ../src/guestfs.pod:2235
35120 msgid ""
35121 "The protocol used to talk between the library and the daemon running inside "
35122 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
35123 "1014, RFC 1832, RFC 4506)."
35124 msgstr ""
35125
35126 #. type: textblock
35127 #: ../src/guestfs.pod:2239
35128 msgid ""
35129 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
35130 "this file is automatically generated)."
35131 msgstr ""
35132
35133 #. type: textblock
35134 #: ../src/guestfs.pod:2242
35135 msgid ""
35136 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
35137 "and C<FileOut> parameters, which are handled with very simple request/reply "
35138 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
35139 "parameters, which use the same request and reply messages, but they may also "
35140 "be followed by files sent using a chunked encoding."
35141 msgstr ""
35142
35143 #. type: =head3
35144 #: ../src/guestfs.pod:2249
35145 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
35146 msgstr ""
35147
35148 #. type: textblock
35149 #: ../src/guestfs.pod:2251
35150 msgid "For ordinary functions, the request message is:"
35151 msgstr ""
35152
35153 #. type: verbatim
35154 #: ../src/guestfs.pod:2253
35155 #, no-wrap
35156 msgid ""
35157 " total length (header + arguments,\n"
35158 "      but not including the length word itself)\n"
35159 " struct guestfs_message_header (encoded as XDR)\n"
35160 " struct guestfs_<foo>_args (encoded as XDR)\n"
35161 "\n"
35162 msgstr ""
35163
35164 #. type: textblock
35165 #: ../src/guestfs.pod:2258
35166 msgid ""
35167 "The total length field allows the daemon to allocate a fixed size buffer "
35168 "into which it slurps the rest of the message.  As a result, the total length "
35169 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
35170 "effective size of any request is limited to somewhere under this size."
35171 msgstr ""
35172
35173 #. type: textblock
35174 #: ../src/guestfs.pod:2264
35175 msgid ""
35176 "Note also that many functions don't take any arguments, in which case the "
35177 "C<guestfs_I<foo>_args> is completely omitted."
35178 msgstr ""
35179
35180 #. type: textblock
35181 #: ../src/guestfs.pod:2267
35182 msgid ""
35183 "The header contains the procedure number (C<guestfs_proc>) which is how the "
35184 "receiver knows what type of args structure to expect, or none at all."
35185 msgstr ""
35186
35187 #. type: textblock
35188 #: ../src/guestfs.pod:2271
35189 msgid ""
35190 "For functions that take optional arguments, the optional arguments are "
35191 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
35192 "arguments.  A bitmask in the header indicates which optional arguments are "
35193 "meaningful.  The bitmask is also checked to see if it contains bits set "
35194 "which the daemon does not know about (eg. if more optional arguments were "
35195 "added in a later version of the library), and this causes the call to be "
35196 "rejected."
35197 msgstr ""
35198
35199 #. type: textblock
35200 #: ../src/guestfs.pod:2279
35201 msgid "The reply message for ordinary functions is:"
35202 msgstr ""
35203
35204 #. type: verbatim
35205 #: ../src/guestfs.pod:2281
35206 #, no-wrap
35207 msgid ""
35208 " total length (header + ret,\n"
35209 "      but not including the length word itself)\n"
35210 " struct guestfs_message_header (encoded as XDR)\n"
35211 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35212 "\n"
35213 msgstr ""
35214
35215 #. type: textblock
35216 #: ../src/guestfs.pod:2286
35217 msgid ""
35218 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
35219 "functions that return no formal return values."
35220 msgstr ""
35221
35222 #. type: textblock
35223 #: ../src/guestfs.pod:2289
35224 msgid ""
35225 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
35226 msgstr ""
35227
35228 #. type: textblock
35229 #: ../src/guestfs.pod:2292
35230 msgid ""
35231 "In the case of an error, a flag is set in the header, and the reply message "
35232 "is slightly changed:"
35233 msgstr ""
35234
35235 #. type: verbatim
35236 #: ../src/guestfs.pod:2295
35237 #, no-wrap
35238 msgid ""
35239 " total length (header + error,\n"
35240 "      but not including the length word itself)\n"
35241 " struct guestfs_message_header (encoded as XDR)\n"
35242 " struct guestfs_message_error (encoded as XDR)\n"
35243 "\n"
35244 msgstr ""
35245
35246 #. type: textblock
35247 #: ../src/guestfs.pod:2300
35248 msgid ""
35249 "The C<guestfs_message_error> structure contains the error message as a "
35250 "string."
35251 msgstr ""
35252
35253 #. type: =head3
35254 #: ../src/guestfs.pod:2303
35255 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
35256 msgstr ""
35257
35258 #. type: textblock
35259 #: ../src/guestfs.pod:2305
35260 msgid ""
35261 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
35262 "The normal request message is sent (see above).  However this is followed by "
35263 "a sequence of file chunks."
35264 msgstr ""
35265
35266 #. type: verbatim
35267 #: ../src/guestfs.pod:2309
35268 #, no-wrap
35269 msgid ""
35270 " total length (header + arguments,\n"
35271 "      but not including the length word itself,\n"
35272 "      and not including the chunks)\n"
35273 " struct guestfs_message_header (encoded as XDR)\n"
35274 " struct guestfs_<foo>_args (encoded as XDR)\n"
35275 " sequence of chunks for FileIn param #0\n"
35276 " sequence of chunks for FileIn param #1 etc.\n"
35277 "\n"
35278 msgstr ""
35279
35280 #. type: textblock
35281 #: ../src/guestfs.pod:2317
35282 msgid "The \"sequence of chunks\" is:"
35283 msgstr ""
35284
35285 #. type: verbatim
35286 #: ../src/guestfs.pod:2319
35287 #, no-wrap
35288 msgid ""
35289 " length of chunk (not including length word itself)\n"
35290 " struct guestfs_chunk (encoded as XDR)\n"
35291 " length of chunk\n"
35292 " struct guestfs_chunk (encoded as XDR)\n"
35293 "   ...\n"
35294 " length of chunk\n"
35295 " struct guestfs_chunk (with data.data_len == 0)\n"
35296 "\n"
35297 msgstr ""
35298
35299 #. type: textblock
35300 #: ../src/guestfs.pod:2327
35301 msgid ""
35302 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
35303 "is set in the final chunk to indicate either successful completion or early "
35304 "cancellation."
35305 msgstr ""
35306
35307 #. type: textblock
35308 #: ../src/guestfs.pod:2331
35309 msgid ""
35310 "At time of writing there are no functions that have more than one FileIn "
35311 "parameter.  However this is (theoretically) supported, by sending the "
35312 "sequence of chunks for each FileIn parameter one after another (from left to "
35313 "right)."
35314 msgstr ""
35315
35316 #. type: textblock
35317 #: ../src/guestfs.pod:2336
35318 msgid ""
35319 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
35320 "transfer.  The library does this by sending a chunk with a special flag set "
35321 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
35322 "RPC, does I<not> send any reply, and goes back to reading the next request."
35323 msgstr ""
35324
35325 #. type: textblock
35326 #: ../src/guestfs.pod:2342
35327 msgid ""
35328 "The daemon may also cancel.  It does this by writing a special word "
35329 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
35330 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
35331 "cancel chunk).  The special word is chosen so that even if cancellation "
35332 "happens right at the end of the transfer (after the library has finished "
35333 "writing and has started listening for the reply), the \"spurious\" cancel "
35334 "flag will not be confused with the reply message."
35335 msgstr ""
35336
35337 #. type: textblock
35338 #: ../src/guestfs.pod:2351
35339 msgid ""
35340 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
35341 "limit), and also files where the size is not known in advance (eg. from "
35342 "pipes or sockets).  However the chunks are rather small "
35343 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
35344 "to keep much in memory."
35345 msgstr ""
35346
35347 #. type: =head3
35348 #: ../src/guestfs.pod:2357
35349 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
35350 msgstr ""
35351
35352 #. type: textblock
35353 #: ../src/guestfs.pod:2359
35354 msgid ""
35355 "The protocol for FileOut parameters is exactly the same as for FileIn "
35356 "parameters, but with the roles of daemon and library reversed."
35357 msgstr ""
35358
35359 #. type: verbatim
35360 #: ../src/guestfs.pod:2362
35361 #, no-wrap
35362 msgid ""
35363 " total length (header + ret,\n"
35364 "      but not including the length word itself,\n"
35365 "      and not including the chunks)\n"
35366 " struct guestfs_message_header (encoded as XDR)\n"
35367 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35368 " sequence of chunks for FileOut param #0\n"
35369 " sequence of chunks for FileOut param #1 etc.\n"
35370 "\n"
35371 msgstr ""
35372
35373 #. type: =head3
35374 #: ../src/guestfs.pod:2370
35375 msgid "INITIAL MESSAGE"
35376 msgstr ""
35377
35378 #. type: textblock
35379 #: ../src/guestfs.pod:2372
35380 msgid ""
35381 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
35382 "which indicates that the guest and daemon is alive.  This is what L</"
35383 "guestfs_launch> waits for."
35384 msgstr ""
35385
35386 #. type: =head3
35387 #: ../src/guestfs.pod:2376
35388 msgid "PROGRESS NOTIFICATION MESSAGES"
35389 msgstr ""
35390
35391 #. type: textblock
35392 #: ../src/guestfs.pod:2378
35393 msgid ""
35394 "The daemon may send progress notification messages at any time.  These are "
35395 "distinguished by the normal length word being replaced by "
35396 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
35397 msgstr ""
35398
35399 #. type: textblock
35400 #: ../src/guestfs.pod:2382
35401 msgid ""
35402 "The library turns them into progress callbacks (see L</"
35403 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
35404 "if not."
35405 msgstr ""
35406
35407 #. type: textblock
35408 #: ../src/guestfs.pod:2386
35409 msgid ""
35410 "The daemon self-limits the frequency of progress messages it sends (see "
35411 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
35412 "messages."
35413 msgstr ""
35414
35415 #. type: =head1
35416 #: ../src/guestfs.pod:2390
35417 msgid "LIBGUESTFS VERSION NUMBERS"
35418 msgstr ""
35419
35420 #. type: textblock
35421 #: ../src/guestfs.pod:2392
35422 msgid ""
35423 "Since April 2010, libguestfs has started to make separate development and "
35424 "stable releases, along with corresponding branches in our git repository.  "
35425 "These separate releases can be identified by version number:"
35426 msgstr ""
35427
35428 #. type: verbatim
35429 #: ../src/guestfs.pod:2397
35430 #, no-wrap
35431 msgid ""
35432 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
35433 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
35434 "       |\n"
35435 "       v\n"
35436 " 1  .  3  .  5\n"
35437 " ^           ^\n"
35438 " |           |\n"
35439 " |           `-------- sub-version\n"
35440 " |\n"
35441 " `------ always '1' because we don't change the ABI\n"
35442 "\n"
35443 msgstr ""
35444
35445 #. type: textblock
35446 #: ../src/guestfs.pod:2408
35447 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
35448 msgstr ""
35449
35450 #. type: textblock
35451 #: ../src/guestfs.pod:2410
35452 msgid ""
35453 "As time passes we cherry pick fixes from the development branch and backport "
35454 "those into the stable branch, the effect being that the stable branch should "
35455 "get more stable and less buggy over time.  So the stable releases are ideal "
35456 "for people who don't need new features but would just like the software to "
35457 "work."
35458 msgstr ""
35459
35460 #. type: textblock
35461 #: ../src/guestfs.pod:2416
35462 msgid "Our criteria for backporting changes are:"
35463 msgstr ""
35464
35465 #. type: textblock
35466 #: ../src/guestfs.pod:2422
35467 msgid ""
35468 "Documentation changes which don't affect any code are backported unless the "
35469 "documentation refers to a future feature which is not in stable."
35470 msgstr ""
35471
35472 #. type: textblock
35473 #: ../src/guestfs.pod:2428
35474 msgid ""
35475 "Bug fixes which are not controversial, fix obvious problems, and have been "
35476 "well tested are backported."
35477 msgstr ""
35478
35479 #. type: textblock
35480 #: ../src/guestfs.pod:2433
35481 msgid ""
35482 "Simple rearrangements of code which shouldn't affect how it works get "
35483 "backported.  This is so that the code in the two branches doesn't get too "
35484 "far out of step, allowing us to backport future fixes more easily."
35485 msgstr ""
35486
35487 #. type: textblock
35488 #: ../src/guestfs.pod:2439
35489 msgid ""
35490 "We I<don't> backport new features, new APIs, new tools etc, except in one "
35491 "exceptional case: the new feature is required in order to implement an "
35492 "important bug fix."
35493 msgstr ""
35494
35495 #. type: textblock
35496 #: ../src/guestfs.pod:2445
35497 msgid ""
35498 "A new stable branch starts when we think the new features in development are "
35499 "substantial and compelling enough over the current stable branch to warrant "
35500 "it.  When that happens we create new stable and development versions 1.N.0 "
35501 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
35502 "stable at this point, but by backporting fixes from development, that branch "
35503 "will stabilize over time."
35504 msgstr ""
35505
35506 #. type: =head1
35507 #: ../src/guestfs.pod:2453
35508 msgid "EXTENDING LIBGUESTFS"
35509 msgstr ""
35510
35511 #. type: =head2
35512 #: ../src/guestfs.pod:2455
35513 msgid "ADDING A NEW API ACTION"
35514 msgstr ""
35515
35516 #. type: textblock
35517 #: ../src/guestfs.pod:2457
35518 msgid ""
35519 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
35520 "documentation) are generated, and this makes it easy to extend the "
35521 "libguestfs API."
35522 msgstr ""
35523
35524 #. type: textblock
35525 #: ../src/guestfs.pod:2461
35526 msgid "To add a new API action there are two changes:"
35527 msgstr ""
35528
35529 #. type: textblock
35530 #: ../src/guestfs.pod:2467
35531 msgid ""
35532 "You need to add a description of the call (name, parameters, return type, "
35533 "tests, documentation) to C<generator/generator_actions.ml>."
35534 msgstr ""
35535
35536 #. type: textblock
35537 #: ../src/guestfs.pod:2470
35538 msgid ""
35539 "There are two sorts of API action, depending on whether the call goes "
35540 "through to the daemon in the appliance, or is serviced entirely by the "
35541 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
35542 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
35543 "an example of the latter, since a trace flag is maintained in the handle and "
35544 "all tracing is done on the library side."
35545 msgstr ""
35546
35547 #. type: textblock
35548 #: ../src/guestfs.pod:2478
35549 msgid ""
35550 "Most new actions are of the first type, and get added to the "
35551 "C<daemon_functions> list.  Each function has a unique procedure number used "
35552 "in the RPC protocol which is assigned to that action when we publish "
35553 "libguestfs and cannot be reused.  Take the latest procedure number and "
35554 "increment it."
35555 msgstr ""
35556
35557 #. type: textblock
35558 #: ../src/guestfs.pod:2484
35559 msgid ""
35560 "For library-only actions of the second type, add to the "
35561 "C<non_daemon_functions> list.  Since these functions are serviced by the "
35562 "library and do not travel over the RPC mechanism to the daemon, these "
35563 "functions do not need a procedure number, and so the procedure number is set "
35564 "to C<-1>."
35565 msgstr ""
35566
35567 #. type: textblock
35568 #: ../src/guestfs.pod:2492
35569 msgid "Implement the action (in C):"
35570 msgstr ""
35571
35572 #. type: textblock
35573 #: ../src/guestfs.pod:2494
35574 msgid ""
35575 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
35576 "C<daemon/> directory."
35577 msgstr ""
35578
35579 #. type: textblock
35580 #: ../src/guestfs.pod:2497
35581 msgid ""
35582 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
35583 "(note: double underscore) in the C<src/> directory."
35584 msgstr ""
35585
35586 #. type: textblock
35587 #: ../src/guestfs.pod:2500
35588 msgid "In either case, use another function as an example of what to do."
35589 msgstr ""
35590
35591 #. type: textblock
35592 #: ../src/guestfs.pod:2504
35593 msgid "After making these changes, use C<make> to compile."
35594 msgstr ""
35595
35596 #. type: textblock
35597 #: ../src/guestfs.pod:2506
35598 msgid ""
35599 "Note that you don't need to implement the RPC, language bindings, manual "
35600 "pages or anything else.  It's all automatically generated from the OCaml "
35601 "description."
35602 msgstr ""
35603
35604 #. type: =head2
35605 #: ../src/guestfs.pod:2510
35606 msgid "ADDING TESTS FOR AN API ACTION"
35607 msgstr ""
35608
35609 #. type: textblock
35610 #: ../src/guestfs.pod:2512
35611 msgid ""
35612 "You can supply zero or as many tests as you want per API call.  The tests "
35613 "can either be added as part of the API description (C<generator/"
35614 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
35615 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
35616 "slower, so if possible use the first method."
35617 msgstr ""
35618
35619 #. type: textblock
35620 #: ../src/guestfs.pod:2518
35621 msgid ""
35622 "The following describes the test environment used when you add an API test "
35623 "in C<generator_actions.ml>."
35624 msgstr ""
35625
35626 #. type: textblock
35627 #: ../src/guestfs.pod:2521
35628 msgid "The test environment has 4 block devices:"
35629 msgstr ""
35630
35631 #. type: =item
35632 #: ../src/guestfs.pod:2525
35633 msgid "C</dev/sda> 500MB"
35634 msgstr ""
35635
35636 #. type: textblock
35637 #: ../src/guestfs.pod:2527
35638 msgid "General block device for testing."
35639 msgstr ""
35640
35641 #. type: =item
35642 #: ../src/guestfs.pod:2529
35643 msgid "C</dev/sdb> 50MB"
35644 msgstr ""
35645
35646 #. type: textblock
35647 #: ../src/guestfs.pod:2531
35648 msgid ""
35649 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
35650 "operations."
35651 msgstr ""
35652
35653 #. type: =item
35654 #: ../src/guestfs.pod:2534
35655 msgid "C</dev/sdc> 10MB"
35656 msgstr ""
35657
35658 #. type: textblock
35659 #: ../src/guestfs.pod:2536
35660 msgid "Used in a few tests where two block devices are needed."
35661 msgstr ""
35662
35663 #. type: =item
35664 #: ../src/guestfs.pod:2538
35665 msgid "C</dev/sdd>"
35666 msgstr ""
35667
35668 #. type: textblock
35669 #: ../src/guestfs.pod:2540
35670 msgid "ISO with fixed content (see C<images/test.iso>)."
35671 msgstr ""
35672
35673 #. type: textblock
35674 #: ../src/guestfs.pod:2544
35675 msgid ""
35676 "To be able to run the tests in a reasonable amount of time, the libguestfs "
35677 "appliance and block devices are reused between tests.  So don't try testing "
35678 "L</guestfs_kill_subprocess> :-x"
35679 msgstr ""
35680
35681 #. type: textblock
35682 #: ../src/guestfs.pod:2548
35683 msgid ""
35684 "Each test starts with an initial scenario, selected using one of the "
35685 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
35686 "initialize the disks mentioned above in a particular way as documented in "
35687 "C<generator_types.ml>.  You should not assume anything about the previous "
35688 "contents of other disks that are not initialized."
35689 msgstr ""
35690
35691 #. type: textblock
35692 #: ../src/guestfs.pod:2554
35693 msgid ""
35694 "You can add a prerequisite clause to any individual test.  This is a run-"
35695 "time check, which, if it fails, causes the test to be skipped.  Useful if "
35696 "testing a command which might not work on all variations of libguestfs "
35697 "builds.  A test that has prerequisite of C<Always> means to run "
35698 "unconditionally."
35699 msgstr ""
35700
35701 #. type: textblock
35702 #: ../src/guestfs.pod:2560
35703 msgid ""
35704 "In addition, packagers can skip individual tests by setting environment "
35705 "variables before running C<make check>."
35706 msgstr ""
35707
35708 #. type: verbatim
35709 #: ../src/guestfs.pod:2563
35710 #, no-wrap
35711 msgid ""
35712 " SKIP_TEST_<CMD>_<NUM>=1\n"
35713 "\n"
35714 msgstr ""
35715
35716 #. type: textblock
35717 #: ../src/guestfs.pod:2565
35718 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
35719 msgstr ""
35720
35721 #. type: textblock
35722 #: ../src/guestfs.pod:2567
35723 msgid "or:"
35724 msgstr ""
35725
35726 #. type: verbatim
35727 #: ../src/guestfs.pod:2569
35728 #, no-wrap
35729 msgid ""
35730 " SKIP_TEST_<CMD>=1\n"
35731 "\n"
35732 msgstr ""
35733
35734 #. type: textblock
35735 #: ../src/guestfs.pod:2571
35736 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
35737 msgstr ""
35738
35739 #. type: textblock
35740 #: ../src/guestfs.pod:2573
35741 msgid "Packagers can run only certain tests by setting for example:"
35742 msgstr ""
35743
35744 #. type: verbatim
35745 #: ../src/guestfs.pod:2575
35746 #, no-wrap
35747 msgid ""
35748 " TEST_ONLY=\"vfs_type zerofree\"\n"
35749 "\n"
35750 msgstr ""
35751
35752 #. type: textblock
35753 #: ../src/guestfs.pod:2577
35754 msgid ""
35755 "See C<capitests/tests.c> for more details of how these environment variables "
35756 "work."
35757 msgstr ""
35758
35759 #. type: =head2
35760 #: ../src/guestfs.pod:2580
35761 msgid "DEBUGGING NEW API ACTIONS"
35762 msgstr ""
35763
35764 #. type: textblock
35765 #: ../src/guestfs.pod:2582
35766 msgid "Test new actions work before submitting them."
35767 msgstr ""
35768
35769 #. type: textblock
35770 #: ../src/guestfs.pod:2584
35771 msgid "You can use guestfish to try out new commands."
35772 msgstr ""
35773
35774 #. type: textblock
35775 #: ../src/guestfs.pod:2586
35776 msgid ""
35777 "Debugging the daemon is a problem because it runs inside a minimal "
35778 "environment.  However you can fprintf messages in the daemon to stderr, and "
35779 "they will show up if you use C<guestfish -v>."
35780 msgstr ""
35781
35782 #. type: =head2
35783 #: ../src/guestfs.pod:2590
35784 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
35785 msgstr ""
35786
35787 #. type: textblock
35788 #: ../src/guestfs.pod:2592
35789 msgid ""
35790 "Our C source code generally adheres to some basic code-formatting "
35791 "conventions.  The existing code base is not totally consistent on this "
35792 "front, but we do prefer that contributed code be formatted similarly.  In "
35793 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
35794 "indentation level, and other than that, follow the K&R style."
35795 msgstr ""
35796
35797 #. type: textblock
35798 #: ../src/guestfs.pod:2598
35799 msgid ""
35800 "If you use Emacs, add the following to one of one of your start-up files (e."
35801 "g., ~/.emacs), to help ensure that you get indentation right:"
35802 msgstr ""
35803
35804 #. type: verbatim
35805 #: ../src/guestfs.pod:2601
35806 #, no-wrap
35807 msgid ""
35808 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
35809 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
35810 " (add-hook 'find-file-hook\n"
35811 "     '(lambda () (if (and buffer-file-name\n"
35812 "                          (string-match \"/libguestfs\\\\>\"\n"
35813 "                              (buffer-file-name))\n"
35814 "                          (not (string-equal mode-name \"Change Log\"))\n"
35815 "                          (not (string-equal mode-name \"Makefile\")))\n"
35816 "                     (setq indent-tabs-mode nil))))\n"
35817 " \n"
35818 msgstr ""
35819
35820 #. type: verbatim
35821 #: ../src/guestfs.pod:2611
35822 #, no-wrap
35823 msgid ""
35824 " ;;; When editing C sources in libguestfs, use this style.\n"
35825 " (defun libguestfs-c-mode ()\n"
35826 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
35827 "   (interactive)\n"
35828 "   (c-set-style \"K&R\")\n"
35829 "   (setq c-indent-level 2)\n"
35830 "   (setq c-basic-offset 2))\n"
35831 " (add-hook 'c-mode-hook\n"
35832 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
35833 "                               (buffer-file-name))\n"
35834 "                           (libguestfs-c-mode))))\n"
35835 "\n"
35836 msgstr ""
35837
35838 #. type: textblock
35839 #: ../src/guestfs.pod:2623
35840 msgid "Enable warnings when compiling (and fix any problems this finds):"
35841 msgstr ""
35842
35843 #. type: verbatim
35844 #: ../src/guestfs.pod:2626
35845 #, no-wrap
35846 msgid ""
35847 " ./configure --enable-gcc-warnings\n"
35848 "\n"
35849 msgstr ""
35850
35851 #. type: textblock
35852 #: ../src/guestfs.pod:2628
35853 msgid "Useful targets are:"
35854 msgstr ""
35855
35856 #. type: verbatim
35857 #: ../src/guestfs.pod:2630
35858 #, no-wrap
35859 msgid ""
35860 " make syntax-check  # checks the syntax of the C code\n"
35861 " make check         # runs the test suite\n"
35862 "\n"
35863 msgstr ""
35864
35865 #. type: =head2
35866 #: ../src/guestfs.pod:2633
35867 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
35868 msgstr ""
35869
35870 #. type: textblock
35871 #: ../src/guestfs.pod:2635
35872 msgid ""
35873 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
35874 "which are used to do shell quoting."
35875 msgstr ""
35876
35877 #. type: =item
35878 #: ../src/guestfs.pod:2640
35879 msgid "%Q"
35880 msgstr ""
35881
35882 #. type: textblock
35883 #: ../src/guestfs.pod:2642
35884 msgid ""
35885 "Simple shell quoted string.  Any spaces or other shell characters are "
35886 "escaped for you."
35887 msgstr ""
35888
35889 #. type: =item
35890 #: ../src/guestfs.pod:2645
35891 msgid "%R"
35892 msgstr ""
35893
35894 #. type: textblock
35895 #: ../src/guestfs.pod:2647
35896 msgid ""
35897 "Same as C<%Q> except the string is treated as a path which is prefixed by "
35898 "the sysroot."
35899 msgstr ""
35900
35901 #. type: verbatim
35902 #: ../src/guestfs.pod:2654
35903 #, no-wrap
35904 msgid ""
35905 " asprintf (&cmd, \"cat %R\", path);\n"
35906 "\n"
35907 msgstr ""
35908
35909 #. type: textblock
35910 #: ../src/guestfs.pod:2656
35911 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
35912 msgstr ""
35913
35914 #. type: textblock
35915 #: ../src/guestfs.pod:2658
35916 msgid ""
35917 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
35918 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
35919 "they are not passed via the shell (instead, straight to exec).  You probably "
35920 "want to use the C<sysroot_path()> function however."
35921 msgstr ""
35922
35923 #. type: =head2
35924 #: ../src/guestfs.pod:2664
35925 msgid "SUBMITTING YOUR NEW API ACTIONS"
35926 msgstr ""
35927
35928 #. type: textblock
35929 #: ../src/guestfs.pod:2666
35930 msgid ""
35931 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
35932 "libguestfs> and CC to L<rjones@redhat.com>."
35933 msgstr ""
35934
35935 #. type: =head2
35936 #: ../src/guestfs.pod:2670
35937 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
35938 msgstr ""
35939
35940 #. type: textblock
35941 #: ../src/guestfs.pod:2672
35942 msgid "We support i18n (gettext anyhow) in the library."
35943 msgstr ""
35944
35945 #. type: textblock
35946 #: ../src/guestfs.pod:2674
35947 msgid ""
35948 "However many messages come from the daemon, and we don't translate those at "
35949 "the moment.  One reason is that the appliance generally has all locale files "
35950 "removed from it, because they take up a lot of space.  So we'd have to readd "
35951 "some of those, as well as copying our PO files into the appliance."
35952 msgstr ""
35953
35954 #. type: textblock
35955 #: ../src/guestfs.pod:2680
35956 msgid ""
35957 "Debugging messages are never translated, since they are intended for the "
35958 "programmers."
35959 msgstr ""
35960
35961 #. type: =head2
35962 #: ../src/guestfs.pod:2683
35963 msgid "SOURCE CODE SUBDIRECTORIES"
35964 msgstr ""
35965
35966 #. type: textblock
35967 #: ../src/guestfs.pod:2689
35968 msgid "The libguestfs appliance, build scripts and so on."
35969 msgstr ""
35970
35971 #. type: =item
35972 #: ../src/guestfs.pod:2691
35973 msgid "C<capitests>"
35974 msgstr ""
35975
35976 #. type: textblock
35977 #: ../src/guestfs.pod:2693
35978 msgid "Automated tests of the C API."
35979 msgstr ""
35980
35981 #. type: =item
35982 #: ../src/guestfs.pod:2695
35983 msgid "C<cat>"
35984 msgstr ""
35985
35986 #. type: textblock
35987 #: ../src/guestfs.pod:2697
35988 msgid ""
35989 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
35990 "documentation."
35991 msgstr ""
35992
35993 #. type: =item
35994 #: ../src/guestfs.pod:2700
35995 msgid "C<caution>"
35996 msgstr ""
35997
35998 #. type: textblock
35999 #: ../src/guestfs.pod:2702
36000 msgid ""
36001 "Safety and liveness tests of components that libguestfs depends upon (not of "
36002 "libguestfs itself).  Mainly this is for qemu and the kernel."
36003 msgstr ""
36004
36005 #. type: =item
36006 #: ../src/guestfs.pod:2705
36007 msgid "C<contrib>"
36008 msgstr ""
36009
36010 #. type: textblock
36011 #: ../src/guestfs.pod:2707
36012 msgid "Outside contributions, experimental parts."
36013 msgstr ""
36014
36015 #. type: =item
36016 #: ../src/guestfs.pod:2709
36017 msgid "C<daemon>"
36018 msgstr ""
36019
36020 #. type: textblock
36021 #: ../src/guestfs.pod:2711
36022 msgid ""
36023 "The daemon that runs inside the libguestfs appliance and carries out actions."
36024 msgstr ""
36025
36026 #. type: =item
36027 #: ../src/guestfs.pod:2714
36028 msgid "C<df>"
36029 msgstr ""
36030
36031 #. type: textblock
36032 #: ../src/guestfs.pod:2716
36033 msgid "L<virt-df(1)> command and documentation."
36034 msgstr ""
36035
36036 #. type: =item
36037 #: ../src/guestfs.pod:2718
36038 msgid "C<edit>"
36039 msgstr ""
36040
36041 #. type: textblock
36042 #: ../src/guestfs.pod:2720
36043 msgid "L<virt-edit(1)> command and documentation."
36044 msgstr ""
36045
36046 #. type: =item
36047 #: ../src/guestfs.pod:2722
36048 msgid "C<examples>"
36049 msgstr ""
36050
36051 #. type: textblock
36052 #: ../src/guestfs.pod:2724
36053 msgid "C API example code."
36054 msgstr ""
36055
36056 #. type: =item
36057 #: ../src/guestfs.pod:2726
36058 msgid "C<fish>"
36059 msgstr ""
36060
36061 #. type: textblock
36062 #: ../src/guestfs.pod:2728
36063 msgid ""
36064 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
36065 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
36066 "L<virt-tar-out(1)>."
36067 msgstr ""
36068
36069 #. type: =item
36070 #: ../src/guestfs.pod:2732
36071 msgid "C<fuse>"
36072 msgstr ""
36073
36074 #. type: textblock
36075 #: ../src/guestfs.pod:2734
36076 msgid ""
36077 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
36078 msgstr ""
36079
36080 #. type: =item
36081 #: ../src/guestfs.pod:2736
36082 msgid "C<generator>"
36083 msgstr ""
36084
36085 #. type: textblock
36086 #: ../src/guestfs.pod:2738
36087 msgid ""
36088 "The crucially important generator, used to automatically generate large "
36089 "amounts of boilerplate C code for things like RPC and bindings."
36090 msgstr ""
36091
36092 #. type: =item
36093 #: ../src/guestfs.pod:2741
36094 msgid "C<images>"
36095 msgstr ""
36096
36097 #. type: textblock
36098 #: ../src/guestfs.pod:2743
36099 msgid "Files used by the test suite."
36100 msgstr ""
36101
36102 #. type: textblock
36103 #: ../src/guestfs.pod:2745
36104 msgid "Some \"phony\" guest images which we test against."
36105 msgstr ""
36106
36107 #. type: =item
36108 #: ../src/guestfs.pod:2747
36109 msgid "C<inspector>"
36110 msgstr ""
36111
36112 #. type: textblock
36113 #: ../src/guestfs.pod:2749
36114 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
36115 msgstr ""
36116
36117 #. type: =item
36118 #: ../src/guestfs.pod:2751
36119 msgid "C<logo>"
36120 msgstr ""
36121
36122 #. type: textblock
36123 #: ../src/guestfs.pod:2753
36124 msgid "Logo used on the website.  The fish is called Arthur by the way."
36125 msgstr ""
36126
36127 #. type: =item
36128 #: ../src/guestfs.pod:2755
36129 msgid "C<m4>"
36130 msgstr ""
36131
36132 #. type: textblock
36133 #: ../src/guestfs.pod:2757
36134 msgid "M4 macros used by autoconf."
36135 msgstr ""
36136
36137 #. type: =item
36138 #: ../src/guestfs.pod:2759
36139 msgid "C<po>"
36140 msgstr ""
36141
36142 #. type: textblock
36143 #: ../src/guestfs.pod:2761
36144 msgid "Translations of simple gettext strings."
36145 msgstr ""
36146
36147 #. type: =item
36148 #: ../src/guestfs.pod:2763
36149 msgid "C<po-docs>"
36150 msgstr ""
36151
36152 #. type: textblock
36153 #: ../src/guestfs.pod:2765
36154 msgid ""
36155 "The build infrastructure and PO files for translations of manpages and POD "
36156 "files.  Eventually this will be combined with the C<po> directory, but that "
36157 "is rather complicated."
36158 msgstr ""
36159
36160 #. type: =item
36161 #: ../src/guestfs.pod:2769
36162 msgid "C<regressions>"
36163 msgstr ""
36164
36165 #. type: textblock
36166 #: ../src/guestfs.pod:2771
36167 msgid "Regression tests."
36168 msgstr ""
36169
36170 #. type: =item
36171 #: ../src/guestfs.pod:2773
36172 msgid "C<rescue>"
36173 msgstr ""
36174
36175 #. type: textblock
36176 #: ../src/guestfs.pod:2775
36177 msgid "L<virt-rescue(1)> command and documentation."
36178 msgstr ""
36179
36180 #. type: =item
36181 #: ../src/guestfs.pod:2777
36182 msgid "C<src>"
36183 msgstr ""
36184
36185 #. type: textblock
36186 #: ../src/guestfs.pod:2779
36187 msgid "Source code to the C library."
36188 msgstr ""
36189
36190 #. type: =item
36191 #: ../src/guestfs.pod:2781
36192 msgid "C<tools>"
36193 msgstr ""
36194
36195 #. type: textblock
36196 #: ../src/guestfs.pod:2783
36197 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
36198 msgstr ""
36199
36200 #. type: =item
36201 #: ../src/guestfs.pod:2785
36202 msgid "C<test-tool>"
36203 msgstr ""
36204
36205 #. type: textblock
36206 #: ../src/guestfs.pod:2787
36207 msgid ""
36208 "Test tool for end users to test if their qemu/kernel combination will work "
36209 "with libguestfs."
36210 msgstr ""
36211
36212 #. type: =item
36213 #: ../src/guestfs.pod:2790
36214 msgid "C<csharp>"
36215 msgstr ""
36216
36217 #. type: =item
36218 #: ../src/guestfs.pod:2792
36219 msgid "C<haskell>"
36220 msgstr ""
36221
36222 #. type: =item
36223 #: ../src/guestfs.pod:2794
36224 msgid "C<java>"
36225 msgstr ""
36226
36227 #. type: =item
36228 #: ../src/guestfs.pod:2796
36229 msgid "C<ocaml>"
36230 msgstr ""
36231
36232 #. type: =item
36233 #: ../src/guestfs.pod:2798
36234 msgid "C<php>"
36235 msgstr ""
36236
36237 #. type: =item
36238 #: ../src/guestfs.pod:2800
36239 msgid "C<perl>"
36240 msgstr ""
36241
36242 #. type: =item
36243 #: ../src/guestfs.pod:2802
36244 msgid "C<python>"
36245 msgstr ""
36246
36247 #. type: =item
36248 #: ../src/guestfs.pod:2804
36249 msgid "C<ruby>"
36250 msgstr ""
36251
36252 #. type: textblock
36253 #: ../src/guestfs.pod:2806
36254 msgid "Language bindings."
36255 msgstr ""
36256
36257 #. type: =head2
36258 #: ../src/guestfs.pod:2810
36259 msgid "MAKING A STABLE RELEASE"
36260 msgstr ""
36261
36262 #. type: textblock
36263 #: ../src/guestfs.pod:2812
36264 msgid ""
36265 "When we make a stable release, there are several steps documented here.  See "
36266 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
36267 "branch policy."
36268 msgstr ""
36269
36270 #. type: textblock
36271 #: ../src/guestfs.pod:2820
36272 msgid ""
36273 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
36274 msgstr ""
36275
36276 #. type: textblock
36277 #: ../src/guestfs.pod:2825
36278 msgid "Finalize RELEASE-NOTES."
36279 msgstr ""
36280
36281 #. type: textblock
36282 #: ../src/guestfs.pod:2829
36283 msgid "Update ROADMAP."
36284 msgstr ""
36285
36286 #. type: textblock
36287 #: ../src/guestfs.pod:2833
36288 msgid "Run C<src/api-support/update-from-tarballs.sh>."
36289 msgstr ""
36290
36291 #. type: textblock
36292 #: ../src/guestfs.pod:2837
36293 msgid "Push and pull from Transifex."
36294 msgstr ""
36295
36296 #. type: textblock
36297 #: ../src/guestfs.pod:2839
36298 msgid "Run:"
36299 msgstr ""
36300
36301 #. type: verbatim
36302 #: ../src/guestfs.pod:2841
36303 #, no-wrap
36304 msgid ""
36305 " tx push -s\n"
36306 "\n"
36307 msgstr ""
36308
36309 #. type: textblock
36310 #: ../src/guestfs.pod:2843
36311 msgid "to push the latest POT files to Transifex.  Then run:"
36312 msgstr ""
36313
36314 #. type: verbatim
36315 #: ../src/guestfs.pod:2845
36316 #, no-wrap
36317 msgid ""
36318 " ./tx-pull.sh\n"
36319 "\n"
36320 msgstr ""
36321
36322 #. type: textblock
36323 #: ../src/guestfs.pod:2847
36324 msgid "which is a wrapper to pull the latest translated C<*.po> files."
36325 msgstr ""
36326
36327 #. type: textblock
36328 #: ../src/guestfs.pod:2851
36329 msgid ""
36330 "Create new stable and development directories under L<http://libguestfs.org/"
36331 "download>."
36332 msgstr ""
36333
36334 #. type: textblock
36335 #: ../src/guestfs.pod:2856
36336 msgid "Create the branch in git:"
36337 msgstr ""
36338
36339 #. type: verbatim
36340 #: ../src/guestfs.pod:2858
36341 #, no-wrap
36342 msgid ""
36343 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
36344 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
36345 " git branch stable-1.XX\n"
36346 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
36347 "\n"
36348 msgstr ""
36349
36350 #. type: =head1
36351 #: ../src/guestfs.pod:2865
36352 msgid "LIMITS"
36353 msgstr ""
36354
36355 #. type: =head2
36356 #: ../src/guestfs.pod:2867
36357 msgid "PROTOCOL LIMITS"
36358 msgstr ""
36359
36360 #. type: textblock
36361 #: ../src/guestfs.pod:2869
36362 msgid ""
36363 "Internally libguestfs uses a message-based protocol to pass API calls and "
36364 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
36365 "plenty more detail about this).  The maximum message size used by the "
36366 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
36367 "aware of this limit.  The API calls which may be affected are individually "
36368 "documented, with a link back to this section of the documentation."
36369 msgstr ""
36370
36371 #. type: textblock
36372 #: ../src/guestfs.pod:2877
36373 msgid ""
36374 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
36375 "a simple string.  Because this string is at some point internally encoded as "
36376 "a message, the maximum size that it can return is slightly under 4 MB.  If "
36377 "the requested file is larger than this then you will get an error."
36378 msgstr ""
36379
36380 #. type: textblock
36381 #: ../src/guestfs.pod:2883
36382 msgid ""
36383 "In order to transfer large files into and out of the guest filesystem, you "
36384 "need to use particular calls that support this.  The sections L</UPLOADING> "
36385 "and L</DOWNLOADING> document how to do this."
36386 msgstr ""
36387
36388 #. type: textblock
36389 #: ../src/guestfs.pod:2887
36390 msgid ""
36391 "You might also consider mounting the disk image using our FUSE filesystem "
36392 "support (L<guestmount(1)>)."
36393 msgstr ""
36394
36395 #. type: =head2
36396 #: ../src/guestfs.pod:2890
36397 msgid "MAXIMUM NUMBER OF DISKS"
36398 msgstr ""
36399
36400 #. type: textblock
36401 #: ../src/guestfs.pod:2892
36402 msgid "When using virtio disks (the default) the current limit is B<25> disks."
36403 msgstr ""
36404
36405 #. type: textblock
36406 #: ../src/guestfs.pod:2895
36407 msgid ""
36408 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
36409 "slots.  However febootstrap only understands disks with names C</dev/vda> "
36410 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
36411 "purposes."
36412 msgstr ""
36413
36414 #. type: textblock
36415 #: ../src/guestfs.pod:2900
36416 msgid ""
36417 "We are working to substantially raise this limit in future versions but it "
36418 "requires complex changes to qemu."
36419 msgstr ""
36420
36421 #. type: textblock
36422 #: ../src/guestfs.pod:2903
36423 msgid ""
36424 "In future versions of libguestfs it should also be possible to \"hot plug\" "
36425 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
36426 "requires changes to qemu."
36427 msgstr ""
36428
36429 #. type: =head2
36430 #: ../src/guestfs.pod:2907
36431 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
36432 msgstr ""
36433
36434 #. type: textblock
36435 #: ../src/guestfs.pod:2909
36436 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
36437 msgstr ""
36438
36439 #. type: textblock
36440 #: ../src/guestfs.pod:2911
36441 msgid ""
36442 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
36443 "vda>, and C</dev/vda1> through C</dev/vda15>)."
36444 msgstr ""
36445
36446 #. type: textblock
36447 #: ../src/guestfs.pod:2914
36448 msgid ""
36449 "If you attach a disk with more than 15 partitions, the extra partitions are "
36450 "ignored by libguestfs."
36451 msgstr ""
36452
36453 #. type: =head2
36454 #: ../src/guestfs.pod:2917
36455 msgid "MAXIMUM SIZE OF A DISK"
36456 msgstr ""
36457
36458 #. type: textblock
36459 #: ../src/guestfs.pod:2919
36460 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
36461 msgstr ""
36462
36463 #. type: textblock
36464 #: ../src/guestfs.pod:2921
36465 msgid ""
36466 "We have tested block devices up to 1 exabyte (2**60 or "
36467 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
36468 "filesystem."
36469 msgstr ""
36470
36471 #. type: textblock
36472 #: ../src/guestfs.pod:2925
36473 msgid ""
36474 "Although libguestfs probably does not impose any limit, the underlying host "
36475 "storage will.  If you store disk images on a host ext4 filesystem, then the "
36476 "maximum size will be limited by the maximum ext4 file size (currently 16 "
36477 "TB).  If you store disk images as host logical volumes then you are limited "
36478 "by the maximum size of an LV."
36479 msgstr ""
36480
36481 #. type: textblock
36482 #: ../src/guestfs.pod:2931
36483 msgid ""
36484 "For the hugest disk image files, we recommend using XFS on the host for "
36485 "storage."
36486 msgstr ""
36487
36488 #. type: =head2
36489 #: ../src/guestfs.pod:2934
36490 msgid "MAXIMUM SIZE OF A PARTITION"
36491 msgstr ""
36492
36493 #. type: textblock
36494 #: ../src/guestfs.pod:2936
36495 msgid ""
36496 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
36497 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
36498 "address a partition located beyond 2 TB on the disk."
36499 msgstr ""
36500
36501 #. type: textblock
36502 #: ../src/guestfs.pod:2940
36503 msgid ""
36504 "It is recommended that you use GPT partitions on disks which are larger than "
36505 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
36506 "which are theoretically larger than the largest disk we could support."
36507 msgstr ""
36508
36509 #. type: =head2
36510 #: ../src/guestfs.pod:2945
36511 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
36512 msgstr ""
36513
36514 #. type: textblock
36515 #: ../src/guestfs.pod:2947
36516 msgid ""
36517 "This depends on the filesystem type.  libguestfs itself does not impose any "
36518 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
36519 "what these limits are."
36520 msgstr ""
36521
36522 #. type: =head2
36523 #: ../src/guestfs.pod:2951
36524 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
36525 msgstr ""
36526
36527 #. type: textblock
36528 #: ../src/guestfs.pod:2953
36529 msgid ""
36530 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
36531 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
36532 "uploads and downloads."
36533 msgstr ""
36534
36535 #. type: =head2
36536 #: ../src/guestfs.pod:2957
36537 msgid "INSPECTION LIMITS"
36538 msgstr ""
36539
36540 #. type: textblock
36541 #: ../src/guestfs.pod:2959
36542 msgid ""
36543 "The inspection code has several arbitrary limits on things like the size of "
36544 "Windows Registry hive it will read, and the length of product name.  These "
36545 "are intended to stop a malicious guest from consuming arbitrary amounts of "
36546 "memory and disk space on the host, and should not be reached in practice.  "
36547 "See the source code for more information."
36548 msgstr ""
36549
36550 #. type: textblock
36551 #: ../src/guestfs.pod:2985
36552 msgid ""
36553 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
36554 "effect as calling C<guestfs_set_verbose (g, 1)>."
36555 msgstr ""
36556
36557 #. type: textblock
36558 #: ../src/guestfs.pod:2997
36559 msgid ""
36560 "Set the path that libguestfs uses to search for a supermin appliance.  See "
36561 "the discussion of paths in section L</PATH> above."
36562 msgstr ""
36563
36564 #. type: textblock
36565 #: ../src/guestfs.pod:3006
36566 msgid "See also L</QEMU WRAPPERS> above."
36567 msgstr ""
36568
36569 #. type: textblock
36570 #: ../src/guestfs.pod:3010
36571 msgid ""
36572 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
36573 "effect as calling C<guestfs_set_trace (g, 1)>."
36574 msgstr ""
36575
36576 #. type: textblock
36577 #: ../src/guestfs.pod:3028
36578 msgid ""
36579 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
36580 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
36581 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
36582 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
36583 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
36584 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
36585 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
36586 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
36587 msgstr ""
36588
36589 #. type: textblock
36590 #: ../src/guestfs.pod:3058
36591 msgid ""
36592 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
36593 "(8)>, L<disktype(1)>."
36594 msgstr ""
36595
36596 #. type: =head1
36597 #: ../src/guestfs.pod:3065 ../tools/virt-make-fs.pl:553
36598 #: ../tools/virt-win-reg.pl:761
36599 msgid "BUGS"
36600 msgstr ""
36601
36602 #. type: textblock
36603 #: ../src/guestfs.pod:3067
36604 msgid "To get a list of bugs against libguestfs use this link:"
36605 msgstr ""
36606
36607 #. type: textblock
36608 #: ../src/guestfs.pod:3069
36609 msgid ""
36610 "L<https://bugzilla.redhat.com/buglist.cgi?"
36611 "component=libguestfs&product=Virtualization+Tools>"
36612 msgstr ""
36613
36614 #. type: textblock
36615 #: ../src/guestfs.pod:3071
36616 msgid "To report a new bug against libguestfs use this link:"
36617 msgstr ""
36618
36619 #. type: textblock
36620 #: ../src/guestfs.pod:3073
36621 msgid ""
36622 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
36623 "component=libguestfs&product=Virtualization+Tools>"
36624 msgstr ""
36625
36626 #. type: textblock
36627 #: ../src/guestfs.pod:3075
36628 msgid "When reporting a bug, please check:"
36629 msgstr ""
36630
36631 #. type: textblock
36632 #: ../src/guestfs.pod:3081
36633 msgid "That the bug hasn't been reported already."
36634 msgstr ""
36635
36636 #. type: textblock
36637 #: ../src/guestfs.pod:3085
36638 msgid "That you are testing a recent version."
36639 msgstr ""
36640
36641 #. type: textblock
36642 #: ../src/guestfs.pod:3089
36643 msgid "Describe the bug accurately, and give a way to reproduce it."
36644 msgstr ""
36645
36646 #. type: textblock
36647 #: ../src/guestfs.pod:3093
36648 msgid ""
36649 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
36650 "bug report."
36651 msgstr ""
36652
36653 #. type: textblock
36654 #: ../test-tool/libguestfs-test-tool.pod:5
36655 msgid "libguestfs-test-tool - End user tests for libguestfs"
36656 msgstr ""
36657
36658 #. type: verbatim
36659 #: ../test-tool/libguestfs-test-tool.pod:9
36660 #, no-wrap
36661 msgid ""
36662 " libguestfs-test-tool [--options]\n"
36663 "\n"
36664 msgstr ""
36665
36666 #. type: textblock
36667 #: ../test-tool/libguestfs-test-tool.pod:13
36668 msgid ""
36669 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
36670 "and developers, to allow them to check basic libguestfs functionality is "
36671 "working.  This is needed because libguestfs occasionally breaks for reasons "
36672 "beyond our control: usually because of changes in the underlying qemu or "
36673 "kernel packages, or the host environment."
36674 msgstr ""
36675
36676 #. type: textblock
36677 #: ../test-tool/libguestfs-test-tool.pod:20
36678 msgid "If you suspect a problem in libguestfs, then just run:"
36679 msgstr ""
36680
36681 #. type: verbatim
36682 #: ../test-tool/libguestfs-test-tool.pod:22
36683 #, no-wrap
36684 msgid ""
36685 " libguestfs-test-tool\n"
36686 "\n"
36687 msgstr ""
36688
36689 #. type: textblock
36690 #: ../test-tool/libguestfs-test-tool.pod:24
36691 msgid "It will print lots of diagnostic messages."
36692 msgstr ""
36693
36694 #. type: textblock
36695 #: ../test-tool/libguestfs-test-tool.pod:26
36696 msgid "If it runs to completion successfully, you will see this near the end:"
36697 msgstr ""
36698
36699 #. type: verbatim
36700 #: ../test-tool/libguestfs-test-tool.pod:28
36701 #, no-wrap
36702 msgid ""
36703 " ===== TEST FINISHED OK =====\n"
36704 "\n"
36705 msgstr ""
36706
36707 #. type: textblock
36708 #: ../test-tool/libguestfs-test-tool.pod:30
36709 msgid "and the test tool will exit with code 0."
36710 msgstr ""
36711
36712 #. type: textblock
36713 #: ../test-tool/libguestfs-test-tool.pod:32
36714 msgid ""
36715 "If it fails (and/or exits with non-zero error code), please paste the "
36716 "B<complete, unedited> output of the test tool into a bug report.  More "
36717 "information about reporting bugs can be found on the L<http://libguestfs.org/"
36718 "> website."
36719 msgstr ""
36720
36721 #. type: =item
36722 #: ../test-tool/libguestfs-test-tool.pod:41
36723 msgid "I<--help>"
36724 msgstr ""
36725
36726 #. type: textblock
36727 #: ../test-tool/libguestfs-test-tool.pod:43
36728 msgid "Display short usage information and exit."
36729 msgstr ""
36730
36731 #. type: =item
36732 #: ../test-tool/libguestfs-test-tool.pod:45
36733 msgid "I<--qemu qemu_binary>"
36734 msgstr ""
36735
36736 #. type: textblock
36737 #: ../test-tool/libguestfs-test-tool.pod:47
36738 msgid ""
36739 "If you have downloaded another qemu binary, point this option at the full "
36740 "path of the binary to try it."
36741 msgstr ""
36742
36743 #. type: =item
36744 #: ../test-tool/libguestfs-test-tool.pod:50
36745 msgid "I<--qemudir qemu_source_dir>"
36746 msgstr ""
36747
36748 #. type: textblock
36749 #: ../test-tool/libguestfs-test-tool.pod:52
36750 msgid ""
36751 "If you have compiled qemu from source, point this option at the source "
36752 "directory to try it."
36753 msgstr ""
36754
36755 #. type: =item
36756 #: ../test-tool/libguestfs-test-tool.pod:55
36757 msgid "I<--timeout N>"
36758 msgstr ""
36759
36760 #. type: textblock
36761 #: ../test-tool/libguestfs-test-tool.pod:57
36762 msgid ""
36763 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
36764 "does not usually need to be adjusted unless your machine is very slow."
36765 msgstr ""
36766
36767 #. type: =head1
36768 #: ../test-tool/libguestfs-test-tool.pod:63
36769 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
36770 msgstr ""
36771
36772 #. type: textblock
36773 #: ../test-tool/libguestfs-test-tool.pod:65
36774 msgid ""
36775 "If you have compiled another version of qemu from source and would like to "
36776 "try that, then you can use the I<--qemudir> option to point to the qemu "
36777 "source directory."
36778 msgstr ""
36779
36780 #. type: textblock
36781 #: ../test-tool/libguestfs-test-tool.pod:69
36782 msgid ""
36783 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
36784 "option to point to the binary."
36785 msgstr ""
36786
36787 #. type: textblock
36788 #: ../test-tool/libguestfs-test-tool.pod:72
36789 msgid ""
36790 "When using an alternate qemu with libguestfs, usually you would need to "
36791 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
36792 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
36793 "use either of the I<--qemudir> or I<--qemu> options."
36794 msgstr ""
36795
36796 #. type: textblock
36797 #: ../test-tool/libguestfs-test-tool.pod:79
36798 msgid ""
36799 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
36800 "I<1> if there was an error."
36801 msgstr ""
36802
36803 #. type: textblock
36804 #: ../test-tool/libguestfs-test-tool.pod:84
36805 msgid ""
36806 "For the full list of environment variables which may affect libguestfs, "
36807 "please see the L<guestfs(3)> manual page."
36808 msgstr ""
36809
36810 #. type: textblock
36811 #: ../test-tool/libguestfs-test-tool.pod:89
36812 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
36813 msgstr ""
36814
36815 #. type: textblock
36816 #: ../tools/virt-list-filesystems.pl:32
36817 msgid ""
36818 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
36819 msgstr ""
36820
36821 #. type: verbatim
36822 #: ../tools/virt-list-filesystems.pl:36
36823 #, no-wrap
36824 msgid ""
36825 " virt-list-filesystems [--options] domname\n"
36826 "\n"
36827 msgstr ""
36828
36829 #. type: verbatim
36830 #: ../tools/virt-list-filesystems.pl:38
36831 #, no-wrap
36832 msgid ""
36833 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
36834 "\n"
36835 msgstr ""
36836
36837 #. type: textblock
36838 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
36839 msgid ""
36840 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
36841 "replacement."
36842 msgstr ""
36843
36844 #. type: textblock
36845 #: ../tools/virt-list-filesystems.pl:45
36846 msgid ""
36847 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
36848 "are contained in a virtual machine or disk image."
36849 msgstr ""
36850
36851 #. type: textblock
36852 #: ../tools/virt-list-filesystems.pl:49
36853 msgid ""
36854 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
36855 "functionality.  For more complex cases you should look at the L<guestfish(1)"
36856 "> tool."
36857 msgstr ""
36858
36859 #. type: textblock
36860 #: ../tools/virt-list-filesystems.pl:112
36861 msgid ""
36862 "With this option, C<virt-list-filesystems> displays the type of each "
36863 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
36864 msgstr ""
36865
36866 #. type: =item
36867 #: ../tools/virt-list-filesystems.pl:119
36868 msgid "B<-a>"
36869 msgstr ""
36870
36871 #. type: textblock
36872 #: ../tools/virt-list-filesystems.pl:123
36873 msgid ""
36874 "Normally we only show mountable filesystems.  If this option is given then "
36875 "swap devices are shown too."
36876 msgstr ""
36877
36878 #. type: textblock
36879 #: ../tools/virt-list-filesystems.pl:197
36880 msgid ""
36881 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
36882 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
36883 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36884 msgstr ""
36885
36886 #. type: textblock
36887 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
36888 msgid "Copyright (C) 2009 Red Hat Inc."
36889 msgstr ""
36890
36891 #. type: textblock
36892 #: ../tools/virt-list-partitions.pl:32
36893 msgid ""
36894 "virt-list-partitions - List partitions in a virtual machine or disk image"
36895 msgstr ""
36896
36897 #. type: verbatim
36898 #: ../tools/virt-list-partitions.pl:36
36899 #, no-wrap
36900 msgid ""
36901 " virt-list-partitions [--options] domname\n"
36902 "\n"
36903 msgstr ""
36904
36905 #. type: verbatim
36906 #: ../tools/virt-list-partitions.pl:38
36907 #, no-wrap
36908 msgid ""
36909 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
36910 "\n"
36911 msgstr ""
36912
36913 #. type: textblock
36914 #: ../tools/virt-list-partitions.pl:45
36915 msgid ""
36916 "C<virt-list-partitions> is a command line tool to list the partitions that "
36917 "are contained in a virtual machine or disk image.  It is mainly useful as a "
36918 "first step to using L<virt-resize(1)>."
36919 msgstr ""
36920
36921 #. type: textblock
36922 #: ../tools/virt-list-partitions.pl:50
36923 msgid ""
36924 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
36925 "functionality.  For more complex cases you should look at the L<guestfish(1)"
36926 "> tool."
36927 msgstr ""
36928
36929 #. type: textblock
36930 #: ../tools/virt-list-partitions.pl:113
36931 msgid "Show sizes in human-readable form (eg. \"1G\")."
36932 msgstr ""
36933
36934 #. type: textblock
36935 #: ../tools/virt-list-partitions.pl:123
36936 msgid ""
36937 "With this option, C<virt-list-partitions> displays the type and size of each "
36938 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
36939 msgstr ""
36940
36941 #. type: =item
36942 #: ../tools/virt-list-partitions.pl:130
36943 msgid "B<-t>"
36944 msgstr ""
36945
36946 #. type: =item
36947 #: ../tools/virt-list-partitions.pl:132
36948 msgid "B<--total>"
36949 msgstr ""
36950
36951 #. type: textblock
36952 #: ../tools/virt-list-partitions.pl:134
36953 msgid ""
36954 "Display the total size of each block device (as a separate row or rows)."
36955 msgstr ""
36956
36957 #. type: textblock
36958 #: ../tools/virt-list-partitions.pl:267
36959 msgid ""
36960 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
36961 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
36962 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36963 msgstr ""
36964
36965 #. type: textblock
36966 #: ../tools/virt-list-partitions.pl:283
36967 msgid "Copyright (C) 2009-2010 Red Hat Inc."
36968 msgstr ""
36969
36970 #. type: textblock
36971 #: ../tools/virt-make-fs.pl:37
36972 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
36973 msgstr ""
36974
36975 #. type: verbatim
36976 #: ../tools/virt-make-fs.pl:41
36977 #, no-wrap
36978 msgid ""
36979 " virt-make-fs [--options] input.tar output.img\n"
36980 "\n"
36981 msgstr ""
36982
36983 #. type: verbatim
36984 #: ../tools/virt-make-fs.pl:43
36985 #, no-wrap
36986 msgid ""
36987 " virt-make-fs [--options] input.tar.gz output.img\n"
36988 "\n"
36989 msgstr ""
36990
36991 #. type: verbatim
36992 #: ../tools/virt-make-fs.pl:45
36993 #, no-wrap
36994 msgid ""
36995 " virt-make-fs [--options] directory output.img\n"
36996 "\n"
36997 msgstr ""
36998
36999 #. type: textblock
37000 #: ../tools/virt-make-fs.pl:49
37001 msgid ""
37002 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
37003 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
37004 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
37005 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
37006 "you want to attach these filesystems to existing virtual machines (eg. to "
37007 "import large amounts of read-only data to a VM)."
37008 msgstr ""
37009
37010 #. type: textblock
37011 #: ../tools/virt-make-fs.pl:57
37012 msgid "Basic usage is:"
37013 msgstr ""
37014
37015 #. type: verbatim
37016 #: ../tools/virt-make-fs.pl:59
37017 #, no-wrap
37018 msgid ""
37019 " virt-make-fs input output\n"
37020 "\n"
37021 msgstr ""
37022
37023 #. type: textblock
37024 #: ../tools/virt-make-fs.pl:61
37025 msgid ""
37026 "where C<input> is either a directory containing files that you want to add, "
37027 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
37028 "C<output> is a disk image.  The input type is detected automatically.  The "
37029 "output disk image defaults to a raw ext2 image unless you specify extra "
37030 "flags (see L</OPTIONS> below)."
37031 msgstr ""
37032
37033 #. type: =head2
37034 #: ../tools/virt-make-fs.pl:67
37035 msgid "EXTRA SPACE"
37036 msgstr ""
37037
37038 #. type: textblock
37039 #: ../tools/virt-make-fs.pl:69
37040 msgid ""
37041 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
37042 "the files that it contains, but might have extra space.  Depending on how "
37043 "you are going to use the output, you might think this extra space is wasted "
37044 "and want to minimize it, or you might want to leave space so that more files "
37045 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
37046 "but you can use the I<--size> flag to leave space in the filesystem if you "
37047 "want it."
37048 msgstr ""
37049
37050 #. type: textblock
37051 #: ../tools/virt-make-fs.pl:77
37052 msgid ""
37053 "An alternative way to leave extra space but not make the output image any "
37054 "bigger is to use an alternative disk image format (instead of the default "
37055 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
37056 "image format (check your hypervisor supports this before using it).  This "
37057 "allows you to choose a large I<--size> but the extra space won't actually be "
37058 "allocated in the image until you try to store something in it."
37059 msgstr ""
37060
37061 #. type: textblock
37062 #: ../tools/virt-make-fs.pl:85
37063 msgid ""
37064 "Don't forget that you can also use local commands including L<resize2fs(8)> "
37065 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
37066 "to build another image from scratch."
37067 msgstr ""
37068
37069 #. type: =head3
37070 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
37071 #: ../tools/virt-make-fs.pl:142
37072 msgid "EXAMPLE"
37073 msgstr ""
37074
37075 #. type: verbatim
37076 #: ../tools/virt-make-fs.pl:91
37077 #, no-wrap
37078 msgid ""
37079 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
37080 "\n"
37081 msgstr ""
37082
37083 #. type: =head2
37084 #: ../tools/virt-make-fs.pl:93
37085 msgid "FILESYSTEM TYPE"
37086 msgstr ""
37087
37088 #. type: textblock
37089 #: ../tools/virt-make-fs.pl:95
37090 msgid ""
37091 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
37092 "libguestfs supports can be used (but I<not> read-only formats like "
37093 "ISO9660).  Here are some of the more common choices:"
37094 msgstr ""
37095
37096 #. type: =item
37097 #: ../tools/virt-make-fs.pl:101
37098 msgid "I<ext3>"
37099 msgstr ""
37100
37101 #. type: textblock
37102 #: ../tools/virt-make-fs.pl:103
37103 msgid ""
37104 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
37105 "you are not going to use the filesystem in a way that requires the journal, "
37106 "then this is just wasted overhead."
37107 msgstr ""
37108
37109 #. type: =item
37110 #: ../tools/virt-make-fs.pl:107
37111 msgid "I<ntfs> or I<vfat>"
37112 msgstr ""
37113
37114 #. type: textblock
37115 #: ../tools/virt-make-fs.pl:109
37116 msgid "Useful if exporting data to a Windows guest."
37117 msgstr ""
37118
37119 #. type: textblock
37120 #: ../tools/virt-make-fs.pl:111
37121 msgid ""
37122 "I<Note for vfat>: The tar archive or local directory must only contain files "
37123 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
37124 "program running within libguestfs is unable to change the ownership of non-"
37125 "root files, since vfat itself does not support this."
37126 msgstr ""
37127
37128 #. type: =item
37129 #: ../tools/virt-make-fs.pl:116
37130 msgid "I<minix>"
37131 msgstr ""
37132
37133 #. type: textblock
37134 #: ../tools/virt-make-fs.pl:118
37135 msgid ""
37136 "Lower overhead than C<ext2>, but certain limitations on filename length and "
37137 "total filesystem size."
37138 msgstr ""
37139
37140 #. type: verbatim
37141 #: ../tools/virt-make-fs.pl:125
37142 #, no-wrap
37143 msgid ""
37144 " virt-make-fs --type=minix input minixfs.img\n"
37145 "\n"
37146 msgstr ""
37147
37148 #. type: =head2
37149 #: ../tools/virt-make-fs.pl:127
37150 msgid "TO PARTITION OR NOT TO PARTITION"
37151 msgstr ""
37152
37153 #. type: textblock
37154 #: ../tools/virt-make-fs.pl:129
37155 msgid "Optionally virt-make-fs can add a partition table to the output disk."
37156 msgstr ""
37157
37158 #. type: textblock
37159 #: ../tools/virt-make-fs.pl:131
37160 msgid ""
37161 "Adding a partition can make the disk image more compatible with certain "
37162 "virtualized operating systems which don't expect to see a filesystem "
37163 "directly located on a block device (Linux doesn't care and will happily "
37164 "handle both types)."
37165 msgstr ""
37166
37167 #. type: textblock
37168 #: ../tools/virt-make-fs.pl:136
37169 msgid ""
37170 "On the other hand, if you have a partition table then the output image is no "
37171 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
37172 "directly on a partitioned disk image.  (However libguestfs tools such as "
37173 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
37174 msgstr ""
37175
37176 #. type: textblock
37177 #: ../tools/virt-make-fs.pl:144
37178 msgid "Add an MBR partition:"
37179 msgstr ""
37180
37181 #. type: verbatim
37182 #: ../tools/virt-make-fs.pl:146
37183 #, no-wrap
37184 msgid ""
37185 " virt-make-fs --partition -- input disk.img\n"
37186 "\n"
37187 msgstr ""
37188
37189 #. type: textblock
37190 #: ../tools/virt-make-fs.pl:148
37191 msgid ""
37192 "If the output disk image could be terabyte-sized or larger, it's better to "
37193 "use an EFI/GPT-compatible partition table:"
37194 msgstr ""
37195
37196 #. type: verbatim
37197 #: ../tools/virt-make-fs.pl:151
37198 #, no-wrap
37199 msgid ""
37200 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
37201 "\n"
37202 msgstr ""
37203
37204 #. type: textblock
37205 #: ../tools/virt-make-fs.pl:179
37206 msgid "Enable debugging information."
37207 msgstr ""
37208
37209 #. type: =item
37210 #: ../tools/virt-make-fs.pl:185
37211 msgid "B<--size=E<lt>NE<gt>>"
37212 msgstr ""
37213
37214 #. type: =item
37215 #: ../tools/virt-make-fs.pl:187
37216 msgid "B<--size=+E<lt>NE<gt>>"
37217 msgstr ""
37218
37219 #. type: =item
37220 #: ../tools/virt-make-fs.pl:189
37221 msgid "B<-s E<lt>NE<gt>>"
37222 msgstr ""
37223
37224 #. type: =item
37225 #: ../tools/virt-make-fs.pl:191
37226 msgid "B<-s +E<lt>NE<gt>>"
37227 msgstr ""
37228
37229 #. type: textblock
37230 #: ../tools/virt-make-fs.pl:193
37231 msgid ""
37232 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
37233 msgstr ""
37234
37235 #. type: textblock
37236 #: ../tools/virt-make-fs.pl:196
37237 msgid ""
37238 "If this option is I<not> given, then the output image will be just large "
37239 "enough to contain all the files, with not much wasted space."
37240 msgstr ""
37241
37242 #. type: textblock
37243 #: ../tools/virt-make-fs.pl:199
37244 msgid ""
37245 "To choose a fixed size output disk, specify an absolute number followed by b/"
37246 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37247 "Petabytes or Exabytes.  This must be large enough to contain all the input "
37248 "files, else you will get an error."
37249 msgstr ""
37250
37251 #. type: textblock
37252 #: ../tools/virt-make-fs.pl:204
37253 msgid ""
37254 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
37255 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37256 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
37257 "the input files, and (approximately) an extra 200 MB free space."
37258 msgstr ""
37259
37260 #. type: textblock
37261 #: ../tools/virt-make-fs.pl:210
37262 msgid ""
37263 "Note that virt-make-fs estimates free space, and therefore will not produce "
37264 "filesystems containing precisely the free space requested.  (It is much more "
37265 "expensive and time-consuming to produce a filesystem which has precisely the "
37266 "desired free space)."
37267 msgstr ""
37268
37269 #. type: =item
37270 #: ../tools/virt-make-fs.pl:219
37271 msgid "B<--format=E<lt>fmtE<gt>>"
37272 msgstr ""
37273
37274 #. type: =item
37275 #: ../tools/virt-make-fs.pl:221
37276 msgid "B<-F E<lt>fmtE<gt>>"
37277 msgstr ""
37278
37279 #. type: textblock
37280 #: ../tools/virt-make-fs.pl:223
37281 msgid "Choose the output disk image format."
37282 msgstr ""
37283
37284 #. type: textblock
37285 #: ../tools/virt-make-fs.pl:225
37286 msgid "The default is C<raw> (raw disk image)."
37287 msgstr ""
37288
37289 #. type: textblock
37290 #: ../tools/virt-make-fs.pl:227
37291 msgid ""
37292 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
37293 "that would really make sense here is C<qcow2>."
37294 msgstr ""
37295
37296 #. type: =item
37297 #: ../tools/virt-make-fs.pl:234
37298 msgid "B<--type=E<lt>fsE<gt>>"
37299 msgstr ""
37300
37301 #. type: =item
37302 #: ../tools/virt-make-fs.pl:236
37303 msgid "B<-t E<lt>fsE<gt>>"
37304 msgstr ""
37305
37306 #. type: textblock
37307 #: ../tools/virt-make-fs.pl:238
37308 msgid "Choose the output filesystem type."
37309 msgstr ""
37310
37311 #. type: textblock
37312 #: ../tools/virt-make-fs.pl:240
37313 msgid "The default is C<ext2>."
37314 msgstr ""
37315
37316 #. type: textblock
37317 #: ../tools/virt-make-fs.pl:242
37318 msgid ""
37319 "Any filesystem which is supported read-write by libguestfs can be used here."
37320 msgstr ""
37321
37322 #. type: =item
37323 #: ../tools/virt-make-fs.pl:249
37324 msgid "B<--partition>"
37325 msgstr ""
37326
37327 #. type: =item
37328 #: ../tools/virt-make-fs.pl:251
37329 msgid "B<--partition=E<lt>parttypeE<gt>>"
37330 msgstr ""
37331
37332 #. type: textblock
37333 #: ../tools/virt-make-fs.pl:253
37334 msgid ""
37335 "If specified, this flag adds an MBR partition table to the output disk image."
37336 msgstr ""
37337
37338 #. type: textblock
37339 #: ../tools/virt-make-fs.pl:256
37340 msgid ""
37341 "You can change the partition table type, eg. I<--partition=gpt> for large "
37342 "disks."
37343 msgstr ""
37344
37345 #. type: textblock
37346 #: ../tools/virt-make-fs.pl:259
37347 msgid ""
37348 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
37349 "might consider the next parameter to be the partition type.  For example:"
37350 msgstr ""
37351
37352 #. type: verbatim
37353 #: ../tools/virt-make-fs.pl:263
37354 #, no-wrap
37355 msgid ""
37356 " virt-make-fs --partition input.tar ...\n"
37357 "\n"
37358 msgstr ""
37359
37360 #. type: textblock
37361 #: ../tools/virt-make-fs.pl:265
37362 msgid ""
37363 "would cause virt-make-fs to think you wanted to use a partition type of "
37364 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
37365 "dash) between options and the input file argument:"
37366 msgstr ""
37367
37368 #. type: verbatim
37369 #: ../tools/virt-make-fs.pl:269
37370 #, no-wrap
37371 msgid ""
37372 " virt-make-fs --partition -- input.tar ...\n"
37373 "\n"
37374 msgstr ""
37375
37376 #. type: textblock
37377 #: ../tools/virt-make-fs.pl:541
37378 msgid ""
37379 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
37380 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
37381 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
37382 msgstr ""
37383
37384 #. type: textblock
37385 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
37386 msgid ""
37387 "When reporting bugs, please enable debugging and capture the I<complete> "
37388 "output:"
37389 msgstr ""
37390
37391 #. type: verbatim
37392 #: ../tools/virt-make-fs.pl:558
37393 #, no-wrap
37394 msgid ""
37395 " export LIBGUESTFS_DEBUG=1\n"
37396 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
37397 "\n"
37398 msgstr ""
37399
37400 #. type: textblock
37401 #: ../tools/virt-make-fs.pl:561
37402 msgid ""
37403 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
37404 "redhat.com/>"
37405 msgstr ""
37406
37407 #. type: textblock
37408 #: ../tools/virt-tar.pl:33
37409 msgid "virt-tar - Extract or upload files to a virtual machine"
37410 msgstr ""
37411
37412 #. type: verbatim
37413 #: ../tools/virt-tar.pl:37
37414 #, no-wrap
37415 msgid ""
37416 " virt-tar [--options] -x domname directory tarball\n"
37417 "\n"
37418 msgstr ""
37419
37420 #. type: verbatim
37421 #: ../tools/virt-tar.pl:39
37422 #, no-wrap
37423 msgid ""
37424 " virt-tar [--options] -u domname tarball directory\n"
37425 "\n"
37426 msgstr ""
37427
37428 #. type: verbatim
37429 #: ../tools/virt-tar.pl:41
37430 #, no-wrap
37431 msgid ""
37432 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
37433 "\n"
37434 msgstr ""
37435
37436 #. type: verbatim
37437 #: ../tools/virt-tar.pl:43
37438 #, no-wrap
37439 msgid ""
37440 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
37441 "\n"
37442 msgstr ""
37443
37444 #. type: =head2
37445 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
37446 msgid "NOTE"
37447 msgstr ""
37448
37449 #. type: textblock
37450 #: ../tools/virt-tar.pl:47
37451 msgid ""
37452 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
37453 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
37454 msgstr ""
37455
37456 #. type: textblock
37457 #: ../tools/virt-tar.pl:52
37458 msgid "Download C</home> from the VM into a local tarball:"
37459 msgstr ""
37460
37461 #. type: verbatim
37462 #: ../tools/virt-tar.pl:54
37463 #, no-wrap
37464 msgid ""
37465 " virt-tar -x domname /home home.tar\n"
37466 "\n"
37467 msgstr ""
37468
37469 #. type: verbatim
37470 #: ../tools/virt-tar.pl:56
37471 #, no-wrap
37472 msgid ""
37473 " virt-tar -zx domname /home home.tar.gz\n"
37474 "\n"
37475 msgstr ""
37476
37477 #. type: textblock
37478 #: ../tools/virt-tar.pl:58
37479 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
37480 msgstr ""
37481
37482 #. type: verbatim
37483 #: ../tools/virt-tar.pl:60
37484 #, no-wrap
37485 msgid ""
37486 " virt-tar -u domname uploadstuff.tar /tmp\n"
37487 "\n"
37488 msgstr ""
37489
37490 #. type: verbatim
37491 #: ../tools/virt-tar.pl:62
37492 #, no-wrap
37493 msgid ""
37494 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
37495 "\n"
37496 msgstr ""
37497
37498 #. type: textblock
37499 #: ../tools/virt-tar.pl:66
37500 msgid ""
37501 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
37502 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
37503 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
37504 msgstr ""
37505
37506 #. type: textblock
37507 #: ../tools/virt-tar.pl:71
37508 msgid ""
37509 "You can use I<-x> (extract) on live virtual machines, but you might get "
37510 "inconsistent results or errors if there is filesystem activity inside the "
37511 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
37512 "work, but the only way to guarantee consistent results is if the virtual "
37513 "machine is shut down."
37514 msgstr ""
37515
37516 #. type: textblock
37517 #: ../tools/virt-tar.pl:79
37518 msgid ""
37519 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
37520 "parts of a guest filesystem.  There are many possibilities: making backups, "
37521 "uploading data files, snooping on guest activity, fixing or customizing "
37522 "guests, etc."
37523 msgstr ""
37524
37525 #. type: textblock
37526 #: ../tools/virt-tar.pl:84
37527 msgid ""
37528 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
37529 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
37530 "should look at the L<guestfish(1)> tool."
37531 msgstr ""
37532
37533 #. type: textblock
37534 #: ../tools/virt-tar.pl:88
37535 msgid ""
37536 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
37537 "its contents (recursively) from the virtual machine into a local tarball.  "
37538 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
37539 "virtual machine.  You cannot use these two options together."
37540 msgstr ""
37541
37542 #. type: textblock
37543 #: ../tools/virt-tar.pl:94
37544 msgid ""
37545 "In addition, you may need to use the I<-z> (gZip) option to enable "
37546 "compression.  When uploading, you have to specify I<-z> if the upload file "
37547 "is compressed because virt-tar won't detect this on its own."
37548 msgstr ""
37549
37550 #. type: textblock
37551 #: ../tools/virt-tar.pl:98
37552 msgid ""
37553 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
37554 "example it cannot do PKZip files or bzip2 compression.  If you want that "
37555 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
37556 "the L<libguestfs(3)> API)."
37557 msgstr ""
37558
37559 #. type: =item
37560 #: ../tools/virt-tar.pl:160
37561 msgid "B<--extract>"
37562 msgstr ""
37563
37564 #. type: =item
37565 #: ../tools/virt-tar.pl:162
37566 msgid "B<--download>"
37567 msgstr ""
37568
37569 #. type: =item
37570 #: ../tools/virt-tar.pl:164
37571 msgid "B<-u>"
37572 msgstr ""
37573
37574 #. type: =item
37575 #: ../tools/virt-tar.pl:166
37576 msgid "B<--upload>"
37577 msgstr ""
37578
37579 #. type: textblock
37580 #: ../tools/virt-tar.pl:168
37581 msgid ""
37582 "Use I<-x> to extract (download) a directory from a virtual machine to a "
37583 "local tarball."
37584 msgstr ""
37585
37586 #. type: textblock
37587 #: ../tools/virt-tar.pl:171
37588 msgid ""
37589 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
37590 "Please read the L</WARNING> section above before using this option."
37591 msgstr ""
37592
37593 #. type: textblock
37594 #: ../tools/virt-tar.pl:175
37595 msgid "You must specify exactly one of these options."
37596 msgstr ""
37597
37598 #. type: =item
37599 #: ../tools/virt-tar.pl:181
37600 msgid "B<-z>"
37601 msgstr ""
37602
37603 #. type: =item
37604 #: ../tools/virt-tar.pl:183
37605 msgid "B<--gzip>"
37606 msgstr ""
37607
37608 #. type: textblock
37609 #: ../tools/virt-tar.pl:185
37610 msgid "Specify that the input or output tarball is gzip-compressed."
37611 msgstr ""
37612
37613 #. type: textblock
37614 #: ../tools/virt-tar.pl:298
37615 msgid ""
37616 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
37617 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
37618 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
37619 "org/>."
37620 msgstr ""
37621
37622 #. type: textblock
37623 #: ../tools/virt-win-reg.pl:37
37624 msgid ""
37625 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
37626 msgstr ""
37627
37628 #. type: verbatim
37629 #: ../tools/virt-win-reg.pl:41
37630 #, no-wrap
37631 msgid ""
37632 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
37633 "\n"
37634 msgstr ""
37635
37636 #. type: verbatim
37637 #: ../tools/virt-win-reg.pl:43
37638 #, no-wrap
37639 msgid ""
37640 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
37641 "\n"
37642 msgstr ""
37643
37644 #. type: verbatim
37645 #: ../tools/virt-win-reg.pl:45
37646 #, no-wrap
37647 msgid ""
37648 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
37649 "\n"
37650 msgstr ""
37651
37652 #. type: verbatim
37653 #: ../tools/virt-win-reg.pl:47
37654 #, no-wrap
37655 msgid ""
37656 " virt-win-reg --merge domname [input.reg ...]\n"
37657 "\n"
37658 msgstr ""
37659
37660 #. type: verbatim
37661 #: ../tools/virt-win-reg.pl:49
37662 #, no-wrap
37663 msgid ""
37664 " virt-win-reg [--options] disk.img ... # instead of domname\n"
37665 "\n"
37666 msgstr ""
37667
37668 #. type: textblock
37669 #: ../tools/virt-win-reg.pl:53
37670 msgid ""
37671 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
37672 "virtual machines.  If you do this, you I<will> get irreversible disk "
37673 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
37674 "but doesn't catch all cases."
37675 msgstr ""
37676
37677 #. type: textblock
37678 #: ../tools/virt-win-reg.pl:58
37679 msgid ""
37680 "Modifying the Windows Registry is an inherently risky operation.  The format "
37681 "is deliberately obscure and undocumented, and Registry changes can leave the "
37682 "system unbootable.  Therefore when using the I<--merge> option, make sure "
37683 "you have a reliable backup first."
37684 msgstr ""
37685
37686 #. type: textblock
37687 #: ../tools/virt-win-reg.pl:65
37688 msgid ""
37689 "This program can export and merge Windows Registry entries from a Windows "
37690 "guest."
37691 msgstr ""
37692
37693 #. type: textblock
37694 #: ../tools/virt-win-reg.pl:68
37695 msgid ""
37696 "The first parameter is the libvirt guest name or the raw disk image of a "
37697 "Windows guest."
37698 msgstr ""
37699
37700 #. type: textblock
37701 #: ../tools/virt-win-reg.pl:71
37702 msgid ""
37703 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
37704 "exported (recursively).  For example:"
37705 msgstr ""
37706
37707 #. type: verbatim
37708 #: ../tools/virt-win-reg.pl:74
37709 #, no-wrap
37710 msgid ""
37711 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
37712 "\n"
37713 msgstr ""
37714
37715 #. type: textblock
37716 #: ../tools/virt-win-reg.pl:76
37717 msgid ""
37718 "You can also display single values from within registry keys, for example:"
37719 msgstr ""
37720
37721 #. type: verbatim
37722 #: ../tools/virt-win-reg.pl:79
37723 #, no-wrap
37724 msgid ""
37725 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
37726 " $ virt-win-reg Windows7 $cvkey ProductName\n"
37727 " Windows 7 Enterprise\n"
37728 "\n"
37729 msgstr ""
37730
37731 #. type: textblock
37732 #: ../tools/virt-win-reg.pl:83
37733 msgid ""
37734 "With I<--merge>, you can merge a textual regedit file into the Windows "
37735 "Registry:"
37736 msgstr ""
37737
37738 #. type: verbatim
37739 #: ../tools/virt-win-reg.pl:86
37740 #, no-wrap
37741 msgid ""
37742 " $ virt-win-reg --merge Windows7 changes.reg\n"
37743 "\n"
37744 msgstr ""
37745
37746 #. type: textblock
37747 #: ../tools/virt-win-reg.pl:90
37748 msgid ""
37749 "This program is only meant for simple access to the registry.  If you want "
37750 "to do complicated things with the registry, we suggest you download the "
37751 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
37752 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
37753 "L<hivexregedit(1)>."
37754 msgstr ""
37755
37756 #. type: =item
37757 #: ../tools/virt-win-reg.pl:159
37758 msgid "B<--merge>"
37759 msgstr ""
37760
37761 #. type: textblock
37762 #: ../tools/virt-win-reg.pl:161
37763 msgid ""
37764 "In merge mode, this merges a textual regedit file into the Windows Registry "
37765 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
37766 "displays or exports Registry entries instead."
37767 msgstr ""
37768
37769 #. type: textblock
37770 #: ../tools/virt-win-reg.pl:165
37771 msgid ""
37772 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
37773 "result in disk corruption.  However exporting (without this flag)  is always "
37774 "safe."
37775 msgstr ""
37776
37777 #. type: =item
37778 #: ../tools/virt-win-reg.pl:173
37779 msgid "B<--encoding> UTF-16LE|ASCII"
37780 msgstr ""
37781
37782 #. type: textblock
37783 #: ../tools/virt-win-reg.pl:175
37784 msgid ""
37785 "When merging (only), you may need to specify the encoding for strings to be "
37786 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
37787 "(3)/ENCODING STRINGS>."
37788 msgstr ""
37789
37790 #. type: textblock
37791 #: ../tools/virt-win-reg.pl:179
37792 msgid ""
37793 "The default is to use UTF-16LE, which should work with recent versions of "
37794 "Windows."
37795 msgstr ""
37796
37797 #. type: =item
37798 #: ../tools/virt-win-reg.pl:186
37799 msgid "B<--unsafe-printable-strings>"
37800 msgstr ""
37801
37802 #. type: textblock
37803 #: ../tools/virt-win-reg.pl:188
37804 msgid ""
37805 "When exporting (only), assume strings are UTF-16LE and print them as strings "
37806 "instead of hex sequences.  Remove the final zero codepoint from strings if "
37807 "present."
37808 msgstr ""
37809
37810 #. type: textblock
37811 #: ../tools/virt-win-reg.pl:192
37812 msgid ""
37813 "This is unsafe and does not preserve the fidelity of strings in the original "
37814 "Registry for various reasons:"
37815 msgstr ""
37816
37817 #. type: textblock
37818 #: ../tools/virt-win-reg.pl:199
37819 msgid ""
37820 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
37821 "other encodings will be corrupted by this transformation."
37822 msgstr ""
37823
37824 #. type: textblock
37825 #: ../tools/virt-win-reg.pl:204
37826 msgid ""
37827 "Assumes that everything which has type 1 or 2 is really a string and that "
37828 "everything else is not a string, but the type field in real Registries is "
37829 "not reliable."
37830 msgstr ""
37831
37832 #. type: textblock
37833 #: ../tools/virt-win-reg.pl:210
37834 msgid ""
37835 "Loses information about whether a zero codepoint followed the string in the "
37836 "Registry or not."
37837 msgstr ""
37838
37839 #. type: textblock
37840 #: ../tools/virt-win-reg.pl:215
37841 msgid ""
37842 "This all happens because the Registry itself contains no information about "
37843 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
37844 msgstr ""
37845
37846 #. type: textblock
37847 #: ../tools/virt-win-reg.pl:219
37848 msgid ""
37849 "You should only use this option for quick hacking and debugging of the "
37850 "Registry contents, and I<never> use it if the output is going to be passed "
37851 "into another program or stored in another Registry."
37852 msgstr ""
37853
37854 #. type: =head1
37855 #: ../tools/virt-win-reg.pl:556
37856 msgid "SUPPORTED SYSTEMS"
37857 msgstr ""
37858
37859 #. type: textblock
37860 #: ../tools/virt-win-reg.pl:558
37861 msgid ""
37862 "The program currently supports Windows NT-derived guests starting with "
37863 "Windows XP through to at least Windows 7."
37864 msgstr ""
37865
37866 #. type: textblock
37867 #: ../tools/virt-win-reg.pl:561
37868 msgid "The following Registry keys are supported:"
37869 msgstr ""
37870
37871 #. type: =item
37872 #: ../tools/virt-win-reg.pl:565
37873 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
37874 msgstr ""
37875
37876 #. type: =item
37877 #: ../tools/virt-win-reg.pl:567
37878 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
37879 msgstr ""
37880
37881 #. type: =item
37882 #: ../tools/virt-win-reg.pl:569
37883 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
37884 msgstr ""
37885
37886 #. type: =item
37887 #: ../tools/virt-win-reg.pl:571
37888 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
37889 msgstr ""
37890
37891 #. type: =item
37892 #: ../tools/virt-win-reg.pl:573
37893 msgid "C<HKEY_USERS\\.DEFAULT>"
37894 msgstr ""
37895
37896 #. type: =item
37897 #: ../tools/virt-win-reg.pl:575
37898 msgid "C<HKEY_USERS\\I<SID>>"
37899 msgstr ""
37900
37901 #. type: textblock
37902 #: ../tools/virt-win-reg.pl:577
37903 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
37904 msgstr ""
37905
37906 #. type: =item
37907 #: ../tools/virt-win-reg.pl:579
37908 msgid "C<HKEY_USERS\\I<username>>"
37909 msgstr ""
37910
37911 #. type: textblock
37912 #: ../tools/virt-win-reg.pl:581
37913 msgid ""
37914 "where I<username> is a local user name (this is a libguestfs extension)."
37915 msgstr ""
37916
37917 #. type: textblock
37918 #: ../tools/virt-win-reg.pl:585
37919 msgid ""
37920 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
37921 "C<HKEY_USERS>."
37922 msgstr ""
37923
37924 #. type: textblock
37925 #: ../tools/virt-win-reg.pl:588
37926 msgid ""
37927 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
37928 "supported (there is no \"current user\")."
37929 msgstr ""
37930
37931 #. type: =head1
37932 #: ../tools/virt-win-reg.pl:591
37933 msgid "ENCODING"
37934 msgstr ""
37935
37936 #. type: textblock
37937 #: ../tools/virt-win-reg.pl:593
37938 msgid ""
37939 "C<virt-win-reg> expects that regedit files have already been reencoded in "
37940 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
37941 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
37942 "Windows-style line endings, you may need to reencode the whole file before "
37943 "or after processing."
37944 msgstr ""
37945
37946 #. type: textblock
37947 #: ../tools/virt-win-reg.pl:599
37948 msgid ""
37949 "To reencode a file from Windows format to Linux (before processing it with "
37950 "the I<--merge> option), you would do something like this:"
37951 msgstr ""
37952
37953 #. type: verbatim
37954 #: ../tools/virt-win-reg.pl:602
37955 #, no-wrap
37956 msgid ""
37957 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
37958 "\n"
37959 msgstr ""
37960
37961 #. type: textblock
37962 #: ../tools/virt-win-reg.pl:604
37963 msgid ""
37964 "To go in the opposite direction, after exporting and before sending the file "
37965 "to a Windows user, do something like this:"
37966 msgstr ""
37967
37968 #. type: verbatim
37969 #: ../tools/virt-win-reg.pl:607
37970 #, no-wrap
37971 msgid ""
37972 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
37973 "\n"
37974 msgstr ""
37975
37976 #. type: textblock
37977 #: ../tools/virt-win-reg.pl:609
37978 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
37979 msgstr ""
37980
37981 #. type: textblock
37982 #: ../tools/virt-win-reg.pl:611
37983 msgid ""
37984 "If you are unsure about the current encoding, use the L<file(1)> command.  "
37985 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
37986 "style (CRLF) line endings, like this:"
37987 msgstr ""
37988
37989 #. type: verbatim
37990 #: ../tools/virt-win-reg.pl:615
37991 #, no-wrap
37992 msgid ""
37993 " $ file software.reg\n"
37994 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
37995 " with CRLF line terminators\n"
37996 "\n"
37997 msgstr ""
37998
37999 #. type: textblock
38000 #: ../tools/virt-win-reg.pl:619
38001 msgid "This file would need conversion before you could I<--merge> it."
38002 msgstr ""
38003
38004 #. type: =head1
38005 #: ../tools/virt-win-reg.pl:621
38006 msgid "CurrentControlSet etc."
38007 msgstr ""
38008
38009 #. type: textblock
38010 #: ../tools/virt-win-reg.pl:623
38011 msgid ""
38012 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
38013 "Registry at the level of the hive file, and therefore you cannot modify "
38014 "these."
38015 msgstr ""
38016
38017 #. type: textblock
38018 #: ../tools/virt-win-reg.pl:627
38019 msgid ""
38020 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
38021 "circumstances it might refer to another control set.  The way to find out is "
38022 "to look at the C<HKLM\\SYSTEM\\Select> key:"
38023 msgstr ""
38024
38025 #. type: verbatim
38026 #: ../tools/virt-win-reg.pl:631
38027 #, no-wrap
38028 msgid ""
38029 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
38030 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
38031 " \"Current\"=dword:00000001\n"
38032 " \"Default\"=dword:00000001\n"
38033 " \"Failed\"=dword:00000000\n"
38034 " \"LastKnownGood\"=dword:00000002\n"
38035 "\n"
38036 msgstr ""
38037
38038 #. type: textblock
38039 #: ../tools/virt-win-reg.pl:638
38040 msgid "\"Current\" is the one which Windows will choose when it boots."
38041 msgstr ""
38042
38043 #. type: textblock
38044 #: ../tools/virt-win-reg.pl:640
38045 msgid ""
38046 "Similarly, other C<Current...> keys in the path may need to be replaced."
38047 msgstr ""
38048
38049 #. type: =head1
38050 #: ../tools/virt-win-reg.pl:643
38051 msgid "WINDOWS TIPS"
38052 msgstr ""
38053
38054 #. type: textblock
38055 #: ../tools/virt-win-reg.pl:645
38056 msgid ""
38057 "Note that some of these tips modify the guest disk image.  The guest I<must> "
38058 "be shut off, else you will get disk corruption."
38059 msgstr ""
38060
38061 #. type: =head2
38062 #: ../tools/virt-win-reg.pl:648
38063 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
38064 msgstr ""
38065
38066 #. type: textblock
38067 #: ../tools/virt-win-reg.pl:650
38068 msgid ""
38069 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
38070 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
38071 "is uploaded into C<C:\\>:"
38072 msgstr ""
38073
38074 #. type: verbatim
38075 #: ../tools/virt-win-reg.pl:654
38076 #, no-wrap
38077 msgid ""
38078 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
38079 "\n"
38080 msgstr ""
38081
38082 #. type: textblock
38083 #: ../tools/virt-win-reg.pl:656
38084 msgid "Prepare a regedit file containing the registry change:"
38085 msgstr ""
38086
38087 #. type: verbatim
38088 #: ../tools/virt-win-reg.pl:658
38089 #, no-wrap
38090 msgid ""
38091 " cat > test.reg <<'EOF'\n"
38092 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
38093 " \"Test\"=\"c:\\\\test.bat\"\n"
38094 " EOF\n"
38095 "\n"
38096 msgstr ""
38097
38098 #. type: textblock
38099 #: ../tools/virt-win-reg.pl:663
38100 msgid ""
38101 "In this example we use the key C<RunOnce> which means that the script will "
38102 "run precisely once when the first user logs in.  If you want it to run every "
38103 "time a user logs in, replace C<RunOnce> with C<Run>."
38104 msgstr ""
38105
38106 #. type: textblock
38107 #: ../tools/virt-win-reg.pl:667
38108 msgid "Now update the registry:"
38109 msgstr ""
38110
38111 #. type: verbatim
38112 #: ../tools/virt-win-reg.pl:669
38113 #, no-wrap
38114 msgid ""
38115 " virt-win-reg --merge WindowsGuest test.reg\n"
38116 "\n"
38117 msgstr ""
38118
38119 #. type: =head2
38120 #: ../tools/virt-win-reg.pl:671
38121 msgid "INSTALLING A SERVICE"
38122 msgstr ""
38123
38124 #. type: textblock
38125 #: ../tools/virt-win-reg.pl:673
38126 msgid ""
38127 "This section assumes you are familiar with Windows services, and you either "
38128 "have a program which handles the Windows Service Control Protocol directly "
38129 "or you want to run any program using a service wrapper like SrvAny or the "
38130 "free RHSrvAny."
38131 msgstr ""
38132
38133 #. type: textblock
38134 #: ../tools/virt-win-reg.pl:678
38135 msgid ""
38136 "First upload the program and optionally the service wrapper.  In this case "
38137 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
38138 msgstr ""
38139
38140 #. type: verbatim
38141 #: ../tools/virt-win-reg.pl:682
38142 #, no-wrap
38143 msgid ""
38144 " guestfish -i -d WindowsGuest <<EOF\n"
38145 "   upload rhsrvany.exe /rhsrvany.exe\n"
38146 "   upload test.exe /test.exe\n"
38147 " EOF\n"
38148 "\n"
38149 msgstr ""
38150
38151 #. type: textblock
38152 #: ../tools/virt-win-reg.pl:687
38153 msgid ""
38154 "Prepare a regedit file containing the registry changes.  In this example, "
38155 "the first registry change is needed for the service itself or the service "
38156 "wrapper (if used).  The second registry change is only needed because I am "
38157 "using the RHSrvAny service wrapper."
38158 msgstr ""
38159
38160 #. type: verbatim
38161 #: ../tools/virt-win-reg.pl:692
38162 #, no-wrap
38163 msgid ""
38164 " cat > service.reg <<'EOF'\n"
38165 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
38166 " \"Type\"=dword:00000010\n"
38167 " \"Start\"=dword:00000002\n"
38168 " \"ErrorControl\"=dword:00000001\n"
38169 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
38170 " \"DisplayName\"=\"RHSrvAny\"\n"
38171 " \"ObjectName\"=\"NetworkService\"\n"
38172 " \n"
38173 msgstr ""
38174
38175 #. type: verbatim
38176 #: ../tools/virt-win-reg.pl:701
38177 #, no-wrap
38178 msgid ""
38179 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
38180 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
38181 " \"PWD\"=\"c:\\\\Temp\"\n"
38182 " EOF\n"
38183 "\n"
38184 msgstr ""
38185
38186 #. type: textblock
38187 #: ../tools/virt-win-reg.pl:712
38188 msgid ""
38189 "For use of C<ControlSet001> see the section above in this manual page.  You "
38190 "may need to adjust this according to the control set that is in use by the "
38191 "guest."
38192 msgstr ""
38193
38194 #. type: textblock
38195 #: ../tools/virt-win-reg.pl:718
38196 msgid ""
38197 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
38198 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
38199 "privileged account."
38200 msgstr ""
38201
38202 #. type: textblock
38203 #: ../tools/virt-win-reg.pl:724
38204 msgid ""
38205 "For the meaning of the magic numbers, see this Microsoft KB article: "
38206 "L<http://support.microsoft.com/kb/103000>."
38207 msgstr ""
38208
38209 #. type: textblock
38210 #: ../tools/virt-win-reg.pl:729
38211 msgid "Update the registry:"
38212 msgstr ""
38213
38214 #. type: verbatim
38215 #: ../tools/virt-win-reg.pl:731
38216 #, no-wrap
38217 msgid ""
38218 " virt-win-reg --merge WindowsGuest service.reg\n"
38219 "\n"
38220 msgstr ""
38221
38222 #. type: textblock
38223 #: ../tools/virt-win-reg.pl:735
38224 msgid ""
38225 "Be careful when passing parameters containing C<\\> (backslash) in the "
38226 "shell.  Usually you will have to use 'single quotes' or double backslashes "
38227 "(but not both) to protect them from the shell."
38228 msgstr ""
38229
38230 #. type: textblock
38231 #: ../tools/virt-win-reg.pl:739
38232 msgid "Paths and value names are case-insensitive."
38233 msgstr ""
38234
38235 #. type: textblock
38236 #: ../tools/virt-win-reg.pl:748
38237 msgid ""
38238 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
38239 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
38240 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38241 msgstr ""
38242
38243 #. type: verbatim
38244 #: ../tools/virt-win-reg.pl:766
38245 #, no-wrap
38246 msgid ""
38247 " export LIBGUESTFS_DEBUG=1\n"
38248 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
38249 "\n"
38250 msgstr ""
38251
38252 #. type: textblock
38253 #: ../tools/virt-win-reg.pl:769
38254 msgid ""
38255 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
38256 "redhat.com/>"
38257 msgstr ""