Version 1.13.1.
[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-07-26 14:14+0200\n"
11 "PO-Revision-Date: 2011-07-17 20:50+0000\n"
12 "Last-Translator: rjones <rjones@redhat.com>\n"
13 "Language-Team: Japanese (http://www.transifex.net/projects/p/fedora/team/"
14 "ja/)\n"
15 "Language: ja\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=1; plural=0\n"
20
21 #. type: =head1
22 #: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
23 #: ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
24 #: ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14
25 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
26 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
27 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
28 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
29 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
30 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
31 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
32 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
33 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
34 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
35 #: ../tools/virt-win-reg.pl:35
36 msgid "NAME"
37 msgstr "名前"
38
39 #. type: textblock
40 #: ../cat/virt-cat.pod:5
41 msgid "virt-cat - Display files in a virtual machine"
42 msgstr ""
43
44 #. type: =head1
45 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
46 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
47 #: ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7
48 #: ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7
49 #: ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7
50 #: ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7
51 #: ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7
52 #: ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7
53 #: ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7
54 #: ../ruby/examples/guestfs-ruby.pod:7 ../src/guestfs.pod:7
55 #: ../test-tool/libguestfs-test-tool.pod:7
56 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
57 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
58 #: ../tools/virt-win-reg.pl:39
59 msgid "SYNOPSIS"
60 msgstr ""
61
62 #. type: verbatim
63 #: ../cat/virt-cat.pod:9
64 #, no-wrap
65 msgid ""
66 " virt-cat [--options] -d domname file [file ...]\n"
67 "\n"
68 msgstr ""
69
70 #. type: verbatim
71 #: ../cat/virt-cat.pod:11
72 #, no-wrap
73 msgid ""
74 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
75 "\n"
76 msgstr ""
77
78 #. type: textblock
79 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
80 #: ../inspector/virt-inspector.pod:13
81 msgid "Old-style:"
82 msgstr ""
83
84 #. type: verbatim
85 #: ../cat/virt-cat.pod:15
86 #, no-wrap
87 msgid ""
88 " virt-cat domname file\n"
89 "\n"
90 msgstr ""
91
92 #. type: verbatim
93 #: ../cat/virt-cat.pod:17
94 #, no-wrap
95 msgid ""
96 " virt-cat disk.img file\n"
97 "\n"
98 msgstr ""
99
100 #. type: =head1
101 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
102 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
103 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
104 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
105 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
106 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
107 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
108 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
109 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
110 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
111 #: ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11
112 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
113 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
114 #: ../tools/virt-win-reg.pl:63
115 msgid "DESCRIPTION"
116 msgstr ""
117
118 #. type: textblock
119 #: ../cat/virt-cat.pod:21
120 msgid ""
121 "C<virt-cat> is a command line tool to display the contents of C<file> where "
122 "C<file> exists in the named virtual machine (or disk image)."
123 msgstr ""
124
125 #. type: textblock
126 #: ../cat/virt-cat.pod:24
127 msgid ""
128 "Multiple filenames can be given, in which case they are concatenated "
129 "together.  Each filename must be a full path, starting at the root directory "
130 "(starting with '/')."
131 msgstr ""
132
133 #. type: textblock
134 #: ../cat/virt-cat.pod:28
135 msgid ""
136 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
137 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
138 "(see L</USING GUESTFISH> below)."
139 msgstr ""
140
141 #. type: =head1
142 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
143 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
144 #: ../fish/guestfish.pod:1007 ../fish/virt-copy-in.pod:29
145 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
146 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
147 #: ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50
148 msgid "EXAMPLES"
149 msgstr ""
150
151 #. type: textblock
152 #: ../cat/virt-cat.pod:34
153 msgid ""
154 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
155 msgstr ""
156
157 #. type: verbatim
158 #: ../cat/virt-cat.pod:37
159 #, no-wrap
160 msgid ""
161 " virt-cat -d mydomain /etc/fstab\n"
162 "\n"
163 msgstr ""
164
165 #. type: textblock
166 #: ../cat/virt-cat.pod:39
167 msgid "List syslog messages from a VM disk image file:"
168 msgstr ""
169
170 #. type: verbatim
171 #: ../cat/virt-cat.pod:41
172 #, no-wrap
173 msgid ""
174 " virt-cat -a disk.img /var/log/messages | tail\n"
175 "\n"
176 msgstr ""
177
178 #. type: textblock
179 #: ../cat/virt-cat.pod:43
180 msgid "Find out what DHCP IP address a VM acquired:"
181 msgstr ""
182
183 #. type: verbatim
184 #: ../cat/virt-cat.pod:45
185 #, no-wrap
186 msgid ""
187 " virt-cat -d mydomain /var/log/messages | \\\n"
188 "   grep 'dhclient: bound to' | tail\n"
189 "\n"
190 msgstr ""
191
192 #. type: textblock
193 #: ../cat/virt-cat.pod:48
194 msgid "Find out what packages were recently installed:"
195 msgstr ""
196
197 #. type: verbatim
198 #: ../cat/virt-cat.pod:50
199 #, no-wrap
200 msgid ""
201 " virt-cat -d mydomain /var/log/yum.log | tail\n"
202 "\n"
203 msgstr ""
204
205 #. type: textblock
206 #: ../cat/virt-cat.pod:52
207 msgid "Find out who is logged on inside a virtual machine:"
208 msgstr ""
209
210 #. type: verbatim
211 #: ../cat/virt-cat.pod:54
212 #, no-wrap
213 msgid ""
214 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
215 " who /tmp/utmp\n"
216 "\n"
217 msgstr ""
218
219 #. type: textblock
220 #: ../cat/virt-cat.pod:57
221 msgid "or who was logged on:"
222 msgstr ""
223
224 #. type: verbatim
225 #: ../cat/virt-cat.pod:59
226 #, no-wrap
227 msgid ""
228 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
229 " last -f /tmp/wtmp\n"
230 "\n"
231 msgstr ""
232
233 #. type: =head1
234 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
235 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
236 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
237 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
238 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
239 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
240 #: ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:37
241 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
242 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
243 #: ../tools/virt-win-reg.pl:96
244 msgid "OPTIONS"
245 msgstr ""
246
247 #. type: =item
248 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
249 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
250 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
251 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
252 #: ../resize/virt-resize.pod:245 ../tools/virt-list-filesystems.pl:61
253 #: ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161
254 #: ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
255 msgid "B<--help>"
256 msgstr ""
257
258 #. type: textblock
259 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
260 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
261 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
262 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
263 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
264 #: ../tools/virt-win-reg.pl:106
265 msgid "Display brief help."
266 msgstr ""
267
268 #. type: =item
269 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
270 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
271 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
272 msgid "B<-a> file"
273 msgstr ""
274
275 #. type: =item
276 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
277 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
278 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
279 msgid "B<--add> file"
280 msgstr ""
281
282 #. type: textblock
283 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
284 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
285 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
286 msgid ""
287 "Add I<file> which should be a disk image from a virtual machine.  If the "
288 "virtual machine has multiple block devices, you must supply all of them with "
289 "separate I<-a> options."
290 msgstr ""
291
292 #. type: textblock
293 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
294 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
295 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
296 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
297 msgid ""
298 "The format of the disk image is auto-detected.  To override this and force a "
299 "particular format use the I<--format=..> option."
300 msgstr ""
301
302 #. type: =item
303 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
304 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
305 msgid "B<-c> URI"
306 msgstr ""
307
308 #. type: =item
309 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
310 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
311 msgid "B<--connect> URI"
312 msgstr ""
313
314 #. type: textblock
315 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
316 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
317 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
318 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
319 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
320 msgid ""
321 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
322 "to the default libvirt hypervisor."
323 msgstr ""
324
325 #. type: textblock
326 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
327 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
328 msgid ""
329 "If you specify guest block devices directly (I<-a>), then libvirt is not "
330 "used at all."
331 msgstr ""
332
333 #. type: =item
334 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
335 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
336 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
337 msgid "B<-d> guest"
338 msgstr ""
339
340 #. type: =item
341 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
342 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
343 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
344 msgid "B<--domain> guest"
345 msgstr ""
346
347 #. type: textblock
348 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
349 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
350 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
351 msgid ""
352 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
353 "instead of names."
354 msgstr ""
355
356 #. type: =item
357 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
358 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
359 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
360 msgid "B<--echo-keys>"
361 msgstr ""
362
363 #. type: textblock
364 #: ../cat/virt-cat.pod:100
365 msgid ""
366 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
367 "so you cannot see what you are typing.  If you are not worried about Tempest "
368 "attacks and there is no one else in the room you can specify this flag to "
369 "see what you are typing."
370 msgstr ""
371
372 #. type: =item
373 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
374 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
375 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
376 #: ../rescue/virt-rescue.pod:124
377 msgid "B<--format=raw|qcow2|..>"
378 msgstr ""
379
380 #. type: =item
381 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
382 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
383 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
384 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
385 msgid "B<--format>"
386 msgstr ""
387
388 #. type: textblock
389 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
390 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
391 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
392 #: ../rescue/virt-rescue.pod:128
393 msgid ""
394 "The default for the I<-a> option is to auto-detect the format of the disk "
395 "image.  Using this forces the disk format for I<-a> options which follow on "
396 "the command line.  Using I<--format> with no argument switches back to auto-"
397 "detection for subsequent I<-a> options."
398 msgstr ""
399
400 #. type: textblock
401 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
402 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
403 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
404 #: ../inspector/virt-inspector.pod:335 ../rescue/virt-rescue.pod:133
405 #: ../src/guestfs.pod:2652
406 msgid "For example:"
407 msgstr ""
408
409 #. type: verbatim
410 #: ../cat/virt-cat.pod:116
411 #, no-wrap
412 msgid ""
413 " virt-cat --format=raw -a disk.img file\n"
414 "\n"
415 msgstr ""
416
417 #. type: textblock
418 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
419 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
420 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
421 msgid "forces raw format (no auto-detection) for C<disk.img>."
422 msgstr ""
423
424 #. type: verbatim
425 #: ../cat/virt-cat.pod:120
426 #, no-wrap
427 msgid ""
428 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
429 "\n"
430 msgstr ""
431
432 #. type: textblock
433 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
434 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
435 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
436 msgid ""
437 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
438 "detection for C<another.img>."
439 msgstr ""
440
441 #. type: textblock
442 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
443 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
444 #: ../rescue/virt-rescue.pod:144
445 msgid ""
446 "If you have untrusted raw-format guest disk images, you should use this "
447 "option to specify the disk format.  This avoids a possible security problem "
448 "with malicious guests (CVE-2010-3851)."
449 msgstr ""
450
451 #. type: =item
452 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
453 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
454 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
455 msgid "B<--keys-from-stdin>"
456 msgstr ""
457
458 #. type: textblock
459 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
460 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
461 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
462 msgid ""
463 "Read key or passphrase parameters from stdin.  The default is to try to read "
464 "passphrases from the user by opening C</dev/tty>."
465 msgstr ""
466
467 #. type: =item
468 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
469 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
470 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
471 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:178
472 msgid "B<-v>"
473 msgstr ""
474
475 #. type: =item
476 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
477 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
478 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
479 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:180
480 msgid "B<--verbose>"
481 msgstr ""
482
483 #. type: textblock
484 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
485 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
486 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:182
487 msgid "Enable verbose messages for debugging."
488 msgstr ""
489
490 #. type: =item
491 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
492 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
493 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
494 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:184
495 #: ../resize/virt-resize.pod:478
496 msgid "B<-V>"
497 msgstr ""
498
499 #. type: =item
500 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
501 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
502 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
503 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:186
504 #: ../resize/virt-resize.pod:480 ../tools/virt-list-filesystems.pl:69
505 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
506 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
507 msgid "B<--version>"
508 msgstr ""
509
510 #. type: textblock
511 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
512 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
513 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:188
514 #: ../resize/virt-resize.pod:482 ../tools/virt-list-filesystems.pl:71
515 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
516 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
517 msgid "Display version number and exit."
518 msgstr ""
519
520 #. type: =item
521 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
522 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
523 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
524 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:199
525 #: ../tools/virt-tar.pl:158
526 msgid "B<-x>"
527 msgstr ""
528
529 #. type: textblock
530 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
531 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
532 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:201
533 msgid "Enable tracing of libguestfs API calls."
534 msgstr ""
535
536 #. type: =head1
537 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
538 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:205
539 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
540 msgstr ""
541
542 #. type: textblock
543 #: ../cat/virt-cat.pod:154
544 msgid "Previous versions of virt-cat allowed you to write either:"
545 msgstr ""
546
547 #. type: verbatim
548 #: ../cat/virt-cat.pod:156
549 #, no-wrap
550 msgid ""
551 " virt-cat disk.img [disk.img ...] file\n"
552 "\n"
553 msgstr ""
554
555 #. type: textblock
556 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
557 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:211
558 msgid "or"
559 msgstr ""
560
561 #. type: verbatim
562 #: ../cat/virt-cat.pod:160
563 #, no-wrap
564 msgid ""
565 " virt-cat guestname file\n"
566 "\n"
567 msgstr ""
568
569 #. type: textblock
570 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
571 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:215
572 msgid ""
573 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
574 "the confusing case where a disk image might have the same name as a guest."
575 msgstr ""
576
577 #. type: textblock
578 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
579 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:219
580 msgid "For compatibility the old style is still supported."
581 msgstr ""
582
583 #. type: =head1
584 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
585 msgid "USING GUESTFISH"
586 msgstr ""
587
588 #. type: textblock
589 #: ../cat/virt-cat.pod:170
590 msgid ""
591 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
592 "C<virt-cat> doesn't work."
593 msgstr ""
594
595 #. type: textblock
596 #: ../cat/virt-cat.pod:173
597 msgid "Using C<virt-cat> is approximately equivalent to doing:"
598 msgstr ""
599
600 #. type: verbatim
601 #: ../cat/virt-cat.pod:175
602 #, no-wrap
603 msgid ""
604 " guestfish --ro -i -d domname download file -\n"
605 "\n"
606 msgstr ""
607
608 #. type: textblock
609 #: ../cat/virt-cat.pod:177
610 msgid ""
611 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
612 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
613 msgstr ""
614
615 #. type: textblock
616 #: ../cat/virt-cat.pod:181
617 msgid ""
618 "The command above uses libguestfs's guest inspection feature and so does not "
619 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
620 "disk images that don't contain guests.  To display a file from a disk image "
621 "directly, use:"
622 msgstr ""
623
624 #. type: verbatim
625 #: ../cat/virt-cat.pod:186
626 #, no-wrap
627 msgid ""
628 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
629 "\n"
630 msgstr ""
631
632 #. type: textblock
633 #: ../cat/virt-cat.pod:188
634 msgid ""
635 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
636 "the disk image to edit, and C<file> is the full path to the file."
637 msgstr ""
638
639 #. type: =head1
640 #: ../cat/virt-cat.pod:192 ../cat/virt-filesystems.pod:365
641 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
642 #: ../inspector/virt-inspector.pod:349 ../rescue/virt-rescue.pod:262
643 #: ../resize/virt-resize.pod:543 ../tools/virt-list-filesystems.pl:188
644 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
645 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
646 msgid "SHELL QUOTING"
647 msgstr ""
648
649 #. type: textblock
650 #: ../cat/virt-cat.pod:194 ../cat/virt-filesystems.pod:367
651 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
652 #: ../inspector/virt-inspector.pod:351 ../rescue/virt-rescue.pod:264
653 #: ../resize/virt-resize.pod:545 ../tools/virt-list-filesystems.pl:190
654 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
655 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
656 msgid ""
657 "Libvirt guest names can contain arbitrary characters, some of which have "
658 "meaning to the shell such as C<#> and space.  You may need to quote or "
659 "escape these characters on the command line.  See the shell manual page L<sh"
660 "(1)> for details."
661 msgstr ""
662
663 #. type: =head1
664 #: ../cat/virt-cat.pod:199 ../cat/virt-filesystems.pod:372
665 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
666 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
667 #: ../fish/guestfish.pod:1224 ../fish/virt-copy-in.pod:50
668 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
669 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:303
670 #: ../inspector/virt-inspector.pod:372 ../java/examples/guestfs-java.pod:45
671 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
672 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284
673 #: ../resize/virt-resize.pod:550 ../ruby/examples/guestfs-ruby.pod:36
674 #: ../src/guestfs.pod:3026 ../test-tool/libguestfs-test-tool.pod:87
675 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
676 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
677 #: ../tools/virt-win-reg.pl:746
678 msgid "SEE ALSO"
679 msgstr ""
680
681 #. type: textblock
682 #: ../cat/virt-cat.pod:201
683 msgid ""
684 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
685 "tar-out(1)>, L<http://libguestfs.org/>."
686 msgstr ""
687
688 #. type: =head1
689 #: ../cat/virt-cat.pod:208 ../cat/virt-filesystems.pod:383
690 #: ../cat/virt-ls.pod:502 ../df/virt-df.pod:230 ../edit/virt-edit.pod:363
691 #: ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:571
692 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
693 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
694 #: ../tools/virt-win-reg.pl:772
695 msgid "AUTHOR"
696 msgstr ""
697
698 #. type: textblock
699 #: ../cat/virt-cat.pod:210 ../cat/virt-filesystems.pod:385
700 #: ../cat/virt-ls.pod:504 ../df/virt-df.pod:232 ../edit/virt-edit.pod:365
701 #: ../inspector/virt-inspector.pod:386 ../rescue/virt-rescue.pod:294
702 #: ../resize/virt-resize.pod:573 ../tools/virt-list-filesystems.pl:210
703 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
704 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
705 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
706 msgstr ""
707
708 #. type: =head1
709 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:387
710 #: ../cat/virt-ls.pod:506 ../df/virt-df.pod:234 ../edit/virt-edit.pod:367
711 #: ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400
712 #: ../fish/guestfish.pod:1253 ../fish/virt-copy-in.pod:64
713 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
714 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:318
715 #: ../inspector/virt-inspector.pod:394 ../java/examples/guestfs-java.pod:61
716 #: ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55
717 #: ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296
718 #: ../resize/virt-resize.pod:575 ../ruby/examples/guestfs-ruby.pod:51
719 #: ../src/guestfs.pod:3102 ../test-tool/libguestfs-test-tool.pod:97
720 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
721 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
722 #: ../tools/virt-win-reg.pl:776
723 msgid "COPYRIGHT"
724 msgstr ""
725
726 #. type: textblock
727 #: ../cat/virt-cat.pod:214 ../inspector/virt-inspector.pod:396
728 #: ../resize/virt-resize.pod:577
729 msgid "Copyright (C) 2010-2011 Red Hat Inc."
730 msgstr ""
731
732 #. type: textblock
733 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:391
734 #: ../cat/virt-ls.pod:510 ../df/virt-df.pod:238 ../edit/virt-edit.pod:371
735 #: ../fish/guestfish.pod:1258 ../fish/virt-copy-in.pod:69
736 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
737 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:323
738 #: ../inspector/virt-inspector.pod:398 ../rescue/virt-rescue.pod:300
739 #: ../resize/virt-resize.pod:579 ../test-tool/libguestfs-test-tool.pod:102
740 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
741 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
742 #: ../tools/virt-win-reg.pl:780
743 msgid ""
744 "This program is free software; you can redistribute it and/or modify it "
745 "under the terms of the GNU General Public License as published by the Free "
746 "Software Foundation; either version 2 of the License, or (at your option) "
747 "any later version."
748 msgstr ""
749
750 #. type: textblock
751 #: ../cat/virt-cat.pod:221 ../cat/virt-filesystems.pod:396
752 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
753 #: ../fish/guestfish.pod:1263 ../fish/virt-copy-in.pod:74
754 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
755 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:328
756 #: ../inspector/virt-inspector.pod:403 ../rescue/virt-rescue.pod:305
757 #: ../resize/virt-resize.pod:584 ../test-tool/libguestfs-test-tool.pod:107
758 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
759 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
760 #: ../tools/virt-win-reg.pl:785
761 msgid ""
762 "This program is distributed in the hope that it will be useful, but WITHOUT "
763 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
764 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
765 "more details."
766 msgstr ""
767
768 #. type: textblock
769 #: ../cat/virt-cat.pod:226 ../cat/virt-filesystems.pod:401
770 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
771 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:79
772 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
773 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:333
774 #: ../inspector/virt-inspector.pod:408 ../rescue/virt-rescue.pod:310
775 #: ../resize/virt-resize.pod:589 ../test-tool/libguestfs-test-tool.pod:112
776 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
777 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
778 #: ../tools/virt-win-reg.pl:790
779 msgid ""
780 "You should have received a copy of the GNU General Public License along with "
781 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
782 "Ave, Cambridge, MA 02139, USA."
783 msgstr ""
784
785 #. type: textblock
786 #: ../cat/virt-filesystems.pod:5
787 msgid ""
788 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
789 "virtual machine or disk image"
790 msgstr ""
791
792 #. type: verbatim
793 #: ../cat/virt-filesystems.pod:9
794 #, no-wrap
795 msgid ""
796 " virt-filesystems [--options] -d domname\n"
797 "\n"
798 msgstr ""
799
800 #. type: verbatim
801 #: ../cat/virt-filesystems.pod:11
802 #, no-wrap
803 msgid ""
804 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
805 "\n"
806 msgstr ""
807
808 #. type: textblock
809 #: ../cat/virt-filesystems.pod:15
810 msgid ""
811 "This tool allows you to discover filesystems, partitions, logical volumes, "
812 "and their sizes in a disk image or virtual machine.  It is a replacement for "
813 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
814 msgstr ""
815
816 #. type: textblock
817 #: ../cat/virt-filesystems.pod:20
818 msgid ""
819 "One use for this tool is from shell scripts to iterate over all filesystems "
820 "from a disk image:"
821 msgstr ""
822
823 #. type: verbatim
824 #: ../cat/virt-filesystems.pod:23
825 #, no-wrap
826 msgid ""
827 " for fs in $(virt-filesystems -a disk.img); do\n"
828 "   # ...\n"
829 " done\n"
830 "\n"
831 msgstr ""
832
833 #. type: textblock
834 #: ../cat/virt-filesystems.pod:27
835 msgid ""
836 "Another use is to list partitions before using another tool to modify those "
837 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
838 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
839 msgstr ""
840
841 #. type: textblock
842 #: ../cat/virt-filesystems.pod:32
843 msgid ""
844 "Various command line options control what this program displays.  You need "
845 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
846 "guest respectively.  If you just specify that then the program shows "
847 "filesystems found, one per line, like this:"
848 msgstr ""
849
850 #. type: verbatim
851 #: ../cat/virt-filesystems.pod:37
852 #, no-wrap
853 msgid ""
854 " $ virt-filesystems -a disk.img\n"
855 " /dev/sda1\n"
856 " /dev/vg_guest/lv_root\n"
857 "\n"
858 msgstr ""
859
860 #. type: textblock
861 #: ../cat/virt-filesystems.pod:41
862 msgid ""
863 "If you add I<-l> or I<--long> then the output includes extra information:"
864 msgstr ""
865
866 #. type: verbatim
867 #: ../cat/virt-filesystems.pod:44
868 #, no-wrap
869 msgid ""
870 " $ virt-filesystems -a disk.img -l\n"
871 " Name                   Type         VFS   Label  Size\n"
872 " /dev/sda1              filesystem   ext4  boot   524288000\n"
873 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
874 "\n"
875 msgstr ""
876
877 #. type: textblock
878 #: ../cat/virt-filesystems.pod:49
879 msgid ""
880 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
881 "shown as well:"
882 msgstr ""
883
884 #. type: verbatim
885 #: ../cat/virt-filesystems.pod:52
886 #, no-wrap
887 msgid ""
888 " $ virt-filesystems -a disk.img --extra\n"
889 " /dev/sda1\n"
890 " /dev/vg_guest/lv_root\n"
891 " /dev/vg_guest/lv_swap\n"
892 " /dev/vg_guest/lv_data\n"
893 "\n"
894 msgstr ""
895
896 #. type: textblock
897 #: ../cat/virt-filesystems.pod:58
898 msgid ""
899 "If you add I<--partitions> then partitions are shown instead of filesystems:"
900 msgstr ""
901
902 #. type: verbatim
903 #: ../cat/virt-filesystems.pod:60
904 #, no-wrap
905 msgid ""
906 " $ virt-filesystems -a disk.img --partitions\n"
907 " /dev/sda1\n"
908 " /dev/sda2\n"
909 "\n"
910 msgstr ""
911
912 #. type: textblock
913 #: ../cat/virt-filesystems.pod:64
914 msgid ""
915 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
916 "volumes>, I<--block-devices> to list those items."
917 msgstr ""
918
919 #. type: textblock
920 #: ../cat/virt-filesystems.pod:67
921 msgid ""
922 "You can use these options in combination as well (if you want a combination "
923 "including filesystems, you have to add I<--filesystems>).  Notice that some "
924 "items fall into several categories (eg. C</dev/sda1> might be both a "
925 "partition and a filesystem).  These items are listed several times.  To get "
926 "a list which includes absolutely everything that virt-filesystems knows "
927 "about, use the I<--all> option."
928 msgstr ""
929
930 #. type: textblock
931 #: ../cat/virt-filesystems.pod:74
932 msgid ""
933 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
934 "uuid> option to display device and filesystem UUIDs in the long output."
935 msgstr ""
936
937 #. type: textblock
938 #: ../cat/virt-filesystems.pod:78
939 msgid ""
940 "I<--all --long --uuid> is a useful combination to display all possible "
941 "information about everything."
942 msgstr ""
943
944 #. type: verbatim
945 #: ../cat/virt-filesystems.pod:81
946 #, no-wrap
947 msgid ""
948 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
949 " Name      Type       VFS  Label           Size Parent   UUID\n"
950 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
951 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
952 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
953 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
954 " /dev/sda  device     -    -               20G  -        -\n"
955 "\n"
956 msgstr ""
957
958 #. type: textblock
959 #: ../cat/virt-filesystems.pod:89
960 msgid ""
961 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
962 msgstr ""
963
964 #. type: =item
965 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
966 msgid "B<--all>"
967 msgstr ""
968
969 #. type: textblock
970 #: ../cat/virt-filesystems.pod:112
971 msgid ""
972 "Display everything.  This is currently the same as specifying these options: "
973 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
974 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
975 "added to this list in future)."
976 msgstr ""
977
978 #. type: textblock
979 #: ../cat/virt-filesystems.pod:117
980 msgid "See also I<--long>."
981 msgstr ""
982
983 #. type: =item
984 #: ../cat/virt-filesystems.pod:119
985 msgid "B<--blkdevs>"
986 msgstr ""
987
988 #. type: =item
989 #: ../cat/virt-filesystems.pod:121
990 msgid "B<--block-devices>"
991 msgstr ""
992
993 #. type: textblock
994 #: ../cat/virt-filesystems.pod:123
995 msgid "Display block devices."
996 msgstr ""
997
998 #. type: =item
999 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1000 msgid "B<--csv>"
1001 msgstr ""
1002
1003 #. type: textblock
1004 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1005 msgid ""
1006 "Write out the results in CSV format (comma-separated values).  This format "
1007 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1008 "ABOUT CSV FORMAT> below."
1009 msgstr ""
1010
1011 #. type: textblock
1012 #: ../cat/virt-filesystems.pod:150
1013 msgid ""
1014 "When prompting for keys and passphrases, virt-filesystems normally turns "
1015 "echoing off so you cannot see what you are typing.  If you are not worried "
1016 "about Tempest attacks and there is no one else in the room you can specify "
1017 "this flag to see what you are typing."
1018 msgstr ""
1019
1020 #. type: =item
1021 #: ../cat/virt-filesystems.pod:155
1022 msgid "B<--extra>"
1023 msgstr ""
1024
1025 #. type: textblock
1026 #: ../cat/virt-filesystems.pod:157
1027 msgid ""
1028 "This causes filesystems that are not ordinary, mountable filesystems to be "
1029 "displayed.  This category includes swapspace, and filesystems that are empty "
1030 "or contain unknown data."
1031 msgstr ""
1032
1033 #. type: textblock
1034 #: ../cat/virt-filesystems.pod:161
1035 msgid "This option implies I<--filesystems>."
1036 msgstr ""
1037
1038 #. type: =item
1039 #: ../cat/virt-filesystems.pod:163
1040 msgid "B<--filesystems>"
1041 msgstr ""
1042
1043 #. type: textblock
1044 #: ../cat/virt-filesystems.pod:165
1045 msgid ""
1046 "Display mountable filesystems.  If no display option was selected then this "
1047 "option is implied."
1048 msgstr ""
1049
1050 #. type: textblock
1051 #: ../cat/virt-filesystems.pod:168
1052 msgid "With I<--extra>, non-mountable filesystems are shown too."
1053 msgstr ""
1054
1055 #. type: verbatim
1056 #: ../cat/virt-filesystems.pod:181
1057 #, no-wrap
1058 msgid ""
1059 " virt-filesystems --format=raw -a disk.img\n"
1060 "\n"
1061 msgstr ""
1062
1063 #. type: verbatim
1064 #: ../cat/virt-filesystems.pod:185
1065 #, no-wrap
1066 msgid ""
1067 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1068 "\n"
1069 msgstr ""
1070
1071 #. type: =item
1072 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1073 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1074 #: ../tools/virt-list-partitions.pl:109
1075 msgid "B<-h>"
1076 msgstr ""
1077
1078 #. type: =item
1079 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1080 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1081 msgid "B<--human-readable>"
1082 msgstr ""
1083
1084 #. type: textblock
1085 #: ../cat/virt-filesystems.pod:198
1086 msgid "In I<--long> mode, display sizes in human-readable format."
1087 msgstr ""
1088
1089 #. type: =item
1090 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1091 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1092 msgid "B<-l>"
1093 msgstr ""
1094
1095 #. type: =item
1096 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1097 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1098 msgid "B<--long>"
1099 msgstr ""
1100
1101 #. type: textblock
1102 #: ../cat/virt-filesystems.pod:209
1103 msgid "Display extra columns of data (\"long format\")."
1104 msgstr ""
1105
1106 #. type: textblock
1107 #: ../cat/virt-filesystems.pod:211
1108 msgid "A title row is added unless you also specify I<--no-title>."
1109 msgstr ""
1110
1111 #. type: textblock
1112 #: ../cat/virt-filesystems.pod:213
1113 msgid ""
1114 "The extra columns displayed depend on what output you select, and the "
1115 "ordering of columns may change in future versions.  Use the title row, I<--"
1116 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1117 "programs."
1118 msgstr ""
1119
1120 #. type: textblock
1121 #: ../cat/virt-filesystems.pod:218
1122 msgid ""
1123 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1124 "default is to show raw numbers of I<bytes>."
1125 msgstr ""
1126
1127 #. type: textblock
1128 #: ../cat/virt-filesystems.pod:221
1129 msgid "Use I<--uuid> to display UUIDs too."
1130 msgstr ""
1131
1132 #. type: =item
1133 #: ../cat/virt-filesystems.pod:223
1134 msgid "B<--lvs>"
1135 msgstr ""
1136
1137 #. type: =item
1138 #: ../cat/virt-filesystems.pod:225
1139 msgid "B<--logvols>"
1140 msgstr ""
1141
1142 #. type: =item
1143 #: ../cat/virt-filesystems.pod:227
1144 msgid "B<--logical-volumes>"
1145 msgstr ""
1146
1147 #. type: textblock
1148 #: ../cat/virt-filesystems.pod:229
1149 msgid ""
1150 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1151 "of whether the LVs contain filesystems."
1152 msgstr ""
1153
1154 #. type: =item
1155 #: ../cat/virt-filesystems.pod:232
1156 msgid "B<--no-title>"
1157 msgstr ""
1158
1159 #. type: textblock
1160 #: ../cat/virt-filesystems.pod:234
1161 msgid "In I<--long> mode, don't add a title row."
1162 msgstr ""
1163
1164 #. type: textblock
1165 #: ../cat/virt-filesystems.pod:236
1166 msgid ""
1167 "Note that the order of the columns is not fixed, and may change in future "
1168 "versions of virt-filesystems, so using this option may give you unexpected "
1169 "surprises."
1170 msgstr ""
1171
1172 #. type: =item
1173 #: ../cat/virt-filesystems.pod:240
1174 msgid "B<--parts>"
1175 msgstr ""
1176
1177 #. type: =item
1178 #: ../cat/virt-filesystems.pod:242
1179 msgid "B<--partitions>"
1180 msgstr ""
1181
1182 #. type: textblock
1183 #: ../cat/virt-filesystems.pod:244
1184 msgid ""
1185 "Display partitions.  In this mode, these are displayed irrespective of "
1186 "whether the partitions contain filesystems."
1187 msgstr ""
1188
1189 #. type: =item
1190 #: ../cat/virt-filesystems.pod:247
1191 msgid "B<--pvs>"
1192 msgstr ""
1193
1194 #. type: =item
1195 #: ../cat/virt-filesystems.pod:249
1196 msgid "B<--physvols>"
1197 msgstr ""
1198
1199 #. type: =item
1200 #: ../cat/virt-filesystems.pod:251
1201 msgid "B<--physical-volumes>"
1202 msgstr ""
1203
1204 #. type: textblock
1205 #: ../cat/virt-filesystems.pod:253
1206 msgid "Display LVM physical volumes."
1207 msgstr ""
1208
1209 #. type: =item
1210 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1211 msgid "B<--uuid>"
1212 msgstr ""
1213
1214 #. type: =item
1215 #: ../cat/virt-filesystems.pod:257
1216 msgid "B<--uuids>"
1217 msgstr ""
1218
1219 #. type: textblock
1220 #: ../cat/virt-filesystems.pod:259
1221 msgid "In I<--long> mode, display UUIDs as well."
1222 msgstr ""
1223
1224 #. type: =item
1225 #: ../cat/virt-filesystems.pod:273
1226 msgid "B<--vgs>"
1227 msgstr ""
1228
1229 #. type: =item
1230 #: ../cat/virt-filesystems.pod:275
1231 msgid "B<--volgroups>"
1232 msgstr ""
1233
1234 #. type: =item
1235 #: ../cat/virt-filesystems.pod:277
1236 msgid "B<--volume-groups>"
1237 msgstr ""
1238
1239 #. type: textblock
1240 #: ../cat/virt-filesystems.pod:279
1241 msgid "Display LVM volume groups."
1242 msgstr ""
1243
1244 #. type: =head1
1245 #: ../cat/virt-filesystems.pod:287
1246 msgid "COLUMNS"
1247 msgstr ""
1248
1249 #. type: textblock
1250 #: ../cat/virt-filesystems.pod:289
1251 msgid ""
1252 "Note that columns in the output are subject to reordering and change in "
1253 "future versions of this tool."
1254 msgstr ""
1255
1256 #. type: =item
1257 #: ../cat/virt-filesystems.pod:294
1258 msgid "B<Name>"
1259 msgstr ""
1260
1261 #. type: textblock
1262 #: ../cat/virt-filesystems.pod:296
1263 msgid "The filesystem, partition, block device or LVM name."
1264 msgstr ""
1265
1266 #. type: textblock
1267 #: ../cat/virt-filesystems.pod:298
1268 msgid ""
1269 "For device and partition names these are displayed as canonical libguestfs "
1270 "names, so that for example C</dev/sda2> is the second partition on the first "
1271 "device."
1272 msgstr ""
1273
1274 #. type: textblock
1275 #: ../cat/virt-filesystems.pod:302
1276 msgid ""
1277 "If the I<--long> option is B<not> specified, then only the name column is "
1278 "shown in the output."
1279 msgstr ""
1280
1281 #. type: =item
1282 #: ../cat/virt-filesystems.pod:305
1283 msgid "B<Type>"
1284 msgstr ""
1285
1286 #. type: textblock
1287 #: ../cat/virt-filesystems.pod:307
1288 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1289 msgstr ""
1290
1291 #. type: =item
1292 #: ../cat/virt-filesystems.pod:309
1293 msgid "B<VFS>"
1294 msgstr ""
1295
1296 #. type: textblock
1297 #: ../cat/virt-filesystems.pod:311
1298 msgid ""
1299 "If there is a filesystem, then this column displays the filesystem type if "
1300 "one could be detected, eg. C<ext4>."
1301 msgstr ""
1302
1303 #. type: =item
1304 #: ../cat/virt-filesystems.pod:314
1305 msgid "B<Label>"
1306 msgstr ""
1307
1308 #. type: textblock
1309 #: ../cat/virt-filesystems.pod:316
1310 msgid ""
1311 "If the object has a label (used for identifying and mounting filesystems) "
1312 "then this column contains the label."
1313 msgstr ""
1314
1315 #. type: =item
1316 #: ../cat/virt-filesystems.pod:319
1317 msgid "B<Size>"
1318 msgstr ""
1319
1320 #. type: textblock
1321 #: ../cat/virt-filesystems.pod:321
1322 msgid ""
1323 "The size of the object in bytes.  If the I<--human> option is used then the "
1324 "size is displayed in a human-readable form."
1325 msgstr ""
1326
1327 #. type: =item
1328 #: ../cat/virt-filesystems.pod:324
1329 msgid "B<Parent>"
1330 msgstr ""
1331
1332 #. type: textblock
1333 #: ../cat/virt-filesystems.pod:326
1334 msgid ""
1335 "The parent column records the parent relationship between objects.  For "
1336 "example, if the object is a partition, then this column contains the name of "
1337 "the containing device.  If the object is a logical volume, then this column "
1338 "is the name of the volume group."
1339 msgstr ""
1340
1341 #. type: =item
1342 #: ../cat/virt-filesystems.pod:331
1343 msgid "B<UUID>"
1344 msgstr ""
1345
1346 #. type: textblock
1347 #: ../cat/virt-filesystems.pod:333
1348 msgid ""
1349 "If the object has a UUID (used for identifying and mounting filesystems and "
1350 "block devices) then this column contains the UUID as a string."
1351 msgstr ""
1352
1353 #. type: textblock
1354 #: ../cat/virt-filesystems.pod:337
1355 msgid "The UUID is only displayed if the I<--uuid> option is given."
1356 msgstr ""
1357
1358 #. type: =head1
1359 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1360 #: ../df/virt-df.pod:191
1361 msgid "NOTE ABOUT CSV FORMAT"
1362 msgstr ""
1363
1364 #. type: textblock
1365 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1366 #: ../df/virt-df.pod:193
1367 msgid ""
1368 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1369 "should be easy to parse, but it is definitely not easy to parse."
1370 msgstr ""
1371
1372 #. type: textblock
1373 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1374 #: ../df/virt-df.pod:196
1375 msgid ""
1376 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1377 "reliably.  This example has two columns:"
1378 msgstr ""
1379
1380 #. type: verbatim
1381 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1382 #: ../df/virt-df.pod:199
1383 #, no-wrap
1384 msgid ""
1385 " \"foo,bar\",baz\n"
1386 "\n"
1387 msgstr ""
1388
1389 #. type: textblock
1390 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1391 #: ../df/virt-df.pod:201
1392 msgid ""
1393 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1394 "reliably.  This example has one row:"
1395 msgstr ""
1396
1397 #. type: verbatim
1398 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1399 #: ../df/virt-df.pod:204
1400 #, no-wrap
1401 msgid ""
1402 " \"foo\n"
1403 " bar\",baz\n"
1404 "\n"
1405 msgstr ""
1406
1407 #. type: textblock
1408 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1409 #: ../df/virt-df.pod:207
1410 msgid ""
1411 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1412 "packaged in major Linux distributions)."
1413 msgstr ""
1414
1415 #. type: textblock
1416 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1417 #: ../df/virt-df.pod:210
1418 msgid ""
1419 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1420 "or Python's built-in csv library)."
1421 msgstr ""
1422
1423 #. type: textblock
1424 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1425 #: ../df/virt-df.pod:213
1426 msgid "Most spreadsheets and databases can import CSV directly."
1427 msgstr ""
1428
1429 #. type: textblock
1430 #: ../cat/virt-filesystems.pod:374
1431 msgid ""
1432 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1433 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1434 "libguestfs.org/>."
1435 msgstr ""
1436
1437 #. type: textblock
1438 #: ../cat/virt-filesystems.pod:389 ../tools/virt-make-fs.pl:570
1439 #: ../tools/virt-win-reg.pl:778
1440 msgid "Copyright (C) 2010 Red Hat Inc."
1441 msgstr ""
1442
1443 #. type: textblock
1444 #: ../cat/virt-ls.pod:5
1445 msgid "virt-ls - List files in a virtual machine"
1446 msgstr ""
1447
1448 #. type: verbatim
1449 #: ../cat/virt-ls.pod:9
1450 #, no-wrap
1451 msgid ""
1452 " virt-ls [--options] -d domname directory [directory ...]\n"
1453 "\n"
1454 msgstr ""
1455
1456 #. type: verbatim
1457 #: ../cat/virt-ls.pod:11
1458 #, no-wrap
1459 msgid ""
1460 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1461 "\n"
1462 msgstr ""
1463
1464 #. type: textblock
1465 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1466 msgid "Old style:"
1467 msgstr ""
1468
1469 #. type: verbatim
1470 #: ../cat/virt-ls.pod:15
1471 #, no-wrap
1472 msgid ""
1473 " virt-ls [--options] domname directory\n"
1474 "\n"
1475 msgstr ""
1476
1477 #. type: verbatim
1478 #: ../cat/virt-ls.pod:17
1479 #, no-wrap
1480 msgid ""
1481 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1482 "\n"
1483 msgstr ""
1484
1485 #. type: textblock
1486 #: ../cat/virt-ls.pod:21
1487 msgid ""
1488 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1489 "more from a virtual machine or disk image."
1490 msgstr ""
1491
1492 #. type: textblock
1493 #: ../cat/virt-ls.pod:24
1494 msgid ""
1495 "Multiple directory names can be given, in which case the output from each is "
1496 "concatenated."
1497 msgstr ""
1498
1499 #. type: textblock
1500 #: ../cat/virt-ls.pod:27
1501 msgid ""
1502 "To list directories from a libvirt guest use the I<-d> option to specify the "
1503 "name of the guest.  For a disk image, use the I<-a> option."
1504 msgstr ""
1505
1506 #. type: textblock
1507 #: ../cat/virt-ls.pod:31
1508 msgid ""
1509 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1510 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1511 "(3)> API."
1512 msgstr ""
1513
1514 #. type: textblock
1515 #: ../cat/virt-ls.pod:37
1516 msgid "Get a list of all files and directories in a virtual machine:"
1517 msgstr ""
1518
1519 #. type: verbatim
1520 #: ../cat/virt-ls.pod:39
1521 #, no-wrap
1522 msgid ""
1523 " virt-ls -R -d guest /\n"
1524 "\n"
1525 msgstr ""
1526
1527 #. type: textblock
1528 #: ../cat/virt-ls.pod:41
1529 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1530 msgstr ""
1531
1532 #. type: verbatim
1533 #: ../cat/virt-ls.pod:43
1534 #, no-wrap
1535 msgid ""
1536 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1537 "\n"
1538 msgstr ""
1539
1540 #. type: textblock
1541 #: ../cat/virt-ls.pod:45
1542 msgid "List all public-writable directories in a Linux virtual machine:"
1543 msgstr ""
1544
1545 #. type: verbatim
1546 #: ../cat/virt-ls.pod:47
1547 #, no-wrap
1548 msgid ""
1549 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1550 "\n"
1551 msgstr ""
1552
1553 #. type: textblock
1554 #: ../cat/virt-ls.pod:49
1555 msgid "List all Unix domain sockets in a Linux virtual machine:"
1556 msgstr ""
1557
1558 #. type: verbatim
1559 #: ../cat/virt-ls.pod:51
1560 #, no-wrap
1561 msgid ""
1562 " virt-ls -lR -d guest / | grep '^s'\n"
1563 "\n"
1564 msgstr ""
1565
1566 #. type: textblock
1567 #: ../cat/virt-ls.pod:53
1568 msgid "List all regular files with filenames ending in '.png':"
1569 msgstr ""
1570
1571 #. type: verbatim
1572 #: ../cat/virt-ls.pod:55
1573 #, no-wrap
1574 msgid ""
1575 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1576 "\n"
1577 msgstr ""
1578
1579 #. type: textblock
1580 #: ../cat/virt-ls.pod:57
1581 msgid "To display files larger than 10MB in home directories:"
1582 msgstr ""
1583
1584 #. type: verbatim
1585 #: ../cat/virt-ls.pod:59
1586 #, no-wrap
1587 msgid ""
1588 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1589 "\n"
1590 msgstr ""
1591
1592 #. type: textblock
1593 #: ../cat/virt-ls.pod:61
1594 msgid "Find everything modified in the last 7 days:"
1595 msgstr ""
1596
1597 #. type: verbatim
1598 #: ../cat/virt-ls.pod:63
1599 #, no-wrap
1600 msgid ""
1601 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1602 "\n"
1603 msgstr ""
1604
1605 #. type: textblock
1606 #: ../cat/virt-ls.pod:65
1607 msgid "Find regular files modified in the last 24 hours:"
1608 msgstr ""
1609
1610 #. type: verbatim
1611 #: ../cat/virt-ls.pod:67
1612 #, no-wrap
1613 msgid ""
1614 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1615 "\n"
1616 msgstr ""
1617
1618 #. type: =head2
1619 #: ../cat/virt-ls.pod:69
1620 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1621 msgstr ""
1622
1623 #. type: textblock
1624 #: ../cat/virt-ls.pod:71
1625 msgid ""
1626 "Find the differences between files in a guest and an earlier snapshot of the "
1627 "same guest."
1628 msgstr ""
1629
1630 #. type: verbatim
1631 #: ../cat/virt-ls.pod:74
1632 #, no-wrap
1633 msgid ""
1634 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1635 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1636 " diff -u old new | less\n"
1637 "\n"
1638 msgstr ""
1639
1640 #. type: textblock
1641 #: ../cat/virt-ls.pod:78
1642 msgid ""
1643 "The commands above won't find files where the content has changed but the "
1644 "metadata (eg. file size and modification date) is the same.  To do that, you "
1645 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1646 "checksum> can be quite slow since it has to read and compute a checksum of "
1647 "every regular file in the virtual machine."
1648 msgstr ""
1649
1650 #. type: =head1
1651 #: ../cat/virt-ls.pod:84
1652 msgid "OUTPUT MODES"
1653 msgstr ""
1654
1655 #. type: textblock
1656 #: ../cat/virt-ls.pod:86
1657 msgid ""
1658 "C<virt-ls> has four output modes, controlled by different combinations of "
1659 "the I<-l> and I<-R> options."
1660 msgstr ""
1661
1662 #. type: =head2
1663 #: ../cat/virt-ls.pod:89
1664 msgid "SIMPLE LISTING"
1665 msgstr ""
1666
1667 #. type: textblock
1668 #: ../cat/virt-ls.pod:91
1669 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1670 msgstr ""
1671
1672 #. type: verbatim
1673 #: ../cat/virt-ls.pod:93
1674 #, no-wrap
1675 msgid ""
1676 " $ virt-ls -d guest /\n"
1677 " bin\n"
1678 " boot\n"
1679 " [etc.]\n"
1680 "\n"
1681 msgstr ""
1682
1683 #. type: =head2
1684 #: ../cat/virt-ls.pod:98
1685 msgid "LONG LISTING"
1686 msgstr ""
1687
1688 #. type: textblock
1689 #: ../cat/virt-ls.pod:100
1690 msgid ""
1691 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1692 "(more specifically, like the C<guestfs_ll> function)."
1693 msgstr ""
1694
1695 #. type: verbatim
1696 #: ../cat/virt-ls.pod:103
1697 #, no-wrap
1698 msgid ""
1699 " $ virt-ls -l -d guest /\n"
1700 " total 204\n"
1701 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1702 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1703 " [etc.]\n"
1704 "\n"
1705 msgstr ""
1706
1707 #. type: textblock
1708 #: ../cat/virt-ls.pod:109
1709 msgid ""
1710 "Note that while this is useful for displaying a directory, do not try "
1711 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1712 "instead."
1713 msgstr ""
1714
1715 #. type: =head2
1716 #: ../cat/virt-ls.pod:113
1717 msgid "RECURSIVE LISTING"
1718 msgstr ""
1719
1720 #. type: textblock
1721 #: ../cat/virt-ls.pod:115
1722 msgid ""
1723 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1724 "and directories recursively:"
1725 msgstr ""
1726
1727 #. type: verbatim
1728 #: ../cat/virt-ls.pod:118
1729 #, no-wrap
1730 msgid ""
1731 " $ virt-ls -R -d guest /tmp\n"
1732 " foo\n"
1733 " foo/bar\n"
1734 " [etc.]\n"
1735 "\n"
1736 msgstr ""
1737
1738 #. type: textblock
1739 #: ../cat/virt-ls.pod:123
1740 msgid ""
1741 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1742 "converts C<\\0> characters to C<\\n>."
1743 msgstr ""
1744
1745 #. type: =head2
1746 #: ../cat/virt-ls.pod:126
1747 msgid "RECURSIVE LONG LISTING"
1748 msgstr ""
1749
1750 #. type: textblock
1751 #: ../cat/virt-ls.pod:128
1752 msgid ""
1753 "Using I<-lR> options together changes the output to display directories "
1754 "recursively, with file stats, and optionally other features such as "
1755 "checksums and extended attributes."
1756 msgstr ""
1757
1758 #. type: textblock
1759 #: ../cat/virt-ls.pod:132
1760 msgid ""
1761 "Most of the interesting features of C<virt-ls> are only available when using "
1762 "I<-lR> mode."
1763 msgstr ""
1764
1765 #. type: textblock
1766 #: ../cat/virt-ls.pod:135
1767 msgid ""
1768 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1769 "you cannot use the output in another program (because filenames can contain "
1770 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1771 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1772 "on you by creating filenames with embedded newline characters.  To B<safely> "
1773 "parse the output in another program, use the I<--csv> (Comma-Separated "
1774 "Values) option."
1775 msgstr ""
1776
1777 #. type: textblock
1778 #: ../cat/virt-ls.pod:143
1779 msgid ""
1780 "Note that this output format is completely unrelated to the C<ls -lR> "
1781 "command."
1782 msgstr ""
1783
1784 #. type: verbatim
1785 #: ../cat/virt-ls.pod:146
1786 #, no-wrap
1787 msgid ""
1788 " $ virt-ls -lR -d guest /bin\n"
1789 " d 0555       4096 /bin\n"
1790 " - 0755        123 /bin/alsaunmute\n"
1791 " - 0755      28328 /bin/arch\n"
1792 " l 0777          4 /bin/awk -> gawk\n"
1793 " - 0755      27216 /bin/basename\n"
1794 " - 0755     943360 /bin/bash\n"
1795 " [etc.]\n"
1796 "\n"
1797 msgstr ""
1798
1799 #. type: textblock
1800 #: ../cat/virt-ls.pod:155
1801 msgid "These basic fields are always shown:"
1802 msgstr ""
1803
1804 #. type: =item
1805 #: ../cat/virt-ls.pod:159
1806 msgid "type"
1807 msgstr ""
1808
1809 #. type: textblock
1810 #: ../cat/virt-ls.pod:161
1811 msgid ""
1812 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1813 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1814 "link), C<s> (socket) or C<u> (unknown)."
1815 msgstr ""
1816
1817 #. type: =item
1818 #: ../cat/virt-ls.pod:171
1819 msgid "permissions"
1820 msgstr ""
1821
1822 #. type: textblock
1823 #: ../cat/virt-ls.pod:173
1824 msgid "The Unix permissions, displayed as a 4 digit octal number."
1825 msgstr ""
1826
1827 #. type: =item
1828 #: ../cat/virt-ls.pod:175
1829 msgid "size"
1830 msgstr ""
1831
1832 #. type: textblock
1833 #: ../cat/virt-ls.pod:177
1834 msgid ""
1835 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
1836 "readable> option is given, in which case this is shown as a human-readable "
1837 "number."
1838 msgstr ""
1839
1840 #. type: =head2
1841 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4183
1842 msgid "path"
1843 msgstr ""
1844
1845 #. type: textblock
1846 #: ../cat/virt-ls.pod:183
1847 msgid "The full path of the file or directory."
1848 msgstr ""
1849
1850 #. type: =item
1851 #: ../cat/virt-ls.pod:185
1852 msgid "link"
1853 msgstr ""
1854
1855 #. type: textblock
1856 #: ../cat/virt-ls.pod:187
1857 msgid "For symbolic links only, the link target."
1858 msgstr ""
1859
1860 #. type: textblock
1861 #: ../cat/virt-ls.pod:191
1862 msgid ""
1863 "In I<-lR> mode, additional command line options enable the display of more "
1864 "fields."
1865 msgstr ""
1866
1867 #. type: textblock
1868 #: ../cat/virt-ls.pod:194
1869 msgid ""
1870 "With the I<--uids> flag, these additional fields are displayed before the "
1871 "path:"
1872 msgstr ""
1873
1874 #. type: =item
1875 #: ../cat/virt-ls.pod:199
1876 msgid "uid"
1877 msgstr ""
1878
1879 #. type: =item
1880 #: ../cat/virt-ls.pod:201
1881 msgid "gid"
1882 msgstr ""
1883
1884 #. type: textblock
1885 #: ../cat/virt-ls.pod:203
1886 msgid ""
1887 "The UID and GID of the owner of the file (displayed numerically).  Note "
1888 "these only make sense in the context of a Unix-like guest."
1889 msgstr ""
1890
1891 #. type: textblock
1892 #: ../cat/virt-ls.pod:208
1893 msgid "With the I<--times> flag, these additional fields are displayed:"
1894 msgstr ""
1895
1896 #. type: =item
1897 #: ../cat/virt-ls.pod:212
1898 msgid "atime"
1899 msgstr ""
1900
1901 #. type: textblock
1902 #: ../cat/virt-ls.pod:214
1903 msgid "The time of last access."
1904 msgstr ""
1905
1906 #. type: =item
1907 #: ../cat/virt-ls.pod:216
1908 msgid "mtime"
1909 msgstr ""
1910
1911 #. type: textblock
1912 #: ../cat/virt-ls.pod:218
1913 msgid "The time of last modification."
1914 msgstr ""
1915
1916 #. type: =item
1917 #: ../cat/virt-ls.pod:220
1918 msgid "ctime"
1919 msgstr ""
1920
1921 #. type: textblock
1922 #: ../cat/virt-ls.pod:222
1923 msgid "The time of last status change."
1924 msgstr ""
1925
1926 #. type: textblock
1927 #: ../cat/virt-ls.pod:226
1928 msgid ""
1929 "The time fields are displayed as string dates and times, unless one of the "
1930 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
1931 msgstr ""
1932
1933 #. type: textblock
1934 #: ../cat/virt-ls.pod:229
1935 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
1936 msgstr ""
1937
1938 #. type: =item
1939 #: ../cat/virt-ls.pod:233
1940 msgid "device"
1941 msgstr ""
1942
1943 #. type: textblock
1944 #: ../cat/virt-ls.pod:235
1945 msgid ""
1946 "The device containing the file (displayed as major:minor).  This may not "
1947 "match devices as known to the guest."
1948 msgstr ""
1949
1950 #. type: =item
1951 #: ../cat/virt-ls.pod:238
1952 msgid "inode"
1953 msgstr ""
1954
1955 #. type: textblock
1956 #: ../cat/virt-ls.pod:240
1957 msgid "The inode number."
1958 msgstr ""
1959
1960 #. type: =item
1961 #: ../cat/virt-ls.pod:242
1962 msgid "nlink"
1963 msgstr ""
1964
1965 #. type: textblock
1966 #: ../cat/virt-ls.pod:244
1967 msgid "The number of hard links."
1968 msgstr ""
1969
1970 #. type: =item
1971 #: ../cat/virt-ls.pod:246
1972 msgid "rdev"
1973 msgstr ""
1974
1975 #. type: textblock
1976 #: ../cat/virt-ls.pod:248
1977 msgid ""
1978 "For block and char special files, the device (displayed as major:minor)."
1979 msgstr ""
1980
1981 #. type: =item
1982 #: ../cat/virt-ls.pod:251
1983 msgid "blocks"
1984 msgstr ""
1985
1986 #. type: textblock
1987 #: ../cat/virt-ls.pod:253
1988 msgid "The number of 512 byte blocks allocated to the file."
1989 msgstr ""
1990
1991 #. type: textblock
1992 #: ../cat/virt-ls.pod:257
1993 msgid ""
1994 "With the I<--checksum> flag, the checksum of the file contents is shown "
1995 "(only for regular files).  Computing file checksums can take a considerable "
1996 "amount of time."
1997 msgstr ""
1998
1999 #. type: =item
2000 #: ../cat/virt-ls.pod:280
2001 msgid "B<--checksum>"
2002 msgstr ""
2003
2004 #. type: =item
2005 #: ../cat/virt-ls.pod:282
2006 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2007 msgstr ""
2008
2009 #. type: textblock
2010 #: ../cat/virt-ls.pod:284
2011 msgid ""
2012 "Display checksum over file contents for regular files.  With no argument, "
2013 "this defaults to using I<md5>.  Using an argument, you can select the "
2014 "checksum type to use."
2015 msgstr ""
2016
2017 #. type: textblock
2018 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2019 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2020 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2021 msgid ""
2022 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2023 "LISTING> above."
2024 msgstr ""
2025
2026 #. type: textblock
2027 #: ../cat/virt-ls.pod:316
2028 msgid ""
2029 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2030 "so you cannot see what you are typing.  If you are not worried about Tempest "
2031 "attacks and there is no one else in the room you can specify this flag to "
2032 "see what you are typing."
2033 msgstr ""
2034
2035 #. type: =item
2036 #: ../cat/virt-ls.pod:321
2037 msgid "B<--extra-stats>"
2038 msgstr ""
2039
2040 #. type: textblock
2041 #: ../cat/virt-ls.pod:323
2042 msgid "Display extra stats."
2043 msgstr ""
2044
2045 #. type: verbatim
2046 #: ../cat/virt-ls.pod:339
2047 #, no-wrap
2048 msgid ""
2049 " virt-ls --format=raw -a disk.img /dir\n"
2050 "\n"
2051 msgstr ""
2052
2053 #. type: verbatim
2054 #: ../cat/virt-ls.pod:343
2055 #, no-wrap
2056 msgid ""
2057 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2058 "\n"
2059 msgstr ""
2060
2061 #. type: textblock
2062 #: ../cat/virt-ls.pod:356
2063 msgid "Display file sizes in human-readable format."
2064 msgstr ""
2065
2066 #. type: =item
2067 #: ../cat/virt-ls.pod:370
2068 msgid "B<-R>"
2069 msgstr ""
2070
2071 #. type: =item
2072 #: ../cat/virt-ls.pod:372
2073 msgid "B<--recursive>"
2074 msgstr ""
2075
2076 #. type: textblock
2077 #: ../cat/virt-ls.pod:374
2078 msgid ""
2079 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2080 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2081 "LISTING>."
2082 msgstr ""
2083
2084 #. type: textblock
2085 #: ../cat/virt-ls.pod:378
2086 msgid ""
2087 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2088 "LONG LISTING>."
2089 msgstr ""
2090
2091 #. type: textblock
2092 #: ../cat/virt-ls.pod:381
2093 msgid ""
2094 "C<virt-ls -R> produces a recursive list of files starting at the named "
2095 "directory.  See L</RECURSIVE LISTING>."
2096 msgstr ""
2097
2098 #. type: textblock
2099 #: ../cat/virt-ls.pod:384
2100 msgid ""
2101 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2102 "parsed.  See L</RECURSIVE LONG LISTING>."
2103 msgstr ""
2104
2105 #. type: =item
2106 #: ../cat/virt-ls.pod:387
2107 msgid "B<--times>"
2108 msgstr ""
2109
2110 #. type: textblock
2111 #: ../cat/virt-ls.pod:389
2112 msgid "Display time fields."
2113 msgstr ""
2114
2115 #. type: =item
2116 #: ../cat/virt-ls.pod:394
2117 msgid "B<--time-days>"
2118 msgstr ""
2119
2120 #. type: textblock
2121 #: ../cat/virt-ls.pod:396
2122 msgid "Display time fields as days before now (negative if in the future)."
2123 msgstr ""
2124
2125 #. type: textblock
2126 #: ../cat/virt-ls.pod:398
2127 msgid ""
2128 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2129 "of the file is between 0 and 86399 seconds."
2130 msgstr ""
2131
2132 #. type: =item
2133 #: ../cat/virt-ls.pod:404
2134 msgid "B<--time-relative>"
2135 msgstr ""
2136
2137 #. type: textblock
2138 #: ../cat/virt-ls.pod:406
2139 msgid "Display time fields as seconds before now (negative if in the future)."
2140 msgstr ""
2141
2142 #. type: =item
2143 #: ../cat/virt-ls.pod:411
2144 msgid "B<--time-t>"
2145 msgstr ""
2146
2147 #. type: textblock
2148 #: ../cat/virt-ls.pod:413
2149 msgid "Display time fields as seconds since the Unix epoch."
2150 msgstr ""
2151
2152 #. type: =item
2153 #: ../cat/virt-ls.pod:418
2154 msgid "B<--uids>"
2155 msgstr ""
2156
2157 #. type: textblock
2158 #: ../cat/virt-ls.pod:420
2159 msgid "Display UID and GID fields."
2160 msgstr ""
2161
2162 #. type: textblock
2163 #: ../cat/virt-ls.pod:445
2164 msgid "Previous versions of virt-ls allowed you to write either:"
2165 msgstr ""
2166
2167 #. type: verbatim
2168 #: ../cat/virt-ls.pod:447
2169 #, no-wrap
2170 msgid ""
2171 " virt-ls disk.img [disk.img ...] /dir\n"
2172 "\n"
2173 msgstr ""
2174
2175 #. type: verbatim
2176 #: ../cat/virt-ls.pod:451
2177 #, no-wrap
2178 msgid ""
2179 " virt-ls guestname /dir\n"
2180 "\n"
2181 msgstr ""
2182
2183 #. type: textblock
2184 #: ../cat/virt-ls.pod:492
2185 msgid ""
2186 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2187 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2188 "L<http://libguestfs.org/>."
2189 msgstr ""
2190
2191 #. type: textblock
2192 #: ../cat/virt-ls.pod:508 ../df/virt-df.pod:236 ../edit/virt-edit.pod:369
2193 #: ../rescue/virt-rescue.pod:298
2194 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2195 msgstr ""
2196
2197 #. type: textblock
2198 #: ../df/virt-df.pod:5
2199 msgid "virt-df - Display free space on virtual filesystems"
2200 msgstr ""
2201
2202 #. type: verbatim
2203 #: ../df/virt-df.pod:9
2204 #, no-wrap
2205 msgid ""
2206 " virt-df [--options]\n"
2207 "\n"
2208 msgstr ""
2209
2210 #. type: verbatim
2211 #: ../df/virt-df.pod:11
2212 #, no-wrap
2213 msgid ""
2214 " virt-df [--options] -d domname\n"
2215 "\n"
2216 msgstr ""
2217
2218 #. type: verbatim
2219 #: ../df/virt-df.pod:13
2220 #, no-wrap
2221 msgid ""
2222 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2223 "\n"
2224 msgstr ""
2225
2226 #. type: verbatim
2227 #: ../df/virt-df.pod:17
2228 #, no-wrap
2229 msgid ""
2230 " virt-df [--options] domname\n"
2231 "\n"
2232 msgstr ""
2233
2234 #. type: verbatim
2235 #: ../df/virt-df.pod:19
2236 #, no-wrap
2237 msgid ""
2238 " virt-df [--options] disk.img [disk.img ...]\n"
2239 "\n"
2240 msgstr ""
2241
2242 #. type: textblock
2243 #: ../df/virt-df.pod:23
2244 msgid ""
2245 "C<virt-df> is a command line tool to display free space on virtual machine "
2246 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2247 "allocated to a virtual machine, but can look inside disk images to see how "
2248 "much space is really being used."
2249 msgstr ""
2250
2251 #. type: textblock
2252 #: ../df/virt-df.pod:28
2253 msgid ""
2254 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2255 "to get a list of all active and inactive guests, and performs a C<df>-type "
2256 "operation on each one in turn, printing out the results."
2257 msgstr ""
2258
2259 #. type: textblock
2260 #: ../df/virt-df.pod:32
2261 msgid ""
2262 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2263 "type operation on either the single named libvirt domain, or on the disk "
2264 "image(s) listed on the command line (which must all belong to a single VM).  "
2265 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2266 "guest>.  If you want to run on multiple guests, then you have to invoke "
2267 "C<virt-df> multiple times."
2268 msgstr ""
2269
2270 #. type: textblock
2271 #: ../df/virt-df.pod:39
2272 msgid ""
2273 "Use the I<--csv> option to get a format which can be easily parsed by other "
2274 "programs.  Other options are similar to the standard L<df(1)> command."
2275 msgstr ""
2276
2277 #. type: textblock
2278 #: ../df/virt-df.pod:45
2279 msgid ""
2280 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2281 "output human-readable:"
2282 msgstr ""
2283
2284 #. type: verbatim
2285 #: ../df/virt-df.pod:48
2286 #, no-wrap
2287 msgid ""
2288 " # virt-df -d F14x64 -h\n"
2289 " Filesystem                       Size     Used  Available  Use%\n"
2290 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2291 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2292 "\n"
2293 msgstr ""
2294
2295 #. type: textblock
2296 #: ../df/virt-df.pod:53
2297 msgid "Show disk usage for a disk image file called C<test.img>:"
2298 msgstr ""
2299
2300 #. type: verbatim
2301 #: ../df/virt-df.pod:55
2302 #, no-wrap
2303 msgid ""
2304 " $ virt-df -a test1.img\n"
2305 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2306 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2307 "\n"
2308 msgstr ""
2309
2310 #. type: verbatim
2311 #: ../df/virt-df.pod:112
2312 #, no-wrap
2313 msgid ""
2314 " virt-df --format=raw -a disk.img\n"
2315 "\n"
2316 msgstr ""
2317
2318 #. type: verbatim
2319 #: ../df/virt-df.pod:116
2320 #, no-wrap
2321 msgid ""
2322 " virt-df --format=raw -a disk.img --format -a another.img\n"
2323 "\n"
2324 msgstr ""
2325
2326 #. type: textblock
2327 #: ../df/virt-df.pod:129
2328 msgid "Print sizes in human-readable format."
2329 msgstr ""
2330
2331 #. type: textblock
2332 #: ../df/virt-df.pod:131
2333 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2334 msgstr ""
2335
2336 #. type: =item
2337 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2338 msgid "B<-i>"
2339 msgstr ""
2340
2341 #. type: =item
2342 #: ../df/virt-df.pod:135
2343 msgid "B<--inodes>"
2344 msgstr ""
2345
2346 #. type: textblock
2347 #: ../df/virt-df.pod:137
2348 msgid "Print inodes instead of blocks."
2349 msgstr ""
2350
2351 #. type: =item
2352 #: ../df/virt-df.pod:139
2353 msgid "B<--one-per-guest>"
2354 msgstr ""
2355
2356 #. type: textblock
2357 #: ../df/virt-df.pod:141
2358 msgid ""
2359 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2360 "disks from several guests to a single libguestfs appliance."
2361 msgstr ""
2362
2363 #. type: textblock
2364 #: ../df/virt-df.pod:144
2365 msgid "You might use this option in the following circumstances:"
2366 msgstr ""
2367
2368 #. type: =item
2369 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2370 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2371 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2372 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2373 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2374 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2375 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2376 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2377 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2378 #: ../fish/guestfish-actions.pod:385 ../fish/guestfish-actions.pod:393
2379 #: ../fish/guestfish-actions.pod:400 ../fish/guestfish-actions.pod:407
2380 #: ../fish/guestfish-actions.pod:1099 ../fish/guestfish-actions.pod:1103
2381 #: ../fish/guestfish-actions.pod:1107 ../fish/guestfish-actions.pod:1111
2382 #: ../fish/guestfish-actions.pod:1119 ../fish/guestfish-actions.pod:1123
2383 #: ../fish/guestfish-actions.pod:1127 ../fish/guestfish-actions.pod:1137
2384 #: ../fish/guestfish-actions.pod:1141 ../fish/guestfish-actions.pod:1145
2385 #: ../fish/guestfish-actions.pod:1235 ../fish/guestfish-actions.pod:1239
2386 #: ../fish/guestfish-actions.pod:1244 ../fish/guestfish-actions.pod:1249
2387 #: ../fish/guestfish-actions.pod:1291 ../fish/guestfish-actions.pod:1295
2388 #: ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1933
2389 #: ../fish/guestfish-actions.pod:1939 ../fish/guestfish-actions.pod:1947
2390 #: ../fish/guestfish-actions.pod:1954 ../fish/guestfish-actions.pod:1961
2391 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
2392 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
2393 #: ../inspector/virt-inspector.pod:384 ../inspector/virt-inspector.pod:388
2394 #: ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286
2395 #: ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301
2396 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
2397 #: ../src/guestfs-actions.pod:583 ../src/guestfs-actions.pod:591
2398 #: ../src/guestfs-actions.pod:598 ../src/guestfs-actions.pod:605
2399 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1666
2400 #: ../src/guestfs-actions.pod:1670 ../src/guestfs-actions.pod:1674
2401 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1686
2402 #: ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1700
2403 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1708
2404 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850
2405 #: ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860
2406 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1925
2407 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:2859
2408 #: ../src/guestfs-actions.pod:2865 ../src/guestfs-actions.pod:2873
2409 #: ../src/guestfs-actions.pod:2880 ../src/guestfs-actions.pod:2887
2410 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2411 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2412 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
2413 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
2414 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
2415 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
2416 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
2417 #: ../src/guestfs.pod:1643 ../src/guestfs.pod:1648 ../src/guestfs.pod:1652
2418 #: ../src/guestfs.pod:1754 ../src/guestfs.pod:1759 ../src/guestfs.pod:1763
2419 #: ../src/guestfs.pod:1773 ../src/guestfs.pod:2047 ../src/guestfs.pod:2052
2420 #: ../src/guestfs.pod:2058 ../src/guestfs.pod:2066 ../src/guestfs.pod:2420
2421 #: ../src/guestfs.pod:2426 ../src/guestfs.pod:2431 ../src/guestfs.pod:2437
2422 #: ../src/guestfs.pod:2818 ../src/guestfs.pod:2823 ../src/guestfs.pod:2827
2423 #: ../src/guestfs.pod:2831 ../src/guestfs.pod:2835 ../src/guestfs.pod:2849
2424 #: ../src/guestfs.pod:2854 ../src/guestfs.pod:3079 ../src/guestfs.pod:3083
2425 #: ../src/guestfs.pod:3087 ../src/guestfs.pod:3091
2426 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2427 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2428 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2429 msgid "*"
2430 msgstr ""
2431
2432 #. type: textblock
2433 #: ../df/virt-df.pod:150
2434 msgid ""
2435 "If you think an untrusted guest might actively try to exploit the libguestfs "
2436 "appliance kernel, then this prevents one guest from interfering with the "
2437 "stats printed for another guest."
2438 msgstr ""
2439
2440 #. type: textblock
2441 #: ../df/virt-df.pod:156
2442 msgid ""
2443 "If the kernel has a bug which stops it from accessing a filesystem in one "
2444 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2445 "and report stats for further guests."
2446 msgstr ""
2447
2448 #. type: textblock
2449 #: ../df/virt-df.pod:165
2450 msgid ""
2451 "Print UUIDs instead of names.  This is useful for following a guest even "
2452 "when the guest is migrated or renamed, or when two guests happen to have the "
2453 "same name."
2454 msgstr ""
2455
2456 #. type: textblock
2457 #: ../df/virt-df.pod:169
2458 msgid ""
2459 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2460 "images, we still print the disk image name even when this option is "
2461 "specified."
2462 msgstr ""
2463
2464 #. type: textblock
2465 #: ../df/virt-df.pod:224
2466 msgid ""
2467 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2468 "libguestfs.org/>."
2469 msgstr ""
2470
2471 #. type: textblock
2472 #: ../edit/virt-edit.pod:5
2473 msgid "virt-edit - Edit a file in a virtual machine"
2474 msgstr ""
2475
2476 #. type: verbatim
2477 #: ../edit/virt-edit.pod:9
2478 #, no-wrap
2479 msgid ""
2480 " virt-edit [--options] -d domname file [file ...]\n"
2481 "\n"
2482 msgstr ""
2483
2484 #. type: verbatim
2485 #: ../edit/virt-edit.pod:11
2486 #, no-wrap
2487 msgid ""
2488 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2489 "\n"
2490 msgstr ""
2491
2492 #. type: verbatim
2493 #: ../edit/virt-edit.pod:13
2494 #, no-wrap
2495 msgid ""
2496 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2497 "\n"
2498 msgstr ""
2499
2500 #. type: verbatim
2501 #: ../edit/virt-edit.pod:17
2502 #, no-wrap
2503 msgid ""
2504 " virt-edit domname file\n"
2505 "\n"
2506 msgstr ""
2507
2508 #. type: verbatim
2509 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2510 #, no-wrap
2511 msgid ""
2512 " virt-edit disk.img [disk.img ...] file\n"
2513 "\n"
2514 msgstr ""
2515
2516 #. type: =head1
2517 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2518 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2519 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2520 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2521 msgid "WARNING"
2522 msgstr ""
2523
2524 #. type: textblock
2525 #: ../edit/virt-edit.pod:23
2526 msgid ""
2527 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2528 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2529 "doing this, but doesn't catch all cases."
2530 msgstr ""
2531
2532 #. type: textblock
2533 #: ../edit/virt-edit.pod:29
2534 msgid ""
2535 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2536 "exists in the named virtual machine (or disk image)."
2537 msgstr ""
2538
2539 #. type: textblock
2540 #: ../edit/virt-edit.pod:32
2541 msgid ""
2542 "Multiple filenames can be given, in which case they are each edited in "
2543 "turn.  Each filename must be a full path, starting at the root directory "
2544 "(starting with '/')."
2545 msgstr ""
2546
2547 #. type: textblock
2548 #: ../edit/virt-edit.pod:36
2549 msgid "If you want to just view a file, use L<virt-cat(1)>."
2550 msgstr ""
2551
2552 #. type: textblock
2553 #: ../edit/virt-edit.pod:38
2554 msgid ""
2555 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2556 "USING GUESTFISH> below)."
2557 msgstr ""
2558
2559 #. type: textblock
2560 #: ../edit/virt-edit.pod:41
2561 msgid ""
2562 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2563 "that and much more."
2564 msgstr ""
2565
2566 #. type: textblock
2567 #: ../edit/virt-edit.pod:46
2568 msgid "Edit the named files interactively:"
2569 msgstr ""
2570
2571 #. type: verbatim
2572 #: ../edit/virt-edit.pod:48
2573 #, no-wrap
2574 msgid ""
2575 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2576 "\n"
2577 msgstr ""
2578
2579 #. type: verbatim
2580 #: ../edit/virt-edit.pod:50
2581 #, no-wrap
2582 msgid ""
2583 " virt-edit -d mydomain /etc/passwd\n"
2584 "\n"
2585 msgstr ""
2586
2587 #. type: textblock
2588 #: ../edit/virt-edit.pod:52
2589 msgid "For Windows guests, some Windows paths are understood:"
2590 msgstr ""
2591
2592 #. type: verbatim
2593 #: ../edit/virt-edit.pod:54
2594 #, no-wrap
2595 msgid ""
2596 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2597 "\n"
2598 msgstr ""
2599
2600 #. type: textblock
2601 #: ../edit/virt-edit.pod:56
2602 msgid ""
2603 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2604 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2605 msgstr ""
2606
2607 #. type: verbatim
2608 #: ../edit/virt-edit.pod:60
2609 #, no-wrap
2610 msgid ""
2611 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2612 "\n"
2613 msgstr ""
2614
2615 #. type: =item
2616 #: ../edit/virt-edit.pod:81
2617 msgid "B<-b> extension"
2618 msgstr ""
2619
2620 #. type: =item
2621 #: ../edit/virt-edit.pod:83
2622 msgid "B<--backup> extension"
2623 msgstr ""
2624
2625 #. type: textblock
2626 #: ../edit/virt-edit.pod:85
2627 msgid ""
2628 "Create a backup of the original file I<in the guest disk image>.  The backup "
2629 "has the original filename with C<extension> added."
2630 msgstr ""
2631
2632 #. type: textblock
2633 #: ../edit/virt-edit.pod:88
2634 msgid ""
2635 "Usually the first character of C<extension> would be a dot C<.> so you would "
2636 "write:"
2637 msgstr ""
2638
2639 #. type: verbatim
2640 #: ../edit/virt-edit.pod:91
2641 #, no-wrap
2642 msgid ""
2643 " virt-edit -b .orig [etc]\n"
2644 "\n"
2645 msgstr ""
2646
2647 #. type: textblock
2648 #: ../edit/virt-edit.pod:93
2649 msgid "By default, no backup file is made."
2650 msgstr ""
2651
2652 #. type: =item
2653 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2654 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2655 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2656 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2657 msgid "B<-c URI>"
2658 msgstr ""
2659
2660 #. type: =item
2661 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2662 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2663 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2664 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2665 msgid "B<--connect URI>"
2666 msgstr ""
2667
2668 #. type: textblock
2669 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2670 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2671 #: ../tools/virt-win-reg.pl:135
2672 msgid ""
2673 "If you specify guest block devices directly, then libvirt is not used at all."
2674 msgstr ""
2675
2676 #. type: textblock
2677 #: ../edit/virt-edit.pod:114
2678 msgid ""
2679 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2680 "off so you cannot see what you are typing.  If you are not worried about "
2681 "Tempest attacks and there is no one else in the room you can specify this "
2682 "flag to see what you are typing."
2683 msgstr ""
2684
2685 #. type: =item
2686 #: ../edit/virt-edit.pod:119
2687 msgid "B<-e> EXPR"
2688 msgstr ""
2689
2690 #. type: =item
2691 #: ../edit/virt-edit.pod:121
2692 msgid "B<--expr> EXPR"
2693 msgstr ""
2694
2695 #. type: textblock
2696 #: ../edit/virt-edit.pod:123
2697 msgid ""
2698 "Instead of launching the external editor, non-interactively apply the Perl "
2699 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
2700 "EDITING> below."
2701 msgstr ""
2702
2703 #. type: textblock
2704 #: ../edit/virt-edit.pod:127
2705 msgid ""
2706 "Be careful to properly quote the expression to prevent it from being altered "
2707 "by the shell."
2708 msgstr ""
2709
2710 #. type: textblock
2711 #: ../edit/virt-edit.pod:130
2712 msgid "Note that this option is only available when Perl 5 is installed."
2713 msgstr ""
2714
2715 #. type: =item
2716 #: ../edit/virt-edit.pod:132
2717 msgid "B<--format> raw|qcow2|..."
2718 msgstr ""
2719
2720 #. type: verbatim
2721 #: ../edit/virt-edit.pod:143
2722 #, no-wrap
2723 msgid ""
2724 " virt-edit --format=raw -a disk.img file\n"
2725 "\n"
2726 msgstr ""
2727
2728 #. type: verbatim
2729 #: ../edit/virt-edit.pod:147
2730 #, no-wrap
2731 msgid ""
2732 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
2733 "\n"
2734 msgstr ""
2735
2736 #. type: textblock
2737 #: ../edit/virt-edit.pod:181
2738 msgid "Previous versions of virt-edit allowed you to write either:"
2739 msgstr ""
2740
2741 #. type: verbatim
2742 #: ../edit/virt-edit.pod:187
2743 #, no-wrap
2744 msgid ""
2745 " virt-edit guestname file\n"
2746 "\n"
2747 msgstr ""
2748
2749 #. type: =head1
2750 #: ../edit/virt-edit.pod:195
2751 msgid "NON-INTERACTIVE EDITING"
2752 msgstr ""
2753
2754 #. type: textblock
2755 #: ../edit/virt-edit.pod:197
2756 msgid ""
2757 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
2758 "administrator can interactively edit the file."
2759 msgstr ""
2760
2761 #. type: textblock
2762 #: ../edit/virt-edit.pod:200
2763 msgid ""
2764 "There are two ways also to use C<virt-edit> from scripts in order to make "
2765 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
2766 "like this, it's less error-prone to write scripts directly using the "
2767 "libguestfs API and Augeas for configuration file editing.)"
2768 msgstr ""
2769
2770 #. type: textblock
2771 #: ../edit/virt-edit.pod:206
2772 msgid ""
2773 "The first method is to temporarily set C<$EDITOR> to any script or program "
2774 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
2775 "update C<tmpfile> in place however it likes."
2776 msgstr ""
2777
2778 #. type: textblock
2779 #: ../edit/virt-edit.pod:210
2780 msgid ""
2781 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
2782 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
2783 "instances of C<foo> with C<bar> in a file:"
2784 msgstr ""
2785
2786 #. type: verbatim
2787 #: ../edit/virt-edit.pod:214
2788 #, no-wrap
2789 msgid ""
2790 " virt-edit -d domname filename -e 's/foo/bar/'\n"
2791 "\n"
2792 msgstr ""
2793
2794 #. type: textblock
2795 #: ../edit/virt-edit.pod:216
2796 msgid ""
2797 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
2798 "For example to delete root's password you could do:"
2799 msgstr ""
2800
2801 #. type: verbatim
2802 #: ../edit/virt-edit.pod:219
2803 #, no-wrap
2804 msgid ""
2805 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
2806 "\n"
2807 msgstr ""
2808
2809 #. type: textblock
2810 #: ../edit/virt-edit.pod:221
2811 msgid ""
2812 "What really happens is that the snippet is evaluated as a Perl expression "
2813 "for each line of the file.  The line, including the final C<\\n>, is passed "
2814 "in C<$_> and the expression should update C<$_> or leave it unchanged."
2815 msgstr ""
2816
2817 #. type: textblock
2818 #: ../edit/virt-edit.pod:226
2819 msgid ""
2820 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
2821 "C<apache> user account from the password file you can do:"
2822 msgstr ""
2823
2824 #. type: verbatim
2825 #: ../edit/virt-edit.pod:229
2826 #, no-wrap
2827 msgid ""
2828 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
2829 "\n"
2830 msgstr ""
2831
2832 #. type: textblock
2833 #: ../edit/virt-edit.pod:231
2834 msgid ""
2835 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
2836 "the end of the file is rather difficult this way since there is no concept "
2837 "of \"last line of the file\" - your expression just doesn't get called "
2838 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
2839 "want to do this."
2840 msgstr ""
2841
2842 #. type: textblock
2843 #: ../edit/virt-edit.pod:237
2844 msgid ""
2845 "The variable C<$lineno> contains the current line number.  As is "
2846 "traditional, the first line in the file is number C<1>."
2847 msgstr ""
2848
2849 #. type: textblock
2850 #: ../edit/virt-edit.pod:240
2851 msgid ""
2852 "The return value from the expression is ignored, but the expression may call "
2853 "C<die> in order to abort the whole program, leaving the original file "
2854 "untouched."
2855 msgstr ""
2856
2857 #. type: textblock
2858 #: ../edit/virt-edit.pod:244
2859 msgid ""
2860 "Remember when matching the end of a line that C<$_> may contain the final C<"
2861 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
2862 "newline then neither of these.  Thus to match or substitute some text at the "
2863 "end of a line, use this regular expression:"
2864 msgstr ""
2865
2866 #. type: verbatim
2867 #: ../edit/virt-edit.pod:249
2868 #, no-wrap
2869 msgid ""
2870 " /some text(\\r?\\n)?$/\n"
2871 "\n"
2872 msgstr ""
2873
2874 #. type: textblock
2875 #: ../edit/virt-edit.pod:251
2876 msgid ""
2877 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
2878 "$_> itself (since that would remove all newlines from the file):"
2879 msgstr ""
2880
2881 #. type: verbatim
2882 #: ../edit/virt-edit.pod:255
2883 #, no-wrap
2884 msgid ""
2885 " my $m = $_; chomp $m; $m =~ /some text$/\n"
2886 "\n"
2887 msgstr ""
2888
2889 #. type: =head1
2890 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
2891 msgid "WINDOWS PATHS"
2892 msgstr ""
2893
2894 #. type: textblock
2895 #: ../edit/virt-edit.pod:259
2896 msgid ""
2897 "C<virt-edit> has a limited ability to understand Windows drive letters and "
2898 "paths (eg. C<E:\\foo\\bar.txt>)."
2899 msgstr ""
2900
2901 #. type: textblock
2902 #: ../edit/virt-edit.pod:262
2903 msgid "If and only if the guest is running Windows then:"
2904 msgstr ""
2905
2906 #. type: textblock
2907 #: ../edit/virt-edit.pod:268
2908 msgid ""
2909 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
2910 "to the correct filesystem."
2911 msgstr ""
2912
2913 #. type: textblock
2914 #: ../edit/virt-edit.pod:273
2915 msgid ""
2916 "Any backslash (C<\\>) characters in the path are replaced with forward "
2917 "slashes so that libguestfs can process it."
2918 msgstr ""
2919
2920 #. type: textblock
2921 #: ../edit/virt-edit.pod:278
2922 msgid ""
2923 "The path is resolved case insensitively to locate the file that should be "
2924 "edited."
2925 msgstr ""
2926
2927 #. type: textblock
2928 #: ../edit/virt-edit.pod:283
2929 msgid "There are some known shortcomings:"
2930 msgstr ""
2931
2932 #. type: textblock
2933 #: ../edit/virt-edit.pod:289
2934 msgid "Some NTFS symbolic links may not be followed correctly."
2935 msgstr ""
2936
2937 #. type: textblock
2938 #: ../edit/virt-edit.pod:293
2939 msgid "NTFS junction points that cross filesystems are not followed."
2940 msgstr ""
2941
2942 #. type: textblock
2943 #: ../edit/virt-edit.pod:299
2944 msgid ""
2945 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
2946 "C<virt-edit> doesn't work."
2947 msgstr ""
2948
2949 #. type: textblock
2950 #: ../edit/virt-edit.pod:302
2951 msgid "Using C<virt-edit> is approximately equivalent to doing:"
2952 msgstr ""
2953
2954 #. type: verbatim
2955 #: ../edit/virt-edit.pod:304
2956 #, no-wrap
2957 msgid ""
2958 " guestfish --rw -i -d domname edit /file\n"
2959 "\n"
2960 msgstr ""
2961
2962 #. type: textblock
2963 #: ../edit/virt-edit.pod:306
2964 msgid ""
2965 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
2966 "path to the file."
2967 msgstr ""
2968
2969 #. type: textblock
2970 #: ../edit/virt-edit.pod:309
2971 msgid ""
2972 "The command above uses libguestfs's guest inspection feature and so does not "
2973 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
2974 "disk images that don't contain guests.  To edit a file on a disk image "
2975 "directly, use:"
2976 msgstr ""
2977
2978 #. type: verbatim
2979 #: ../edit/virt-edit.pod:314
2980 #, no-wrap
2981 msgid ""
2982 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
2983 "\n"
2984 msgstr ""
2985
2986 #. type: textblock
2987 #: ../edit/virt-edit.pod:316
2988 msgid ""
2989 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
2990 "the disk image to edit, and C</file> is the full path to the file."
2991 msgstr ""
2992
2993 #. type: textblock
2994 #: ../edit/virt-edit.pod:320
2995 msgid ""
2996 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
2997 "C<write> or C<upload> instead:"
2998 msgstr ""
2999
3000 #. type: verbatim
3001 #: ../edit/virt-edit.pod:323
3002 #, no-wrap
3003 msgid ""
3004 " guestfish --rw -i -d domname touch /newfile\n"
3005 "\n"
3006 msgstr ""
3007
3008 #. type: verbatim
3009 #: ../edit/virt-edit.pod:325
3010 #, no-wrap
3011 msgid ""
3012 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3013 "\n"
3014 msgstr ""
3015
3016 #. type: verbatim
3017 #: ../edit/virt-edit.pod:327
3018 #, no-wrap
3019 msgid ""
3020 " guestfish --rw -i -d domname upload localfile /newfile\n"
3021 "\n"
3022 msgstr ""
3023
3024 #. type: =head1
3025 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1075
3026 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:2965
3027 #: ../test-tool/libguestfs-test-tool.pod:82
3028 msgid "ENVIRONMENT VARIABLES"
3029 msgstr ""
3030
3031 #. type: =item
3032 #: ../edit/virt-edit.pod:333
3033 msgid "C<EDITOR>"
3034 msgstr ""
3035
3036 #. type: textblock
3037 #: ../edit/virt-edit.pod:335
3038 msgid ""
3039 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3040 "\"emacs -nw\">"
3041 msgstr ""
3042
3043 #. type: textblock
3044 #: ../edit/virt-edit.pod:338
3045 msgid "If not set, C<vi> is used."
3046 msgstr ""
3047
3048 #. type: textblock
3049 #: ../edit/virt-edit.pod:351
3050 msgid ""
3051 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3052 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3053 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3054 msgstr ""
3055
3056 #. type: textblock
3057 #: ../examples/guestfs-examples.pod:5
3058 msgid "guestfs-examples - Examples of using libguestfs from C"
3059 msgstr ""
3060
3061 #. type: verbatim
3062 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3063 #, no-wrap
3064 msgid ""
3065 " #include <guestfs.h>\n"
3066 " \n"
3067 msgstr ""
3068
3069 #. type: verbatim
3070 #: ../examples/guestfs-examples.pod:11
3071 #, no-wrap
3072 msgid ""
3073 " guestfs_h *g = guestfs_create ();\n"
3074 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3075 " guestfs_launch (g);\n"
3076 "\n"
3077 msgstr ""
3078
3079 #. type: verbatim
3080 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3081 #, no-wrap
3082 msgid ""
3083 " cc prog.c -o prog -lguestfs\n"
3084 "or:\n"
3085 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3086 "\n"
3087 msgstr ""
3088
3089 #. type: textblock
3090 #: ../examples/guestfs-examples.pod:21
3091 msgid ""
3092 "This manual page contains examples of calling libguestfs from the C "
3093 "programming language.  If you are not familiar with using libguestfs, you "
3094 "also need to read L<guestfs(3)>."
3095 msgstr ""
3096
3097 #. type: =head1
3098 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3099 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3100 #: ../python/examples/guestfs-python.pod:34
3101 #: ../ruby/examples/guestfs-ruby.pod:28
3102 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3103 msgstr ""
3104
3105 #. type: textblock
3106 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3107 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3108 #: ../python/examples/guestfs-python.pod:36
3109 #: ../ruby/examples/guestfs-ruby.pod:30
3110 msgid "@EXAMPLE1@"
3111 msgstr ""
3112
3113 #. type: =head1
3114 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3115 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3116 #: ../python/examples/guestfs-python.pod:38
3117 #: ../ruby/examples/guestfs-ruby.pod:32
3118 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3119 msgstr ""
3120
3121 #. type: textblock
3122 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3123 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3124 #: ../python/examples/guestfs-python.pod:40
3125 #: ../ruby/examples/guestfs-ruby.pod:34
3126 msgid "@EXAMPLE2@"
3127 msgstr ""
3128
3129 #. type: textblock
3130 #: ../examples/guestfs-examples.pod:35
3131 msgid ""
3132 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
3133 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
3134 "libguestfs.org/>."
3135 msgstr ""
3136
3137 #. type: =head1
3138 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396
3139 #: ../fish/guestfish.pod:1249 ../fish/virt-copy-in.pod:60
3140 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3141 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:314
3142 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:57
3143 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3144 #: ../python/examples/guestfs-python.pod:53
3145 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3098
3146 #: ../test-tool/libguestfs-test-tool.pod:93
3147 msgid "AUTHORS"
3148 msgstr ""
3149
3150 #. type: textblock
3151 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398
3152 #: ../fish/guestfish.pod:1251 ../fish/virt-copy-in.pod:62
3153 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3154 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:316
3155 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3156 #: ../perl/examples/guestfs-perl.pod:53
3157 #: ../python/examples/guestfs-python.pod:55
3158 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3100
3159 #: ../test-tool/libguestfs-test-tool.pod:95
3160 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3161 msgstr ""
3162
3163 #. type: textblock
3164 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96
3165 #: ../python/examples/guestfs-python.pod:59
3166 #: ../ruby/examples/guestfs-ruby.pod:53
3167 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3168 msgstr ""
3169
3170 #. type: textblock
3171 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404
3172 #: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98
3173 #: ../perl/examples/guestfs-perl.pod:59
3174 #: ../python/examples/guestfs-python.pod:61
3175 #: ../ruby/examples/guestfs-ruby.pod:55
3176 msgid ""
3177 "The examples in this manual page may be freely copied, modified and "
3178 "distributed without any restrictions."
3179 msgstr ""
3180
3181 #. type: textblock
3182 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407
3183 #: ../java/examples/guestfs-java.pod:68
3184 #: ../ocaml/examples/guestfs-ocaml.pod:101
3185 #: ../perl/examples/guestfs-perl.pod:62
3186 #: ../python/examples/guestfs-python.pod:64
3187 #: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3107
3188 msgid ""
3189 "This library is free software; you can redistribute it and/or modify it "
3190 "under the terms of the GNU Lesser General Public License as published by the "
3191 "Free Software Foundation; either version 2 of the License, or (at your "
3192 "option) any later version."
3193 msgstr ""
3194
3195 #. type: textblock
3196 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412
3197 #: ../java/examples/guestfs-java.pod:73
3198 #: ../ocaml/examples/guestfs-ocaml.pod:106
3199 #: ../perl/examples/guestfs-perl.pod:67
3200 #: ../python/examples/guestfs-python.pod:69
3201 #: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3112
3202 msgid ""
3203 "This library is distributed in the hope that it will be useful, but WITHOUT "
3204 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3205 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3206 "for more details."
3207 msgstr ""
3208
3209 #. type: textblock
3210 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417
3211 #: ../java/examples/guestfs-java.pod:78
3212 #: ../ocaml/examples/guestfs-ocaml.pod:111
3213 #: ../perl/examples/guestfs-perl.pod:72
3214 #: ../python/examples/guestfs-python.pod:74
3215 #: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3117
3216 msgid ""
3217 "You should have received a copy of the GNU Lesser General Public License "
3218 "along with this library; if not, write to the Free Software Foundation, "
3219 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3220 msgstr ""
3221
3222 #. type: =end
3223 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3224 msgid "comment"
3225 msgstr ""
3226
3227 #. type: textblock
3228 #: ../examples/guestfs-recipes.pod:5
3229 msgid ""
3230 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3231 "here.  The only way which works for both sorts of output is to just write "
3232 "the URL directly.  Do NOT use L<...> for URLs."
3233 msgstr ""
3234
3235 #. type: textblock
3236 #: ../examples/guestfs-recipes.pod:9
3237 msgid ""
3238 "We break with tradition here and don't use ALL CAPS for the section "
3239 "headings, as this makes them much easier to read."
3240 msgstr ""
3241
3242 #. type: textblock
3243 #: ../examples/guestfs-recipes.pod:16
3244 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3245 msgstr ""
3246
3247 #. type: textblock
3248 #: ../examples/guestfs-recipes.pod:20
3249 msgid ""
3250 "This page contains recipes for and links to things you can do using "
3251 "libguestfs, L<guestfish(1)> and the virt tools."
3252 msgstr ""
3253
3254 #. type: =head1
3255 #: ../examples/guestfs-recipes.pod:23
3256 msgid "Audit a virtual machine for setuid files"
3257 msgstr ""
3258
3259 #. type: textblock
3260 #: ../examples/guestfs-recipes.pod:25
3261 msgid ""
3262 "The link below contains a small program which can be used to audit a Linux "
3263 "virtual machine to see what setuid and setgid files it contains."
3264 msgstr ""
3265
3266 #. type: textblock
3267 #: ../examples/guestfs-recipes.pod:28
3268 msgid ""
3269 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3270 "files/#content"
3271 msgstr ""
3272
3273 #. type: =head1
3274 #: ../examples/guestfs-recipes.pod:30
3275 msgid "Change the background image in a Windows XP VM"
3276 msgstr ""
3277
3278 #. type: textblock
3279 #: ../examples/guestfs-recipes.pod:32
3280 msgid ""
3281 "The links below explain how to use L<guestfish(1)> to change the background "
3282 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3283 "be substantially different for each version of Windows."
3284 msgstr ""
3285
3286 #. type: textblock
3287 #: ../examples/guestfs-recipes.pod:37
3288 msgid ""
3289 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3290 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3291 msgstr ""
3292
3293 #. type: =head1
3294 #: ../examples/guestfs-recipes.pod:40
3295 msgid "Cloning a virtual machine (Linux)"
3296 msgstr ""
3297
3298 #. type: textblock
3299 #: ../examples/guestfs-recipes.pod:42
3300 msgid ""
3301 "The guestfish technique described in the link below works well for most "
3302 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3303 "slightly."
3304 msgstr ""
3305
3306 #. type: textblock
3307 #: ../examples/guestfs-recipes.pod:46
3308 msgid ""
3309 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3310 "vm/#content"
3311 msgstr ""
3312
3313 #. type: textblock
3314 #: ../examples/guestfs-recipes.pod:48
3315 msgid ""
3316 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3317 "discussion."
3318 msgstr ""
3319
3320 #. type: textblock
3321 #: ../examples/guestfs-recipes.pod:51
3322 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3323 msgstr ""
3324
3325 #. type: =head1
3326 #: ../examples/guestfs-recipes.pod:53
3327 msgid "Cloning a virtual machine (Windows)"
3328 msgstr ""
3329
3330 #. type: textblock
3331 #: ../examples/guestfs-recipes.pod:55
3332 msgid ""
3333 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3334 "straightforward.  Currently there is code in the Aeolus Oz project which "
3335 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3336 "we may add sysprepping ability."
3337 msgstr ""
3338
3339 #. type: textblock
3340 #: ../examples/guestfs-recipes.pod:60
3341 msgid ""
3342 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3343 "list/2011-May/msg00019.html"
3344 msgstr ""
3345
3346 #. type: =head1
3347 #: ../examples/guestfs-recipes.pod:63
3348 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3349 msgstr ""
3350
3351 #. type: textblock
3352 #: ../examples/guestfs-recipes.pod:65
3353 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3354 msgstr ""
3355
3356 #. type: verbatim
3357 #: ../examples/guestfs-recipes.pod:67
3358 #, no-wrap
3359 msgid ""
3360 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3361 "\n"
3362 msgstr ""
3363
3364 #. type: textblock
3365 #: ../examples/guestfs-recipes.pod:69
3366 msgid "To export just a subdirectory, eg. C</files>, do:"
3367 msgstr ""
3368
3369 #. type: verbatim
3370 #: ../examples/guestfs-recipes.pod:71
3371 #, no-wrap
3372 msgid ""
3373 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3374 "\n"
3375 msgstr ""
3376
3377 #. type: =head1
3378 #: ../examples/guestfs-recipes.pod:73
3379 msgid "Create empty disk images"
3380 msgstr ""
3381
3382 #. type: textblock
3383 #: ../examples/guestfs-recipes.pod:75
3384 msgid ""
3385 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3386 "The useful guide below explains the options available."
3387 msgstr ""
3388
3389 #. type: textblock
3390 #: ../examples/guestfs-recipes.pod:78
3391 msgid ""
3392 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3393 "#content"
3394 msgstr ""
3395
3396 #. type: =head1
3397 #: ../examples/guestfs-recipes.pod:80
3398 msgid "Dump raw filesystem content from inside a disk image or VM"
3399 msgstr ""
3400
3401 #. type: textblock
3402 #: ../examples/guestfs-recipes.pod:82
3403 msgid ""
3404 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3405 "filesystem content from any filesystem in a disk image or a VM (even one "
3406 "which is encrypted or buried inside an LV):"
3407 msgstr ""
3408
3409 #. type: verbatim
3410 #: ../examples/guestfs-recipes.pod:86
3411 #, no-wrap
3412 msgid ""
3413 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3414 "\n"
3415 msgstr ""
3416
3417 #. type: verbatim
3418 #: ../examples/guestfs-recipes.pod:88
3419 #, no-wrap
3420 msgid ""
3421 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3422 "\n"
3423 msgstr ""
3424
3425 #. type: textblock
3426 #: ../examples/guestfs-recipes.pod:90
3427 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3428 msgstr ""
3429
3430 #. type: =head1
3431 #: ../examples/guestfs-recipes.pod:92
3432 msgid "Edit grub configuration in a VM"
3433 msgstr ""
3434
3435 #. type: textblock
3436 #: ../examples/guestfs-recipes.pod:94
3437 msgid "You can use this to:"
3438 msgstr ""
3439
3440 #. type: textblock
3441 #: ../examples/guestfs-recipes.pod:100
3442 msgid "Fix a virtual machine that does not boot."
3443 msgstr ""
3444
3445 #. type: textblock
3446 #: ../examples/guestfs-recipes.pod:104
3447 msgid "Change which kernel is used to boot the VM."
3448 msgstr ""
3449
3450 #. type: textblock
3451 #: ../examples/guestfs-recipes.pod:108
3452 msgid "Change kernel command line options."
3453 msgstr ""
3454
3455 #. type: textblock
3456 #: ../examples/guestfs-recipes.pod:112
3457 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3458 msgstr ""
3459
3460 #. type: verbatim
3461 #: ../examples/guestfs-recipes.pod:114
3462 #, no-wrap
3463 msgid ""
3464 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3465 "\n"
3466 msgstr ""
3467
3468 #. type: textblock
3469 #: ../examples/guestfs-recipes.pod:116
3470 msgid ""
3471 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3472 "this:"
3473 msgstr ""
3474
3475 #. type: verbatim
3476 #: ../examples/guestfs-recipes.pod:119
3477 #, no-wrap
3478 msgid ""
3479 " virt-rescue -d BrokenGuest\n"
3480 "\n"
3481 msgstr ""
3482
3483 #. type: =head1
3484 #: ../examples/guestfs-recipes.pod:121
3485 msgid "Export any directory from a VM"
3486 msgstr ""
3487
3488 #. type: textblock
3489 #: ../examples/guestfs-recipes.pod:123
3490 msgid ""
3491 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3492 msgstr ""
3493
3494 #. type: verbatim
3495 #: ../examples/guestfs-recipes.pod:126
3496 #, no-wrap
3497 msgid ""
3498 " virt-copy-out -d Guest /home .\n"
3499 "\n"
3500 msgstr ""
3501
3502 #. type: textblock
3503 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3504 #: ../fish/guestfish-actions.pod:1287 ../fish/guestfish-actions.pod:1929
3505 #: ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1917
3506 #: ../src/guestfs-actions.pod:2855 ../src/guestfs.pod:1639
3507 #: ../tools/virt-win-reg.pl:706
3508 msgid "Notes:"
3509 msgstr ""
3510
3511 #. type: textblock
3512 #: ../examples/guestfs-recipes.pod:134
3513 msgid ""
3514 "The final dot of the command is not a printing error.  It means we want to "
3515 "copy out to the current directory."
3516 msgstr ""
3517
3518 #. type: textblock
3519 #: ../examples/guestfs-recipes.pod:139
3520 msgid "This creates a directory called C<home> under the current directory."
3521 msgstr ""
3522
3523 #. type: textblock
3524 #: ../examples/guestfs-recipes.pod:143
3525 msgid ""
3526 "If the guest is a Windows guest then you can use drive letters and "
3527 "backslashes, but you must prefix the path with C<win:> and quote it to "
3528 "protect it from the shell, like this:"
3529 msgstr ""
3530
3531 #. type: verbatim
3532 #: ../examples/guestfs-recipes.pod:147
3533 #, no-wrap
3534 msgid ""
3535 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3536 "\n"
3537 msgstr ""
3538
3539 #. type: textblock
3540 #: ../examples/guestfs-recipes.pod:149
3541 msgid "To get the output as a compressed tarball, do:"
3542 msgstr ""
3543
3544 #. type: verbatim
3545 #: ../examples/guestfs-recipes.pod:151
3546 #, no-wrap
3547 msgid ""
3548 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3549 "\n"
3550 msgstr ""
3551
3552 #. type: textblock
3553 #: ../examples/guestfs-recipes.pod:153
3554 msgid ""
3555 "Although it sounds tempting, this is usually not a reliable way to get a "
3556 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
3557 "org/FAQ.html#backup"
3558 msgstr ""
3559
3560 #. type: =head1
3561 #: ../examples/guestfs-recipes.pod:157
3562 msgid "Find out which user is using the most space"
3563 msgstr ""
3564
3565 #. type: textblock
3566 #: ../examples/guestfs-recipes.pod:159
3567 msgid ""
3568 "This simple script examines a Linux guest to find out which user is using "
3569 "the most space in their home directory:"
3570 msgstr ""
3571
3572 #. type: verbatim
3573 #: ../examples/guestfs-recipes.pod:162
3574 #, no-wrap
3575 msgid ""
3576 " #!/bin/sh -\n"
3577 " \n"
3578 msgstr ""
3579
3580 #. type: verbatim
3581 #: ../examples/guestfs-recipes.pod:164
3582 #, no-wrap
3583 msgid ""
3584 " set -e\n"
3585 " \n"
3586 msgstr ""
3587
3588 #. type: verbatim
3589 #: ../examples/guestfs-recipes.pod:166
3590 #, no-wrap
3591 msgid ""
3592 " vm=\"$1\"\n"
3593 " dir=/home\n"
3594 " \n"
3595 msgstr ""
3596
3597 #. type: verbatim
3598 #: ../examples/guestfs-recipes.pod:169
3599 #, no-wrap
3600 msgid ""
3601 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3602 " \n"
3603 msgstr ""
3604
3605 #. type: verbatim
3606 #: ../examples/guestfs-recipes.pod:171
3607 #, no-wrap
3608 msgid ""
3609 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3610 "     echo -n \"$dir/$d\"\n"
3611 "     echo -ne '\\t'\n"
3612 "     guestfish --remote du \"$dir/$d\";\n"
3613 " done | sort -nr -k 2\n"
3614 " \n"
3615 msgstr ""
3616
3617 #. type: verbatim
3618 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3619 #, no-wrap
3620 msgid ""
3621 " guestfish --remote exit\n"
3622 "\n"
3623 msgstr ""
3624
3625 #. type: =head1
3626 #: ../examples/guestfs-recipes.pod:179
3627 msgid "Get DHCP address from a VM"
3628 msgstr ""
3629
3630 #. type: textblock
3631 #: ../examples/guestfs-recipes.pod:181
3632 msgid ""
3633 "The link below explains the many different possible techniques for getting "
3634 "the last assigned DHCP address of a virtual machine."
3635 msgstr ""
3636
3637 #. type: textblock
3638 #: ../examples/guestfs-recipes.pod:184
3639 msgid ""
3640 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
3641 "a-virtual-machine-disk-image/#content"
3642 msgstr ""
3643
3644 #. type: textblock
3645 #: ../examples/guestfs-recipes.pod:186
3646 msgid ""
3647 "In the libguestfs source examples directory you will find the latest version "
3648 "of the C<virt-dhcp-address.c> program."
3649 msgstr ""
3650
3651 #. type: =head1
3652 #: ../examples/guestfs-recipes.pod:189
3653 msgid "Get the operating system product name string"
3654 msgstr ""
3655
3656 #. type: textblock
3657 #: ../examples/guestfs-recipes.pod:191
3658 msgid "Save the following script into a file called C<product-name.sh>:"
3659 msgstr ""
3660
3661 #. type: verbatim
3662 #: ../examples/guestfs-recipes.pod:193
3663 #, no-wrap
3664 msgid ""
3665 " #!/bin/sh -\n"
3666 " set -e\n"
3667 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3668 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3669 " guestfish --remote inspect-get-product-name \"$root\"\n"
3670 " guestfish --remote exit\n"
3671 "\n"
3672 msgstr ""
3673
3674 #. type: textblock
3675 #: ../examples/guestfs-recipes.pod:200
3676 msgid "Make the script executable and run it on a named guest:"
3677 msgstr ""
3678
3679 #. type: verbatim
3680 #: ../examples/guestfs-recipes.pod:202
3681 #, no-wrap
3682 msgid ""
3683 " # product-name.sh RHEL60x64\n"
3684 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
3685 "\n"
3686 msgstr ""
3687
3688 #. type: textblock
3689 #: ../examples/guestfs-recipes.pod:205
3690 msgid ""
3691 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
3692 "C<xpath> command line tool or from your favourite programming language:"
3693 msgstr ""
3694
3695 #. type: verbatim
3696 #: ../examples/guestfs-recipes.pod:209
3697 #, no-wrap
3698 msgid ""
3699 " # virt-inspector RHEL60x64 > xml\n"
3700 " # xpath '//product_name' < xml\n"
3701 " Found 1 nodes:\n"
3702 " -- NODE --\n"
3703 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
3704 "\n"
3705 msgstr ""
3706
3707 #. type: =head1
3708 #: ../examples/guestfs-recipes.pod:215
3709 msgid "Get the default boot kernel for a Linux VM"
3710 msgstr ""
3711
3712 #. type: textblock
3713 #: ../examples/guestfs-recipes.pod:217
3714 msgid ""
3715 "The link below contains a program to print the default boot kernel for a "
3716 "Linux VM."
3717 msgstr ""
3718
3719 #. type: textblock
3720 #: ../examples/guestfs-recipes.pod:220
3721 msgid ""
3722 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
3723 "kernel-for-a-vm/#content"
3724 msgstr ""
3725
3726 #. type: textblock
3727 #: ../examples/guestfs-recipes.pod:222
3728 msgid ""
3729 "It uses Augeas, and the technique is generally applicable for many different "
3730 "tasks, such as:"
3731 msgstr ""
3732
3733 #. type: textblock
3734 #: ../examples/guestfs-recipes.pod:229
3735 msgid "listing the user accounts in the guest"
3736 msgstr ""
3737
3738 #. type: textblock
3739 #: ../examples/guestfs-recipes.pod:233
3740 msgid "what repositories is it configured to use"
3741 msgstr ""
3742
3743 #. type: textblock
3744 #: ../examples/guestfs-recipes.pod:237
3745 msgid "what NTP servers does it connect to"
3746 msgstr ""
3747
3748 #. type: textblock
3749 #: ../examples/guestfs-recipes.pod:241
3750 msgid "what were the boot messages last time it booted"
3751 msgstr ""
3752
3753 #. type: textblock
3754 #: ../examples/guestfs-recipes.pod:245
3755 msgid "listing who was logged in recently"
3756 msgstr ""
3757
3758 #. type: textblock
3759 #: ../examples/guestfs-recipes.pod:249
3760 msgid "http://augeas.net/"
3761 msgstr ""
3762
3763 #. type: =head1
3764 #: ../examples/guestfs-recipes.pod:251
3765 msgid "Install RPMs in a guest"
3766 msgstr ""
3767
3768 #. type: textblock
3769 #: ../examples/guestfs-recipes.pod:253
3770 msgid ""
3771 "The link below contains a method to install RPMs in a guest.  In fact the "
3772 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
3773 "installs them next time the guest is booted.  You could use this technique "
3774 "to install vital security updates in an offline guest."
3775 msgstr ""
3776
3777 #. type: textblock
3778 #: ../examples/guestfs-recipes.pod:259
3779 msgid ""
3780 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
3781 msgstr ""
3782
3783 #. type: =head1
3784 #: ../examples/guestfs-recipes.pod:261
3785 msgid "List applications installed in a VM"
3786 msgstr ""
3787
3788 #. type: textblock
3789 #: ../examples/guestfs-recipes.pod:263
3790 msgid "Save the following to a file C<list-apps.sh>:"
3791 msgstr ""
3792
3793 #. type: verbatim
3794 #: ../examples/guestfs-recipes.pod:265
3795 #, no-wrap
3796 msgid ""
3797 " #!/bin/sh -\n"
3798 " set -e\n"
3799 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3800 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3801 " guestfish --remote inspect-list-applications \"$root\"\n"
3802 " guestfish --remote exit\n"
3803 "\n"
3804 msgstr ""
3805
3806 #. type: textblock
3807 #: ../examples/guestfs-recipes.pod:272
3808 msgid ""
3809 "Make the file executable and then you can run it on any named virtual "
3810 "machine:"
3811 msgstr ""
3812
3813 #. type: verbatim
3814 #: ../examples/guestfs-recipes.pod:275
3815 #, no-wrap
3816 msgid ""
3817 " # list-apps.sh WinGuest\n"
3818 " [0] = {\n"
3819 "   app_name: Mozilla Firefox (3.6.12)\n"
3820 "   app_display_name: Mozilla Firefox (3.6.12)\n"
3821 "   app_epoch: 0\n"
3822 "   app_version: 3.6.12 (en-GB)\n"
3823 "   app_release:\n"
3824 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
3825 "   app_trans_path:\n"
3826 "   app_publisher: Mozilla\n"
3827 "   app_url: http://www.mozilla.com/en-GB/\n"
3828 "   app_source_package:\n"
3829 "   app_summary:\n"
3830 "   app_description: Mozilla Firefox\n"
3831 " }\n"
3832 " [1] = {\n"
3833 "   app_name: VLC media player\n"
3834 "   app_display_name: VLC media player 1.1.5\n"
3835 "   app_epoch: 0\n"
3836 "   app_version: 1.1.5\n"
3837 "   app_release:\n"
3838 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
3839 "   app_trans_path:\n"
3840 "   app_publisher: VideoLAN\n"
3841 "   app_url: http://www.videolan.org/\n"
3842 "   app_source_package:\n"
3843 "   app_summary:\n"
3844 "   app_description:\n"
3845 " }\n"
3846 "\n"
3847 msgstr ""
3848
3849 #. type: textblock
3850 #: ../examples/guestfs-recipes.pod:305
3851 msgid ""
3852 "If you want to run the script on disk images (instead of libvirt virtual "
3853 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
3854 ">."
3855 msgstr ""
3856
3857 #. type: =head1
3858 #: ../examples/guestfs-recipes.pod:309
3859 msgid "List files and directories in a VM"
3860 msgstr ""
3861
3862 #. type: textblock
3863 #: ../examples/guestfs-recipes.pod:311
3864 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
3865 msgstr ""
3866
3867 #. type: verbatim
3868 #: ../examples/guestfs-recipes.pod:313
3869 #, no-wrap
3870 msgid ""
3871 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
3872 "\n"
3873 msgstr ""
3874
3875 #. type: =head1
3876 #: ../examples/guestfs-recipes.pod:315
3877 msgid "List services in a Windows VM"
3878 msgstr ""
3879
3880 #. type: textblock
3881 #: ../examples/guestfs-recipes.pod:317
3882 msgid ""
3883 "The link below contains a script that can be used to list out the services "
3884 "from a Windows VM, and whether those services run at boot time or are loaded "
3885 "on demand."
3886 msgstr ""
3887
3888 #. type: textblock
3889 #: ../examples/guestfs-recipes.pod:321
3890 msgid ""
3891 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
3892 "#content"
3893 msgstr ""
3894
3895 #. type: =head1
3896 #: ../examples/guestfs-recipes.pod:323
3897 msgid "Make a disk image sparse"
3898 msgstr ""
3899
3900 #. type: textblock
3901 #: ../examples/guestfs-recipes.pod:325
3902 msgid ""
3903 "The link below contains some guides for making a disk image sparse (or "
3904 "reintroducing sparseness)."
3905 msgstr ""
3906
3907 #. type: textblock
3908 #: ../examples/guestfs-recipes.pod:328
3909 msgid ""
3910 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
3911 msgstr ""
3912
3913 #. type: =head1
3914 #: ../examples/guestfs-recipes.pod:330
3915 msgid "Monitor disk usage over time"
3916 msgstr ""
3917
3918 #. type: textblock
3919 #: ../examples/guestfs-recipes.pod:332
3920 msgid ""
3921 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
3922 "The link below contains a guide."
3923 msgstr ""
3924
3925 #. type: textblock
3926 #: ../examples/guestfs-recipes.pod:335
3927 msgid "http://virt-tools.org/learning/advanced-virt-df/"
3928 msgstr ""
3929
3930 #. type: =head1
3931 #: ../examples/guestfs-recipes.pod:337
3932 msgid "Reading the Windows Event Log from Windows Vista (or later)"
3933 msgstr ""
3934
3935 #. type: textblock
3936 #: ../examples/guestfs-recipes.pod:339
3937 msgid ""
3938 "L<guestfish(1)> plus the tools described in the link below can be used to "
3939 "read out the Windows Event Log from any virtual machine running Windows "
3940 "Vista or a later version."
3941 msgstr ""
3942
3943 #. type: textblock
3944 #: ../examples/guestfs-recipes.pod:343
3945 msgid ""
3946 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
3947 "guestfish/#content"
3948 msgstr ""
3949
3950 #. type: =head1
3951 #: ../examples/guestfs-recipes.pod:345
3952 msgid "Remove root password (Linux)"
3953 msgstr ""
3954
3955 #. type: textblock
3956 #: ../examples/guestfs-recipes.pod:347
3957 msgid ""
3958 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
3959 "files.  One use is to remove the root password from a Linux guest:"
3960 msgstr ""
3961
3962 #. type: verbatim
3963 #: ../examples/guestfs-recipes.pod:350
3964 #, no-wrap
3965 msgid ""
3966 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3967 "\n"
3968 msgstr ""
3969
3970 #. type: =head1
3971 #: ../examples/guestfs-recipes.pod:352
3972 msgid "Remove Administrator password (Windows)"
3973 msgstr ""
3974
3975 #. type: textblock
3976 #: ../examples/guestfs-recipes.pod:354
3977 msgid ""
3978 "The link below contains one technique for removing the Administrator "
3979 "password from a Windows VM, or to be more precise, it gives you a command "
3980 "prompt the next time you log in which you can use to bypass any security:"
3981 msgstr ""
3982
3983 #. type: textblock
3984 #: ../examples/guestfs-recipes.pod:359
3985 msgid ""
3986 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
3987 "administrator-password-with-guestfish/"
3988 msgstr ""
3989
3990 #. type: =head1
3991 #: ../examples/guestfs-recipes.pod:361
3992 msgid "Unpack a live CD"
3993 msgstr ""
3994
3995 #. type: textblock
3996 #: ../examples/guestfs-recipes.pod:363
3997 msgid ""
3998 "Linux live CDs often contain multiple layers of disk images wrapped like a "
3999 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4000 "layers, as outlined in the guide below."
4001 msgstr ""
4002
4003 #. type: textblock
4004 #: ../examples/guestfs-recipes.pod:367
4005 msgid ""
4006 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4007 "cd/#content"
4008 msgstr ""
4009
4010 #. type: =head1
4011 #: ../examples/guestfs-recipes.pod:369
4012 msgid "Uploading and downloading files"
4013 msgstr ""
4014
4015 #. type: textblock
4016 #: ../examples/guestfs-recipes.pod:371
4017 msgid ""
4018 "The link below contains general tips on uploading (copying in)  and "
4019 "downloading (copying out) files from VMs."
4020 msgstr ""
4021
4022 #. type: textblock
4023 #: ../examples/guestfs-recipes.pod:374
4024 msgid ""
4025 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4026 msgstr ""
4027
4028 #. type: =head1
4029 #: ../examples/guestfs-recipes.pod:376
4030 msgid "Use libguestfs tools on VMware ESX guests"
4031 msgstr ""
4032
4033 #. type: textblock
4034 #: ../examples/guestfs-recipes.pod:378
4035 msgid ""
4036 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4037 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../examples/guestfs-recipes.pod:382
4042 msgid ""
4043 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4044 "guests/#content"
4045 msgstr ""
4046
4047 #. type: textblock
4048 #: ../examples/guestfs-recipes.pod:386
4049 msgid ""
4050 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4051 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4052 "(3)>, L<http://libguestfs.org/>."
4053 msgstr ""
4054
4055 #. type: textblock
4056 #: ../examples/guestfs-recipes.pod:402
4057 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4058 msgstr ""
4059
4060 #. type: =head2
4061 #: ../fish/guestfish-actions.pod:1
4062 msgid "add-cdrom"
4063 msgstr ""
4064
4065 #. type: verbatim
4066 #: ../fish/guestfish-actions.pod:3
4067 #, no-wrap
4068 msgid ""
4069 " add-cdrom filename\n"
4070 "\n"
4071 msgstr ""
4072
4073 #. type: textblock
4074 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:7
4075 msgid "This function adds a virtual CD-ROM disk image to the guest."
4076 msgstr ""
4077
4078 #. type: textblock
4079 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:9
4080 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4081 msgstr ""
4082
4083 #. type: textblock
4084 #: ../fish/guestfish-actions.pod:15
4085 msgid ""
4086 "This call checks for the existence of C<filename>.  This stops you from "
4087 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4088 "and C<http:> URLs.  To specify those, use the general L</config> call "
4089 "instead."
4090 msgstr ""
4091
4092 #. type: textblock
4093 #: ../fish/guestfish-actions.pod:22
4094 msgid ""
4095 "If you just want to add an ISO file (often you use this as an efficient way "
4096 "to transfer large files into the guest), then you should probably use L</add-"
4097 "drive-ro> instead."
4098 msgstr ""
4099
4100 #. type: textblock
4101 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4102 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:32
4103 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:275
4104 msgid ""
4105 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4106 "instead."
4107 msgstr ""
4108
4109 #. type: textblock
4110 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4111 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:986
4112 #: ../fish/guestfish-actions.pod:1346 ../fish/guestfish-actions.pod:1360
4113 #: ../fish/guestfish-actions.pod:3085 ../fish/guestfish-actions.pod:3292
4114 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3454
4115 #: ../fish/guestfish-actions.pod:4355 ../fish/guestfish-actions.pod:4378
4116 #: ../fish/guestfish-actions.pod:4400 ../fish/guestfish-actions.pod:4438
4117 #: ../fish/guestfish-actions.pod:5087 ../fish/guestfish-actions.pod:5185
4118 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
4119 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1513
4120 #: ../src/guestfs-actions.pod:2008 ../src/guestfs-actions.pod:2029
4121 #: ../src/guestfs-actions.pod:4628 ../src/guestfs-actions.pod:4947
4122 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5255
4123 #: ../src/guestfs-actions.pod:6544 ../src/guestfs-actions.pod:6574
4124 #: ../src/guestfs-actions.pod:6607 ../src/guestfs-actions.pod:6666
4125 #: ../src/guestfs-actions.pod:7602 ../src/guestfs-actions.pod:7714
4126 #: ../src/guestfs-actions.pod:7884
4127 msgid ""
4128 "Deprecated functions will not be removed from the API, but the fact that "
4129 "they are deprecated indicates that there are problems with correct use of "
4130 "these functions."
4131 msgstr ""
4132
4133 #. type: =head2
4134 #: ../fish/guestfish-actions.pod:35
4135 msgid "add-domain"
4136 msgstr ""
4137
4138 #. type: =head2
4139 #: ../fish/guestfish-actions.pod:37
4140 msgid "domain"
4141 msgstr ""
4142
4143 #. type: verbatim
4144 #: ../fish/guestfish-actions.pod:39
4145 #, no-wrap
4146 msgid ""
4147 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4148 "\n"
4149 msgstr ""
4150
4151 #. type: textblock
4152 #: ../fish/guestfish-actions.pod:41
4153 msgid ""
4154 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4155 "It works by connecting to libvirt, requesting the domain and domain XML from "
4156 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4157 msgstr ""
4158
4159 #. type: textblock
4160 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4161 msgid ""
4162 "The number of disks added is returned.  This operation is atomic: if an "
4163 "error is returned, then no disks are added."
4164 msgstr ""
4165
4166 #. type: textblock
4167 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4168 msgid ""
4169 "This function does some minimal checks to make sure the libvirt domain is "
4170 "not running (unless C<readonly> is true).  In a future version we will try "
4171 "to acquire the libvirt lock on each disk."
4172 msgstr ""
4173
4174 #. type: textblock
4175 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4176 msgid ""
4177 "Disks must be accessible locally.  This often means that adding disks from a "
4178 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4179 "unless those disks are accessible via the same device path locally too."
4180 msgstr ""
4181
4182 #. type: textblock
4183 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4184 msgid ""
4185 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4186 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4187 "libvirt URI (or one set through an environment variable, see the libvirt "
4188 "documentation for full details)."
4189 msgstr ""
4190
4191 #. type: textblock
4192 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4193 msgid ""
4194 "The optional C<live> flag controls whether this call will try to connect to "
4195 "a running virtual machine C<guestfsd> process if it sees a suitable "
4196 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4197 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4198 "DAEMONS> for more information."
4199 msgstr ""
4200
4201 #. type: textblock
4202 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4203 msgid ""
4204 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4205 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4206 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4207 "as usual."
4208 msgstr ""
4209
4210 #. type: textblock
4211 #: ../fish/guestfish-actions.pod:76
4212 msgid ""
4213 "The other optional parameters are passed directly through to L</add-drive-"
4214 "opts>."
4215 msgstr ""
4216
4217 #. type: textblock
4218 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4219 #: ../fish/guestfish-actions.pod:568 ../fish/guestfish-actions.pod:1968
4220 #: ../fish/guestfish-actions.pod:3134 ../fish/guestfish-actions.pod:3307
4221 #: ../fish/guestfish-actions.pod:3442
4222 msgid ""
4223 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4224 msgstr ""
4225
4226 #. type: =head2
4227 #: ../fish/guestfish-actions.pod:81
4228 msgid "add-drive"
4229 msgstr ""
4230
4231 #. type: verbatim
4232 #: ../fish/guestfish-actions.pod:83
4233 #, no-wrap
4234 msgid ""
4235 " add-drive filename\n"
4236 "\n"
4237 msgstr ""
4238
4239 #. type: textblock
4240 #: ../fish/guestfish-actions.pod:85
4241 msgid ""
4242 "This function is the equivalent of calling L</add-drive-opts> with no "
4243 "optional parameters, so the disk is added writable, with the format being "
4244 "detected automatically."
4245 msgstr ""
4246
4247 #. type: textblock
4248 #: ../fish/guestfish-actions.pod:89
4249 msgid ""
4250 "Automatic detection of the format opens you up to a potential security hole "
4251 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4252 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4253 "you should think about replacing calls to this function with calls to L</add-"
4254 "drive-opts>, and specifying the format."
4255 msgstr ""
4256
4257 #. type: =head2
4258 #: ../fish/guestfish-actions.pod:96
4259 msgid "add-drive-opts"
4260 msgstr ""
4261
4262 #. type: =head2
4263 #: ../fish/guestfish-actions.pod:98
4264 msgid "add"
4265 msgstr ""
4266
4267 #. type: verbatim
4268 #: ../fish/guestfish-actions.pod:100
4269 #, no-wrap
4270 msgid ""
4271 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4272 "\n"
4273 msgstr ""
4274
4275 #. type: textblock
4276 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4277 msgid ""
4278 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4279 "The first time you call this function, the disk appears as C</dev/sda>, the "
4280 "second time as C</dev/sdb>, and so on."
4281 msgstr ""
4282
4283 #. type: textblock
4284 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4285 msgid ""
4286 "You don't necessarily need to be root when using libguestfs.  However you "
4287 "obviously do need sufficient permissions to access the filename for whatever "
4288 "operations you want to perform (ie. read access if you just want to read the "
4289 "image or write access if you want to modify the image)."
4290 msgstr ""
4291
4292 #. type: textblock
4293 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4294 msgid "This call checks that C<filename> exists."
4295 msgstr ""
4296
4297 #. type: textblock
4298 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3096
4299 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4655
4300 msgid "The optional arguments are:"
4301 msgstr ""
4302
4303 #. type: =item
4304 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4305 msgid "C<readonly>"
4306 msgstr ""
4307
4308 #. type: textblock
4309 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4310 msgid ""
4311 "If true then the image is treated as read-only.  Writes are still allowed, "
4312 "but they are stored in a temporary snapshot overlay which is discarded at "
4313 "the end.  The disk that you add is not modified."
4314 msgstr ""
4315
4316 #. type: =item
4317 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4318 msgid "C<format>"
4319 msgstr ""
4320
4321 #. type: textblock
4322 #: ../fish/guestfish-actions.pod:127
4323 msgid ""
4324 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4325 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4326 "include C<raw> and C<qcow2>."
4327 msgstr ""
4328
4329 #. type: textblock
4330 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4331 msgid ""
4332 "Automatic detection of the format opens you up to a potential security hole "
4333 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4334 "RHBZ#642934.  Specifying the format closes this security hole."
4335 msgstr ""
4336
4337 #. type: =item
4338 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4339 msgid "C<iface>"
4340 msgstr ""
4341
4342 #. type: textblock
4343 #: ../fish/guestfish-actions.pod:138
4344 msgid ""
4345 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4346 "add-drive-with-if> call (q.v.)"
4347 msgstr ""
4348
4349 #. type: =head2
4350 #: ../fish/guestfish-actions.pod:145
4351 msgid "add-drive-ro"
4352 msgstr ""
4353
4354 #. type: =head2
4355 #: ../fish/guestfish-actions.pod:147
4356 msgid "add-ro"
4357 msgstr ""
4358
4359 #. type: verbatim
4360 #: ../fish/guestfish-actions.pod:149
4361 #, no-wrap
4362 msgid ""
4363 " add-drive-ro filename\n"
4364 "\n"
4365 msgstr ""
4366
4367 #. type: textblock
4368 #: ../fish/guestfish-actions.pod:151
4369 msgid ""
4370 "This function is the equivalent of calling L</add-drive-opts> with the "
4371 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4372 "is added read-only, with the format being detected automatically."
4373 msgstr ""
4374
4375 #. type: =head2
4376 #: ../fish/guestfish-actions.pod:156
4377 msgid "add-drive-ro-with-if"
4378 msgstr ""
4379
4380 #. type: verbatim
4381 #: ../fish/guestfish-actions.pod:158
4382 #, no-wrap
4383 msgid ""
4384 " add-drive-ro-with-if filename iface\n"
4385 "\n"
4386 msgstr ""
4387
4388 #. type: textblock
4389 #: ../fish/guestfish-actions.pod:160
4390 msgid ""
4391 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4392 "interface emulation to use at run time."
4393 msgstr ""
4394
4395 #. type: =head2
4396 #: ../fish/guestfish-actions.pod:170
4397 msgid "add-drive-with-if"
4398 msgstr ""
4399
4400 #. type: verbatim
4401 #: ../fish/guestfish-actions.pod:172
4402 #, no-wrap
4403 msgid ""
4404 " add-drive-with-if filename iface\n"
4405 "\n"
4406 msgstr ""
4407
4408 #. type: textblock
4409 #: ../fish/guestfish-actions.pod:174
4410 msgid ""
4411 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4412 "interface emulation to use at run time."
4413 msgstr ""
4414
4415 #. type: =head2
4416 #: ../fish/guestfish-actions.pod:184
4417 msgid "aug-clear"
4418 msgstr ""
4419
4420 #. type: verbatim
4421 #: ../fish/guestfish-actions.pod:186
4422 #, no-wrap
4423 msgid ""
4424 " aug-clear augpath\n"
4425 "\n"
4426 msgstr ""
4427
4428 #. type: textblock
4429 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4430 msgid ""
4431 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4432 "L<augtool(1)> C<clear> command."
4433 msgstr ""
4434
4435 #. type: =head2
4436 #: ../fish/guestfish-actions.pod:191
4437 msgid "aug-close"
4438 msgstr ""
4439
4440 #. type: verbatim
4441 #: ../fish/guestfish-actions.pod:193
4442 #, no-wrap
4443 msgid ""
4444 " aug-close\n"
4445 "\n"
4446 msgstr ""
4447
4448 #. type: textblock
4449 #: ../fish/guestfish-actions.pod:195
4450 msgid ""
4451 "Close the current Augeas handle and free up any resources used by it.  After "
4452 "calling this, you have to call L</aug-init> again before you can use any "
4453 "other Augeas functions."
4454 msgstr ""
4455
4456 #. type: =head2
4457 #: ../fish/guestfish-actions.pod:200
4458 msgid "aug-defnode"
4459 msgstr ""
4460
4461 #. type: verbatim
4462 #: ../fish/guestfish-actions.pod:202
4463 #, no-wrap
4464 msgid ""
4465 " aug-defnode name expr val\n"
4466 "\n"
4467 msgstr ""
4468
4469 #. type: textblock
4470 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4471 msgid ""
4472 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4473 msgstr ""
4474
4475 #. type: textblock
4476 #: ../fish/guestfish-actions.pod:207
4477 msgid ""
4478 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4479 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4480 "containing that single node."
4481 msgstr ""
4482
4483 #. type: textblock
4484 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4485 msgid ""
4486 "On success this returns a pair containing the number of nodes in the "
4487 "nodeset, and a boolean flag if a node was created."
4488 msgstr ""
4489
4490 #. type: =head2
4491 #: ../fish/guestfish-actions.pod:215
4492 msgid "aug-defvar"
4493 msgstr ""
4494
4495 #. type: verbatim
4496 #: ../fish/guestfish-actions.pod:217
4497 #, no-wrap
4498 msgid ""
4499 " aug-defvar name expr\n"
4500 "\n"
4501 msgstr ""
4502
4503 #. type: textblock
4504 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4505 msgid ""
4506 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4507 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4508 msgstr ""
4509
4510 #. type: textblock
4511 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4512 msgid ""
4513 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4514 "evaluates to something which is not a nodeset."
4515 msgstr ""
4516
4517 #. type: =head2
4518 #: ../fish/guestfish-actions.pod:226
4519 msgid "aug-get"
4520 msgstr ""
4521
4522 #. type: verbatim
4523 #: ../fish/guestfish-actions.pod:228
4524 #, no-wrap
4525 msgid ""
4526 " aug-get augpath\n"
4527 "\n"
4528 msgstr ""
4529
4530 #. type: textblock
4531 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4532 msgid ""
4533 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4534 "node, the C<value> is returned."
4535 msgstr ""
4536
4537 #. type: =head2
4538 #: ../fish/guestfish-actions.pod:233
4539 msgid "aug-init"
4540 msgstr ""
4541
4542 #. type: verbatim
4543 #: ../fish/guestfish-actions.pod:235
4544 #, no-wrap
4545 msgid ""
4546 " aug-init root flags\n"
4547 "\n"
4548 msgstr ""
4549
4550 #. type: textblock
4551 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4552 msgid ""
4553 "Create a new Augeas handle for editing configuration files.  If there was "
4554 "any previous Augeas handle associated with this guestfs session, then it is "
4555 "closed."
4556 msgstr ""
4557
4558 #. type: textblock
4559 #: ../fish/guestfish-actions.pod:241
4560 msgid "You must call this before using any other L</aug-*> commands."
4561 msgstr ""
4562
4563 #. type: textblock
4564 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4565 msgid ""
4566 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4567 msgstr ""
4568
4569 #. type: textblock
4570 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4571 msgid ""
4572 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4573 "logical I<or> of the following integers:"
4574 msgstr ""
4575
4576 #. type: =item
4577 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4578 msgid "C<AUG_SAVE_BACKUP> = 1"
4579 msgstr ""
4580
4581 #. type: textblock
4582 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4583 msgid "Keep the original file with a C<.augsave> extension."
4584 msgstr ""
4585
4586 #. type: =item
4587 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4588 msgid "C<AUG_SAVE_NEWFILE> = 2"
4589 msgstr ""
4590
4591 #. type: textblock
4592 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4593 msgid ""
4594 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4595 "original.  Overrides C<AUG_SAVE_BACKUP>."
4596 msgstr ""
4597
4598 #. type: =item
4599 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4600 msgid "C<AUG_TYPE_CHECK> = 4"
4601 msgstr ""
4602
4603 #. type: textblock
4604 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4605 msgid "Typecheck lenses (can be expensive)."
4606 msgstr ""
4607
4608 #. type: =item
4609 #: ../fish/guestfish-actions.pod:266 ../src/guestfs-actions.pod:404
4610 msgid "C<AUG_NO_STDINC> = 8"
4611 msgstr ""
4612
4613 #. type: textblock
4614 #: ../fish/guestfish-actions.pod:268 ../src/guestfs-actions.pod:406
4615 msgid "Do not use standard load path for modules."
4616 msgstr ""
4617
4618 #. type: =item
4619 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:408
4620 msgid "C<AUG_SAVE_NOOP> = 16"
4621 msgstr ""
4622
4623 #. type: textblock
4624 #: ../fish/guestfish-actions.pod:272 ../src/guestfs-actions.pod:410
4625 msgid "Make save a no-op, just record what would have been changed."
4626 msgstr ""
4627
4628 #. type: =item
4629 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:412
4630 msgid "C<AUG_NO_LOAD> = 32"
4631 msgstr ""
4632
4633 #. type: textblock
4634 #: ../fish/guestfish-actions.pod:276
4635 msgid "Do not load the tree in L</aug-init>."
4636 msgstr ""
4637
4638 #. type: textblock
4639 #: ../fish/guestfish-actions.pod:280
4640 msgid "To close the handle, you can call L</aug-close>."
4641 msgstr ""
4642
4643 #. type: textblock
4644 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:420
4645 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4646 msgstr ""
4647
4648 #. type: =head2
4649 #: ../fish/guestfish-actions.pod:284
4650 msgid "aug-insert"
4651 msgstr ""
4652
4653 #. type: verbatim
4654 #: ../fish/guestfish-actions.pod:286
4655 #, no-wrap
4656 msgid ""
4657 " aug-insert augpath label true|false\n"
4658 "\n"
4659 msgstr ""
4660
4661 #. type: textblock
4662 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:434
4663 msgid ""
4664 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4665 "or after C<path> (depending on the boolean flag C<before>)."
4666 msgstr ""
4667
4668 #. type: textblock
4669 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:438
4670 msgid ""
4671 "C<path> must match exactly one existing node in the tree, and C<label> must "
4672 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4673 msgstr ""
4674
4675 #. type: =head2
4676 #: ../fish/guestfish-actions.pod:296
4677 msgid "aug-load"
4678 msgstr ""
4679
4680 #. type: verbatim
4681 #: ../fish/guestfish-actions.pod:298
4682 #, no-wrap
4683 msgid ""
4684 " aug-load\n"
4685 "\n"
4686 msgstr ""
4687
4688 #. type: textblock
4689 #: ../fish/guestfish-actions.pod:300 ../src/guestfs-actions.pod:451
4690 msgid "Load files into the tree."
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:453
4695 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4696 msgstr ""
4697
4698 #. type: =head2
4699 #: ../fish/guestfish-actions.pod:305
4700 msgid "aug-ls"
4701 msgstr ""
4702
4703 #. type: verbatim
4704 #: ../fish/guestfish-actions.pod:307
4705 #, no-wrap
4706 msgid ""
4707 " aug-ls augpath\n"
4708 "\n"
4709 msgstr ""
4710
4711 #. type: textblock
4712 #: ../fish/guestfish-actions.pod:309
4713 msgid ""
4714 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4715 "resulting nodes into alphabetical order."
4716 msgstr ""
4717
4718 #. type: =head2
4719 #: ../fish/guestfish-actions.pod:312
4720 msgid "aug-match"
4721 msgstr ""
4722
4723 #. type: verbatim
4724 #: ../fish/guestfish-actions.pod:314
4725 #, no-wrap
4726 msgid ""
4727 " aug-match augpath\n"
4728 "\n"
4729 msgstr ""
4730
4731 #. type: textblock
4732 #: ../fish/guestfish-actions.pod:316 ../src/guestfs-actions.pod:481
4733 msgid ""
4734 "Returns a list of paths which match the path expression C<path>.  The "
4735 "returned paths are sufficiently qualified so that they match exactly one "
4736 "node in the current tree."
4737 msgstr ""
4738
4739 #. type: =head2
4740 #: ../fish/guestfish-actions.pod:320
4741 msgid "aug-mv"
4742 msgstr ""
4743
4744 #. type: verbatim
4745 #: ../fish/guestfish-actions.pod:322
4746 #, no-wrap
4747 msgid ""
4748 " aug-mv src dest\n"
4749 "\n"
4750 msgstr ""
4751
4752 #. type: textblock
4753 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:498
4754 msgid ""
4755 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4756 "C<dest> is overwritten if it exists."
4757 msgstr ""
4758
4759 #. type: =head2
4760 #: ../fish/guestfish-actions.pod:327
4761 msgid "aug-rm"
4762 msgstr ""
4763
4764 #. type: verbatim
4765 #: ../fish/guestfish-actions.pod:329
4766 #, no-wrap
4767 msgid ""
4768 " aug-rm augpath\n"
4769 "\n"
4770 msgstr ""
4771
4772 #. type: textblock
4773 #: ../fish/guestfish-actions.pod:331 ../src/guestfs-actions.pod:511
4774 msgid "Remove C<path> and all of its children."
4775 msgstr ""
4776
4777 #. type: textblock
4778 #: ../fish/guestfish-actions.pod:333 ../src/guestfs-actions.pod:513
4779 msgid "On success this returns the number of entries which were removed."
4780 msgstr ""
4781
4782 #. type: =head2
4783 #: ../fish/guestfish-actions.pod:335
4784 msgid "aug-save"
4785 msgstr ""
4786
4787 #. type: verbatim
4788 #: ../fish/guestfish-actions.pod:337
4789 #, no-wrap
4790 msgid ""
4791 " aug-save\n"
4792 "\n"
4793 msgstr ""
4794
4795 #. type: textblock
4796 #: ../fish/guestfish-actions.pod:339 ../src/guestfs-actions.pod:524
4797 msgid "This writes all pending changes to disk."
4798 msgstr ""
4799
4800 #. type: textblock
4801 #: ../fish/guestfish-actions.pod:341
4802 msgid ""
4803 "The flags which were passed to L</aug-init> affect exactly how files are "
4804 "saved."
4805 msgstr ""
4806
4807 #. type: =head2
4808 #: ../fish/guestfish-actions.pod:344
4809 msgid "aug-set"
4810 msgstr ""
4811
4812 #. type: verbatim
4813 #: ../fish/guestfish-actions.pod:346
4814 #, no-wrap
4815 msgid ""
4816 " aug-set augpath val\n"
4817 "\n"
4818 msgstr ""
4819
4820 #. type: textblock
4821 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:540
4822 msgid "Set the value associated with C<path> to C<val>."
4823 msgstr ""
4824
4825 #. type: textblock
4826 #: ../fish/guestfish-actions.pod:350
4827 msgid ""
4828 "In the Augeas API, it is possible to clear a node by setting the value to "
4829 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4830 "this call.  Instead you must use the L</aug-clear> call."
4831 msgstr ""
4832
4833 #. type: =head2
4834 #: ../fish/guestfish-actions.pod:355
4835 msgid "available"
4836 msgstr ""
4837
4838 #. type: verbatim
4839 #: ../fish/guestfish-actions.pod:357
4840 #, no-wrap
4841 msgid ""
4842 " available 'groups ...'\n"
4843 "\n"
4844 msgstr ""
4845
4846 #. type: textblock
4847 #: ../fish/guestfish-actions.pod:359 ../src/guestfs-actions.pod:557
4848 msgid ""
4849 "This command is used to check the availability of some groups of "
4850 "functionality in the appliance, which not all builds of the libguestfs "
4851 "appliance will be able to provide."
4852 msgstr ""
4853
4854 #. type: textblock
4855 #: ../fish/guestfish-actions.pod:363
4856 msgid ""
4857 "The libguestfs groups, and the functions that those groups correspond to, "
4858 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4859 "runtime by calling L</available-all-groups>."
4860 msgstr ""
4861
4862 #. type: textblock
4863 #: ../fish/guestfish-actions.pod:368 ../src/guestfs-actions.pod:566
4864 msgid ""
4865 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4866 "\"]> would check for the availability of the Linux inotify functions and "
4867 "Augeas (configuration file editing) functions."
4868 msgstr ""
4869
4870 #. type: textblock
4871 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
4872 msgid "The command returns no error if I<all> requested groups are available."
4873 msgstr ""
4874
4875 #. type: textblock
4876 #: ../fish/guestfish-actions.pod:375 ../src/guestfs-actions.pod:573
4877 msgid ""
4878 "It fails with an error if one or more of the requested groups is unavailable "
4879 "in the appliance."
4880 msgstr ""
4881
4882 #. type: textblock
4883 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
4884 msgid ""
4885 "If an unknown group name is included in the list of groups then an error is "
4886 "always returned."
4887 msgstr ""
4888
4889 #. type: textblock
4890 #: ../fish/guestfish-actions.pod:381 ../src/guestfs-actions.pod:579
4891 msgid "I<Notes:>"
4892 msgstr ""
4893
4894 #. type: textblock
4895 #: ../fish/guestfish-actions.pod:387
4896 msgid "You must call L</launch> before calling this function."
4897 msgstr ""
4898
4899 #. type: textblock
4900 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:587
4901 msgid ""
4902 "The reason is because we don't know what groups are supported by the "
4903 "appliance/daemon until it is running and can be queried."
4904 msgstr ""
4905
4906 #. type: textblock
4907 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:593
4908 msgid ""
4909 "If a group of functions is available, this does not necessarily mean that "
4910 "they will work.  You still have to check for errors when calling individual "
4911 "API functions even if they are available."
4912 msgstr ""
4913
4914 #. type: textblock
4915 #: ../fish/guestfish-actions.pod:402 ../src/guestfs-actions.pod:600
4916 msgid ""
4917 "It is usually the job of distro packagers to build complete functionality "
4918 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4919 "with all requirements satisfied, will support everything."
4920 msgstr ""
4921
4922 #. type: textblock
4923 #: ../fish/guestfish-actions.pod:409
4924 msgid ""
4925 "This call was added in version C<1.0.80>.  In previous versions of "
4926 "libguestfs all you could do would be to speculatively execute a command to "
4927 "find out if the daemon implemented it.  See also L</version>."
4928 msgstr ""
4929
4930 #. type: =head2
4931 #: ../fish/guestfish-actions.pod:416
4932 msgid "available-all-groups"
4933 msgstr ""
4934
4935 #. type: verbatim
4936 #: ../fish/guestfish-actions.pod:418
4937 #, no-wrap
4938 msgid ""
4939 " available-all-groups\n"
4940 "\n"
4941 msgstr ""
4942
4943 #. type: textblock
4944 #: ../fish/guestfish-actions.pod:420
4945 msgid ""
4946 "This command returns a list of all optional groups that this daemon knows "
4947 "about.  Note this returns both supported and unsupported groups.  To find "
4948 "out which ones the daemon can actually support you have to call L</"
4949 "available> on each member of the returned list."
4950 msgstr ""
4951
4952 #. type: textblock
4953 #: ../fish/guestfish-actions.pod:426
4954 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
4955 msgstr ""
4956
4957 #. type: =head2
4958 #: ../fish/guestfish-actions.pod:428
4959 msgid "base64-in"
4960 msgstr ""
4961
4962 #. type: verbatim
4963 #: ../fish/guestfish-actions.pod:430
4964 #, no-wrap
4965 msgid ""
4966 " base64-in (base64file|-) filename\n"
4967 "\n"
4968 msgstr ""
4969
4970 #. type: textblock
4971 #: ../fish/guestfish-actions.pod:432 ../src/guestfs-actions.pod:644
4972 msgid ""
4973 "This command uploads base64-encoded data from C<base64file> to C<filename>."
4974 msgstr ""
4975
4976 #. type: textblock
4977 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
4978 #: ../fish/guestfish-actions.pod:693 ../fish/guestfish-actions.pod:862
4979 #: ../fish/guestfish-actions.pod:881 ../fish/guestfish-actions.pod:1255
4980 #: ../fish/guestfish-actions.pod:4658 ../fish/guestfish-actions.pod:4670
4981 #: ../fish/guestfish-actions.pod:4681 ../fish/guestfish-actions.pod:4692
4982 #: ../fish/guestfish-actions.pod:4744 ../fish/guestfish-actions.pod:4753
4983 #: ../fish/guestfish-actions.pod:4807 ../fish/guestfish-actions.pod:4830
4984 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
4985 msgstr ""
4986
4987 #. type: =head2
4988 #: ../fish/guestfish-actions.pod:437
4989 msgid "base64-out"
4990 msgstr ""
4991
4992 #. type: verbatim
4993 #: ../fish/guestfish-actions.pod:439
4994 #, no-wrap
4995 msgid ""
4996 " base64-out filename (base64file|-)\n"
4997 "\n"
4998 msgstr ""
4999
5000 #. type: textblock
5001 #: ../fish/guestfish-actions.pod:441 ../src/guestfs-actions.pod:658
5002 msgid ""
5003 "This command downloads the contents of C<filename>, writing it out to local "
5004 "file C<base64file> encoded as base64."
5005 msgstr ""
5006
5007 #. type: =head2
5008 #: ../fish/guestfish-actions.pod:446
5009 msgid "blockdev-flushbufs"
5010 msgstr ""
5011
5012 #. type: verbatim
5013 #: ../fish/guestfish-actions.pod:448
5014 #, no-wrap
5015 msgid ""
5016 " blockdev-flushbufs device\n"
5017 "\n"
5018 msgstr ""
5019
5020 #. type: textblock
5021 #: ../fish/guestfish-actions.pod:450 ../src/guestfs-actions.pod:671
5022 msgid ""
5023 "This tells the kernel to flush internal buffers associated with C<device>."
5024 msgstr ""
5025
5026 #. type: textblock
5027 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
5028 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
5029 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
5030 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
5031 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
5032 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
5033 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
5034 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
5035 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
5036 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
5037 msgid "This uses the L<blockdev(8)> command."
5038 msgstr ""
5039
5040 #. type: =head2
5041 #: ../fish/guestfish-actions.pod:455
5042 msgid "blockdev-getbsz"
5043 msgstr ""
5044
5045 #. type: verbatim
5046 #: ../fish/guestfish-actions.pod:457
5047 #, no-wrap
5048 msgid ""
5049 " blockdev-getbsz device\n"
5050 "\n"
5051 msgstr ""
5052
5053 #. type: textblock
5054 #: ../fish/guestfish-actions.pod:459 ../src/guestfs-actions.pod:686
5055 msgid "This returns the block size of a device."
5056 msgstr ""
5057
5058 #. type: textblock
5059 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
5060 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
5061 msgid ""
5062 "(Note this is different from both I<size in blocks> and I<filesystem block "
5063 "size>)."
5064 msgstr ""
5065
5066 #. type: =head2
5067 #: ../fish/guestfish-actions.pod:466
5068 msgid "blockdev-getro"
5069 msgstr ""
5070
5071 #. type: verbatim
5072 #: ../fish/guestfish-actions.pod:468
5073 #, no-wrap
5074 msgid ""
5075 " blockdev-getro device\n"
5076 "\n"
5077 msgstr ""
5078
5079 #. type: textblock
5080 #: ../fish/guestfish-actions.pod:470 ../src/guestfs-actions.pod:703
5081 msgid ""
5082 "Returns a boolean indicating if the block device is read-only (true if read-"
5083 "only, false if not)."
5084 msgstr ""
5085
5086 #. type: =head2
5087 #: ../fish/guestfish-actions.pod:475
5088 msgid "blockdev-getsize64"
5089 msgstr ""
5090
5091 #. type: verbatim
5092 #: ../fish/guestfish-actions.pod:477
5093 #, no-wrap
5094 msgid ""
5095 " blockdev-getsize64 device\n"
5096 "\n"
5097 msgstr ""
5098
5099 #. type: textblock
5100 #: ../fish/guestfish-actions.pod:479 ../src/guestfs-actions.pod:718
5101 msgid "This returns the size of the device in bytes."
5102 msgstr ""
5103
5104 #. type: textblock
5105 #: ../fish/guestfish-actions.pod:481
5106 msgid "See also L</blockdev-getsz>."
5107 msgstr ""
5108
5109 #. type: =head2
5110 #: ../fish/guestfish-actions.pod:485
5111 msgid "blockdev-getss"
5112 msgstr ""
5113
5114 #. type: verbatim
5115 #: ../fish/guestfish-actions.pod:487
5116 #, no-wrap
5117 msgid ""
5118 " blockdev-getss device\n"
5119 "\n"
5120 msgstr ""
5121
5122 #. type: textblock
5123 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:734
5124 msgid ""
5125 "This returns the size of sectors on a block device.  Usually 512, but can be "
5126 "larger for modern devices."
5127 msgstr ""
5128
5129 #. type: textblock
5130 #: ../fish/guestfish-actions.pod:492
5131 msgid ""
5132 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5133 msgstr ""
5134
5135 #. type: =head2
5136 #: ../fish/guestfish-actions.pod:497
5137 msgid "blockdev-getsz"
5138 msgstr ""
5139
5140 #. type: verbatim
5141 #: ../fish/guestfish-actions.pod:499
5142 #, no-wrap
5143 msgid ""
5144 " blockdev-getsz device\n"
5145 "\n"
5146 msgstr ""
5147
5148 #. type: textblock
5149 #: ../fish/guestfish-actions.pod:501 ../src/guestfs-actions.pod:752
5150 msgid ""
5151 "This returns the size of the device in units of 512-byte sectors (even if "
5152 "the sectorsize isn't 512 bytes ... weird)."
5153 msgstr ""
5154
5155 #. type: textblock
5156 #: ../fish/guestfish-actions.pod:504
5157 msgid ""
5158 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5159 "blockdev-getsize64> for the more useful I<size in bytes>."
5160 msgstr ""
5161
5162 #. type: =head2
5163 #: ../fish/guestfish-actions.pod:510
5164 msgid "blockdev-rereadpt"
5165 msgstr ""
5166
5167 #. type: verbatim
5168 #: ../fish/guestfish-actions.pod:512
5169 #, no-wrap
5170 msgid ""
5171 " blockdev-rereadpt device\n"
5172 "\n"
5173 msgstr ""
5174
5175 #. type: textblock
5176 #: ../fish/guestfish-actions.pod:514 ../src/guestfs-actions.pod:771
5177 msgid "Reread the partition table on C<device>."
5178 msgstr ""
5179
5180 #. type: =head2
5181 #: ../fish/guestfish-actions.pod:518
5182 msgid "blockdev-setbsz"
5183 msgstr ""
5184
5185 #. type: verbatim
5186 #: ../fish/guestfish-actions.pod:520
5187 #, no-wrap
5188 msgid ""
5189 " blockdev-setbsz device blocksize\n"
5190 "\n"
5191 msgstr ""
5192
5193 #. type: textblock
5194 #: ../fish/guestfish-actions.pod:522 ../src/guestfs-actions.pod:786
5195 msgid "This sets the block size of a device."
5196 msgstr ""
5197
5198 #. type: =head2
5199 #: ../fish/guestfish-actions.pod:529
5200 msgid "blockdev-setro"
5201 msgstr ""
5202
5203 #. type: verbatim
5204 #: ../fish/guestfish-actions.pod:531
5205 #, no-wrap
5206 msgid ""
5207 " blockdev-setro device\n"
5208 "\n"
5209 msgstr ""
5210
5211 #. type: textblock
5212 #: ../fish/guestfish-actions.pod:533 ../src/guestfs-actions.pod:803
5213 msgid "Sets the block device named C<device> to read-only."
5214 msgstr ""
5215
5216 #. type: =head2
5217 #: ../fish/guestfish-actions.pod:537
5218 msgid "blockdev-setrw"
5219 msgstr ""
5220
5221 #. type: verbatim
5222 #: ../fish/guestfish-actions.pod:539
5223 #, no-wrap
5224 msgid ""
5225 " blockdev-setrw device\n"
5226 "\n"
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../fish/guestfish-actions.pod:541 ../src/guestfs-actions.pod:817
5231 msgid "Sets the block device named C<device> to read-write."
5232 msgstr ""
5233
5234 #. type: =head2
5235 #: ../fish/guestfish-actions.pod:545
5236 msgid "btrfs-filesystem-resize"
5237 msgstr ""
5238
5239 #. type: verbatim
5240 #: ../fish/guestfish-actions.pod:547
5241 #, no-wrap
5242 msgid ""
5243 " btrfs-filesystem-resize mountpoint [size:..]\n"
5244 "\n"
5245 msgstr ""
5246
5247 #. type: textblock
5248 #: ../fish/guestfish-actions.pod:549 ../src/guestfs-actions.pod:839
5249 msgid "This command resizes a btrfs filesystem."
5250 msgstr ""
5251
5252 #. type: textblock
5253 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:841
5254 msgid ""
5255 "Note that unlike other resize calls, the filesystem has to be mounted and "
5256 "the parameter is the mountpoint not the device (this is a requirement of "
5257 "btrfs itself)."
5258 msgstr ""
5259
5260 #. type: textblock
5261 #: ../fish/guestfish-actions.pod:555 ../fish/guestfish-actions.pod:3417
5262 #: ../src/guestfs-actions.pod:845 ../src/guestfs-actions.pod:5189
5263 msgid "The optional parameters are:"
5264 msgstr ""
5265
5266 #. type: =item
5267 #: ../fish/guestfish-actions.pod:559 ../fish/guestfish-actions.pod:3421
5268 #: ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:5193
5269 msgid "C<size>"
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:851
5274 msgid ""
5275 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5276 "resized to the maximum size."
5277 msgstr ""
5278
5279 #. type: textblock
5280 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5281 msgid "See also L<btrfs(8)>."
5282 msgstr ""
5283
5284 #. type: =head2
5285 #: ../fish/guestfish-actions.pod:570
5286 msgid "case-sensitive-path"
5287 msgstr ""
5288
5289 #. type: verbatim
5290 #: ../fish/guestfish-actions.pod:572
5291 #, no-wrap
5292 msgid ""
5293 " case-sensitive-path path\n"
5294 "\n"
5295 msgstr ""
5296
5297 #. type: textblock
5298 #: ../fish/guestfish-actions.pod:574 ../src/guestfs-actions.pod:890
5299 msgid ""
5300 "This can be used to resolve case insensitive paths on a filesystem which is "
5301 "case sensitive.  The use case is to resolve paths which you have read from "
5302 "Windows configuration files or the Windows Registry, to the true path."
5303 msgstr ""
5304
5305 #. type: textblock
5306 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5307 msgid ""
5308 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5309 "(and probably others), which is that although the underlying filesystem is "
5310 "case-insensitive, the driver exports the filesystem to Linux as case-"
5311 "sensitive."
5312 msgstr ""
5313
5314 #. type: textblock
5315 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5316 msgid ""
5317 "One consequence of this is that special directories such as C<c:\\windows> "
5318 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5319 "precise details of how they were created.  In Windows itself this would not "
5320 "be a problem."
5321 msgstr ""
5322
5323 #. type: textblock
5324 #: ../fish/guestfish-actions.pod:590 ../src/guestfs-actions.pod:906
5325 msgid ""
5326 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5327 "#posixfilenames1>"
5328 msgstr ""
5329
5330 #. type: textblock
5331 #: ../fish/guestfish-actions.pod:593 ../src/guestfs-actions.pod:909
5332 msgid ""
5333 "This function resolves the true case of each element in the path and returns "
5334 "the case-sensitive path."
5335 msgstr ""
5336
5337 #. type: textblock
5338 #: ../fish/guestfish-actions.pod:596
5339 msgid ""
5340 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5341 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5342 "the directories were originally created under Windows)."
5343 msgstr ""
5344
5345 #. type: textblock
5346 #: ../fish/guestfish-actions.pod:601 ../src/guestfs-actions.pod:917
5347 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5348 msgstr ""
5349
5350 #. type: textblock
5351 #: ../fish/guestfish-actions.pod:604
5352 msgid "See also L</realpath>."
5353 msgstr ""
5354
5355 #. type: =head2
5356 #: ../fish/guestfish-actions.pod:606
5357 msgid "cat"
5358 msgstr ""
5359
5360 #. type: verbatim
5361 #: ../fish/guestfish-actions.pod:608
5362 #, no-wrap
5363 msgid ""
5364 " cat path\n"
5365 "\n"
5366 msgstr ""
5367
5368 #. type: textblock
5369 #: ../fish/guestfish-actions.pod:610 ../fish/guestfish-actions.pod:3837
5370 #: ../src/guestfs-actions.pod:933 ../src/guestfs-actions.pod:5832
5371 msgid "Return the contents of the file named C<path>."
5372 msgstr ""
5373
5374 #. type: textblock
5375 #: ../fish/guestfish-actions.pod:612
5376 msgid ""
5377 "Note that this function cannot correctly handle binary files (specifically, "
5378 "files containing C<\\0> character which is treated as end of string).  For "
5379 "those you need to use the L</read-file> or L</download> functions which have "
5380 "a more complex interface."
5381 msgstr ""
5382
5383 #. type: textblock
5384 #: ../fish/guestfish-actions.pod:617 ../fish/guestfish-actions.pod:752
5385 #: ../fish/guestfish-actions.pod:764 ../fish/guestfish-actions.pod:940
5386 #: ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:1017
5387 #: ../fish/guestfish-actions.pod:1027 ../fish/guestfish-actions.pod:1219
5388 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:1536
5389 #: ../fish/guestfish-actions.pod:1564 ../fish/guestfish-actions.pod:1579
5390 #: ../fish/guestfish-actions.pod:1589 ../fish/guestfish-actions.pod:1608
5391 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
5392 #: ../fish/guestfish-actions.pod:3798 ../fish/guestfish-actions.pod:3815
5393 #: ../fish/guestfish-actions.pod:3830 ../fish/guestfish-actions.pod:4499
5394 #: ../fish/guestfish-actions.pod:4545 ../fish/guestfish-actions.pod:4630
5395 #: ../fish/guestfish-actions.pod:4645 ../fish/guestfish-actions.pod:5051
5396 #: ../fish/guestfish-actions.pod:5063 ../fish/guestfish-actions.pod:5081
5397 #: ../fish/guestfish-actions.pod:5098 ../fish/guestfish-actions.pod:5108
5398 #: ../fish/guestfish-actions.pod:5157 ../fish/guestfish-actions.pod:5167
5399 #: ../fish/guestfish-actions.pod:5196 ../fish/guestfish-actions.pod:5206
5400 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1122
5401 #: ../src/guestfs-actions.pod:1142 ../src/guestfs-actions.pod:1438
5402 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1560
5403 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1825
5404 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:2315
5405 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:2382
5406 #: ../src/guestfs-actions.pod:2399 ../src/guestfs-actions.pod:2428
5407 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5640
5408 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5797
5409 #: ../src/guestfs-actions.pod:5821 ../src/guestfs-actions.pod:6772
5410 #: ../src/guestfs-actions.pod:6827 ../src/guestfs-actions.pod:6973
5411 #: ../src/guestfs-actions.pod:6997 ../src/guestfs-actions.pod:7662
5412 #: ../src/guestfs-actions.pod:7682 ../src/guestfs-actions.pod:7708
5413 #: ../src/guestfs-actions.pod:7734 ../src/guestfs-actions.pod:7753
5414 #: ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7858
5415 #: ../src/guestfs-actions.pod:7904 ../src/guestfs-actions.pod:7923
5416 msgid ""
5417 "Because of the message protocol, there is a transfer limit of somewhere "
5418 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5419 msgstr ""
5420
5421 #. type: =head2
5422 #: ../fish/guestfish-actions.pod:620
5423 msgid "checksum"
5424 msgstr ""
5425
5426 #. type: verbatim
5427 #: ../fish/guestfish-actions.pod:622
5428 #, no-wrap
5429 msgid ""
5430 " checksum csumtype path\n"
5431 "\n"
5432 msgstr ""
5433
5434 #. type: textblock
5435 #: ../fish/guestfish-actions.pod:624 ../src/guestfs-actions.pod:955
5436 msgid ""
5437 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5438 msgstr ""
5439
5440 #. type: textblock
5441 #: ../fish/guestfish-actions.pod:627 ../src/guestfs-actions.pod:958
5442 msgid ""
5443 "The type of checksum to compute is given by the C<csumtype> parameter which "
5444 "must have one of the following values:"
5445 msgstr ""
5446
5447 #. type: =item
5448 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5449 msgid "C<crc>"
5450 msgstr ""
5451
5452 #. type: textblock
5453 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:965
5454 msgid ""
5455 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5456 "C<cksum> command."
5457 msgstr ""
5458
5459 #. type: =item
5460 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5461 msgid "C<md5>"
5462 msgstr ""
5463
5464 #. type: textblock
5465 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5466 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5467 msgstr ""
5468
5469 #. type: =item
5470 #: ../fish/guestfish-actions.pod:641 ../src/guestfs-actions.pod:972
5471 msgid "C<sha1>"
5472 msgstr ""
5473
5474 #. type: textblock
5475 #: ../fish/guestfish-actions.pod:643 ../src/guestfs-actions.pod:974
5476 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5477 msgstr ""
5478
5479 #. type: =item
5480 #: ../fish/guestfish-actions.pod:645 ../src/guestfs-actions.pod:976
5481 msgid "C<sha224>"
5482 msgstr ""
5483
5484 #. type: textblock
5485 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:978
5486 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5487 msgstr ""
5488
5489 #. type: =item
5490 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:980
5491 msgid "C<sha256>"
5492 msgstr ""
5493
5494 #. type: textblock
5495 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:982
5496 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5497 msgstr ""
5498
5499 #. type: =item
5500 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:984
5501 msgid "C<sha384>"
5502 msgstr ""
5503
5504 #. type: textblock
5505 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:986
5506 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5507 msgstr ""
5508
5509 #. type: =item
5510 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:988
5511 msgid "C<sha512>"
5512 msgstr ""
5513
5514 #. type: textblock
5515 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:990
5516 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5517 msgstr ""
5518
5519 #. type: textblock
5520 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:994
5521 msgid "The checksum is returned as a printable string."
5522 msgstr ""
5523
5524 #. type: textblock
5525 #: ../fish/guestfish-actions.pod:665
5526 msgid "To get the checksum for a device, use L</checksum-device>."
5527 msgstr ""
5528
5529 #. type: textblock
5530 #: ../fish/guestfish-actions.pod:667
5531 msgid "To get the checksums for many files, use L</checksums-out>."
5532 msgstr ""
5533
5534 #. type: =head2
5535 #: ../fish/guestfish-actions.pod:669
5536 msgid "checksum-device"
5537 msgstr ""
5538
5539 #. type: verbatim
5540 #: ../fish/guestfish-actions.pod:671
5541 #, no-wrap
5542 msgid ""
5543 " checksum-device csumtype device\n"
5544 "\n"
5545 msgstr ""
5546
5547 #. type: textblock
5548 #: ../fish/guestfish-actions.pod:673
5549 msgid ""
5550 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5551 "device named C<device>.  For the types of checksums supported see the L</"
5552 "checksum> command."
5553 msgstr ""
5554
5555 #. type: =head2
5556 #: ../fish/guestfish-actions.pod:677
5557 msgid "checksums-out"
5558 msgstr ""
5559
5560 #. type: verbatim
5561 #: ../fish/guestfish-actions.pod:679
5562 #, no-wrap
5563 msgid ""
5564 " checksums-out csumtype directory (sumsfile|-)\n"
5565 "\n"
5566 msgstr ""
5567
5568 #. type: textblock
5569 #: ../fish/guestfish-actions.pod:681 ../src/guestfs-actions.pod:1029
5570 msgid ""
5571 "This command computes the checksums of all regular files in C<directory> and "
5572 "then emits a list of those checksums to the local output file C<sumsfile>."
5573 msgstr ""
5574
5575 #. type: textblock
5576 #: ../fish/guestfish-actions.pod:685 ../src/guestfs-actions.pod:1033
5577 msgid ""
5578 "This can be used for verifying the integrity of a virtual machine.  However "
5579 "to be properly secure you should pay attention to the output of the checksum "
5580 "command (it uses the ones from GNU coreutils).  In particular when the "
5581 "filename is not printable, coreutils uses a special backslash syntax.  For "
5582 "more information, see the GNU coreutils info file."
5583 msgstr ""
5584
5585 #. type: =head2
5586 #: ../fish/guestfish-actions.pod:695
5587 msgid "chmod"
5588 msgstr ""
5589
5590 #. type: verbatim
5591 #: ../fish/guestfish-actions.pod:697
5592 #, no-wrap
5593 msgid ""
5594 " chmod mode path\n"
5595 "\n"
5596 msgstr ""
5597
5598 #. type: textblock
5599 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1052
5600 msgid ""
5601 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5602 "supported."
5603 msgstr ""
5604
5605 #. type: textblock
5606 #: ../fish/guestfish-actions.pod:702 ../src/guestfs-actions.pod:1055
5607 msgid ""
5608 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5609 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5610 "C<700>."
5611 msgstr ""
5612
5613 #. type: textblock
5614 #: ../fish/guestfish-actions.pod:706 ../fish/guestfish-actions.pod:3060
5615 #: ../fish/guestfish-actions.pod:3199 ../fish/guestfish-actions.pod:3209
5616 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:1059
5617 #: ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4795
5618 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:4833
5619 msgid "The mode actually set is affected by the umask."
5620 msgstr ""
5621
5622 #. type: =head2
5623 #: ../fish/guestfish-actions.pod:708
5624 msgid "chown"
5625 msgstr ""
5626
5627 #. type: verbatim
5628 #: ../fish/guestfish-actions.pod:710
5629 #, no-wrap
5630 msgid ""
5631 " chown owner group path\n"
5632 "\n"
5633 msgstr ""
5634
5635 #. type: textblock
5636 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1073
5637 msgid "Change the file owner to C<owner> and group to C<group>."
5638 msgstr ""
5639
5640 #. type: textblock
5641 #: ../fish/guestfish-actions.pod:714 ../fish/guestfish-actions.pod:2495
5642 #: ../src/guestfs-actions.pod:1075 ../src/guestfs-actions.pod:3657
5643 msgid ""
5644 "Only numeric uid and gid are supported.  If you want to use names, you will "
5645 "need to locate and parse the password file yourself (Augeas support makes "
5646 "this relatively easy)."
5647 msgstr ""
5648
5649 #. type: =head2
5650 #: ../fish/guestfish-actions.pod:718
5651 msgid "command"
5652 msgstr ""
5653
5654 #. type: verbatim
5655 #: ../fish/guestfish-actions.pod:720
5656 #, no-wrap
5657 msgid ""
5658 " command 'arguments ...'\n"
5659 "\n"
5660 msgstr ""
5661
5662 #. type: textblock
5663 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1089
5664 msgid ""
5665 "This call runs a command from the guest filesystem.  The filesystem must be "
5666 "mounted, and must contain a compatible operating system (ie. something "
5667 "Linux, with the same or compatible processor architecture)."
5668 msgstr ""
5669
5670 #. type: textblock
5671 #: ../fish/guestfish-actions.pod:727
5672 msgid ""
5673 "The single parameter is an argv-style list of arguments.  The first element "
5674 "is the name of the program to run.  Subsequent elements are parameters.  The "
5675 "list must be non-empty (ie. must contain a program name).  Note that the "
5676 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5677 msgstr ""
5678
5679 #. type: textblock
5680 #: ../fish/guestfish-actions.pod:734 ../src/guestfs-actions.pod:1101
5681 msgid "The return value is anything printed to I<stdout> by the command."
5682 msgstr ""
5683
5684 #. type: textblock
5685 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1104
5686 msgid ""
5687 "If the command returns a non-zero exit status, then this function returns an "
5688 "error message.  The error message string is the content of I<stderr> from "
5689 "the command."
5690 msgstr ""
5691
5692 #. type: textblock
5693 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1108
5694 msgid ""
5695 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5696 "bin>.  If you require a program from another location, you should provide "
5697 "the full path in the first parameter."
5698 msgstr ""
5699
5700 #. type: textblock
5701 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5702 msgid ""
5703 "Shared libraries and data files required by the program must be available on "
5704 "filesystems which are mounted in the correct places.  It is the caller's "
5705 "responsibility to ensure all filesystems that are needed are mounted at the "
5706 "right locations."
5707 msgstr ""
5708
5709 #. type: =head2
5710 #: ../fish/guestfish-actions.pod:755
5711 msgid "command-lines"
5712 msgstr ""
5713
5714 #. type: verbatim
5715 #: ../fish/guestfish-actions.pod:757
5716 #, no-wrap
5717 msgid ""
5718 " command-lines 'arguments ...'\n"
5719 "\n"
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../fish/guestfish-actions.pod:759
5724 msgid ""
5725 "This is the same as L</command>, but splits the result into a list of lines."
5726 msgstr ""
5727
5728 #. type: textblock
5729 #: ../fish/guestfish-actions.pod:762
5730 msgid "See also: L</sh-lines>"
5731 msgstr ""
5732
5733 #. type: =head2
5734 #: ../fish/guestfish-actions.pod:767
5735 msgid "config"
5736 msgstr ""
5737
5738 #. type: verbatim
5739 #: ../fish/guestfish-actions.pod:769
5740 #, no-wrap
5741 msgid ""
5742 " config qemuparam qemuvalue\n"
5743 "\n"
5744 msgstr ""
5745
5746 #. type: textblock
5747 #: ../fish/guestfish-actions.pod:771 ../src/guestfs-actions.pod:1154
5748 msgid ""
5749 "This can be used to add arbitrary qemu command line parameters of the form "
5750 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5751 "setting some parameters which would interfere with parameters that we use."
5752 msgstr ""
5753
5754 #. type: textblock
5755 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
5756 msgid "The first character of C<param> string must be a C<-> (dash)."
5757 msgstr ""
5758
5759 #. type: textblock
5760 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1161
5761 msgid "C<value> can be NULL."
5762 msgstr ""
5763
5764 #. type: =head2
5765 #: ../fish/guestfish-actions.pod:780
5766 msgid "copy-size"
5767 msgstr ""
5768
5769 #. type: verbatim
5770 #: ../fish/guestfish-actions.pod:782
5771 #, no-wrap
5772 msgid ""
5773 " copy-size src dest size\n"
5774 "\n"
5775 msgstr ""
5776
5777 #. type: textblock
5778 #: ../fish/guestfish-actions.pod:784 ../src/guestfs-actions.pod:1175
5779 msgid ""
5780 "This command copies exactly C<size> bytes from one source device or file "
5781 "C<src> to another destination device or file C<dest>."
5782 msgstr ""
5783
5784 #. type: textblock
5785 #: ../fish/guestfish-actions.pod:787 ../src/guestfs-actions.pod:1178
5786 msgid ""
5787 "Note this will fail if the source is too short or if the destination is not "
5788 "large enough."
5789 msgstr ""
5790
5791 #. type: =head2
5792 #: ../fish/guestfish-actions.pod:790
5793 msgid "cp"
5794 msgstr ""
5795
5796 #. type: verbatim
5797 #: ../fish/guestfish-actions.pod:792
5798 #, no-wrap
5799 msgid ""
5800 " cp src dest\n"
5801 "\n"
5802 msgstr ""
5803
5804 #. type: textblock
5805 #: ../fish/guestfish-actions.pod:794 ../src/guestfs-actions.pod:1197
5806 msgid ""
5807 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5808 "destination filename or destination directory."
5809 msgstr ""
5810
5811 #. type: =head2
5812 #: ../fish/guestfish-actions.pod:797
5813 msgid "cp-a"
5814 msgstr ""
5815
5816 #. type: verbatim
5817 #: ../fish/guestfish-actions.pod:799
5818 #, no-wrap
5819 msgid ""
5820 " cp-a src dest\n"
5821 "\n"
5822 msgstr ""
5823
5824 #. type: textblock
5825 #: ../fish/guestfish-actions.pod:801 ../src/guestfs-actions.pod:1211
5826 msgid ""
5827 "This copies a file or directory from C<src> to C<dest> recursively using the "
5828 "C<cp -a> command."
5829 msgstr ""
5830
5831 #. type: =head2
5832 #: ../fish/guestfish-actions.pod:804
5833 msgid "dd"
5834 msgstr ""
5835
5836 #. type: verbatim
5837 #: ../fish/guestfish-actions.pod:806
5838 #, no-wrap
5839 msgid ""
5840 " dd src dest\n"
5841 "\n"
5842 msgstr ""
5843
5844 #. type: textblock
5845 #: ../fish/guestfish-actions.pod:808 ../src/guestfs-actions.pod:1225
5846 msgid ""
5847 "This command copies from one source device or file C<src> to another "
5848 "destination device or file C<dest>.  Normally you would use this to copy to "
5849 "or from a device or partition, for example to duplicate a filesystem."
5850 msgstr ""
5851
5852 #. type: textblock
5853 #: ../fish/guestfish-actions.pod:813
5854 msgid ""
5855 "If the destination is a device, it must be as large or larger than the "
5856 "source file or device, otherwise the copy will fail.  This command cannot do "
5857 "partial copies (see L</copy-size>)."
5858 msgstr ""
5859
5860 #. type: =head2
5861 #: ../fish/guestfish-actions.pod:817
5862 msgid "df"
5863 msgstr ""
5864
5865 #. type: verbatim
5866 #: ../fish/guestfish-actions.pod:819
5867 #, no-wrap
5868 msgid ""
5869 " df\n"
5870 "\n"
5871 msgstr ""
5872
5873 #. type: textblock
5874 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1243
5875 msgid "This command runs the C<df> command to report disk space used."
5876 msgstr ""
5877
5878 #. type: textblock
5879 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:834
5880 msgid ""
5881 "This command is mostly useful for interactive sessions.  It is I<not> "
5882 "intended that you try to parse the output string.  Use L</statvfs> from "
5883 "programs."
5884 msgstr ""
5885
5886 #. type: =head2
5887 #: ../fish/guestfish-actions.pod:827
5888 msgid "df-h"
5889 msgstr ""
5890
5891 #. type: verbatim
5892 #: ../fish/guestfish-actions.pod:829
5893 #, no-wrap
5894 msgid ""
5895 " df-h\n"
5896 "\n"
5897 msgstr ""
5898
5899 #. type: textblock
5900 #: ../fish/guestfish-actions.pod:831 ../src/guestfs-actions.pod:1259
5901 msgid ""
5902 "This command runs the C<df -h> command to report disk space used in human-"
5903 "readable format."
5904 msgstr ""
5905
5906 #. type: =head2
5907 #: ../fish/guestfish-actions.pod:838
5908 msgid "dmesg"
5909 msgstr ""
5910
5911 #. type: verbatim
5912 #: ../fish/guestfish-actions.pod:840
5913 #, no-wrap
5914 msgid ""
5915 " dmesg\n"
5916 "\n"
5917 msgstr ""
5918
5919 #. type: textblock
5920 #: ../fish/guestfish-actions.pod:842 ../src/guestfs-actions.pod:1276
5921 msgid ""
5922 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5923 "This is sometimes useful for extended debugging of problems."
5924 msgstr ""
5925
5926 #. type: textblock
5927 #: ../fish/guestfish-actions.pod:846
5928 msgid ""
5929 "Another way to get the same information is to enable verbose messages with "
5930 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
5931 "before running the program."
5932 msgstr ""
5933
5934 #. type: =head2
5935 #: ../fish/guestfish-actions.pod:851
5936 msgid "download"
5937 msgstr ""
5938
5939 #. type: verbatim
5940 #: ../fish/guestfish-actions.pod:853
5941 #, no-wrap
5942 msgid ""
5943 " download remotefilename (filename|-)\n"
5944 "\n"
5945 msgstr ""
5946
5947 #. type: textblock
5948 #: ../fish/guestfish-actions.pod:855 ../fish/guestfish-actions.pod:868
5949 #: ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1322
5950 msgid ""
5951 "Download file C<remotefilename> and save it as C<filename> on the local "
5952 "machine."
5953 msgstr ""
5954
5955 #. type: textblock
5956 #: ../fish/guestfish-actions.pod:858 ../fish/guestfish-actions.pod:4803
5957 #: ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:7232
5958 msgid "C<filename> can also be a named pipe."
5959 msgstr ""
5960
5961 #. type: textblock
5962 #: ../fish/guestfish-actions.pod:860
5963 msgid "See also L</upload>, L</cat>."
5964 msgstr ""
5965
5966 #. type: =head2
5967 #: ../fish/guestfish-actions.pod:864
5968 msgid "download-offset"
5969 msgstr ""
5970
5971 #. type: verbatim
5972 #: ../fish/guestfish-actions.pod:866
5973 #, no-wrap
5974 msgid ""
5975 " download-offset remotefilename (filename|-) offset size\n"
5976 "\n"
5977 msgstr ""
5978
5979 #. type: textblock
5980 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1325
5981 msgid ""
5982 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5983 "region must be within the file or device)."
5984 msgstr ""
5985
5986 #. type: textblock
5987 #: ../fish/guestfish-actions.pod:874
5988 msgid ""
5989 "Note that there is no limit on the amount of data that can be downloaded "
5990 "with this call, unlike with L</pread>, and this call always reads the full "
5991 "amount unless an error occurs."
5992 msgstr ""
5993
5994 #. type: textblock
5995 #: ../fish/guestfish-actions.pod:879
5996 msgid "See also L</download>, L</pread>."
5997 msgstr ""
5998
5999 #. type: =head2
6000 #: ../fish/guestfish-actions.pod:883
6001 msgid "drop-caches"
6002 msgstr ""
6003
6004 #. type: verbatim
6005 #: ../fish/guestfish-actions.pod:885
6006 #, no-wrap
6007 msgid ""
6008 " drop-caches whattodrop\n"
6009 "\n"
6010 msgstr ""
6011
6012 #. type: textblock
6013 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1350
6014 msgid ""
6015 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6016 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6017 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6018 msgstr ""
6019
6020 #. type: textblock
6021 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6022 msgid "Setting C<whattodrop> to 3 should drop everything."
6023 msgstr ""
6024
6025 #. type: textblock
6026 #: ../fish/guestfish-actions.pod:894 ../src/guestfs-actions.pod:1357
6027 msgid ""
6028 "This automatically calls L<sync(2)> before the operation, so that the "
6029 "maximum guest memory is freed."
6030 msgstr ""
6031
6032 #. type: =head2
6033 #: ../fish/guestfish-actions.pod:897
6034 msgid "du"
6035 msgstr ""
6036
6037 #. type: verbatim
6038 #: ../fish/guestfish-actions.pod:899
6039 #, no-wrap
6040 msgid ""
6041 " du path\n"
6042 "\n"
6043 msgstr ""
6044
6045 #. type: textblock
6046 #: ../fish/guestfish-actions.pod:901 ../src/guestfs-actions.pod:1370
6047 msgid ""
6048 "This command runs the C<du -s> command to estimate file space usage for "
6049 "C<path>."
6050 msgstr ""
6051
6052 #. type: textblock
6053 #: ../fish/guestfish-actions.pod:904 ../src/guestfs-actions.pod:1373
6054 msgid ""
6055 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6056 "estimate includes the contents of the directory and all subdirectories "
6057 "(recursively)."
6058 msgstr ""
6059
6060 #. type: textblock
6061 #: ../fish/guestfish-actions.pod:908 ../src/guestfs-actions.pod:1377
6062 msgid ""
6063 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6064 msgstr ""
6065
6066 #. type: =head2
6067 #: ../fish/guestfish-actions.pod:911
6068 msgid "e2fsck-f"
6069 msgstr ""
6070
6071 #. type: verbatim
6072 #: ../fish/guestfish-actions.pod:913
6073 #, no-wrap
6074 msgid ""
6075 " e2fsck-f device\n"
6076 "\n"
6077 msgstr ""
6078
6079 #. type: textblock
6080 #: ../fish/guestfish-actions.pod:915 ../src/guestfs-actions.pod:1395
6081 msgid ""
6082 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6083 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6084 "clean (I<-f>)."
6085 msgstr ""
6086
6087 #. type: textblock
6088 #: ../fish/guestfish-actions.pod:919
6089 msgid ""
6090 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6091 "should use L</fsck>."
6092 msgstr ""
6093
6094 #. type: =head2
6095 #: ../fish/guestfish-actions.pod:922
6096 msgid "echo-daemon"
6097 msgstr ""
6098
6099 #. type: verbatim
6100 #: ../fish/guestfish-actions.pod:924
6101 #, no-wrap
6102 msgid ""
6103 " echo-daemon 'words ...'\n"
6104 "\n"
6105 msgstr ""
6106
6107 #. type: textblock
6108 #: ../fish/guestfish-actions.pod:926 ../src/guestfs-actions.pod:1412
6109 msgid ""
6110 "This command concatenates the list of C<words> passed with single spaces "
6111 "between them and returns the resulting string."
6112 msgstr ""
6113
6114 #. type: textblock
6115 #: ../fish/guestfish-actions.pod:929 ../src/guestfs-actions.pod:1415
6116 msgid "You can use this command to test the connection through to the daemon."
6117 msgstr ""
6118
6119 #. type: textblock
6120 #: ../fish/guestfish-actions.pod:931
6121 msgid "See also L</ping-daemon>."
6122 msgstr ""
6123
6124 #. type: =head2
6125 #: ../fish/guestfish-actions.pod:933
6126 msgid "egrep"
6127 msgstr ""
6128
6129 #. type: verbatim
6130 #: ../fish/guestfish-actions.pod:935
6131 #, no-wrap
6132 msgid ""
6133 " egrep regex path\n"
6134 "\n"
6135 msgstr ""
6136
6137 #. type: textblock
6138 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1431
6139 msgid ""
6140 "This calls the external C<egrep> program and returns the matching lines."
6141 msgstr ""
6142
6143 #. type: =head2
6144 #: ../fish/guestfish-actions.pod:943
6145 msgid "egrepi"
6146 msgstr ""
6147
6148 #. type: verbatim
6149 #: ../fish/guestfish-actions.pod:945
6150 #, no-wrap
6151 msgid ""
6152 " egrepi regex path\n"
6153 "\n"
6154 msgstr ""
6155
6156 #. type: textblock
6157 #: ../fish/guestfish-actions.pod:947 ../src/guestfs-actions.pod:1450
6158 msgid ""
6159 "This calls the external C<egrep -i> program and returns the matching lines."
6160 msgstr ""
6161
6162 #. type: =head2
6163 #: ../fish/guestfish-actions.pod:953
6164 msgid "equal"
6165 msgstr ""
6166
6167 #. type: verbatim
6168 #: ../fish/guestfish-actions.pod:955
6169 #, no-wrap
6170 msgid ""
6171 " equal file1 file2\n"
6172 "\n"
6173 msgstr ""
6174
6175 #. type: textblock
6176 #: ../fish/guestfish-actions.pod:957 ../src/guestfs-actions.pod:1469
6177 msgid ""
6178 "This compares the two files C<file1> and C<file2> and returns true if their "
6179 "content is exactly equal, or false otherwise."
6180 msgstr ""
6181
6182 #. type: textblock
6183 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1472
6184 msgid "The external L<cmp(1)> program is used for the comparison."
6185 msgstr ""
6186
6187 #. type: =head2
6188 #: ../fish/guestfish-actions.pod:962
6189 msgid "exists"
6190 msgstr ""
6191
6192 #. type: verbatim
6193 #: ../fish/guestfish-actions.pod:964
6194 #, no-wrap
6195 msgid ""
6196 " exists path\n"
6197 "\n"
6198 msgstr ""
6199
6200 #. type: textblock
6201 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1484
6202 msgid ""
6203 "This returns C<true> if and only if there is a file, directory (or anything) "
6204 "with the given C<path> name."
6205 msgstr ""
6206
6207 #. type: textblock
6208 #: ../fish/guestfish-actions.pod:969
6209 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6210 msgstr ""
6211
6212 #. type: =head2
6213 #: ../fish/guestfish-actions.pod:971
6214 msgid "fallocate"
6215 msgstr ""
6216
6217 #. type: verbatim
6218 #: ../fish/guestfish-actions.pod:973
6219 #, no-wrap
6220 msgid ""
6221 " fallocate path len\n"
6222 "\n"
6223 msgstr ""
6224
6225 #. type: textblock
6226 #: ../fish/guestfish-actions.pod:975 ../fish/guestfish-actions.pod:994
6227 #: ../src/guestfs-actions.pod:1500 ../src/guestfs-actions.pod:1526
6228 msgid ""
6229 "This command preallocates a file (containing zero bytes) named C<path> of "
6230 "size C<len> bytes.  If the file exists already, it is overwritten."
6231 msgstr ""
6232
6233 #. type: textblock
6234 #: ../fish/guestfish-actions.pod:979 ../src/guestfs-actions.pod:1504
6235 msgid ""
6236 "Do not confuse this with the guestfish-specific C<alloc> command which "
6237 "allocates a file in the host and attaches it as a device."
6238 msgstr ""
6239
6240 #. type: textblock
6241 #: ../fish/guestfish-actions.pod:983 ../src/guestfs-actions.pod:1510
6242 msgid ""
6243 "This function is deprecated.  In new code, use the C<fallocate64> call "
6244 "instead."
6245 msgstr ""
6246
6247 #. type: =head2
6248 #: ../fish/guestfish-actions.pod:990
6249 msgid "fallocate64"
6250 msgstr ""
6251
6252 #. type: verbatim
6253 #: ../fish/guestfish-actions.pod:992
6254 #, no-wrap
6255 msgid ""
6256 " fallocate64 path len\n"
6257 "\n"
6258 msgstr ""
6259
6260 #. type: textblock
6261 #: ../fish/guestfish-actions.pod:998
6262 msgid ""
6263 "Note that this call allocates disk blocks for the file.  To create a sparse "
6264 "file use L</truncate-size> instead."
6265 msgstr ""
6266
6267 #. type: textblock
6268 #: ../fish/guestfish-actions.pod:1001
6269 msgid ""
6270 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6271 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6272 "maximum size of files created through that call to 1GB."
6273 msgstr ""
6274
6275 #. type: textblock
6276 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1538
6277 msgid ""
6278 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6279 "commands which create a file in the host and attach it as a device."
6280 msgstr ""
6281
6282 #. type: =head2
6283 #: ../fish/guestfish-actions.pod:1010
6284 msgid "fgrep"
6285 msgstr ""
6286
6287 #. type: verbatim
6288 #: ../fish/guestfish-actions.pod:1012
6289 #, no-wrap
6290 msgid ""
6291 " fgrep pattern path\n"
6292 "\n"
6293 msgstr ""
6294
6295 #. type: textblock
6296 #: ../fish/guestfish-actions.pod:1014 ../src/guestfs-actions.pod:1553
6297 msgid ""
6298 "This calls the external C<fgrep> program and returns the matching lines."
6299 msgstr ""
6300
6301 #. type: =head2
6302 #: ../fish/guestfish-actions.pod:1020
6303 msgid "fgrepi"
6304 msgstr ""
6305
6306 #. type: verbatim
6307 #: ../fish/guestfish-actions.pod:1022
6308 #, no-wrap
6309 msgid ""
6310 " fgrepi pattern path\n"
6311 "\n"
6312 msgstr ""
6313
6314 #. type: textblock
6315 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1572
6316 msgid ""
6317 "This calls the external C<fgrep -i> program and returns the matching lines."
6318 msgstr ""
6319
6320 #. type: =head2
6321 #: ../fish/guestfish-actions.pod:1030
6322 msgid "file"
6323 msgstr ""
6324
6325 #. type: verbatim
6326 #: ../fish/guestfish-actions.pod:1032
6327 #, no-wrap
6328 msgid ""
6329 " file path\n"
6330 "\n"
6331 msgstr ""
6332
6333 #. type: textblock
6334 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1590
6335 msgid ""
6336 "This call uses the standard L<file(1)> command to determine the type or "
6337 "contents of the file."
6338 msgstr ""
6339
6340 #. type: textblock
6341 #: ../fish/guestfish-actions.pod:1037 ../src/guestfs-actions.pod:1593
6342 msgid ""
6343 "This call will also transparently look inside various types of compressed "
6344 "file."
6345 msgstr ""
6346
6347 #. type: textblock
6348 #: ../fish/guestfish-actions.pod:1040 ../src/guestfs-actions.pod:1596
6349 msgid ""
6350 "The exact command which runs is C<file -zb path>.  Note in particular that "
6351 "the filename is not prepended to the output (the I<-b> option)."
6352 msgstr ""
6353
6354 #. type: textblock
6355 #: ../fish/guestfish-actions.pod:1044 ../src/guestfs-actions.pod:1600
6356 msgid ""
6357 "The output depends on the output of the underlying L<file(1)> command and it "
6358 "can change in future in ways beyond our control.  In other words, the output "
6359 "is not guaranteed by the ABI."
6360 msgstr ""
6361
6362 #. type: textblock
6363 #: ../fish/guestfish-actions.pod:1048
6364 msgid ""
6365 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6366 "(etc), L</is-zero>."
6367 msgstr ""
6368
6369 #. type: =head2
6370 #: ../fish/guestfish-actions.pod:1051
6371 msgid "file-architecture"
6372 msgstr ""
6373
6374 #. type: verbatim
6375 #: ../fish/guestfish-actions.pod:1053
6376 #, no-wrap
6377 msgid ""
6378 " file-architecture filename\n"
6379 "\n"
6380 msgstr ""
6381
6382 #. type: textblock
6383 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1618
6384 msgid ""
6385 "This detects the architecture of the binary C<filename>, and returns it if "
6386 "known."
6387 msgstr ""
6388
6389 #. type: textblock
6390 #: ../fish/guestfish-actions.pod:1058 ../src/guestfs-actions.pod:1621
6391 msgid "Currently defined architectures are:"
6392 msgstr ""
6393
6394 #. type: =item
6395 #: ../fish/guestfish-actions.pod:1062 ../src/guestfs-actions.pod:1625
6396 msgid "\"i386\""
6397 msgstr ""
6398
6399 #. type: textblock
6400 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1627
6401 msgid ""
6402 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6403 "irrespective of the precise processor requirements of the binary."
6404 msgstr ""
6405
6406 #. type: =item
6407 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6408 msgid "\"x86_64\""
6409 msgstr ""
6410
6411 #. type: textblock
6412 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6413 msgid "64 bit x86-64."
6414 msgstr ""
6415
6416 #. type: =item
6417 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1634
6418 msgid "\"sparc\""
6419 msgstr ""
6420
6421 #. type: textblock
6422 #: ../fish/guestfish-actions.pod:1073 ../src/guestfs-actions.pod:1636
6423 msgid "32 bit SPARC."
6424 msgstr ""
6425
6426 #. type: =item
6427 #: ../fish/guestfish-actions.pod:1075 ../src/guestfs-actions.pod:1638
6428 msgid "\"sparc64\""
6429 msgstr ""
6430
6431 #. type: textblock
6432 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1640
6433 msgid "64 bit SPARC V9 and above."
6434 msgstr ""
6435
6436 #. type: =item
6437 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1642
6438 msgid "\"ia64\""
6439 msgstr ""
6440
6441 #. type: textblock
6442 #: ../fish/guestfish-actions.pod:1081 ../src/guestfs-actions.pod:1644
6443 msgid "Intel Itanium."
6444 msgstr ""
6445
6446 #. type: =item
6447 #: ../fish/guestfish-actions.pod:1083 ../src/guestfs-actions.pod:1646
6448 msgid "\"ppc\""
6449 msgstr ""
6450
6451 #. type: textblock
6452 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1648
6453 msgid "32 bit Power PC."
6454 msgstr ""
6455
6456 #. type: =item
6457 #: ../fish/guestfish-actions.pod:1087 ../src/guestfs-actions.pod:1650
6458 msgid "\"ppc64\""
6459 msgstr ""
6460
6461 #. type: textblock
6462 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1652
6463 msgid "64 bit Power PC."
6464 msgstr ""
6465
6466 #. type: textblock
6467 #: ../fish/guestfish-actions.pod:1093 ../src/guestfs-actions.pod:1656
6468 msgid "Libguestfs may return other architecture strings in future."
6469 msgstr ""
6470
6471 #. type: textblock
6472 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1658
6473 msgid "The function works on at least the following types of files:"
6474 msgstr ""
6475
6476 #. type: textblock
6477 #: ../fish/guestfish-actions.pod:1101 ../src/guestfs-actions.pod:1664
6478 msgid "many types of Un*x and Linux binary"
6479 msgstr ""
6480
6481 #. type: textblock
6482 #: ../fish/guestfish-actions.pod:1105 ../src/guestfs-actions.pod:1668
6483 msgid "many types of Un*x and Linux shared library"
6484 msgstr ""
6485
6486 #. type: textblock
6487 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1672
6488 msgid "Windows Win32 and Win64 binaries"
6489 msgstr ""
6490
6491 #. type: textblock
6492 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1676
6493 msgid "Windows Win32 and Win64 DLLs"
6494 msgstr ""
6495
6496 #. type: textblock
6497 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1678
6498 msgid "Win32 binaries and DLLs return C<i386>."
6499 msgstr ""
6500
6501 #. type: textblock
6502 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1680
6503 msgid "Win64 binaries and DLLs return C<x86_64>."
6504 msgstr ""
6505
6506 #. type: textblock
6507 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1684
6508 msgid "Linux kernel modules"
6509 msgstr ""
6510
6511 #. type: textblock
6512 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1688
6513 msgid "Linux new-style initrd images"
6514 msgstr ""
6515
6516 #. type: textblock
6517 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1692
6518 msgid "some non-x86 Linux vmlinuz kernels"
6519 msgstr ""
6520
6521 #. type: textblock
6522 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1696
6523 msgid "What it can't do currently:"
6524 msgstr ""
6525
6526 #. type: textblock
6527 #: ../fish/guestfish-actions.pod:1139 ../src/guestfs-actions.pod:1702
6528 msgid "static libraries (libfoo.a)"
6529 msgstr ""
6530
6531 #. type: textblock
6532 #: ../fish/guestfish-actions.pod:1143 ../src/guestfs-actions.pod:1706
6533 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6534 msgstr ""
6535
6536 #. type: textblock
6537 #: ../fish/guestfish-actions.pod:1147 ../src/guestfs-actions.pod:1710
6538 msgid "x86 Linux vmlinuz kernels"
6539 msgstr ""
6540
6541 #. type: textblock
6542 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1712
6543 msgid ""
6544 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6545 "compressed code, and are horribly hard to unpack.  If you want to find the "
6546 "architecture of a kernel, use the architecture of the associated initrd or "
6547 "kernel module(s) instead."
6548 msgstr ""
6549
6550 #. type: =head2
6551 #: ../fish/guestfish-actions.pod:1156
6552 msgid "filesize"
6553 msgstr ""
6554
6555 #. type: verbatim
6556 #: ../fish/guestfish-actions.pod:1158
6557 #, no-wrap
6558 msgid ""
6559 " filesize file\n"
6560 "\n"
6561 msgstr ""
6562
6563 #. type: textblock
6564 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1730
6565 msgid "This command returns the size of C<file> in bytes."
6566 msgstr ""
6567
6568 #. type: textblock
6569 #: ../fish/guestfish-actions.pod:1162
6570 msgid ""
6571 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
6572 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
6573 msgstr ""
6574
6575 #. type: =head2
6576 #: ../fish/guestfish-actions.pod:1166
6577 msgid "fill"
6578 msgstr ""
6579
6580 #. type: verbatim
6581 #: ../fish/guestfish-actions.pod:1168
6582 #, no-wrap
6583 msgid ""
6584 " fill c len path\n"
6585 "\n"
6586 msgstr ""
6587
6588 #. type: textblock
6589 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1748
6590 msgid ""
6591 "This command creates a new file called C<path>.  The initial content of the "
6592 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6593 "[0..255]>."
6594 msgstr ""
6595
6596 #. type: textblock
6597 #: ../fish/guestfish-actions.pod:1174
6598 msgid ""
6599 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6600 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6601 "L</fill-pattern>."
6602 msgstr ""
6603
6604 #. type: =head2
6605 #: ../fish/guestfish-actions.pod:1179
6606 msgid "fill-pattern"
6607 msgstr ""
6608
6609 #. type: verbatim
6610 #: ../fish/guestfish-actions.pod:1181
6611 #, no-wrap
6612 msgid ""
6613 " fill-pattern pattern len path\n"
6614 "\n"
6615 msgstr ""
6616
6617 #. type: textblock
6618 #: ../fish/guestfish-actions.pod:1183
6619 msgid ""
6620 "This function is like L</fill> except that it creates a new file of length "
6621 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6622 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6623 "bytes."
6624 msgstr ""
6625
6626 #. type: =head2
6627 #: ../fish/guestfish-actions.pod:1188
6628 msgid "find"
6629 msgstr ""
6630
6631 #. type: verbatim
6632 #: ../fish/guestfish-actions.pod:1190
6633 #, no-wrap
6634 msgid ""
6635 " find directory\n"
6636 "\n"
6637 msgstr ""
6638
6639 #. type: textblock
6640 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1794
6641 msgid ""
6642 "This command lists out all files and directories, recursively, starting at "
6643 "C<directory>.  It is essentially equivalent to running the shell command "
6644 "C<find directory -print> but some post-processing happens on the output, "
6645 "described below."
6646 msgstr ""
6647
6648 #. type: textblock
6649 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
6650 msgid ""
6651 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6652 "structure was:"
6653 msgstr ""
6654
6655 #. type: verbatim
6656 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1802
6657 #, no-wrap
6658 msgid ""
6659 " /tmp/a\n"
6660 " /tmp/b\n"
6661 " /tmp/c/d\n"
6662 "\n"
6663 msgstr ""
6664
6665 #. type: textblock
6666 #: ../fish/guestfish-actions.pod:1204
6667 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6668 msgstr ""
6669
6670 #. type: verbatim
6671 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:1809
6672 #, no-wrap
6673 msgid ""
6674 " a\n"
6675 " b\n"
6676 " c\n"
6677 " c/d\n"
6678 "\n"
6679 msgstr ""
6680
6681 #. type: textblock
6682 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
6683 msgid "If C<directory> is not a directory, then this command returns an error."
6684 msgstr ""
6685
6686 #. type: textblock
6687 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1817
6688 msgid "The returned list is sorted."
6689 msgstr ""
6690
6691 #. type: textblock
6692 #: ../fish/guestfish-actions.pod:1217
6693 msgid "See also L</find0>."
6694 msgstr ""
6695
6696 #. type: =head2
6697 #: ../fish/guestfish-actions.pod:1222
6698 msgid "find0"
6699 msgstr ""
6700
6701 #. type: verbatim
6702 #: ../fish/guestfish-actions.pod:1224
6703 #, no-wrap
6704 msgid ""
6705 " find0 directory (files|-)\n"
6706 "\n"
6707 msgstr ""
6708
6709 #. type: textblock
6710 #: ../fish/guestfish-actions.pod:1226 ../src/guestfs-actions.pod:1837
6711 msgid ""
6712 "This command lists out all files and directories, recursively, starting at "
6713 "C<directory>, placing the resulting list in the external file called "
6714 "C<files>."
6715 msgstr ""
6716
6717 #. type: textblock
6718 #: ../fish/guestfish-actions.pod:1230
6719 msgid ""
6720 "This command works the same way as L</find> with the following exceptions:"
6721 msgstr ""
6722
6723 #. type: textblock
6724 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1848
6725 msgid "The resulting list is written to an external file."
6726 msgstr ""
6727
6728 #. type: textblock
6729 #: ../fish/guestfish-actions.pod:1241 ../src/guestfs-actions.pod:1852
6730 msgid ""
6731 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6732 "L<find(1)> option I<-print0>."
6733 msgstr ""
6734
6735 #. type: textblock
6736 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
6737 msgid "This command is not limited in the number of names that it can return."
6738 msgstr ""
6739
6740 #. type: textblock
6741 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
6742 msgid "The result list is not sorted."
6743 msgstr ""
6744
6745 #. type: =head2
6746 #: ../fish/guestfish-actions.pod:1257
6747 msgid "findfs-label"
6748 msgstr ""
6749
6750 #. type: verbatim
6751 #: ../fish/guestfish-actions.pod:1259
6752 #, no-wrap
6753 msgid ""
6754 " findfs-label label\n"
6755 "\n"
6756 msgstr ""
6757
6758 #. type: textblock
6759 #: ../fish/guestfish-actions.pod:1261 ../src/guestfs-actions.pod:1876
6760 msgid ""
6761 "This command searches the filesystems and returns the one which has the "
6762 "given label.  An error is returned if no such filesystem can be found."
6763 msgstr ""
6764
6765 #. type: textblock
6766 #: ../fish/guestfish-actions.pod:1265
6767 msgid "To find the label of a filesystem, use L</vfs-label>."
6768 msgstr ""
6769
6770 #. type: =head2
6771 #: ../fish/guestfish-actions.pod:1267
6772 msgid "findfs-uuid"
6773 msgstr ""
6774
6775 #. type: verbatim
6776 #: ../fish/guestfish-actions.pod:1269
6777 #, no-wrap
6778 msgid ""
6779 " findfs-uuid uuid\n"
6780 "\n"
6781 msgstr ""
6782
6783 #. type: textblock
6784 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1893
6785 msgid ""
6786 "This command searches the filesystems and returns the one which has the "
6787 "given UUID.  An error is returned if no such filesystem can be found."
6788 msgstr ""
6789
6790 #. type: textblock
6791 #: ../fish/guestfish-actions.pod:1275
6792 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
6793 msgstr ""
6794
6795 #. type: =head2
6796 #: ../fish/guestfish-actions.pod:1277
6797 msgid "fsck"
6798 msgstr ""
6799
6800 #. type: verbatim
6801 #: ../fish/guestfish-actions.pod:1279
6802 #, no-wrap
6803 msgid ""
6804 " fsck fstype device\n"
6805 "\n"
6806 msgstr ""
6807
6808 #. type: textblock
6809 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1911
6810 msgid ""
6811 "This runs the filesystem checker (fsck) on C<device> which should have "
6812 "filesystem type C<fstype>."
6813 msgstr ""
6814
6815 #. type: textblock
6816 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:1914
6817 msgid ""
6818 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6819 "codes from C<fsck>."
6820 msgstr ""
6821
6822 #. type: textblock
6823 #: ../fish/guestfish-actions.pod:1293 ../src/guestfs-actions.pod:1923
6824 msgid "Multiple status codes can be summed together."
6825 msgstr ""
6826
6827 #. type: textblock
6828 #: ../fish/guestfish-actions.pod:1297 ../src/guestfs-actions.pod:1927
6829 msgid ""
6830 "A non-zero return code can mean \"success\", for example if errors have been "
6831 "corrected on the filesystem."
6832 msgstr ""
6833
6834 #. type: textblock
6835 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
6836 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6837 msgstr ""
6838
6839 #. type: textblock
6840 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
6841 msgid ""
6842 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6843 msgstr ""
6844
6845 #. type: =head2
6846 #: ../fish/guestfish-actions.pod:1309
6847 msgid "get-append"
6848 msgstr ""
6849
6850 #. type: verbatim
6851 #: ../fish/guestfish-actions.pod:1311
6852 #, no-wrap
6853 msgid ""
6854 " get-append\n"
6855 "\n"
6856 msgstr ""
6857
6858 #. type: textblock
6859 #: ../fish/guestfish-actions.pod:1313 ../src/guestfs-actions.pod:1948
6860 msgid ""
6861 "Return the additional kernel options which are added to the guest kernel "
6862 "command line."
6863 msgstr ""
6864
6865 #. type: textblock
6866 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:1951
6867 msgid "If C<NULL> then no options are added."
6868 msgstr ""
6869
6870 #. type: =head2
6871 #: ../fish/guestfish-actions.pod:1318
6872 msgid "get-attach-method"
6873 msgstr ""
6874
6875 #. type: verbatim
6876 #: ../fish/guestfish-actions.pod:1320
6877 #, no-wrap
6878 msgid ""
6879 " get-attach-method\n"
6880 "\n"
6881 msgstr ""
6882
6883 #. type: textblock
6884 #: ../fish/guestfish-actions.pod:1322
6885 msgid "Return the current attach method.  See L</set-attach-method>."
6886 msgstr ""
6887
6888 #. type: =head2
6889 #: ../fish/guestfish-actions.pod:1324
6890 msgid "get-autosync"
6891 msgstr ""
6892
6893 #. type: verbatim
6894 #: ../fish/guestfish-actions.pod:1326
6895 #, no-wrap
6896 msgid ""
6897 " get-autosync\n"
6898 "\n"
6899 msgstr ""
6900
6901 #. type: textblock
6902 #: ../fish/guestfish-actions.pod:1328 ../src/guestfs-actions.pod:1976
6903 msgid "Get the autosync flag."
6904 msgstr ""
6905
6906 #. type: =head2
6907 #: ../fish/guestfish-actions.pod:1330
6908 msgid "get-direct"
6909 msgstr ""
6910
6911 #. type: verbatim
6912 #: ../fish/guestfish-actions.pod:1332
6913 #, no-wrap
6914 msgid ""
6915 " get-direct\n"
6916 "\n"
6917 msgstr ""
6918
6919 #. type: textblock
6920 #: ../fish/guestfish-actions.pod:1334 ../src/guestfs-actions.pod:1987
6921 msgid "Return the direct appliance mode flag."
6922 msgstr ""
6923
6924 #. type: =head2
6925 #: ../fish/guestfish-actions.pod:1336
6926 msgid "get-e2label"
6927 msgstr ""
6928
6929 #. type: verbatim
6930 #: ../fish/guestfish-actions.pod:1338
6931 #, no-wrap
6932 msgid ""
6933 " get-e2label device\n"
6934 "\n"
6935 msgstr ""
6936
6937 #. type: textblock
6938 #: ../fish/guestfish-actions.pod:1340 ../src/guestfs-actions.pod:1999
6939 msgid ""
6940 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6941 msgstr ""
6942
6943 #. type: textblock
6944 #: ../fish/guestfish-actions.pod:1343 ../src/guestfs-actions.pod:2005
6945 msgid ""
6946 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
6947 msgstr ""
6948
6949 #. type: =head2
6950 #: ../fish/guestfish-actions.pod:1350
6951 msgid "get-e2uuid"
6952 msgstr ""
6953
6954 #. type: verbatim
6955 #: ../fish/guestfish-actions.pod:1352
6956 #, no-wrap
6957 msgid ""
6958 " get-e2uuid device\n"
6959 "\n"
6960 msgstr ""
6961
6962 #. type: textblock
6963 #: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod:2020
6964 msgid ""
6965 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6966 msgstr ""
6967
6968 #. type: textblock
6969 #: ../fish/guestfish-actions.pod:1357 ../src/guestfs-actions.pod:2026
6970 msgid ""
6971 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
6972 msgstr ""
6973
6974 #. type: =head2
6975 #: ../fish/guestfish-actions.pod:1364
6976 msgid "get-memsize"
6977 msgstr ""
6978
6979 #. type: verbatim
6980 #: ../fish/guestfish-actions.pod:1366
6981 #, no-wrap
6982 msgid ""
6983 " get-memsize\n"
6984 "\n"
6985 msgstr ""
6986
6987 #. type: textblock
6988 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2040
6989 msgid ""
6990 "This gets the memory size in megabytes allocated to the qemu subprocess."
6991 msgstr ""
6992
6993 #. type: textblock
6994 #: ../fish/guestfish-actions.pod:1371
6995 msgid ""
6996 "If L</set-memsize> was not called on this handle, and if "
6997 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6998 "value for memsize."
6999 msgstr ""
7000
7001 #. type: textblock
7002 #: ../fish/guestfish-actions.pod:1375 ../fish/guestfish-actions.pod:1432
7003 #: ../fish/guestfish-actions.pod:4163 ../fish/guestfish-actions.pod:4265
7004 #: ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2139
7005 #: ../src/guestfs-actions.pod:6293 ../src/guestfs-actions.pod:6419
7006 msgid ""
7007 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7008 msgstr ""
7009
7010 #. type: =head2
7011 #: ../fish/guestfish-actions.pod:1378
7012 msgid "get-network"
7013 msgstr ""
7014
7015 #. type: verbatim
7016 #: ../fish/guestfish-actions.pod:1380
7017 #, no-wrap
7018 msgid ""
7019 " get-network\n"
7020 "\n"
7021 msgstr ""
7022
7023 #. type: textblock
7024 #: ../fish/guestfish-actions.pod:1382 ../src/guestfs-actions.pod:2059
7025 msgid "This returns the enable network flag."
7026 msgstr ""
7027
7028 #. type: =head2
7029 #: ../fish/guestfish-actions.pod:1384
7030 msgid "get-path"
7031 msgstr ""
7032
7033 #. type: verbatim
7034 #: ../fish/guestfish-actions.pod:1386
7035 #, no-wrap
7036 msgid ""
7037 " get-path\n"
7038 "\n"
7039 msgstr ""
7040
7041 #. type: textblock
7042 #: ../fish/guestfish-actions.pod:1388 ../src/guestfs-actions.pod:2070
7043 msgid "Return the current search path."
7044 msgstr ""
7045
7046 #. type: textblock
7047 #: ../fish/guestfish-actions.pod:1390 ../src/guestfs-actions.pod:2072
7048 msgid ""
7049 "This is always non-NULL.  If it wasn't set already, then this will return "
7050 "the default path."
7051 msgstr ""
7052
7053 #. type: =head2
7054 #: ../fish/guestfish-actions.pod:1393
7055 msgid "get-pgroup"
7056 msgstr ""
7057
7058 #. type: verbatim
7059 #: ../fish/guestfish-actions.pod:1395
7060 #, no-wrap
7061 msgid ""
7062 " get-pgroup\n"
7063 "\n"
7064 msgstr ""
7065
7066 #. type: textblock
7067 #: ../fish/guestfish-actions.pod:1397 ../src/guestfs-actions.pod:2085
7068 msgid "This returns the process group flag."
7069 msgstr ""
7070
7071 #. type: =head2
7072 #: ../fish/guestfish-actions.pod:1399
7073 msgid "get-pid"
7074 msgstr ""
7075
7076 #. type: =head2
7077 #: ../fish/guestfish-actions.pod:1401
7078 msgid "pid"
7079 msgstr ""
7080
7081 #. type: verbatim
7082 #: ../fish/guestfish-actions.pod:1403
7083 #, no-wrap
7084 msgid ""
7085 " get-pid\n"
7086 "\n"
7087 msgstr ""
7088
7089 #. type: textblock
7090 #: ../fish/guestfish-actions.pod:1405 ../src/guestfs-actions.pod:2096
7091 msgid ""
7092 "Return the process ID of the qemu subprocess.  If there is no qemu "
7093 "subprocess, then this will return an error."
7094 msgstr ""
7095
7096 #. type: textblock
7097 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2099
7098 msgid "This is an internal call used for debugging and testing."
7099 msgstr ""
7100
7101 #. type: =head2
7102 #: ../fish/guestfish-actions.pod:1410
7103 msgid "get-qemu"
7104 msgstr ""
7105
7106 #. type: verbatim
7107 #: ../fish/guestfish-actions.pod:1412
7108 #, no-wrap
7109 msgid ""
7110 " get-qemu\n"
7111 "\n"
7112 msgstr ""
7113
7114 #. type: textblock
7115 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2110
7116 msgid "Return the current qemu binary."
7117 msgstr ""
7118
7119 #. type: textblock
7120 #: ../fish/guestfish-actions.pod:1416 ../src/guestfs-actions.pod:2112
7121 msgid ""
7122 "This is always non-NULL.  If it wasn't set already, then this will return "
7123 "the default qemu binary name."
7124 msgstr ""
7125
7126 #. type: =head2
7127 #: ../fish/guestfish-actions.pod:1419
7128 msgid "get-recovery-proc"
7129 msgstr ""
7130
7131 #. type: verbatim
7132 #: ../fish/guestfish-actions.pod:1421
7133 #, no-wrap
7134 msgid ""
7135 " get-recovery-proc\n"
7136 "\n"
7137 msgstr ""
7138
7139 #. type: textblock
7140 #: ../fish/guestfish-actions.pod:1423 ../src/guestfs-actions.pod:2125
7141 msgid "Return the recovery process enabled flag."
7142 msgstr ""
7143
7144 #. type: =head2
7145 #: ../fish/guestfish-actions.pod:1425
7146 msgid "get-selinux"
7147 msgstr ""
7148
7149 #. type: verbatim
7150 #: ../fish/guestfish-actions.pod:1427
7151 #, no-wrap
7152 msgid ""
7153 " get-selinux\n"
7154 "\n"
7155 msgstr ""
7156
7157 #. type: textblock
7158 #: ../fish/guestfish-actions.pod:1429
7159 msgid ""
7160 "This returns the current setting of the selinux flag which is passed to the "
7161 "appliance at boot time.  See L</set-selinux>."
7162 msgstr ""
7163
7164 #. type: =head2
7165 #: ../fish/guestfish-actions.pod:1435
7166 msgid "get-state"
7167 msgstr ""
7168
7169 #. type: verbatim
7170 #: ../fish/guestfish-actions.pod:1437
7171 #, no-wrap
7172 msgid ""
7173 " get-state\n"
7174 "\n"
7175 msgstr ""
7176
7177 #. type: textblock
7178 #: ../fish/guestfish-actions.pod:1439 ../src/guestfs-actions.pod:2151
7179 msgid ""
7180 "This returns the current state as an opaque integer.  This is only useful "
7181 "for printing debug and internal error messages."
7182 msgstr ""
7183
7184 #. type: textblock
7185 #: ../fish/guestfish-actions.pod:1442 ../fish/guestfish-actions.pod:2362
7186 #: ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2418
7187 #: ../fish/guestfish-actions.pod:2434 ../src/guestfs-actions.pod:2154
7188 #: ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3463
7189 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3551
7190 msgid "For more information on states, see L<guestfs(3)>."
7191 msgstr ""
7192
7193 #. type: =head2
7194 #: ../fish/guestfish-actions.pod:1444
7195 msgid "get-trace"
7196 msgstr ""
7197
7198 #. type: verbatim
7199 #: ../fish/guestfish-actions.pod:1446
7200 #, no-wrap
7201 msgid ""
7202 " get-trace\n"
7203 "\n"
7204 msgstr ""
7205
7206 #. type: textblock
7207 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2165
7208 msgid "Return the command trace flag."
7209 msgstr ""
7210
7211 #. type: =head2
7212 #: ../fish/guestfish-actions.pod:1450
7213 msgid "get-umask"
7214 msgstr ""
7215
7216 #. type: verbatim
7217 #: ../fish/guestfish-actions.pod:1452
7218 #, no-wrap
7219 msgid ""
7220 " get-umask\n"
7221 "\n"
7222 msgstr ""
7223
7224 #. type: textblock
7225 #: ../fish/guestfish-actions.pod:1454
7226 msgid ""
7227 "Return the current umask.  By default the umask is C<022> unless it has been "
7228 "set by calling L</umask>."
7229 msgstr ""
7230
7231 #. type: =head2
7232 #: ../fish/guestfish-actions.pod:1457
7233 msgid "get-verbose"
7234 msgstr ""
7235
7236 #. type: verbatim
7237 #: ../fish/guestfish-actions.pod:1459
7238 #, no-wrap
7239 msgid ""
7240 " get-verbose\n"
7241 "\n"
7242 msgstr ""
7243
7244 #. type: textblock
7245 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2188
7246 msgid "This returns the verbose messages flag."
7247 msgstr ""
7248
7249 #. type: =head2
7250 #: ../fish/guestfish-actions.pod:1463
7251 msgid "getcon"
7252 msgstr ""
7253
7254 #. type: verbatim
7255 #: ../fish/guestfish-actions.pod:1465
7256 #, no-wrap
7257 msgid ""
7258 " getcon\n"
7259 "\n"
7260 msgstr ""
7261
7262 #. type: textblock
7263 #: ../fish/guestfish-actions.pod:1467 ../src/guestfs-actions.pod:2199
7264 msgid "This gets the SELinux security context of the daemon."
7265 msgstr ""
7266
7267 #. type: textblock
7268 #: ../fish/guestfish-actions.pod:1469
7269 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7270 msgstr ""
7271
7272 #. type: =head2
7273 #: ../fish/guestfish-actions.pod:1472
7274 msgid "getxattr"
7275 msgstr ""
7276
7277 #. type: verbatim
7278 #: ../fish/guestfish-actions.pod:1474
7279 #, no-wrap
7280 msgid ""
7281 " getxattr path name\n"
7282 "\n"
7283 msgstr ""
7284
7285 #. type: textblock
7286 #: ../fish/guestfish-actions.pod:1476
7287 msgid ""
7288 "Get a single extended attribute from file C<path> named C<name>.  This call "
7289 "follows symlinks.  If you want to lookup an extended attribute for the "
7290 "symlink itself, use L</lgetxattr>."
7291 msgstr ""
7292
7293 #. type: textblock
7294 #: ../fish/guestfish-actions.pod:1480 ../fish/guestfish-actions.pod:2507
7295 msgid ""
7296 "Normally it is better to get all extended attributes from a file in one go "
7297 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7298 "buggy and do not provide a way to list out attributes.  For these "
7299 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7300 "attributes you want in advance and call this function."
7301 msgstr ""
7302
7303 #. type: textblock
7304 #: ../fish/guestfish-actions.pod:1487 ../fish/guestfish-actions.pod:2514
7305 #: ../src/guestfs-actions.pod:2228 ../src/guestfs-actions.pod:3684
7306 msgid ""
7307 "Extended attribute values are blobs of binary data.  If there is no extended "
7308 "attribute named C<name>, this returns an error."
7309 msgstr ""
7310
7311 #. type: textblock
7312 #: ../fish/guestfish-actions.pod:1490
7313 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7314 msgstr ""
7315
7316 #. type: =head2
7317 #: ../fish/guestfish-actions.pod:1492
7318 msgid "getxattrs"
7319 msgstr ""
7320
7321 #. type: verbatim
7322 #: ../fish/guestfish-actions.pod:1494
7323 #, no-wrap
7324 msgid ""
7325 " getxattrs path\n"
7326 "\n"
7327 msgstr ""
7328
7329 #. type: textblock
7330 #: ../fish/guestfish-actions.pod:1496 ../src/guestfs-actions.pod:2245
7331 msgid ""
7332 "This call lists the extended attributes of the file or directory C<path>."
7333 msgstr ""
7334
7335 #. type: textblock
7336 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2248
7337 msgid ""
7338 "At the system call level, this is a combination of the L<listxattr(2)> and "
7339 "L<getxattr(2)> calls."
7340 msgstr ""
7341
7342 #. type: textblock
7343 #: ../fish/guestfish-actions.pod:1502
7344 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7345 msgstr ""
7346
7347 #. type: =head2
7348 #: ../fish/guestfish-actions.pod:1504
7349 msgid "glob-expand"
7350 msgstr ""
7351
7352 #. type: verbatim
7353 #: ../fish/guestfish-actions.pod:1506
7354 #, no-wrap
7355 msgid ""
7356 " glob-expand pattern\n"
7357 "\n"
7358 msgstr ""
7359
7360 #. type: textblock
7361 #: ../fish/guestfish-actions.pod:1508 ../src/guestfs-actions.pod:2265
7362 msgid ""
7363 "This command searches for all the pathnames matching C<pattern> according to "
7364 "the wildcard expansion rules used by the shell."
7365 msgstr ""
7366
7367 #. type: textblock
7368 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2269
7369 msgid ""
7370 "If no paths match, then this returns an empty list (note: not an error)."
7371 msgstr ""
7372
7373 #. type: textblock
7374 #: ../fish/guestfish-actions.pod:1515 ../src/guestfs-actions.pod:2272
7375 msgid ""
7376 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7377 "GLOB_BRACE>.  See that manual page for more details."
7378 msgstr ""
7379
7380 #. type: =head2
7381 #: ../fish/guestfish-actions.pod:1519
7382 msgid "grep"
7383 msgstr ""
7384
7385 #. type: verbatim
7386 #: ../fish/guestfish-actions.pod:1521
7387 #, no-wrap
7388 msgid ""
7389 " grep regex path\n"
7390 "\n"
7391 msgstr ""
7392
7393 #. type: textblock
7394 #: ../fish/guestfish-actions.pod:1523 ../src/guestfs-actions.pod:2289
7395 msgid "This calls the external C<grep> program and returns the matching lines."
7396 msgstr ""
7397
7398 #. type: =head2
7399 #: ../fish/guestfish-actions.pod:1529
7400 msgid "grepi"
7401 msgstr ""
7402
7403 #. type: verbatim
7404 #: ../fish/guestfish-actions.pod:1531
7405 #, no-wrap
7406 msgid ""
7407 " grepi regex path\n"
7408 "\n"
7409 msgstr ""
7410
7411 #. type: textblock
7412 #: ../fish/guestfish-actions.pod:1533 ../src/guestfs-actions.pod:2308
7413 msgid ""
7414 "This calls the external C<grep -i> program and returns the matching lines."
7415 msgstr ""
7416
7417 #. type: =head2
7418 #: ../fish/guestfish-actions.pod:1539
7419 msgid "grub-install"
7420 msgstr ""
7421
7422 #. type: verbatim
7423 #: ../fish/guestfish-actions.pod:1541
7424 #, no-wrap
7425 msgid ""
7426 " grub-install root device\n"
7427 "\n"
7428 msgstr ""
7429
7430 #. type: textblock
7431 #: ../fish/guestfish-actions.pod:1543 ../src/guestfs-actions.pod:2327
7432 msgid ""
7433 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7434 "the root directory being C<root>."
7435 msgstr ""
7436
7437 #. type: textblock
7438 #: ../fish/guestfish-actions.pod:1546 ../src/guestfs-actions.pod:2330
7439 msgid ""
7440 "Note: If grub-install reports the error \"No suitable drive was found in the "
7441 "generated device map.\" it may be that you need to create a C</boot/grub/"
7442 "device.map> file first that contains the mapping between grub device names "
7443 "and Linux device names.  It is usually sufficient to create a file "
7444 "containing:"
7445 msgstr ""
7446
7447 #. type: verbatim
7448 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2337
7449 #, no-wrap
7450 msgid ""
7451 " (hd0) /dev/vda\n"
7452 "\n"
7453 msgstr ""
7454
7455 #. type: textblock
7456 #: ../fish/guestfish-actions.pod:1555 ../src/guestfs-actions.pod:2339
7457 msgid "replacing C</dev/vda> with the name of the installation device."
7458 msgstr ""
7459
7460 #. type: =head2
7461 #: ../fish/guestfish-actions.pod:1557
7462 msgid "head"
7463 msgstr ""
7464
7465 #. type: verbatim
7466 #: ../fish/guestfish-actions.pod:1559
7467 #, no-wrap
7468 msgid ""
7469 " head path\n"
7470 "\n"
7471 msgstr ""
7472
7473 #. type: textblock
7474 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2351
7475 msgid ""
7476 "This command returns up to the first 10 lines of a file as a list of strings."
7477 msgstr ""
7478
7479 #. type: =head2
7480 #: ../fish/guestfish-actions.pod:1567
7481 msgid "head-n"
7482 msgstr ""
7483
7484 #. type: verbatim
7485 #: ../fish/guestfish-actions.pod:1569
7486 #, no-wrap
7487 msgid ""
7488 " head-n nrlines path\n"
7489 "\n"
7490 msgstr ""
7491
7492 #. type: textblock
7493 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2370
7494 msgid ""
7495 "If the parameter C<nrlines> is a positive number, this returns the first "
7496 "C<nrlines> lines of the file C<path>."
7497 msgstr ""
7498
7499 #. type: textblock
7500 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2373
7501 msgid ""
7502 "If the parameter C<nrlines> is a negative number, this returns lines from "
7503 "the file C<path>, excluding the last C<nrlines> lines."
7504 msgstr ""
7505
7506 #. type: textblock
7507 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:4643
7508 #: ../src/guestfs-actions.pod:2376 ../src/guestfs-actions.pod:6991
7509 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7510 msgstr ""
7511
7512 #. type: =head2
7513 #: ../fish/guestfish-actions.pod:1582
7514 msgid "hexdump"
7515 msgstr ""
7516
7517 #. type: verbatim
7518 #: ../fish/guestfish-actions.pod:1584
7519 #, no-wrap
7520 msgid ""
7521 " hexdump path\n"
7522 "\n"
7523 msgstr ""
7524
7525 #. type: textblock
7526 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2393
7527 msgid ""
7528 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7529 "readable, canonical hex dump of the file."
7530 msgstr ""
7531
7532 #. type: =head2
7533 #: ../fish/guestfish-actions.pod:1592
7534 msgid "initrd-cat"
7535 msgstr ""
7536
7537 #. type: verbatim
7538 #: ../fish/guestfish-actions.pod:1594
7539 #, no-wrap
7540 msgid ""
7541 " initrd-cat initrdpath filename\n"
7542 "\n"
7543 msgstr ""
7544
7545 #. type: textblock
7546 #: ../fish/guestfish-actions.pod:1596 ../src/guestfs-actions.pod:2412
7547 msgid ""
7548 "This command unpacks the file C<filename> from the initrd file called "
7549 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7550 "character."
7551 msgstr ""
7552
7553 #. type: textblock
7554 #: ../fish/guestfish-actions.pod:1600 ../src/guestfs-actions.pod:2416
7555 msgid ""
7556 "For example, in guestfish you could use the following command to examine the "
7557 "boot script (usually called C</init>)  contained in a Linux initrd or "
7558 "initramfs image:"
7559 msgstr ""
7560
7561 #. type: verbatim
7562 #: ../fish/guestfish-actions.pod:1604 ../src/guestfs-actions.pod:2420
7563 #, no-wrap
7564 msgid ""
7565 " initrd-cat /boot/initrd-<version>.img init\n"
7566 "\n"
7567 msgstr ""
7568
7569 #. type: textblock
7570 #: ../fish/guestfish-actions.pod:1606
7571 msgid "See also L</initrd-list>."
7572 msgstr ""
7573
7574 #. type: =head2
7575 #: ../fish/guestfish-actions.pod:1611
7576 msgid "initrd-list"
7577 msgstr ""
7578
7579 #. type: verbatim
7580 #: ../fish/guestfish-actions.pod:1613
7581 #, no-wrap
7582 msgid ""
7583 " initrd-list path\n"
7584 "\n"
7585 msgstr ""
7586
7587 #. type: textblock
7588 #: ../fish/guestfish-actions.pod:1615 ../src/guestfs-actions.pod:2439
7589 msgid "This command lists out files contained in an initrd."
7590 msgstr ""
7591
7592 #. type: textblock
7593 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2441
7594 msgid ""
7595 "The files are listed without any initial C</> character.  The files are "
7596 "listed in the order they appear (not necessarily alphabetical).  Directory "
7597 "names are listed as separate items."
7598 msgstr ""
7599
7600 #. type: textblock
7601 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2445
7602 msgid ""
7603 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7604 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7605 "files)."
7606 msgstr ""
7607
7608 #. type: =head2
7609 #: ../fish/guestfish-actions.pod:1625
7610 msgid "inotify-add-watch"
7611 msgstr ""
7612
7613 #. type: verbatim
7614 #: ../fish/guestfish-actions.pod:1627
7615 #, no-wrap
7616 msgid ""
7617 " inotify-add-watch path mask\n"
7618 "\n"
7619 msgstr ""
7620
7621 #. type: textblock
7622 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2462
7623 msgid "Watch C<path> for the events listed in C<mask>."
7624 msgstr ""
7625
7626 #. type: textblock
7627 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2464
7628 msgid ""
7629 "Note that if C<path> is a directory then events within that directory are "
7630 "watched, but this does I<not> happen recursively (in subdirectories)."
7631 msgstr ""
7632
7633 #. type: textblock
7634 #: ../fish/guestfish-actions.pod:1635 ../src/guestfs-actions.pod:2468
7635 msgid ""
7636 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7637 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7638 msgstr ""
7639
7640 #. type: =head2
7641 #: ../fish/guestfish-actions.pod:1639
7642 msgid "inotify-close"
7643 msgstr ""
7644
7645 #. type: verbatim
7646 #: ../fish/guestfish-actions.pod:1641
7647 #, no-wrap
7648 msgid ""
7649 " inotify-close\n"
7650 "\n"
7651 msgstr ""
7652
7653 #. type: textblock
7654 #: ../fish/guestfish-actions.pod:1643 ../src/guestfs-actions.pod:2481
7655 msgid ""
7656 "This closes the inotify handle which was previously opened by inotify_init.  "
7657 "It removes all watches, throws away any pending events, and deallocates all "
7658 "resources."
7659 msgstr ""
7660
7661 #. type: =head2
7662 #: ../fish/guestfish-actions.pod:1647
7663 msgid "inotify-files"
7664 msgstr ""
7665
7666 #. type: verbatim
7667 #: ../fish/guestfish-actions.pod:1649
7668 #, no-wrap
7669 msgid ""
7670 " inotify-files\n"
7671 "\n"
7672 msgstr ""
7673
7674 #. type: textblock
7675 #: ../fish/guestfish-actions.pod:1651
7676 msgid ""
7677 "This function is a helpful wrapper around L</inotify-read> which just "
7678 "returns a list of pathnames of objects that were touched.  The returned "
7679 "pathnames are sorted and deduplicated."
7680 msgstr ""
7681
7682 #. type: =head2
7683 #: ../fish/guestfish-actions.pod:1655
7684 msgid "inotify-init"
7685 msgstr ""
7686
7687 #. type: verbatim
7688 #: ../fish/guestfish-actions.pod:1657
7689 #, no-wrap
7690 msgid ""
7691 " inotify-init maxevents\n"
7692 "\n"
7693 msgstr ""
7694
7695 #. type: textblock
7696 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2510
7697 msgid ""
7698 "This command creates a new inotify handle.  The inotify subsystem can be "
7699 "used to notify events which happen to objects in the guest filesystem."
7700 msgstr ""
7701
7702 #. type: textblock
7703 #: ../fish/guestfish-actions.pod:1663
7704 msgid ""
7705 "C<maxevents> is the maximum number of events which will be queued up between "
7706 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
7707 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
7708 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
7709 "but records the fact that it threw them away by setting a flag "
7710 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
7711 msgstr ""
7712
7713 #. type: textblock
7714 #: ../fish/guestfish-actions.pod:1673
7715 msgid ""
7716 "Before any events are generated, you have to add some watches to the "
7717 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
7718 "L</inotify-watch-all>."
7719 msgstr ""
7720
7721 #. type: textblock
7722 #: ../fish/guestfish-actions.pod:1679
7723 msgid ""
7724 "Queued up events should be read periodically by calling L</inotify-read> (or "
7725 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
7726 "If you don't read the events out often enough then you risk the internal "
7727 "queue overflowing."
7728 msgstr ""
7729
7730 #. type: textblock
7731 #: ../fish/guestfish-actions.pod:1686
7732 msgid ""
7733 "The handle should be closed after use by calling L</inotify-close>.  This "
7734 "also removes any watches automatically."
7735 msgstr ""
7736
7737 #. type: textblock
7738 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2541
7739 msgid ""
7740 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7741 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7742 "that there is one global inotify handle per libguestfs instance."
7743 msgstr ""
7744
7745 #. type: =head2
7746 #: ../fish/guestfish-actions.pod:1695
7747 msgid "inotify-read"
7748 msgstr ""
7749
7750 #. type: verbatim
7751 #: ../fish/guestfish-actions.pod:1697
7752 #, no-wrap
7753 msgid ""
7754 " inotify-read\n"
7755 "\n"
7756 msgstr ""
7757
7758 #. type: textblock
7759 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2555
7760 msgid ""
7761 "Return the complete queue of events that have happened since the previous "
7762 "read call."
7763 msgstr ""
7764
7765 #. type: textblock
7766 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2558
7767 msgid "If no events have happened, this returns an empty list."
7768 msgstr ""
7769
7770 #. type: textblock
7771 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
7772 msgid ""
7773 "I<Note>: In order to make sure that all events have been read, you must call "
7774 "this function repeatedly until it returns an empty list.  The reason is that "
7775 "the call will read events up to the maximum appliance-to-host message size "
7776 "and leave remaining events in the queue."
7777 msgstr ""
7778
7779 #. type: =head2
7780 #: ../fish/guestfish-actions.pod:1710
7781 msgid "inotify-rm-watch"
7782 msgstr ""
7783
7784 #. type: verbatim
7785 #: ../fish/guestfish-actions.pod:1712
7786 #, no-wrap
7787 msgid ""
7788 " inotify-rm-watch wd\n"
7789 "\n"
7790 msgstr ""
7791
7792 #. type: textblock
7793 #: ../fish/guestfish-actions.pod:1714
7794 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
7795 msgstr ""
7796
7797 #. type: =head2
7798 #: ../fish/guestfish-actions.pod:1717
7799 msgid "inspect-get-arch"
7800 msgstr ""
7801
7802 #. type: verbatim
7803 #: ../fish/guestfish-actions.pod:1719
7804 #, no-wrap
7805 msgid ""
7806 " inspect-get-arch root\n"
7807 "\n"
7808 msgstr ""
7809
7810 #. type: textblock
7811 #: ../fish/guestfish-actions.pod:1721
7812 msgid ""
7813 "This returns the architecture of the inspected operating system.  The "
7814 "possible return values are listed under L</file-architecture>."
7815 msgstr ""
7816
7817 #. type: textblock
7818 #: ../fish/guestfish-actions.pod:1725 ../src/guestfs-actions.pod:2595
7819 msgid ""
7820 "If the architecture could not be determined, then the string C<unknown> is "
7821 "returned."
7822 msgstr ""
7823
7824 #. type: textblock
7825 #: ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1811
7826 #: ../fish/guestfish-actions.pod:1890 ../fish/guestfish-actions.pod:1902
7827 #: ../fish/guestfish-actions.pod:1986 ../fish/guestfish-actions.pod:2047
7828 #: ../fish/guestfish-actions.pod:2068 ../fish/guestfish-actions.pod:2082
7829 #: ../fish/guestfish-actions.pod:2122 ../fish/guestfish-actions.pod:2154
7830 #: ../fish/guestfish-actions.pod:2167 ../fish/guestfish-actions.pod:2180
7831 #: ../fish/guestfish-actions.pod:2190 ../fish/guestfish-actions.pod:2200
7832 #: ../fish/guestfish-actions.pod:2212 ../fish/guestfish-actions.pod:2308
7833 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:2598
7834 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:2792
7835 #: ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:2942
7836 #: ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:3053
7837 #: ../src/guestfs-actions.pod:3074 ../src/guestfs-actions.pod:3127
7838 #: ../src/guestfs-actions.pod:3167 ../src/guestfs-actions.pod:3187
7839 #: ../src/guestfs-actions.pod:3207 ../src/guestfs-actions.pod:3224
7840 #: ../src/guestfs-actions.pod:3240 ../src/guestfs-actions.pod:3258
7841 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3401
7842 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7843 msgstr ""
7844
7845 #. type: =head2
7846 #: ../fish/guestfish-actions.pod:1730
7847 msgid "inspect-get-distro"
7848 msgstr ""
7849
7850 #. type: verbatim
7851 #: ../fish/guestfish-actions.pod:1732
7852 #, no-wrap
7853 msgid ""
7854 " inspect-get-distro root\n"
7855 "\n"
7856 msgstr ""
7857
7858 #. type: textblock
7859 #: ../fish/guestfish-actions.pod:1734 ../src/guestfs-actions.pod:2611
7860 msgid ""
7861 "This returns the distro (distribution) of the inspected operating system."
7862 msgstr ""
7863
7864 #. type: textblock
7865 #: ../fish/guestfish-actions.pod:1737 ../src/guestfs-actions.pod:2614
7866 msgid "Currently defined distros are:"
7867 msgstr ""
7868
7869 #. type: =item
7870 #: ../fish/guestfish-actions.pod:1741 ../src/guestfs-actions.pod:2618
7871 msgid "\"archlinux\""
7872 msgstr ""
7873
7874 #. type: textblock
7875 #: ../fish/guestfish-actions.pod:1743 ../src/guestfs-actions.pod:2620
7876 msgid "Arch Linux."
7877 msgstr ""
7878
7879 #. type: =item
7880 #: ../fish/guestfish-actions.pod:1745 ../src/guestfs-actions.pod:2622
7881 msgid "\"centos\""
7882 msgstr ""
7883
7884 #. type: textblock
7885 #: ../fish/guestfish-actions.pod:1747 ../src/guestfs-actions.pod:2624
7886 msgid "CentOS."
7887 msgstr ""
7888
7889 #. type: =item
7890 #: ../fish/guestfish-actions.pod:1749 ../src/guestfs-actions.pod:2626
7891 msgid "\"debian\""
7892 msgstr ""
7893
7894 #. type: textblock
7895 #: ../fish/guestfish-actions.pod:1751 ../src/guestfs-actions.pod:2628
7896 msgid "Debian."
7897 msgstr ""
7898
7899 #. type: =item
7900 #: ../fish/guestfish-actions.pod:1753 ../src/guestfs-actions.pod:2630
7901 msgid "\"fedora\""
7902 msgstr ""
7903
7904 #. type: textblock
7905 #: ../fish/guestfish-actions.pod:1755 ../src/guestfs-actions.pod:2632
7906 msgid "Fedora."
7907 msgstr ""
7908
7909 #. type: =item
7910 #: ../fish/guestfish-actions.pod:1757 ../src/guestfs-actions.pod:2634
7911 msgid "\"gentoo\""
7912 msgstr ""
7913
7914 #. type: textblock
7915 #: ../fish/guestfish-actions.pod:1759 ../src/guestfs-actions.pod:2636
7916 msgid "Gentoo."
7917 msgstr ""
7918
7919 #. type: =item
7920 #: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638
7921 msgid "\"linuxmint\""
7922 msgstr ""
7923
7924 #. type: textblock
7925 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2640
7926 msgid "Linux Mint."
7927 msgstr ""
7928
7929 #. type: =item
7930 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2642
7931 msgid "\"mandriva\""
7932 msgstr ""
7933
7934 #. type: textblock
7935 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2644
7936 msgid "Mandriva."
7937 msgstr ""
7938
7939 #. type: =item
7940 #: ../fish/guestfish-actions.pod:1769 ../src/guestfs-actions.pod:2646
7941 msgid "\"meego\""
7942 msgstr ""
7943
7944 #. type: textblock
7945 #: ../fish/guestfish-actions.pod:1771 ../src/guestfs-actions.pod:2648
7946 msgid "MeeGo."
7947 msgstr ""
7948
7949 #. type: =item
7950 #: ../fish/guestfish-actions.pod:1773 ../src/guestfs-actions.pod:2650
7951 msgid "\"pardus\""
7952 msgstr ""
7953
7954 #. type: textblock
7955 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2652
7956 msgid "Pardus."
7957 msgstr ""
7958
7959 #. type: =item
7960 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2654
7961 msgid "\"redhat-based\""
7962 msgstr ""
7963
7964 #. type: textblock
7965 #: ../fish/guestfish-actions.pod:1779 ../src/guestfs-actions.pod:2656
7966 msgid "Some Red Hat-derived distro."
7967 msgstr ""
7968
7969 #. type: =item
7970 #: ../fish/guestfish-actions.pod:1781 ../src/guestfs-actions.pod:2658
7971 msgid "\"rhel\""
7972 msgstr ""
7973
7974 #. type: textblock
7975 #: ../fish/guestfish-actions.pod:1783 ../src/guestfs-actions.pod:2660
7976 msgid "Red Hat Enterprise Linux."
7977 msgstr ""
7978
7979 #. type: =item
7980 #: ../fish/guestfish-actions.pod:1785 ../src/guestfs-actions.pod:2662
7981 msgid "\"scientificlinux\""
7982 msgstr ""
7983
7984 #. type: textblock
7985 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2664
7986 msgid "Scientific Linux."
7987 msgstr ""
7988
7989 #. type: =item
7990 #: ../fish/guestfish-actions.pod:1789 ../src/guestfs-actions.pod:2666
7991 msgid "\"slackware\""
7992 msgstr ""
7993
7994 #. type: textblock
7995 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2668
7996 msgid "Slackware."
7997 msgstr ""
7998
7999 #. type: =item
8000 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2670
8001 msgid "\"ubuntu\""
8002 msgstr ""
8003
8004 #. type: textblock
8005 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2672
8006 msgid "Ubuntu."
8007 msgstr ""
8008
8009 #. type: =item
8010 #: ../fish/guestfish-actions.pod:1797 ../fish/guestfish-actions.pod:1881
8011 #: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:2674
8012 #: ../src/guestfs-actions.pod:2783 ../src/guestfs-actions.pod:3158
8013 msgid "\"unknown\""
8014 msgstr ""
8015
8016 #. type: textblock
8017 #: ../fish/guestfish-actions.pod:1799 ../src/guestfs-actions.pod:2676
8018 msgid "The distro could not be determined."
8019 msgstr ""
8020
8021 #. type: =item
8022 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:2137
8023 #: ../src/guestfs-actions.pod:2678 ../src/guestfs-actions.pod:3150
8024 msgid "\"windows\""
8025 msgstr ""
8026
8027 #. type: textblock
8028 #: ../fish/guestfish-actions.pod:1803 ../src/guestfs-actions.pod:2680
8029 msgid ""
8030 "Windows does not have distributions.  This string is returned if the OS type "
8031 "is Windows."
8032 msgstr ""
8033
8034 #. type: textblock
8035 #: ../fish/guestfish-actions.pod:1808 ../fish/guestfish-actions.pod:1887
8036 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:2685
8037 #: ../src/guestfs-actions.pod:2789 ../src/guestfs-actions.pod:3164
8038 msgid ""
8039 "Future versions of libguestfs may return other strings here.  The caller "
8040 "should be prepared to handle any string."
8041 msgstr ""
8042
8043 #. type: =head2
8044 #: ../fish/guestfish-actions.pod:1813
8045 msgid "inspect-get-drive-mappings"
8046 msgstr ""
8047
8048 #. type: verbatim
8049 #: ../fish/guestfish-actions.pod:1815
8050 #, no-wrap
8051 msgid ""
8052 " inspect-get-drive-mappings root\n"
8053 "\n"
8054 msgstr ""
8055
8056 #. type: textblock
8057 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2701
8058 msgid ""
8059 "This call is useful for Windows which uses a primitive system of assigning "
8060 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8061 "Windows Registry to find out how disks/partitions are mapped to drive "
8062 "letters, and returns a hash table as in the example below:"
8063 msgstr ""
8064
8065 #. type: verbatim
8066 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2707
8067 #, no-wrap
8068 msgid ""
8069 " C      =>     /dev/vda2\n"
8070 " E      =>     /dev/vdb1\n"
8071 " F      =>     /dev/vdc1\n"
8072 "\n"
8073 msgstr ""
8074
8075 #. type: textblock
8076 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2711
8077 msgid ""
8078 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8079 "and just contains the drive letter, without the customary colon separator "
8080 "character."
8081 msgstr ""
8082
8083 #. type: textblock
8084 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2715
8085 msgid ""
8086 "In future we may support other operating systems that also used drive "
8087 "letters, but the keys for those might not be case insensitive and might be "
8088 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8089 "C<h1> etc."
8090 msgstr ""
8091
8092 #. type: textblock
8093 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8094 msgid ""
8095 "For Windows guests, currently only hard drive mappings are returned.  "
8096 "Removable disks (eg. DVD-ROMs) are ignored."
8097 msgstr ""
8098
8099 #. type: textblock
8100 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2723
8101 msgid ""
8102 "For guests that do not use drive mappings, or if the drive mappings could "
8103 "not be determined, this returns an empty hash table."
8104 msgstr ""
8105
8106 #. type: textblock
8107 #: ../fish/guestfish-actions.pod:1842
8108 msgid ""
8109 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8110 "get-mountpoints>, L</inspect-get-filesystems>."
8111 msgstr ""
8112
8113 #. type: =head2
8114 #: ../fish/guestfish-actions.pod:1846
8115 msgid "inspect-get-filesystems"
8116 msgstr ""
8117
8118 #. type: verbatim
8119 #: ../fish/guestfish-actions.pod:1848
8120 #, no-wrap
8121 msgid ""
8122 " inspect-get-filesystems root\n"
8123 "\n"
8124 msgstr ""
8125
8126 #. type: textblock
8127 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2744
8128 msgid ""
8129 "This returns a list of all the filesystems that we think are associated with "
8130 "this operating system.  This includes the root filesystem, other ordinary "
8131 "filesystems, and non-mounted devices like swap partitions."
8132 msgstr ""
8133
8134 #. type: textblock
8135 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8136 msgid ""
8137 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8138 "to be shared between operating systems."
8139 msgstr ""
8140
8141 #. type: textblock
8142 #: ../fish/guestfish-actions.pod:1858
8143 msgid ""
8144 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8145 "get-mountpoints>."
8146 msgstr ""
8147
8148 #. type: =head2
8149 #: ../fish/guestfish-actions.pod:1861
8150 msgid "inspect-get-format"
8151 msgstr ""
8152
8153 #. type: verbatim
8154 #: ../fish/guestfish-actions.pod:1863
8155 #, no-wrap
8156 msgid ""
8157 " inspect-get-format root\n"
8158 "\n"
8159 msgstr ""
8160
8161 #. type: textblock
8162 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2767
8163 msgid ""
8164 "This returns the format of the inspected operating system.  You can use it "
8165 "to detect install images, live CDs and similar."
8166 msgstr ""
8167
8168 #. type: textblock
8169 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2770
8170 msgid "Currently defined formats are:"
8171 msgstr ""
8172
8173 #. type: =item
8174 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2774
8175 msgid "\"installed\""
8176 msgstr ""
8177
8178 #. type: textblock
8179 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2776
8180 msgid "This is an installed operating system."
8181 msgstr ""
8182
8183 #. type: =item
8184 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2778
8185 msgid "\"installer\""
8186 msgstr ""
8187
8188 #. type: textblock
8189 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2780
8190 msgid ""
8191 "The disk image being inspected is not an installed operating system, but a "
8192 "I<bootable> install disk, live CD, or similar."
8193 msgstr ""
8194
8195 #. type: textblock
8196 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8197 msgid "The format of this disk image is not known."
8198 msgstr ""
8199
8200 #. type: =head2
8201 #: ../fish/guestfish-actions.pod:1892
8202 msgid "inspect-get-hostname"
8203 msgstr ""
8204
8205 #. type: verbatim
8206 #: ../fish/guestfish-actions.pod:1894
8207 #, no-wrap
8208 msgid ""
8209 " inspect-get-hostname root\n"
8210 "\n"
8211 msgstr ""
8212
8213 #. type: textblock
8214 #: ../fish/guestfish-actions.pod:1896 ../src/guestfs-actions.pod:2805
8215 msgid ""
8216 "This function returns the hostname of the operating system as found by "
8217 "inspection of the guest's configuration files."
8218 msgstr ""
8219
8220 #. type: textblock
8221 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2808
8222 msgid ""
8223 "If the hostname could not be determined, then the string C<unknown> is "
8224 "returned."
8225 msgstr ""
8226
8227 #. type: =head2
8228 #: ../fish/guestfish-actions.pod:1904
8229 msgid "inspect-get-icon"
8230 msgstr ""
8231
8232 #. type: verbatim
8233 #: ../fish/guestfish-actions.pod:1906
8234 #, no-wrap
8235 msgid ""
8236 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8237 "\n"
8238 msgstr ""
8239
8240 #. type: textblock
8241 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2834
8242 msgid ""
8243 "This function returns an icon corresponding to the inspected operating "
8244 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8245 "to PNG if necessary)."
8246 msgstr ""
8247
8248 #. type: textblock
8249 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2838
8250 msgid ""
8251 "If it was not possible to get an icon this function returns a zero-length "
8252 "(non-NULL) buffer.  I<Callers must check for this case>."
8253 msgstr ""
8254
8255 #. type: textblock
8256 #: ../fish/guestfish-actions.pod:1915 ../src/guestfs-actions.pod:2841
8257 msgid ""
8258 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8259 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8260 "this file will be returned.  You can disable favicons by passing the "
8261 "optional C<favicon> boolean as false (default is true)."
8262 msgstr ""
8263
8264 #. type: textblock
8265 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2847
8266 msgid ""
8267 "If finding the favicon fails, then we look in other places in the guest for "
8268 "a suitable icon."
8269 msgstr ""
8270
8271 #. type: textblock
8272 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2850
8273 msgid ""
8274 "If the optional C<highquality> boolean is true then only high quality icons "
8275 "are returned, which means only icons of high resolution with an alpha "
8276 "channel.  The default (false) is to return any icon we can, even if it is of "
8277 "substandard quality."
8278 msgstr ""
8279
8280 #. type: textblock
8281 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2861
8282 msgid ""
8283 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8284 "before you call this, since it needs to read information from the guest "
8285 "filesystem during the call."
8286 msgstr ""
8287
8288 #. type: textblock
8289 #: ../fish/guestfish-actions.pod:1941 ../src/guestfs-actions.pod:2867
8290 msgid ""
8291 "B<Security:> The icon data comes from the untrusted guest, and should be "
8292 "treated with caution.  PNG files have been known to contain exploits.  "
8293 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8294 "trying to process or display the icon."
8295 msgstr ""
8296
8297 #. type: textblock
8298 #: ../fish/guestfish-actions.pod:1949 ../src/guestfs-actions.pod:2875
8299 msgid ""
8300 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8301 "tries to return the largest, highest quality icon available.  The "
8302 "application must scale the icon to the required size."
8303 msgstr ""
8304
8305 #. type: textblock
8306 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:2882
8307 msgid ""
8308 "Extracting icons from Windows guests requires the external C<wrestool> "
8309 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8310 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8311 "installed separately."
8312 msgstr ""
8313
8314 #. type: textblock
8315 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2889
8316 msgid ""
8317 "Operating system icons are usually trademarks.  Seek legal advice before "
8318 "using trademarks in applications."
8319 msgstr ""
8320
8321 #. type: =head2
8322 #: ../fish/guestfish-actions.pod:1970
8323 msgid "inspect-get-major-version"
8324 msgstr ""
8325
8326 #. type: verbatim
8327 #: ../fish/guestfish-actions.pod:1972
8328 #, no-wrap
8329 msgid ""
8330 " inspect-get-major-version root\n"
8331 "\n"
8332 msgstr ""
8333
8334 #. type: textblock
8335 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:2930
8336 msgid ""
8337 "This returns the major version number of the inspected operating system."
8338 msgstr ""
8339
8340 #. type: textblock
8341 #: ../fish/guestfish-actions.pod:1977 ../src/guestfs-actions.pod:2933
8342 msgid ""
8343 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8344 "popular public names used by the operating system.  Notably the operating "
8345 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8346 "1).  You can find out the real versions corresponding to releases of Windows "
8347 "by consulting Wikipedia or MSDN."
8348 msgstr ""
8349
8350 #. type: textblock
8351 #: ../fish/guestfish-actions.pod:1984 ../fish/guestfish-actions.pod:1995
8352 #: ../src/guestfs-actions.pod:2940 ../src/guestfs-actions.pod:2957
8353 msgid "If the version could not be determined, then C<0> is returned."
8354 msgstr ""
8355
8356 #. type: =head2
8357 #: ../fish/guestfish-actions.pod:1988
8358 msgid "inspect-get-minor-version"
8359 msgstr ""
8360
8361 #. type: verbatim
8362 #: ../fish/guestfish-actions.pod:1990
8363 #, no-wrap
8364 msgid ""
8365 " inspect-get-minor-version root\n"
8366 "\n"
8367 msgstr ""
8368
8369 #. type: textblock
8370 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:2954
8371 msgid ""
8372 "This returns the minor version number of the inspected operating system."
8373 msgstr ""
8374
8375 #. type: textblock
8376 #: ../fish/guestfish-actions.pod:1997
8377 msgid ""
8378 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8379 "get-major-version>."
8380 msgstr ""
8381
8382 #. type: =head2
8383 #: ../fish/guestfish-actions.pod:2000
8384 msgid "inspect-get-mountpoints"
8385 msgstr ""
8386
8387 #. type: verbatim
8388 #: ../fish/guestfish-actions.pod:2002
8389 #, no-wrap
8390 msgid ""
8391 " inspect-get-mountpoints root\n"
8392 "\n"
8393 msgstr ""
8394
8395 #. type: textblock
8396 #: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:2972
8397 msgid ""
8398 "This returns a hash of where we think the filesystems associated with this "
8399 "operating system should be mounted.  Callers should note that this is at "
8400 "best an educated guess made by reading configuration files such as C</etc/"
8401 "fstab>.  I<In particular note> that this may return filesystems which are "
8402 "non-existent or not mountable and callers should be prepared to handle or "
8403 "ignore failures if they try to mount them."
8404 msgstr ""
8405
8406 #. type: textblock
8407 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:2981
8408 msgid ""
8409 "Each element in the returned hashtable has a key which is the path of the "
8410 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8411 "mounted there (eg. C</dev/sda1>)."
8412 msgstr ""
8413
8414 #. type: textblock
8415 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8416 msgid ""
8417 "Non-mounted devices such as swap devices are I<not> returned in this list."
8418 msgstr ""
8419
8420 #. type: textblock
8421 #: ../fish/guestfish-actions.pod:2021
8422 msgid ""
8423 "For operating systems like Windows which still use drive letters, this call "
8424 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8425 "information about the mapping of drive letters to partitions, see L</inspect-"
8426 "get-drive-mappings>."
8427 msgstr ""
8428
8429 #. type: textblock
8430 #: ../fish/guestfish-actions.pod:2027
8431 msgid ""
8432 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8433 "get-filesystems>."
8434 msgstr ""
8435
8436 #. type: =head2
8437 #: ../fish/guestfish-actions.pod:2030
8438 msgid "inspect-get-package-format"
8439 msgstr ""
8440
8441 #. type: verbatim
8442 #: ../fish/guestfish-actions.pod:2032
8443 #, no-wrap
8444 msgid ""
8445 " inspect-get-package-format root\n"
8446 "\n"
8447 msgstr ""
8448
8449 #. type: textblock
8450 #: ../fish/guestfish-actions.pod:2034
8451 msgid ""
8452 "This function and L</inspect-get-package-management> return the package "
8453 "format and package management tool used by the inspected operating system.  "
8454 "For example for Fedora these functions would return C<rpm> (package format) "
8455 "and C<yum> (package management)."
8456 msgstr ""
8457
8458 #. type: textblock
8459 #: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3018
8460 msgid ""
8461 "This returns the string C<unknown> if we could not determine the package "
8462 "format I<or> if the operating system does not have a real packaging system "
8463 "(eg. Windows)."
8464 msgstr ""
8465
8466 #. type: textblock
8467 #: ../fish/guestfish-actions.pod:2044 ../src/guestfs-actions.pod:3022
8468 msgid ""
8469 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8470 "Future versions of libguestfs may return other strings."
8471 msgstr ""
8472
8473 #. type: =head2
8474 #: ../fish/guestfish-actions.pod:2049
8475 msgid "inspect-get-package-management"
8476 msgstr ""
8477
8478 #. type: verbatim
8479 #: ../fish/guestfish-actions.pod:2051
8480 #, no-wrap
8481 msgid ""
8482 " inspect-get-package-management root\n"
8483 "\n"
8484 msgstr ""
8485
8486 #. type: textblock
8487 #: ../fish/guestfish-actions.pod:2053
8488 msgid ""
8489 "L</inspect-get-package-format> and this function return the package format "
8490 "and package management tool used by the inspected operating system.  For "
8491 "example for Fedora these functions would return C<rpm> (package format) and "
8492 "C<yum> (package management)."
8493 msgstr ""
8494
8495 #. type: textblock
8496 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3044
8497 msgid ""
8498 "This returns the string C<unknown> if we could not determine the package "
8499 "management tool I<or> if the operating system does not have a real packaging "
8500 "system (eg. Windows)."
8501 msgstr ""
8502
8503 #. type: textblock
8504 #: ../fish/guestfish-actions.pod:2063 ../src/guestfs-actions.pod:3048
8505 msgid ""
8506 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8507 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8508 "libguestfs may return other strings."
8509 msgstr ""
8510
8511 #. type: =head2
8512 #: ../fish/guestfish-actions.pod:2070
8513 msgid "inspect-get-product-name"
8514 msgstr ""
8515
8516 #. type: verbatim
8517 #: ../fish/guestfish-actions.pod:2072
8518 #, no-wrap
8519 msgid ""
8520 " inspect-get-product-name root\n"
8521 "\n"
8522 msgstr ""
8523
8524 #. type: textblock
8525 #: ../fish/guestfish-actions.pod:2074 ../src/guestfs-actions.pod:3066
8526 msgid ""
8527 "This returns the product name of the inspected operating system.  The "
8528 "product name is generally some freeform string which can be displayed to the "
8529 "user, but should not be parsed by programs."
8530 msgstr ""
8531
8532 #. type: textblock
8533 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
8534 msgid ""
8535 "If the product name could not be determined, then the string C<unknown> is "
8536 "returned."
8537 msgstr ""
8538
8539 #. type: =head2
8540 #: ../fish/guestfish-actions.pod:2084
8541 msgid "inspect-get-product-variant"
8542 msgstr ""
8543
8544 #. type: verbatim
8545 #: ../fish/guestfish-actions.pod:2086
8546 #, no-wrap
8547 msgid ""
8548 " inspect-get-product-variant root\n"
8549 "\n"
8550 msgstr ""
8551
8552 #. type: textblock
8553 #: ../fish/guestfish-actions.pod:2088 ../src/guestfs-actions.pod:3087
8554 msgid "This returns the product variant of the inspected operating system."
8555 msgstr ""
8556
8557 #. type: textblock
8558 #: ../fish/guestfish-actions.pod:2091 ../src/guestfs-actions.pod:3090
8559 msgid ""
8560 "For Windows guests, this returns the contents of the Registry key C<HKLM"
8561 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
8562 "is usually a string such as C<Client> or C<Server> (other values are "
8563 "possible).  This can be used to distinguish consumer and enterprise versions "
8564 "of Windows that have the same version number (for example, Windows 7 and "
8565 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8566 "the latter is C<Server>)."
8567 msgstr ""
8568
8569 #. type: textblock
8570 #: ../fish/guestfish-actions.pod:2100 ../src/guestfs-actions.pod:3099
8571 msgid ""
8572 "For enterprise Linux guests, in future we intend this to return the product "
8573 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8574 "implemented at present."
8575 msgstr ""
8576
8577 #. type: textblock
8578 #: ../fish/guestfish-actions.pod:2104 ../src/guestfs-actions.pod:3103
8579 msgid ""
8580 "If the product variant could not be determined, then the string C<unknown> "
8581 "is returned."
8582 msgstr ""
8583
8584 #. type: textblock
8585 #: ../fish/guestfish-actions.pod:2107
8586 msgid ""
8587 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8588 "get-product-name>, L</inspect-get-major-version>."
8589 msgstr ""
8590
8591 #. type: =head2
8592 #: ../fish/guestfish-actions.pod:2111
8593 msgid "inspect-get-roots"
8594 msgstr ""
8595
8596 #. type: verbatim
8597 #: ../fish/guestfish-actions.pod:2113
8598 #, no-wrap
8599 msgid ""
8600 " inspect-get-roots\n"
8601 "\n"
8602 msgstr ""
8603
8604 #. type: textblock
8605 #: ../fish/guestfish-actions.pod:2115
8606 msgid ""
8607 "This function is a convenient way to get the list of root devices, as "
8608 "returned from a previous call to L</inspect-os>, but without redoing the "
8609 "whole inspection process."
8610 msgstr ""
8611
8612 #. type: textblock
8613 #: ../fish/guestfish-actions.pod:2119
8614 msgid ""
8615 "This returns an empty list if either no root devices were found or the "
8616 "caller has not called L</inspect-os>."
8617 msgstr ""
8618
8619 #. type: =head2
8620 #: ../fish/guestfish-actions.pod:2124
8621 msgid "inspect-get-type"
8622 msgstr ""
8623
8624 #. type: verbatim
8625 #: ../fish/guestfish-actions.pod:2126
8626 #, no-wrap
8627 msgid ""
8628 " inspect-get-type root\n"
8629 "\n"
8630 msgstr ""
8631
8632 #. type: textblock
8633 #: ../fish/guestfish-actions.pod:2128 ../src/guestfs-actions.pod:3141
8634 msgid ""
8635 "This returns the type of the inspected operating system.  Currently defined "
8636 "types are:"
8637 msgstr ""
8638
8639 #. type: =item
8640 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
8641 msgid "\"linux\""
8642 msgstr ""
8643
8644 #. type: textblock
8645 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3148
8646 msgid "Any Linux-based operating system."
8647 msgstr ""
8648
8649 #. type: textblock
8650 #: ../fish/guestfish-actions.pod:2139 ../src/guestfs-actions.pod:3152
8651 msgid "Any Microsoft Windows operating system."
8652 msgstr ""
8653
8654 #. type: =item
8655 #: ../fish/guestfish-actions.pod:2141 ../src/guestfs-actions.pod:3154
8656 msgid "\"freebsd\""
8657 msgstr ""
8658
8659 #. type: textblock
8660 #: ../fish/guestfish-actions.pod:2143 ../src/guestfs-actions.pod:3156
8661 msgid "FreeBSD."
8662 msgstr ""
8663
8664 #. type: textblock
8665 #: ../fish/guestfish-actions.pod:2147 ../src/guestfs-actions.pod:3160
8666 msgid "The operating system type could not be determined."
8667 msgstr ""
8668
8669 #. type: =head2
8670 #: ../fish/guestfish-actions.pod:2156
8671 msgid "inspect-get-windows-current-control-set"
8672 msgstr ""
8673
8674 #. type: verbatim
8675 #: ../fish/guestfish-actions.pod:2158
8676 #, no-wrap
8677 msgid ""
8678 " inspect-get-windows-current-control-set root\n"
8679 "\n"
8680 msgstr ""
8681
8682 #. type: textblock
8683 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3180
8684 msgid ""
8685 "This returns the Windows CurrentControlSet of the inspected guest.  The "
8686 "CurrentControlSet is a registry key name such as C<ControlSet001>."
8687 msgstr ""
8688
8689 #. type: textblock
8690 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3183
8691 msgid ""
8692 "This call assumes that the guest is Windows and that the Registry could be "
8693 "examined by inspection.  If this is not the case then an error is returned."
8694 msgstr ""
8695
8696 #. type: =head2
8697 #: ../fish/guestfish-actions.pod:2169
8698 msgid "inspect-get-windows-systemroot"
8699 msgstr ""
8700
8701 #. type: verbatim
8702 #: ../fish/guestfish-actions.pod:2171
8703 #, no-wrap
8704 msgid ""
8705 " inspect-get-windows-systemroot root\n"
8706 "\n"
8707 msgstr ""
8708
8709 #. type: textblock
8710 #: ../fish/guestfish-actions.pod:2173 ../src/guestfs-actions.pod:3200
8711 msgid ""
8712 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8713 "is a directory path such as C</WINDOWS>."
8714 msgstr ""
8715
8716 #. type: textblock
8717 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3203
8718 msgid ""
8719 "This call assumes that the guest is Windows and that the systemroot could be "
8720 "determined by inspection.  If this is not the case then an error is returned."
8721 msgstr ""
8722
8723 #. type: =head2
8724 #: ../fish/guestfish-actions.pod:2182
8725 msgid "inspect-is-live"
8726 msgstr ""
8727
8728 #. type: verbatim
8729 #: ../fish/guestfish-actions.pod:2184
8730 #, no-wrap
8731 msgid ""
8732 " inspect-is-live root\n"
8733 "\n"
8734 msgstr ""
8735
8736 #. type: textblock
8737 #: ../fish/guestfish-actions.pod:2186
8738 msgid ""
8739 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8740 "then this returns true if a live image was detected on the disk."
8741 msgstr ""
8742
8743 #. type: =head2
8744 #: ../fish/guestfish-actions.pod:2192
8745 msgid "inspect-is-multipart"
8746 msgstr ""
8747
8748 #. type: verbatim
8749 #: ../fish/guestfish-actions.pod:2194
8750 #, no-wrap
8751 msgid ""
8752 " inspect-is-multipart root\n"
8753 "\n"
8754 msgstr ""
8755
8756 #. type: textblock
8757 #: ../fish/guestfish-actions.pod:2196
8758 msgid ""
8759 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8760 "then this returns true if the disk is part of a set."
8761 msgstr ""
8762
8763 #. type: =head2
8764 #: ../fish/guestfish-actions.pod:2202
8765 msgid "inspect-is-netinst"
8766 msgstr ""
8767
8768 #. type: verbatim
8769 #: ../fish/guestfish-actions.pod:2204
8770 #, no-wrap
8771 msgid ""
8772 " inspect-is-netinst root\n"
8773 "\n"
8774 msgstr ""
8775
8776 #. type: textblock
8777 #: ../fish/guestfish-actions.pod:2206
8778 msgid ""
8779 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8780 "then this returns true if the disk is a network installer, ie. not a self-"
8781 "contained install CD but one which is likely to require network access to "
8782 "complete the install."
8783 msgstr ""
8784
8785 #. type: =head2
8786 #: ../fish/guestfish-actions.pod:2214
8787 msgid "inspect-list-applications"
8788 msgstr ""
8789
8790 #. type: verbatim
8791 #: ../fish/guestfish-actions.pod:2216
8792 #, no-wrap
8793 msgid ""
8794 " inspect-list-applications root\n"
8795 "\n"
8796 msgstr ""
8797
8798 #. type: textblock
8799 #: ../fish/guestfish-actions.pod:2218 ../src/guestfs-actions.pod:3270
8800 msgid "Return the list of applications installed in the operating system."
8801 msgstr ""
8802
8803 #. type: textblock
8804 #: ../fish/guestfish-actions.pod:2220
8805 msgid ""
8806 "I<Note:> This call works differently from other parts of the inspection "
8807 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
8808 "then mount up the disks, before calling this.  Listing applications is a "
8809 "significantly more difficult operation which requires access to the full "
8810 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
8811 "are just returning data cached in the libguestfs handle, this call actually "
8812 "reads parts of the mounted filesystems during the call."
8813 msgstr ""
8814
8815 #. type: textblock
8816 #: ../fish/guestfish-actions.pod:2230 ../src/guestfs-actions.pod:3282
8817 msgid ""
8818 "This returns an empty list if the inspection code was not able to determine "
8819 "the list of applications."
8820 msgstr ""
8821
8822 #. type: textblock
8823 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3285
8824 msgid "The application structure contains the following fields:"
8825 msgstr ""
8826
8827 #. type: =item
8828 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3289
8829 msgid "C<app_name>"
8830 msgstr ""
8831
8832 #. type: textblock
8833 #: ../fish/guestfish-actions.pod:2239 ../src/guestfs-actions.pod:3291
8834 msgid ""
8835 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8836 "guests, this is the package name."
8837 msgstr ""
8838
8839 #. type: =item
8840 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
8841 msgid "C<app_display_name>"
8842 msgstr ""
8843
8844 #. type: textblock
8845 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
8846 msgid ""
8847 "The display name of the application, sometimes localized to the install "
8848 "language of the guest operating system."
8849 msgstr ""
8850
8851 #. type: textblock
8852 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
8853 msgid ""
8854 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8855 "to display something can use C<app_name> instead."
8856 msgstr ""
8857
8858 #. type: =item
8859 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3302
8860 msgid "C<app_epoch>"
8861 msgstr ""
8862
8863 #. type: textblock
8864 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
8865 msgid ""
8866 "For package managers which use epochs, this contains the epoch of the "
8867 "package (an integer).  If unavailable, this is returned as C<0>."
8868 msgstr ""
8869
8870 #. type: =item
8871 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
8872 msgid "C<app_version>"
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
8877 msgid ""
8878 "The version string of the application or package.  If unavailable this is "
8879 "returned as an empty string C<\"\">."
8880 msgstr ""
8881
8882 #. type: =item
8883 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
8884 msgid "C<app_release>"
8885 msgstr ""
8886
8887 #. type: textblock
8888 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
8889 msgid ""
8890 "The release string of the application or package, for package managers that "
8891 "use this.  If unavailable this is returned as an empty string C<\"\">."
8892 msgstr ""
8893
8894 #. type: =item
8895 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3318
8896 msgid "C<app_install_path>"
8897 msgstr ""
8898
8899 #. type: textblock
8900 #: ../fish/guestfish-actions.pod:2268 ../src/guestfs-actions.pod:3320
8901 msgid ""
8902 "The installation path of the application (on operating systems such as "
8903 "Windows which use installation paths).  This path is in the format used by "
8904 "the guest operating system, it is not a libguestfs path."
8905 msgstr ""
8906
8907 #. type: textblock
8908 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
8909 msgid "If unavailable this is returned as an empty string C<\"\">."
8910 msgstr ""
8911
8912 #. type: =item
8913 #: ../fish/guestfish-actions.pod:2275 ../src/guestfs-actions.pod:3327
8914 msgid "C<app_trans_path>"
8915 msgstr ""
8916
8917 #. type: textblock
8918 #: ../fish/guestfish-actions.pod:2277 ../src/guestfs-actions.pod:3329
8919 msgid ""
8920 "The install path translated into a libguestfs path.  If unavailable this is "
8921 "returned as an empty string C<\"\">."
8922 msgstr ""
8923
8924 #. type: =item
8925 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
8926 msgid "C<app_publisher>"
8927 msgstr ""
8928
8929 #. type: textblock
8930 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
8931 msgid ""
8932 "The name of the publisher of the application, for package managers that use "
8933 "this.  If unavailable this is returned as an empty string C<\"\">."
8934 msgstr ""
8935
8936 #. type: =item
8937 #: ../fish/guestfish-actions.pod:2286 ../src/guestfs-actions.pod:3338
8938 msgid "C<app_url>"
8939 msgstr ""
8940
8941 #. type: textblock
8942 #: ../fish/guestfish-actions.pod:2288 ../src/guestfs-actions.pod:3340
8943 msgid ""
8944 "The URL (eg. upstream URL) of the application.  If unavailable this is "
8945 "returned as an empty string C<\"\">."
8946 msgstr ""
8947
8948 #. type: =item
8949 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
8950 msgid "C<app_source_package>"
8951 msgstr ""
8952
8953 #. type: textblock
8954 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
8955 msgid ""
8956 "For packaging systems which support this, the name of the source package.  "
8957 "If unavailable this is returned as an empty string C<\"\">."
8958 msgstr ""
8959
8960 #. type: =item
8961 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
8962 msgid "C<app_summary>"
8963 msgstr ""
8964
8965 #. type: textblock
8966 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
8967 msgid ""
8968 "A short (usually one line) description of the application or package.  If "
8969 "unavailable this is returned as an empty string C<\"\">."
8970 msgstr ""
8971
8972 #. type: =item
8973 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
8974 msgid "C<app_description>"
8975 msgstr ""
8976
8977 #. type: textblock
8978 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
8979 msgid ""
8980 "A longer description of the application or package.  If unavailable this is "
8981 "returned as an empty string C<\"\">."
8982 msgstr ""
8983
8984 #. type: =head2
8985 #: ../fish/guestfish-actions.pod:2310
8986 msgid "inspect-os"
8987 msgstr ""
8988
8989 #. type: verbatim
8990 #: ../fish/guestfish-actions.pod:2312
8991 #, no-wrap
8992 msgid ""
8993 " inspect-os\n"
8994 "\n"
8995 msgstr ""
8996
8997 #. type: textblock
8998 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3373
8999 msgid ""
9000 "This function uses other libguestfs functions and certain heuristics to "
9001 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9002 "for operating systems."
9003 msgstr ""
9004
9005 #. type: textblock
9006 #: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3377
9007 msgid "The list returned is empty if no operating systems were found."
9008 msgstr ""
9009
9010 #. type: textblock
9011 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3379
9012 msgid ""
9013 "If one operating system was found, then this returns a list with a single "
9014 "element, which is the name of the root filesystem of this operating system.  "
9015 "It is also possible for this function to return a list containing more than "
9016 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9017 "element being the root filesystem of one of the operating systems."
9018 msgstr ""
9019
9020 #. type: textblock
9021 #: ../fish/guestfish-actions.pod:2327
9022 msgid ""
9023 "You can pass the root string(s) returned to other L</inspect-get-*> "
9024 "functions in order to query further information about each operating system, "
9025 "such as the name and version."
9026 msgstr ""
9027
9028 #. type: textblock
9029 #: ../fish/guestfish-actions.pod:2332
9030 msgid ""
9031 "This function uses other libguestfs features such as L</mount-ro> and L</"
9032 "umount-all> in order to mount and unmount filesystems and look at the "
9033 "contents.  This should be called with no disks currently mounted.  The "
9034 "function may also use Augeas, so any existing Augeas handle will be closed."
9035 msgstr ""
9036
9037 #. type: textblock
9038 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3397
9039 msgid ""
9040 "This function cannot decrypt encrypted disks.  The caller must do that first "
9041 "(supplying the necessary keys) if the disk is encrypted."
9042 msgstr ""
9043
9044 #. type: textblock
9045 #: ../fish/guestfish-actions.pod:2344 ../fish/guestfish-actions.pod:2542
9046 #: ../fish/guestfish-actions.pod:2601
9047 msgid "See also L</list-filesystems>."
9048 msgstr ""
9049
9050 #. type: =head2
9051 #: ../fish/guestfish-actions.pod:2346
9052 msgid "is-blockdev"
9053 msgstr ""
9054
9055 #. type: verbatim
9056 #: ../fish/guestfish-actions.pod:2348
9057 #, no-wrap
9058 msgid ""
9059 " is-blockdev path\n"
9060 "\n"
9061 msgstr ""
9062
9063 #. type: textblock
9064 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3417
9065 msgid ""
9066 "This returns C<true> if and only if there is a block device with the given "
9067 "C<path> name."
9068 msgstr ""
9069
9070 #. type: textblock
9071 #: ../fish/guestfish-actions.pod:2353 ../fish/guestfish-actions.pod:2371
9072 #: ../fish/guestfish-actions.pod:2390 ../fish/guestfish-actions.pod:2399
9073 #: ../fish/guestfish-actions.pod:2409 ../fish/guestfish-actions.pod:2443
9074 #: ../fish/guestfish-actions.pod:2452
9075 msgid "See also L</stat>."
9076 msgstr ""
9077
9078 #. type: =head2
9079 #: ../fish/guestfish-actions.pod:2355
9080 msgid "is-busy"
9081 msgstr ""
9082
9083 #. type: verbatim
9084 #: ../fish/guestfish-actions.pod:2357
9085 #, no-wrap
9086 msgid ""
9087 " is-busy\n"
9088 "\n"
9089 msgstr ""
9090
9091 #. type: textblock
9092 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3431
9093 msgid ""
9094 "This returns true iff this handle is busy processing a command (in the "
9095 "C<BUSY> state)."
9096 msgstr ""
9097
9098 #. type: =head2
9099 #: ../fish/guestfish-actions.pod:2364
9100 msgid "is-chardev"
9101 msgstr ""
9102
9103 #. type: verbatim
9104 #: ../fish/guestfish-actions.pod:2366
9105 #, no-wrap
9106 msgid ""
9107 " is-chardev path\n"
9108 "\n"
9109 msgstr ""
9110
9111 #. type: textblock
9112 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3446
9113 msgid ""
9114 "This returns C<true> if and only if there is a character device with the "
9115 "given C<path> name."
9116 msgstr ""
9117
9118 #. type: =head2
9119 #: ../fish/guestfish-actions.pod:2373
9120 msgid "is-config"
9121 msgstr ""
9122
9123 #. type: verbatim
9124 #: ../fish/guestfish-actions.pod:2375
9125 #, no-wrap
9126 msgid ""
9127 " is-config\n"
9128 "\n"
9129 msgstr ""
9130
9131 #. type: textblock
9132 #: ../fish/guestfish-actions.pod:2377 ../src/guestfs-actions.pod:3460
9133 msgid ""
9134 "This returns true iff this handle is being configured (in the C<CONFIG> "
9135 "state)."
9136 msgstr ""
9137
9138 #. type: =head2
9139 #: ../fish/guestfish-actions.pod:2382
9140 msgid "is-dir"
9141 msgstr ""
9142
9143 #. type: verbatim
9144 #: ../fish/guestfish-actions.pod:2384
9145 #, no-wrap
9146 msgid ""
9147 " is-dir path\n"
9148 "\n"
9149 msgstr ""
9150
9151 #. type: textblock
9152 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3475
9153 msgid ""
9154 "This returns C<true> if and only if there is a directory with the given "
9155 "C<path> name.  Note that it returns false for other objects like files."
9156 msgstr ""
9157
9158 #. type: =head2
9159 #: ../fish/guestfish-actions.pod:2392
9160 msgid "is-fifo"
9161 msgstr ""
9162
9163 #. type: verbatim
9164 #: ../fish/guestfish-actions.pod:2394
9165 #, no-wrap
9166 msgid ""
9167 " is-fifo path\n"
9168 "\n"
9169 msgstr ""
9170
9171 #. type: textblock
9172 #: ../fish/guestfish-actions.pod:2396 ../src/guestfs-actions.pod:3491
9173 msgid ""
9174 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9175 "given C<path> name."
9176 msgstr ""
9177
9178 #. type: =head2
9179 #: ../fish/guestfish-actions.pod:2401
9180 msgid "is-file"
9181 msgstr ""
9182
9183 #. type: verbatim
9184 #: ../fish/guestfish-actions.pod:2403
9185 #, no-wrap
9186 msgid ""
9187 " is-file path\n"
9188 "\n"
9189 msgstr ""
9190
9191 #. type: textblock
9192 #: ../fish/guestfish-actions.pod:2405 ../src/guestfs-actions.pod:3506
9193 msgid ""
9194 "This returns C<true> if and only if there is a regular file with the given "
9195 "C<path> name.  Note that it returns false for other objects like directories."
9196 msgstr ""
9197
9198 #. type: =head2
9199 #: ../fish/guestfish-actions.pod:2411
9200 msgid "is-launching"
9201 msgstr ""
9202
9203 #. type: verbatim
9204 #: ../fish/guestfish-actions.pod:2413
9205 #, no-wrap
9206 msgid ""
9207 " is-launching\n"
9208 "\n"
9209 msgstr ""
9210
9211 #. type: textblock
9212 #: ../fish/guestfish-actions.pod:2415 ../src/guestfs-actions.pod:3521
9213 msgid ""
9214 "This returns true iff this handle is launching the subprocess (in the "
9215 "C<LAUNCHING> state)."
9216 msgstr ""
9217
9218 #. type: =head2
9219 #: ../fish/guestfish-actions.pod:2420
9220 msgid "is-lv"
9221 msgstr ""
9222
9223 #. type: verbatim
9224 #: ../fish/guestfish-actions.pod:2422
9225 #, no-wrap
9226 msgid ""
9227 " is-lv device\n"
9228 "\n"
9229 msgstr ""
9230
9231 #. type: textblock
9232 #: ../fish/guestfish-actions.pod:2424 ../src/guestfs-actions.pod:3536
9233 msgid ""
9234 "This command tests whether C<device> is a logical volume, and returns true "
9235 "iff this is the case."
9236 msgstr ""
9237
9238 #. type: =head2
9239 #: ../fish/guestfish-actions.pod:2427
9240 msgid "is-ready"
9241 msgstr ""
9242
9243 #. type: verbatim
9244 #: ../fish/guestfish-actions.pod:2429
9245 #, no-wrap
9246 msgid ""
9247 " is-ready\n"
9248 "\n"
9249 msgstr ""
9250
9251 #. type: textblock
9252 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3548
9253 msgid ""
9254 "This returns true iff this handle is ready to accept commands (in the "
9255 "C<READY> state)."
9256 msgstr ""
9257
9258 #. type: =head2
9259 #: ../fish/guestfish-actions.pod:2436
9260 msgid "is-socket"
9261 msgstr ""
9262
9263 #. type: verbatim
9264 #: ../fish/guestfish-actions.pod:2438
9265 #, no-wrap
9266 msgid ""
9267 " is-socket path\n"
9268 "\n"
9269 msgstr ""
9270
9271 #. type: textblock
9272 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3563
9273 msgid ""
9274 "This returns C<true> if and only if there is a Unix domain socket with the "
9275 "given C<path> name."
9276 msgstr ""
9277
9278 #. type: =head2
9279 #: ../fish/guestfish-actions.pod:2445
9280 msgid "is-symlink"
9281 msgstr ""
9282
9283 #. type: verbatim
9284 #: ../fish/guestfish-actions.pod:2447
9285 #, no-wrap
9286 msgid ""
9287 " is-symlink path\n"
9288 "\n"
9289 msgstr ""
9290
9291 #. type: textblock
9292 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3578
9293 msgid ""
9294 "This returns C<true> if and only if there is a symbolic link with the given "
9295 "C<path> name."
9296 msgstr ""
9297
9298 #. type: =head2
9299 #: ../fish/guestfish-actions.pod:2454
9300 msgid "is-zero"
9301 msgstr ""
9302
9303 #. type: verbatim
9304 #: ../fish/guestfish-actions.pod:2456
9305 #, no-wrap
9306 msgid ""
9307 " is-zero path\n"
9308 "\n"
9309 msgstr ""
9310
9311 #. type: textblock
9312 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3593
9313 msgid ""
9314 "This returns true iff the file exists and the file is empty or it contains "
9315 "all zero bytes."
9316 msgstr ""
9317
9318 #. type: =head2
9319 #: ../fish/guestfish-actions.pod:2461
9320 msgid "is-zero-device"
9321 msgstr ""
9322
9323 #. type: verbatim
9324 #: ../fish/guestfish-actions.pod:2463
9325 #, no-wrap
9326 msgid ""
9327 " is-zero-device device\n"
9328 "\n"
9329 msgstr ""
9330
9331 #. type: textblock
9332 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3606
9333 msgid "This returns true iff the device exists and contains all zero bytes."
9334 msgstr ""
9335
9336 #. type: textblock
9337 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3608
9338 msgid "Note that for large devices this can take a long time to run."
9339 msgstr ""
9340
9341 #. type: =head2
9342 #: ../fish/guestfish-actions.pod:2469
9343 msgid "kill-subprocess"
9344 msgstr ""
9345
9346 #. type: verbatim
9347 #: ../fish/guestfish-actions.pod:2471
9348 #, no-wrap
9349 msgid ""
9350 " kill-subprocess\n"
9351 "\n"
9352 msgstr ""
9353
9354 #. type: textblock
9355 #: ../fish/guestfish-actions.pod:2473 ../src/guestfs-actions.pod:3619
9356 msgid "This kills the qemu subprocess.  You should never need to call this."
9357 msgstr ""
9358
9359 #. type: =head2
9360 #: ../fish/guestfish-actions.pod:2475
9361 msgid "launch"
9362 msgstr ""
9363
9364 #. type: =head2
9365 #: ../fish/guestfish-actions.pod:2477
9366 msgid "run"
9367 msgstr ""
9368
9369 #. type: verbatim
9370 #: ../fish/guestfish-actions.pod:2479
9371 #, no-wrap
9372 msgid ""
9373 " launch\n"
9374 "\n"
9375 msgstr ""
9376
9377 #. type: textblock
9378 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3630
9379 msgid ""
9380 "Internally libguestfs is implemented by running a virtual machine using "
9381 "L<qemu(1)>."
9382 msgstr ""
9383
9384 #. type: textblock
9385 #: ../fish/guestfish-actions.pod:2484 ../src/guestfs-actions.pod:3633
9386 msgid ""
9387 "You should call this after configuring the handle (eg. adding drives) but "
9388 "before performing any actions."
9389 msgstr ""
9390
9391 #. type: =head2
9392 #: ../fish/guestfish-actions.pod:2487
9393 msgid "lchown"
9394 msgstr ""
9395
9396 #. type: verbatim
9397 #: ../fish/guestfish-actions.pod:2489
9398 #, no-wrap
9399 msgid ""
9400 " lchown owner group path\n"
9401 "\n"
9402 msgstr ""
9403
9404 #. type: textblock
9405 #: ../fish/guestfish-actions.pod:2491
9406 msgid ""
9407 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
9408 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9409 "target."
9410 msgstr ""
9411
9412 #. type: =head2
9413 #: ../fish/guestfish-actions.pod:2499
9414 msgid "lgetxattr"
9415 msgstr ""
9416
9417 #. type: verbatim
9418 #: ../fish/guestfish-actions.pod:2501
9419 #, no-wrap
9420 msgid ""
9421 " lgetxattr path name\n"
9422 "\n"
9423 msgstr ""
9424
9425 #. type: textblock
9426 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3673
9427 msgid ""
9428 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
9429 "is a symlink, then this call returns an extended attribute from the symlink."
9430 msgstr ""
9431
9432 #. type: textblock
9433 #: ../fish/guestfish-actions.pod:2517
9434 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
9435 msgstr ""
9436
9437 #. type: =head2
9438 #: ../fish/guestfish-actions.pod:2519
9439 msgid "lgetxattrs"
9440 msgstr ""
9441
9442 #. type: verbatim
9443 #: ../fish/guestfish-actions.pod:2521
9444 #, no-wrap
9445 msgid ""
9446 " lgetxattrs path\n"
9447 "\n"
9448 msgstr ""
9449
9450 #. type: textblock
9451 #: ../fish/guestfish-actions.pod:2523
9452 msgid ""
9453 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
9454 "it returns the extended attributes of the link itself."
9455 msgstr ""
9456
9457 #. type: =head2
9458 #: ../fish/guestfish-actions.pod:2527
9459 msgid "list-9p"
9460 msgstr ""
9461
9462 #. type: verbatim
9463 #: ../fish/guestfish-actions.pod:2529
9464 #, no-wrap
9465 msgid ""
9466 " list-9p\n"
9467 "\n"
9468 msgstr ""
9469
9470 #. type: textblock
9471 #: ../fish/guestfish-actions.pod:2531 ../src/guestfs-actions.pod:3716
9472 msgid ""
9473 "List all 9p filesystems attached to the guest.  A list of mount tags is "
9474 "returned."
9475 msgstr ""
9476
9477 #. type: =head2
9478 #: ../fish/guestfish-actions.pod:2534
9479 msgid "list-devices"
9480 msgstr ""
9481
9482 #. type: verbatim
9483 #: ../fish/guestfish-actions.pod:2536
9484 #, no-wrap
9485 msgid ""
9486 " list-devices\n"
9487 "\n"
9488 msgstr ""
9489
9490 #. type: textblock
9491 #: ../fish/guestfish-actions.pod:2538 ../src/guestfs-actions.pod:3730
9492 msgid "List all the block devices."
9493 msgstr ""
9494
9495 #. type: textblock
9496 #: ../fish/guestfish-actions.pod:2540 ../src/guestfs-actions.pod:3732
9497 msgid "The full block device names are returned, eg. C</dev/sda>."
9498 msgstr ""
9499
9500 #. type: =head2
9501 #: ../fish/guestfish-actions.pod:2544
9502 msgid "list-dm-devices"
9503 msgstr ""
9504
9505 #. type: verbatim
9506 #: ../fish/guestfish-actions.pod:2546
9507 #, no-wrap
9508 msgid ""
9509 " list-dm-devices\n"
9510 "\n"
9511 msgstr ""
9512
9513 #. type: textblock
9514 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3747
9515 msgid "List all device mapper devices."
9516 msgstr ""
9517
9518 #. type: textblock
9519 #: ../fish/guestfish-actions.pod:2550
9520 msgid ""
9521 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9522 "previous call to L</luks-open>."
9523 msgstr ""
9524
9525 #. type: textblock
9526 #: ../fish/guestfish-actions.pod:2553
9527 msgid ""
9528 "Device mapper devices which correspond to logical volumes are I<not> "
9529 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9530 msgstr ""
9531
9532 #. type: =head2
9533 #: ../fish/guestfish-actions.pod:2557
9534 msgid "list-filesystems"
9535 msgstr ""
9536
9537 #. type: verbatim
9538 #: ../fish/guestfish-actions.pod:2559
9539 #, no-wrap
9540 msgid ""
9541 " list-filesystems\n"
9542 "\n"
9543 msgstr ""
9544
9545 #. type: textblock
9546 #: ../fish/guestfish-actions.pod:2561 ../src/guestfs-actions.pod:3767
9547 msgid ""
9548 "This inspection command looks for filesystems on partitions, block devices "
9549 "and logical volumes, returning a list of devices containing filesystems and "
9550 "their type."
9551 msgstr ""
9552
9553 #. type: textblock
9554 #: ../fish/guestfish-actions.pod:2565 ../src/guestfs-actions.pod:3771
9555 msgid ""
9556 "The return value is a hash, where the keys are the devices containing "
9557 "filesystems, and the values are the filesystem types.  For example:"
9558 msgstr ""
9559
9560 #. type: verbatim
9561 #: ../fish/guestfish-actions.pod:2569 ../src/guestfs-actions.pod:3775
9562 #, no-wrap
9563 msgid ""
9564 " \"/dev/sda1\" => \"ntfs\"\n"
9565 " \"/dev/sda2\" => \"ext2\"\n"
9566 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9567 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9568 "\n"
9569 msgstr ""
9570
9571 #. type: textblock
9572 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
9573 msgid ""
9574 "The value can have the special value \"unknown\", meaning the content of the "
9575 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9576 msgstr ""
9577
9578 #. type: textblock
9579 #: ../fish/guestfish-actions.pod:2578
9580 msgid ""
9581 "This command runs other libguestfs commands, which might include L</mount> "
9582 "and L</umount>, and therefore you should use this soon after launch and only "
9583 "when nothing is mounted."
9584 msgstr ""
9585
9586 #. type: textblock
9587 #: ../fish/guestfish-actions.pod:2582
9588 msgid ""
9589 "Not all of the filesystems returned will be mountable.  In particular, swap "
9590 "partitions are returned in the list.  Also this command does not check that "
9591 "each filesystem found is valid and mountable, and some filesystems might be "
9592 "mountable but require special options.  Filesystems may not all belong to a "
9593 "single logical operating system (use L</inspect-os> to look for OSes)."
9594 msgstr ""
9595
9596 #. type: =head2
9597 #: ../fish/guestfish-actions.pod:2590
9598 msgid "list-partitions"
9599 msgstr ""
9600
9601 #. type: verbatim
9602 #: ../fish/guestfish-actions.pod:2592
9603 #, no-wrap
9604 msgid ""
9605 " list-partitions\n"
9606 "\n"
9607 msgstr ""
9608
9609 #. type: textblock
9610 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3809
9611 msgid "List all the partitions detected on all block devices."
9612 msgstr ""
9613
9614 #. type: textblock
9615 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3811
9616 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9617 msgstr ""
9618
9619 #. type: textblock
9620 #: ../fish/guestfish-actions.pod:2598
9621 msgid ""
9622 "This does not return logical volumes.  For that you will need to call L</"
9623 "lvs>."
9624 msgstr ""
9625
9626 #. type: =head2
9627 #: ../fish/guestfish-actions.pod:2603
9628 msgid "ll"
9629 msgstr ""
9630
9631 #. type: verbatim
9632 #: ../fish/guestfish-actions.pod:2605
9633 #, no-wrap
9634 msgid ""
9635 " ll directory\n"
9636 "\n"
9637 msgstr ""
9638
9639 #. type: textblock
9640 #: ../fish/guestfish-actions.pod:2607 ../src/guestfs-actions.pod:3830
9641 msgid ""
9642 "List the files in C<directory> (relative to the root directory, there is no "
9643 "cwd) in the format of 'ls -la'."
9644 msgstr ""
9645
9646 #. type: textblock
9647 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3833
9648 msgid ""
9649 "This command is mostly useful for interactive sessions.  It is I<not> "
9650 "intended that you try to parse the output string."
9651 msgstr ""
9652
9653 #. type: =head2
9654 #: ../fish/guestfish-actions.pod:2613
9655 msgid "ln"
9656 msgstr ""
9657
9658 #. type: verbatim
9659 #: ../fish/guestfish-actions.pod:2615
9660 #, no-wrap
9661 msgid ""
9662 " ln target linkname\n"
9663 "\n"
9664 msgstr ""
9665
9666 #. type: textblock
9667 #: ../fish/guestfish-actions.pod:2617 ../src/guestfs-actions.pod:3848
9668 msgid "This command creates a hard link using the C<ln> command."
9669 msgstr ""
9670
9671 #. type: =head2
9672 #: ../fish/guestfish-actions.pod:2619
9673 msgid "ln-f"
9674 msgstr ""
9675
9676 #. type: verbatim
9677 #: ../fish/guestfish-actions.pod:2621
9678 #, no-wrap
9679 msgid ""
9680 " ln-f target linkname\n"
9681 "\n"
9682 msgstr ""
9683
9684 #. type: textblock
9685 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3861
9686 msgid ""
9687 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
9688 "option removes the link (C<linkname>) if it exists already."
9689 msgstr ""
9690
9691 #. type: =head2
9692 #: ../fish/guestfish-actions.pod:2626
9693 msgid "ln-s"
9694 msgstr ""
9695
9696 #. type: verbatim
9697 #: ../fish/guestfish-actions.pod:2628
9698 #, no-wrap
9699 msgid ""
9700 " ln-s target linkname\n"
9701 "\n"
9702 msgstr ""
9703
9704 #. type: textblock
9705 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3875
9706 msgid "This command creates a symbolic link using the C<ln -s> command."
9707 msgstr ""
9708
9709 #. type: =head2
9710 #: ../fish/guestfish-actions.pod:2632
9711 msgid "ln-sf"
9712 msgstr ""
9713
9714 #. type: verbatim
9715 #: ../fish/guestfish-actions.pod:2634
9716 #, no-wrap
9717 msgid ""
9718 " ln-sf target linkname\n"
9719 "\n"
9720 msgstr ""
9721
9722 #. type: textblock
9723 #: ../fish/guestfish-actions.pod:2636 ../src/guestfs-actions.pod:3888
9724 msgid ""
9725 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
9726 "option removes the link (C<linkname>) if it exists already."
9727 msgstr ""
9728
9729 #. type: =head2
9730 #: ../fish/guestfish-actions.pod:2639
9731 msgid "lremovexattr"
9732 msgstr ""
9733
9734 #. type: verbatim
9735 #: ../fish/guestfish-actions.pod:2641
9736 #, no-wrap
9737 msgid ""
9738 " lremovexattr xattr path\n"
9739 "\n"
9740 msgstr ""
9741
9742 #. type: textblock
9743 #: ../fish/guestfish-actions.pod:2643
9744 msgid ""
9745 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
9746 "it removes an extended attribute of the link itself."
9747 msgstr ""
9748
9749 #. type: =head2
9750 #: ../fish/guestfish-actions.pod:2647
9751 msgid "ls"
9752 msgstr ""
9753
9754 #. type: verbatim
9755 #: ../fish/guestfish-actions.pod:2649
9756 #, no-wrap
9757 msgid ""
9758 " ls directory\n"
9759 "\n"
9760 msgstr ""
9761
9762 #. type: textblock
9763 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3916
9764 msgid ""
9765 "List the files in C<directory> (relative to the root directory, there is no "
9766 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
9767 msgstr ""
9768
9769 #. type: textblock
9770 #: ../fish/guestfish-actions.pod:2655
9771 msgid ""
9772 "This command is mostly useful for interactive sessions.  Programs should "
9773 "probably use L</readdir> instead."
9774 msgstr ""
9775
9776 #. type: =head2
9777 #: ../fish/guestfish-actions.pod:2658
9778 msgid "lsetxattr"
9779 msgstr ""
9780
9781 #. type: verbatim
9782 #: ../fish/guestfish-actions.pod:2660
9783 #, no-wrap
9784 msgid ""
9785 " lsetxattr xattr val vallen path\n"
9786 "\n"
9787 msgstr ""
9788
9789 #. type: textblock
9790 #: ../fish/guestfish-actions.pod:2662
9791 msgid ""
9792 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
9793 "sets an extended attribute of the link itself."
9794 msgstr ""
9795
9796 #. type: =head2
9797 #: ../fish/guestfish-actions.pod:2666
9798 msgid "lstat"
9799 msgstr ""
9800
9801 #. type: verbatim
9802 #: ../fish/guestfish-actions.pod:2668
9803 #, no-wrap
9804 msgid ""
9805 " lstat path\n"
9806 "\n"
9807 msgstr ""
9808
9809 #. type: textblock
9810 #: ../fish/guestfish-actions.pod:2670 ../fish/guestfish-actions.pod:4478
9811 #: ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:6731
9812 msgid "Returns file information for the given C<path>."
9813 msgstr ""
9814
9815 #. type: textblock
9816 #: ../fish/guestfish-actions.pod:2672
9817 msgid ""
9818 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
9819 "the link is stat-ed, not the file it refers to."
9820 msgstr ""
9821
9822 #. type: textblock
9823 #: ../fish/guestfish-actions.pod:2676 ../src/guestfs-actions.pod:3958
9824 msgid "This is the same as the C<lstat(2)> system call."
9825 msgstr ""
9826
9827 #. type: =head2
9828 #: ../fish/guestfish-actions.pod:2678
9829 msgid "lstatlist"
9830 msgstr ""
9831
9832 #. type: verbatim
9833 #: ../fish/guestfish-actions.pod:2680
9834 #, no-wrap
9835 msgid ""
9836 " lstatlist path 'names ...'\n"
9837 "\n"
9838 msgstr ""
9839
9840 #. type: textblock
9841 #: ../fish/guestfish-actions.pod:2682
9842 msgid ""
9843 "This call allows you to perform the L</lstat> operation on multiple files, "
9844 "where all files are in the directory C<path>.  C<names> is the list of files "
9845 "from this directory."
9846 msgstr ""
9847
9848 #. type: textblock
9849 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3977
9850 msgid ""
9851 "On return you get a list of stat structs, with a one-to-one correspondence "
9852 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9853 "then the C<ino> field of that structure is set to C<-1>."
9854 msgstr ""
9855
9856 #. type: textblock
9857 #: ../fish/guestfish-actions.pod:2691
9858 msgid ""
9859 "This call is intended for programs that want to efficiently list a directory "
9860 "contents without making many round-trips.  See also L</lxattrlist> for a "
9861 "similarly efficient call for getting extended attributes.  Very long "
9862 "directory listings might cause the protocol message size to be exceeded, "
9863 "causing this call to fail.  The caller must split up such requests into "
9864 "smaller groups of names."
9865 msgstr ""
9866
9867 #. type: =head2
9868 #: ../fish/guestfish-actions.pod:2699
9869 msgid "luks-add-key"
9870 msgstr ""
9871
9872 #. type: verbatim
9873 #: ../fish/guestfish-actions.pod:2701
9874 #, no-wrap
9875 msgid ""
9876 " luks-add-key device keyslot\n"
9877 "\n"
9878 msgstr ""
9879
9880 #. type: textblock
9881 #: ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:4005
9882 msgid ""
9883 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9884 "existing key, and is used to access the device.  C<newkey> is the new key to "
9885 "add.  C<keyslot> is the key slot that will be replaced."
9886 msgstr ""
9887
9888 #. type: textblock
9889 #: ../fish/guestfish-actions.pod:2708
9890 msgid ""
9891 "Note that if C<keyslot> already contains a key, then this command will "
9892 "fail.  You have to use L</luks-kill-slot> first to remove that key."
9893 msgstr ""
9894
9895 #. type: textblock
9896 #: ../fish/guestfish-actions.pod:2712 ../fish/guestfish-actions.pod:2734
9897 #: ../fish/guestfish-actions.pod:2747 ../fish/guestfish-actions.pod:2761
9898 #: ../fish/guestfish-actions.pod:2787 ../fish/guestfish-actions.pod:2797
9899 msgid ""
9900 "This command has one or more key or passphrase parameters.  Guestfish will "
9901 "prompt for these separately."
9902 msgstr ""
9903
9904 #. type: =head2
9905 #: ../fish/guestfish-actions.pod:2715
9906 msgid "luks-close"
9907 msgstr ""
9908
9909 #. type: verbatim
9910 #: ../fish/guestfish-actions.pod:2717
9911 #, no-wrap
9912 msgid ""
9913 " luks-close device\n"
9914 "\n"
9915 msgstr ""
9916
9917 #. type: textblock
9918 #: ../fish/guestfish-actions.pod:2719
9919 msgid ""
9920 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
9921 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
9922 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
9923 "block device."
9924 msgstr ""
9925
9926 #. type: =head2
9927 #: ../fish/guestfish-actions.pod:2725
9928 msgid "luks-format"
9929 msgstr ""
9930
9931 #. type: verbatim
9932 #: ../fish/guestfish-actions.pod:2727
9933 #, no-wrap
9934 msgid ""
9935 " luks-format device keyslot\n"
9936 "\n"
9937 msgstr ""
9938
9939 #. type: textblock
9940 #: ../fish/guestfish-actions.pod:2729 ../src/guestfs-actions.pod:4046
9941 msgid ""
9942 "This command erases existing data on C<device> and formats the device as a "
9943 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9944 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9945 msgstr ""
9946
9947 #. type: textblock
9948 #: ../fish/guestfish-actions.pod:2737 ../fish/guestfish-actions.pod:2750
9949 #: ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:3498
9950 #: ../fish/guestfish-actions.pod:4024 ../fish/guestfish-actions.pod:4349
9951 #: ../fish/guestfish-actions.pod:4372 ../fish/guestfish-actions.pod:4394
9952 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:4053
9953 #: ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4219
9954 #: ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:6110
9955 #: ../src/guestfs-actions.pod:6538 ../src/guestfs-actions.pod:6568
9956 #: ../src/guestfs-actions.pod:6601 ../src/guestfs-actions.pod:7799
9957 msgid ""
9958 "B<This command is dangerous.  Without careful use you can easily destroy all "
9959 "your data>."
9960 msgstr ""
9961
9962 #. type: =head2
9963 #: ../fish/guestfish-actions.pod:2740
9964 msgid "luks-format-cipher"
9965 msgstr ""
9966
9967 #. type: verbatim
9968 #: ../fish/guestfish-actions.pod:2742
9969 #, no-wrap
9970 msgid ""
9971 " luks-format-cipher device keyslot cipher\n"
9972 "\n"
9973 msgstr ""
9974
9975 #. type: textblock
9976 #: ../fish/guestfish-actions.pod:2744
9977 msgid ""
9978 "This command is the same as L</luks-format> but it also allows you to set "
9979 "the C<cipher> used."
9980 msgstr ""
9981
9982 #. type: =head2
9983 #: ../fish/guestfish-actions.pod:2753
9984 msgid "luks-kill-slot"
9985 msgstr ""
9986
9987 #. type: verbatim
9988 #: ../fish/guestfish-actions.pod:2755
9989 #, no-wrap
9990 msgid ""
9991 " luks-kill-slot device keyslot\n"
9992 "\n"
9993 msgstr ""
9994
9995 #. type: textblock
9996 #: ../fish/guestfish-actions.pod:2757 ../src/guestfs-actions.pod:4093
9997 msgid ""
9998 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9999 "device C<device>.  C<key> must be one of the I<other> keys."
10000 msgstr ""
10001
10002 #. type: =head2
10003 #: ../fish/guestfish-actions.pod:2764
10004 msgid "luks-open"
10005 msgstr ""
10006
10007 #. type: verbatim
10008 #: ../fish/guestfish-actions.pod:2766
10009 #, no-wrap
10010 msgid ""
10011 " luks-open device mapname\n"
10012 "\n"
10013 msgstr ""
10014
10015 #. type: textblock
10016 #: ../fish/guestfish-actions.pod:2768 ../src/guestfs-actions.pod:4113
10017 msgid ""
10018 "This command opens a block device which has been encrypted according to the "
10019 "Linux Unified Key Setup (LUKS) standard."
10020 msgstr ""
10021
10022 #. type: textblock
10023 #: ../fish/guestfish-actions.pod:2771 ../src/guestfs-actions.pod:4116
10024 msgid "C<device> is the encrypted block device or partition."
10025 msgstr ""
10026
10027 #. type: textblock
10028 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10029 msgid ""
10030 "The caller must supply one of the keys associated with the LUKS block "
10031 "device, in the C<key> parameter."
10032 msgstr ""
10033
10034 #. type: textblock
10035 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10036 msgid ""
10037 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10038 "writes to this block device are decrypted from and encrypted to the "
10039 "underlying C<device> respectively."
10040 msgstr ""
10041
10042 #. type: textblock
10043 #: ../fish/guestfish-actions.pod:2780
10044 msgid ""
10045 "If this block device contains LVM volume groups, then calling L</vgscan> "
10046 "followed by L</vg-activate-all> will make them visible."
10047 msgstr ""
10048
10049 #. type: textblock
10050 #: ../fish/guestfish-actions.pod:2784
10051 msgid "Use L</list-dm-devices> to list all device mapper devices."
10052 msgstr ""
10053
10054 #. type: =head2
10055 #: ../fish/guestfish-actions.pod:2790
10056 msgid "luks-open-ro"
10057 msgstr ""
10058
10059 #. type: verbatim
10060 #: ../fish/guestfish-actions.pod:2792
10061 #, no-wrap
10062 msgid ""
10063 " luks-open-ro device mapname\n"
10064 "\n"
10065 msgstr ""
10066
10067 #. type: textblock
10068 #: ../fish/guestfish-actions.pod:2794
10069 msgid ""
10070 "This is the same as L</luks-open> except that a read-only mapping is created."
10071 msgstr ""
10072
10073 #. type: =head2
10074 #: ../fish/guestfish-actions.pod:2800
10075 msgid "lvcreate"
10076 msgstr ""
10077
10078 #. type: verbatim
10079 #: ../fish/guestfish-actions.pod:2802
10080 #, no-wrap
10081 msgid ""
10082 " lvcreate logvol volgroup mbytes\n"
10083 "\n"
10084 msgstr ""
10085
10086 #. type: textblock
10087 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4167
10088 msgid ""
10089 "This creates an LVM logical volume called C<logvol> on the volume group "
10090 "C<volgroup>, with C<size> megabytes."
10091 msgstr ""
10092
10093 #. type: =head2
10094 #: ../fish/guestfish-actions.pod:2807
10095 msgid "lvm-canonical-lv-name"
10096 msgstr ""
10097
10098 #. type: verbatim
10099 #: ../fish/guestfish-actions.pod:2809
10100 #, no-wrap
10101 msgid ""
10102 " lvm-canonical-lv-name lvname\n"
10103 "\n"
10104 msgstr ""
10105
10106 #. type: textblock
10107 #: ../fish/guestfish-actions.pod:2811 ../src/guestfs-actions.pod:4180
10108 msgid ""
10109 "This converts alternative naming schemes for LVs that you might find to the "
10110 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10111 "LV>."
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4184
10116 msgid ""
10117 "This command returns an error if the C<lvname> parameter does not refer to a "
10118 "logical volume."
10119 msgstr ""
10120
10121 #. type: textblock
10122 #: ../fish/guestfish-actions.pod:2818
10123 msgid "See also L</is-lv>."
10124 msgstr ""
10125
10126 #. type: =head2
10127 #: ../fish/guestfish-actions.pod:2820
10128 msgid "lvm-clear-filter"
10129 msgstr ""
10130
10131 #. type: verbatim
10132 #: ../fish/guestfish-actions.pod:2822
10133 #, no-wrap
10134 msgid ""
10135 " lvm-clear-filter\n"
10136 "\n"
10137 msgstr ""
10138
10139 #. type: textblock
10140 #: ../fish/guestfish-actions.pod:2824
10141 msgid ""
10142 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10143 "block device."
10144 msgstr ""
10145
10146 #. type: textblock
10147 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2858
10148 #: ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4244
10149 msgid ""
10150 "This command also clears the LVM cache and performs a volume group scan."
10151 msgstr ""
10152
10153 #. type: =head2
10154 #: ../fish/guestfish-actions.pod:2830
10155 msgid "lvm-remove-all"
10156 msgstr ""
10157
10158 #. type: verbatim
10159 #: ../fish/guestfish-actions.pod:2832
10160 #, no-wrap
10161 msgid ""
10162 " lvm-remove-all\n"
10163 "\n"
10164 msgstr ""
10165
10166 #. type: textblock
10167 #: ../fish/guestfish-actions.pod:2834 ../src/guestfs-actions.pod:4214
10168 msgid ""
10169 "This command removes all LVM logical volumes, volume groups and physical "
10170 "volumes."
10171 msgstr ""
10172
10173 #. type: =head2
10174 #: ../fish/guestfish-actions.pod:2840
10175 msgid "lvm-set-filter"
10176 msgstr ""
10177
10178 #. type: verbatim
10179 #: ../fish/guestfish-actions.pod:2842
10180 #, no-wrap
10181 msgid ""
10182 " lvm-set-filter 'devices ...'\n"
10183 "\n"
10184 msgstr ""
10185
10186 #. type: textblock
10187 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4230
10188 msgid ""
10189 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10190 "block devices in the list C<devices>, and will ignore all other attached "
10191 "block devices."
10192 msgstr ""
10193
10194 #. type: textblock
10195 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4234
10196 msgid ""
10197 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10198 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10199 "there are two types of duplication possible: either cloned PVs/VGs which "
10200 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10201 "same name.  In normal operation you cannot create this situation, but you "
10202 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10203 "inside the LVM metadata."
10204 msgstr ""
10205
10206 #. type: textblock
10207 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4247
10208 msgid "You can filter whole block devices or individual partitions."
10209 msgstr ""
10210
10211 #. type: textblock
10212 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4249
10213 msgid ""
10214 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10215 "filesystem), even if you are not filtering out that VG."
10216 msgstr ""
10217
10218 #. type: =head2
10219 #: ../fish/guestfish-actions.pod:2867
10220 msgid "lvremove"
10221 msgstr ""
10222
10223 #. type: verbatim
10224 #: ../fish/guestfish-actions.pod:2869
10225 #, no-wrap
10226 msgid ""
10227 " lvremove device\n"
10228 "\n"
10229 msgstr ""
10230
10231 #. type: textblock
10232 #: ../fish/guestfish-actions.pod:2871 ../src/guestfs-actions.pod:4263
10233 msgid ""
10234 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10235 "LV, such as C</dev/VG/LV>."
10236 msgstr ""
10237
10238 #. type: textblock
10239 #: ../fish/guestfish-actions.pod:2874 ../src/guestfs-actions.pod:4266
10240 msgid ""
10241 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10242 "dev/VG>."
10243 msgstr ""
10244
10245 #. type: =head2
10246 #: ../fish/guestfish-actions.pod:2877
10247 msgid "lvrename"
10248 msgstr ""
10249
10250 #. type: verbatim
10251 #: ../fish/guestfish-actions.pod:2879
10252 #, no-wrap
10253 msgid ""
10254 " lvrename logvol newlogvol\n"
10255 "\n"
10256 msgstr ""
10257
10258 #. type: textblock
10259 #: ../fish/guestfish-actions.pod:2881 ../src/guestfs-actions.pod:4280
10260 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10261 msgstr ""
10262
10263 #. type: =head2
10264 #: ../fish/guestfish-actions.pod:2883
10265 msgid "lvresize"
10266 msgstr ""
10267
10268 #. type: verbatim
10269 #: ../fish/guestfish-actions.pod:2885
10270 #, no-wrap
10271 msgid ""
10272 " lvresize device mbytes\n"
10273 "\n"
10274 msgstr ""
10275
10276 #. type: textblock
10277 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4293
10278 msgid ""
10279 "This resizes (expands or shrinks) an existing LVM logical volume to "
10280 "C<mbytes>.  When reducing, data in the reduced part is lost."
10281 msgstr ""
10282
10283 #. type: =head2
10284 #: ../fish/guestfish-actions.pod:2891
10285 msgid "lvresize-free"
10286 msgstr ""
10287
10288 #. type: verbatim
10289 #: ../fish/guestfish-actions.pod:2893
10290 #, no-wrap
10291 msgid ""
10292 " lvresize-free lv percent\n"
10293 "\n"
10294 msgstr ""
10295
10296 #. type: textblock
10297 #: ../fish/guestfish-actions.pod:2895 ../src/guestfs-actions.pod:4308
10298 msgid ""
10299 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10300 "remaining free space in the volume group.  Commonly you would call this with "
10301 "pc = 100 which expands the logical volume as much as possible, using all "
10302 "remaining free space in the volume group."
10303 msgstr ""
10304
10305 #. type: =head2
10306 #: ../fish/guestfish-actions.pod:2901
10307 msgid "lvs"
10308 msgstr ""
10309
10310 #. type: verbatim
10311 #: ../fish/guestfish-actions.pod:2903
10312 #, no-wrap
10313 msgid ""
10314 " lvs\n"
10315 "\n"
10316 msgstr ""
10317
10318 #. type: textblock
10319 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4323
10320 msgid ""
10321 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10322 "(8)> command."
10323 msgstr ""
10324
10325 #. type: textblock
10326 #: ../fish/guestfish-actions.pod:2908 ../src/guestfs-actions.pod:4326
10327 msgid ""
10328 "This returns a list of the logical volume device names (eg. C</dev/"
10329 "VolGroup00/LogVol00>)."
10330 msgstr ""
10331
10332 #. type: textblock
10333 #: ../fish/guestfish-actions.pod:2911
10334 msgid "See also L</lvs-full>, L</list-filesystems>."
10335 msgstr ""
10336
10337 #. type: =head2
10338 #: ../fish/guestfish-actions.pod:2913
10339 msgid "lvs-full"
10340 msgstr ""
10341
10342 #. type: verbatim
10343 #: ../fish/guestfish-actions.pod:2915
10344 #, no-wrap
10345 msgid ""
10346 " lvs-full\n"
10347 "\n"
10348 msgstr ""
10349
10350 #. type: textblock
10351 #: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4342
10352 msgid ""
10353 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10354 "(8)> command.  The \"full\" version includes all fields."
10355 msgstr ""
10356
10357 #. type: =head2
10358 #: ../fish/guestfish-actions.pod:2920
10359 msgid "lvuuid"
10360 msgstr ""
10361
10362 #. type: verbatim
10363 #: ../fish/guestfish-actions.pod:2922
10364 #, no-wrap
10365 msgid ""
10366 " lvuuid device\n"
10367 "\n"
10368 msgstr ""
10369
10370 #. type: textblock
10371 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4357
10372 msgid "This command returns the UUID of the LVM LV C<device>."
10373 msgstr ""
10374
10375 #. type: =head2
10376 #: ../fish/guestfish-actions.pod:2926
10377 msgid "lxattrlist"
10378 msgstr ""
10379
10380 #. type: verbatim
10381 #: ../fish/guestfish-actions.pod:2928
10382 #, no-wrap
10383 msgid ""
10384 " lxattrlist path 'names ...'\n"
10385 "\n"
10386 msgstr ""
10387
10388 #. type: textblock
10389 #: ../fish/guestfish-actions.pod:2930 ../src/guestfs-actions.pod:4371
10390 msgid ""
10391 "This call allows you to get the extended attributes of multiple files, where "
10392 "all files are in the directory C<path>.  C<names> is the list of files from "
10393 "this directory."
10394 msgstr ""
10395
10396 #. type: textblock
10397 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4375
10398 msgid ""
10399 "On return you get a flat list of xattr structs which must be interpreted "
10400 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10401 "C<attrval> in this struct is zero-length to indicate there was an error "
10402 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10403 "number (the number of following attributes for this file, which could be C<"
10404 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10405 "for the first named file.  This repeats for the second and subsequent files."
10406 msgstr ""
10407
10408 #. type: textblock
10409 #: ../fish/guestfish-actions.pod:2944
10410 msgid ""
10411 "This call is intended for programs that want to efficiently list a directory "
10412 "contents without making many round-trips.  See also L</lstatlist> for a "
10413 "similarly efficient call for getting standard stats.  Very long directory "
10414 "listings might cause the protocol message size to be exceeded, causing this "
10415 "call to fail.  The caller must split up such requests into smaller groups of "
10416 "names."
10417 msgstr ""
10418
10419 #. type: =head2
10420 #: ../fish/guestfish-actions.pod:2952
10421 msgid "mkdir"
10422 msgstr ""
10423
10424 #. type: verbatim
10425 #: ../fish/guestfish-actions.pod:2954
10426 #, no-wrap
10427 msgid ""
10428 " mkdir path\n"
10429 "\n"
10430 msgstr ""
10431
10432 #. type: textblock
10433 #: ../fish/guestfish-actions.pod:2956 ../src/guestfs-actions.pod:4405
10434 msgid "Create a directory named C<path>."
10435 msgstr ""
10436
10437 #. type: =head2
10438 #: ../fish/guestfish-actions.pod:2958
10439 msgid "mkdir-mode"
10440 msgstr ""
10441
10442 #. type: verbatim
10443 #: ../fish/guestfish-actions.pod:2960
10444 #, no-wrap
10445 msgid ""
10446 " mkdir-mode path mode\n"
10447 "\n"
10448 msgstr ""
10449
10450 #. type: textblock
10451 #: ../fish/guestfish-actions.pod:2962 ../src/guestfs-actions.pod:4418
10452 msgid ""
10453 "This command creates a directory, setting the initial permissions of the "
10454 "directory to C<mode>."
10455 msgstr ""
10456
10457 #. type: textblock
10458 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4421
10459 msgid ""
10460 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10461 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10462 "other ways."
10463 msgstr ""
10464
10465 #. type: textblock
10466 #: ../fish/guestfish-actions.pod:2969
10467 msgid "See also L</mkdir>, L</umask>"
10468 msgstr ""
10469
10470 #. type: =head2
10471 #: ../fish/guestfish-actions.pod:2971
10472 msgid "mkdir-p"
10473 msgstr ""
10474
10475 #. type: verbatim
10476 #: ../fish/guestfish-actions.pod:2973
10477 #, no-wrap
10478 msgid ""
10479 " mkdir-p path\n"
10480 "\n"
10481 msgstr ""
10482
10483 #. type: textblock
10484 #: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4437
10485 msgid ""
10486 "Create a directory named C<path>, creating any parent directories as "
10487 "necessary.  This is like the C<mkdir -p> shell command."
10488 msgstr ""
10489
10490 #. type: =head2
10491 #: ../fish/guestfish-actions.pod:2978
10492 msgid "mkdtemp"
10493 msgstr ""
10494
10495 #. type: verbatim
10496 #: ../fish/guestfish-actions.pod:2980
10497 #, no-wrap
10498 msgid ""
10499 " mkdtemp template\n"
10500 "\n"
10501 msgstr ""
10502
10503 #. type: textblock
10504 #: ../fish/guestfish-actions.pod:2982 ../src/guestfs-actions.pod:4450
10505 msgid ""
10506 "This command creates a temporary directory.  The C<template> parameter "
10507 "should be a full pathname for the temporary directory name with the final "
10508 "six characters being \"XXXXXX\"."
10509 msgstr ""
10510
10511 #. type: textblock
10512 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
10513 msgid ""
10514 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10515 "being suitable for Windows filesystems."
10516 msgstr ""
10517
10518 #. type: textblock
10519 #: ../fish/guestfish-actions.pod:2990 ../src/guestfs-actions.pod:4458
10520 msgid "The name of the temporary directory that was created is returned."
10521 msgstr ""
10522
10523 #. type: textblock
10524 #: ../fish/guestfish-actions.pod:2993 ../src/guestfs-actions.pod:4461
10525 msgid "The temporary directory is created with mode 0700 and is owned by root."
10526 msgstr ""
10527
10528 #. type: textblock
10529 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4464
10530 msgid ""
10531 "The caller is responsible for deleting the temporary directory and its "
10532 "contents after use."
10533 msgstr ""
10534
10535 #. type: textblock
10536 #: ../fish/guestfish-actions.pod:2999 ../src/guestfs-actions.pod:4467
10537 msgid "See also: L<mkdtemp(3)>"
10538 msgstr ""
10539
10540 #. type: =head2
10541 #: ../fish/guestfish-actions.pod:3001
10542 msgid "mke2fs-J"
10543 msgstr ""
10544
10545 #. type: verbatim
10546 #: ../fish/guestfish-actions.pod:3003
10547 #, no-wrap
10548 msgid ""
10549 " mke2fs-J fstype blocksize device journal\n"
10550 "\n"
10551 msgstr ""
10552
10553 #. type: textblock
10554 #: ../fish/guestfish-actions.pod:3005 ../src/guestfs-actions.pod:4483
10555 msgid ""
10556 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10557 "C<journal>.  It is equivalent to the command:"
10558 msgstr ""
10559
10560 #. type: verbatim
10561 #: ../fish/guestfish-actions.pod:3009 ../src/guestfs-actions.pod:4487
10562 #, no-wrap
10563 msgid ""
10564 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10565 "\n"
10566 msgstr ""
10567
10568 #. type: textblock
10569 #: ../fish/guestfish-actions.pod:3011
10570 msgid "See also L</mke2journal>."
10571 msgstr ""
10572
10573 #. type: =head2
10574 #: ../fish/guestfish-actions.pod:3013
10575 msgid "mke2fs-JL"
10576 msgstr ""
10577
10578 #. type: verbatim
10579 #: ../fish/guestfish-actions.pod:3015
10580 #, no-wrap
10581 msgid ""
10582 " mke2fs-JL fstype blocksize device label\n"
10583 "\n"
10584 msgstr ""
10585
10586 #. type: textblock
10587 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4504
10588 msgid ""
10589 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10590 "the journal labeled C<label>."
10591 msgstr ""
10592
10593 #. type: textblock
10594 #: ../fish/guestfish-actions.pod:3020
10595 msgid "See also L</mke2journal-L>."
10596 msgstr ""
10597
10598 #. type: =head2
10599 #: ../fish/guestfish-actions.pod:3022
10600 msgid "mke2fs-JU"
10601 msgstr ""
10602
10603 #. type: verbatim
10604 #: ../fish/guestfish-actions.pod:3024
10605 #, no-wrap
10606 msgid ""
10607 " mke2fs-JU fstype blocksize device uuid\n"
10608 "\n"
10609 msgstr ""
10610
10611 #. type: textblock
10612 #: ../fish/guestfish-actions.pod:3026 ../src/guestfs-actions.pod:4522
10613 msgid ""
10614 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10615 "the journal with UUID C<uuid>."
10616 msgstr ""
10617
10618 #. type: textblock
10619 #: ../fish/guestfish-actions.pod:3029
10620 msgid "See also L</mke2journal-U>."
10621 msgstr ""
10622
10623 #. type: =head2
10624 #: ../fish/guestfish-actions.pod:3031
10625 msgid "mke2journal"
10626 msgstr ""
10627
10628 #. type: verbatim
10629 #: ../fish/guestfish-actions.pod:3033
10630 #, no-wrap
10631 msgid ""
10632 " mke2journal blocksize device\n"
10633 "\n"
10634 msgstr ""
10635
10636 #. type: textblock
10637 #: ../fish/guestfish-actions.pod:3035 ../src/guestfs-actions.pod:4538
10638 msgid ""
10639 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10640 "command:"
10641 msgstr ""
10642
10643 #. type: verbatim
10644 #: ../fish/guestfish-actions.pod:3038 ../src/guestfs-actions.pod:4541
10645 #, no-wrap
10646 msgid ""
10647 " mke2fs -O journal_dev -b blocksize device\n"
10648 "\n"
10649 msgstr ""
10650
10651 #. type: =head2
10652 #: ../fish/guestfish-actions.pod:3040
10653 msgid "mke2journal-L"
10654 msgstr ""
10655
10656 #. type: verbatim
10657 #: ../fish/guestfish-actions.pod:3042
10658 #, no-wrap
10659 msgid ""
10660 " mke2journal-L blocksize label device\n"
10661 "\n"
10662 msgstr ""
10663
10664 #. type: textblock
10665 #: ../fish/guestfish-actions.pod:3044 ../src/guestfs-actions.pod:4555
10666 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10667 msgstr ""
10668
10669 #. type: =head2
10670 #: ../fish/guestfish-actions.pod:3046
10671 msgid "mke2journal-U"
10672 msgstr ""
10673
10674 #. type: verbatim
10675 #: ../fish/guestfish-actions.pod:3048
10676 #, no-wrap
10677 msgid ""
10678 " mke2journal-U blocksize uuid device\n"
10679 "\n"
10680 msgstr ""
10681
10682 #. type: textblock
10683 #: ../fish/guestfish-actions.pod:3050 ../src/guestfs-actions.pod:4569
10684 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10685 msgstr ""
10686
10687 #. type: =head2
10688 #: ../fish/guestfish-actions.pod:3052
10689 msgid "mkfifo"
10690 msgstr ""
10691
10692 #. type: verbatim
10693 #: ../fish/guestfish-actions.pod:3054
10694 #, no-wrap
10695 msgid ""
10696 " mkfifo mode path\n"
10697 "\n"
10698 msgstr ""
10699
10700 #. type: textblock
10701 #: ../fish/guestfish-actions.pod:3056
10702 msgid ""
10703 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10704 "is just a convenient wrapper around L</mknod>."
10705 msgstr ""
10706
10707 #. type: =head2
10708 #: ../fish/guestfish-actions.pod:3062
10709 msgid "mkfs"
10710 msgstr ""
10711
10712 #. type: verbatim
10713 #: ../fish/guestfish-actions.pod:3064
10714 #, no-wrap
10715 msgid ""
10716 " mkfs fstype device\n"
10717 "\n"
10718 msgstr ""
10719
10720 #. type: textblock
10721 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4599
10722 msgid ""
10723 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10724 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10725 msgstr ""
10726
10727 #. type: =head2
10728 #: ../fish/guestfish-actions.pod:3070
10729 msgid "mkfs-b"
10730 msgstr ""
10731
10732 #. type: verbatim
10733 #: ../fish/guestfish-actions.pod:3072
10734 #, no-wrap
10735 msgid ""
10736 " mkfs-b fstype blocksize device\n"
10737 "\n"
10738 msgstr ""
10739
10740 #. type: textblock
10741 #: ../fish/guestfish-actions.pod:3074
10742 msgid ""
10743 "This call is similar to L</mkfs>, but it allows you to control the block "
10744 "size of the resulting filesystem.  Supported block sizes depend on the "
10745 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10746 msgstr ""
10747
10748 #. type: textblock
10749 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3106
10750 #: ../src/guestfs-actions.pod:4620 ../src/guestfs-actions.pod:4665
10751 msgid ""
10752 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10753 "cluster size."
10754 msgstr ""
10755
10756 #. type: textblock
10757 #: ../fish/guestfish-actions.pod:3082 ../src/guestfs-actions.pod:4625
10758 msgid ""
10759 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
10760 msgstr ""
10761
10762 #. type: =head2
10763 #: ../fish/guestfish-actions.pod:3089
10764 msgid "mkfs-opts"
10765 msgstr ""
10766
10767 #. type: verbatim
10768 #: ../fish/guestfish-actions.pod:3091
10769 #, no-wrap
10770 msgid ""
10771 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
10772 "\n"
10773 msgstr ""
10774
10775 #. type: textblock
10776 #: ../fish/guestfish-actions.pod:3093 ../src/guestfs-actions.pod:4652
10777 msgid ""
10778 "This function creates a filesystem on C<device>.  The filesystem type is "
10779 "C<fstype>, for example C<ext3>."
10780 msgstr ""
10781
10782 #. type: =item
10783 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4659
10784 msgid "C<blocksize>"
10785 msgstr ""
10786
10787 #. type: textblock
10788 #: ../fish/guestfish-actions.pod:3102 ../src/guestfs-actions.pod:4661
10789 msgid ""
10790 "The filesystem block size.  Supported block sizes depend on the filesystem "
10791 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10792 "filesystems."
10793 msgstr ""
10794
10795 #. type: textblock
10796 #: ../fish/guestfish-actions.pod:3109 ../src/guestfs-actions.pod:4668
10797 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10798 msgstr ""
10799
10800 #. type: =item
10801 #: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4670
10802 msgid "C<features>"
10803 msgstr ""
10804
10805 #. type: textblock
10806 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4672
10807 msgid "This passes the I<-O> parameter to the external mkfs program."
10808 msgstr ""
10809
10810 #. type: textblock
10811 #: ../fish/guestfish-actions.pod:3115 ../src/guestfs-actions.pod:4674
10812 msgid ""
10813 "For certain filesystem types, this allows extra filesystem features to be "
10814 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10815 msgstr ""
10816
10817 #. type: textblock
10818 #: ../fish/guestfish-actions.pod:3119 ../src/guestfs-actions.pod:4678
10819 msgid ""
10820 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10821 "type."
10822 msgstr ""
10823
10824 #. type: =item
10825 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4681
10826 msgid "C<inode>"
10827 msgstr ""
10828
10829 #. type: textblock
10830 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
10831 msgid ""
10832 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10833 "sets the inode size (only for ext2/3/4 filesystems at present)."
10834 msgstr ""
10835
10836 #. type: =item
10837 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
10838 msgid "C<sectorsize>"
10839 msgstr ""
10840
10841 #. type: textblock
10842 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
10843 msgid ""
10844 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10845 "sets sector size for ufs filesystem."
10846 msgstr ""
10847
10848 #. type: =head2
10849 #: ../fish/guestfish-actions.pod:3136
10850 msgid "mkmountpoint"
10851 msgstr ""
10852
10853 #. type: verbatim
10854 #: ../fish/guestfish-actions.pod:3138
10855 #, no-wrap
10856 msgid ""
10857 " mkmountpoint exemptpath\n"
10858 "\n"
10859 msgstr ""
10860
10861 #. type: textblock
10862 #: ../fish/guestfish-actions.pod:3140
10863 msgid ""
10864 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10865 "to create extra mountpoints before mounting the first filesystem."
10866 msgstr ""
10867
10868 #. type: textblock
10869 #: ../fish/guestfish-actions.pod:3144 ../src/guestfs-actions.pod:4731
10870 msgid ""
10871 "These calls are I<only> necessary in some very limited circumstances, mainly "
10872 "the case where you want to mount a mix of unrelated and/or read-only "
10873 "filesystems together."
10874 msgstr ""
10875
10876 #. type: textblock
10877 #: ../fish/guestfish-actions.pod:3148 ../src/guestfs-actions.pod:4735
10878 msgid ""
10879 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10880 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10881 "inside that.  You can unpack this as follows in guestfish:"
10882 msgstr ""
10883
10884 #. type: verbatim
10885 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
10886 #, no-wrap
10887 msgid ""
10888 " add-ro Fedora-11-i686-Live.iso\n"
10889 " run\n"
10890 " mkmountpoint /cd\n"
10891 " mkmountpoint /sqsh\n"
10892 " mkmountpoint /ext3fs\n"
10893 " mount /dev/sda /cd\n"
10894 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10895 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10896 "\n"
10897 msgstr ""
10898
10899 #. type: textblock
10900 #: ../fish/guestfish-actions.pod:3162 ../src/guestfs-actions.pod:4749
10901 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10902 msgstr ""
10903
10904 #. type: textblock
10905 #: ../fish/guestfish-actions.pod:3164
10906 msgid ""
10907 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10908 "unexpected errors if you try to mix these calls.  It is safest to manually "
10909 "unmount filesystems and remove mountpoints after use."
10910 msgstr ""
10911
10912 #. type: textblock
10913 #: ../fish/guestfish-actions.pod:3168
10914 msgid ""
10915 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10916 "for this to work for manual mountpoints, you must ensure that the innermost "
10917 "mountpoints have the longest pathnames, as in the example code above."
10918 msgstr ""
10919
10920 #. type: textblock
10921 #: ../fish/guestfish-actions.pod:3173 ../src/guestfs-actions.pod:4760
10922 msgid ""
10923 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10924 msgstr ""
10925
10926 #. type: textblock
10927 #: ../fish/guestfish-actions.pod:3175
10928 msgid ""
10929 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
10930 "L</umount-all> to be called when the handle is closed which can also trigger "
10931 "these issues."
10932 msgstr ""
10933
10934 #. type: =head2
10935 #: ../fish/guestfish-actions.pod:3179
10936 msgid "mknod"
10937 msgstr ""
10938
10939 #. type: verbatim
10940 #: ../fish/guestfish-actions.pod:3181
10941 #, no-wrap
10942 msgid ""
10943 " mknod mode devmajor devminor path\n"
10944 "\n"
10945 msgstr ""
10946
10947 #. type: textblock
10948 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4779
10949 msgid ""
10950 "This call creates block or character special devices, or named pipes (FIFOs)."
10951 msgstr ""
10952
10953 #. type: textblock
10954 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4782
10955 msgid ""
10956 "The C<mode> parameter should be the mode, using the standard constants.  "
10957 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10958 "used when creating block and character special devices."
10959 msgstr ""
10960
10961 #. type: textblock
10962 #: ../fish/guestfish-actions.pod:3191
10963 msgid ""
10964 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10965 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10966 "regular file).  These constants are available in the standard Linux header "
10967 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
10968 "wrappers around this command which bitwise OR in the appropriate constant "
10969 "for you."
10970 msgstr ""
10971
10972 #. type: =head2
10973 #: ../fish/guestfish-actions.pod:3201
10974 msgid "mknod-b"
10975 msgstr ""
10976
10977 #. type: verbatim
10978 #: ../fish/guestfish-actions.pod:3203
10979 #, no-wrap
10980 msgid ""
10981 " mknod-b mode devmajor devminor path\n"
10982 "\n"
10983 msgstr ""
10984
10985 #. type: textblock
10986 #: ../fish/guestfish-actions.pod:3205
10987 msgid ""
10988 "This call creates a block device node called C<path> with mode C<mode> and "
10989 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10990 "wrapper around L</mknod>."
10991 msgstr ""
10992
10993 #. type: =head2
10994 #: ../fish/guestfish-actions.pod:3211
10995 msgid "mknod-c"
10996 msgstr ""
10997
10998 #. type: verbatim
10999 #: ../fish/guestfish-actions.pod:3213
11000 #, no-wrap
11001 msgid ""
11002 " mknod-c mode devmajor devminor path\n"
11003 "\n"
11004 msgstr ""
11005
11006 #. type: textblock
11007 #: ../fish/guestfish-actions.pod:3215
11008 msgid ""
11009 "This call creates a char device node called C<path> with mode C<mode> and "
11010 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11011 "wrapper around L</mknod>."
11012 msgstr ""
11013
11014 #. type: =head2
11015 #: ../fish/guestfish-actions.pod:3221
11016 msgid "mkswap"
11017 msgstr ""
11018
11019 #. type: verbatim
11020 #: ../fish/guestfish-actions.pod:3223
11021 #, no-wrap
11022 msgid ""
11023 " mkswap device\n"
11024 "\n"
11025 msgstr ""
11026
11027 #. type: textblock
11028 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4845
11029 msgid "Create a swap partition on C<device>."
11030 msgstr ""
11031
11032 #. type: =head2
11033 #: ../fish/guestfish-actions.pod:3227
11034 msgid "mkswap-L"
11035 msgstr ""
11036
11037 #. type: verbatim
11038 #: ../fish/guestfish-actions.pod:3229
11039 #, no-wrap
11040 msgid ""
11041 " mkswap-L label device\n"
11042 "\n"
11043 msgstr ""
11044
11045 #. type: textblock
11046 #: ../fish/guestfish-actions.pod:3231 ../src/guestfs-actions.pod:4858
11047 msgid "Create a swap partition on C<device> with label C<label>."
11048 msgstr ""
11049
11050 #. type: textblock
11051 #: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4860
11052 msgid ""
11053 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11054 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11055 "or swap tools."
11056 msgstr ""
11057
11058 #. type: =head2
11059 #: ../fish/guestfish-actions.pod:3237
11060 msgid "mkswap-U"
11061 msgstr ""
11062
11063 #. type: verbatim
11064 #: ../fish/guestfish-actions.pod:3239
11065 #, no-wrap
11066 msgid ""
11067 " mkswap-U uuid device\n"
11068 "\n"
11069 msgstr ""
11070
11071 #. type: textblock
11072 #: ../fish/guestfish-actions.pod:3241 ../src/guestfs-actions.pod:4875
11073 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11074 msgstr ""
11075
11076 #. type: =head2
11077 #: ../fish/guestfish-actions.pod:3243
11078 msgid "mkswap-file"
11079 msgstr ""
11080
11081 #. type: verbatim
11082 #: ../fish/guestfish-actions.pod:3245
11083 #, no-wrap
11084 msgid ""
11085 " mkswap-file path\n"
11086 "\n"
11087 msgstr ""
11088
11089 #. type: textblock
11090 #: ../fish/guestfish-actions.pod:3247 ../src/guestfs-actions.pod:4887
11091 msgid "Create a swap file."
11092 msgstr ""
11093
11094 #. type: textblock
11095 #: ../fish/guestfish-actions.pod:3249
11096 msgid ""
11097 "This command just writes a swap file signature to an existing file.  To "
11098 "create the file itself, use something like L</fallocate>."
11099 msgstr ""
11100
11101 #. type: =head2
11102 #: ../fish/guestfish-actions.pod:3252
11103 msgid "modprobe"
11104 msgstr ""
11105
11106 #. type: verbatim
11107 #: ../fish/guestfish-actions.pod:3254
11108 #, no-wrap
11109 msgid ""
11110 " modprobe modulename\n"
11111 "\n"
11112 msgstr ""
11113
11114 #. type: textblock
11115 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:4902
11116 msgid "This loads a kernel module in the appliance."
11117 msgstr ""
11118
11119 #. type: textblock
11120 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4904
11121 msgid ""
11122 "The kernel module must have been whitelisted when libguestfs was built (see "
11123 "C<appliance/kmod.whitelist.in> in the source)."
11124 msgstr ""
11125
11126 #. type: =head2
11127 #: ../fish/guestfish-actions.pod:3261
11128 msgid "mount"
11129 msgstr ""
11130
11131 #. type: verbatim
11132 #: ../fish/guestfish-actions.pod:3263
11133 #, no-wrap
11134 msgid ""
11135 " mount device mountpoint\n"
11136 "\n"
11137 msgstr ""
11138
11139 #. type: textblock
11140 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:4918
11141 msgid ""
11142 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11143 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11144 "those block devices contain partitions, they will have the usual names (eg. "
11145 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11146 msgstr ""
11147
11148 #. type: textblock
11149 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:4924
11150 msgid ""
11151 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11152 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11153 "mounted on directories which already exist."
11154 msgstr ""
11155
11156 #. type: textblock
11157 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4929
11158 msgid ""
11159 "The mounted filesystem is writable, if we have sufficient permissions on the "
11160 "underlying device."
11161 msgstr ""
11162
11163 #. type: textblock
11164 #: ../fish/guestfish-actions.pod:3279
11165 msgid ""
11166 "B<Important note:> When you use this call, the filesystem options C<sync> "
11167 "and C<noatime> are set implicitly.  This was originally done because we "
11168 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11169 "very large negative performance impact and negligible effect on "
11170 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11171 "code that needs performance, and instead use L</mount-options> (use an empty "
11172 "string for the first parameter if you don't want any options)."
11173 msgstr ""
11174
11175 #. type: textblock
11176 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:4944
11177 msgid ""
11178 "This function is deprecated.  In new code, use the C<mount_options> call "
11179 "instead."
11180 msgstr ""
11181
11182 #. type: =head2
11183 #: ../fish/guestfish-actions.pod:3296
11184 msgid "mount-9p"
11185 msgstr ""
11186
11187 #. type: verbatim
11188 #: ../fish/guestfish-actions.pod:3298
11189 #, no-wrap
11190 msgid ""
11191 " mount-9p mounttag mountpoint [options:..]\n"
11192 "\n"
11193 msgstr ""
11194
11195 #. type: textblock
11196 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:4968
11197 msgid ""
11198 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11199 "C<mountpoint>."
11200 msgstr ""
11201
11202 #. type: textblock
11203 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:4971
11204 msgid ""
11205 "If required, C<trans=virtio> will be automatically added to the options.  "
11206 "Any other options required can be passed in the optional C<options> "
11207 "parameter."
11208 msgstr ""
11209
11210 #. type: =head2
11211 #: ../fish/guestfish-actions.pod:3309
11212 msgid "mount-loop"
11213 msgstr ""
11214
11215 #. type: verbatim
11216 #: ../fish/guestfish-actions.pod:3311
11217 #, no-wrap
11218 msgid ""
11219 " mount-loop file mountpoint\n"
11220 "\n"
11221 msgstr ""
11222
11223 #. type: textblock
11224 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5010
11225 msgid ""
11226 "This command lets you mount C<file> (a filesystem image in a file) on a "
11227 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11228 "mountpoint>."
11229 msgstr ""
11230
11231 #. type: =head2
11232 #: ../fish/guestfish-actions.pod:3317
11233 msgid "mount-options"
11234 msgstr ""
11235
11236 #. type: verbatim
11237 #: ../fish/guestfish-actions.pod:3319
11238 #, no-wrap
11239 msgid ""
11240 " mount-options options device mountpoint\n"
11241 "\n"
11242 msgstr ""
11243
11244 #. type: textblock
11245 #: ../fish/guestfish-actions.pod:3321
11246 msgid ""
11247 "This is the same as the L</mount> command, but it allows you to set the "
11248 "mount options as for the L<mount(8)> I<-o> flag."
11249 msgstr ""
11250
11251 #. type: textblock
11252 #: ../fish/guestfish-actions.pod:3325 ../src/guestfs-actions.pod:5030
11253 msgid ""
11254 "If the C<options> parameter is an empty string, then no options are passed "
11255 "(all options default to whatever the filesystem uses)."
11256 msgstr ""
11257
11258 #. type: =head2
11259 #: ../fish/guestfish-actions.pod:3329
11260 msgid "mount-ro"
11261 msgstr ""
11262
11263 #. type: verbatim
11264 #: ../fish/guestfish-actions.pod:3331
11265 #, no-wrap
11266 msgid ""
11267 " mount-ro device mountpoint\n"
11268 "\n"
11269 msgstr ""
11270
11271 #. type: textblock
11272 #: ../fish/guestfish-actions.pod:3333
11273 msgid ""
11274 "This is the same as the L</mount> command, but it mounts the filesystem with "
11275 "the read-only (I<-o ro>) flag."
11276 msgstr ""
11277
11278 #. type: =head2
11279 #: ../fish/guestfish-actions.pod:3336
11280 msgid "mount-vfs"
11281 msgstr ""
11282
11283 #. type: verbatim
11284 #: ../fish/guestfish-actions.pod:3338
11285 #, no-wrap
11286 msgid ""
11287 " mount-vfs options vfstype device mountpoint\n"
11288 "\n"
11289 msgstr ""
11290
11291 #. type: textblock
11292 #: ../fish/guestfish-actions.pod:3340
11293 msgid ""
11294 "This is the same as the L</mount> command, but it allows you to set both the "
11295 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11296 msgstr ""
11297
11298 #. type: =head2
11299 #: ../fish/guestfish-actions.pod:3344
11300 msgid "mountpoints"
11301 msgstr ""
11302
11303 #. type: verbatim
11304 #: ../fish/guestfish-actions.pod:3346
11305 #, no-wrap
11306 msgid ""
11307 " mountpoints\n"
11308 "\n"
11309 msgstr ""
11310
11311 #. type: textblock
11312 #: ../fish/guestfish-actions.pod:3348
11313 msgid ""
11314 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11315 "This one returns a hash table (map) of device name to directory where the "
11316 "device is mounted."
11317 msgstr ""
11318
11319 #. type: =head2
11320 #: ../fish/guestfish-actions.pod:3352
11321 msgid "mounts"
11322 msgstr ""
11323
11324 #. type: verbatim
11325 #: ../fish/guestfish-actions.pod:3354
11326 #, no-wrap
11327 msgid ""
11328 " mounts\n"
11329 "\n"
11330 msgstr ""
11331
11332 #. type: textblock
11333 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5091
11334 msgid ""
11335 "This returns the list of currently mounted filesystems.  It returns the list "
11336 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11337 msgstr ""
11338
11339 #. type: textblock
11340 #: ../fish/guestfish-actions.pod:3359 ../src/guestfs-actions.pod:5094
11341 msgid "Some internal mounts are not shown."
11342 msgstr ""
11343
11344 #. type: textblock
11345 #: ../fish/guestfish-actions.pod:3361
11346 msgid "See also: L</mountpoints>"
11347 msgstr ""
11348
11349 #. type: =head2
11350 #: ../fish/guestfish-actions.pod:3363
11351 msgid "mv"
11352 msgstr ""
11353
11354 #. type: verbatim
11355 #: ../fish/guestfish-actions.pod:3365
11356 #, no-wrap
11357 msgid ""
11358 " mv src dest\n"
11359 "\n"
11360 msgstr ""
11361
11362 #. type: textblock
11363 #: ../fish/guestfish-actions.pod:3367 ../src/guestfs-actions.pod:5111
11364 msgid ""
11365 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11366 "destination filename or destination directory."
11367 msgstr ""
11368
11369 #. type: =head2
11370 #: ../fish/guestfish-actions.pod:3370
11371 msgid "ntfs-3g-probe"
11372 msgstr ""
11373
11374 #. type: verbatim
11375 #: ../fish/guestfish-actions.pod:3372
11376 #, no-wrap
11377 msgid ""
11378 " ntfs-3g-probe true|false device\n"
11379 "\n"
11380 msgstr ""
11381
11382 #. type: textblock
11383 #: ../fish/guestfish-actions.pod:3374 ../src/guestfs-actions.pod:5125
11384 msgid ""
11385 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11386 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11387 "write, and some cannot be mounted at all)."
11388 msgstr ""
11389
11390 #. type: textblock
11391 #: ../fish/guestfish-actions.pod:3378 ../src/guestfs-actions.pod:5129
11392 msgid ""
11393 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11394 "can be mounted read-write.  Set it to false if you want to test if the "
11395 "volume can be mounted read-only."
11396 msgstr ""
11397
11398 #. type: textblock
11399 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5133
11400 msgid ""
11401 "The return value is an integer which C<0> if the operation would succeed, or "
11402 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11403 msgstr ""
11404
11405 #. type: =head2
11406 #: ../fish/guestfish-actions.pod:3386
11407 msgid "ntfsresize"
11408 msgstr ""
11409
11410 #. type: verbatim
11411 #: ../fish/guestfish-actions.pod:3388
11412 #, no-wrap
11413 msgid ""
11414 " ntfsresize device\n"
11415 "\n"
11416 msgstr ""
11417
11418 #. type: textblock
11419 #: ../fish/guestfish-actions.pod:3390 ../fish/guestfish-actions.pod:3414
11420 #: ../src/guestfs-actions.pod:5147 ../src/guestfs-actions.pod:5186
11421 msgid ""
11422 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11423 "size of the underlying device."
11424 msgstr ""
11425
11426 #. type: textblock
11427 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5150
11428 msgid ""
11429 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
11430 "consistency check (for safety).  You have to boot into Windows to perform "
11431 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
11432 "resize filesystems which have been marked in this way.  So in effect it is "
11433 "not possible to call ntfsresize multiple times on a single filesystem "
11434 "without booting into Windows between each resize."
11435 msgstr ""
11436
11437 #. type: textblock
11438 #: ../fish/guestfish-actions.pod:3401 ../fish/guestfish-actions.pod:3440
11439 #: ../src/guestfs-actions.pod:5158 ../src/guestfs-actions.pod:5212
11440 msgid "See also L<ntfsresize(8)>."
11441 msgstr ""
11442
11443 #. type: textblock
11444 #: ../fish/guestfish-actions.pod:3403 ../fish/guestfish-actions.pod:3451
11445 #: ../src/guestfs-actions.pod:5162 ../src/guestfs-actions.pod:5252
11446 msgid ""
11447 "This function is deprecated.  In new code, use the C<ntfsresize_opts> call "
11448 "instead."
11449 msgstr ""
11450
11451 #. type: =head2
11452 #: ../fish/guestfish-actions.pod:3410
11453 msgid "ntfsresize-opts"
11454 msgstr ""
11455
11456 #. type: verbatim
11457 #: ../fish/guestfish-actions.pod:3412
11458 #, no-wrap
11459 msgid ""
11460 " ntfsresize-opts device [size:..] [force:..]\n"
11461 "\n"
11462 msgstr ""
11463
11464 #. type: textblock
11465 #: ../fish/guestfish-actions.pod:3423 ../src/guestfs-actions.pod:5195
11466 msgid ""
11467 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
11468 "resized to fit the container (eg. partition)."
11469 msgstr ""
11470
11471 #. type: =item
11472 #: ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:5198
11473 msgid "C<force>"
11474 msgstr ""
11475
11476 #. type: textblock
11477 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
11478 msgid ""
11479 "If this option is true, then force the resize of the filesystem even if the "
11480 "filesystem is marked as requiring a consistency check."
11481 msgstr ""
11482
11483 #. type: textblock
11484 #: ../fish/guestfish-actions.pod:3431
11485 msgid ""
11486 "After the resize operation, the filesystem is always marked as requiring a "
11487 "consistency check (for safety).  You have to boot into Windows to perform "
11488 "this check and clear this condition.  If you I<don't> set the C<force> "
11489 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
11490 "a single filesystem without booting into Windows between each resize."
11491 msgstr ""
11492
11493 #. type: =head2
11494 #: ../fish/guestfish-actions.pod:3444
11495 msgid "ntfsresize-size"
11496 msgstr ""
11497
11498 #. type: verbatim
11499 #: ../fish/guestfish-actions.pod:3446
11500 #, no-wrap
11501 msgid ""
11502 " ntfsresize-size device size\n"
11503 "\n"
11504 msgstr ""
11505
11506 #. type: textblock
11507 #: ../fish/guestfish-actions.pod:3448
11508 msgid ""
11509 "This command is the same as L</ntfsresize> except that it allows you to "
11510 "specify the new size (in bytes) explicitly."
11511 msgstr ""
11512
11513 #. type: =head2
11514 #: ../fish/guestfish-actions.pod:3458
11515 msgid "part-add"
11516 msgstr ""
11517
11518 #. type: verbatim
11519 #: ../fish/guestfish-actions.pod:3460
11520 #, no-wrap
11521 msgid ""
11522 " part-add device prlogex startsect endsect\n"
11523 "\n"
11524 msgstr ""
11525
11526 #. type: textblock
11527 #: ../fish/guestfish-actions.pod:3462
11528 msgid ""
11529 "This command adds a partition to C<device>.  If there is no partition table "
11530 "on the device, call L</part-init> first."
11531 msgstr ""
11532
11533 #. type: textblock
11534 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5273
11535 msgid ""
11536 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11537 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11538 "C<logical>) and C<e> (or C<extended>) partition types."
11539 msgstr ""
11540
11541 #. type: textblock
11542 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
11543 msgid ""
11544 "C<startsect> and C<endsect> are the start and end of the partition in "
11545 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11546 "from the end of the disk (C<-1> is the last sector)."
11547 msgstr ""
11548
11549 #. type: textblock
11550 #: ../fish/guestfish-actions.pod:3474
11551 msgid ""
11552 "Creating a partition which covers the whole disk is not so easy.  Use L</"
11553 "part-disk> to do that."
11554 msgstr ""
11555
11556 #. type: =head2
11557 #: ../fish/guestfish-actions.pod:3477
11558 msgid "part-del"
11559 msgstr ""
11560
11561 #. type: verbatim
11562 #: ../fish/guestfish-actions.pod:3479
11563 #, no-wrap
11564 msgid ""
11565 " part-del device partnum\n"
11566 "\n"
11567 msgstr ""
11568
11569 #. type: textblock
11570 #: ../fish/guestfish-actions.pod:3481 ../src/guestfs-actions.pod:5296
11571 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11572 msgstr ""
11573
11574 #. type: textblock
11575 #: ../fish/guestfish-actions.pod:3483 ../src/guestfs-actions.pod:5298
11576 msgid ""
11577 "Note that in the case of MBR partitioning, deleting an extended partition "
11578 "also deletes any logical partitions it contains."
11579 msgstr ""
11580
11581 #. type: =head2
11582 #: ../fish/guestfish-actions.pod:3487
11583 msgid "part-disk"
11584 msgstr ""
11585
11586 #. type: verbatim
11587 #: ../fish/guestfish-actions.pod:3489
11588 #, no-wrap
11589 msgid ""
11590 " part-disk device parttype\n"
11591 "\n"
11592 msgstr ""
11593
11594 #. type: textblock
11595 #: ../fish/guestfish-actions.pod:3491
11596 msgid ""
11597 "This command is simply a combination of L</part-init> followed by L</part-"
11598 "add> to create a single primary partition covering the whole disk."
11599 msgstr ""
11600
11601 #. type: textblock
11602 #: ../fish/guestfish-actions.pod:3495
11603 msgid ""
11604 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11605 "possible values are described in L</part-init>."
11606 msgstr ""
11607
11608 #. type: =head2
11609 #: ../fish/guestfish-actions.pod:3501
11610 msgid "part-get-bootable"
11611 msgstr ""
11612
11613 #. type: verbatim
11614 #: ../fish/guestfish-actions.pod:3503
11615 #, no-wrap
11616 msgid ""
11617 " part-get-bootable device partnum\n"
11618 "\n"
11619 msgstr ""
11620
11621 #. type: textblock
11622 #: ../fish/guestfish-actions.pod:3505 ../src/guestfs-actions.pod:5334
11623 msgid ""
11624 "This command returns true if the partition C<partnum> on C<device> has the "
11625 "bootable flag set."
11626 msgstr ""
11627
11628 #. type: textblock
11629 #: ../fish/guestfish-actions.pod:3508
11630 msgid "See also L</part-set-bootable>."
11631 msgstr ""
11632
11633 #. type: =head2
11634 #: ../fish/guestfish-actions.pod:3510
11635 msgid "part-get-mbr-id"
11636 msgstr ""
11637
11638 #. type: verbatim
11639 #: ../fish/guestfish-actions.pod:3512
11640 #, no-wrap
11641 msgid ""
11642 " part-get-mbr-id device partnum\n"
11643 "\n"
11644 msgstr ""
11645
11646 #. type: textblock
11647 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5350
11648 msgid ""
11649 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11650 "partition C<partnum>."
11651 msgstr ""
11652
11653 #. type: textblock
11654 #: ../fish/guestfish-actions.pod:3517 ../fish/guestfish-actions.pod:3661
11655 msgid ""
11656 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11657 "undefined results for other partition table types (see L</part-get-"
11658 "parttype>)."
11659 msgstr ""
11660
11661 #. type: =head2
11662 #: ../fish/guestfish-actions.pod:3521
11663 msgid "part-get-parttype"
11664 msgstr ""
11665
11666 #. type: verbatim
11667 #: ../fish/guestfish-actions.pod:3523
11668 #, no-wrap
11669 msgid ""
11670 " part-get-parttype device\n"
11671 "\n"
11672 msgstr ""
11673
11674 #. type: textblock
11675 #: ../fish/guestfish-actions.pod:3525 ../src/guestfs-actions.pod:5367
11676 msgid ""
11677 "This command examines the partition table on C<device> and returns the "
11678 "partition table type (format) being used."
11679 msgstr ""
11680
11681 #. type: textblock
11682 #: ../fish/guestfish-actions.pod:3528
11683 msgid ""
11684 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11685 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11686 "possible, although unusual.  See L</part-init> for a full list."
11687 msgstr ""
11688
11689 #. type: =head2
11690 #: ../fish/guestfish-actions.pod:3533
11691 msgid "part-init"
11692 msgstr ""
11693
11694 #. type: verbatim
11695 #: ../fish/guestfish-actions.pod:3535
11696 #, no-wrap
11697 msgid ""
11698 " part-init device parttype\n"
11699 "\n"
11700 msgstr ""
11701
11702 #. type: textblock
11703 #: ../fish/guestfish-actions.pod:3537 ../src/guestfs-actions.pod:5387
11704 msgid ""
11705 "This creates an empty partition table on C<device> of one of the partition "
11706 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11707 "(for large disks)."
11708 msgstr ""
11709
11710 #. type: textblock
11711 #: ../fish/guestfish-actions.pod:3541
11712 msgid ""
11713 "Initially there are no partitions.  Following this, you should call L</part-"
11714 "add> for each partition required."
11715 msgstr ""
11716
11717 #. type: textblock
11718 #: ../fish/guestfish-actions.pod:3544 ../src/guestfs-actions.pod:5394
11719 msgid "Possible values for C<parttype> are:"
11720 msgstr ""
11721
11722 #. type: =item
11723 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5398
11724 msgid "B<efi>"
11725 msgstr ""
11726
11727 #. type: =item
11728 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5400
11729 msgid "B<gpt>"
11730 msgstr ""
11731
11732 #. type: textblock
11733 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5402
11734 msgid "Intel EFI / GPT partition table."
11735 msgstr ""
11736
11737 #. type: textblock
11738 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5404
11739 msgid ""
11740 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11741 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11742 "the C<mbr> format."
11743 msgstr ""
11744
11745 #. type: =item
11746 #: ../fish/guestfish-actions.pod:3558 ../src/guestfs-actions.pod:5408
11747 msgid "B<mbr>"
11748 msgstr ""
11749
11750 #. type: =item
11751 #: ../fish/guestfish-actions.pod:3560 ../src/guestfs-actions.pod:5410
11752 msgid "B<msdos>"
11753 msgstr ""
11754
11755 #. type: textblock
11756 #: ../fish/guestfish-actions.pod:3562 ../src/guestfs-actions.pod:5412
11757 msgid ""
11758 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11759 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11760 "TB.  For large disks we recommend using C<gpt>."
11761 msgstr ""
11762
11763 #. type: textblock
11764 #: ../fish/guestfish-actions.pod:3569 ../src/guestfs-actions.pod:5419
11765 msgid ""
11766 "Other partition table types that may work but are not supported include:"
11767 msgstr ""
11768
11769 #. type: =item
11770 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
11771 msgid "B<aix>"
11772 msgstr ""
11773
11774 #. type: textblock
11775 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5426
11776 msgid "AIX disk labels."
11777 msgstr ""
11778
11779 #. type: =item
11780 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5428
11781 msgid "B<amiga>"
11782 msgstr ""
11783
11784 #. type: =item
11785 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5430
11786 msgid "B<rdb>"
11787 msgstr ""
11788
11789 #. type: textblock
11790 #: ../fish/guestfish-actions.pod:3582 ../src/guestfs-actions.pod:5432
11791 msgid "Amiga \"Rigid Disk Block\" format."
11792 msgstr ""
11793
11794 #. type: =item
11795 #: ../fish/guestfish-actions.pod:3584 ../src/guestfs-actions.pod:5434
11796 msgid "B<bsd>"
11797 msgstr ""
11798
11799 #. type: textblock
11800 #: ../fish/guestfish-actions.pod:3586 ../src/guestfs-actions.pod:5436
11801 msgid "BSD disk labels."
11802 msgstr ""
11803
11804 #. type: =item
11805 #: ../fish/guestfish-actions.pod:3588 ../src/guestfs-actions.pod:5438
11806 msgid "B<dasd>"
11807 msgstr ""
11808
11809 #. type: textblock
11810 #: ../fish/guestfish-actions.pod:3590 ../src/guestfs-actions.pod:5440
11811 msgid "DASD, used on IBM mainframes."
11812 msgstr ""
11813
11814 #. type: =item
11815 #: ../fish/guestfish-actions.pod:3592 ../src/guestfs-actions.pod:5442
11816 msgid "B<dvh>"
11817 msgstr ""
11818
11819 #. type: textblock
11820 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5444
11821 msgid "MIPS/SGI volumes."
11822 msgstr ""
11823
11824 #. type: =item
11825 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5446
11826 msgid "B<mac>"
11827 msgstr ""
11828
11829 #. type: textblock
11830 #: ../fish/guestfish-actions.pod:3598 ../src/guestfs-actions.pod:5448
11831 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11832 msgstr ""
11833
11834 #. type: =item
11835 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5450
11836 msgid "B<pc98>"
11837 msgstr ""
11838
11839 #. type: textblock
11840 #: ../fish/guestfish-actions.pod:3602 ../src/guestfs-actions.pod:5452
11841 msgid "NEC PC-98 format, common in Japan apparently."
11842 msgstr ""
11843
11844 #. type: =item
11845 #: ../fish/guestfish-actions.pod:3604 ../src/guestfs-actions.pod:5454
11846 msgid "B<sun>"
11847 msgstr ""
11848
11849 #. type: textblock
11850 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5456
11851 msgid "Sun disk labels."
11852 msgstr ""
11853
11854 #. type: =head2
11855 #: ../fish/guestfish-actions.pod:3610
11856 msgid "part-list"
11857 msgstr ""
11858
11859 #. type: verbatim
11860 #: ../fish/guestfish-actions.pod:3612
11861 #, no-wrap
11862 msgid ""
11863 " part-list device\n"
11864 "\n"
11865 msgstr ""
11866
11867 #. type: textblock
11868 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5470
11869 msgid ""
11870 "This command parses the partition table on C<device> and returns the list of "
11871 "partitions found."
11872 msgstr ""
11873
11874 #. type: textblock
11875 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5473
11876 msgid "The fields in the returned structure are:"
11877 msgstr ""
11878
11879 #. type: =item
11880 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5477
11881 msgid "B<part_num>"
11882 msgstr ""
11883
11884 #. type: textblock
11885 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5479
11886 msgid "Partition number, counting from 1."
11887 msgstr ""
11888
11889 #. type: =item
11890 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5481
11891 msgid "B<part_start>"
11892 msgstr ""
11893
11894 #. type: textblock
11895 #: ../fish/guestfish-actions.pod:3627
11896 msgid ""
11897 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11898 "the device's sector size, see L</blockdev-getss>."
11899 msgstr ""
11900
11901 #. type: =item
11902 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
11903 msgid "B<part_end>"
11904 msgstr ""
11905
11906 #. type: textblock
11907 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5488
11908 msgid "End of the partition in bytes."
11909 msgstr ""
11910
11911 #. type: =item
11912 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5490
11913 msgid "B<part_size>"
11914 msgstr ""
11915
11916 #. type: textblock
11917 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5492
11918 msgid "Size of the partition in bytes."
11919 msgstr ""
11920
11921 #. type: =head2
11922 #: ../fish/guestfish-actions.pod:3640
11923 msgid "part-set-bootable"
11924 msgstr ""
11925
11926 #. type: verbatim
11927 #: ../fish/guestfish-actions.pod:3642
11928 #, no-wrap
11929 msgid ""
11930 " part-set-bootable device partnum true|false\n"
11931 "\n"
11932 msgstr ""
11933
11934 #. type: textblock
11935 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5510
11936 msgid ""
11937 "This sets the bootable flag on partition numbered C<partnum> on device "
11938 "C<device>.  Note that partitions are numbered from 1."
11939 msgstr ""
11940
11941 #. type: textblock
11942 #: ../fish/guestfish-actions.pod:3647 ../src/guestfs-actions.pod:5513
11943 msgid ""
11944 "The bootable flag is used by some operating systems (notably Windows) to "
11945 "determine which partition to boot from.  It is by no means universally "
11946 "recognized."
11947 msgstr ""
11948
11949 #. type: =head2
11950 #: ../fish/guestfish-actions.pod:3651
11951 msgid "part-set-mbr-id"
11952 msgstr ""
11953
11954 #. type: verbatim
11955 #: ../fish/guestfish-actions.pod:3653
11956 #, no-wrap
11957 msgid ""
11958 " part-set-mbr-id device partnum idbyte\n"
11959 "\n"
11960 msgstr ""
11961
11962 #. type: textblock
11963 #: ../fish/guestfish-actions.pod:3655 ../src/guestfs-actions.pod:5529
11964 msgid ""
11965 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11966 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11967 "documentation are in fact hexadecimal numbers, but usually documented "
11968 "without any leading \"0x\" which might be confusing."
11969 msgstr ""
11970
11971 #. type: =head2
11972 #: ../fish/guestfish-actions.pod:3665
11973 msgid "part-set-name"
11974 msgstr ""
11975
11976 #. type: verbatim
11977 #: ../fish/guestfish-actions.pod:3667
11978 #, no-wrap
11979 msgid ""
11980 " part-set-name device partnum name\n"
11981 "\n"
11982 msgstr ""
11983
11984 #. type: textblock
11985 #: ../fish/guestfish-actions.pod:3669 ../src/guestfs-actions.pod:5551
11986 msgid ""
11987 "This sets the partition name on partition numbered C<partnum> on device "
11988 "C<device>.  Note that partitions are numbered from 1."
11989 msgstr ""
11990
11991 #. type: textblock
11992 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5554
11993 msgid ""
11994 "The partition name can only be set on certain types of partition table.  "
11995 "This works on C<gpt> but not on C<mbr> partitions."
11996 msgstr ""
11997
11998 #. type: =head2
11999 #: ../fish/guestfish-actions.pod:3675
12000 msgid "part-to-dev"
12001 msgstr ""
12002
12003 #. type: verbatim
12004 #: ../fish/guestfish-actions.pod:3677
12005 #, no-wrap
12006 msgid ""
12007 " part-to-dev partition\n"
12008 "\n"
12009 msgstr ""
12010
12011 #. type: textblock
12012 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5567
12013 msgid ""
12014 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12015 "partition number, returning the device name (eg. \"/dev/sdb\")."
12016 msgstr ""
12017
12018 #. type: textblock
12019 #: ../fish/guestfish-actions.pod:3683
12020 msgid ""
12021 "The named partition must exist, for example as a string returned from L</"
12022 "list-partitions>."
12023 msgstr ""
12024
12025 #. type: =head2
12026 #: ../fish/guestfish-actions.pod:3686
12027 msgid "ping-daemon"
12028 msgstr ""
12029
12030 #. type: verbatim
12031 #: ../fish/guestfish-actions.pod:3688
12032 #, no-wrap
12033 msgid ""
12034 " ping-daemon\n"
12035 "\n"
12036 msgstr ""
12037
12038 #. type: textblock
12039 #: ../fish/guestfish-actions.pod:3690 ../src/guestfs-actions.pod:5584
12040 msgid ""
12041 "This is a test probe into the guestfs daemon running inside the qemu "
12042 "subprocess.  Calling this function checks that the daemon responds to the "
12043 "ping message, without affecting the daemon or attached block device(s) in "
12044 "any other way."
12045 msgstr ""
12046
12047 #. type: =head2
12048 #: ../fish/guestfish-actions.pod:3695
12049 msgid "pread"
12050 msgstr ""
12051
12052 #. type: verbatim
12053 #: ../fish/guestfish-actions.pod:3697
12054 #, no-wrap
12055 msgid ""
12056 " pread path count offset\n"
12057 "\n"
12058 msgstr ""
12059
12060 #. type: textblock
12061 #: ../fish/guestfish-actions.pod:3699 ../src/guestfs-actions.pod:5602
12062 msgid ""
12063 "This command lets you read part of a file.  It reads C<count> bytes of the "
12064 "file, starting at C<offset>, from file C<path>."
12065 msgstr ""
12066
12067 #. type: textblock
12068 #: ../fish/guestfish-actions.pod:3702 ../fish/guestfish-actions.pod:3717
12069 #: ../src/guestfs-actions.pod:5605 ../src/guestfs-actions.pod:5631
12070 msgid ""
12071 "This may read fewer bytes than requested.  For further details see the "
12072 "L<pread(2)> system call."
12073 msgstr ""
12074
12075 #. type: textblock
12076 #: ../fish/guestfish-actions.pod:3705
12077 msgid "See also L</pwrite>, L</pread-device>."
12078 msgstr ""
12079
12080 #. type: =head2
12081 #: ../fish/guestfish-actions.pod:3710
12082 msgid "pread-device"
12083 msgstr ""
12084
12085 #. type: verbatim
12086 #: ../fish/guestfish-actions.pod:3712
12087 #, no-wrap
12088 msgid ""
12089 " pread-device device count offset\n"
12090 "\n"
12091 msgstr ""
12092
12093 #. type: textblock
12094 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5628
12095 msgid ""
12096 "This command lets you read part of a file.  It reads C<count> bytes of "
12097 "C<device>, starting at C<offset>."
12098 msgstr ""
12099
12100 #. type: textblock
12101 #: ../fish/guestfish-actions.pod:3720
12102 msgid "See also L</pread>."
12103 msgstr ""
12104
12105 #. type: =head2
12106 #: ../fish/guestfish-actions.pod:3725
12107 msgid "pvcreate"
12108 msgstr ""
12109
12110 #. type: verbatim
12111 #: ../fish/guestfish-actions.pod:3727
12112 #, no-wrap
12113 msgid ""
12114 " pvcreate device\n"
12115 "\n"
12116 msgstr ""
12117
12118 #. type: textblock
12119 #: ../fish/guestfish-actions.pod:3729 ../src/guestfs-actions.pod:5651
12120 msgid ""
12121 "This creates an LVM physical volume on the named C<device>, where C<device> "
12122 "should usually be a partition name such as C</dev/sda1>."
12123 msgstr ""
12124
12125 #. type: =head2
12126 #: ../fish/guestfish-actions.pod:3733
12127 msgid "pvremove"
12128 msgstr ""
12129
12130 #. type: verbatim
12131 #: ../fish/guestfish-actions.pod:3735
12132 #, no-wrap
12133 msgid ""
12134 " pvremove device\n"
12135 "\n"
12136 msgstr ""
12137
12138 #. type: textblock
12139 #: ../fish/guestfish-actions.pod:3737 ../src/guestfs-actions.pod:5665
12140 msgid ""
12141 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12142 "it."
12143 msgstr ""
12144
12145 #. type: textblock
12146 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5668
12147 msgid ""
12148 "The implementation uses the C<pvremove> command which refuses to wipe "
12149 "physical volumes that contain any volume groups, so you have to remove those "
12150 "first."
12151 msgstr ""
12152
12153 #. type: =head2
12154 #: ../fish/guestfish-actions.pod:3744
12155 msgid "pvresize"
12156 msgstr ""
12157
12158 #. type: verbatim
12159 #: ../fish/guestfish-actions.pod:3746
12160 #, no-wrap
12161 msgid ""
12162 " pvresize device\n"
12163 "\n"
12164 msgstr ""
12165
12166 #. type: textblock
12167 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5682
12168 msgid ""
12169 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12170 "the new size of the underlying device."
12171 msgstr ""
12172
12173 #. type: =head2
12174 #: ../fish/guestfish-actions.pod:3751
12175 msgid "pvresize-size"
12176 msgstr ""
12177
12178 #. type: verbatim
12179 #: ../fish/guestfish-actions.pod:3753
12180 #, no-wrap
12181 msgid ""
12182 " pvresize-size device size\n"
12183 "\n"
12184 msgstr ""
12185
12186 #. type: textblock
12187 #: ../fish/guestfish-actions.pod:3755
12188 msgid ""
12189 "This command is the same as L</pvresize> except that it allows you to "
12190 "specify the new size (in bytes) explicitly."
12191 msgstr ""
12192
12193 #. type: =head2
12194 #: ../fish/guestfish-actions.pod:3758
12195 msgid "pvs"
12196 msgstr ""
12197
12198 #. type: verbatim
12199 #: ../fish/guestfish-actions.pod:3760
12200 #, no-wrap
12201 msgid ""
12202 " pvs\n"
12203 "\n"
12204 msgstr ""
12205
12206 #. type: textblock
12207 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5708
12208 msgid ""
12209 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12210 "(8)> command."
12211 msgstr ""
12212
12213 #. type: textblock
12214 #: ../fish/guestfish-actions.pod:3765 ../src/guestfs-actions.pod:5711
12215 msgid ""
12216 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12217 "sda2>)."
12218 msgstr ""
12219
12220 #. type: textblock
12221 #: ../fish/guestfish-actions.pod:3768
12222 msgid "See also L</pvs-full>."
12223 msgstr ""
12224
12225 #. type: =head2
12226 #: ../fish/guestfish-actions.pod:3770
12227 msgid "pvs-full"
12228 msgstr ""
12229
12230 #. type: verbatim
12231 #: ../fish/guestfish-actions.pod:3772
12232 #, no-wrap
12233 msgid ""
12234 " pvs-full\n"
12235 "\n"
12236 msgstr ""
12237
12238 #. type: textblock
12239 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5727
12240 msgid ""
12241 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12242 "(8)> command.  The \"full\" version includes all fields."
12243 msgstr ""
12244
12245 #. type: =head2
12246 #: ../fish/guestfish-actions.pod:3777
12247 msgid "pvuuid"
12248 msgstr ""
12249
12250 #. type: verbatim
12251 #: ../fish/guestfish-actions.pod:3779
12252 #, no-wrap
12253 msgid ""
12254 " pvuuid device\n"
12255 "\n"
12256 msgstr ""
12257
12258 #. type: textblock
12259 #: ../fish/guestfish-actions.pod:3781 ../src/guestfs-actions.pod:5742
12260 msgid "This command returns the UUID of the LVM PV C<device>."
12261 msgstr ""
12262
12263 #. type: =head2
12264 #: ../fish/guestfish-actions.pod:3783
12265 msgid "pwrite"
12266 msgstr ""
12267
12268 #. type: verbatim
12269 #: ../fish/guestfish-actions.pod:3785
12270 #, no-wrap
12271 msgid ""
12272 " pwrite path content offset\n"
12273 "\n"
12274 msgstr ""
12275
12276 #. type: textblock
12277 #: ../fish/guestfish-actions.pod:3787 ../src/guestfs-actions.pod:5758
12278 msgid ""
12279 "This command writes to part of a file.  It writes the data buffer C<content> "
12280 "to the file C<path> starting at offset C<offset>."
12281 msgstr ""
12282
12283 #. type: textblock
12284 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5761
12285 msgid ""
12286 "This command implements the L<pwrite(2)> system call, and like that system "
12287 "call it may not write the full data requested.  The return value is the "
12288 "number of bytes that were actually written to the file.  This could even be "
12289 "0, although short writes are unlikely for regular files in ordinary "
12290 "circumstances."
12291 msgstr ""
12292
12293 #. type: textblock
12294 #: ../fish/guestfish-actions.pod:3796
12295 msgid "See also L</pread>, L</pwrite-device>."
12296 msgstr ""
12297
12298 #. type: =head2
12299 #: ../fish/guestfish-actions.pod:3801
12300 msgid "pwrite-device"
12301 msgstr ""
12302
12303 #. type: verbatim
12304 #: ../fish/guestfish-actions.pod:3803
12305 #, no-wrap
12306 msgid ""
12307 " pwrite-device device content offset\n"
12308 "\n"
12309 msgstr ""
12310
12311 #. type: textblock
12312 #: ../fish/guestfish-actions.pod:3805 ../src/guestfs-actions.pod:5785
12313 msgid ""
12314 "This command writes to part of a device.  It writes the data buffer "
12315 "C<content> to C<device> starting at offset C<offset>."
12316 msgstr ""
12317
12318 #. type: textblock
12319 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5788
12320 msgid ""
12321 "This command implements the L<pwrite(2)> system call, and like that system "
12322 "call it may not write the full data requested (although short writes to disk "
12323 "devices and partitions are probably impossible with standard Linux kernels)."
12324 msgstr ""
12325
12326 #. type: textblock
12327 #: ../fish/guestfish-actions.pod:3813
12328 msgid "See also L</pwrite>."
12329 msgstr ""
12330
12331 #. type: =head2
12332 #: ../fish/guestfish-actions.pod:3818
12333 msgid "read-file"
12334 msgstr ""
12335
12336 #. type: verbatim
12337 #: ../fish/guestfish-actions.pod:3820
12338 #, no-wrap
12339 msgid ""
12340 " read-file path\n"
12341 "\n"
12342 msgstr ""
12343
12344 #. type: textblock
12345 #: ../fish/guestfish-actions.pod:3822 ../src/guestfs-actions.pod:5809
12346 msgid "This calls returns the contents of the file C<path> as a buffer."
12347 msgstr ""
12348
12349 #. type: textblock
12350 #: ../fish/guestfish-actions.pod:3825
12351 msgid ""
12352 "Unlike L</cat>, this function can correctly handle files that contain "
12353 "embedded ASCII NUL characters.  However unlike L</download>, this function "
12354 "is limited in the total size of file that can be handled."
12355 msgstr ""
12356
12357 #. type: =head2
12358 #: ../fish/guestfish-actions.pod:3833
12359 msgid "read-lines"
12360 msgstr ""
12361
12362 #. type: verbatim
12363 #: ../fish/guestfish-actions.pod:3835
12364 #, no-wrap
12365 msgid ""
12366 " read-lines path\n"
12367 "\n"
12368 msgstr ""
12369
12370 #. type: textblock
12371 #: ../fish/guestfish-actions.pod:3839 ../src/guestfs-actions.pod:5834
12372 msgid ""
12373 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12374 "C<CRLF> character sequences are I<not> returned."
12375 msgstr ""
12376
12377 #. type: textblock
12378 #: ../fish/guestfish-actions.pod:3842
12379 msgid ""
12380 "Note that this function cannot correctly handle binary files (specifically, "
12381 "files containing C<\\0> character which is treated as end of line).  For "
12382 "those you need to use the L</read-file> function which has a more complex "
12383 "interface."
12384 msgstr ""
12385
12386 #. type: =head2
12387 #: ../fish/guestfish-actions.pod:3847
12388 msgid "readdir"
12389 msgstr ""
12390
12391 #. type: verbatim
12392 #: ../fish/guestfish-actions.pod:3849
12393 #, no-wrap
12394 msgid ""
12395 " readdir dir\n"
12396 "\n"
12397 msgstr ""
12398
12399 #. type: textblock
12400 #: ../fish/guestfish-actions.pod:3851 ../src/guestfs-actions.pod:5854
12401 msgid "This returns the list of directory entries in directory C<dir>."
12402 msgstr ""
12403
12404 #. type: textblock
12405 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5856
12406 msgid ""
12407 "All entries in the directory are returned, including C<.> and C<..>.  The "
12408 "entries are I<not> sorted, but returned in the same order as the underlying "
12409 "filesystem."
12410 msgstr ""
12411
12412 #. type: textblock
12413 #: ../fish/guestfish-actions.pod:3857 ../src/guestfs-actions.pod:5860
12414 msgid ""
12415 "Also this call returns basic file type information about each file.  The "
12416 "C<ftyp> field will contain one of the following characters:"
12417 msgstr ""
12418
12419 #. type: =item
12420 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
12421 msgid "'b'"
12422 msgstr ""
12423
12424 #. type: textblock
12425 #: ../fish/guestfish-actions.pod:3864 ../src/guestfs-actions.pod:5867
12426 msgid "Block special"
12427 msgstr ""
12428
12429 #. type: =item
12430 #: ../fish/guestfish-actions.pod:3866 ../src/guestfs-actions.pod:5869
12431 msgid "'c'"
12432 msgstr ""
12433
12434 #. type: textblock
12435 #: ../fish/guestfish-actions.pod:3868 ../src/guestfs-actions.pod:5871
12436 msgid "Char special"
12437 msgstr ""
12438
12439 #. type: =item
12440 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5873
12441 msgid "'d'"
12442 msgstr ""
12443
12444 #. type: textblock
12445 #: ../fish/guestfish-actions.pod:3872 ../src/guestfs-actions.pod:5875
12446 msgid "Directory"
12447 msgstr ""
12448
12449 #. type: =item
12450 #: ../fish/guestfish-actions.pod:3874 ../src/guestfs-actions.pod:5877
12451 msgid "'f'"
12452 msgstr ""
12453
12454 #. type: textblock
12455 #: ../fish/guestfish-actions.pod:3876 ../src/guestfs-actions.pod:5879
12456 msgid "FIFO (named pipe)"
12457 msgstr ""
12458
12459 #. type: =item
12460 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:5881
12461 msgid "'l'"
12462 msgstr ""
12463
12464 #. type: textblock
12465 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5883
12466 msgid "Symbolic link"
12467 msgstr ""
12468
12469 #. type: =item
12470 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:5885
12471 msgid "'r'"
12472 msgstr ""
12473
12474 #. type: textblock
12475 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5887
12476 msgid "Regular file"
12477 msgstr ""
12478
12479 #. type: =item
12480 #: ../fish/guestfish-actions.pod:3886 ../src/guestfs-actions.pod:5889
12481 msgid "'s'"
12482 msgstr ""
12483
12484 #. type: textblock
12485 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5891
12486 msgid "Socket"
12487 msgstr ""
12488
12489 #. type: =item
12490 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:5893
12491 msgid "'u'"
12492 msgstr ""
12493
12494 #. type: textblock
12495 #: ../fish/guestfish-actions.pod:3892 ../src/guestfs-actions.pod:5895
12496 msgid "Unknown file type"
12497 msgstr ""
12498
12499 #. type: =item
12500 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:5897
12501 msgid "'?'"
12502 msgstr ""
12503
12504 #. type: textblock
12505 #: ../fish/guestfish-actions.pod:3896 ../src/guestfs-actions.pod:5899
12506 msgid ""
12507 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12508 msgstr ""
12509
12510 #. type: textblock
12511 #: ../fish/guestfish-actions.pod:3901
12512 msgid ""
12513 "This function is primarily intended for use by programs.  To get a simple "
12514 "list of names, use L</ls>.  To get a printable directory for human "
12515 "consumption, use L</ll>."
12516 msgstr ""
12517
12518 #. type: =head2
12519 #: ../fish/guestfish-actions.pod:3905
12520 msgid "readlink"
12521 msgstr ""
12522
12523 #. type: verbatim
12524 #: ../fish/guestfish-actions.pod:3907
12525 #, no-wrap
12526 msgid ""
12527 " readlink path\n"
12528 "\n"
12529 msgstr ""
12530
12531 #. type: textblock
12532 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:5920
12533 msgid "This command reads the target of a symbolic link."
12534 msgstr ""
12535
12536 #. type: =head2
12537 #: ../fish/guestfish-actions.pod:3911
12538 msgid "readlinklist"
12539 msgstr ""
12540
12541 #. type: verbatim
12542 #: ../fish/guestfish-actions.pod:3913
12543 #, no-wrap
12544 msgid ""
12545 " readlinklist path 'names ...'\n"
12546 "\n"
12547 msgstr ""
12548
12549 #. type: textblock
12550 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5934
12551 msgid ""
12552 "This call allows you to do a C<readlink> operation on multiple files, where "
12553 "all files are in the directory C<path>.  C<names> is the list of files from "
12554 "this directory."
12555 msgstr ""
12556
12557 #. type: textblock
12558 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5938
12559 msgid ""
12560 "On return you get a list of strings, with a one-to-one correspondence to the "
12561 "C<names> list.  Each string is the value of the symbolic link."
12562 msgstr ""
12563
12564 #. type: textblock
12565 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:5942
12566 msgid ""
12567 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12568 "result string is the empty string C<\"\">.  However the whole operation is "
12569 "completed even if there were C<readlink(2)> errors, and so you can call this "
12570 "function with names where you don't know if they are symbolic links already "
12571 "(albeit slightly less efficient)."
12572 msgstr ""
12573
12574 #. type: textblock
12575 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:5949
12576 msgid ""
12577 "This call is intended for programs that want to efficiently list a directory "
12578 "contents without making many round-trips.  Very long directory listings "
12579 "might cause the protocol message size to be exceeded, causing this call to "
12580 "fail.  The caller must split up such requests into smaller groups of names."
12581 msgstr ""
12582
12583 #. type: =head2
12584 #: ../fish/guestfish-actions.pod:3937
12585 msgid "realpath"
12586 msgstr ""
12587
12588 #. type: verbatim
12589 #: ../fish/guestfish-actions.pod:3939
12590 #, no-wrap
12591 msgid ""
12592 " realpath path\n"
12593 "\n"
12594 msgstr ""
12595
12596 #. type: textblock
12597 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:5968
12598 msgid ""
12599 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12600 "has no C<.>, C<..> or symbolic link path elements."
12601 msgstr ""
12602
12603 #. type: =head2
12604 #: ../fish/guestfish-actions.pod:3944
12605 msgid "removexattr"
12606 msgstr ""
12607
12608 #. type: verbatim
12609 #: ../fish/guestfish-actions.pod:3946
12610 #, no-wrap
12611 msgid ""
12612 " removexattr xattr path\n"
12613 "\n"
12614 msgstr ""
12615
12616 #. type: textblock
12617 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:5983
12618 msgid ""
12619 "This call removes the extended attribute named C<xattr> of the file C<path>."
12620 msgstr ""
12621
12622 #. type: textblock
12623 #: ../fish/guestfish-actions.pod:3951
12624 msgid "See also: L</lremovexattr>, L<attr(5)>."
12625 msgstr ""
12626
12627 #. type: =head2
12628 #: ../fish/guestfish-actions.pod:3953
12629 msgid "resize2fs"
12630 msgstr ""
12631
12632 #. type: verbatim
12633 #: ../fish/guestfish-actions.pod:3955
12634 #, no-wrap
12635 msgid ""
12636 " resize2fs device\n"
12637 "\n"
12638 msgstr ""
12639
12640 #. type: textblock
12641 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:5998
12642 msgid ""
12643 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12644 "underlying device."
12645 msgstr ""
12646
12647 #. type: textblock
12648 #: ../fish/guestfish-actions.pod:3960
12649 msgid ""
12650 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12651 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12652 "gives an error about this and sometimes not.  In any case, it is always safe "
12653 "to call L</e2fsck-f> before calling this function."
12654 msgstr ""
12655
12656 #. type: =head2
12657 #: ../fish/guestfish-actions.pod:3966
12658 msgid "resize2fs-M"
12659 msgstr ""
12660
12661 #. type: verbatim
12662 #: ../fish/guestfish-actions.pod:3968
12663 #, no-wrap
12664 msgid ""
12665 " resize2fs-M device\n"
12666 "\n"
12667 msgstr ""
12668
12669 #. type: textblock
12670 #: ../fish/guestfish-actions.pod:3970
12671 msgid ""
12672 "This command is the same as L</resize2fs>, but the filesystem is resized to "
12673 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
12674 "command."
12675 msgstr ""
12676
12677 #. type: textblock
12678 #: ../fish/guestfish-actions.pod:3974
12679 msgid ""
12680 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
12681 "and read the C<Block size> and C<Block count> values.  These two numbers, "
12682 "multiplied together, give the resulting size of the minimal filesystem in "
12683 "bytes."
12684 msgstr ""
12685
12686 #. type: =head2
12687 #: ../fish/guestfish-actions.pod:3979
12688 msgid "resize2fs-size"
12689 msgstr ""
12690
12691 #. type: verbatim
12692 #: ../fish/guestfish-actions.pod:3981
12693 #, no-wrap
12694 msgid ""
12695 " resize2fs-size device size\n"
12696 "\n"
12697 msgstr ""
12698
12699 #. type: textblock
12700 #: ../fish/guestfish-actions.pod:3983
12701 msgid ""
12702 "This command is the same as L</resize2fs> except that it allows you to "
12703 "specify the new size (in bytes) explicitly."
12704 msgstr ""
12705
12706 #. type: =head2
12707 #: ../fish/guestfish-actions.pod:3986
12708 msgid "rm"
12709 msgstr ""
12710
12711 #. type: verbatim
12712 #: ../fish/guestfish-actions.pod:3988
12713 #, no-wrap
12714 msgid ""
12715 " rm path\n"
12716 "\n"
12717 msgstr ""
12718
12719 #. type: textblock
12720 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6050
12721 msgid "Remove the single file C<path>."
12722 msgstr ""
12723
12724 #. type: =head2
12725 #: ../fish/guestfish-actions.pod:3992
12726 msgid "rm-rf"
12727 msgstr ""
12728
12729 #. type: verbatim
12730 #: ../fish/guestfish-actions.pod:3994
12731 #, no-wrap
12732 msgid ""
12733 " rm-rf path\n"
12734 "\n"
12735 msgstr ""
12736
12737 #. type: textblock
12738 #: ../fish/guestfish-actions.pod:3996 ../src/guestfs-actions.pod:6062
12739 msgid ""
12740 "Remove the file or directory C<path>, recursively removing the contents if "
12741 "its a directory.  This is like the C<rm -rf> shell command."
12742 msgstr ""
12743
12744 #. type: =head2
12745 #: ../fish/guestfish-actions.pod:4000
12746 msgid "rmdir"
12747 msgstr ""
12748
12749 #. type: verbatim
12750 #: ../fish/guestfish-actions.pod:4002
12751 #, no-wrap
12752 msgid ""
12753 " rmdir path\n"
12754 "\n"
12755 msgstr ""
12756
12757 #. type: textblock
12758 #: ../fish/guestfish-actions.pod:4004 ../src/guestfs-actions.pod:6076
12759 msgid "Remove the single directory C<path>."
12760 msgstr ""
12761
12762 #. type: =head2
12763 #: ../fish/guestfish-actions.pod:4006
12764 msgid "rmmountpoint"
12765 msgstr ""
12766
12767 #. type: verbatim
12768 #: ../fish/guestfish-actions.pod:4008
12769 #, no-wrap
12770 msgid ""
12771 " rmmountpoint exemptpath\n"
12772 "\n"
12773 msgstr ""
12774
12775 #. type: textblock
12776 #: ../fish/guestfish-actions.pod:4010
12777 msgid ""
12778 "This calls removes a mountpoint that was previously created with L</"
12779 "mkmountpoint>.  See L</mkmountpoint> for full details."
12780 msgstr ""
12781
12782 #. type: =head2
12783 #: ../fish/guestfish-actions.pod:4014
12784 msgid "scrub-device"
12785 msgstr ""
12786
12787 #. type: verbatim
12788 #: ../fish/guestfish-actions.pod:4016
12789 #, no-wrap
12790 msgid ""
12791 " scrub-device device\n"
12792 "\n"
12793 msgstr ""
12794
12795 #. type: textblock
12796 #: ../fish/guestfish-actions.pod:4018 ../src/guestfs-actions.pod:6102
12797 msgid ""
12798 "This command writes patterns over C<device> to make data retrieval more "
12799 "difficult."
12800 msgstr ""
12801
12802 #. type: textblock
12803 #: ../fish/guestfish-actions.pod:4021 ../fish/guestfish-actions.pod:4036
12804 #: ../fish/guestfish-actions.pod:4049 ../src/guestfs-actions.pod:6105
12805 #: ../src/guestfs-actions.pod:6126 ../src/guestfs-actions.pod:6145
12806 msgid ""
12807 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12808 "more details."
12809 msgstr ""
12810
12811 #. type: =head2
12812 #: ../fish/guestfish-actions.pod:4027
12813 msgid "scrub-file"
12814 msgstr ""
12815
12816 #. type: verbatim
12817 #: ../fish/guestfish-actions.pod:4029
12818 #, no-wrap
12819 msgid ""
12820 " scrub-file file\n"
12821 "\n"
12822 msgstr ""
12823
12824 #. type: textblock
12825 #: ../fish/guestfish-actions.pod:4031 ../src/guestfs-actions.pod:6121
12826 msgid ""
12827 "This command writes patterns over a file to make data retrieval more "
12828 "difficult."
12829 msgstr ""
12830
12831 #. type: textblock
12832 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6124
12833 msgid "The file is I<removed> after scrubbing."
12834 msgstr ""
12835
12836 #. type: =head2
12837 #: ../fish/guestfish-actions.pod:4039
12838 msgid "scrub-freespace"
12839 msgstr ""
12840
12841 #. type: verbatim
12842 #: ../fish/guestfish-actions.pod:4041
12843 #, no-wrap
12844 msgid ""
12845 " scrub-freespace dir\n"
12846 "\n"
12847 msgstr ""
12848
12849 #. type: textblock
12850 #: ../fish/guestfish-actions.pod:4043
12851 msgid ""
12852 "This command creates the directory C<dir> and then fills it with files until "
12853 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
12854 "deletes them.  The intention is to scrub any free space on the partition "
12855 "containing C<dir>."
12856 msgstr ""
12857
12858 #. type: =head2
12859 #: ../fish/guestfish-actions.pod:4052
12860 msgid "set-append"
12861 msgstr ""
12862
12863 #. type: =head2
12864 #: ../fish/guestfish-actions.pod:4054
12865 msgid "append"
12866 msgstr ""
12867
12868 #. type: verbatim
12869 #: ../fish/guestfish-actions.pod:4056
12870 #, no-wrap
12871 msgid ""
12872 " set-append append\n"
12873 "\n"
12874 msgstr ""
12875
12876 #. type: textblock
12877 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6158
12878 msgid ""
12879 "This function is used to add additional options to the guest kernel command "
12880 "line."
12881 msgstr ""
12882
12883 #. type: textblock
12884 #: ../fish/guestfish-actions.pod:4061 ../src/guestfs-actions.pod:6161
12885 msgid ""
12886 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12887 "environment variable."
12888 msgstr ""
12889
12890 #. type: textblock
12891 #: ../fish/guestfish-actions.pod:4064 ../src/guestfs-actions.pod:6164
12892 msgid ""
12893 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12894 "(libguestfs always adds a few of its own)."
12895 msgstr ""
12896
12897 #. type: =head2
12898 #: ../fish/guestfish-actions.pod:4067
12899 msgid "set-attach-method"
12900 msgstr ""
12901
12902 #. type: =head2
12903 #: ../fish/guestfish-actions.pod:4069
12904 msgid "attach-method"
12905 msgstr ""
12906
12907 #. type: verbatim
12908 #: ../fish/guestfish-actions.pod:4071
12909 #, no-wrap
12910 msgid ""
12911 " set-attach-method attachmethod\n"
12912 "\n"
12913 msgstr ""
12914
12915 #. type: textblock
12916 #: ../fish/guestfish-actions.pod:4073 ../src/guestfs-actions.pod:6177
12917 msgid ""
12918 "Set the method that libguestfs uses to connect to the back end guestfsd "
12919 "daemon.  Possible methods are:"
12920 msgstr ""
12921
12922 #. type: =item
12923 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
12924 #: ../src/guestfs.pod:2687
12925 msgid "C<appliance>"
12926 msgstr ""
12927
12928 #. type: textblock
12929 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6184
12930 msgid ""
12931 "Launch an appliance and connect to it.  This is the ordinary method and the "
12932 "default."
12933 msgstr ""
12934
12935 #. type: =item
12936 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
12937 msgid "C<unix:I<path>>"
12938 msgstr ""
12939
12940 #. type: textblock
12941 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
12942 msgid "Connect to the Unix domain socket I<path>."
12943 msgstr ""
12944
12945 #. type: textblock
12946 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6191
12947 msgid ""
12948 "This method lets you connect to an existing daemon or (using virtio-serial) "
12949 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
12950 "RUNNING DAEMONS>."
12951 msgstr ""
12952
12953 #. type: =head2
12954 #: ../fish/guestfish-actions.pod:4093
12955 msgid "set-autosync"
12956 msgstr ""
12957
12958 #. type: =head2
12959 #: ../fish/guestfish-actions.pod:4095
12960 msgid "autosync"
12961 msgstr ""
12962
12963 #. type: verbatim
12964 #: ../fish/guestfish-actions.pod:4097
12965 #, no-wrap
12966 msgid ""
12967 " set-autosync true|false\n"
12968 "\n"
12969 msgstr ""
12970
12971 #. type: textblock
12972 #: ../fish/guestfish-actions.pod:4099 ../src/guestfs-actions.pod:6207
12973 msgid ""
12974 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12975 "effort attempt to make filesystems consistent and synchronized when the "
12976 "handle is closed (also if the program exits without closing handles)."
12977 msgstr ""
12978
12979 #. type: textblock
12980 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
12981 msgid ""
12982 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12983 "disabled by default)."
12984 msgstr ""
12985
12986 #. type: =head2
12987 #: ../fish/guestfish-actions.pod:4107
12988 msgid "set-direct"
12989 msgstr ""
12990
12991 #. type: =head2
12992 #: ../fish/guestfish-actions.pod:4109
12993 msgid "direct"
12994 msgstr ""
12995
12996 #. type: verbatim
12997 #: ../fish/guestfish-actions.pod:4111
12998 #, no-wrap
12999 msgid ""
13000 " set-direct true|false\n"
13001 "\n"
13002 msgstr ""
13003
13004 #. type: textblock
13005 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6225
13006 msgid ""
13007 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13008 "passed directly through to the appliance once it is launched."
13009 msgstr ""
13010
13011 #. type: textblock
13012 #: ../fish/guestfish-actions.pod:4117
13013 msgid ""
13014 "One consequence of this is that log messages aren't caught by the library "
13015 "and handled by L</set-log-message-callback>, but go straight to stdout."
13016 msgstr ""
13017
13018 #. type: textblock
13019 #: ../fish/guestfish-actions.pod:4121 ../src/guestfs-actions.pod:6233
13020 msgid "You probably don't want to use this unless you know what you are doing."
13021 msgstr ""
13022
13023 #. type: textblock
13024 #: ../fish/guestfish-actions.pod:4124 ../src/guestfs-actions.pod:6236
13025 msgid "The default is disabled."
13026 msgstr ""
13027
13028 #. type: =head2
13029 #: ../fish/guestfish-actions.pod:4126
13030 msgid "set-e2label"
13031 msgstr ""
13032
13033 #. type: verbatim
13034 #: ../fish/guestfish-actions.pod:4128
13035 #, no-wrap
13036 msgid ""
13037 " set-e2label device label\n"
13038 "\n"
13039 msgstr ""
13040
13041 #. type: textblock
13042 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6249
13043 msgid ""
13044 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13045 "C<label>.  Filesystem labels are limited to 16 characters."
13046 msgstr ""
13047
13048 #. type: textblock
13049 #: ../fish/guestfish-actions.pod:4134
13050 msgid ""
13051 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13052 "label on a filesystem."
13053 msgstr ""
13054
13055 #. type: =head2
13056 #: ../fish/guestfish-actions.pod:4137
13057 msgid "set-e2uuid"
13058 msgstr ""
13059
13060 #. type: verbatim
13061 #: ../fish/guestfish-actions.pod:4139
13062 #, no-wrap
13063 msgid ""
13064 " set-e2uuid device uuid\n"
13065 "\n"
13066 msgstr ""
13067
13068 #. type: textblock
13069 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6267
13070 msgid ""
13071 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13072 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13073 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13074 msgstr ""
13075
13076 #. type: textblock
13077 #: ../fish/guestfish-actions.pod:4146
13078 msgid ""
13079 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13080 "UUID of a filesystem."
13081 msgstr ""
13082
13083 #. type: =head2
13084 #: ../fish/guestfish-actions.pod:4149
13085 msgid "set-memsize"
13086 msgstr ""
13087
13088 #. type: =head2
13089 #: ../fish/guestfish-actions.pod:4151
13090 msgid "memsize"
13091 msgstr ""
13092
13093 #. type: verbatim
13094 #: ../fish/guestfish-actions.pod:4153
13095 #, no-wrap
13096 msgid ""
13097 " set-memsize memsize\n"
13098 "\n"
13099 msgstr ""
13100
13101 #. type: textblock
13102 #: ../fish/guestfish-actions.pod:4155
13103 msgid ""
13104 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13105 "This only has any effect if called before L</launch>."
13106 msgstr ""
13107
13108 #. type: textblock
13109 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6289
13110 msgid ""
13111 "You can also change this by setting the environment variable "
13112 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13113 msgstr ""
13114
13115 #. type: =head2
13116 #: ../fish/guestfish-actions.pod:4166
13117 msgid "set-network"
13118 msgstr ""
13119
13120 #. type: =head2
13121 #: ../fish/guestfish-actions.pod:4168
13122 msgid "network"
13123 msgstr ""
13124
13125 #. type: verbatim
13126 #: ../fish/guestfish-actions.pod:4170
13127 #, no-wrap
13128 msgid ""
13129 " set-network true|false\n"
13130 "\n"
13131 msgstr ""
13132
13133 #. type: textblock
13134 #: ../fish/guestfish-actions.pod:4172 ../src/guestfs-actions.pod:6306
13135 msgid ""
13136 "If C<network> is true, then the network is enabled in the libguestfs "
13137 "appliance.  The default is false."
13138 msgstr ""
13139
13140 #. type: textblock
13141 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6309
13142 msgid ""
13143 "This affects whether commands are able to access the network (see L<guestfs"
13144 "(3)/RUNNING COMMANDS>)."
13145 msgstr ""
13146
13147 #. type: textblock
13148 #: ../fish/guestfish-actions.pod:4178
13149 msgid ""
13150 "You must call this before calling L</launch>, otherwise it has no effect."
13151 msgstr ""
13152
13153 #. type: =head2
13154 #: ../fish/guestfish-actions.pod:4181
13155 msgid "set-path"
13156 msgstr ""
13157
13158 #. type: verbatim
13159 #: ../fish/guestfish-actions.pod:4185
13160 #, no-wrap
13161 msgid ""
13162 " set-path searchpath\n"
13163 "\n"
13164 msgstr ""
13165
13166 #. type: textblock
13167 #: ../fish/guestfish-actions.pod:4187 ../src/guestfs-actions.pod:6325
13168 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13169 msgstr ""
13170
13171 #. type: textblock
13172 #: ../fish/guestfish-actions.pod:4189 ../src/guestfs-actions.pod:6327
13173 msgid ""
13174 "The default is C<$libdir/guestfs> unless overridden by setting "
13175 "C<LIBGUESTFS_PATH> environment variable."
13176 msgstr ""
13177
13178 #. type: textblock
13179 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13180 msgid "Setting C<path> to C<NULL> restores the default path."
13181 msgstr ""
13182
13183 #. type: =head2
13184 #: ../fish/guestfish-actions.pod:4194
13185 msgid "set-pgroup"
13186 msgstr ""
13187
13188 #. type: =head2
13189 #: ../fish/guestfish-actions.pod:4196
13190 msgid "pgroup"
13191 msgstr ""
13192
13193 #. type: verbatim
13194 #: ../fish/guestfish-actions.pod:4198
13195 #, no-wrap
13196 msgid ""
13197 " set-pgroup true|false\n"
13198 "\n"
13199 msgstr ""
13200
13201 #. type: textblock
13202 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6342
13203 msgid ""
13204 "If C<pgroup> is true, child processes are placed into their own process "
13205 "group."
13206 msgstr ""
13207
13208 #. type: textblock
13209 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6345
13210 msgid ""
13211 "The practical upshot of this is that signals like C<SIGINT> (from users "
13212 "pressing C<^C>) won't be received by the child process."
13213 msgstr ""
13214
13215 #. type: textblock
13216 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6348
13217 msgid ""
13218 "The default for this flag is false, because usually you want C<^C> to kill "
13219 "the subprocess."
13220 msgstr ""
13221
13222 #. type: =head2
13223 #: ../fish/guestfish-actions.pod:4209
13224 msgid "set-qemu"
13225 msgstr ""
13226
13227 #. type: =head2
13228 #: ../fish/guestfish-actions.pod:4211
13229 msgid "qemu"
13230 msgstr ""
13231
13232 #. type: verbatim
13233 #: ../fish/guestfish-actions.pod:4213
13234 #, no-wrap
13235 msgid ""
13236 " set-qemu qemu\n"
13237 "\n"
13238 msgstr ""
13239
13240 #. type: textblock
13241 #: ../fish/guestfish-actions.pod:4215 ../src/guestfs-actions.pod:6361
13242 msgid "Set the qemu binary that we will use."
13243 msgstr ""
13244
13245 #. type: textblock
13246 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6363
13247 msgid ""
13248 "The default is chosen when the library was compiled by the configure script."
13249 msgstr ""
13250
13251 #. type: textblock
13252 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13253 msgid ""
13254 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13255 "variable."
13256 msgstr ""
13257
13258 #. type: textblock
13259 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6369
13260 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13261 msgstr ""
13262
13263 #. type: textblock
13264 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
13265 msgid ""
13266 "Note that you should call this function as early as possible after creating "
13267 "the handle.  This is because some pre-launch operations depend on testing "
13268 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13269 "don't retest features, and so you might see inconsistent results.  Using the "
13270 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13271 "the qemu binary at the same time as the handle is created."
13272 msgstr ""
13273
13274 #. type: =head2
13275 #: ../fish/guestfish-actions.pod:4233
13276 msgid "set-recovery-proc"
13277 msgstr ""
13278
13279 #. type: =head2
13280 #: ../fish/guestfish-actions.pod:4235
13281 msgid "recovery-proc"
13282 msgstr ""
13283
13284 #. type: verbatim
13285 #: ../fish/guestfish-actions.pod:4237
13286 #, no-wrap
13287 msgid ""
13288 " set-recovery-proc true|false\n"
13289 "\n"
13290 msgstr ""
13291
13292 #. type: textblock
13293 #: ../fish/guestfish-actions.pod:4239
13294 msgid ""
13295 "If this is called with the parameter C<false> then L</launch> does not "
13296 "create a recovery process.  The purpose of the recovery process is to stop "
13297 "runaway qemu processes in the case where the main program aborts abruptly."
13298 msgstr ""
13299
13300 #. type: textblock
13301 #: ../fish/guestfish-actions.pod:4244
13302 msgid ""
13303 "This only has any effect if called before L</launch>, and the default is "
13304 "true."
13305 msgstr ""
13306
13307 #. type: textblock
13308 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6397
13309 msgid ""
13310 "About the only time when you would want to disable this is if the main "
13311 "process will fork itself into the background (\"daemonize\" itself).  In "
13312 "this case the recovery process thinks that the main program has disappeared "
13313 "and so kills qemu, which is not very helpful."
13314 msgstr ""
13315
13316 #. type: =head2
13317 #: ../fish/guestfish-actions.pod:4253
13318 msgid "set-selinux"
13319 msgstr ""
13320
13321 #. type: =head2
13322 #: ../fish/guestfish-actions.pod:4255
13323 msgid "selinux"
13324 msgstr ""
13325
13326 #. type: verbatim
13327 #: ../fish/guestfish-actions.pod:4257
13328 #, no-wrap
13329 msgid ""
13330 " set-selinux true|false\n"
13331 "\n"
13332 msgstr ""
13333
13334 #. type: textblock
13335 #: ../fish/guestfish-actions.pod:4259 ../src/guestfs-actions.pod:6413
13336 msgid ""
13337 "This sets the selinux flag that is passed to the appliance at boot time.  "
13338 "The default is C<selinux=0> (disabled)."
13339 msgstr ""
13340
13341 #. type: textblock
13342 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6416
13343 msgid ""
13344 "Note that if SELinux is enabled, it is always in Permissive mode "
13345 "(C<enforcing=0>)."
13346 msgstr ""
13347
13348 #. type: =head2
13349 #: ../fish/guestfish-actions.pod:4268
13350 msgid "set-trace"
13351 msgstr ""
13352
13353 #. type: =head2
13354 #: ../fish/guestfish-actions.pod:4270
13355 msgid "trace"
13356 msgstr ""
13357
13358 #. type: verbatim
13359 #: ../fish/guestfish-actions.pod:4272
13360 #, no-wrap
13361 msgid ""
13362 " set-trace true|false\n"
13363 "\n"
13364 msgstr ""
13365
13366 #. type: textblock
13367 #: ../fish/guestfish-actions.pod:4274 ../src/guestfs-actions.pod:6432
13368 msgid ""
13369 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
13370 "return values are traced."
13371 msgstr ""
13372
13373 #. type: textblock
13374 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6435
13375 msgid ""
13376 "If you want to trace C API calls into libguestfs (and other libraries) then "
13377 "possibly a better way is to use the external ltrace(1) command."
13378 msgstr ""
13379
13380 #. type: textblock
13381 #: ../fish/guestfish-actions.pod:4281 ../src/guestfs-actions.pod:6439
13382 msgid ""
13383 "Command traces are disabled unless the environment variable "
13384 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13385 msgstr ""
13386
13387 #. type: textblock
13388 #: ../fish/guestfish-actions.pod:4284
13389 msgid ""
13390 "Trace messages are normally sent to C<stderr>, unless you register a "
13391 "callback to send them somewhere else (see L</set-event-callback>)."
13392 msgstr ""
13393
13394 #. type: =head2
13395 #: ../fish/guestfish-actions.pod:4288
13396 msgid "set-verbose"
13397 msgstr ""
13398
13399 #. type: =head2
13400 #: ../fish/guestfish-actions.pod:4290
13401 msgid "verbose"
13402 msgstr ""
13403
13404 #. type: verbatim
13405 #: ../fish/guestfish-actions.pod:4292
13406 #, no-wrap
13407 msgid ""
13408 " set-verbose true|false\n"
13409 "\n"
13410 msgstr ""
13411
13412 #. type: textblock
13413 #: ../fish/guestfish-actions.pod:4294 ../src/guestfs-actions.pod:6456
13414 msgid "If C<verbose> is true, this turns on verbose messages."
13415 msgstr ""
13416
13417 #. type: textblock
13418 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6458
13419 msgid ""
13420 "Verbose messages are disabled unless the environment variable "
13421 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13422 msgstr ""
13423
13424 #. type: textblock
13425 #: ../fish/guestfish-actions.pod:4299
13426 msgid ""
13427 "Verbose messages are normally sent to C<stderr>, unless you register a "
13428 "callback to send them somewhere else (see L</set-event-callback>)."
13429 msgstr ""
13430
13431 #. type: =head2
13432 #: ../fish/guestfish-actions.pod:4303
13433 msgid "setcon"
13434 msgstr ""
13435
13436 #. type: verbatim
13437 #: ../fish/guestfish-actions.pod:4305
13438 #, no-wrap
13439 msgid ""
13440 " setcon context\n"
13441 "\n"
13442 msgstr ""
13443
13444 #. type: textblock
13445 #: ../fish/guestfish-actions.pod:4307 ../src/guestfs-actions.pod:6475
13446 msgid ""
13447 "This sets the SELinux security context of the daemon to the string "
13448 "C<context>."
13449 msgstr ""
13450
13451 #. type: textblock
13452 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6478
13453 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13454 msgstr ""
13455
13456 #. type: =head2
13457 #: ../fish/guestfish-actions.pod:4312
13458 msgid "setxattr"
13459 msgstr ""
13460
13461 #. type: verbatim
13462 #: ../fish/guestfish-actions.pod:4314
13463 #, no-wrap
13464 msgid ""
13465 " setxattr xattr val vallen path\n"
13466 "\n"
13467 msgstr ""
13468
13469 #. type: textblock
13470 #: ../fish/guestfish-actions.pod:4316 ../src/guestfs-actions.pod:6493
13471 msgid ""
13472 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13473 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13474 msgstr ""
13475
13476 #. type: textblock
13477 #: ../fish/guestfish-actions.pod:4320
13478 msgid "See also: L</lsetxattr>, L<attr(5)>."
13479 msgstr ""
13480
13481 #. type: =head2
13482 #: ../fish/guestfish-actions.pod:4322
13483 msgid "sfdisk"
13484 msgstr ""
13485
13486 #. type: verbatim
13487 #: ../fish/guestfish-actions.pod:4324
13488 #, no-wrap
13489 msgid ""
13490 " sfdisk device cyls heads sectors 'lines ...'\n"
13491 "\n"
13492 msgstr ""
13493
13494 #. type: textblock
13495 #: ../fish/guestfish-actions.pod:4326 ../src/guestfs-actions.pod:6513
13496 msgid ""
13497 "This is a direct interface to the L<sfdisk(8)> program for creating "
13498 "partitions on block devices."
13499 msgstr ""
13500
13501 #. type: textblock
13502 #: ../fish/guestfish-actions.pod:4329 ../src/guestfs-actions.pod:6516
13503 msgid "C<device> should be a block device, for example C</dev/sda>."
13504 msgstr ""
13505
13506 #. type: textblock
13507 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6518
13508 msgid ""
13509 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13510 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
13511 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13512 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13513 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13514 "the kernel) cannot work out the right geometry and you will need to tell it."
13515 msgstr ""
13516
13517 #. type: textblock
13518 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6526
13519 msgid ""
13520 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13521 "refer to the L<sfdisk(8)> manpage."
13522 msgstr ""
13523
13524 #. type: textblock
13525 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6529
13526 msgid ""
13527 "To create a single partition occupying the whole disk, you would pass "
13528 "C<lines> as a single element list, when the single element being the string "
13529 "C<,> (comma)."
13530 msgstr ""
13531
13532 #. type: textblock
13533 #: ../fish/guestfish-actions.pod:4346
13534 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13535 msgstr ""
13536
13537 #. type: textblock
13538 #: ../fish/guestfish-actions.pod:4352 ../fish/guestfish-actions.pod:4375
13539 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6541
13540 #: ../src/guestfs-actions.pod:6571 ../src/guestfs-actions.pod:6604
13541 msgid ""
13542 "This function is deprecated.  In new code, use the C<part_add> call instead."
13543 msgstr ""
13544
13545 #. type: =head2
13546 #: ../fish/guestfish-actions.pod:4359
13547 msgid "sfdiskM"
13548 msgstr ""
13549
13550 #. type: verbatim
13551 #: ../fish/guestfish-actions.pod:4361
13552 #, no-wrap
13553 msgid ""
13554 " sfdiskM device 'lines ...'\n"
13555 "\n"
13556 msgstr ""
13557
13558 #. type: textblock
13559 #: ../fish/guestfish-actions.pod:4363
13560 msgid ""
13561 "This is a simplified interface to the L</sfdisk> command, where partition "
13562 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13563 "you don't need to specify the cyls, heads and sectors parameters which were "
13564 "rarely if ever used anyway."
13565 msgstr ""
13566
13567 #. type: textblock
13568 #: ../fish/guestfish-actions.pod:4369
13569 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13570 msgstr ""
13571
13572 #. type: =head2
13573 #: ../fish/guestfish-actions.pod:4382
13574 msgid "sfdisk-N"
13575 msgstr ""
13576
13577 #. type: verbatim
13578 #: ../fish/guestfish-actions.pod:4384
13579 #, no-wrap
13580 msgid ""
13581 " sfdisk-N device partnum cyls heads sectors line\n"
13582 "\n"
13583 msgstr ""
13584
13585 #. type: textblock
13586 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6591
13587 msgid ""
13588 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13589 "(note: C<n> counts from 1)."
13590 msgstr ""
13591
13592 #. type: textblock
13593 #: ../fish/guestfish-actions.pod:4389
13594 msgid ""
13595 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13596 "cyls/heads/sectors parameters."
13597 msgstr ""
13598
13599 #. type: textblock
13600 #: ../fish/guestfish-actions.pod:4392
13601 msgid "See also: L</part-add>"
13602 msgstr ""
13603
13604 #. type: =head2
13605 #: ../fish/guestfish-actions.pod:4404
13606 msgid "sfdisk-disk-geometry"
13607 msgstr ""
13608
13609 #. type: verbatim
13610 #: ../fish/guestfish-actions.pod:4406
13611 #, no-wrap
13612 msgid ""
13613 " sfdisk-disk-geometry device\n"
13614 "\n"
13615 msgstr ""
13616
13617 #. type: textblock
13618 #: ../fish/guestfish-actions.pod:4408
13619 msgid ""
13620 "This displays the disk geometry of C<device> read from the partition table.  "
13621 "Especially in the case where the underlying block device has been resized, "
13622 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
13623 "kernel-geometry>)."
13624 msgstr ""
13625
13626 #. type: textblock
13627 #: ../fish/guestfish-actions.pod:4413 ../fish/guestfish-actions.pod:4422
13628 #: ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6640
13629 msgid "The result is in human-readable format, and not designed to be parsed."
13630 msgstr ""
13631
13632 #. type: =head2
13633 #: ../fish/guestfish-actions.pod:4416
13634 msgid "sfdisk-kernel-geometry"
13635 msgstr ""
13636
13637 #. type: verbatim
13638 #: ../fish/guestfish-actions.pod:4418
13639 #, no-wrap
13640 msgid ""
13641 " sfdisk-kernel-geometry device\n"
13642 "\n"
13643 msgstr ""
13644
13645 #. type: textblock
13646 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6638
13647 msgid "This displays the kernel's idea of the geometry of C<device>."
13648 msgstr ""
13649
13650 #. type: =head2
13651 #: ../fish/guestfish-actions.pod:4425
13652 msgid "sfdisk-l"
13653 msgstr ""
13654
13655 #. type: verbatim
13656 #: ../fish/guestfish-actions.pod:4427
13657 #, no-wrap
13658 msgid ""
13659 " sfdisk-l device\n"
13660 "\n"
13661 msgstr ""
13662
13663 #. type: textblock
13664 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6654
13665 msgid ""
13666 "This displays the partition table on C<device>, in the human-readable output "
13667 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13668 msgstr ""
13669
13670 #. type: textblock
13671 #: ../fish/guestfish-actions.pod:4433
13672 msgid "See also: L</part-list>"
13673 msgstr ""
13674
13675 #. type: textblock
13676 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6663
13677 msgid ""
13678 "This function is deprecated.  In new code, use the C<part_list> call instead."
13679 msgstr ""
13680
13681 #. type: =head2
13682 #: ../fish/guestfish-actions.pod:4442
13683 msgid "sh"
13684 msgstr ""
13685
13686 #. type: verbatim
13687 #: ../fish/guestfish-actions.pod:4444
13688 #, no-wrap
13689 msgid ""
13690 " sh command\n"
13691 "\n"
13692 msgstr ""
13693
13694 #. type: textblock
13695 #: ../fish/guestfish-actions.pod:4446 ../src/guestfs-actions.pod:6678
13696 msgid ""
13697 "This call runs a command from the guest filesystem via the guest's C</bin/"
13698 "sh>."
13699 msgstr ""
13700
13701 #. type: textblock
13702 #: ../fish/guestfish-actions.pod:4449
13703 msgid "This is like L</command>, but passes the command to:"
13704 msgstr ""
13705
13706 #. type: verbatim
13707 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
13708 #, no-wrap
13709 msgid ""
13710 " /bin/sh -c \"command\"\n"
13711 "\n"
13712 msgstr ""
13713
13714 #. type: textblock
13715 #: ../fish/guestfish-actions.pod:4453 ../src/guestfs-actions.pod:6685
13716 msgid ""
13717 "Depending on the guest's shell, this usually results in wildcards being "
13718 "expanded, shell expressions being interpolated and so on."
13719 msgstr ""
13720
13721 #. type: textblock
13722 #: ../fish/guestfish-actions.pod:4457
13723 msgid "All the provisos about L</command> apply to this call."
13724 msgstr ""
13725
13726 #. type: =head2
13727 #: ../fish/guestfish-actions.pod:4459
13728 msgid "sh-lines"
13729 msgstr ""
13730
13731 #. type: verbatim
13732 #: ../fish/guestfish-actions.pod:4461
13733 #, no-wrap
13734 msgid ""
13735 " sh-lines command\n"
13736 "\n"
13737 msgstr ""
13738
13739 #. type: textblock
13740 #: ../fish/guestfish-actions.pod:4463
13741 msgid "This is the same as L</sh>, but splits the result into a list of lines."
13742 msgstr ""
13743
13744 #. type: textblock
13745 #: ../fish/guestfish-actions.pod:4466
13746 msgid "See also: L</command-lines>"
13747 msgstr ""
13748
13749 #. type: =head2
13750 #: ../fish/guestfish-actions.pod:4468
13751 msgid "sleep"
13752 msgstr ""
13753
13754 #. type: verbatim
13755 #: ../fish/guestfish-actions.pod:4470
13756 #, no-wrap
13757 msgid ""
13758 " sleep secs\n"
13759 "\n"
13760 msgstr ""
13761
13762 #. type: textblock
13763 #: ../fish/guestfish-actions.pod:4472 ../src/guestfs-actions.pod:6719
13764 msgid "Sleep for C<secs> seconds."
13765 msgstr ""
13766
13767 #. type: =head2
13768 #: ../fish/guestfish-actions.pod:4474
13769 msgid "stat"
13770 msgstr ""
13771
13772 #. type: verbatim
13773 #: ../fish/guestfish-actions.pod:4476
13774 #, no-wrap
13775 msgid ""
13776 " stat path\n"
13777 "\n"
13778 msgstr ""
13779
13780 #. type: textblock
13781 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6733
13782 msgid "This is the same as the C<stat(2)> system call."
13783 msgstr ""
13784
13785 #. type: =head2
13786 #: ../fish/guestfish-actions.pod:4482
13787 msgid "statvfs"
13788 msgstr ""
13789
13790 #. type: verbatim
13791 #: ../fish/guestfish-actions.pod:4484
13792 #, no-wrap
13793 msgid ""
13794 " statvfs path\n"
13795 "\n"
13796 msgstr ""
13797
13798 #. type: textblock
13799 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6747
13800 msgid ""
13801 "Returns file system statistics for any mounted file system.  C<path> should "
13802 "be a file or directory in the mounted file system (typically it is the mount "
13803 "point itself, but it doesn't need to be)."
13804 msgstr ""
13805
13806 #. type: textblock
13807 #: ../fish/guestfish-actions.pod:4490 ../src/guestfs-actions.pod:6751
13808 msgid "This is the same as the C<statvfs(2)> system call."
13809 msgstr ""
13810
13811 #. type: =head2
13812 #: ../fish/guestfish-actions.pod:4492
13813 msgid "strings"
13814 msgstr ""
13815
13816 #. type: verbatim
13817 #: ../fish/guestfish-actions.pod:4494
13818 #, no-wrap
13819 msgid ""
13820 " strings path\n"
13821 "\n"
13822 msgstr ""
13823
13824 #. type: textblock
13825 #: ../fish/guestfish-actions.pod:4496 ../src/guestfs-actions.pod:6765
13826 msgid ""
13827 "This runs the L<strings(1)> command on a file and returns the list of "
13828 "printable strings found."
13829 msgstr ""
13830
13831 #. type: =head2
13832 #: ../fish/guestfish-actions.pod:4502
13833 msgid "strings-e"
13834 msgstr ""
13835
13836 #. type: verbatim
13837 #: ../fish/guestfish-actions.pod:4504
13838 #, no-wrap
13839 msgid ""
13840 " strings-e encoding path\n"
13841 "\n"
13842 msgstr ""
13843
13844 #. type: textblock
13845 #: ../fish/guestfish-actions.pod:4506
13846 msgid ""
13847 "This is like the L</strings> command, but allows you to specify the encoding "
13848 "of strings that are looked for in the source file C<path>."
13849 msgstr ""
13850
13851 #. type: textblock
13852 #: ../fish/guestfish-actions.pod:4510 ../src/guestfs-actions.pod:6788
13853 msgid "Allowed encodings are:"
13854 msgstr ""
13855
13856 #. type: =item
13857 #: ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6792
13858 msgid "s"
13859 msgstr ""
13860
13861 #. type: textblock
13862 #: ../fish/guestfish-actions.pod:4516
13863 msgid ""
13864 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13865 "ISO-8859-X (this is what L</strings> uses)."
13866 msgstr ""
13867
13868 #. type: =item
13869 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
13870 msgid "S"
13871 msgstr ""
13872
13873 #. type: textblock
13874 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6799
13875 msgid "Single 8-bit-byte characters."
13876 msgstr ""
13877
13878 #. type: =item
13879 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6801
13880 msgid "b"
13881 msgstr ""
13882
13883 #. type: textblock
13884 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6803
13885 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13886 msgstr ""
13887
13888 #. type: =item
13889 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
13890 msgid "l (lower case letter L)"
13891 msgstr ""
13892
13893 #. type: textblock
13894 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
13895 msgid ""
13896 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13897 "examining binaries in Windows guests."
13898 msgstr ""
13899
13900 #. type: =item
13901 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
13902 msgid "B"
13903 msgstr ""
13904
13905 #. type: textblock
13906 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
13907 msgid "32-bit big endian such as UCS-4BE."
13908 msgstr ""
13909
13910 #. type: =item
13911 #: ../fish/guestfish-actions.pod:4537 ../src/guestfs-actions.pod:6815
13912 msgid "L"
13913 msgstr ""
13914
13915 #. type: textblock
13916 #: ../fish/guestfish-actions.pod:4539 ../src/guestfs-actions.pod:6817
13917 msgid "32-bit little endian such as UCS-4LE."
13918 msgstr ""
13919
13920 #. type: textblock
13921 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6821
13922 msgid "The returned strings are transcoded to UTF-8."
13923 msgstr ""
13924
13925 #. type: =head2
13926 #: ../fish/guestfish-actions.pod:4548
13927 msgid "swapoff-device"
13928 msgstr ""
13929
13930 #. type: verbatim
13931 #: ../fish/guestfish-actions.pod:4550
13932 #, no-wrap
13933 msgid ""
13934 " swapoff-device device\n"
13935 "\n"
13936 msgstr ""
13937
13938 #. type: textblock
13939 #: ../fish/guestfish-actions.pod:4552
13940 msgid ""
13941 "This command disables the libguestfs appliance swap device or partition "
13942 "named C<device>.  See L</swapon-device>."
13943 msgstr ""
13944
13945 #. type: =head2
13946 #: ../fish/guestfish-actions.pod:4556
13947 msgid "swapoff-file"
13948 msgstr ""
13949
13950 #. type: verbatim
13951 #: ../fish/guestfish-actions.pod:4558
13952 #, no-wrap
13953 msgid ""
13954 " swapoff-file file\n"
13955 "\n"
13956 msgstr ""
13957
13958 #. type: textblock
13959 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6852
13960 msgid "This command disables the libguestfs appliance swap on file."
13961 msgstr ""
13962
13963 #. type: =head2
13964 #: ../fish/guestfish-actions.pod:4562
13965 msgid "swapoff-label"
13966 msgstr ""
13967
13968 #. type: verbatim
13969 #: ../fish/guestfish-actions.pod:4564
13970 #, no-wrap
13971 msgid ""
13972 " swapoff-label label\n"
13973 "\n"
13974 msgstr ""
13975
13976 #. type: textblock
13977 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:6864
13978 msgid ""
13979 "This command disables the libguestfs appliance swap on labeled swap "
13980 "partition."
13981 msgstr ""
13982
13983 #. type: =head2
13984 #: ../fish/guestfish-actions.pod:4569
13985 msgid "swapoff-uuid"
13986 msgstr ""
13987
13988 #. type: verbatim
13989 #: ../fish/guestfish-actions.pod:4571
13990 #, no-wrap
13991 msgid ""
13992 " swapoff-uuid uuid\n"
13993 "\n"
13994 msgstr ""
13995
13996 #. type: textblock
13997 #: ../fish/guestfish-actions.pod:4573 ../src/guestfs-actions.pod:6877
13998 msgid ""
13999 "This command disables the libguestfs appliance swap partition with the given "
14000 "UUID."
14001 msgstr ""
14002
14003 #. type: =head2
14004 #: ../fish/guestfish-actions.pod:4576
14005 msgid "swapon-device"
14006 msgstr ""
14007
14008 #. type: verbatim
14009 #: ../fish/guestfish-actions.pod:4578
14010 #, no-wrap
14011 msgid ""
14012 " swapon-device device\n"
14013 "\n"
14014 msgstr ""
14015
14016 #. type: textblock
14017 #: ../fish/guestfish-actions.pod:4580
14018 msgid ""
14019 "This command enables the libguestfs appliance to use the swap device or "
14020 "partition named C<device>.  The increased memory is made available for all "
14021 "commands, for example those run using L</command> or L</sh>."
14022 msgstr ""
14023
14024 #. type: textblock
14025 #: ../fish/guestfish-actions.pod:4585 ../src/guestfs-actions.pod:6895
14026 msgid ""
14027 "Note that you should not swap to existing guest swap partitions unless you "
14028 "know what you are doing.  They may contain hibernation information, or other "
14029 "information that the guest doesn't want you to trash.  You also risk leaking "
14030 "information about the host to the guest this way.  Instead, attach a new "
14031 "host device to the guest and swap on that."
14032 msgstr ""
14033
14034 #. type: =head2
14035 #: ../fish/guestfish-actions.pod:4592
14036 msgid "swapon-file"
14037 msgstr ""
14038
14039 #. type: verbatim
14040 #: ../fish/guestfish-actions.pod:4594
14041 #, no-wrap
14042 msgid ""
14043 " swapon-file file\n"
14044 "\n"
14045 msgstr ""
14046
14047 #. type: textblock
14048 #: ../fish/guestfish-actions.pod:4596
14049 msgid ""
14050 "This command enables swap to a file.  See L</swapon-device> for other notes."
14051 msgstr ""
14052
14053 #. type: =head2
14054 #: ../fish/guestfish-actions.pod:4599
14055 msgid "swapon-label"
14056 msgstr ""
14057
14058 #. type: verbatim
14059 #: ../fish/guestfish-actions.pod:4601
14060 #, no-wrap
14061 msgid ""
14062 " swapon-label label\n"
14063 "\n"
14064 msgstr ""
14065
14066 #. type: textblock
14067 #: ../fish/guestfish-actions.pod:4603
14068 msgid ""
14069 "This command enables swap to a labeled swap partition.  See L</swapon-"
14070 "device> for other notes."
14071 msgstr ""
14072
14073 #. type: =head2
14074 #: ../fish/guestfish-actions.pod:4606
14075 msgid "swapon-uuid"
14076 msgstr ""
14077
14078 #. type: verbatim
14079 #: ../fish/guestfish-actions.pod:4608
14080 #, no-wrap
14081 msgid ""
14082 " swapon-uuid uuid\n"
14083 "\n"
14084 msgstr ""
14085
14086 #. type: textblock
14087 #: ../fish/guestfish-actions.pod:4610
14088 msgid ""
14089 "This command enables swap to a swap partition with the given UUID.  See L</"
14090 "swapon-device> for other notes."
14091 msgstr ""
14092
14093 #. type: =head2
14094 #: ../fish/guestfish-actions.pod:4613
14095 msgid "sync"
14096 msgstr ""
14097
14098 #. type: verbatim
14099 #: ../fish/guestfish-actions.pod:4615
14100 #, no-wrap
14101 msgid ""
14102 " sync\n"
14103 "\n"
14104 msgstr ""
14105
14106 #. type: textblock
14107 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6950
14108 msgid ""
14109 "This syncs the disk, so that any writes are flushed through to the "
14110 "underlying disk image."
14111 msgstr ""
14112
14113 #. type: textblock
14114 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6953
14115 msgid ""
14116 "You should always call this if you have modified a disk image, before "
14117 "closing the handle."
14118 msgstr ""
14119
14120 #. type: =head2
14121 #: ../fish/guestfish-actions.pod:4623
14122 msgid "tail"
14123 msgstr ""
14124
14125 #. type: verbatim
14126 #: ../fish/guestfish-actions.pod:4625
14127 #, no-wrap
14128 msgid ""
14129 " tail path\n"
14130 "\n"
14131 msgstr ""
14132
14133 #. type: textblock
14134 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6966
14135 msgid ""
14136 "This command returns up to the last 10 lines of a file as a list of strings."
14137 msgstr ""
14138
14139 #. type: =head2
14140 #: ../fish/guestfish-actions.pod:4633
14141 msgid "tail-n"
14142 msgstr ""
14143
14144 #. type: verbatim
14145 #: ../fish/guestfish-actions.pod:4635
14146 #, no-wrap
14147 msgid ""
14148 " tail-n nrlines path\n"
14149 "\n"
14150 msgstr ""
14151
14152 #. type: textblock
14153 #: ../fish/guestfish-actions.pod:4637 ../src/guestfs-actions.pod:6985
14154 msgid ""
14155 "If the parameter C<nrlines> is a positive number, this returns the last "
14156 "C<nrlines> lines of the file C<path>."
14157 msgstr ""
14158
14159 #. type: textblock
14160 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:6988
14161 msgid ""
14162 "If the parameter C<nrlines> is a negative number, this returns lines from "
14163 "the file C<path>, starting with the C<-nrlines>th line."
14164 msgstr ""
14165
14166 #. type: =head2
14167 #: ../fish/guestfish-actions.pod:4648
14168 msgid "tar-in"
14169 msgstr ""
14170
14171 #. type: verbatim
14172 #: ../fish/guestfish-actions.pod:4650
14173 #, no-wrap
14174 msgid ""
14175 " tar-in (tarfile|-) directory\n"
14176 "\n"
14177 msgstr ""
14178
14179 #. type: textblock
14180 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7009
14181 msgid ""
14182 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14183 "tar file) into C<directory>."
14184 msgstr ""
14185
14186 #. type: textblock
14187 #: ../fish/guestfish-actions.pod:4655
14188 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14189 msgstr ""
14190
14191 #. type: =head2
14192 #: ../fish/guestfish-actions.pod:4660
14193 msgid "tar-out"
14194 msgstr ""
14195
14196 #. type: verbatim
14197 #: ../fish/guestfish-actions.pod:4662
14198 #, no-wrap
14199 msgid ""
14200 " tar-out directory (tarfile|-)\n"
14201 "\n"
14202 msgstr ""
14203
14204 #. type: textblock
14205 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7026
14206 msgid ""
14207 "This command packs the contents of C<directory> and downloads it to local "
14208 "file C<tarfile>."
14209 msgstr ""
14210
14211 #. type: textblock
14212 #: ../fish/guestfish-actions.pod:4667
14213 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14214 msgstr ""
14215
14216 #. type: =head2
14217 #: ../fish/guestfish-actions.pod:4672
14218 msgid "tgz-in"
14219 msgstr ""
14220
14221 #. type: verbatim
14222 #: ../fish/guestfish-actions.pod:4674
14223 #, no-wrap
14224 msgid ""
14225 " tgz-in (tarball|-) directory\n"
14226 "\n"
14227 msgstr ""
14228
14229 #. type: textblock
14230 #: ../fish/guestfish-actions.pod:4676 ../src/guestfs-actions.pod:7043
14231 msgid ""
14232 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14233 "tar file) into C<directory>."
14234 msgstr ""
14235
14236 #. type: textblock
14237 #: ../fish/guestfish-actions.pod:4679
14238 msgid "To upload an uncompressed tarball, use L</tar-in>."
14239 msgstr ""
14240
14241 #. type: =head2
14242 #: ../fish/guestfish-actions.pod:4683
14243 msgid "tgz-out"
14244 msgstr ""
14245
14246 #. type: verbatim
14247 #: ../fish/guestfish-actions.pod:4685
14248 #, no-wrap
14249 msgid ""
14250 " tgz-out directory (tarball|-)\n"
14251 "\n"
14252 msgstr ""
14253
14254 #. type: textblock
14255 #: ../fish/guestfish-actions.pod:4687 ../src/guestfs-actions.pod:7059
14256 msgid ""
14257 "This command packs the contents of C<directory> and downloads it to local "
14258 "file C<tarball>."
14259 msgstr ""
14260
14261 #. type: textblock
14262 #: ../fish/guestfish-actions.pod:4690
14263 msgid "To download an uncompressed tarball, use L</tar-out>."
14264 msgstr ""
14265
14266 #. type: =head2
14267 #: ../fish/guestfish-actions.pod:4694
14268 msgid "touch"
14269 msgstr ""
14270
14271 #. type: verbatim
14272 #: ../fish/guestfish-actions.pod:4696
14273 #, no-wrap
14274 msgid ""
14275 " touch path\n"
14276 "\n"
14277 msgstr ""
14278
14279 #. type: textblock
14280 #: ../fish/guestfish-actions.pod:4698 ../src/guestfs-actions.pod:7074
14281 msgid ""
14282 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14283 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14284 "length file."
14285 msgstr ""
14286
14287 #. type: textblock
14288 #: ../fish/guestfish-actions.pod:4702 ../src/guestfs-actions.pod:7078
14289 msgid ""
14290 "This command only works on regular files, and will fail on other file types "
14291 "such as directories, symbolic links, block special etc."
14292 msgstr ""
14293
14294 #. type: =head2
14295 #: ../fish/guestfish-actions.pod:4705
14296 msgid "truncate"
14297 msgstr ""
14298
14299 #. type: verbatim
14300 #: ../fish/guestfish-actions.pod:4707
14301 #, no-wrap
14302 msgid ""
14303 " truncate path\n"
14304 "\n"
14305 msgstr ""
14306
14307 #. type: textblock
14308 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7091
14309 msgid ""
14310 "This command truncates C<path> to a zero-length file.  The file must exist "
14311 "already."
14312 msgstr ""
14313
14314 #. type: =head2
14315 #: ../fish/guestfish-actions.pod:4712
14316 msgid "truncate-size"
14317 msgstr ""
14318
14319 #. type: verbatim
14320 #: ../fish/guestfish-actions.pod:4714
14321 #, no-wrap
14322 msgid ""
14323 " truncate-size path size\n"
14324 "\n"
14325 msgstr ""
14326
14327 #. type: textblock
14328 #: ../fish/guestfish-actions.pod:4716 ../src/guestfs-actions.pod:7105
14329 msgid ""
14330 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14331 "already."
14332 msgstr ""
14333
14334 #. type: textblock
14335 #: ../fish/guestfish-actions.pod:4719
14336 msgid ""
14337 "If the current file size is less than C<size> then the file is extended to "
14338 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14339 "blocks are not allocated for the file until you write to it).  To create a "
14340 "non-sparse file of zeroes, use L</fallocate64> instead."
14341 msgstr ""
14342
14343 #. type: =head2
14344 #: ../fish/guestfish-actions.pod:4725
14345 msgid "tune2fs-l"
14346 msgstr ""
14347
14348 #. type: verbatim
14349 #: ../fish/guestfish-actions.pod:4727
14350 #, no-wrap
14351 msgid ""
14352 " tune2fs-l device\n"
14353 "\n"
14354 msgstr ""
14355
14356 #. type: textblock
14357 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7124
14358 msgid ""
14359 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14360 "C<device>."
14361 msgstr ""
14362
14363 #. type: textblock
14364 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7127
14365 msgid ""
14366 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14367 "for more details.  The list of fields returned isn't clearly defined, and "
14368 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14369 "and the filesystem itself."
14370 msgstr ""
14371
14372 #. type: =head2
14373 #: ../fish/guestfish-actions.pod:4737
14374 msgid "txz-in"
14375 msgstr ""
14376
14377 #. type: verbatim
14378 #: ../fish/guestfish-actions.pod:4739
14379 #, no-wrap
14380 msgid ""
14381 " txz-in (tarball|-) directory\n"
14382 "\n"
14383 msgstr ""
14384
14385 #. type: textblock
14386 #: ../fish/guestfish-actions.pod:4741 ../src/guestfs-actions.pod:7147
14387 msgid ""
14388 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14389 "tar file) into C<directory>."
14390 msgstr ""
14391
14392 #. type: =head2
14393 #: ../fish/guestfish-actions.pod:4746
14394 msgid "txz-out"
14395 msgstr ""
14396
14397 #. type: verbatim
14398 #: ../fish/guestfish-actions.pod:4748
14399 #, no-wrap
14400 msgid ""
14401 " txz-out directory (tarball|-)\n"
14402 "\n"
14403 msgstr ""
14404
14405 #. type: textblock
14406 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7161
14407 msgid ""
14408 "This command packs the contents of C<directory> and downloads it to local "
14409 "file C<tarball> (as an xz compressed tar archive)."
14410 msgstr ""
14411
14412 #. type: =head2
14413 #: ../fish/guestfish-actions.pod:4755
14414 msgid "umask"
14415 msgstr ""
14416
14417 #. type: verbatim
14418 #: ../fish/guestfish-actions.pod:4757
14419 #, no-wrap
14420 msgid ""
14421 " umask mask\n"
14422 "\n"
14423 msgstr ""
14424
14425 #. type: textblock
14426 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7174
14427 msgid ""
14428 "This function sets the mask used for creating new files and device nodes to "
14429 "C<mask & 0777>."
14430 msgstr ""
14431
14432 #. type: textblock
14433 #: ../fish/guestfish-actions.pod:4762 ../src/guestfs-actions.pod:7177
14434 msgid ""
14435 "Typical umask values would be C<022> which creates new files with "
14436 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14437 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14438 msgstr ""
14439
14440 #. type: textblock
14441 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
14442 msgid ""
14443 "The default umask is C<022>.  This is important because it means that "
14444 "directories and device nodes will be created with C<0644> or C<0755> mode "
14445 "even if you specify C<0777>."
14446 msgstr ""
14447
14448 #. type: textblock
14449 #: ../fish/guestfish-actions.pod:4771
14450 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
14451 msgstr ""
14452
14453 #. type: textblock
14454 #: ../fish/guestfish-actions.pod:4774 ../src/guestfs-actions.pod:7189
14455 msgid "This call returns the previous umask."
14456 msgstr ""
14457
14458 #. type: =head2
14459 #: ../fish/guestfish-actions.pod:4776
14460 msgid "umount"
14461 msgstr ""
14462
14463 #. type: =head2
14464 #: ../fish/guestfish-actions.pod:4778
14465 msgid "unmount"
14466 msgstr ""
14467
14468 #. type: verbatim
14469 #: ../fish/guestfish-actions.pod:4780
14470 #, no-wrap
14471 msgid ""
14472 " umount pathordevice\n"
14473 "\n"
14474 msgstr ""
14475
14476 #. type: textblock
14477 #: ../fish/guestfish-actions.pod:4782 ../src/guestfs-actions.pod:7201
14478 msgid ""
14479 "This unmounts the given filesystem.  The filesystem may be specified either "
14480 "by its mountpoint (path) or the device which contains the filesystem."
14481 msgstr ""
14482
14483 #. type: =head2
14484 #: ../fish/guestfish-actions.pod:4786
14485 msgid "umount-all"
14486 msgstr ""
14487
14488 #. type: =head2
14489 #: ../fish/guestfish-actions.pod:4788
14490 msgid "unmount-all"
14491 msgstr ""
14492
14493 #. type: verbatim
14494 #: ../fish/guestfish-actions.pod:4790
14495 #, no-wrap
14496 msgid ""
14497 " umount-all\n"
14498 "\n"
14499 msgstr ""
14500
14501 #. type: textblock
14502 #: ../fish/guestfish-actions.pod:4792 ../src/guestfs-actions.pod:7214
14503 msgid "This unmounts all mounted filesystems."
14504 msgstr ""
14505
14506 #. type: textblock
14507 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7216
14508 msgid "Some internal mounts are not unmounted by this call."
14509 msgstr ""
14510
14511 #. type: =head2
14512 #: ../fish/guestfish-actions.pod:4796
14513 msgid "upload"
14514 msgstr ""
14515
14516 #. type: verbatim
14517 #: ../fish/guestfish-actions.pod:4798
14518 #, no-wrap
14519 msgid ""
14520 " upload (filename|-) remotefilename\n"
14521 "\n"
14522 msgstr ""
14523
14524 #. type: textblock
14525 #: ../fish/guestfish-actions.pod:4800 ../fish/guestfish-actions.pod:4813
14526 #: ../src/guestfs-actions.pod:7229 ../src/guestfs-actions.pod:7253
14527 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14528 msgstr ""
14529
14530 #. type: textblock
14531 #: ../fish/guestfish-actions.pod:4805
14532 msgid "See also L</download>."
14533 msgstr ""
14534
14535 #. type: =head2
14536 #: ../fish/guestfish-actions.pod:4809
14537 msgid "upload-offset"
14538 msgstr ""
14539
14540 #. type: verbatim
14541 #: ../fish/guestfish-actions.pod:4811
14542 #, no-wrap
14543 msgid ""
14544 " upload-offset (filename|-) remotefilename offset\n"
14545 "\n"
14546 msgstr ""
14547
14548 #. type: textblock
14549 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7256
14550 msgid ""
14551 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14552 "The intention is to overwrite parts of existing files or devices, although "
14553 "if a non-existant file is specified then it is created with a \"hole\" "
14554 "before C<offset>.  The size of the data written is implicit in the size of "
14555 "the source C<filename>."
14556 msgstr ""
14557
14558 #. type: textblock
14559 #: ../fish/guestfish-actions.pod:4823
14560 msgid ""
14561 "Note that there is no limit on the amount of data that can be uploaded with "
14562 "this call, unlike with L</pwrite>, and this call always writes the full "
14563 "amount unless an error occurs."
14564 msgstr ""
14565
14566 #. type: textblock
14567 #: ../fish/guestfish-actions.pod:4828
14568 msgid "See also L</upload>, L</pwrite>."
14569 msgstr ""
14570
14571 #. type: =head2
14572 #: ../fish/guestfish-actions.pod:4832
14573 msgid "utimens"
14574 msgstr ""
14575
14576 #. type: verbatim
14577 #: ../fish/guestfish-actions.pod:4834
14578 #, no-wrap
14579 msgid ""
14580 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14581 "\n"
14582 msgstr ""
14583
14584 #. type: textblock
14585 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7289
14586 msgid "This command sets the timestamps of a file with nanosecond precision."
14587 msgstr ""
14588
14589 #. type: textblock
14590 #: ../fish/guestfish-actions.pod:4839 ../src/guestfs-actions.pod:7292
14591 msgid ""
14592 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14593 "from the epoch."
14594 msgstr ""
14595
14596 #. type: textblock
14597 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7295
14598 msgid ""
14599 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14600 "nanoseconds from the epoch."
14601 msgstr ""
14602
14603 #. type: textblock
14604 #: ../fish/guestfish-actions.pod:4845 ../src/guestfs-actions.pod:7298
14605 msgid ""
14606 "If the C<*nsecs> field contains the special value C<-1> then the "
14607 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14608 "ignored in this case)."
14609 msgstr ""
14610
14611 #. type: textblock
14612 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7302
14613 msgid ""
14614 "If the C<*nsecs> field contains the special value C<-2> then the "
14615 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14616 "in this case)."
14617 msgstr ""
14618
14619 #. type: =head2
14620 #: ../fish/guestfish-actions.pod:4853
14621 msgid "version"
14622 msgstr ""
14623
14624 #. type: verbatim
14625 #: ../fish/guestfish-actions.pod:4855
14626 #, no-wrap
14627 msgid ""
14628 " version\n"
14629 "\n"
14630 msgstr ""
14631
14632 #. type: textblock
14633 #: ../fish/guestfish-actions.pod:4857 ../src/guestfs-actions.pod:7315
14634 msgid ""
14635 "Return the libguestfs version number that the program is linked against."
14636 msgstr ""
14637
14638 #. type: textblock
14639 #: ../fish/guestfish-actions.pod:4860 ../src/guestfs-actions.pod:7318
14640 msgid ""
14641 "Note that because of dynamic linking this is not necessarily the version of "
14642 "libguestfs that you compiled against.  You can compile the program, and then "
14643 "at runtime dynamically link against a completely different C<libguestfs.so> "
14644 "library."
14645 msgstr ""
14646
14647 #. type: textblock
14648 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
14649 msgid ""
14650 "This call was added in version C<1.0.58>.  In previous versions of "
14651 "libguestfs there was no way to get the version number.  From C code you can "
14652 "use dynamic linker functions to find out if this symbol exists (if it "
14653 "doesn't, then it's an earlier version)."
14654 msgstr ""
14655
14656 #. type: textblock
14657 #: ../fish/guestfish-actions.pod:4871 ../src/guestfs-actions.pod:7329
14658 msgid ""
14659 "The call returns a structure with four elements.  The first three (C<major>, "
14660 "C<minor> and C<release>) are numbers and correspond to the usual version "
14661 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14662 "but may be used for distro-specific information."
14663 msgstr ""
14664
14665 #. type: textblock
14666 #: ../fish/guestfish-actions.pod:4877 ../src/guestfs-actions.pod:7335
14667 msgid ""
14668 "To construct the original version string: C<$major.$minor.$release$extra>"
14669 msgstr ""
14670
14671 #. type: textblock
14672 #: ../fish/guestfish-actions.pod:4880 ../src/guestfs-actions.pod:7338
14673 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14674 msgstr ""
14675
14676 #. type: textblock
14677 #: ../fish/guestfish-actions.pod:4882
14678 msgid ""
14679 "I<Note:> Don't use this call to test for availability of features.  In "
14680 "enterprise distributions we backport features from later versions into "
14681 "earlier versions, making this an unreliable way to test for features.  Use "
14682 "L</available> instead."
14683 msgstr ""
14684
14685 #. type: =head2
14686 #: ../fish/guestfish-actions.pod:4888
14687 msgid "vfs-label"
14688 msgstr ""
14689
14690 #. type: verbatim
14691 #: ../fish/guestfish-actions.pod:4890
14692 #, no-wrap
14693 msgid ""
14694 " vfs-label device\n"
14695 "\n"
14696 msgstr ""
14697
14698 #. type: textblock
14699 #: ../fish/guestfish-actions.pod:4892 ../src/guestfs-actions.pod:7358
14700 msgid "This returns the filesystem label of the filesystem on C<device>."
14701 msgstr ""
14702
14703 #. type: textblock
14704 #: ../fish/guestfish-actions.pod:4895 ../src/guestfs-actions.pod:7361
14705 msgid "If the filesystem is unlabeled, this returns the empty string."
14706 msgstr ""
14707
14708 #. type: textblock
14709 #: ../fish/guestfish-actions.pod:4897
14710 msgid "To find a filesystem from the label, use L</findfs-label>."
14711 msgstr ""
14712
14713 #. type: =head2
14714 #: ../fish/guestfish-actions.pod:4899
14715 msgid "vfs-type"
14716 msgstr ""
14717
14718 #. type: verbatim
14719 #: ../fish/guestfish-actions.pod:4901
14720 #, no-wrap
14721 msgid ""
14722 " vfs-type device\n"
14723 "\n"
14724 msgstr ""
14725
14726 #. type: textblock
14727 #: ../fish/guestfish-actions.pod:4903 ../src/guestfs-actions.pod:7376
14728 msgid ""
14729 "This command gets the filesystem type corresponding to the filesystem on "
14730 "C<device>."
14731 msgstr ""
14732
14733 #. type: textblock
14734 #: ../fish/guestfish-actions.pod:4906 ../src/guestfs-actions.pod:7379
14735 msgid ""
14736 "For most filesystems, the result is the name of the Linux VFS module which "
14737 "would be used to mount this filesystem if you mounted it without specifying "
14738 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14739 msgstr ""
14740
14741 #. type: =head2
14742 #: ../fish/guestfish-actions.pod:4911
14743 msgid "vfs-uuid"
14744 msgstr ""
14745
14746 #. type: verbatim
14747 #: ../fish/guestfish-actions.pod:4913
14748 #, no-wrap
14749 msgid ""
14750 " vfs-uuid device\n"
14751 "\n"
14752 msgstr ""
14753
14754 #. type: textblock
14755 #: ../fish/guestfish-actions.pod:4915 ../src/guestfs-actions.pod:7395
14756 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14757 msgstr ""
14758
14759 #. type: textblock
14760 #: ../fish/guestfish-actions.pod:4918 ../src/guestfs-actions.pod:7398
14761 msgid "If the filesystem does not have a UUID, this returns the empty string."
14762 msgstr ""
14763
14764 #. type: textblock
14765 #: ../fish/guestfish-actions.pod:4920
14766 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
14767 msgstr ""
14768
14769 #. type: =head2
14770 #: ../fish/guestfish-actions.pod:4922
14771 msgid "vg-activate"
14772 msgstr ""
14773
14774 #. type: verbatim
14775 #: ../fish/guestfish-actions.pod:4924
14776 #, no-wrap
14777 msgid ""
14778 " vg-activate true|false 'volgroups ...'\n"
14779 "\n"
14780 msgstr ""
14781
14782 #. type: textblock
14783 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7414
14784 msgid ""
14785 "This command activates or (if C<activate> is false) deactivates all logical "
14786 "volumes in the listed volume groups C<volgroups>."
14787 msgstr ""
14788
14789 #. type: textblock
14790 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7417
14791 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14792 msgstr ""
14793
14794 #. type: textblock
14795 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
14796 msgid ""
14797 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14798 "activated or deactivated."
14799 msgstr ""
14800
14801 #. type: =head2
14802 #: ../fish/guestfish-actions.pod:4934
14803 msgid "vg-activate-all"
14804 msgstr ""
14805
14806 #. type: verbatim
14807 #: ../fish/guestfish-actions.pod:4936
14808 #, no-wrap
14809 msgid ""
14810 " vg-activate-all true|false\n"
14811 "\n"
14812 msgstr ""
14813
14814 #. type: textblock
14815 #: ../fish/guestfish-actions.pod:4938 ../src/guestfs-actions.pod:7432
14816 msgid ""
14817 "This command activates or (if C<activate> is false) deactivates all logical "
14818 "volumes in all volume groups."
14819 msgstr ""
14820
14821 #. type: textblock
14822 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7435
14823 msgid "This command is the same as running C<vgchange -a y|n>"
14824 msgstr ""
14825
14826 #. type: =head2
14827 #: ../fish/guestfish-actions.pod:4943
14828 msgid "vgcreate"
14829 msgstr ""
14830
14831 #. type: verbatim
14832 #: ../fish/guestfish-actions.pod:4945
14833 #, no-wrap
14834 msgid ""
14835 " vgcreate volgroup 'physvols ...'\n"
14836 "\n"
14837 msgstr ""
14838
14839 #. type: textblock
14840 #: ../fish/guestfish-actions.pod:4947 ../src/guestfs-actions.pod:7448
14841 msgid ""
14842 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14843 "of physical volumes C<physvols>."
14844 msgstr ""
14845
14846 #. type: =head2
14847 #: ../fish/guestfish-actions.pod:4950
14848 msgid "vglvuuids"
14849 msgstr ""
14850
14851 #. type: verbatim
14852 #: ../fish/guestfish-actions.pod:4952
14853 #, no-wrap
14854 msgid ""
14855 " vglvuuids vgname\n"
14856 "\n"
14857 msgstr ""
14858
14859 #. type: textblock
14860 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7461
14861 msgid ""
14862 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14863 "volumes created in this volume group."
14864 msgstr ""
14865
14866 #. type: textblock
14867 #: ../fish/guestfish-actions.pod:4957
14868 msgid ""
14869 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
14870 "logical volumes and volume groups."
14871 msgstr ""
14872
14873 #. type: textblock
14874 #: ../fish/guestfish-actions.pod:4960
14875 msgid "See also L</vgpvuuids>."
14876 msgstr ""
14877
14878 #. type: =head2
14879 #: ../fish/guestfish-actions.pod:4962
14880 msgid "vgpvuuids"
14881 msgstr ""
14882
14883 #. type: verbatim
14884 #: ../fish/guestfish-actions.pod:4964
14885 #, no-wrap
14886 msgid ""
14887 " vgpvuuids vgname\n"
14888 "\n"
14889 msgstr ""
14890
14891 #. type: textblock
14892 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7481
14893 msgid ""
14894 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14895 "volumes that this volume group resides on."
14896 msgstr ""
14897
14898 #. type: textblock
14899 #: ../fish/guestfish-actions.pod:4969
14900 msgid ""
14901 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
14902 "physical volumes and volume groups."
14903 msgstr ""
14904
14905 #. type: textblock
14906 #: ../fish/guestfish-actions.pod:4972
14907 msgid "See also L</vglvuuids>."
14908 msgstr ""
14909
14910 #. type: =head2
14911 #: ../fish/guestfish-actions.pod:4974
14912 msgid "vgremove"
14913 msgstr ""
14914
14915 #. type: verbatim
14916 #: ../fish/guestfish-actions.pod:4976
14917 #, no-wrap
14918 msgid ""
14919 " vgremove vgname\n"
14920 "\n"
14921 msgstr ""
14922
14923 #. type: textblock
14924 #: ../fish/guestfish-actions.pod:4978 ../src/guestfs-actions.pod:7501
14925 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14926 msgstr ""
14927
14928 #. type: textblock
14929 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7503
14930 msgid ""
14931 "This also forcibly removes all logical volumes in the volume group (if any)."
14932 msgstr ""
14933
14934 #. type: =head2
14935 #: ../fish/guestfish-actions.pod:4983
14936 msgid "vgrename"
14937 msgstr ""
14938
14939 #. type: verbatim
14940 #: ../fish/guestfish-actions.pod:4985
14941 #, no-wrap
14942 msgid ""
14943 " vgrename volgroup newvolgroup\n"
14944 "\n"
14945 msgstr ""
14946
14947 #. type: textblock
14948 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7517
14949 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14950 msgstr ""
14951
14952 #. type: =head2
14953 #: ../fish/guestfish-actions.pod:4989
14954 msgid "vgs"
14955 msgstr ""
14956
14957 #. type: verbatim
14958 #: ../fish/guestfish-actions.pod:4991
14959 #, no-wrap
14960 msgid ""
14961 " vgs\n"
14962 "\n"
14963 msgstr ""
14964
14965 #. type: textblock
14966 #: ../fish/guestfish-actions.pod:4993 ../src/guestfs-actions.pod:7528
14967 msgid ""
14968 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
14969 "> command."
14970 msgstr ""
14971
14972 #. type: textblock
14973 #: ../fish/guestfish-actions.pod:4996 ../src/guestfs-actions.pod:7531
14974 msgid ""
14975 "This returns a list of just the volume group names that were detected (eg. "
14976 "C<VolGroup00>)."
14977 msgstr ""
14978
14979 #. type: textblock
14980 #: ../fish/guestfish-actions.pod:4999
14981 msgid "See also L</vgs-full>."
14982 msgstr ""
14983
14984 #. type: =head2
14985 #: ../fish/guestfish-actions.pod:5001
14986 msgid "vgs-full"
14987 msgstr ""
14988
14989 #. type: verbatim
14990 #: ../fish/guestfish-actions.pod:5003
14991 #, no-wrap
14992 msgid ""
14993 " vgs-full\n"
14994 "\n"
14995 msgstr ""
14996
14997 #. type: textblock
14998 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7547
14999 msgid ""
15000 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15001 "> command.  The \"full\" version includes all fields."
15002 msgstr ""
15003
15004 #. type: =head2
15005 #: ../fish/guestfish-actions.pod:5008
15006 msgid "vgscan"
15007 msgstr ""
15008
15009 #. type: verbatim
15010 #: ../fish/guestfish-actions.pod:5010
15011 #, no-wrap
15012 msgid ""
15013 " vgscan\n"
15014 "\n"
15015 msgstr ""
15016
15017 #. type: textblock
15018 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7561
15019 msgid ""
15020 "This rescans all block devices and rebuilds the list of LVM physical "
15021 "volumes, volume groups and logical volumes."
15022 msgstr ""
15023
15024 #. type: =head2
15025 #: ../fish/guestfish-actions.pod:5015
15026 msgid "vguuid"
15027 msgstr ""
15028
15029 #. type: verbatim
15030 #: ../fish/guestfish-actions.pod:5017
15031 #, no-wrap
15032 msgid ""
15033 " vguuid vgname\n"
15034 "\n"
15035 msgstr ""
15036
15037 #. type: textblock
15038 #: ../fish/guestfish-actions.pod:5019 ../src/guestfs-actions.pod:7574
15039 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15040 msgstr ""
15041
15042 #. type: =head2
15043 #: ../fish/guestfish-actions.pod:5021
15044 msgid "wc-c"
15045 msgstr ""
15046
15047 #. type: verbatim
15048 #: ../fish/guestfish-actions.pod:5023
15049 #, no-wrap
15050 msgid ""
15051 " wc-c path\n"
15052 "\n"
15053 msgstr ""
15054
15055 #. type: textblock
15056 #: ../fish/guestfish-actions.pod:5025 ../src/guestfs-actions.pod:7614
15057 msgid ""
15058 "This command counts the characters in a file, using the C<wc -c> external "
15059 "command."
15060 msgstr ""
15061
15062 #. type: =head2
15063 #: ../fish/guestfish-actions.pod:5028
15064 msgid "wc-l"
15065 msgstr ""
15066
15067 #. type: verbatim
15068 #: ../fish/guestfish-actions.pod:5030
15069 #, no-wrap
15070 msgid ""
15071 " wc-l path\n"
15072 "\n"
15073 msgstr ""
15074
15075 #. type: textblock
15076 #: ../fish/guestfish-actions.pod:5032 ../src/guestfs-actions.pod:7627
15077 msgid ""
15078 "This command counts the lines in a file, using the C<wc -l> external command."
15079 msgstr ""
15080
15081 #. type: =head2
15082 #: ../fish/guestfish-actions.pod:5035
15083 msgid "wc-w"
15084 msgstr ""
15085
15086 #. type: verbatim
15087 #: ../fish/guestfish-actions.pod:5037
15088 #, no-wrap
15089 msgid ""
15090 " wc-w path\n"
15091 "\n"
15092 msgstr ""
15093
15094 #. type: textblock
15095 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7640
15096 msgid ""
15097 "This command counts the words in a file, using the C<wc -w> external command."
15098 msgstr ""
15099
15100 #. type: =head2
15101 #: ../fish/guestfish-actions.pod:5042
15102 msgid "write"
15103 msgstr ""
15104
15105 #. type: verbatim
15106 #: ../fish/guestfish-actions.pod:5044
15107 #, no-wrap
15108 msgid ""
15109 " write path content\n"
15110 "\n"
15111 msgstr ""
15112
15113 #. type: textblock
15114 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7655
15115 msgid ""
15116 "This call creates a file called C<path>.  The content of the file is the "
15117 "string C<content> (which can contain any 8 bit data)."
15118 msgstr ""
15119
15120 #. type: textblock
15121 #: ../fish/guestfish-actions.pod:5049
15122 msgid "See also L</write-append>."
15123 msgstr ""
15124
15125 #. type: =head2
15126 #: ../fish/guestfish-actions.pod:5054
15127 msgid "write-append"
15128 msgstr ""
15129
15130 #. type: verbatim
15131 #: ../fish/guestfish-actions.pod:5056
15132 #, no-wrap
15133 msgid ""
15134 " write-append path content\n"
15135 "\n"
15136 msgstr ""
15137
15138 #. type: textblock
15139 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7675
15140 msgid ""
15141 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15142 "not exist, then a new file is created."
15143 msgstr ""
15144
15145 #. type: textblock
15146 #: ../fish/guestfish-actions.pod:5061
15147 msgid "See also L</write>."
15148 msgstr ""
15149
15150 #. type: =head2
15151 #: ../fish/guestfish-actions.pod:5066
15152 msgid "write-file"
15153 msgstr ""
15154
15155 #. type: verbatim
15156 #: ../fish/guestfish-actions.pod:5068
15157 #, no-wrap
15158 msgid ""
15159 " write-file path content size\n"
15160 "\n"
15161 msgstr ""
15162
15163 #. type: textblock
15164 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7695
15165 msgid ""
15166 "This call creates a file called C<path>.  The contents of the file is the "
15167 "string C<content> (which can contain any 8 bit data), with length C<size>."
15168 msgstr ""
15169
15170 #. type: textblock
15171 #: ../fish/guestfish-actions.pod:5074 ../src/guestfs-actions.pod:7699
15172 msgid ""
15173 "As a special case, if C<size> is C<0> then the length is calculated using "
15174 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15175 msgstr ""
15176
15177 #. type: textblock
15178 #: ../fish/guestfish-actions.pod:5078 ../src/guestfs-actions.pod:7703
15179 msgid ""
15180 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15181 "I<not> work, even if the length is specified."
15182 msgstr ""
15183
15184 #. type: textblock
15185 #: ../fish/guestfish-actions.pod:5084 ../src/guestfs-actions.pod:7711
15186 msgid ""
15187 "This function is deprecated.  In new code, use the C<write> call instead."
15188 msgstr ""
15189
15190 #. type: =head2
15191 #: ../fish/guestfish-actions.pod:5091
15192 msgid "zegrep"
15193 msgstr ""
15194
15195 #. type: verbatim
15196 #: ../fish/guestfish-actions.pod:5093
15197 #, no-wrap
15198 msgid ""
15199 " zegrep regex path\n"
15200 "\n"
15201 msgstr ""
15202
15203 #. type: textblock
15204 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7727
15205 msgid ""
15206 "This calls the external C<zegrep> program and returns the matching lines."
15207 msgstr ""
15208
15209 #. type: =head2
15210 #: ../fish/guestfish-actions.pod:5101
15211 msgid "zegrepi"
15212 msgstr ""
15213
15214 #. type: verbatim
15215 #: ../fish/guestfish-actions.pod:5103
15216 #, no-wrap
15217 msgid ""
15218 " zegrepi regex path\n"
15219 "\n"
15220 msgstr ""
15221
15222 #. type: textblock
15223 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7746
15224 msgid ""
15225 "This calls the external C<zegrep -i> program and returns the matching lines."
15226 msgstr ""
15227
15228 #. type: =head2
15229 #: ../fish/guestfish-actions.pod:5111
15230 msgid "zero"
15231 msgstr ""
15232
15233 #. type: verbatim
15234 #: ../fish/guestfish-actions.pod:5113
15235 #, no-wrap
15236 msgid ""
15237 " zero device\n"
15238 "\n"
15239 msgstr ""
15240
15241 #. type: textblock
15242 #: ../fish/guestfish-actions.pod:5115 ../src/guestfs-actions.pod:7764
15243 msgid "This command writes zeroes over the first few blocks of C<device>."
15244 msgstr ""
15245
15246 #. type: textblock
15247 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7766
15248 msgid ""
15249 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15250 "securely wipe the device).  It should be sufficient to remove any partition "
15251 "tables, filesystem superblocks and so on."
15252 msgstr ""
15253
15254 #. type: textblock
15255 #: ../fish/guestfish-actions.pod:5121
15256 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
15257 msgstr ""
15258
15259 #. type: =head2
15260 #: ../fish/guestfish-actions.pod:5124
15261 msgid "zero-device"
15262 msgstr ""
15263
15264 #. type: verbatim
15265 #: ../fish/guestfish-actions.pod:5126
15266 #, no-wrap
15267 msgid ""
15268 " zero-device device\n"
15269 "\n"
15270 msgstr ""
15271
15272 #. type: textblock
15273 #: ../fish/guestfish-actions.pod:5128
15274 msgid ""
15275 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
15276 "which just zeroes the first few blocks of a device."
15277 msgstr ""
15278
15279 #. type: =head2
15280 #: ../fish/guestfish-actions.pod:5135
15281 msgid "zerofree"
15282 msgstr ""
15283
15284 #. type: verbatim
15285 #: ../fish/guestfish-actions.pod:5137
15286 #, no-wrap
15287 msgid ""
15288 " zerofree device\n"
15289 "\n"
15290 msgstr ""
15291
15292 #. type: textblock
15293 #: ../fish/guestfish-actions.pod:5139 ../src/guestfs-actions.pod:7810
15294 msgid ""
15295 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15296 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15297 "possible to compress the filesystem more effectively."
15298 msgstr ""
15299
15300 #. type: textblock
15301 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7815
15302 msgid "You should B<not> run this program if the filesystem is mounted."
15303 msgstr ""
15304
15305 #. type: textblock
15306 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7818
15307 msgid ""
15308 "It is possible that using this program can damage the filesystem or data on "
15309 "the filesystem."
15310 msgstr ""
15311
15312 #. type: =head2
15313 #: ../fish/guestfish-actions.pod:5150
15314 msgid "zfgrep"
15315 msgstr ""
15316
15317 #. type: verbatim
15318 #: ../fish/guestfish-actions.pod:5152
15319 #, no-wrap
15320 msgid ""
15321 " zfgrep pattern path\n"
15322 "\n"
15323 msgstr ""
15324
15325 #. type: textblock
15326 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7832
15327 msgid ""
15328 "This calls the external C<zfgrep> program and returns the matching lines."
15329 msgstr ""
15330
15331 #. type: =head2
15332 #: ../fish/guestfish-actions.pod:5160
15333 msgid "zfgrepi"
15334 msgstr ""
15335
15336 #. type: verbatim
15337 #: ../fish/guestfish-actions.pod:5162
15338 #, no-wrap
15339 msgid ""
15340 " zfgrepi pattern path\n"
15341 "\n"
15342 msgstr ""
15343
15344 #. type: textblock
15345 #: ../fish/guestfish-actions.pod:5164 ../src/guestfs-actions.pod:7851
15346 msgid ""
15347 "This calls the external C<zfgrep -i> program and returns the matching lines."
15348 msgstr ""
15349
15350 #. type: =head2
15351 #: ../fish/guestfish-actions.pod:5170
15352 msgid "zfile"
15353 msgstr ""
15354
15355 #. type: verbatim
15356 #: ../fish/guestfish-actions.pod:5172
15357 #, no-wrap
15358 msgid ""
15359 " zfile meth path\n"
15360 "\n"
15361 msgstr ""
15362
15363 #. type: textblock
15364 #: ../fish/guestfish-actions.pod:5174 ../src/guestfs-actions.pod:7870
15365 msgid ""
15366 "This command runs C<file> after first decompressing C<path> using C<method>."
15367 msgstr ""
15368
15369 #. type: textblock
15370 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7873
15371 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15372 msgstr ""
15373
15374 #. type: textblock
15375 #: ../fish/guestfish-actions.pod:5179
15376 msgid ""
15377 "Since 1.0.63, use L</file> instead which can now process compressed files."
15378 msgstr ""
15379
15380 #. type: textblock
15381 #: ../fish/guestfish-actions.pod:5182 ../src/guestfs-actions.pod:7881
15382 msgid ""
15383 "This function is deprecated.  In new code, use the C<file> call instead."
15384 msgstr ""
15385
15386 #. type: =head2
15387 #: ../fish/guestfish-actions.pod:5189
15388 msgid "zgrep"
15389 msgstr ""
15390
15391 #. type: verbatim
15392 #: ../fish/guestfish-actions.pod:5191
15393 #, no-wrap
15394 msgid ""
15395 " zgrep regex path\n"
15396 "\n"
15397 msgstr ""
15398
15399 #. type: textblock
15400 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7897
15401 msgid ""
15402 "This calls the external C<zgrep> program and returns the matching lines."
15403 msgstr ""
15404
15405 #. type: =head2
15406 #: ../fish/guestfish-actions.pod:5199
15407 msgid "zgrepi"
15408 msgstr ""
15409
15410 #. type: verbatim
15411 #: ../fish/guestfish-actions.pod:5201
15412 #, no-wrap
15413 msgid ""
15414 " zgrepi regex path\n"
15415 "\n"
15416 msgstr ""
15417
15418 #. type: textblock
15419 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:7916
15420 msgid ""
15421 "This calls the external C<zgrep -i> program and returns the matching lines."
15422 msgstr ""
15423
15424 #. type: =head2
15425 #: ../fish/guestfish-commands.pod:1
15426 msgid "alloc"
15427 msgstr ""
15428
15429 #. type: =head2
15430 #: ../fish/guestfish-commands.pod:3
15431 msgid "allocate"
15432 msgstr ""
15433
15434 #. type: verbatim
15435 #: ../fish/guestfish-commands.pod:5
15436 #, no-wrap
15437 msgid ""
15438 " alloc filename size\n"
15439 "\n"
15440 msgstr ""
15441
15442 #. type: textblock
15443 #: ../fish/guestfish-commands.pod:7
15444 msgid ""
15445 "This creates an empty (zeroed) file of the given size, and then adds so it "
15446 "can be further examined."
15447 msgstr ""
15448
15449 #. type: textblock
15450 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
15451 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
15452 msgstr ""
15453
15454 #. type: textblock
15455 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
15456 msgid "Size can be specified using standard suffixes, eg. C<1M>."
15457 msgstr ""
15458
15459 #. type: textblock
15460 #: ../fish/guestfish-commands.pod:14
15461 msgid ""
15462 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
15463 "image, see L</PREPARED DISK IMAGES>."
15464 msgstr ""
15465
15466 #. type: =head2
15467 #: ../fish/guestfish-commands.pod:17
15468 msgid "copy-in"
15469 msgstr ""
15470
15471 #. type: verbatim
15472 #: ../fish/guestfish-commands.pod:19
15473 #, no-wrap
15474 msgid ""
15475 " copy-in local [local ...] /remotedir\n"
15476 "\n"
15477 msgstr ""
15478
15479 #. type: textblock
15480 #: ../fish/guestfish-commands.pod:21
15481 msgid ""
15482 "C<copy-in> copies local files or directories recursively into the disk "
15483 "image, placing them in the directory called C</remotedir> (which must "
15484 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
15485 "other commands as necessary."
15486 msgstr ""
15487
15488 #. type: textblock
15489 #: ../fish/guestfish-commands.pod:26
15490 msgid ""
15491 "Multiple local files and directories can be specified, but the last "
15492 "parameter must always be a remote directory.  Wildcards cannot be used."
15493 msgstr ""
15494
15495 #. type: =head2
15496 #: ../fish/guestfish-commands.pod:30
15497 msgid "copy-out"
15498 msgstr ""
15499
15500 #. type: verbatim
15501 #: ../fish/guestfish-commands.pod:32
15502 #, no-wrap
15503 msgid ""
15504 " copy-out remote [remote ...] localdir\n"
15505 "\n"
15506 msgstr ""
15507
15508 #. type: textblock
15509 #: ../fish/guestfish-commands.pod:34
15510 msgid ""
15511 "C<copy-out> copies remote files or directories recursively out of the disk "
15512 "image, placing them on the host disk in a local directory called C<localdir> "
15513 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
15514 "download>, L</tar-out> and other commands as necessary."
15515 msgstr ""
15516
15517 #. type: textblock
15518 #: ../fish/guestfish-commands.pod:40
15519 msgid ""
15520 "Multiple remote files and directories can be specified, but the last "
15521 "parameter must always be a local directory.  To download to the current "
15522 "directory, use C<.> as in:"
15523 msgstr ""
15524
15525 #. type: verbatim
15526 #: ../fish/guestfish-commands.pod:44
15527 #, no-wrap
15528 msgid ""
15529 " copy-out /home .\n"
15530 "\n"
15531 msgstr ""
15532
15533 #. type: textblock
15534 #: ../fish/guestfish-commands.pod:46
15535 msgid ""
15536 "Wildcards cannot be used in the ordinary command, but you can use them with "
15537 "the help of L</glob> like this:"
15538 msgstr ""
15539
15540 #. type: verbatim
15541 #: ../fish/guestfish-commands.pod:49
15542 #, no-wrap
15543 msgid ""
15544 " glob copy-out /home/* .\n"
15545 "\n"
15546 msgstr ""
15547
15548 #. type: =head2
15549 #: ../fish/guestfish-commands.pod:51
15550 msgid "display"
15551 msgstr ""
15552
15553 #. type: verbatim
15554 #: ../fish/guestfish-commands.pod:53
15555 #, no-wrap
15556 msgid ""
15557 " display filename\n"
15558 "\n"
15559 msgstr ""
15560
15561 #. type: textblock
15562 #: ../fish/guestfish-commands.pod:55
15563 msgid ""
15564 "Use C<display> (a graphical display program) to display an image file.  It "
15565 "downloads the file, and runs C<display> on it."
15566 msgstr ""
15567
15568 #. type: textblock
15569 #: ../fish/guestfish-commands.pod:58
15570 msgid ""
15571 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15572 "environment variable.  For example to use the GNOME display program:"
15573 msgstr ""
15574
15575 #. type: verbatim
15576 #: ../fish/guestfish-commands.pod:61
15577 #, no-wrap
15578 msgid ""
15579 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15580 "\n"
15581 msgstr ""
15582
15583 #. type: textblock
15584 #: ../fish/guestfish-commands.pod:63
15585 msgid "See also L<display(1)>."
15586 msgstr ""
15587
15588 #. type: =head2
15589 #: ../fish/guestfish-commands.pod:65
15590 msgid "echo"
15591 msgstr ""
15592
15593 #. type: verbatim
15594 #: ../fish/guestfish-commands.pod:67
15595 #, no-wrap
15596 msgid ""
15597 " echo [params ...]\n"
15598 "\n"
15599 msgstr ""
15600
15601 #. type: textblock
15602 #: ../fish/guestfish-commands.pod:69
15603 msgid "This echos the parameters to the terminal."
15604 msgstr ""
15605
15606 #. type: =head2
15607 #: ../fish/guestfish-commands.pod:71
15608 msgid "edit"
15609 msgstr ""
15610
15611 #. type: =head2
15612 #: ../fish/guestfish-commands.pod:73
15613 msgid "vi"
15614 msgstr ""
15615
15616 #. type: =head2
15617 #: ../fish/guestfish-commands.pod:75
15618 msgid "emacs"
15619 msgstr ""
15620
15621 #. type: verbatim
15622 #: ../fish/guestfish-commands.pod:77
15623 #, no-wrap
15624 msgid ""
15625 " edit filename\n"
15626 "\n"
15627 msgstr ""
15628
15629 #. type: textblock
15630 #: ../fish/guestfish-commands.pod:79
15631 msgid ""
15632 "This is used to edit a file.  It downloads the file, edits it locally using "
15633 "your editor, then uploads the result."
15634 msgstr ""
15635
15636 #. type: textblock
15637 #: ../fish/guestfish-commands.pod:82
15638 msgid ""
15639 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
15640 "or C<emacs> you will get those corresponding editors."
15641 msgstr ""
15642
15643 #. type: =head2
15644 #: ../fish/guestfish-commands.pod:86
15645 msgid "glob"
15646 msgstr ""
15647
15648 #. type: verbatim
15649 #: ../fish/guestfish-commands.pod:88
15650 #, no-wrap
15651 msgid ""
15652 " glob command args...\n"
15653 "\n"
15654 msgstr ""
15655
15656 #. type: textblock
15657 #: ../fish/guestfish-commands.pod:90
15658 msgid ""
15659 "Expand wildcards in any paths in the args list, and run C<command> "
15660 "repeatedly on each matching path."
15661 msgstr ""
15662
15663 #. type: textblock
15664 #: ../fish/guestfish-commands.pod:93
15665 msgid "See L</WILDCARDS AND GLOBBING>."
15666 msgstr ""
15667
15668 #. type: =head2
15669 #: ../fish/guestfish-commands.pod:95
15670 msgid "hexedit"
15671 msgstr ""
15672
15673 #. type: verbatim
15674 #: ../fish/guestfish-commands.pod:97
15675 #, no-wrap
15676 msgid ""
15677 " hexedit <filename|device>\n"
15678 " hexedit <filename|device> <max>\n"
15679 " hexedit <filename|device> <start> <max>\n"
15680 "\n"
15681 msgstr ""
15682
15683 #. type: textblock
15684 #: ../fish/guestfish-commands.pod:101
15685 msgid ""
15686 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
15687 "device."
15688 msgstr ""
15689
15690 #. type: textblock
15691 #: ../fish/guestfish-commands.pod:104
15692 msgid ""
15693 "This command works by downloading potentially the whole file or device, "
15694 "editing it locally, then uploading it.  If the file or device is large, you "
15695 "have to specify which part you wish to edit by using C<max> and/or C<start> "
15696 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
15697 "usual modifiers allowed such as C<1M> (1 megabyte)."
15698 msgstr ""
15699
15700 #. type: textblock
15701 #: ../fish/guestfish-commands.pod:111
15702 msgid "For example to edit the first few sectors of a disk you might do:"
15703 msgstr ""
15704
15705 #. type: verbatim
15706 #: ../fish/guestfish-commands.pod:114
15707 #, no-wrap
15708 msgid ""
15709 " hexedit /dev/sda 1M\n"
15710 "\n"
15711 msgstr ""
15712
15713 #. type: textblock
15714 #: ../fish/guestfish-commands.pod:116
15715 msgid ""
15716 "which would allow you to edit anywhere within the first megabyte of the disk."
15717 msgstr ""
15718
15719 #. type: textblock
15720 #: ../fish/guestfish-commands.pod:119
15721 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
15722 msgstr ""
15723
15724 #. type: verbatim
15725 #: ../fish/guestfish-commands.pod:121
15726 #, no-wrap
15727 msgid ""
15728 " hexedit /dev/sda1 0x400 0x400\n"
15729 "\n"
15730 msgstr ""
15731
15732 #. type: textblock
15733 #: ../fish/guestfish-commands.pod:123
15734 msgid "(assuming the superblock is in the standard location)."
15735 msgstr ""
15736
15737 #. type: textblock
15738 #: ../fish/guestfish-commands.pod:125
15739 msgid ""
15740 "This command requires the external L<hexedit(1)> program.  You can specify "
15741 "another program to use by setting the C<HEXEDITOR> environment variable."
15742 msgstr ""
15743
15744 #. type: textblock
15745 #: ../fish/guestfish-commands.pod:129
15746 msgid "See also L</hexdump>."
15747 msgstr ""
15748
15749 #. type: =head2
15750 #: ../fish/guestfish-commands.pod:131
15751 msgid "lcd"
15752 msgstr ""
15753
15754 #. type: verbatim
15755 #: ../fish/guestfish-commands.pod:133
15756 #, no-wrap
15757 msgid ""
15758 " lcd directory\n"
15759 "\n"
15760 msgstr ""
15761
15762 #. type: textblock
15763 #: ../fish/guestfish-commands.pod:135
15764 msgid ""
15765 "Change the local directory, ie. the current directory of guestfish itself."
15766 msgstr ""
15767
15768 #. type: textblock
15769 #: ../fish/guestfish-commands.pod:138
15770 msgid "Note that C<!cd> won't do what you might expect."
15771 msgstr ""
15772
15773 #. type: =head2
15774 #: ../fish/guestfish-commands.pod:140
15775 msgid "man"
15776 msgstr ""
15777
15778 #. type: =head2
15779 #: ../fish/guestfish-commands.pod:142
15780 msgid "manual"
15781 msgstr ""
15782
15783 #. type: verbatim
15784 #: ../fish/guestfish-commands.pod:144
15785 #, no-wrap
15786 msgid ""
15787 "  man\n"
15788 "\n"
15789 msgstr ""
15790
15791 #. type: textblock
15792 #: ../fish/guestfish-commands.pod:146
15793 msgid "Opens the manual page for guestfish."
15794 msgstr ""
15795
15796 #. type: =head2
15797 #: ../fish/guestfish-commands.pod:148
15798 msgid "more"
15799 msgstr ""
15800
15801 #. type: =head2
15802 #: ../fish/guestfish-commands.pod:150
15803 msgid "less"
15804 msgstr ""
15805
15806 #. type: verbatim
15807 #: ../fish/guestfish-commands.pod:152
15808 #, no-wrap
15809 msgid ""
15810 " more filename\n"
15811 "\n"
15812 msgstr ""
15813
15814 #. type: verbatim
15815 #: ../fish/guestfish-commands.pod:154
15816 #, no-wrap
15817 msgid ""
15818 " less filename\n"
15819 "\n"
15820 msgstr ""
15821
15822 #. type: textblock
15823 #: ../fish/guestfish-commands.pod:156
15824 msgid "This is used to view a file."
15825 msgstr ""
15826
15827 #. type: textblock
15828 #: ../fish/guestfish-commands.pod:158
15829 msgid ""
15830 "The default viewer is C<$PAGER>.  However if you use the alternate command "
15831 "C<less> you will get the C<less> command specifically."
15832 msgstr ""
15833
15834 #. type: =head2
15835 #: ../fish/guestfish-commands.pod:161
15836 msgid "reopen"
15837 msgstr ""
15838
15839 #. type: verbatim
15840 #: ../fish/guestfish-commands.pod:163
15841 #, no-wrap
15842 msgid ""
15843 "  reopen\n"
15844 "\n"
15845 msgstr ""
15846
15847 #. type: textblock
15848 #: ../fish/guestfish-commands.pod:165
15849 msgid ""
15850 "Close and reopen the libguestfs handle.  It is not necessary to use this "
15851 "normally, because the handle is closed properly when guestfish exits.  "
15852 "However this is occasionally useful for testing."
15853 msgstr ""
15854
15855 #. type: =head2
15856 #: ../fish/guestfish-commands.pod:169
15857 msgid "sparse"
15858 msgstr ""
15859
15860 #. type: verbatim
15861 #: ../fish/guestfish-commands.pod:171
15862 #, no-wrap
15863 msgid ""
15864 " sparse filename size\n"
15865 "\n"
15866 msgstr ""
15867
15868 #. type: textblock
15869 #: ../fish/guestfish-commands.pod:173
15870 msgid ""
15871 "This creates an empty sparse file of the given size, and then adds so it can "
15872 "be further examined."
15873 msgstr ""
15874
15875 #. type: textblock
15876 #: ../fish/guestfish-commands.pod:176
15877 msgid ""
15878 "In all respects it works the same as the L</alloc> command, except that the "
15879 "image file is allocated sparsely, which means that disk blocks are not "
15880 "assigned to the file until they are needed.  Sparse disk files only use "
15881 "space when written to, but they are slower and there is a danger you could "
15882 "run out of real disk space during a write operation."
15883 msgstr ""
15884
15885 #. type: =head2
15886 #: ../fish/guestfish-commands.pod:186
15887 msgid "supported"
15888 msgstr ""
15889
15890 #. type: verbatim
15891 #: ../fish/guestfish-commands.pod:188
15892 #, no-wrap
15893 msgid ""
15894 " supported\n"
15895 "\n"
15896 msgstr ""
15897
15898 #. type: textblock
15899 #: ../fish/guestfish-commands.pod:190
15900 msgid ""
15901 "This command returns a list of the optional groups known to the daemon, and "
15902 "indicates which ones are supported by this build of the libguestfs appliance."
15903 msgstr ""
15904
15905 #. type: textblock
15906 #: ../fish/guestfish-commands.pod:194
15907 msgid "See also L<guestfs(3)/AVAILABILITY>."
15908 msgstr ""
15909
15910 #. type: =head2
15911 #: ../fish/guestfish-commands.pod:196
15912 msgid "time"
15913 msgstr ""
15914
15915 #. type: verbatim
15916 #: ../fish/guestfish-commands.pod:198
15917 #, no-wrap
15918 msgid ""
15919 " time command args...\n"
15920 "\n"
15921 msgstr ""
15922
15923 #. type: textblock
15924 #: ../fish/guestfish-commands.pod:200
15925 msgid ""
15926 "Run the command as usual, but print the elapsed time afterwards.  This can "
15927 "be useful for benchmarking operations."
15928 msgstr ""
15929
15930 #. type: textblock
15931 #: ../fish/guestfish.pod:5
15932 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15933 msgstr ""
15934
15935 #. type: verbatim
15936 #: ../fish/guestfish.pod:9
15937 #, no-wrap
15938 msgid ""
15939 " guestfish [--options] [commands]\n"
15940 "\n"
15941 msgstr ""
15942
15943 #. type: verbatim
15944 #: ../fish/guestfish.pod:11
15945 #, no-wrap
15946 msgid ""
15947 " guestfish\n"
15948 "\n"
15949 msgstr ""
15950
15951 #. type: verbatim
15952 #: ../fish/guestfish.pod:13
15953 #, no-wrap
15954 msgid ""
15955 " guestfish [--ro|--rw] -a disk.img\n"
15956 "\n"
15957 msgstr ""
15958
15959 #. type: verbatim
15960 #: ../fish/guestfish.pod:15
15961 #, no-wrap
15962 msgid ""
15963 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
15964 "\n"
15965 msgstr ""
15966
15967 #. type: verbatim
15968 #: ../fish/guestfish.pod:17
15969 #, no-wrap
15970 msgid ""
15971 " guestfish -d libvirt-domain\n"
15972 "\n"
15973 msgstr ""
15974
15975 #. type: verbatim
15976 #: ../fish/guestfish.pod:19
15977 #, no-wrap
15978 msgid ""
15979 " guestfish [--ro|--rw] -a disk.img -i\n"
15980 "\n"
15981 msgstr ""
15982
15983 #. type: verbatim
15984 #: ../fish/guestfish.pod:21
15985 #, no-wrap
15986 msgid ""
15987 " guestfish -d libvirt-domain -i\n"
15988 "\n"
15989 msgstr ""
15990
15991 #. type: textblock
15992 #: ../fish/guestfish.pod:25
15993 msgid ""
15994 "Using guestfish in read/write mode on live virtual machines can be "
15995 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15996 "option to use guestfish safely if the disk image or virtual machine might be "
15997 "live."
15998 msgstr ""
15999
16000 #. type: textblock
16001 #: ../fish/guestfish.pod:32
16002 msgid ""
16003 "Guestfish is a shell and command-line tool for examining and modifying "
16004 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16005 "functionality of the guestfs API, see L<guestfs(3)>."
16006 msgstr ""
16007
16008 #. type: textblock
16009 #: ../fish/guestfish.pod:36
16010 msgid ""
16011 "Guestfish gives you structured access to the libguestfs API, from shell "
16012 "scripts or the command line or interactively.  If you want to rescue a "
16013 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16014 "command."
16015 msgstr ""
16016
16017 #. type: =head2
16018 #: ../fish/guestfish.pod:43
16019 msgid "As an interactive shell"
16020 msgstr ""
16021
16022 #. type: verbatim
16023 #: ../fish/guestfish.pod:45
16024 #, no-wrap
16025 msgid ""
16026 " $ guestfish\n"
16027 " \n"
16028 msgstr ""
16029
16030 #. type: verbatim
16031 #: ../fish/guestfish.pod:47
16032 #, no-wrap
16033 msgid ""
16034 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16035 " editing virtual machine filesystems.\n"
16036 " \n"
16037 msgstr ""
16038
16039 #. type: verbatim
16040 #: ../fish/guestfish.pod:50
16041 #, no-wrap
16042 msgid ""
16043 " Type: 'help' for a list of commands\n"
16044 "       'man' to read the manual\n"
16045 "       'quit' to quit the shell\n"
16046 " \n"
16047 msgstr ""
16048
16049 #. type: verbatim
16050 #: ../fish/guestfish.pod:54
16051 #, no-wrap
16052 msgid ""
16053 " ><fs> add-ro disk.img\n"
16054 " ><fs> run\n"
16055 " ><fs> list-filesystems\n"
16056 " /dev/sda1: ext4\n"
16057 " /dev/vg_guest/lv_root: ext4\n"
16058 " /dev/vg_guest/lv_swap: swap\n"
16059 " ><fs> mount /dev/vg_guest/lv_root /\n"
16060 " ><fs> cat /etc/fstab\n"
16061 " # /etc/fstab\n"
16062 " # Created by anaconda\n"
16063 " [...]\n"
16064 " ><fs> exit\n"
16065 "\n"
16066 msgstr ""
16067
16068 #. type: =head2
16069 #: ../fish/guestfish.pod:67
16070 msgid "From shell scripts"
16071 msgstr ""
16072
16073 #. type: textblock
16074 #: ../fish/guestfish.pod:69
16075 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16076 msgstr ""
16077
16078 #. type: verbatim
16079 #: ../fish/guestfish.pod:71
16080 #, no-wrap
16081 msgid ""
16082 " guestfish <<_EOF_\n"
16083 " add disk.img\n"
16084 " run\n"
16085 " mount /dev/vg_guest/lv_root /\n"
16086 " write /etc/motd \"Welcome, new users\"\n"
16087 " _EOF_\n"
16088 "\n"
16089 msgstr ""
16090
16091 #. type: textblock
16092 #: ../fish/guestfish.pod:78
16093 msgid "List the LVM logical volumes in a disk image:"
16094 msgstr ""
16095
16096 #. type: verbatim
16097 #: ../fish/guestfish.pod:80
16098 #, no-wrap
16099 msgid ""
16100 " guestfish -a disk.img --ro <<_EOF_\n"
16101 " run\n"
16102 " lvs\n"
16103 " _EOF_\n"
16104 "\n"
16105 msgstr ""
16106
16107 #. type: textblock
16108 #: ../fish/guestfish.pod:85
16109 msgid "List all the filesystems in a disk image:"
16110 msgstr ""
16111
16112 #. type: verbatim
16113 #: ../fish/guestfish.pod:87
16114 #, no-wrap
16115 msgid ""
16116 " guestfish -a disk.img --ro <<_EOF_\n"
16117 " run\n"
16118 " list-filesystems\n"
16119 " _EOF_\n"
16120 "\n"
16121 msgstr ""
16122
16123 #. type: =head2
16124 #: ../fish/guestfish.pod:92
16125 msgid "On one command line"
16126 msgstr ""
16127
16128 #. type: textblock
16129 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
16130 msgid "Update C</etc/resolv.conf> in a guest:"
16131 msgstr ""
16132
16133 #. type: verbatim
16134 #: ../fish/guestfish.pod:96
16135 #, no-wrap
16136 msgid ""
16137 " guestfish \\\n"
16138 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16139 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16140 "\n"
16141 msgstr ""
16142
16143 #. type: textblock
16144 #: ../fish/guestfish.pod:100
16145 msgid "Edit C</boot/grub/grub.conf> interactively:"
16146 msgstr ""
16147
16148 #. type: verbatim
16149 #: ../fish/guestfish.pod:102
16150 #, no-wrap
16151 msgid ""
16152 " guestfish --rw --add disk.img \\\n"
16153 "   --mount /dev/vg_guest/lv_root \\\n"
16154 "   --mount /dev/sda1:/boot \\\n"
16155 "   edit /boot/grub/grub.conf\n"
16156 "\n"
16157 msgstr ""
16158
16159 #. type: =head2
16160 #: ../fish/guestfish.pod:107
16161 msgid "Mount disks automatically"
16162 msgstr ""
16163
16164 #. type: textblock
16165 #: ../fish/guestfish.pod:109
16166 msgid ""
16167 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16168 msgstr ""
16169
16170 #. type: verbatim
16171 #: ../fish/guestfish.pod:112
16172 #, no-wrap
16173 msgid ""
16174 " guestfish --ro -a disk.img -i cat /etc/group\n"
16175 "\n"
16176 msgstr ""
16177
16178 #. type: verbatim
16179 #: ../fish/guestfish.pod:114
16180 #, no-wrap
16181 msgid ""
16182 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16183 "\n"
16184 msgstr ""
16185
16186 #. type: textblock
16187 #: ../fish/guestfish.pod:116
16188 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16189 msgstr ""
16190
16191 #. type: verbatim
16192 #: ../fish/guestfish.pod:118
16193 #, no-wrap
16194 msgid ""
16195 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16196 "\n"
16197 msgstr ""
16198
16199 #. type: =head2
16200 #: ../fish/guestfish.pod:120
16201 msgid "As a script interpreter"
16202 msgstr ""
16203
16204 #. type: textblock
16205 #: ../fish/guestfish.pod:122
16206 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16207 msgstr ""
16208
16209 #. type: verbatim
16210 #: ../fish/guestfish.pod:124
16211 #, no-wrap
16212 msgid ""
16213 " #!/usr/bin/guestfish -f\n"
16214 " sparse test1.img 100M\n"
16215 " run\n"
16216 " part-disk /dev/sda mbr\n"
16217 " mkfs ext2 /dev/sda1\n"
16218 "\n"
16219 msgstr ""
16220
16221 #. type: =head2
16222 #: ../fish/guestfish.pod:130
16223 msgid "Start with a prepared disk"
16224 msgstr ""
16225
16226 #. type: textblock
16227 #: ../fish/guestfish.pod:132
16228 msgid ""
16229 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16230 "single ext2-formatted partition:"
16231 msgstr ""
16232
16233 #. type: verbatim
16234 #: ../fish/guestfish.pod:135
16235 #, no-wrap
16236 msgid ""
16237 " guestfish -N fs\n"
16238 "\n"
16239 msgstr ""
16240
16241 #. type: textblock
16242 #: ../fish/guestfish.pod:137
16243 msgid "To list what is available do:"
16244 msgstr ""
16245
16246 #. type: verbatim
16247 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:998
16248 #, no-wrap
16249 msgid ""
16250 " guestfish -N help | less\n"
16251 "\n"
16252 msgstr ""
16253
16254 #. type: =head2
16255 #: ../fish/guestfish.pod:141
16256 msgid "Remote control"
16257 msgstr ""
16258
16259 #. type: verbatim
16260 #: ../fish/guestfish.pod:143
16261 #, no-wrap
16262 msgid ""
16263 " eval \"`guestfish --listen`\"\n"
16264 " guestfish --remote add-ro disk.img\n"
16265 " guestfish --remote run\n"
16266 " guestfish --remote lvs\n"
16267 "\n"
16268 msgstr ""
16269
16270 #. type: textblock
16271 #: ../fish/guestfish.pod:154
16272 msgid "Displays general help on options."
16273 msgstr ""
16274
16275 #. type: =item
16276 #: ../fish/guestfish.pod:158
16277 msgid "B<--cmd-help>"
16278 msgstr ""
16279
16280 #. type: textblock
16281 #: ../fish/guestfish.pod:160
16282 msgid "Lists all available guestfish commands."
16283 msgstr ""
16284
16285 #. type: =item
16286 #: ../fish/guestfish.pod:162
16287 msgid "B<-h cmd>"
16288 msgstr ""
16289
16290 #. type: =item
16291 #: ../fish/guestfish.pod:164
16292 msgid "B<--cmd-help cmd>"
16293 msgstr ""
16294
16295 #. type: textblock
16296 #: ../fish/guestfish.pod:166
16297 msgid "Displays detailed help on a single command C<cmd>."
16298 msgstr ""
16299
16300 #. type: =item
16301 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
16302 msgid "B<-a image>"
16303 msgstr ""
16304
16305 #. type: =item
16306 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
16307 msgid "B<--add image>"
16308 msgstr ""
16309
16310 #. type: textblock
16311 #: ../fish/guestfish.pod:172
16312 msgid "Add a block device or virtual machine image to the shell."
16313 msgstr ""
16314
16315 #. type: textblock
16316 #: ../fish/guestfish.pod:177
16317 msgid ""
16318 "Using this flag is mostly equivalent to using the C<add> command, with "
16319 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
16320 "the I<--format=...> flag was given."
16321 msgstr ""
16322
16323 #. type: textblock
16324 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
16325 msgid ""
16326 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16327 "URI to use.  The default is to use the default libvirt connection."
16328 msgstr ""
16329
16330 #. type: =item
16331 #: ../fish/guestfish.pod:189
16332 msgid "B<--csh>"
16333 msgstr ""
16334
16335 #. type: textblock
16336 #: ../fish/guestfish.pod:191
16337 msgid ""
16338 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16339 "section L</REMOTE CONTROL AND CSH> below."
16340 msgstr ""
16341
16342 #. type: =item
16343 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
16344 msgid "B<-d libvirt-domain>"
16345 msgstr ""
16346
16347 #. type: =item
16348 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
16349 msgid "B<--domain libvirt-domain>"
16350 msgstr ""
16351
16352 #. type: textblock
16353 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
16354 msgid ""
16355 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16356 "used, then any libvirt domain can be used.  However in write mode, only "
16357 "libvirt domains which are shut down can be named here."
16358 msgstr ""
16359
16360 #. type: textblock
16361 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
16362 msgid "Domain UUIDs can be used instead of names."
16363 msgstr ""
16364
16365 #. type: textblock
16366 #: ../fish/guestfish.pod:204
16367 msgid ""
16368 "Using this flag is mostly equivalent to using the C<add-domain> command, "
16369 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
16370 "if the I<--format:...> flag was given."
16371 msgstr ""
16372
16373 #. type: =item
16374 #: ../fish/guestfish.pod:208
16375 msgid "B<-D>"
16376 msgstr ""
16377
16378 #. type: =item
16379 #: ../fish/guestfish.pod:210
16380 msgid "B<--no-dest-paths>"
16381 msgstr ""
16382
16383 #. type: textblock
16384 #: ../fish/guestfish.pod:212
16385 msgid ""
16386 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16387 "to hit the tab key to complete paths on the guest filesystem, but this "
16388 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16389 "allow this feature to be disabled."
16390 msgstr ""
16391
16392 #. type: textblock
16393 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
16394 msgid ""
16395 "When prompting for keys and passphrases, guestfish normally turns echoing "
16396 "off so you cannot see what you are typing.  If you are not worried about "
16397 "Tempest attacks and there is no one else in the room you can specify this "
16398 "flag to see what you are typing."
16399 msgstr ""
16400
16401 #. type: =item
16402 #: ../fish/guestfish.pod:224
16403 msgid "B<-f file>"
16404 msgstr ""
16405
16406 #. type: =item
16407 #: ../fish/guestfish.pod:226
16408 msgid "B<--file file>"
16409 msgstr ""
16410
16411 #. type: textblock
16412 #: ../fish/guestfish.pod:228
16413 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16414 msgstr ""
16415
16416 #. type: verbatim
16417 #: ../fish/guestfish.pod:231
16418 #, no-wrap
16419 msgid ""
16420 " #!/usr/bin/guestfish -f\n"
16421 "\n"
16422 msgstr ""
16423
16424 #. type: verbatim
16425 #: ../fish/guestfish.pod:244
16426 #, no-wrap
16427 msgid ""
16428 " guestfish --format=raw -a disk.img\n"
16429 "\n"
16430 msgstr ""
16431
16432 #. type: verbatim
16433 #: ../fish/guestfish.pod:248
16434 #, no-wrap
16435 msgid ""
16436 " guestfish --format=raw -a disk.img --format -a another.img\n"
16437 "\n"
16438 msgstr ""
16439
16440 #. type: textblock
16441 #: ../fish/guestfish.pod:253
16442 msgid ""
16443 "If you have untrusted raw-format guest disk images, you should use this "
16444 "option to specify the disk format.  This avoids a possible security problem "
16445 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16446 msgstr ""
16447
16448 #. type: =item
16449 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
16450 msgid "B<--inspector>"
16451 msgstr ""
16452
16453 #. type: textblock
16454 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
16455 msgid ""
16456 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16457 "system and mount filesystems as they would be mounted on the real virtual "
16458 "machine."
16459 msgstr ""
16460
16461 #. type: textblock
16462 #: ../fish/guestfish.pod:266
16463 msgid "Typical usage is either:"
16464 msgstr ""
16465
16466 #. type: verbatim
16467 #: ../fish/guestfish.pod:268
16468 #, no-wrap
16469 msgid ""
16470 " guestfish -d myguest -i\n"
16471 "\n"
16472 msgstr ""
16473
16474 #. type: textblock
16475 #: ../fish/guestfish.pod:270
16476 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16477 msgstr ""
16478
16479 #. type: verbatim
16480 #: ../fish/guestfish.pod:272
16481 #, no-wrap
16482 msgid ""
16483 " guestfish --ro -d myguest -i\n"
16484 "\n"
16485 msgstr ""
16486
16487 #. type: textblock
16488 #: ../fish/guestfish.pod:274
16489 msgid "(for active domains, readonly), or specify the block device directly:"
16490 msgstr ""
16491
16492 #. type: verbatim
16493 #: ../fish/guestfish.pod:276
16494 #, no-wrap
16495 msgid ""
16496 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16497 "\n"
16498 msgstr ""
16499
16500 #. type: textblock
16501 #: ../fish/guestfish.pod:278
16502 msgid ""
16503 "Note that the command line syntax changed slightly over older versions of "
16504 "guestfish.  You can still use the old syntax:"
16505 msgstr ""
16506
16507 #. type: verbatim
16508 #: ../fish/guestfish.pod:281
16509 #, no-wrap
16510 msgid ""
16511 " guestfish [--ro] -i disk.img\n"
16512 "\n"
16513 msgstr ""
16514
16515 #. type: verbatim
16516 #: ../fish/guestfish.pod:283
16517 #, no-wrap
16518 msgid ""
16519 " guestfish [--ro] -i libvirt-domain\n"
16520 "\n"
16521 msgstr ""
16522
16523 #. type: textblock
16524 #: ../fish/guestfish.pod:285
16525 msgid ""
16526 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16527 "then using other commands to mount the filesystems that were found."
16528 msgstr ""
16529
16530 #. type: =item
16531 #: ../fish/guestfish.pod:294
16532 msgid "B<--listen>"
16533 msgstr ""
16534
16535 #. type: textblock
16536 #: ../fish/guestfish.pod:296
16537 msgid ""
16538 "Fork into the background and listen for remote commands.  See section L</"
16539 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16540 msgstr ""
16541
16542 #. type: =item
16543 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
16544 msgid "B<--live>"
16545 msgstr ""
16546
16547 #. type: textblock
16548 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
16549 msgid ""
16550 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
16551 "ATTACHING TO RUNNING DAEMONS>)."
16552 msgstr ""
16553
16554 #. type: =item
16555 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
16556 msgid "B<-m dev[:mountpoint[:options]]>"
16557 msgstr ""
16558
16559 #. type: =item
16560 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
16561 msgid "B<--mount dev[:mountpoint[:options]]>"
16562 msgstr ""
16563
16564 #. type: textblock
16565 #: ../fish/guestfish.pod:308
16566 msgid "Mount the named partition or logical volume on the given mountpoint."
16567 msgstr ""
16568
16569 #. type: textblock
16570 #: ../fish/guestfish.pod:310
16571 msgid "If the mountpoint is omitted, it defaults to C</>."
16572 msgstr ""
16573
16574 #. type: textblock
16575 #: ../fish/guestfish.pod:312
16576 msgid "You have to mount something on C</> before most commands will work."
16577 msgstr ""
16578
16579 #. type: textblock
16580 #: ../fish/guestfish.pod:314
16581 msgid ""
16582 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16583 "launched."
16584 msgstr ""
16585
16586 #. type: textblock
16587 #: ../fish/guestfish.pod:317
16588 msgid ""
16589 "If you don't know what filesystems a disk image contains, you can either run "
16590 "guestfish without this option, then list the partitions, filesystems and LVs "
16591 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
16592 "commands), or you can use the L<virt-filesystems(1)> program."
16593 msgstr ""
16594
16595 #. type: textblock
16596 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
16597 msgid ""
16598 "The third (and rarely used) part of the mount parameter is the list of mount "
16599 "options used to mount the underlying filesystem.  If this is not given, then "
16600 "the mount options are either the empty string or C<ro> (the latter if the "
16601 "I<--ro> flag is used).  By specifying the mount options, you override this "
16602 "default choice.  Probably the only time you would use this is to enable ACLs "
16603 "and/or extended attributes if the filesystem can support them:"
16604 msgstr ""
16605
16606 #. type: verbatim
16607 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
16608 #, no-wrap
16609 msgid ""
16610 " -m /dev/sda1:/:acl,user_xattr\n"
16611 "\n"
16612 msgstr ""
16613
16614 #. type: textblock
16615 #: ../fish/guestfish.pod:333
16616 msgid "Using this flag is equivalent to using the C<mount-options> command."
16617 msgstr ""
16618
16619 #. type: =item
16620 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
16621 #: ../resize/virt-resize.pod:352
16622 msgid "B<-n>"
16623 msgstr ""
16624
16625 #. type: =item
16626 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
16627 msgid "B<--no-sync>"
16628 msgstr ""
16629
16630 #. type: textblock
16631 #: ../fish/guestfish.pod:339
16632 msgid ""
16633 "Disable autosync.  This is enabled by default.  See the discussion of "
16634 "autosync in the L<guestfs(3)> manpage."
16635 msgstr ""
16636
16637 #. type: =item
16638 #: ../fish/guestfish.pod:342
16639 msgid "B<-N type>"
16640 msgstr ""
16641
16642 #. type: =item
16643 #: ../fish/guestfish.pod:344
16644 msgid "B<--new type>"
16645 msgstr ""
16646
16647 #. type: =item
16648 #: ../fish/guestfish.pod:346
16649 msgid "B<-N help>"
16650 msgstr ""
16651
16652 #. type: textblock
16653 #: ../fish/guestfish.pod:348
16654 msgid ""
16655 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16656 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16657 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16658 "IMAGES> below."
16659 msgstr ""
16660
16661 #. type: =item
16662 #: ../fish/guestfish.pod:353
16663 msgid "B<--progress-bars>"
16664 msgstr ""
16665
16666 #. type: textblock
16667 #: ../fish/guestfish.pod:355
16668 msgid "Enable progress bars, even when guestfish is used non-interactively."
16669 msgstr ""
16670
16671 #. type: textblock
16672 #: ../fish/guestfish.pod:357
16673 msgid ""
16674 "Progress bars are enabled by default when guestfish is used as an "
16675 "interactive shell."
16676 msgstr ""
16677
16678 #. type: =item
16679 #: ../fish/guestfish.pod:360
16680 msgid "B<--no-progress-bars>"
16681 msgstr ""
16682
16683 #. type: textblock
16684 #: ../fish/guestfish.pod:362
16685 msgid "Disable progress bars."
16686 msgstr ""
16687
16688 #. type: =item
16689 #: ../fish/guestfish.pod:364
16690 msgid "B<--remote[=pid]>"
16691 msgstr ""
16692
16693 #. type: textblock
16694 #: ../fish/guestfish.pod:366
16695 msgid ""
16696 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16697 "CONTROL GUESTFISH OVER A SOCKET> below."
16698 msgstr ""
16699
16700 #. type: =item
16701 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
16702 #: ../rescue/virt-rescue.pod:161
16703 msgid "B<-r>"
16704 msgstr ""
16705
16706 #. type: =item
16707 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
16708 #: ../rescue/virt-rescue.pod:163
16709 msgid "B<--ro>"
16710 msgstr ""
16711
16712 #. type: textblock
16713 #: ../fish/guestfish.pod:373
16714 msgid ""
16715 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16716 "mounts are done read-only."
16717 msgstr ""
16718
16719 #. type: textblock
16720 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
16721 msgid ""
16722 "The option must always be used if the disk image or virtual machine might be "
16723 "running, and is generally recommended in cases where you don't need write "
16724 "access to the disk."
16725 msgstr ""
16726
16727 #. type: textblock
16728 #: ../fish/guestfish.pod:380
16729 msgid ""
16730 "Note that prepared disk images created with I<-N> are not affected by this "
16731 "option.  Also commands like C<add> are not affected - you have to specify "
16732 "the C<readonly:true> option explicitly if you need it."
16733 msgstr ""
16734
16735 #. type: textblock
16736 #: ../fish/guestfish.pod:384
16737 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16738 msgstr ""
16739
16740 #. type: =item
16741 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
16742 #: ../rescue/virt-rescue.pod:173
16743 msgid "B<--selinux>"
16744 msgstr ""
16745
16746 #. type: textblock
16747 #: ../fish/guestfish.pod:388
16748 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16749 msgstr ""
16750
16751 #. type: textblock
16752 #: ../fish/guestfish.pod:394
16753 msgid ""
16754 "Enable very verbose messages.  This is particularly useful if you find a bug."
16755 msgstr ""
16756
16757 #. type: textblock
16758 #: ../fish/guestfish.pod:401
16759 msgid "Display the guestfish / libguestfs version number and exit."
16760 msgstr ""
16761
16762 #. type: =item
16763 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
16764 #: ../rescue/virt-rescue.pod:190
16765 msgid "B<-w>"
16766 msgstr ""
16767
16768 #. type: =item
16769 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
16770 #: ../rescue/virt-rescue.pod:192
16771 msgid "B<--rw>"
16772 msgstr ""
16773
16774 #. type: textblock
16775 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
16776 msgid ""
16777 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16778 "mounts are done read-write."
16779 msgstr ""
16780
16781 #. type: textblock
16782 #: ../fish/guestfish.pod:410
16783 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
16784 msgstr ""
16785
16786 #. type: textblock
16787 #: ../fish/guestfish.pod:414
16788 msgid "Echo each command before executing it."
16789 msgstr ""
16790
16791 #. type: =head1
16792 #: ../fish/guestfish.pod:418
16793 msgid "COMMANDS ON COMMAND LINE"
16794 msgstr ""
16795
16796 #. type: textblock
16797 #: ../fish/guestfish.pod:420
16798 msgid ""
16799 "Any additional (non-option) arguments are treated as commands to execute."
16800 msgstr ""
16801
16802 #. type: textblock
16803 #: ../fish/guestfish.pod:423
16804 msgid ""
16805 "Commands to execute should be separated by a colon (C<:>), where the colon "
16806 "is a separate parameter.  Thus:"
16807 msgstr ""
16808
16809 #. type: verbatim
16810 #: ../fish/guestfish.pod:426
16811 #, no-wrap
16812 msgid ""
16813 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16814 "\n"
16815 msgstr ""
16816
16817 #. type: textblock
16818 #: ../fish/guestfish.pod:428
16819 msgid ""
16820 "If there are no additional arguments, then we enter a shell, either an "
16821 "interactive shell with a prompt (if the input is a terminal) or a non-"
16822 "interactive shell."
16823 msgstr ""
16824
16825 #. type: textblock
16826 #: ../fish/guestfish.pod:432
16827 msgid ""
16828 "In either command line mode or non-interactive shell, the first command that "
16829 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16830 "prompt) if a command fails, you can continue to enter commands."
16831 msgstr ""
16832
16833 #. type: =head1
16834 #: ../fish/guestfish.pod:437
16835 msgid "USING launch (OR run)"
16836 msgstr ""
16837
16838 #. type: textblock
16839 #: ../fish/guestfish.pod:439
16840 msgid ""
16841 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16842 "then launch it, then mount any disks you need, and finally issue actions/"
16843 "commands.  So the general order of the day is:"
16844 msgstr ""
16845
16846 #. type: textblock
16847 #: ../fish/guestfish.pod:447
16848 msgid "add or -a/--add"
16849 msgstr ""
16850
16851 #. type: textblock
16852 #: ../fish/guestfish.pod:451
16853 msgid "launch (aka run)"
16854 msgstr ""
16855
16856 #. type: textblock
16857 #: ../fish/guestfish.pod:455
16858 msgid "mount or -m/--mount"
16859 msgstr ""
16860
16861 #. type: textblock
16862 #: ../fish/guestfish.pod:459
16863 msgid "any other commands"
16864 msgstr ""
16865
16866 #. type: textblock
16867 #: ../fish/guestfish.pod:463
16868 msgid ""
16869 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16870 "guest before mounting or performing any other commands."
16871 msgstr ""
16872
16873 #. type: textblock
16874 #: ../fish/guestfish.pod:466
16875 msgid ""
16876 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16877 "I<--new> options were given then C<run> is done automatically, simply "
16878 "because guestfish can't perform the action you asked for without doing this."
16879 msgstr ""
16880
16881 #. type: =head1
16882 #: ../fish/guestfish.pod:471
16883 msgid "OPENING DISKS FOR READ AND WRITE"
16884 msgstr ""
16885
16886 #. type: textblock
16887 #: ../fish/guestfish.pod:473
16888 msgid ""
16889 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
16890 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
16891 "I<-i> and I<-m> open disk images read-only or for writing."
16892 msgstr ""
16893
16894 #. type: textblock
16895 #: ../fish/guestfish.pod:478
16896 msgid ""
16897 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
16898 "opening disk images supplied on the command line for write.  To open a disk "
16899 "image read-only you have to do I<-a image --ro>."
16900 msgstr ""
16901
16902 #. type: textblock
16903 #: ../fish/guestfish.pod:482
16904 msgid ""
16905 "This matters: If you accidentally open a live VM disk image writable then "
16906 "you will cause irreversible disk corruption."
16907 msgstr ""
16908
16909 #. type: textblock
16910 #: ../fish/guestfish.pod:485
16911 msgid ""
16912 "In a future libguestfs we intend to change the default the other way.  Disk "
16913 "images will be opened read-only.  You will have to either specify "
16914 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
16915 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
16916 "access for disk images specified by those other command line options."
16917 msgstr ""
16918
16919 #. type: textblock
16920 #: ../fish/guestfish.pod:492
16921 msgid ""
16922 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
16923 "which does nothing (it is already the default).  However it is highly "
16924 "recommended that you use this option to indicate that you need write access, "
16925 "and prepare your scripts for the day when this option will be required for "
16926 "write access."
16927 msgstr ""
16928
16929 #. type: textblock
16930 #: ../fish/guestfish.pod:498
16931 msgid ""
16932 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
16933 "other libguestfs program apart from guestfish and guestmount."
16934 msgstr ""
16935
16936 #. type: =head1
16937 #: ../fish/guestfish.pod:501
16938 msgid "QUOTING"
16939 msgstr ""
16940
16941 #. type: textblock
16942 #: ../fish/guestfish.pod:503
16943 msgid ""
16944 "You can quote ordinary parameters using either single or double quotes.  For "
16945 "example:"
16946 msgstr ""
16947
16948 #. type: verbatim
16949 #: ../fish/guestfish.pod:506
16950 #, no-wrap
16951 msgid ""
16952 " add \"file with a space.img\"\n"
16953 "\n"
16954 msgstr ""
16955
16956 #. type: verbatim
16957 #: ../fish/guestfish.pod:508
16958 #, no-wrap
16959 msgid ""
16960 " rm '/file name'\n"
16961 "\n"
16962 msgstr ""
16963
16964 #. type: verbatim
16965 #: ../fish/guestfish.pod:510
16966 #, no-wrap
16967 msgid ""
16968 " rm '/\"'\n"
16969 "\n"
16970 msgstr ""
16971
16972 #. type: textblock
16973 #: ../fish/guestfish.pod:512
16974 msgid ""
16975 "A few commands require a list of strings to be passed.  For these, use a "
16976 "whitespace-separated list, enclosed in quotes.  Strings containing "
16977 "whitespace to be passed through must be enclosed in single quotes.  A "
16978 "literal single quote must be escaped with a backslash."
16979 msgstr ""
16980
16981 #. type: verbatim
16982 #: ../fish/guestfish.pod:517
16983 #, no-wrap
16984 msgid ""
16985 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16986 " command \"/bin/echo 'foo      bar'\"\n"
16987 " command \"/bin/echo \\'foo\\'\"\n"
16988 "\n"
16989 msgstr ""
16990
16991 #. type: =head2
16992 #: ../fish/guestfish.pod:521
16993 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
16994 msgstr ""
16995
16996 #. type: textblock
16997 #: ../fish/guestfish.pod:523
16998 msgid ""
16999 "In double-quoted arguments (only) use backslash to insert special characters:"
17000 msgstr ""
17001
17002 #. type: =item
17003 #: ../fish/guestfish.pod:528
17004 msgid "C<\\a>"
17005 msgstr ""
17006
17007 #. type: textblock
17008 #: ../fish/guestfish.pod:530
17009 msgid "Alert (bell) character."
17010 msgstr ""
17011
17012 #. type: =item
17013 #: ../fish/guestfish.pod:532
17014 msgid "C<\\b>"
17015 msgstr ""
17016
17017 #. type: textblock
17018 #: ../fish/guestfish.pod:534
17019 msgid "Backspace character."
17020 msgstr ""
17021
17022 #. type: =item
17023 #: ../fish/guestfish.pod:536
17024 msgid "C<\\f>"
17025 msgstr ""
17026
17027 #. type: textblock
17028 #: ../fish/guestfish.pod:538
17029 msgid "Form feed character."
17030 msgstr ""
17031
17032 #. type: =item
17033 #: ../fish/guestfish.pod:540
17034 msgid "C<\\n>"
17035 msgstr ""
17036
17037 #. type: textblock
17038 #: ../fish/guestfish.pod:542
17039 msgid "Newline character."
17040 msgstr ""
17041
17042 #. type: =item
17043 #: ../fish/guestfish.pod:544
17044 msgid "C<\\r>"
17045 msgstr ""
17046
17047 #. type: textblock
17048 #: ../fish/guestfish.pod:546
17049 msgid "Carriage return character."
17050 msgstr ""
17051
17052 #. type: =item
17053 #: ../fish/guestfish.pod:548
17054 msgid "C<\\t>"
17055 msgstr ""
17056
17057 #. type: textblock
17058 #: ../fish/guestfish.pod:550
17059 msgid "Horizontal tab character."
17060 msgstr ""
17061
17062 #. type: =item
17063 #: ../fish/guestfish.pod:552
17064 msgid "C<\\v>"
17065 msgstr ""
17066
17067 #. type: textblock
17068 #: ../fish/guestfish.pod:554
17069 msgid "Vertical tab character."
17070 msgstr ""
17071
17072 #. type: =item
17073 #: ../fish/guestfish.pod:556
17074 msgid "C<\\\">"
17075 msgstr ""
17076
17077 #. type: textblock
17078 #: ../fish/guestfish.pod:558
17079 msgid "A literal double quote character."
17080 msgstr ""
17081
17082 #. type: =item
17083 #: ../fish/guestfish.pod:560
17084 msgid "C<\\ooo>"
17085 msgstr ""
17086
17087 #. type: textblock
17088 #: ../fish/guestfish.pod:562
17089 msgid ""
17090 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
17091 "(unlike C)."
17092 msgstr ""
17093
17094 #. type: =item
17095 #: ../fish/guestfish.pod:565
17096 msgid "C<\\xhh>"
17097 msgstr ""
17098
17099 #. type: textblock
17100 #: ../fish/guestfish.pod:567
17101 msgid ""
17102 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
17103 msgstr ""
17104
17105 #. type: textblock
17106 #: ../fish/guestfish.pod:570
17107 msgid ""
17108 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
17109 "strings."
17110 msgstr ""
17111
17112 #. type: =item
17113 #: ../fish/guestfish.pod:573
17114 msgid "C<\\\\>"
17115 msgstr ""
17116
17117 #. type: textblock
17118 #: ../fish/guestfish.pod:575
17119 msgid "A literal backslash character."
17120 msgstr ""
17121
17122 #. type: =head1
17123 #: ../fish/guestfish.pod:579
17124 msgid "OPTIONAL ARGUMENTS"
17125 msgstr ""
17126
17127 #. type: textblock
17128 #: ../fish/guestfish.pod:581
17129 msgid ""
17130 "Some commands take optional arguments.  These arguments appear in this "
17131 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17132 msgstr ""
17133
17134 #. type: verbatim
17135 #: ../fish/guestfish.pod:585
17136 #, no-wrap
17137 msgid ""
17138 " add-drive-opts filename\n"
17139 "\n"
17140 msgstr ""
17141
17142 #. type: verbatim
17143 #: ../fish/guestfish.pod:587
17144 #, no-wrap
17145 msgid ""
17146 " add-drive-opts filename readonly:true\n"
17147 "\n"
17148 msgstr ""
17149
17150 #. type: verbatim
17151 #: ../fish/guestfish.pod:589
17152 #, no-wrap
17153 msgid ""
17154 " add-drive-opts filename format:qcow2 readonly:false\n"
17155 "\n"
17156 msgstr ""
17157
17158 #. type: textblock
17159 #: ../fish/guestfish.pod:591
17160 msgid ""
17161 "Each optional argument can appear at most once.  All optional arguments must "
17162 "appear after the required ones."
17163 msgstr ""
17164
17165 #. type: =head1
17166 #: ../fish/guestfish.pod:594
17167 msgid "NUMBERS"
17168 msgstr ""
17169
17170 #. type: textblock
17171 #: ../fish/guestfish.pod:596
17172 msgid ""
17173 "This section applies to all commands which can take integers as parameters."
17174 msgstr ""
17175
17176 #. type: =head2
17177 #: ../fish/guestfish.pod:599
17178 msgid "SIZE SUFFIX"
17179 msgstr ""
17180
17181 #. type: textblock
17182 #: ../fish/guestfish.pod:601
17183 msgid ""
17184 "When the command takes a parameter measured in bytes, you can use one of the "
17185 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17186 msgstr ""
17187
17188 #. type: =item
17189 #: ../fish/guestfish.pod:607
17190 msgid "B<k> or B<K> or B<KiB>"
17191 msgstr ""
17192
17193 #. type: textblock
17194 #: ../fish/guestfish.pod:609
17195 msgid "The size in kilobytes (multiplied by 1024)."
17196 msgstr ""
17197
17198 #. type: =item
17199 #: ../fish/guestfish.pod:611
17200 msgid "B<KB>"
17201 msgstr ""
17202
17203 #. type: textblock
17204 #: ../fish/guestfish.pod:613
17205 msgid "The size in SI 1000 byte units."
17206 msgstr ""
17207
17208 #. type: =item
17209 #: ../fish/guestfish.pod:615
17210 msgid "B<M> or B<MiB>"
17211 msgstr ""
17212
17213 #. type: textblock
17214 #: ../fish/guestfish.pod:617
17215 msgid "The size in megabytes (multiplied by 1048576)."
17216 msgstr ""
17217
17218 #. type: =item
17219 #: ../fish/guestfish.pod:619
17220 msgid "B<MB>"
17221 msgstr ""
17222
17223 #. type: textblock
17224 #: ../fish/guestfish.pod:621
17225 msgid "The size in SI 1000000 byte units."
17226 msgstr ""
17227
17228 #. type: =item
17229 #: ../fish/guestfish.pod:623
17230 msgid "B<G> or B<GiB>"
17231 msgstr ""
17232
17233 #. type: textblock
17234 #: ../fish/guestfish.pod:625
17235 msgid "The size in gigabytes (multiplied by 2**30)."
17236 msgstr ""
17237
17238 #. type: =item
17239 #: ../fish/guestfish.pod:627
17240 msgid "B<GB>"
17241 msgstr ""
17242
17243 #. type: textblock
17244 #: ../fish/guestfish.pod:629
17245 msgid "The size in SI 10**9 byte units."
17246 msgstr ""
17247
17248 #. type: =item
17249 #: ../fish/guestfish.pod:631
17250 msgid "B<T> or B<TiB>"
17251 msgstr ""
17252
17253 #. type: textblock
17254 #: ../fish/guestfish.pod:633
17255 msgid "The size in terabytes (multiplied by 2**40)."
17256 msgstr ""
17257
17258 #. type: =item
17259 #: ../fish/guestfish.pod:635
17260 msgid "B<TB>"
17261 msgstr ""
17262
17263 #. type: textblock
17264 #: ../fish/guestfish.pod:637
17265 msgid "The size in SI 10**12 byte units."
17266 msgstr ""
17267
17268 #. type: =item
17269 #: ../fish/guestfish.pod:639
17270 msgid "B<P> or B<PiB>"
17271 msgstr ""
17272
17273 #. type: textblock
17274 #: ../fish/guestfish.pod:641
17275 msgid "The size in petabytes (multiplied by 2**50)."
17276 msgstr ""
17277
17278 #. type: =item
17279 #: ../fish/guestfish.pod:643
17280 msgid "B<PB>"
17281 msgstr ""
17282
17283 #. type: textblock
17284 #: ../fish/guestfish.pod:645
17285 msgid "The size in SI 10**15 byte units."
17286 msgstr ""
17287
17288 #. type: =item
17289 #: ../fish/guestfish.pod:647
17290 msgid "B<E> or B<EiB>"
17291 msgstr ""
17292
17293 #. type: textblock
17294 #: ../fish/guestfish.pod:649
17295 msgid "The size in exabytes (multiplied by 2**60)."
17296 msgstr ""
17297
17298 #. type: =item
17299 #: ../fish/guestfish.pod:651
17300 msgid "B<EB>"
17301 msgstr ""
17302
17303 #. type: textblock
17304 #: ../fish/guestfish.pod:653
17305 msgid "The size in SI 10**18 byte units."
17306 msgstr ""
17307
17308 #. type: =item
17309 #: ../fish/guestfish.pod:655
17310 msgid "B<Z> or B<ZiB>"
17311 msgstr ""
17312
17313 #. type: textblock
17314 #: ../fish/guestfish.pod:657
17315 msgid "The size in zettabytes (multiplied by 2**70)."
17316 msgstr ""
17317
17318 #. type: =item
17319 #: ../fish/guestfish.pod:659
17320 msgid "B<ZB>"
17321 msgstr ""
17322
17323 #. type: textblock
17324 #: ../fish/guestfish.pod:661
17325 msgid "The size in SI 10**21 byte units."
17326 msgstr ""
17327
17328 #. type: =item
17329 #: ../fish/guestfish.pod:663
17330 msgid "B<Y> or B<YiB>"
17331 msgstr ""
17332
17333 #. type: textblock
17334 #: ../fish/guestfish.pod:665
17335 msgid "The size in yottabytes (multiplied by 2**80)."
17336 msgstr ""
17337
17338 #. type: =item
17339 #: ../fish/guestfish.pod:667
17340 msgid "B<YB>"
17341 msgstr ""
17342
17343 #. type: textblock
17344 #: ../fish/guestfish.pod:669
17345 msgid "The size in SI 10**24 byte units."
17346 msgstr ""
17347
17348 #. type: verbatim
17349 #: ../fish/guestfish.pod:675
17350 #, no-wrap
17351 msgid ""
17352 " truncate-size /file 1G\n"
17353 "\n"
17354 msgstr ""
17355
17356 #. type: textblock
17357 #: ../fish/guestfish.pod:677
17358 msgid "would truncate the file to 1 gigabyte."
17359 msgstr ""
17360
17361 #. type: textblock
17362 #: ../fish/guestfish.pod:679
17363 msgid ""
17364 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
17365 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
17366 "suffix will probably not do what you expect."
17367 msgstr ""
17368
17369 #. type: =head2
17370 #: ../fish/guestfish.pod:683
17371 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17372 msgstr ""
17373
17374 #. type: textblock
17375 #: ../fish/guestfish.pod:685
17376 msgid ""
17377 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17378 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17379 msgstr ""
17380
17381 #. type: verbatim
17382 #: ../fish/guestfish.pod:688
17383 #, no-wrap
17384 msgid ""
17385 " 1234      decimal number 1234\n"
17386 " 02322     octal number, equivalent to decimal 1234\n"
17387 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17388 "\n"
17389 msgstr ""
17390
17391 #. type: textblock
17392 #: ../fish/guestfish.pod:692
17393 msgid ""
17394 "When using the C<chmod> command, you almost always want to specify an octal "
17395 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17396 "L<chmod(1)> program):"
17397 msgstr ""
17398
17399 #. type: verbatim
17400 #: ../fish/guestfish.pod:696
17401 #, no-wrap
17402 msgid ""
17403 " chmod 0777 /public  # OK\n"
17404 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17405 "\n"
17406 msgstr ""
17407
17408 #. type: textblock
17409 #: ../fish/guestfish.pod:699
17410 msgid ""
17411 "Commands that return numbers usually print them in decimal, but some "
17412 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17413 "octal, preceeded by C<0>)."
17414 msgstr ""
17415
17416 #. type: =head1
17417 #: ../fish/guestfish.pod:703
17418 msgid "WILDCARDS AND GLOBBING"
17419 msgstr ""
17420
17421 #. type: textblock
17422 #: ../fish/guestfish.pod:705
17423 msgid ""
17424 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17425 "(globbing) by default.  So for example the following will not do what you "
17426 "expect:"
17427 msgstr ""
17428
17429 #. type: verbatim
17430 #: ../fish/guestfish.pod:709
17431 #, no-wrap
17432 msgid ""
17433 " rm-rf /home/*\n"
17434 "\n"
17435 msgstr ""
17436
17437 #. type: textblock
17438 #: ../fish/guestfish.pod:711
17439 msgid ""
17440 "Assuming you don't have a directory called literally C</home/*> then the "
17441 "above command will return an error."
17442 msgstr ""
17443
17444 #. type: textblock
17445 #: ../fish/guestfish.pod:714
17446 msgid "To perform wildcard expansion, use the C<glob> command."
17447 msgstr ""
17448
17449 #. type: verbatim
17450 #: ../fish/guestfish.pod:716
17451 #, no-wrap
17452 msgid ""
17453 " glob rm-rf /home/*\n"
17454 "\n"
17455 msgstr ""
17456
17457 #. type: textblock
17458 #: ../fish/guestfish.pod:718
17459 msgid ""
17460 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17461 "many times), equivalent to:"
17462 msgstr ""
17463
17464 #. type: verbatim
17465 #: ../fish/guestfish.pod:721
17466 #, no-wrap
17467 msgid ""
17468 " rm-rf /home/jim\n"
17469 " rm-rf /home/joe\n"
17470 " rm-rf /home/mary\n"
17471 "\n"
17472 msgstr ""
17473
17474 #. type: textblock
17475 #: ../fish/guestfish.pod:725
17476 msgid "C<glob> only works on simple guest paths and not on device names."
17477 msgstr ""
17478
17479 #. type: textblock
17480 #: ../fish/guestfish.pod:727
17481 msgid ""
17482 "If you have several parameters, each containing a wildcard, then glob will "
17483 "perform a Cartesian product."
17484 msgstr ""
17485
17486 #. type: =head1
17487 #: ../fish/guestfish.pod:730
17488 msgid "COMMENTS"
17489 msgstr ""
17490
17491 #. type: textblock
17492 #: ../fish/guestfish.pod:732
17493 msgid ""
17494 "Any line which starts with a I<#> character is treated as a comment and "
17495 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17496 "a command.  For example:"
17497 msgstr ""
17498
17499 #. type: verbatim
17500 #: ../fish/guestfish.pod:736
17501 #, no-wrap
17502 msgid ""
17503 " # this is a comment\n"
17504 "         # this is a comment\n"
17505 " foo # NOT a comment\n"
17506 "\n"
17507 msgstr ""
17508
17509 #. type: textblock
17510 #: ../fish/guestfish.pod:740
17511 msgid "Blank lines are also ignored."
17512 msgstr ""
17513
17514 #. type: =head1
17515 #: ../fish/guestfish.pod:742
17516 msgid "RUNNING COMMANDS LOCALLY"
17517 msgstr ""
17518
17519 #. type: textblock
17520 #: ../fish/guestfish.pod:744
17521 msgid ""
17522 "Any line which starts with a I<!> character is treated as a command sent to "
17523 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17524 msgstr ""
17525
17526 #. type: verbatim
17527 #: ../fish/guestfish.pod:748
17528 #, no-wrap
17529 msgid ""
17530 " !mkdir local\n"
17531 " tgz-out /remote local/remote-data.tar.gz\n"
17532 "\n"
17533 msgstr ""
17534
17535 #. type: textblock
17536 #: ../fish/guestfish.pod:751
17537 msgid ""
17538 "will create a directory C<local> on the host, and then export the contents "
17539 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17540 "(See C<tgz-out>)."
17541 msgstr ""
17542
17543 #. type: textblock
17544 #: ../fish/guestfish.pod:755
17545 msgid ""
17546 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17547 "effect, due to the way that subprocesses work in Unix."
17548 msgstr ""
17549
17550 #. type: =head2
17551 #: ../fish/guestfish.pod:758
17552 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17553 msgstr ""
17554
17555 #. type: textblock
17556 #: ../fish/guestfish.pod:760
17557 msgid ""
17558 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
17559 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
17560 "and executed as guestfish commands."
17561 msgstr ""
17562
17563 #. type: textblock
17564 #: ../fish/guestfish.pod:764
17565 msgid ""
17566 "Thus you can use shell script to construct arbitrary guestfish commands "
17567 "which are then parsed by guestfish."
17568 msgstr ""
17569
17570 #. type: textblock
17571 #: ../fish/guestfish.pod:767
17572 msgid ""
17573 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
17574 "through C</foo.100>) using guestfish commands alone.  However this is simple "
17575 "if we use a shell script to create the guestfish commands for us:"
17576 msgstr ""
17577
17578 #. type: verbatim
17579 #: ../fish/guestfish.pod:772
17580 #, no-wrap
17581 msgid ""
17582 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
17583 "\n"
17584 msgstr ""
17585
17586 #. type: textblock
17587 #: ../fish/guestfish.pod:774
17588 msgid "or with names like C</foo.001>:"
17589 msgstr ""
17590
17591 #. type: verbatim
17592 #: ../fish/guestfish.pod:776
17593 #, no-wrap
17594 msgid ""
17595 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
17596 "\n"
17597 msgstr ""
17598
17599 #. type: textblock
17600 #: ../fish/guestfish.pod:778
17601 msgid ""
17602 "When using guestfish interactively it can be helpful to just run the shell "
17603 "script first (ie. remove the initial C<E<lt>> character so it is just an "
17604 "ordinary I<!> local command), see what guestfish commands it would run, and "
17605 "when you are happy with those prepend the C<E<lt>> character to run the "
17606 "guestfish commands for real."
17607 msgstr ""
17608
17609 #. type: =head1
17610 #: ../fish/guestfish.pod:784
17611 msgid "PIPES"
17612 msgstr ""
17613
17614 #. type: textblock
17615 #: ../fish/guestfish.pod:786
17616 msgid ""
17617 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17618 "command (a guestfish command) to the second command (any host command).  For "
17619 "example:"
17620 msgstr ""
17621
17622 #. type: verbatim
17623 #: ../fish/guestfish.pod:790
17624 #, no-wrap
17625 msgid ""
17626 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17627 "\n"
17628 msgstr ""
17629
17630 #. type: textblock
17631 #: ../fish/guestfish.pod:792
17632 msgid ""
17633 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17634 "program).  The above command would list all accounts in the guest filesystem "
17635 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17636 msgstr ""
17637
17638 #. type: verbatim
17639 #: ../fish/guestfish.pod:797
17640 #, no-wrap
17641 msgid ""
17642 " hexdump /bin/ls | head\n"
17643 " list-devices | tail -1\n"
17644 " tgz-out / - | tar ztf -\n"
17645 "\n"
17646 msgstr ""
17647
17648 #. type: textblock
17649 #: ../fish/guestfish.pod:801
17650 msgid ""
17651 "The space before the pipe symbol is required, any space after the pipe "
17652 "symbol is optional.  Everything after the pipe symbol is just passed "
17653 "straight to the host shell, so it can contain redirections, globs and "
17654 "anything else that makes sense on the host side."
17655 msgstr ""
17656
17657 #. type: textblock
17658 #: ../fish/guestfish.pod:806
17659 msgid ""
17660 "To use a literal argument which begins with a pipe symbol, you have to quote "
17661 "it, eg:"
17662 msgstr ""
17663
17664 #. type: verbatim
17665 #: ../fish/guestfish.pod:809
17666 #, no-wrap
17667 msgid ""
17668 " echo \"|\"\n"
17669 "\n"
17670 msgstr ""
17671
17672 #. type: =head1
17673 #: ../fish/guestfish.pod:811
17674 msgid "HOME DIRECTORIES"
17675 msgstr ""
17676
17677 #. type: textblock
17678 #: ../fish/guestfish.pod:813
17679 msgid ""
17680 "If a parameter starts with the character C<~> then the tilde may be expanded "
17681 "as a home directory path (either C<~> for the current user's home directory, "
17682 "or C<~user> for another user)."
17683 msgstr ""
17684
17685 #. type: textblock
17686 #: ../fish/guestfish.pod:817
17687 msgid ""
17688 "Note that home directory expansion happens for users known I<on the host>, "
17689 "not in the guest filesystem."
17690 msgstr ""
17691
17692 #. type: textblock
17693 #: ../fish/guestfish.pod:820
17694 msgid ""
17695 "To use a literal argument which begins with a tilde, you have to quote it, "
17696 "eg:"
17697 msgstr ""
17698
17699 #. type: verbatim
17700 #: ../fish/guestfish.pod:823
17701 #, no-wrap
17702 msgid ""
17703 " echo \"~\"\n"
17704 "\n"
17705 msgstr ""
17706
17707 #. type: =head2
17708 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
17709 msgid "ENCRYPTED DISKS"
17710 msgstr ""
17711
17712 #. type: textblock
17713 #: ../fish/guestfish.pod:827
17714 msgid ""
17715 "Libguestfs has some support for Linux guests encrypted according to the "
17716 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17717 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
17718 "LUKS is supported."
17719 msgstr ""
17720
17721 #. type: textblock
17722 #: ../fish/guestfish.pod:832
17723 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17724 msgstr ""
17725
17726 #. type: verbatim
17727 #: ../fish/guestfish.pod:834
17728 #, no-wrap
17729 msgid ""
17730 " ><fs> vfs-type /dev/sda2\n"
17731 " crypto_LUKS\n"
17732 "\n"
17733 msgstr ""
17734
17735 #. type: textblock
17736 #: ../fish/guestfish.pod:837
17737 msgid ""
17738 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17739 "device called C</dev/mapper/luksdev>."
17740 msgstr ""
17741
17742 #. type: verbatim
17743 #: ../fish/guestfish.pod:840
17744 #, no-wrap
17745 msgid ""
17746 " ><fs> luks-open /dev/sda2 luksdev\n"
17747 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17748 "\n"
17749 msgstr ""
17750
17751 #. type: textblock
17752 #: ../fish/guestfish.pod:843
17753 msgid ""
17754 "Finally you have to tell LVM to scan for volume groups on the newly created "
17755 "mapper device:"
17756 msgstr ""
17757
17758 #. type: verbatim
17759 #: ../fish/guestfish.pod:846
17760 #, no-wrap
17761 msgid ""
17762 " vgscan\n"
17763 " vg-activate-all true\n"
17764 "\n"
17765 msgstr ""
17766
17767 #. type: textblock
17768 #: ../fish/guestfish.pod:849
17769 msgid "The logical volume(s) can now be mounted in the usual way."
17770 msgstr ""
17771
17772 #. type: textblock
17773 #: ../fish/guestfish.pod:851
17774 msgid ""
17775 "Before closing a LUKS device you must unmount any logical volumes on it and "
17776 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17777 "one.  Then you can close the mapper device:"
17778 msgstr ""
17779
17780 #. type: verbatim
17781 #: ../fish/guestfish.pod:855
17782 #, no-wrap
17783 msgid ""
17784 " vg-activate false /dev/VG\n"
17785 " luks-close /dev/mapper/luksdev\n"
17786 "\n"
17787 msgstr ""
17788
17789 #. type: textblock
17790 #: ../fish/guestfish.pod:860
17791 msgid ""
17792 "If a path is prefixed with C<win:> then you can use Windows-style drive "
17793 "letters and paths (with some limitations).  The following commands are "
17794 "equivalent:"
17795 msgstr ""
17796
17797 #. type: verbatim
17798 #: ../fish/guestfish.pod:864
17799 #, no-wrap
17800 msgid ""
17801 " file /WINDOWS/system32/config/system.LOG\n"
17802 "\n"
17803 msgstr ""
17804
17805 #. type: verbatim
17806 #: ../fish/guestfish.pod:866
17807 #, no-wrap
17808 msgid ""
17809 " file win:\\windows\\system32\\config\\system.log\n"
17810 "\n"
17811 msgstr ""
17812
17813 #. type: verbatim
17814 #: ../fish/guestfish.pod:868
17815 #, no-wrap
17816 msgid ""
17817 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
17818 "\n"
17819 msgstr ""
17820
17821 #. type: textblock
17822 #: ../fish/guestfish.pod:870
17823 msgid ""
17824 "The parameter is rewritten \"behind the scenes\" by looking up the position "
17825 "where the drive is mounted, prepending that to the path, changing all "
17826 "backslash characters to forward slash, then resolving the result using L</"
17827 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
17828 "the parameter might be rewritten like this:"
17829 msgstr ""
17830
17831 #. type: verbatim
17832 #: ../fish/guestfish.pod:876
17833 #, no-wrap
17834 msgid ""
17835 " win:e:\\foo\\bar => /e/FOO/bar\n"
17836 "\n"
17837 msgstr ""
17838
17839 #. type: textblock
17840 #: ../fish/guestfish.pod:878
17841 msgid "This only works in argument positions that expect a path."
17842 msgstr ""
17843
17844 #. type: =head1
17845 #: ../fish/guestfish.pod:880
17846 msgid "UPLOADING AND DOWNLOADING FILES"
17847 msgstr ""
17848
17849 #. type: textblock
17850 #: ../fish/guestfish.pod:882
17851 msgid ""
17852 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17853 "others which upload from or download to a local file, you can use the "
17854 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17855 msgstr ""
17856
17857 #. type: verbatim
17858 #: ../fish/guestfish.pod:886
17859 #, no-wrap
17860 msgid ""
17861 " upload - /foo\n"
17862 "\n"
17863 msgstr ""
17864
17865 #. type: textblock
17866 #: ../fish/guestfish.pod:888
17867 msgid ""
17868 "reads stdin and creates from that a file C</foo> in the disk image, and:"
17869 msgstr ""
17870
17871 #. type: verbatim
17872 #: ../fish/guestfish.pod:891
17873 #, no-wrap
17874 msgid ""
17875 " tar-out /etc - | tar tf -\n"
17876 "\n"
17877 msgstr ""
17878
17879 #. type: textblock
17880 #: ../fish/guestfish.pod:893
17881 msgid ""
17882 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17883 "command (see L</PIPES>)."
17884 msgstr ""
17885
17886 #. type: textblock
17887 #: ../fish/guestfish.pod:896
17888 msgid ""
17889 "When using C<-> to read from stdin, the input is read up to the end of "
17890 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17891 "some arbitrary end marker:"
17892 msgstr ""
17893
17894 #. type: verbatim
17895 #: ../fish/guestfish.pod:900
17896 #, no-wrap
17897 msgid ""
17898 " upload -<<END /foo\n"
17899 " input line 1\n"
17900 " input line 2\n"
17901 " input line 3\n"
17902 " END\n"
17903 "\n"
17904 msgstr ""
17905
17906 #. type: textblock
17907 #: ../fish/guestfish.pod:906
17908 msgid ""
17909 "Any string of characters can be used instead of C<END>.  The end marker must "
17910 "appear on a line of its own, without any preceeding or following characters "
17911 "(not even spaces)."
17912 msgstr ""
17913
17914 #. type: textblock
17915 #: ../fish/guestfish.pod:910
17916 msgid ""
17917 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17918 "upload local files (so-called \"FileIn\" parameters in the generator)."
17919 msgstr ""
17920
17921 #. type: =head1
17922 #: ../fish/guestfish.pod:913
17923 msgid "EXIT ON ERROR BEHAVIOUR"
17924 msgstr ""
17925
17926 #. type: textblock
17927 #: ../fish/guestfish.pod:915
17928 msgid ""
17929 "By default, guestfish will ignore any errors when in interactive mode (ie. "
17930 "taking commands from a human over a tty), and will exit on the first error "
17931 "in non-interactive mode (scripts, commands given on the command line)."
17932 msgstr ""
17933
17934 #. type: textblock
17935 #: ../fish/guestfish.pod:920
17936 msgid ""
17937 "If you prefix a command with a I<-> character, then that command will not "
17938 "cause guestfish to exit, even if that (one) command returns an error."
17939 msgstr ""
17940
17941 #. type: =head1
17942 #: ../fish/guestfish.pod:924
17943 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17944 msgstr ""
17945
17946 #. type: textblock
17947 #: ../fish/guestfish.pod:926
17948 msgid ""
17949 "Guestfish can be remote-controlled over a socket.  This is useful "
17950 "particularly in shell scripts where you want to make several different "
17951 "changes to a filesystem, but you don't want the overhead of starting up a "
17952 "guestfish process each time."
17953 msgstr ""
17954
17955 #. type: textblock
17956 #: ../fish/guestfish.pod:931
17957 msgid "Start a guestfish server process using:"
17958 msgstr ""
17959
17960 #. type: verbatim
17961 #: ../fish/guestfish.pod:933
17962 #, no-wrap
17963 msgid ""
17964 " eval \"`guestfish --listen`\"\n"
17965 "\n"
17966 msgstr ""
17967
17968 #. type: textblock
17969 #: ../fish/guestfish.pod:935
17970 msgid "and then send it commands by doing:"
17971 msgstr ""
17972
17973 #. type: verbatim
17974 #: ../fish/guestfish.pod:937
17975 #, no-wrap
17976 msgid ""
17977 " guestfish --remote cmd [...]\n"
17978 "\n"
17979 msgstr ""
17980
17981 #. type: textblock
17982 #: ../fish/guestfish.pod:939
17983 msgid "To cause the server to exit, send it the exit command:"
17984 msgstr ""
17985
17986 #. type: textblock
17987 #: ../fish/guestfish.pod:943
17988 msgid ""
17989 "Note that the server will normally exit if there is an error in a command.  "
17990 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17991 "BEHAVIOUR>."
17992 msgstr ""
17993
17994 #. type: =head2
17995 #: ../fish/guestfish.pod:947
17996 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
17997 msgstr ""
17998
17999 #. type: textblock
18000 #: ../fish/guestfish.pod:949
18001 msgid ""
18002 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18003 "is how the I<--remote> option knows where to send the commands.  You can "
18004 "have several guestfish listener processes running using:"
18005 msgstr ""
18006
18007 #. type: verbatim
18008 #: ../fish/guestfish.pod:953
18009 #, no-wrap
18010 msgid ""
18011 " eval \"`guestfish --listen`\"\n"
18012 " pid1=$GUESTFISH_PID\n"
18013 " eval \"`guestfish --listen`\"\n"
18014 " pid2=$GUESTFISH_PID\n"
18015 " ...\n"
18016 " guestfish --remote=$pid1 cmd\n"
18017 " guestfish --remote=$pid2 cmd\n"
18018 "\n"
18019 msgstr ""
18020
18021 #. type: =head2
18022 #: ../fish/guestfish.pod:961
18023 msgid "REMOTE CONTROL AND CSH"
18024 msgstr ""
18025
18026 #. type: textblock
18027 #: ../fish/guestfish.pod:963
18028 msgid ""
18029 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18030 "option:"
18031 msgstr ""
18032
18033 #. type: verbatim
18034 #: ../fish/guestfish.pod:966
18035 #, no-wrap
18036 msgid ""
18037 " eval \"`guestfish --listen --csh`\"\n"
18038 "\n"
18039 msgstr ""
18040
18041 #. type: =head2
18042 #: ../fish/guestfish.pod:968
18043 msgid "REMOTE CONTROL DETAILS"
18044 msgstr ""
18045
18046 #. type: textblock
18047 #: ../fish/guestfish.pod:970
18048 msgid ""
18049 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18050 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18051 "and C<$PID> is the process ID of the server."
18052 msgstr ""
18053
18054 #. type: textblock
18055 #: ../fish/guestfish.pod:974
18056 msgid "Guestfish client and server versions must match exactly."
18057 msgstr ""
18058
18059 #. type: =head1
18060 #: ../fish/guestfish.pod:976
18061 msgid "PREPARED DISK IMAGES"
18062 msgstr ""
18063
18064 #. type: textblock
18065 #: ../fish/guestfish.pod:978
18066 msgid ""
18067 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18068 "preformatted disk images that guestfish can make for you to save typing.  "
18069 "This is particularly useful for testing purposes.  This option is used "
18070 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18071 "can be mixed with I<-a>)."
18072 msgstr ""
18073
18074 #. type: textblock
18075 #: ../fish/guestfish.pod:984
18076 msgid ""
18077 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18078 "the second and so on.  Existing files in the current directory are "
18079 "I<overwritten>."
18080 msgstr ""
18081
18082 #. type: textblock
18083 #: ../fish/guestfish.pod:988
18084 msgid ""
18085 "The type briefly describes how the disk should be sized, partitioned, how "
18086 "filesystem(s) should be created, and how content should be added.  "
18087 "Optionally the type can be followed by extra parameters, separated by C<:> "
18088 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18089 "allocated disk, containing a single partition, with the partition formatted "
18090 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18091 "disk instead."
18092 msgstr ""
18093
18094 #. type: textblock
18095 #: ../fish/guestfish.pod:996
18096 msgid "To list the available types and any extra parameters they take, run:"
18097 msgstr ""
18098
18099 #. type: textblock
18100 #: ../fish/guestfish.pod:1000
18101 msgid ""
18102 "Note that the prepared filesystem is not mounted.  You would usually have to "
18103 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18104 msgstr ""
18105
18106 #. type: textblock
18107 #: ../fish/guestfish.pod:1004
18108 msgid ""
18109 "If any I<-N> or I<--new> options are given, the guest is automatically "
18110 "launched."
18111 msgstr ""
18112
18113 #. type: textblock
18114 #: ../fish/guestfish.pod:1009
18115 msgid "Create a 100MB disk with an ext4-formatted partition:"
18116 msgstr ""
18117
18118 #. type: verbatim
18119 #: ../fish/guestfish.pod:1011
18120 #, no-wrap
18121 msgid ""
18122 " guestfish -N fs:ext4\n"
18123 "\n"
18124 msgstr ""
18125
18126 #. type: textblock
18127 #: ../fish/guestfish.pod:1013
18128 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18129 msgstr ""
18130
18131 #. type: verbatim
18132 #: ../fish/guestfish.pod:1015
18133 #, no-wrap
18134 msgid ""
18135 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18136 "\n"
18137 msgstr ""
18138
18139 #. type: textblock
18140 #: ../fish/guestfish.pod:1017
18141 msgid "Create a blank 200MB disk:"
18142 msgstr ""
18143
18144 #. type: verbatim
18145 #: ../fish/guestfish.pod:1019
18146 #, no-wrap
18147 msgid ""
18148 " guestfish -N disk:200M\n"
18149 "\n"
18150 msgstr ""
18151
18152 #. type: =head1
18153 #: ../fish/guestfish.pod:1021
18154 msgid "PROGRESS BARS"
18155 msgstr ""
18156
18157 #. type: textblock
18158 #: ../fish/guestfish.pod:1023
18159 msgid ""
18160 "Some (not all) long-running commands send progress notification messages as "
18161 "they are running.  Guestfish turns these messages into progress bars."
18162 msgstr ""
18163
18164 #. type: textblock
18165 #: ../fish/guestfish.pod:1027
18166 msgid ""
18167 "When a command that supports progress bars takes longer than two seconds to "
18168 "run, and if progress bars are enabled, then you will see one appearing below "
18169 "the command:"
18170 msgstr ""
18171
18172 #. type: verbatim
18173 #: ../fish/guestfish.pod:1031
18174 #, no-wrap
18175 msgid ""
18176 " ><fs> copy-size /large-file /another-file 2048M\n"
18177 " / 10% [#####-----------------------------------------] 00:30\n"
18178 "\n"
18179 msgstr ""
18180
18181 #. type: textblock
18182 #: ../fish/guestfish.pod:1034
18183 msgid ""
18184 "The spinner on the left hand side moves round once for every progress "
18185 "notification received from the backend.  This is a (reasonably) golden "
18186 "assurance that the command is \"doing something\" even if the progress bar "
18187 "is not moving, because the command is able to send the progress "
18188 "notifications.  When the bar reaches 100% and the command finishes, the "
18189 "spinner disappears."
18190 msgstr ""
18191
18192 #. type: textblock
18193 #: ../fish/guestfish.pod:1041
18194 msgid ""
18195 "Progress bars are enabled by default when guestfish is used interactively.  "
18196 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18197 "and you can disable them completely using I<--no-progress-bars>."
18198 msgstr ""
18199
18200 #. type: =head1
18201 #: ../fish/guestfish.pod:1046
18202 msgid "GUESTFISH COMMANDS"
18203 msgstr ""
18204
18205 #. type: textblock
18206 #: ../fish/guestfish.pod:1048
18207 msgid ""
18208 "The commands in this section are guestfish convenience commands, in other "
18209 "words, they are not part of the L<guestfs(3)> API."
18210 msgstr ""
18211
18212 #. type: =head2
18213 #: ../fish/guestfish.pod:1051
18214 msgid "help"
18215 msgstr ""
18216
18217 #. type: verbatim
18218 #: ../fish/guestfish.pod:1053
18219 #, no-wrap
18220 msgid ""
18221 " help\n"
18222 " help cmd\n"
18223 "\n"
18224 msgstr ""
18225
18226 #. type: textblock
18227 #: ../fish/guestfish.pod:1056
18228 msgid "Without any parameter, this provides general help."
18229 msgstr ""
18230
18231 #. type: textblock
18232 #: ../fish/guestfish.pod:1058
18233 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18234 msgstr ""
18235
18236 #. type: =head2
18237 #: ../fish/guestfish.pod:1060
18238 msgid "quit | exit"
18239 msgstr ""
18240
18241 #. type: textblock
18242 #: ../fish/guestfish.pod:1062
18243 msgid "This exits guestfish.  You can also use C<^D> key."
18244 msgstr ""
18245
18246 #. type: textblock
18247 #: ../fish/guestfish.pod:1064
18248 msgid "@FISH_COMMANDS@"
18249 msgstr ""
18250
18251 #. type: =head1
18252 #: ../fish/guestfish.pod:1066
18253 msgid "COMMANDS"
18254 msgstr ""
18255
18256 #. type: textblock
18257 #: ../fish/guestfish.pod:1068 ../src/guestfs.pod:1474
18258 msgid "@ACTIONS@"
18259 msgstr ""
18260
18261 #. type: =head1
18262 #: ../fish/guestfish.pod:1070 ../test-tool/libguestfs-test-tool.pod:77
18263 msgid "EXIT CODE"
18264 msgstr ""
18265
18266 #. type: textblock
18267 #: ../fish/guestfish.pod:1072
18268 msgid ""
18269 "guestfish returns 0 if the commands completed without error, or 1 if there "
18270 "was an error."
18271 msgstr ""
18272
18273 #. type: =item
18274 #: ../fish/guestfish.pod:1079
18275 msgid "EDITOR"
18276 msgstr ""
18277
18278 #. type: textblock
18279 #: ../fish/guestfish.pod:1081
18280 msgid ""
18281 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18282 "C<vi>."
18283 msgstr ""
18284
18285 #. type: =item
18286 #: ../fish/guestfish.pod:1084 ../src/guestfs.pod:2969
18287 msgid "FEBOOTSTRAP_KERNEL"
18288 msgstr ""
18289
18290 #. type: =item
18291 #: ../fish/guestfish.pod:1086 ../src/guestfs.pod:2971
18292 msgid "FEBOOTSTRAP_MODULES"
18293 msgstr ""
18294
18295 #. type: textblock
18296 #: ../fish/guestfish.pod:1088 ../src/guestfs.pod:2973
18297 msgid ""
18298 "These two environment variables allow the kernel that libguestfs uses in the "
18299 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
18300 "most recent host kernel is chosen.  For more information about kernel "
18301 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
18302 "available in febootstrap E<ge> 3.8."
18303 msgstr ""
18304
18305 #. type: =item
18306 #: ../fish/guestfish.pod:1094
18307 msgid "GUESTFISH_DISPLAY_IMAGE"
18308 msgstr ""
18309
18310 #. type: textblock
18311 #: ../fish/guestfish.pod:1096
18312 msgid ""
18313 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
18314 "If not set, it uses L<display(1)>."
18315 msgstr ""
18316
18317 #. type: =item
18318 #: ../fish/guestfish.pod:1099
18319 msgid "GUESTFISH_PID"
18320 msgstr ""
18321
18322 #. type: textblock
18323 #: ../fish/guestfish.pod:1101
18324 msgid ""
18325 "Used with the I<--remote> option to specify the remote guestfish process to "
18326 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18327 msgstr ""
18328
18329 #. type: =item
18330 #: ../fish/guestfish.pod:1105
18331 msgid "HEXEDITOR"
18332 msgstr ""
18333
18334 #. type: textblock
18335 #: ../fish/guestfish.pod:1107
18336 msgid ""
18337 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18338 "not specified, the external L<hexedit(1)> program is used."
18339 msgstr ""
18340
18341 #. type: =item
18342 #: ../fish/guestfish.pod:1111
18343 msgid "HOME"
18344 msgstr ""
18345
18346 #. type: textblock
18347 #: ../fish/guestfish.pod:1113
18348 msgid ""
18349 "If compiled with GNU readline support, various files in the home directory "
18350 "can be used.  See L</FILES>."
18351 msgstr ""
18352
18353 #. type: =item
18354 #: ../fish/guestfish.pod:1116 ../src/guestfs.pod:2979
18355 msgid "LIBGUESTFS_APPEND"
18356 msgstr ""
18357
18358 #. type: textblock
18359 #: ../fish/guestfish.pod:1118 ../src/guestfs.pod:2981
18360 msgid "Pass additional options to the guest kernel."
18361 msgstr ""
18362
18363 #. type: =item
18364 #: ../fish/guestfish.pod:1120 ../src/guestfs.pod:2983
18365 msgid "LIBGUESTFS_DEBUG"
18366 msgstr ""
18367
18368 #. type: textblock
18369 #: ../fish/guestfish.pod:1122
18370 msgid ""
18371 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18372 "effect as using the B<-v> option."
18373 msgstr ""
18374
18375 #. type: =item
18376 #: ../fish/guestfish.pod:1125 ../src/guestfs.pod:2988
18377 msgid "LIBGUESTFS_MEMSIZE"
18378 msgstr ""
18379
18380 #. type: textblock
18381 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2990
18382 msgid ""
18383 "Set the memory allocated to the qemu process, in megabytes.  For example:"
18384 msgstr ""
18385
18386 #. type: verbatim
18387 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:2993
18388 #, no-wrap
18389 msgid ""
18390 " LIBGUESTFS_MEMSIZE=700\n"
18391 "\n"
18392 msgstr ""
18393
18394 #. type: =item
18395 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:2995
18396 msgid "LIBGUESTFS_PATH"
18397 msgstr ""
18398
18399 #. type: textblock
18400 #: ../fish/guestfish.pod:1134
18401 msgid ""
18402 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18403 "the discussion of paths in L<guestfs(3)>."
18404 msgstr ""
18405
18406 #. type: =item
18407 #: ../fish/guestfish.pod:1137 ../src/guestfs.pod:3000
18408 msgid "LIBGUESTFS_QEMU"
18409 msgstr ""
18410
18411 #. type: textblock
18412 #: ../fish/guestfish.pod:1139 ../src/guestfs.pod:3002
18413 msgid ""
18414 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
18415 "which was found at compile time by the configure script is used."
18416 msgstr ""
18417
18418 #. type: =item
18419 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3008
18420 msgid "LIBGUESTFS_TRACE"
18421 msgstr ""
18422
18423 #. type: textblock
18424 #: ../fish/guestfish.pod:1145
18425 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18426 msgstr ""
18427
18428 #. type: =item
18429 #: ../fish/guestfish.pod:1147
18430 msgid "PAGER"
18431 msgstr ""
18432
18433 #. type: textblock
18434 #: ../fish/guestfish.pod:1149
18435 msgid ""
18436 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18437 "C<more>."
18438 msgstr ""
18439
18440 #. type: =item
18441 #: ../fish/guestfish.pod:1152 ../src/guestfs.pod:3013
18442 msgid "TMPDIR"
18443 msgstr ""
18444
18445 #. type: textblock
18446 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3015
18447 msgid ""
18448 "Location of temporary directory, defaults to C</tmp> except for the cached "
18449 "supermin appliance which defaults to C</var/tmp>."
18450 msgstr ""
18451
18452 #. type: textblock
18453 #: ../fish/guestfish.pod:1157 ../src/guestfs.pod:3018
18454 msgid ""
18455 "If libguestfs was compiled to use the supermin appliance then the real "
18456 "appliance is cached in this directory, shared between all handles belonging "
18457 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
18458 "use in case C</var/tmp> is not large enough."
18459 msgstr ""
18460
18461 #. type: =head1
18462 #: ../fish/guestfish.pod:1165 ../fuse/guestmount.pod:288
18463 #: ../rescue/virt-rescue.pod:269
18464 msgid "FILES"
18465 msgstr ""
18466
18467 #. type: =item
18468 #: ../fish/guestfish.pod:1169 ../fuse/guestmount.pod:292
18469 #: ../rescue/virt-rescue.pod:273
18470 msgid "$HOME/.libguestfs-tools.rc"
18471 msgstr ""
18472
18473 #. type: =item
18474 #: ../fish/guestfish.pod:1171 ../fuse/guestmount.pod:294
18475 #: ../rescue/virt-rescue.pod:275
18476 msgid "/etc/libguestfs-tools.conf"
18477 msgstr ""
18478
18479 #. type: textblock
18480 #: ../fish/guestfish.pod:1173 ../fuse/guestmount.pod:296
18481 #: ../rescue/virt-rescue.pod:277
18482 msgid ""
18483 "This configuration file controls the default read-only or read-write mode "
18484 "(I<--ro> or I<--rw>)."
18485 msgstr ""
18486
18487 #. type: textblock
18488 #: ../fish/guestfish.pod:1176
18489 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
18490 msgstr ""
18491
18492 #. type: =item
18493 #: ../fish/guestfish.pod:1178
18494 msgid "$HOME/.guestfish"
18495 msgstr ""
18496
18497 #. type: textblock
18498 #: ../fish/guestfish.pod:1180
18499 msgid ""
18500 "If compiled with GNU readline support, then the command history is saved in "
18501 "this file."
18502 msgstr ""
18503
18504 #. type: =item
18505 #: ../fish/guestfish.pod:1183
18506 msgid "$HOME/.inputrc"
18507 msgstr ""
18508
18509 #. type: =item
18510 #: ../fish/guestfish.pod:1185
18511 msgid "/etc/inputrc"
18512 msgstr ""
18513
18514 #. type: textblock
18515 #: ../fish/guestfish.pod:1187
18516 msgid ""
18517 "If compiled with GNU readline support, then these files can be used to "
18518 "configure readline.  For further information, please see L<readline(3)/"
18519 "INITIALIZATION FILE>."
18520 msgstr ""
18521
18522 #. type: textblock
18523 #: ../fish/guestfish.pod:1191
18524 msgid "To write rules which only apply to guestfish, use:"
18525 msgstr ""
18526
18527 #. type: verbatim
18528 #: ../fish/guestfish.pod:1193
18529 #, no-wrap
18530 msgid ""
18531 " $if guestfish\n"
18532 " ...\n"
18533 " $endif\n"
18534 "\n"
18535 msgstr ""
18536
18537 #. type: textblock
18538 #: ../fish/guestfish.pod:1197
18539 msgid ""
18540 "Variables that you can set in inputrc that change the behaviour of guestfish "
18541 "in useful ways include:"
18542 msgstr ""
18543
18544 #. type: =item
18545 #: ../fish/guestfish.pod:1202
18546 msgid "completion-ignore-case (default: on)"
18547 msgstr ""
18548
18549 #. type: textblock
18550 #: ../fish/guestfish.pod:1204
18551 msgid ""
18552 "By default, guestfish will ignore case when tab-completing paths on the "
18553 "disk.  Use:"
18554 msgstr ""
18555
18556 #. type: verbatim
18557 #: ../fish/guestfish.pod:1207
18558 #, no-wrap
18559 msgid ""
18560 " set completion-ignore-case off\n"
18561 "\n"
18562 msgstr ""
18563
18564 #. type: textblock
18565 #: ../fish/guestfish.pod:1209
18566 msgid "to make guestfish case sensitive."
18567 msgstr ""
18568
18569 #. type: =item
18570 #: ../fish/guestfish.pod:1213
18571 msgid "test1.img"
18572 msgstr ""
18573
18574 #. type: =item
18575 #: ../fish/guestfish.pod:1215
18576 msgid "test2.img (etc)"
18577 msgstr ""
18578
18579 #. type: textblock
18580 #: ../fish/guestfish.pod:1217
18581 msgid ""
18582 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
18583 "will be created in the file C<test1.img> in the current directory.  The "
18584 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
18585 "the same name will be overwritten."
18586 msgstr ""
18587
18588 #. type: textblock
18589 #: ../fish/guestfish.pod:1226
18590 msgid ""
18591 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
18592 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
18593 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
18594 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
18595 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
18596 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
18597 msgstr ""
18598
18599 #. type: textblock
18600 #: ../fish/guestfish.pod:1255 ../src/guestfs.pod:3104
18601 #: ../test-tool/libguestfs-test-tool.pod:99
18602 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
18603 msgstr ""
18604
18605 #. type: textblock
18606 #: ../fish/virt-copy-in.pod:5
18607 msgid ""
18608 "virt-copy-in - Copy files and directories into a virtual machine disk image."
18609 msgstr ""
18610
18611 #. type: verbatim
18612 #: ../fish/virt-copy-in.pod:9
18613 #, no-wrap
18614 msgid ""
18615 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
18616 "\n"
18617 msgstr ""
18618
18619 #. type: verbatim
18620 #: ../fish/virt-copy-in.pod:11
18621 #, no-wrap
18622 msgid ""
18623 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
18624 "\n"
18625 msgstr ""
18626
18627 #. type: textblock
18628 #: ../fish/virt-copy-in.pod:15
18629 msgid ""
18630 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
18631 "causing disk corruption.  The virtual machine must be shut down before you "
18632 "use this command."
18633 msgstr ""
18634
18635 #. type: textblock
18636 #: ../fish/virt-copy-in.pod:21
18637 msgid ""
18638 "C<virt-copy-in> copies files and directories from the local disk into a "
18639 "virtual machine disk image or named libvirt domain."
18640 msgstr ""
18641
18642 #. type: textblock
18643 #: ../fish/virt-copy-in.pod:24
18644 msgid ""
18645 "You can give one of more filenames and directories on the command line.  "
18646 "Directories are copied in recursively.  The final parameter must be the "
18647 "destination directory in the disk image which must be an absolute path "
18648 "starting with a C</> character."
18649 msgstr ""
18650
18651 #. type: verbatim
18652 #: ../fish/virt-copy-in.pod:33
18653 #, no-wrap
18654 msgid ""
18655 " virt-copy-in -d MyGuest resolv.conf /etc\n"
18656 "\n"
18657 msgstr ""
18658
18659 #. type: textblock
18660 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
18661 msgid "Upload a home directory to a guest:"
18662 msgstr ""
18663
18664 #. type: verbatim
18665 #: ../fish/virt-copy-in.pod:37
18666 #, no-wrap
18667 msgid ""
18668 " virt-copy-in -d MyGuest skel /home\n"
18669 "\n"
18670 msgstr ""
18671
18672 #. type: =head1
18673 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
18674 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
18675 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
18676 msgstr ""
18677
18678 #. type: textblock
18679 #: ../fish/virt-copy-in.pod:41
18680 msgid ""
18681 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18682 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
18683 "are probably better off using guestfish directly."
18684 msgstr ""
18685
18686 #. type: textblock
18687 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
18688 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
18689 msgid ""
18690 "Since the shell script just passes options straight to guestfish, read "
18691 "L<guestfish(1)> to see the full list of options."
18692 msgstr ""
18693
18694 #. type: textblock
18695 #: ../fish/virt-copy-in.pod:52
18696 msgid ""
18697 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
18698 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18699 msgstr ""
18700
18701 #. type: textblock
18702 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
18703 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
18704 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
18705 msgstr ""
18706
18707 #. type: textblock
18708 #: ../fish/virt-copy-out.pod:5
18709 msgid ""
18710 "virt-copy-out - Copy files and directories out of a virtual machine disk "
18711 "image."
18712 msgstr ""
18713
18714 #. type: verbatim
18715 #: ../fish/virt-copy-out.pod:9
18716 #, no-wrap
18717 msgid ""
18718 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
18719 "\n"
18720 msgstr ""
18721
18722 #. type: verbatim
18723 #: ../fish/virt-copy-out.pod:11
18724 #, no-wrap
18725 msgid ""
18726 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
18727 "\n"
18728 msgstr ""
18729
18730 #. type: textblock
18731 #: ../fish/virt-copy-out.pod:15
18732 msgid ""
18733 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
18734 "image or named libvirt domain."
18735 msgstr ""
18736
18737 #. type: textblock
18738 #: ../fish/virt-copy-out.pod:18
18739 msgid ""
18740 "You can give one of more filenames and directories on the command line.  "
18741 "Directories are copied out recursively."
18742 msgstr ""
18743
18744 #. type: textblock
18745 #: ../fish/virt-copy-out.pod:23
18746 msgid "Download the home directories from a virtual machine:"
18747 msgstr ""
18748
18749 #. type: verbatim
18750 #: ../fish/virt-copy-out.pod:25
18751 #, no-wrap
18752 msgid ""
18753 " mkdir homes\n"
18754 " virt-copy-out -d MyGuest /home homes\n"
18755 "\n"
18756 msgstr ""
18757
18758 #. type: textblock
18759 #: ../fish/virt-copy-out.pod:30
18760 msgid ""
18761 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18762 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
18763 "are probably better off using guestfish directly."
18764 msgstr ""
18765
18766 #. type: textblock
18767 #: ../fish/virt-copy-out.pod:41
18768 msgid ""
18769 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
18770 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18771 msgstr ""
18772
18773 #. type: textblock
18774 #: ../fish/virt-tar-in.pod:5
18775 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
18776 msgstr ""
18777
18778 #. type: verbatim
18779 #: ../fish/virt-tar-in.pod:9
18780 #, no-wrap
18781 msgid ""
18782 " virt-tar-in -a disk.img data.tar /destination\n"
18783 "\n"
18784 msgstr ""
18785
18786 #. type: verbatim
18787 #: ../fish/virt-tar-in.pod:11
18788 #, no-wrap
18789 msgid ""
18790 " virt-tar-in -d domain data.tar /destination\n"
18791 "\n"
18792 msgstr ""
18793
18794 #. type: verbatim
18795 #: ../fish/virt-tar-in.pod:13
18796 #, no-wrap
18797 msgid ""
18798 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
18799 "\n"
18800 msgstr ""
18801
18802 #. type: textblock
18803 #: ../fish/virt-tar-in.pod:17
18804 msgid ""
18805 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
18806 "causing disk corruption.  The virtual machine must be shut down before you "
18807 "use this command."
18808 msgstr ""
18809
18810 #. type: textblock
18811 #: ../fish/virt-tar-in.pod:23
18812 msgid ""
18813 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
18814 "image or named libvirt domain."
18815 msgstr ""
18816
18817 #. type: textblock
18818 #: ../fish/virt-tar-in.pod:26
18819 msgid ""
18820 "The first parameter is the tar file.  Use C<-> to read the tar file from "
18821 "standard input.  The second parameter is the absolute target directory to "
18822 "unpack into."
18823 msgstr ""
18824
18825 #. type: verbatim
18826 #: ../fish/virt-tar-in.pod:34
18827 #, no-wrap
18828 msgid ""
18829 " virt-tar-in -d MyGuest homes.tar /home\n"
18830 "\n"
18831 msgstr ""
18832
18833 #. type: textblock
18834 #: ../fish/virt-tar-in.pod:38
18835 msgid ""
18836 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18837 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
18838 "probably better off using guestfish directly."
18839 msgstr ""
18840
18841 #. type: textblock
18842 #: ../fish/virt-tar-in.pod:49
18843 msgid ""
18844 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18845 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
18846 "org/>."
18847 msgstr ""
18848
18849 #. type: textblock
18850 #: ../fish/virt-tar-out.pod:5
18851 msgid ""
18852 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
18853 msgstr ""
18854
18855 #. type: verbatim
18856 #: ../fish/virt-tar-out.pod:9
18857 #, no-wrap
18858 msgid ""
18859 " virt-tar-out -a disk.img /dir files.tar\n"
18860 "\n"
18861 msgstr ""
18862
18863 #. type: verbatim
18864 #: ../fish/virt-tar-out.pod:11
18865 #, no-wrap
18866 msgid ""
18867 " virt-tar-out -d domain /dir files.tar\n"
18868 "\n"
18869 msgstr ""
18870
18871 #. type: verbatim
18872 #: ../fish/virt-tar-out.pod:13
18873 #, no-wrap
18874 msgid ""
18875 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
18876 "\n"
18877 msgstr ""
18878
18879 #. type: textblock
18880 #: ../fish/virt-tar-out.pod:17
18881 msgid ""
18882 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
18883 msgstr ""
18884
18885 #. type: textblock
18886 #: ../fish/virt-tar-out.pod:20
18887 msgid ""
18888 "The first parameter is the absolute path of the virtual machine directory.  "
18889 "The second parameter is the tar file to write.  Use C<-> to write to "
18890 "standard output."
18891 msgstr ""
18892
18893 #. type: textblock
18894 #: ../fish/virt-tar-out.pod:26
18895 msgid "Download the home directories from a guest:"
18896 msgstr ""
18897
18898 #. type: verbatim
18899 #: ../fish/virt-tar-out.pod:28
18900 #, no-wrap
18901 msgid ""
18902 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
18903 "\n"
18904 msgstr ""
18905
18906 #. type: textblock
18907 #: ../fish/virt-tar-out.pod:32
18908 msgid ""
18909 "This command is just a simple shell script wrapper around the L<guestfish(1)"
18910 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
18911 "are probably better off using guestfish directly."
18912 msgstr ""
18913
18914 #. type: textblock
18915 #: ../fish/virt-tar-out.pod:43
18916 msgid ""
18917 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18918 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
18919 msgstr ""
18920
18921 #. type: textblock
18922 #: ../fuse/guestmount.pod:5
18923 msgid ""
18924 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
18925 msgstr ""
18926
18927 #. type: verbatim
18928 #: ../fuse/guestmount.pod:9
18929 #, no-wrap
18930 msgid ""
18931 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
18932 "\n"
18933 msgstr ""
18934
18935 #. type: verbatim
18936 #: ../fuse/guestmount.pod:11
18937 #, no-wrap
18938 msgid ""
18939 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
18940 "\n"
18941 msgstr ""
18942
18943 #. type: verbatim
18944 #: ../fuse/guestmount.pod:13
18945 #, no-wrap
18946 msgid ""
18947 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
18948 "\n"
18949 msgstr ""
18950
18951 #. type: textblock
18952 #: ../fuse/guestmount.pod:17
18953 msgid ""
18954 "You must I<not> use C<guestmount> in read-write mode on live virtual "
18955 "machines.  If you do this, you risk disk corruption in the VM."
18956 msgstr ""
18957
18958 #. type: textblock
18959 #: ../fuse/guestmount.pod:22
18960 msgid ""
18961 "The guestmount program can be used to mount virtual machine filesystems and "
18962 "other disk images on the host.  It uses libguestfs for access to the guest "
18963 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
18964 "a mountable device."
18965 msgstr ""
18966
18967 #. type: textblock
18968 #: ../fuse/guestmount.pod:27
18969 msgid ""
18970 "Along with other options, you have to give at least one device (I<-a> "
18971 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
18972 "option) or use the I<-i> inspection option.  How this works is better "
18973 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
18974 "below."
18975 msgstr ""
18976
18977 #. type: textblock
18978 #: ../fuse/guestmount.pod:33
18979 msgid ""
18980 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
18981 "by you, and the filesystem will not be visible to any other users unless you "
18982 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
18983 "the filesystem, use the C<fusermount -u> command."
18984 msgstr ""
18985
18986 #. type: textblock
18987 #: ../fuse/guestmount.pod:41
18988 msgid ""
18989 "For a typical Windows guest which has its main filesystem on the first "
18990 "partition:"
18991 msgstr ""
18992
18993 #. type: verbatim
18994 #: ../fuse/guestmount.pod:44
18995 #, no-wrap
18996 msgid ""
18997 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
18998 "\n"
18999 msgstr ""
19000
19001 #. type: textblock
19002 #: ../fuse/guestmount.pod:46
19003 msgid ""
19004 "For a typical Linux guest which has a /boot filesystem on the first "
19005 "partition, and the root filesystem on a logical volume:"
19006 msgstr ""
19007
19008 #. type: verbatim
19009 #: ../fuse/guestmount.pod:49
19010 #, no-wrap
19011 msgid ""
19012 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19013 "\n"
19014 msgstr ""
19015
19016 #. type: textblock
19017 #: ../fuse/guestmount.pod:51
19018 msgid "To get libguestfs to detect guest mountpoints for you:"
19019 msgstr ""
19020
19021 #. type: verbatim
19022 #: ../fuse/guestmount.pod:53
19023 #, no-wrap
19024 msgid ""
19025 " guestmount -a guest.img -i --ro /mnt\n"
19026 "\n"
19027 msgstr ""
19028
19029 #. type: textblock
19030 #: ../fuse/guestmount.pod:55
19031 msgid "For a libvirt guest called \"Guest\" you could do:"
19032 msgstr ""
19033
19034 #. type: verbatim
19035 #: ../fuse/guestmount.pod:57
19036 #, no-wrap
19037 msgid ""
19038 " guestmount -d Guest -i --ro /mnt\n"
19039 "\n"
19040 msgstr ""
19041
19042 #. type: textblock
19043 #: ../fuse/guestmount.pod:59
19044 msgid ""
19045 "If you don't know what filesystems are contained in a guest or disk image, "
19046 "use L<virt-filesystems(1)> first:"
19047 msgstr ""
19048
19049 #. type: verbatim
19050 #: ../fuse/guestmount.pod:62
19051 #, no-wrap
19052 msgid ""
19053 " virt-filesystems MyGuest\n"
19054 "\n"
19055 msgstr ""
19056
19057 #. type: textblock
19058 #: ../fuse/guestmount.pod:64
19059 msgid ""
19060 "If you want to trace the libguestfs calls but without excessive debugging "
19061 "information, we recommend:"
19062 msgstr ""
19063
19064 #. type: verbatim
19065 #: ../fuse/guestmount.pod:67
19066 #, no-wrap
19067 msgid ""
19068 " guestmount [...] --trace /mnt\n"
19069 "\n"
19070 msgstr ""
19071
19072 #. type: textblock
19073 #: ../fuse/guestmount.pod:69
19074 msgid "If you want to debug the program, we recommend:"
19075 msgstr ""
19076
19077 #. type: verbatim
19078 #: ../fuse/guestmount.pod:71
19079 #, no-wrap
19080 msgid ""
19081 " guestmount [...] --trace --verbose /mnt\n"
19082 "\n"
19083 msgstr ""
19084
19085 #. type: =head1
19086 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
19087 #: ../resize/virt-resize.pod:486
19088 msgid "NOTES"
19089 msgstr ""
19090
19091 #. type: =head2
19092 #: ../fuse/guestmount.pod:75
19093 msgid "Other users cannot see the filesystem by default"
19094 msgstr ""
19095
19096 #. type: textblock
19097 #: ../fuse/guestmount.pod:77
19098 msgid ""
19099 "If you mount a filesystem as one user (eg. root), then other users will not "
19100 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
19101 "option when mounting:"
19102 msgstr ""
19103
19104 #. type: verbatim
19105 #: ../fuse/guestmount.pod:81
19106 #, no-wrap
19107 msgid ""
19108 " sudo guestmount [...] -o allow_other /mnt\n"
19109 "\n"
19110 msgstr ""
19111
19112 #. type: textblock
19113 #: ../fuse/guestmount.pod:91
19114 msgid "Add a block device or virtual machine image."
19115 msgstr ""
19116
19117 #. type: =item
19118 #: ../fuse/guestmount.pod:114
19119 msgid "B<--dir-cache-timeout N>"
19120 msgstr ""
19121
19122 #. type: textblock
19123 #: ../fuse/guestmount.pod:116
19124 msgid ""
19125 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
19126 "seconds.  The readdir cache [actually, there are several semi-independent "
19127 "caches] is populated after a readdir(2) call with the stat and extended "
19128 "attributes of the files in the directory, in anticipation that they will be "
19129 "requested soon after."
19130 msgstr ""
19131
19132 #. type: textblock
19133 #: ../fuse/guestmount.pod:122
19134 msgid ""
19135 "There is also a different attribute cache implemented by FUSE (see the FUSE "
19136 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
19137 "requests, only cache existing ones."
19138 msgstr ""
19139
19140 #. type: textblock
19141 #: ../fuse/guestmount.pod:142
19142 msgid ""
19143 "If you have untrusted raw-format guest disk images, you should use this "
19144 "option to specify the disk format.  This avoids a possible security problem "
19145 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
19146 "guestfs_add_drive_opts>."
19147 msgstr ""
19148
19149 #. type: =item
19150 #: ../fuse/guestmount.pod:147
19151 msgid "B<--fuse-help>"
19152 msgstr ""
19153
19154 #. type: textblock
19155 #: ../fuse/guestmount.pod:149
19156 msgid "Display help on special FUSE options (see I<-o> below)."
19157 msgstr ""
19158
19159 #. type: textblock
19160 #: ../fuse/guestmount.pod:153
19161 msgid "Display brief help and exit."
19162 msgstr ""
19163
19164 #. type: textblock
19165 #: ../fuse/guestmount.pod:177
19166 msgid ""
19167 "Mount the named partition or logical volume on the given mountpoint B<in the "
19168 "guest> (this has nothing to do with mountpoints in the host)."
19169 msgstr ""
19170
19171 #. type: textblock
19172 #: ../fuse/guestmount.pod:180
19173 msgid ""
19174 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
19175 "something on C</>."
19176 msgstr ""
19177
19178 #. type: textblock
19179 #: ../fuse/guestmount.pod:197
19180 msgid ""
19181 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
19182 "unmounted.  If you specify this option, then we don't attempt to sync the "
19183 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
19184 msgstr ""
19185
19186 #. type: =item
19187 #: ../fuse/guestmount.pod:202
19188 msgid "B<-o option>"
19189 msgstr ""
19190
19191 #. type: =item
19192 #: ../fuse/guestmount.pod:204
19193 msgid "B<--option option>"
19194 msgstr ""
19195
19196 #. type: textblock
19197 #: ../fuse/guestmount.pod:206
19198 msgid "Pass extra options to FUSE."
19199 msgstr ""
19200
19201 #. type: textblock
19202 #: ../fuse/guestmount.pod:208
19203 msgid ""
19204 "To get a list of all the extra options supported by FUSE, use the command "
19205 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
19206 "of them are a good idea."
19207 msgstr ""
19208
19209 #. type: verbatim
19210 #: ../fuse/guestmount.pod:212
19211 #, no-wrap
19212 msgid ""
19213 " guestmount --fuse-help\n"
19214 "\n"
19215 msgstr ""
19216
19217 #. type: textblock
19218 #: ../fuse/guestmount.pod:214
19219 msgid "Some potentially useful FUSE options:"
19220 msgstr ""
19221
19222 #. type: =item
19223 #: ../fuse/guestmount.pod:218
19224 msgid "B<-o allow_other>"
19225 msgstr ""
19226
19227 #. type: textblock
19228 #: ../fuse/guestmount.pod:220
19229 msgid "Allow other users to see the filesystem."
19230 msgstr ""
19231
19232 #. type: =item
19233 #: ../fuse/guestmount.pod:222
19234 msgid "B<-o attr_timeout=N>"
19235 msgstr ""
19236
19237 #. type: textblock
19238 #: ../fuse/guestmount.pod:224
19239 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
19240 msgstr ""
19241
19242 #. type: =item
19243 #: ../fuse/guestmount.pod:226
19244 msgid "B<-o kernel_cache>"
19245 msgstr ""
19246
19247 #. type: textblock
19248 #: ../fuse/guestmount.pod:228
19249 msgid ""
19250 "Allow the kernel to cache files (reduces the number of reads that have to go "
19251 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
19252 "afford the extra memory usage."
19253 msgstr ""
19254
19255 #. type: =item
19256 #: ../fuse/guestmount.pod:232
19257 msgid "B<-o uid=N> B<-o gid=N>"
19258 msgstr ""
19259
19260 #. type: textblock
19261 #: ../fuse/guestmount.pod:234
19262 msgid ""
19263 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
19264 "the chosen values."
19265 msgstr ""
19266
19267 #. type: textblock
19268 #: ../fuse/guestmount.pod:243
19269 msgid ""
19270 "Add devices and mount everything read-only.  Also disallow writes and make "
19271 "the disk appear read-only to FUSE."
19272 msgstr ""
19273
19274 #. type: textblock
19275 #: ../fuse/guestmount.pod:246
19276 msgid ""
19277 "This is highly recommended if you are not going to edit the guest disk.  If "
19278 "the guest is running and this option is I<not> supplied, then there is a "
19279 "strong risk of disk corruption in the guest.  We try to prevent this from "
19280 "happening, but it is not always possible."
19281 msgstr ""
19282
19283 #. type: textblock
19284 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
19285 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19286 msgstr ""
19287
19288 #. type: textblock
19289 #: ../fuse/guestmount.pod:255
19290 msgid "Enable SELinux support for the guest."
19291 msgstr ""
19292
19293 #. type: textblock
19294 #: ../fuse/guestmount.pod:261
19295 msgid "Enable verbose messages from underlying libguestfs."
19296 msgstr ""
19297
19298 #. type: textblock
19299 #: ../fuse/guestmount.pod:267
19300 msgid "Display the program version and exit."
19301 msgstr ""
19302
19303 #. type: textblock
19304 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
19305 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
19306 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19307 msgstr ""
19308
19309 #. type: =item
19310 #: ../fuse/guestmount.pod:280
19311 msgid "B<--trace>"
19312 msgstr ""
19313
19314 #. type: textblock
19315 #: ../fuse/guestmount.pod:282
19316 msgid "Trace libguestfs calls and entry into each FUSE function."
19317 msgstr ""
19318
19319 #. type: textblock
19320 #: ../fuse/guestmount.pod:284
19321 msgid "This also stops the daemon from forking into the background."
19322 msgstr ""
19323
19324 #. type: textblock
19325 #: ../fuse/guestmount.pod:305
19326 msgid ""
19327 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
19328 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
19329 "net/>."
19330 msgstr ""
19331
19332 #. type: textblock
19333 #: ../fuse/guestmount.pod:320
19334 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
19335 msgstr ""
19336
19337 #. type: textblock
19338 #: ../inspector/virt-inspector.pod:5
19339 msgid ""
19340 "virt-inspector - Display operating system version and other information "
19341 "about a virtual machine"
19342 msgstr ""
19343
19344 #. type: verbatim
19345 #: ../inspector/virt-inspector.pod:9
19346 #, no-wrap
19347 msgid ""
19348 " virt-inspector [--options] -d domname\n"
19349 "\n"
19350 msgstr ""
19351
19352 #. type: verbatim
19353 #: ../inspector/virt-inspector.pod:11
19354 #, no-wrap
19355 msgid ""
19356 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
19357 "\n"
19358 msgstr ""
19359
19360 #. type: verbatim
19361 #: ../inspector/virt-inspector.pod:15
19362 #, no-wrap
19363 msgid ""
19364 " virt-inspector domname\n"
19365 "\n"
19366 msgstr ""
19367
19368 #. type: verbatim
19369 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
19370 #, no-wrap
19371 msgid ""
19372 " virt-inspector disk.img [disk.img ...]\n"
19373 "\n"
19374 msgstr ""
19375
19376 #. type: textblock
19377 #: ../inspector/virt-inspector.pod:21
19378 msgid ""
19379 "B<virt-inspector> examines a virtual machine or disk image and tries to "
19380 "determine the version of the operating system and other information about "
19381 "the virtual machine."
19382 msgstr ""
19383
19384 #. type: textblock
19385 #: ../inspector/virt-inspector.pod:25
19386 msgid "Virt-inspector produces XML output for feeding into other programs."
19387 msgstr ""
19388
19389 #. type: textblock
19390 #: ../inspector/virt-inspector.pod:27
19391 msgid ""
19392 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
19393 "the libvirt domain (see: C<virsh list --all>)."
19394 msgstr ""
19395
19396 #. type: textblock
19397 #: ../inspector/virt-inspector.pod:30
19398 msgid ""
19399 "You can also run virt-inspector directly on disk images from a single "
19400 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
19401 "has several block devices, in which case you should list several I<-a> "
19402 "options one after another, with the first corresponding to the guest's C</"
19403 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
19404 msgstr ""
19405
19406 #. type: textblock
19407 #: ../inspector/virt-inspector.pod:37
19408 msgid ""
19409 "You can also run virt-inspector on install disks, live CDs, bootable USB "
19410 "keys and similar."
19411 msgstr ""
19412
19413 #. type: textblock
19414 #: ../inspector/virt-inspector.pod:40
19415 msgid ""
19416 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
19417 "inspect several virtual machines, you have to run virt-inspector several "
19418 "times (for example, from a shell script for-loop)."
19419 msgstr ""
19420
19421 #. type: textblock
19422 #: ../inspector/virt-inspector.pod:45
19423 msgid ""
19424 "Because virt-inspector needs direct access to guest images, it won't "
19425 "normally work over remote libvirt connections."
19426 msgstr ""
19427
19428 #. type: textblock
19429 #: ../inspector/virt-inspector.pod:48
19430 msgid ""
19431 "All of the information available from virt-inspector is also available "
19432 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
19433 "The same information can also be fetched using guestfish or via libguestfs "
19434 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
19435 "WITH OTHER PROGRAMMING LANGUAGES>)."
19436 msgstr ""
19437
19438 #. type: textblock
19439 #: ../inspector/virt-inspector.pod:81
19440 msgid ""
19441 "Libvirt is only used if you specify a C<domname> on the command line.  If "
19442 "you specify guest block devices directly (I<-a>), then libvirt is not used "
19443 "at all."
19444 msgstr ""
19445
19446 #. type: textblock
19447 #: ../inspector/virt-inspector.pod:94
19448 msgid ""
19449 "When prompting for keys and passphrases, virt-inspector normally turns "
19450 "echoing off so you cannot see what you are typing.  If you are not worried "
19451 "about Tempest attacks and there is no one else in the room you can specify "
19452 "this flag to see what you are typing."
19453 msgstr ""
19454
19455 #. type: textblock
19456 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
19457 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
19458 #: ../tools/virt-win-reg.pl:144
19459 msgid ""
19460 "Specify the format of disk images given on the command line.  If this is "
19461 "omitted then the format is autodetected from the content of the disk image."
19462 msgstr ""
19463
19464 #. type: textblock
19465 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
19466 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
19467 #: ../tools/virt-win-reg.pl:148
19468 msgid ""
19469 "If disk images are requested from libvirt, then this program asks libvirt "
19470 "for this information.  In this case, the value of the format parameter is "
19471 "ignored."
19472 msgstr ""
19473
19474 #. type: textblock
19475 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
19476 #: ../resize/virt-resize.pod:400 ../tools/virt-list-filesystems.pl:101
19477 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
19478 #: ../tools/virt-win-reg.pl:152
19479 msgid ""
19480 "If working with untrusted raw-format guest disk images, you should ensure "
19481 "the format is always specified."
19482 msgstr ""
19483
19484 #. type: textblock
19485 #: ../inspector/virt-inspector.pod:139
19486 msgid "Previous versions of virt-inspector allowed you to write either:"
19487 msgstr ""
19488
19489 #. type: verbatim
19490 #: ../inspector/virt-inspector.pod:145
19491 #, no-wrap
19492 msgid ""
19493 " virt-inspector guestname\n"
19494 "\n"
19495 msgstr ""
19496
19497 #. type: =head1
19498 #: ../inspector/virt-inspector.pod:153
19499 msgid "XML FORMAT"
19500 msgstr ""
19501
19502 #. type: textblock
19503 #: ../inspector/virt-inspector.pod:155
19504 msgid ""
19505 "The virt-inspector XML is described precisely in a RELAX NG schema file "
19506 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
19507 "just an overview."
19508 msgstr ""
19509
19510 #. type: textblock
19511 #: ../inspector/virt-inspector.pod:159
19512 msgid ""
19513 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
19514 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
19515 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
19516 "which is vanishingly rare in real world VMs."
19517 msgstr ""
19518
19519 #. type: =head2
19520 #: ../inspector/virt-inspector.pod:164
19521 msgid "E<lt>operatingsystemE<gt>"
19522 msgstr ""
19523
19524 #. type: textblock
19525 #: ../inspector/virt-inspector.pod:166
19526 msgid ""
19527 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
19528 "describe the operating system, its architecture, the descriptive \"product "
19529 "name\" string, the type of OS and so on, as in this example:"
19530 msgstr ""
19531
19532 #. type: verbatim
19533 #: ../inspector/virt-inspector.pod:170
19534 #, no-wrap
19535 msgid ""
19536 " <operatingsystems>\n"
19537 "   <operatingsystem>\n"
19538 "     <root>/dev/sda2</root>\n"
19539 "     <name>windows</name>\n"
19540 "     <arch>i386</arch>\n"
19541 "     <distro>windows</distro>\n"
19542 "     <product_name>Windows 7 Enterprise</product_name>\n"
19543 "     <product_variant>Client</product_variant>\n"
19544 "     <major_version>6</major_version>\n"
19545 "     <minor_version>1</minor_version>\n"
19546 "     <windows_systemroot>/Windows</windows_systemroot>\n"
19547 "     <format>installed</format>\n"
19548 "\n"
19549 msgstr ""
19550
19551 #. type: textblock
19552 #: ../inspector/virt-inspector.pod:183
19553 msgid ""
19554 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
19555 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
19556 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
19557 "architecture.  The other fields are fairly self-explanatory, but because "
19558 "these fields are taken directly from the libguestfs inspection API you can "
19559 "find precise information from L<guestfs(3)/INSPECTION>."
19560 msgstr ""
19561
19562 #. type: textblock
19563 #: ../inspector/virt-inspector.pod:191
19564 msgid ""
19565 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
19566 "of view of libguestfs (block devices may have completely different names "
19567 "inside the VM itself)."
19568 msgstr ""
19569
19570 #. type: =head2
19571 #: ../inspector/virt-inspector.pod:195
19572 msgid "E<lt>mountpointsE<gt>"
19573 msgstr ""
19574
19575 #. type: textblock
19576 #: ../inspector/virt-inspector.pod:197
19577 msgid ""
19578 "Un*x-like guests typically have multiple filesystems which are mounted at "
19579 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
19580 "element which looks like this:"
19581 msgstr ""
19582
19583 #. type: verbatim
19584 #: ../inspector/virt-inspector.pod:201
19585 #, no-wrap
19586 msgid ""
19587 " <operatingsystems>\n"
19588 "   <operatingsystem>\n"
19589 "     ...\n"
19590 "     <mountpoints>\n"
19591 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
19592 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
19593 "     </mountpoints>\n"
19594 "\n"
19595 msgstr ""
19596
19597 #. type: textblock
19598 #: ../inspector/virt-inspector.pod:209
19599 msgid ""
19600 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
19601 "and may have completely different names inside the guest.  Only mountable "
19602 "filesystems appear in this list, not things like swap devices."
19603 msgstr ""
19604
19605 #. type: =head2
19606 #: ../inspector/virt-inspector.pod:214
19607 msgid "E<lt>filesystemsE<gt>"
19608 msgstr ""
19609
19610 #. type: textblock
19611 #: ../inspector/virt-inspector.pod:216
19612 msgid ""
19613 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
19614 "filesystems belonging to the guest, including swap and empty partitions.  "
19615 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
19616 "this OS or shared with this OS and other OSes)."
19617 msgstr ""
19618
19619 #. type: textblock
19620 #: ../inspector/virt-inspector.pod:222
19621 msgid "You might see something like this:"
19622 msgstr ""
19623
19624 #. type: verbatim
19625 #: ../inspector/virt-inspector.pod:224
19626 #, no-wrap
19627 msgid ""
19628 " <operatingsystems>\n"
19629 "   <operatingsystem>\n"
19630 "     ...\n"
19631 "     <filesystems>\n"
19632 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19633 "         <type>ext4</type>\n"
19634 "         <label>Fedora-13-x86_64</label>\n"
19635 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
19636 "       </filesystem>\n"
19637 "\n"
19638 msgstr ""
19639
19640 #. type: textblock
19641 #: ../inspector/virt-inspector.pod:234
19642 msgid ""
19643 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
19644 "the label, and the UUID."
19645 msgstr ""
19646
19647 #. type: =head2
19648 #: ../inspector/virt-inspector.pod:237
19649 msgid "E<lt>applicationsE<gt>"
19650 msgstr ""
19651
19652 #. type: textblock
19653 #: ../inspector/virt-inspector.pod:239
19654 msgid ""
19655 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
19656 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
19657 "machine."
19658 msgstr ""
19659
19660 #. type: textblock
19661 #: ../inspector/virt-inspector.pod:243
19662 msgid ""
19663 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
19664 "Typical values would be C<rpm> and C<deb>."
19665 msgstr ""
19666
19667 #. type: textblock
19668 #: ../inspector/virt-inspector.pod:246
19669 msgid ""
19670 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
19671 "Typical values include C<yum>, C<up2date> and C<apt>"
19672 msgstr ""
19673
19674 #. type: textblock
19675 #: ../inspector/virt-inspector.pod:249
19676 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
19677 msgstr ""
19678
19679 #. type: verbatim
19680 #: ../inspector/virt-inspector.pod:252
19681 #, no-wrap
19682 msgid ""
19683 " <operatingsystems>\n"
19684 "   <operatingsystem>\n"
19685 "     ...\n"
19686 "     <applications>\n"
19687 "       <application>\n"
19688 "         <name>coreutils</name>\n"
19689 "         <version>8.5</version>\n"
19690 "         <release>1</release>\n"
19691 "       </application>\n"
19692 "\n"
19693 msgstr ""
19694
19695 #. type: textblock
19696 #: ../inspector/virt-inspector.pod:262
19697 msgid ""
19698 "The version and release fields may not be available for some types guests.  "
19699 "Other fields are possible, see L<guestfs(3)/"
19700 "guestfs_inspect_list_applications>."
19701 msgstr ""
19702
19703 #. type: =head2
19704 #: ../inspector/virt-inspector.pod:266
19705 msgid "E<lt>drive_mappingsE<gt>"
19706 msgstr ""
19707
19708 #. type: textblock
19709 #: ../inspector/virt-inspector.pod:268
19710 msgid ""
19711 "For operating systems like Windows which use drive letters, virt-inspector "
19712 "is able to find out how drive letters map to filesystems."
19713 msgstr ""
19714
19715 #. type: verbatim
19716 #: ../inspector/virt-inspector.pod:272
19717 #, no-wrap
19718 msgid ""
19719 " <operatingsystems>\n"
19720 "   <operatingsystem>\n"
19721 "     ...\n"
19722 "     <drive_mappings>\n"
19723 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
19724 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
19725 "     </drive_mappings>\n"
19726 "\n"
19727 msgstr ""
19728
19729 #. type: textblock
19730 #: ../inspector/virt-inspector.pod:280
19731 msgid ""
19732 "In the example above, drive C maps to the filesystem on the second partition "
19733 "on the first disk, and drive E maps to the filesystem on the first partition "
19734 "on the second disk."
19735 msgstr ""
19736
19737 #. type: textblock
19738 #: ../inspector/virt-inspector.pod:284
19739 msgid ""
19740 "Note that this only covers permanent local filesystem mappings, not things "
19741 "like network shares.  Furthermore NTFS volume mount points may not be listed "
19742 "here."
19743 msgstr ""
19744
19745 #. type: =head2
19746 #: ../inspector/virt-inspector.pod:288
19747 msgid "E<lt>iconE<gt>"
19748 msgstr ""
19749
19750 #. type: textblock
19751 #: ../inspector/virt-inspector.pod:290
19752 msgid ""
19753 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
19754 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
19755 "very large and high quality."
19756 msgstr ""
19757
19758 #. type: verbatim
19759 #: ../inspector/virt-inspector.pod:294
19760 #, no-wrap
19761 msgid ""
19762 " <operatingsystems>\n"
19763 "   <operatingsystem>\n"
19764 "     ...\n"
19765 "     <icon>\n"
19766 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
19767 "       [... many lines of base64 data ...]\n"
19768 "     </icon>\n"
19769 "\n"
19770 msgstr ""
19771
19772 #. type: textblock
19773 #: ../inspector/virt-inspector.pod:302
19774 msgid ""
19775 "To display the icon, you have to extract it and convert the base64 data back "
19776 "to a binary file.  Use an XPath query or simply an editor to extract the "
19777 "data, then use the coreutils L<base64(1)> program to do the conversion back "
19778 "to a PNG file:"
19779 msgstr ""
19780
19781 #. type: verbatim
19782 #: ../inspector/virt-inspector.pod:307
19783 #, no-wrap
19784 msgid ""
19785 " base64 -i -d < icon.data > icon.png\n"
19786 "\n"
19787 msgstr ""
19788
19789 #. type: =head2
19790 #: ../inspector/virt-inspector.pod:309
19791 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
19792 msgstr ""
19793
19794 #. type: textblock
19795 #: ../inspector/virt-inspector.pod:311
19796 msgid ""
19797 "Virt-inspector can detect some operating system installers on install disks, "
19798 "live CDs, bootable USB keys and more."
19799 msgstr ""
19800
19801 #. type: textblock
19802 #: ../inspector/virt-inspector.pod:314
19803 msgid ""
19804 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
19805 "fields may be present to indicate a live CD, network installer, or one part "
19806 "of a multipart CD.  For example:"
19807 msgstr ""
19808
19809 #. type: verbatim
19810 #: ../inspector/virt-inspector.pod:318
19811 #, no-wrap
19812 msgid ""
19813 " <operatingsystems>\n"
19814 "   <operatingsystem>\n"
19815 "     <root>/dev/sda</root>\n"
19816 "     <name>linux</name>\n"
19817 "     <arch>i386</arch>\n"
19818 "     <distro>ubuntu</distro>\n"
19819 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
19820 "     <major_version>10</major_version>\n"
19821 "     <minor_version>10</minor_version>\n"
19822 "     <format>installer</format>\n"
19823 "     <live/>\n"
19824 "\n"
19825 msgstr ""
19826
19827 #. type: =head1
19828 #: ../inspector/virt-inspector.pod:330
19829 msgid "USING XPATH"
19830 msgstr ""
19831
19832 #. type: textblock
19833 #: ../inspector/virt-inspector.pod:332
19834 msgid ""
19835 "You can use the XPath query language, and/or the xpath tool, in order to "
19836 "select parts of the XML."
19837 msgstr ""
19838
19839 #. type: verbatim
19840 #: ../inspector/virt-inspector.pod:337
19841 #, no-wrap
19842 msgid ""
19843 " $ virt-inspector -d Guest | xpath //filesystems\n"
19844 " Found 1 nodes:\n"
19845 " -- NODE --\n"
19846 " <filesystems>\n"
19847 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19848 "        <type>ext4</type>\n"
19849 " [etc]\n"
19850 "\n"
19851 msgstr ""
19852
19853 #. type: verbatim
19854 #: ../inspector/virt-inspector.pod:345
19855 #, no-wrap
19856 msgid ""
19857 " $ virt-inspector -d Guest | \\\n"
19858 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
19859 " Query didn't return a nodeset. Value: ext4\n"
19860 "\n"
19861 msgstr ""
19862
19863 #. type: =head1
19864 #: ../inspector/virt-inspector.pod:356
19865 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
19866 msgstr ""
19867
19868 #. type: textblock
19869 #: ../inspector/virt-inspector.pod:358
19870 msgid ""
19871 "Early versions of libguestfs shipped with a different virt-inspector program "
19872 "written in Perl (the current version is written in C).  The XML output of "
19873 "the Perl virt-inspector was different and it could also output in other "
19874 "formats like text."
19875 msgstr ""
19876
19877 #. type: textblock
19878 #: ../inspector/virt-inspector.pod:363
19879 msgid ""
19880 "The old virt-inspector is no longer supported or shipped with libguestfs."
19881 msgstr ""
19882
19883 #. type: textblock
19884 #: ../inspector/virt-inspector.pod:366
19885 msgid ""
19886 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
19887 "versions of virt-inspector with different names:"
19888 msgstr ""
19889
19890 #. type: verbatim
19891 #: ../inspector/virt-inspector.pod:369
19892 #, no-wrap
19893 msgid ""
19894 " virt-inspector     Old Perl version.\n"
19895 " virt-inspector2    New C version.\n"
19896 "\n"
19897 msgstr ""
19898
19899 #. type: textblock
19900 #: ../inspector/virt-inspector.pod:374
19901 msgid ""
19902 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
19903 ">, L<http://libguestfs.org/>."
19904 msgstr ""
19905
19906 #. type: textblock
19907 #: ../inspector/virt-inspector.pod:390
19908 msgid "Matthew Booth L<mbooth@redhat.com>"
19909 msgstr ""
19910
19911 #. type: textblock
19912 #: ../java/examples/guestfs-java.pod:5
19913 msgid "guestfs-java - How to use libguestfs from Java"
19914 msgstr ""
19915
19916 #. type: verbatim
19917 #: ../java/examples/guestfs-java.pod:9
19918 #, no-wrap
19919 msgid ""
19920 " import com.redhat.et.libguestfs.*;\n"
19921 " \n"
19922 msgstr ""
19923
19924 #. type: verbatim
19925 #: ../java/examples/guestfs-java.pod:11
19926 #, no-wrap
19927 msgid ""
19928 " GuestFS g = new GuestFS ();\n"
19929 " g.add_drive_opts (\"disk.img\", null);\n"
19930 " g.launch ();\n"
19931 "\n"
19932 msgstr ""
19933
19934 #. type: textblock
19935 #: ../java/examples/guestfs-java.pod:17
19936 msgid ""
19937 "This manual page documents how to call libguestfs from the Java programming "
19938 "language.  This page just documents the differences from the C API and gives "
19939 "some examples.  If you are not familiar with using libguestfs, you also need "
19940 "to read L<guestfs(3)>."
19941 msgstr ""
19942
19943 #. type: =head2
19944 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
19945 msgid "CLOSING THE HANDLE"
19946 msgstr ""
19947
19948 #. type: textblock
19949 #: ../java/examples/guestfs-java.pod:24
19950 msgid ""
19951 "The handle is closed when it is reaped by the garbage collector.  Because "
19952 "libguestfs handles include a lot of state, it is also possible to close (and "
19953 "hence free) them explicitly by calling the C<close> method."
19954 msgstr ""
19955
19956 #. type: =head2
19957 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
19958 #: ../python/examples/guestfs-python.pod:21
19959 #: ../ruby/examples/guestfs-ruby.pod:22
19960 msgid "EXCEPTIONS"
19961 msgstr ""
19962
19963 #. type: textblock
19964 #: ../java/examples/guestfs-java.pod:31
19965 msgid ""
19966 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
19967 "exception.  This has a single parameter which is the error message (a "
19968 "C<String>)."
19969 msgstr ""
19970
19971 #. type: textblock
19972 #: ../java/examples/guestfs-java.pod:35
19973 msgid "Calling any method on a closed handle raises the same exception."
19974 msgstr ""
19975
19976 #. type: textblock
19977 #: ../java/examples/guestfs-java.pod:47
19978 msgid ""
19979 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
19980 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
19981 "libguestfs.org/>, L<http://caml.inria.fr/>."
19982 msgstr ""
19983
19984 #. type: textblock
19985 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
19986 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
19987 msgstr ""
19988
19989 #. type: textblock
19990 #: ../ocaml/examples/guestfs-ocaml.pod:5
19991 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
19992 msgstr ""
19993
19994 #. type: textblock
19995 #: ../ocaml/examples/guestfs-ocaml.pod:9
19996 msgid "Module style:"
19997 msgstr ""
19998
19999 #. type: verbatim
20000 #: ../ocaml/examples/guestfs-ocaml.pod:11
20001 #, no-wrap
20002 msgid ""
20003 " let g = Guestfs.create () in\n"
20004 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20005 " Guestfs.launch g;\n"
20006 "\n"
20007 msgstr ""
20008
20009 #. type: textblock
20010 #: ../ocaml/examples/guestfs-ocaml.pod:15
20011 msgid "Object-oriented style:"
20012 msgstr ""
20013
20014 #. type: verbatim
20015 #: ../ocaml/examples/guestfs-ocaml.pod:17
20016 #, no-wrap
20017 msgid ""
20018 " let g = new Guestfs.guestfs () in\n"
20019 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20020 " g#launch ();\n"
20021 "\n"
20022 msgstr ""
20023
20024 #. type: verbatim
20025 #: ../ocaml/examples/guestfs-ocaml.pod:21
20026 #, no-wrap
20027 msgid ""
20028 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
20029 "or:\n"
20030 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
20031 "\n"
20032 msgstr ""
20033
20034 #. type: textblock
20035 #: ../ocaml/examples/guestfs-ocaml.pod:27
20036 msgid ""
20037 "This manual page documents how to call libguestfs from the OCaml programming "
20038 "language.  This page just documents the differences from the C API and gives "
20039 "some examples.  If you are not familiar with using libguestfs, you also need "
20040 "to read L<guestfs(3)>."
20041 msgstr ""
20042
20043 #. type: =head2
20044 #: ../ocaml/examples/guestfs-ocaml.pod:32
20045 msgid "PROGRAMMING STYLES"
20046 msgstr ""
20047
20048 #. type: textblock
20049 #: ../ocaml/examples/guestfs-ocaml.pod:34
20050 msgid ""
20051 "There are two different programming styles supported by the OCaml bindings.  "
20052 "You can use a module style, with each C function mapped to an OCaml function:"
20053 msgstr ""
20054
20055 #. type: verbatim
20056 #: ../ocaml/examples/guestfs-ocaml.pod:38
20057 #, no-wrap
20058 msgid ""
20059 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
20060 "\n"
20061 msgstr ""
20062
20063 #. type: textblock
20064 #: ../ocaml/examples/guestfs-ocaml.pod:40
20065 msgid "becomes:"
20066 msgstr ""
20067
20068 #. type: verbatim
20069 #: ../ocaml/examples/guestfs-ocaml.pod:42
20070 #, no-wrap
20071 msgid ""
20072 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
20073 "\n"
20074 msgstr ""
20075
20076 #. type: textblock
20077 #: ../ocaml/examples/guestfs-ocaml.pod:44
20078 msgid ""
20079 "Alternately you can use an object-oriented style, calling methods on the "
20080 "class C<Guestfs.guestfs>:"
20081 msgstr ""
20082
20083 #. type: verbatim
20084 #: ../ocaml/examples/guestfs-ocaml.pod:47
20085 #, no-wrap
20086 msgid ""
20087 " method set_verbose : bool -> unit\n"
20088 "\n"
20089 msgstr ""
20090
20091 #. type: textblock
20092 #: ../ocaml/examples/guestfs-ocaml.pod:49
20093 msgid ""
20094 "The object-oriented style is usually briefer, and the minor performance "
20095 "penalty isn't noticable in the general overhead of performing libguestfs "
20096 "functions."
20097 msgstr ""
20098
20099 #. type: textblock
20100 #: ../ocaml/examples/guestfs-ocaml.pod:55
20101 msgid ""
20102 "The handle is closed when it is reaped by the garbage collector.  Because "
20103 "libguestfs handles include a lot of state, it is also possible to close (and "
20104 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
20105 "method."
20106 msgstr ""
20107
20108 #. type: textblock
20109 #: ../ocaml/examples/guestfs-ocaml.pod:62
20110 msgid ""
20111 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
20112 "exception.  This has a single parameter which is the error message (a "
20113 "string)."
20114 msgstr ""
20115
20116 #. type: textblock
20117 #: ../ocaml/examples/guestfs-ocaml.pod:66
20118 msgid ""
20119 "Calling any function/method on a closed handle raises C<Guestfs."
20120 "Handle_closed>.  The single parameter is the name of the function that you "
20121 "called."
20122 msgstr ""
20123
20124 #. type: textblock
20125 #: ../ocaml/examples/guestfs-ocaml.pod:80
20126 msgid ""
20127 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
20128 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20129 "libguestfs.org/>, L<http://caml.inria.fr/>."
20130 msgstr ""
20131
20132 #. type: textblock
20133 #: ../perl/examples/guestfs-perl.pod:5
20134 msgid "guestfs-perl - How to use libguestfs from Perl"
20135 msgstr ""
20136
20137 #. type: verbatim
20138 #: ../perl/examples/guestfs-perl.pod:9
20139 #, no-wrap
20140 msgid ""
20141 " use Sys::Guestfs;\n"
20142 " \n"
20143 msgstr ""
20144
20145 #. type: verbatim
20146 #: ../perl/examples/guestfs-perl.pod:11
20147 #, no-wrap
20148 msgid ""
20149 " my $h = Sys::Guestfs->new ();\n"
20150 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
20151 " $h->launch ();\n"
20152 " $h->mount_options ('', '/dev/sda1', '/');\n"
20153 " $h->touch ('/hello');\n"
20154 " $h->sync ();\n"
20155 "\n"
20156 msgstr ""
20157
20158 #. type: textblock
20159 #: ../perl/examples/guestfs-perl.pod:20
20160 msgid ""
20161 "This manual page documents how to call libguestfs from the Perl programming "
20162 "language.  This page just documents the differences from the C API and gives "
20163 "some examples.  If you are not familiar with using libguestfs, you also need "
20164 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
20165 msgstr ""
20166
20167 #. type: =head2
20168 #: ../perl/examples/guestfs-perl.pod:26
20169 msgid "ERRORS"
20170 msgstr ""
20171
20172 #. type: textblock
20173 #: ../perl/examples/guestfs-perl.pod:28
20174 msgid ""
20175 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
20176 ">)."
20177 msgstr ""
20178
20179 #. type: textblock
20180 #: ../perl/examples/guestfs-perl.pod:41
20181 msgid ""
20182 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
20183 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
20184 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20185 msgstr ""
20186
20187 #. type: textblock
20188 #: ../python/examples/guestfs-python.pod:5
20189 msgid "guestfs-python - How to use libguestfs from Python"
20190 msgstr ""
20191
20192 #. type: verbatim
20193 #: ../python/examples/guestfs-python.pod:9
20194 #, no-wrap
20195 msgid ""
20196 " import guestfs\n"
20197 " g = guestfs.GuestFS ()\n"
20198 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
20199 " g.launch\n"
20200 "\n"
20201 msgstr ""
20202
20203 #. type: textblock
20204 #: ../python/examples/guestfs-python.pod:16
20205 msgid ""
20206 "This manual page documents how to call libguestfs from the Python "
20207 "programming language.  This page just documents the differences from the C "
20208 "API and gives some examples.  If you are not familiar with using libguestfs, "
20209 "you also need to read L<guestfs(3)>."
20210 msgstr ""
20211
20212 #. type: textblock
20213 #: ../python/examples/guestfs-python.pod:23
20214 msgid ""
20215 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
20216 "single string argument which is the error message."
20217 msgstr ""
20218
20219 #. type: =head2
20220 #: ../python/examples/guestfs-python.pod:26
20221 msgid "MORE DOCUMENTATION"
20222 msgstr ""
20223
20224 #. type: textblock
20225 #: ../python/examples/guestfs-python.pod:28
20226 msgid "Type:"
20227 msgstr ""
20228
20229 #. type: verbatim
20230 #: ../python/examples/guestfs-python.pod:30
20231 #, no-wrap
20232 msgid ""
20233 " $ python\n"
20234 " >>> import guestfs\n"
20235 " >>> help (guestfs)\n"
20236 "\n"
20237 msgstr ""
20238
20239 #. type: textblock
20240 #: ../python/examples/guestfs-python.pod:44
20241 msgid ""
20242 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
20243 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
20244 "libguestfs.org/>."
20245 msgstr ""
20246
20247 #. type: textblock
20248 #: ../rescue/virt-rescue.pod:5
20249 msgid "virt-rescue - Run a rescue shell on a virtual machine"
20250 msgstr ""
20251
20252 #. type: verbatim
20253 #: ../rescue/virt-rescue.pod:9
20254 #, no-wrap
20255 msgid ""
20256 " virt-rescue [--options] -d domname\n"
20257 "\n"
20258 msgstr ""
20259
20260 #. type: verbatim
20261 #: ../rescue/virt-rescue.pod:11
20262 #, no-wrap
20263 msgid ""
20264 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
20265 "\n"
20266 msgstr ""
20267
20268 #. type: verbatim
20269 #: ../rescue/virt-rescue.pod:15
20270 #, no-wrap
20271 msgid ""
20272 " virt-rescue [--options] domname\n"
20273 "\n"
20274 msgstr ""
20275
20276 #. type: verbatim
20277 #: ../rescue/virt-rescue.pod:17
20278 #, no-wrap
20279 msgid ""
20280 " virt-rescue [--options] disk.img [disk.img ...]\n"
20281 "\n"
20282 msgstr ""
20283
20284 #. type: textblock
20285 #: ../rescue/virt-rescue.pod:21
20286 msgid ""
20287 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
20288 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
20289 "you from doing this, but doesn't catch all cases."
20290 msgstr ""
20291
20292 #. type: textblock
20293 #: ../rescue/virt-rescue.pod:25
20294 msgid ""
20295 "However if you use the I<--ro> (read only) option, then you can attach a "
20296 "shell to a live virtual machine.  The results might be strange or "
20297 "inconsistent at times but you won't get disk corruption."
20298 msgstr ""
20299
20300 #. type: textblock
20301 #: ../rescue/virt-rescue.pod:31
20302 msgid ""
20303 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
20304 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
20305 "recovery tools which you can use to examine or rescue a virtual machine or "
20306 "disk image."
20307 msgstr ""
20308
20309 #. type: textblock
20310 #: ../rescue/virt-rescue.pod:36
20311 msgid ""
20312 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
20313 "on disk image(s):"
20314 msgstr ""
20315
20316 #. type: verbatim
20317 #: ../rescue/virt-rescue.pod:39
20318 #, no-wrap
20319 msgid ""
20320 " virt-rescue -d GuestName\n"
20321 "\n"
20322 msgstr ""
20323
20324 #. type: verbatim
20325 #: ../rescue/virt-rescue.pod:41
20326 #, no-wrap
20327 msgid ""
20328 " virt-rescue --ro -a /path/to/disk.img\n"
20329 "\n"
20330 msgstr ""
20331
20332 #. type: verbatim
20333 #: ../rescue/virt-rescue.pod:43
20334 #, no-wrap
20335 msgid ""
20336 " virt-rescue -a /dev/sdc\n"
20337 "\n"
20338 msgstr ""
20339
20340 #. type: textblock
20341 #: ../rescue/virt-rescue.pod:45
20342 msgid "For live VMs you I<must> use the --ro option."
20343 msgstr ""
20344
20345 #. type: textblock
20346 #: ../rescue/virt-rescue.pod:47
20347 msgid ""
20348 "When you run virt-rescue on a virtual machine or disk image, you are placed "
20349 "in an interactive bash shell where you can use many ordinary Linux "
20350 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
20351 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
20352 "is an empty directory called C</sysroot> where you can mount filesystems."
20353 msgstr ""
20354
20355 #. type: textblock
20356 #: ../rescue/virt-rescue.pod:54
20357 msgid ""
20358 "In the example below, we list logical volumes, then choose one to mount "
20359 "under C</sysroot>:"
20360 msgstr ""
20361
20362 #. type: verbatim
20363 #: ../rescue/virt-rescue.pod:57
20364 #, no-wrap
20365 msgid ""
20366 " ><rescue> lvs\n"
20367 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
20368 " lv_root vg_f11x64 -wi-a-   8.83G\n"
20369 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
20370 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
20371 " ><rescue> ls /sysroot\n"
20372 "\n"
20373 msgstr ""
20374
20375 #. type: textblock
20376 #: ../rescue/virt-rescue.pod:64
20377 msgid ""
20378 "If you don't know what filesystems are available on the virtual machine then "
20379 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
20380 msgstr ""
20381
20382 #. type: textblock
20383 #: ../rescue/virt-rescue.pod:70
20384 msgid ""
20385 "Virt-rescue can be used on I<any> disk image file or device, not just a "
20386 "virtual machine.  For example you can use it on a blank file if you want to "
20387 "partition that file (although we would recommend using L<guestfish(1)> "
20388 "instead as it is more suitable for this purpose).  You can even use virt-"
20389 "rescue on things like SD cards."
20390 msgstr ""
20391
20392 #. type: textblock
20393 #: ../rescue/virt-rescue.pod:76
20394 msgid ""
20395 "Virt-rescue does not require root.  You only need to run it as root if you "
20396 "need root to open the disk image."
20397 msgstr ""
20398
20399 #. type: textblock
20400 #: ../rescue/virt-rescue.pod:79
20401 msgid ""
20402 "This tool is just designed for quick interactive hacking on a virtual "
20403 "machine.  For more structured access to a virtual machine disk image, you "
20404 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
20405 "make scripted changes to guests, use L<guestfish(1)>."
20406 msgstr ""
20407
20408 #. type: =item
20409 #: ../rescue/virt-rescue.pod:103
20410 msgid "B<--append kernelopts>"
20411 msgstr ""
20412
20413 #. type: textblock
20414 #: ../rescue/virt-rescue.pod:105
20415 msgid "Pass additional options to the rescue kernel."
20416 msgstr ""
20417
20418 #. type: verbatim
20419 #: ../rescue/virt-rescue.pod:135
20420 #, no-wrap
20421 msgid ""
20422 " virt-rescue --format=raw -a disk.img\n"
20423 "\n"
20424 msgstr ""
20425
20426 #. type: verbatim
20427 #: ../rescue/virt-rescue.pod:139
20428 #, no-wrap
20429 msgid ""
20430 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
20431 "\n"
20432 msgstr ""
20433
20434 #. type: =item
20435 #: ../rescue/virt-rescue.pod:148
20436 msgid "B<-m MB>"
20437 msgstr ""
20438
20439 #. type: =item
20440 #: ../rescue/virt-rescue.pod:150
20441 msgid "B<--memsize MB>"
20442 msgstr ""
20443
20444 #. type: textblock
20445 #: ../rescue/virt-rescue.pod:152
20446 msgid ""
20447 "Change the amount of memory allocated to the rescue system.  The default is "
20448 "set by libguestfs and is small but adequate for running system tools.  The "
20449 "occasional program might need more memory.  The parameter is specified in "
20450 "megabytes."
20451 msgstr ""
20452
20453 #. type: =item
20454 #: ../rescue/virt-rescue.pod:157
20455 msgid "B<--network>"
20456 msgstr ""
20457
20458 #. type: textblock
20459 #: ../rescue/virt-rescue.pod:159
20460 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
20461 msgstr ""
20462
20463 #. type: textblock
20464 #: ../rescue/virt-rescue.pod:165
20465 msgid "Open the image read-only."
20466 msgstr ""
20467
20468 #. type: textblock
20469 #: ../rescue/virt-rescue.pod:175
20470 msgid ""
20471 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
20472 "SELINUX> before using this option."
20473 msgstr ""
20474
20475 #. type: textblock
20476 #: ../rescue/virt-rescue.pod:194
20477 msgid ""
20478 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
20479 "are done read-write."
20480 msgstr ""
20481
20482 #. type: textblock
20483 #: ../rescue/virt-rescue.pod:207
20484 msgid "Previous versions of virt-rescue allowed you to write either:"
20485 msgstr ""
20486
20487 #. type: verbatim
20488 #: ../rescue/virt-rescue.pod:209
20489 #, no-wrap
20490 msgid ""
20491 " virt-rescue disk.img [disk.img ...]\n"
20492 "\n"
20493 msgstr ""
20494
20495 #. type: verbatim
20496 #: ../rescue/virt-rescue.pod:213
20497 #, no-wrap
20498 msgid ""
20499 " virt-rescue guestname\n"
20500 "\n"
20501 msgstr ""
20502
20503 #. type: =head1
20504 #: ../rescue/virt-rescue.pod:221
20505 msgid "NETWORK"
20506 msgstr ""
20507
20508 #. type: textblock
20509 #: ../rescue/virt-rescue.pod:223
20510 msgid ""
20511 "Adding the I<--network> option enables QEMU user networking in the rescue "
20512 "appliance.  There are some differences between user networking and ordinary "
20513 "networking:"
20514 msgstr ""
20515
20516 #. type: =item
20517 #: ../rescue/virt-rescue.pod:229
20518 msgid "ping does not work"
20519 msgstr ""
20520
20521 #. type: textblock
20522 #: ../rescue/virt-rescue.pod:231
20523 msgid ""
20524 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
20525 "send the ping packets, and because virt-rescue must be able to run as non-"
20526 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
20527 "The ping command will appear to resolve addresses but will not be able to "
20528 "send or receive any packets.  This does not mean that the network is not "
20529 "working."
20530 msgstr ""
20531
20532 #. type: =item
20533 #: ../rescue/virt-rescue.pod:238
20534 msgid "cannot receive connections"
20535 msgstr ""
20536
20537 #. type: textblock
20538 #: ../rescue/virt-rescue.pod:240
20539 msgid "QEMU user networking cannot receive incoming connections."
20540 msgstr ""
20541
20542 #. type: =item
20543 #: ../rescue/virt-rescue.pod:242
20544 msgid "making TCP connections"
20545 msgstr ""
20546
20547 #. type: textblock
20548 #: ../rescue/virt-rescue.pod:244
20549 msgid ""
20550 "The virt-rescue appliance needs to be small and so does not include many "
20551 "network tools.  In particular there is no L<telnet(1)> command.  You can "
20552 "make TCP connections from the shell using the magical C</dev/tcp/"
20553 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
20554 msgstr ""
20555
20556 #. type: verbatim
20557 #: ../rescue/virt-rescue.pod:249
20558 #, no-wrap
20559 msgid ""
20560 " exec 3<>/dev/tcp/redhat.com/80\n"
20561 " echo \"GET /\" >&3\n"
20562 " cat <&3\n"
20563 "\n"
20564 msgstr ""
20565
20566 #. type: textblock
20567 #: ../rescue/virt-rescue.pod:253
20568 msgid "See L<bash(1)> for more details."
20569 msgstr ""
20570
20571 #. type: textblock
20572 #: ../rescue/virt-rescue.pod:259
20573 msgid ""
20574 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
20575 "ENVIRONMENT VARIABLES> for the complete list."
20576 msgstr ""
20577
20578 #. type: textblock
20579 #: ../rescue/virt-rescue.pod:286
20580 msgid ""
20581 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
20582 "libguestfs.org/>."
20583 msgstr ""
20584
20585 #. type: textblock
20586 #: ../resize/virt-resize.pod:5
20587 msgid "virt-resize - Resize a virtual machine disk"
20588 msgstr ""
20589
20590 #. type: verbatim
20591 #: ../resize/virt-resize.pod:9
20592 #, no-wrap
20593 msgid ""
20594 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
20595 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
20596 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
20597 "\n"
20598 msgstr ""
20599
20600 #. type: textblock
20601 #: ../resize/virt-resize.pod:15
20602 msgid ""
20603 "Virt-resize is a tool which can resize a virtual machine disk, making it "
20604 "larger or smaller overall, and resizing or deleting any partitions contained "
20605 "within."
20606 msgstr ""
20607
20608 #. type: textblock
20609 #: ../resize/virt-resize.pod:19
20610 msgid ""
20611 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
20612 "not> be used on live virtual machines - for consistent results, shut the "
20613 "virtual machine down before resizing it."
20614 msgstr ""
20615
20616 #. type: textblock
20617 #: ../resize/virt-resize.pod:23
20618 msgid ""
20619 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
20620 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
20621 msgstr ""
20622
20623 #. type: =item
20624 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257
20625 #: ../src/guestfs.pod:1395 ../src/guestfs.pod:2465
20626 msgid "1."
20627 msgstr ""
20628
20629 #. type: textblock
20630 #: ../resize/virt-resize.pod:33
20631 msgid ""
20632 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
20633 "fill the extra 5GB of space."
20634 msgstr ""
20635
20636 #. type: verbatim
20637 #: ../resize/virt-resize.pod:36
20638 #, no-wrap
20639 msgid ""
20640 " virt-filesystems --long -h --all -a olddisk\n"
20641 " \n"
20642 msgstr ""
20643
20644 #. type: verbatim
20645 #: ../resize/virt-resize.pod:38
20646 #, no-wrap
20647 msgid ""
20648 " truncate -r olddisk newdisk\n"
20649 " truncate -s +5G newdisk\n"
20650 " \n"
20651 msgstr ""
20652
20653 #. type: verbatim
20654 #: ../resize/virt-resize.pod:41
20655 #, no-wrap
20656 msgid ""
20657 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
20658 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
20659 "\n"
20660 msgstr ""
20661
20662 #. type: =item
20663 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261
20664 #: ../src/guestfs.pod:1399 ../src/guestfs.pod:2490
20665 msgid "2."
20666 msgstr ""
20667
20668 #. type: textblock
20669 #: ../resize/virt-resize.pod:46
20670 msgid ""
20671 "As above, but make the /boot partition 200MB bigger, while giving the "
20672 "remaining space to /dev/sda2:"
20673 msgstr ""
20674
20675 #. type: verbatim
20676 #: ../resize/virt-resize.pod:49
20677 #, no-wrap
20678 msgid ""
20679 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20680 "   olddisk newdisk\n"
20681 "\n"
20682 msgstr ""
20683
20684 #. type: =item
20685 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1405
20686 msgid "3."
20687 msgstr ""
20688
20689 #. type: textblock
20690 #: ../resize/virt-resize.pod:54
20691 msgid ""
20692 "As in the first example, but expand a logical volume as the final step.  "
20693 "This is what you would typically use for Linux guests that use LVM:"
20694 msgstr ""
20695
20696 #. type: verbatim
20697 #: ../resize/virt-resize.pod:58
20698 #, no-wrap
20699 msgid ""
20700 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
20701 "   olddisk newdisk\n"
20702 "\n"
20703 msgstr ""
20704
20705 #. type: =item
20706 #: ../resize/virt-resize.pod:61
20707 msgid "4."
20708 msgstr ""
20709
20710 #. type: textblock
20711 #: ../resize/virt-resize.pod:63
20712 msgid ""
20713 "As in the first example, but the output format will be qcow2 instead of a "
20714 "raw disk:"
20715 msgstr ""
20716
20717 #. type: verbatim
20718 #: ../resize/virt-resize.pod:66
20719 #, no-wrap
20720 msgid ""
20721 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
20722 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
20723 "\n"
20724 msgstr ""
20725
20726 #. type: =head1
20727 #: ../resize/virt-resize.pod:71
20728 msgid "DETAILED USAGE"
20729 msgstr ""
20730
20731 #. type: =head2
20732 #: ../resize/virt-resize.pod:73
20733 msgid "EXPANDING A VIRTUAL MACHINE DISK"
20734 msgstr ""
20735
20736 #. type: =item
20737 #: ../resize/virt-resize.pod:77
20738 msgid "1. Shut down the virtual machine"
20739 msgstr ""
20740
20741 #. type: =item
20742 #: ../resize/virt-resize.pod:79
20743 msgid "2. Locate input disk image"
20744 msgstr ""
20745
20746 #. type: textblock
20747 #: ../resize/virt-resize.pod:81
20748 msgid ""
20749 "Locate the input disk image (ie. the file or device on the host containing "
20750 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
20751 "dumpxml> like this to find the disk image name:"
20752 msgstr ""
20753
20754 #. type: verbatim
20755 #: ../resize/virt-resize.pod:85
20756 #, no-wrap
20757 msgid ""
20758 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
20759 " Found 1 nodes:\n"
20760 " -- NODE --\n"
20761 " <source dev=\"/dev/vg/lv_guest\" />\n"
20762 "\n"
20763 msgstr ""
20764
20765 #. type: =item
20766 #: ../resize/virt-resize.pod:90
20767 msgid "3. Look at current sizing"
20768 msgstr ""
20769
20770 #. type: textblock
20771 #: ../resize/virt-resize.pod:92
20772 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
20773 msgstr ""
20774
20775 #. type: verbatim
20776 #: ../resize/virt-resize.pod:95
20777 #, no-wrap
20778 msgid ""
20779 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
20780 " Name       Type       Size  Parent\n"
20781 " /dev/sda1  partition  101M  /dev/sda\n"
20782 " /dev/sda2  partition  7.9G  /dev/sda\n"
20783 " /dev/sda   device     8.0G  -\n"
20784 "\n"
20785 msgstr ""
20786
20787 #. type: textblock
20788 #: ../resize/virt-resize.pod:101
20789 msgid ""
20790 "(This example is a virtual machine with an 8 GB disk which we would like to "
20791 "expand up to 10 GB)."
20792 msgstr ""
20793
20794 #. type: =item
20795 #: ../resize/virt-resize.pod:104
20796 msgid "4. Create output disk"
20797 msgstr ""
20798
20799 #. type: textblock
20800 #: ../resize/virt-resize.pod:106
20801 msgid ""
20802 "Virt-resize cannot do in-place disk modifications.  You have to have space "
20803 "to store the resized output disk."
20804 msgstr ""
20805
20806 #. type: textblock
20807 #: ../resize/virt-resize.pod:109
20808 msgid ""
20809 "To store the resized disk image in a file, create a file of a suitable size:"
20810 msgstr ""
20811
20812 #. type: verbatim
20813 #: ../resize/virt-resize.pod:112
20814 #, no-wrap
20815 msgid ""
20816 " # rm -f outdisk\n"
20817 " # truncate -s 10G outdisk\n"
20818 "\n"
20819 msgstr ""
20820
20821 #. type: textblock
20822 #: ../resize/virt-resize.pod:115
20823 msgid "Or use L<lvcreate(1)> to create a logical volume:"
20824 msgstr ""
20825
20826 #. type: verbatim
20827 #: ../resize/virt-resize.pod:117
20828 #, no-wrap
20829 msgid ""
20830 " # lvcreate -L 10G -n lv_name vg_name\n"
20831 "\n"
20832 msgstr ""
20833
20834 #. type: textblock
20835 #: ../resize/virt-resize.pod:119
20836 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
20837 msgstr ""
20838
20839 #. type: verbatim
20840 #: ../resize/virt-resize.pod:121
20841 #, no-wrap
20842 msgid ""
20843 " # virsh pool-list\n"
20844 " # virsh vol-create-as poolname newvol 10G\n"
20845 "\n"
20846 msgstr ""
20847
20848 #. type: =item
20849 #: ../resize/virt-resize.pod:124
20850 msgid "5. Resize"
20851 msgstr ""
20852
20853 #. type: textblock
20854 #: ../resize/virt-resize.pod:126
20855 msgid ""
20856 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
20857 "file) and the output disk.  The output disk is the one created in the "
20858 "previous step."
20859 msgstr ""
20860
20861 #. type: verbatim
20862 #: ../resize/virt-resize.pod:130
20863 #, no-wrap
20864 msgid ""
20865 " # virt-resize indisk outdisk\n"
20866 "\n"
20867 msgstr ""
20868
20869 #. type: textblock
20870 #: ../resize/virt-resize.pod:132
20871 msgid ""
20872 "This command just copies disk image C<indisk> to disk image C<outdisk> "
20873 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
20874 "larger, then an extra, empty partition is created at the end of the disk "
20875 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
20876 "error."
20877 msgstr ""
20878
20879 #. type: textblock
20880 #: ../resize/virt-resize.pod:138
20881 msgid ""
20882 "More realistically you'd want to expand existing partitions in the disk "
20883 "image by passing extra options (for the full list see the L</OPTIONS> "
20884 "section below)."
20885 msgstr ""
20886
20887 #. type: textblock
20888 #: ../resize/virt-resize.pod:142
20889 msgid ""
20890 "L</--expand> is the most useful option.  It expands the named partition "
20891 "within the disk to fill any extra space:"
20892 msgstr ""
20893
20894 #. type: verbatim
20895 #: ../resize/virt-resize.pod:145
20896 #, no-wrap
20897 msgid ""
20898 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
20899 "\n"
20900 msgstr ""
20901
20902 #. type: textblock
20903 #: ../resize/virt-resize.pod:147
20904 msgid ""
20905 "(In this case, an extra partition is I<not> created at the end of the disk, "
20906 "because there will be no unused space)."
20907 msgstr ""
20908
20909 #. type: textblock
20910 #: ../resize/virt-resize.pod:150
20911 msgid ""
20912 "L</--resize> is the other commonly used option.  The following would "
20913 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
20914 "rest of the available space:"
20915 msgstr ""
20916
20917 #. type: verbatim
20918 #: ../resize/virt-resize.pod:154
20919 #, no-wrap
20920 msgid ""
20921 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20922 "     indisk outdisk\n"
20923 "\n"
20924 msgstr ""
20925
20926 #. type: textblock
20927 #: ../resize/virt-resize.pod:157
20928 msgid ""
20929 "If the expanded partition in the image contains a filesystem or LVM PV, then "
20930 "if virt-resize knows how, it will resize the contents, the equivalent of "
20931 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
20932 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
20933 "filesystems, so you would have to online resize them after booting the guest."
20934 msgstr ""
20935
20936 #. type: textblock
20937 #: ../resize/virt-resize.pod:164
20938 msgid "Other options are covered below."
20939 msgstr ""
20940
20941 #. type: =item
20942 #: ../resize/virt-resize.pod:166
20943 msgid "6. Test"
20944 msgstr ""
20945
20946 #. type: textblock
20947 #: ../resize/virt-resize.pod:168
20948 msgid "Thoroughly test the new disk image I<before> discarding the old one."
20949 msgstr ""
20950
20951 #. type: textblock
20952 #: ../resize/virt-resize.pod:170
20953 msgid "If you are using libvirt, edit the XML to point at the new disk:"
20954 msgstr ""
20955
20956 #. type: verbatim
20957 #: ../resize/virt-resize.pod:172
20958 #, no-wrap
20959 msgid ""
20960 " # virsh edit guestname\n"
20961 "\n"
20962 msgstr ""
20963
20964 #. type: textblock
20965 #: ../resize/virt-resize.pod:174
20966 msgid ""
20967 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
20968 "html#elementsDisks>"
20969 msgstr ""
20970
20971 #. type: textblock
20972 #: ../resize/virt-resize.pod:177
20973 msgid "Then start up the domain with the new, resized disk:"
20974 msgstr ""
20975
20976 #. type: verbatim
20977 #: ../resize/virt-resize.pod:179
20978 #, no-wrap
20979 msgid ""
20980 " # virsh start guestname\n"
20981 "\n"
20982 msgstr ""
20983
20984 #. type: textblock
20985 #: ../resize/virt-resize.pod:181
20986 msgid ""
20987 "and check that it still works.  See also the L</NOTES> section below for "
20988 "additional information."
20989 msgstr ""
20990
20991 #. type: =item
20992 #: ../resize/virt-resize.pod:184
20993 msgid "7. Resize LVs etc inside the guest"
20994 msgstr ""
20995
20996 #. type: textblock
20997 #: ../resize/virt-resize.pod:186
20998 msgid "(This can also be done offline using L<guestfish(1)>)"
20999 msgstr ""
21000
21001 #. type: textblock
21002 #: ../resize/virt-resize.pod:188
21003 msgid ""
21004 "Once the guest has booted you should see the new space available, at least "
21005 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
21006 "may need to resize LVs inside PVs, and also resize filesystem types that "
21007 "virt-resize does not know how to expand."
21008 msgstr ""
21009
21010 #. type: =head2
21011 #: ../resize/virt-resize.pod:195
21012 msgid "SHRINKING A VIRTUAL MACHINE DISK"
21013 msgstr ""
21014
21015 #. type: textblock
21016 #: ../resize/virt-resize.pod:197
21017 msgid ""
21018 "Shrinking is somewhat more complex than expanding, and only an overview is "
21019 "given here."
21020 msgstr ""
21021
21022 #. type: textblock
21023 #: ../resize/virt-resize.pod:200
21024 msgid ""
21025 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
21026 "filesystems).  The user has to shrink content before passing the disk image "
21027 "to virt-resize, and virt-resize will check that the content has been shrunk "
21028 "properly."
21029 msgstr ""
21030
21031 #. type: textblock
21032 #: ../resize/virt-resize.pod:205
21033 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
21034 msgstr ""
21035
21036 #. type: textblock
21037 #: ../resize/virt-resize.pod:207
21038 msgid ""
21039 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
21040 "steps 3 and 4 above to allocate a new disk image."
21041 msgstr ""
21042
21043 #. type: textblock
21044 #: ../resize/virt-resize.pod:210
21045 msgid ""
21046 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
21047 msgstr ""
21048
21049 #. type: =head2
21050 #: ../resize/virt-resize.pod:213
21051 msgid "IGNORING OR DELETING PARTITIONS"
21052 msgstr ""
21053
21054 #. type: textblock
21055 #: ../resize/virt-resize.pod:215
21056 msgid ""
21057 "virt-resize also gives a convenient way to ignore or delete partitions when "
21058 "copying from the input disk to the output disk.  Ignoring a partition speeds "
21059 "up the copy where you don't care about the existing contents of a "
21060 "partition.  Deleting a partition removes it completely, but note that it "
21061 "also renumbers any partitions after the one which is deleted, which can "
21062 "leave some guests unbootable."
21063 msgstr ""
21064
21065 #. type: =head2
21066 #: ../resize/virt-resize.pod:222
21067 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
21068 msgstr ""
21069
21070 #. type: textblock
21071 #: ../resize/virt-resize.pod:224
21072 msgid ""
21073 "If the input disk is in qcow2 format, then you may prefer that the output is "
21074 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
21075 "the fly.  The output format is simply determined by the format of the empty "
21076 "output container that you provide.  Thus to create qcow2 output, use:"
21077 msgstr ""
21078
21079 #. type: verbatim
21080 #: ../resize/virt-resize.pod:230
21081 #, no-wrap
21082 msgid ""
21083 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
21084 "\n"
21085 msgstr ""
21086
21087 #. type: textblock
21088 #: ../resize/virt-resize.pod:232
21089 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
21090 msgstr ""
21091
21092 #. type: textblock
21093 #: ../resize/virt-resize.pod:234
21094 msgid "Similarly, to get non-sparse raw output use:"
21095 msgstr ""
21096
21097 #. type: verbatim
21098 #: ../resize/virt-resize.pod:236
21099 #, no-wrap
21100 msgid ""
21101 " fallocate -l size outdisk\n"
21102 "\n"
21103 msgstr ""
21104
21105 #. type: textblock
21106 #: ../resize/virt-resize.pod:238
21107 msgid ""
21108 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
21109 "dev/zero of=outdisk bs=1M count=..>)"
21110 msgstr ""
21111
21112 #. type: textblock
21113 #: ../resize/virt-resize.pod:247
21114 msgid "Display help."
21115 msgstr ""
21116
21117 #. type: =item
21118 #: ../resize/virt-resize.pod:249
21119 msgid "B<-d>"
21120 msgstr ""
21121
21122 #. type: =item
21123 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
21124 #: ../tools/virt-win-reg.pl:120
21125 msgid "B<--debug>"
21126 msgstr ""
21127
21128 #. type: textblock
21129 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
21130 msgid "Enable debugging messages."
21131 msgstr ""
21132
21133 #. type: =item
21134 #: ../resize/virt-resize.pod:255
21135 msgid "B<--delete part>"
21136 msgstr ""
21137
21138 #. type: textblock
21139 #: ../resize/virt-resize.pod:257
21140 msgid ""
21141 "Delete the named partition.  It would be more accurate to describe this as "
21142 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
21143 "the original disk image is left intact."
21144 msgstr ""
21145
21146 #. type: textblock
21147 #: ../resize/virt-resize.pod:261
21148 msgid ""
21149 "Note that when you delete a partition, then anything contained in the "
21150 "partition is also deleted.  Furthermore, this causes any partitions that "
21151 "come after to be I<renumbered>, which can easily make your guest unbootable."
21152 msgstr ""
21153
21154 #. type: textblock
21155 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
21156 #: ../resize/virt-resize.pod:448
21157 msgid "You can give this option multiple times."
21158 msgstr ""
21159
21160 #. type: =item
21161 #: ../resize/virt-resize.pod:268
21162 msgid "B<--expand part>"
21163 msgstr ""
21164
21165 #. type: textblock
21166 #: ../resize/virt-resize.pod:270
21167 msgid ""
21168 "Expand the named partition so it uses up all extra space (space left over "
21169 "after any other resize changes that you request have been done)."
21170 msgstr ""
21171
21172 #. type: textblock
21173 #: ../resize/virt-resize.pod:273
21174 msgid ""
21175 "If virt-resize knows how, it will expand the direct content of the "
21176 "partition.  For example, if the partition is an LVM PV, it will expand the "
21177 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
21178 "content it doesn't know about alone."
21179 msgstr ""
21180
21181 #. type: textblock
21182 #: ../resize/virt-resize.pod:278
21183 msgid "Currently virt-resize can resize:"
21184 msgstr ""
21185
21186 #. type: textblock
21187 #: ../resize/virt-resize.pod:284
21188 msgid "ext2, ext3 and ext4 filesystems."
21189 msgstr ""
21190
21191 #. type: textblock
21192 #: ../resize/virt-resize.pod:288
21193 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
21194 msgstr ""
21195
21196 #. type: textblock
21197 #: ../resize/virt-resize.pod:290
21198 msgid ""
21199 "The filesystem must have been shut down consistently last time it was used.  "
21200 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
21201 "consistency check, so at the first boot after resizing Windows will check "
21202 "the disk."
21203 msgstr ""
21204
21205 #. type: textblock
21206 #: ../resize/virt-resize.pod:297
21207 msgid ""
21208 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
21209 "inside the PV, but see the I<--LV-expand> option.  The user could also "
21210 "resize LVs as desired after boot."
21211 msgstr ""
21212
21213 #. type: textblock
21214 #: ../resize/virt-resize.pod:303
21215 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
21216 msgstr ""
21217
21218 #. type: textblock
21219 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:476
21220 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
21221 msgstr ""
21222
21223 #. type: =item
21224 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
21225 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
21226 #: ../tools/virt-win-reg.pl:142
21227 msgid "B<--format> raw"
21228 msgstr ""
21229
21230 #. type: textblock
21231 #: ../resize/virt-resize.pod:311
21232 msgid ""
21233 "Specify the format of the input disk image.  If this flag is not given then "
21234 "it is auto-detected from the image itself."
21235 msgstr ""
21236
21237 #. type: textblock
21238 #: ../resize/virt-resize.pod:317
21239 msgid ""
21240 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
21241 "AND NON-SPARSE RAW FORMATS>."
21242 msgstr ""
21243
21244 #. type: =item
21245 #: ../resize/virt-resize.pod:320
21246 msgid "B<--ignore part>"
21247 msgstr ""
21248
21249 #. type: textblock
21250 #: ../resize/virt-resize.pod:322
21251 msgid ""
21252 "Ignore the named partition.  Effectively this means the partition is "
21253 "allocated on the destination disk, but the content is not copied across from "
21254 "the source disk.  The content of the partition will be blank (all zero "
21255 "bytes)."
21256 msgstr ""
21257
21258 #. type: =item
21259 #: ../resize/virt-resize.pod:329
21260 msgid "B<--LV-expand logvol>"
21261 msgstr ""
21262
21263 #. type: textblock
21264 #: ../resize/virt-resize.pod:331
21265 msgid ""
21266 "This takes the logical volume and, as a final step, expands it to fill all "
21267 "the space available in its volume group.  A typical usage, assuming a Linux "
21268 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
21269 "lv_root> would be:"
21270 msgstr ""
21271
21272 #. type: verbatim
21273 #: ../resize/virt-resize.pod:336
21274 #, no-wrap
21275 msgid ""
21276 " virt-resize indisk outdisk \\\n"
21277 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
21278 "\n"
21279 msgstr ""
21280
21281 #. type: textblock
21282 #: ../resize/virt-resize.pod:339
21283 msgid ""
21284 "This would first expand the partition (and PV), and then expand the root "
21285 "device to fill the extra space in the PV."
21286 msgstr ""
21287
21288 #. type: textblock
21289 #: ../resize/virt-resize.pod:342
21290 msgid ""
21291 "The contents of the LV are also resized if virt-resize knows how to do "
21292 "that.  You can stop virt-resize from trying to expand the content by using "
21293 "the option I<--no-expand-content>."
21294 msgstr ""
21295
21296 #. type: textblock
21297 #: ../resize/virt-resize.pod:346
21298 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
21299 msgstr ""
21300
21301 #. type: textblock
21302 #: ../resize/virt-resize.pod:348
21303 msgid ""
21304 "You can give this option multiple times, I<but> it doesn't make sense to do "
21305 "this unless the logical volumes you specify are all in different volume "
21306 "groups."
21307 msgstr ""
21308
21309 #. type: =item
21310 #: ../resize/virt-resize.pod:354
21311 msgid "B<--dryrun>"
21312 msgstr ""
21313
21314 #. type: textblock
21315 #: ../resize/virt-resize.pod:356
21316 msgid "Print a summary of what would be done, but don't do anything."
21317 msgstr ""
21318
21319 #. type: =item
21320 #: ../resize/virt-resize.pod:358
21321 msgid "B<--no-copy-boot-loader>"
21322 msgstr ""
21323
21324 #. type: textblock
21325 #: ../resize/virt-resize.pod:360
21326 msgid ""
21327 "By default, virt-resize copies over some sectors at the start of the disk "
21328 "(up to the beginning of the first partition).  Commonly these sectors "
21329 "contain the Master Boot Record (MBR) and the boot loader, and are required "
21330 "in order for the guest to boot correctly."
21331 msgstr ""
21332
21333 #. type: textblock
21334 #: ../resize/virt-resize.pod:365
21335 msgid ""
21336 "If you specify this flag, then this initial copy is not done.  You may need "
21337 "to reinstall the boot loader in this case."
21338 msgstr ""
21339
21340 #. type: =item
21341 #: ../resize/virt-resize.pod:368
21342 msgid "B<--no-extra-partition>"
21343 msgstr ""
21344
21345 #. type: textblock
21346 #: ../resize/virt-resize.pod:370
21347 msgid ""
21348 "By default, virt-resize creates an extra partition if there is any extra, "
21349 "unused space after all resizing has happened.  Use this option to prevent "
21350 "the extra partition from being created.  If you do this then the extra space "
21351 "will be inaccessible until you run fdisk, parted, or some other partitioning "
21352 "tool in the guest."
21353 msgstr ""
21354
21355 #. type: textblock
21356 #: ../resize/virt-resize.pod:376
21357 msgid ""
21358 "Note that if the surplus space is smaller than 10 MB, no extra partition "
21359 "will be created."
21360 msgstr ""
21361
21362 #. type: =item
21363 #: ../resize/virt-resize.pod:379
21364 msgid "B<--no-expand-content>"
21365 msgstr ""
21366
21367 #. type: textblock
21368 #: ../resize/virt-resize.pod:381
21369 msgid ""
21370 "By default, virt-resize will try to expand the direct contents of "
21371 "partitions, if it knows how (see I<--expand> option above)."
21372 msgstr ""
21373
21374 #. type: textblock
21375 #: ../resize/virt-resize.pod:384
21376 msgid ""
21377 "If you give the I<--no-expand-content> option then virt-resize will not "
21378 "attempt this."
21379 msgstr ""
21380
21381 #. type: =item
21382 #: ../resize/virt-resize.pod:387
21383 msgid "B<--ntfsresize-force>"
21384 msgstr ""
21385
21386 #. type: textblock
21387 #: ../resize/virt-resize.pod:389
21388 msgid ""
21389 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
21390 "the NTFS disk is marked as needing a consistency check.  You have to use "
21391 "this option if you want to resize a Windows guest multiple times without "
21392 "booting into Windows between each resize."
21393 msgstr ""
21394
21395 #. type: =item
21396 #: ../resize/virt-resize.pod:395
21397 msgid "B<--output-format> raw"
21398 msgstr ""
21399
21400 #. type: textblock
21401 #: ../resize/virt-resize.pod:397
21402 msgid ""
21403 "Specify the format of the output disk image.  If this flag is not given then "
21404 "it is auto-detected from the image itself."
21405 msgstr ""
21406
21407 #. type: textblock
21408 #: ../resize/virt-resize.pod:403
21409 msgid ""
21410 "Note that this option I<does not create> the output format.  This option "
21411 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
21412 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
21413 "SPARSE RAW FORMATS>."
21414 msgstr ""
21415
21416 #. type: =item
21417 #: ../resize/virt-resize.pod:408
21418 msgid "B<-q>"
21419 msgstr ""
21420
21421 #. type: =item
21422 #: ../resize/virt-resize.pod:410
21423 msgid "B<--quiet>"
21424 msgstr ""
21425
21426 #. type: textblock
21427 #: ../resize/virt-resize.pod:412
21428 msgid "Don't print the summary."
21429 msgstr ""
21430
21431 #. type: =item
21432 #: ../resize/virt-resize.pod:414
21433 msgid "B<--resize part=size>"
21434 msgstr ""
21435
21436 #. type: textblock
21437 #: ../resize/virt-resize.pod:416
21438 msgid ""
21439 "Resize the named partition (expanding or shrinking it) so that it has the "
21440 "given size."
21441 msgstr ""
21442
21443 #. type: textblock
21444 #: ../resize/virt-resize.pod:419
21445 msgid ""
21446 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
21447 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
21448 "size; or as a relative number or percentage.  For example:"
21449 msgstr ""
21450
21451 #. type: verbatim
21452 #: ../resize/virt-resize.pod:425
21453 #, no-wrap
21454 msgid ""
21455 " --resize /dev/sda2=10G\n"
21456 "\n"
21457 msgstr ""
21458
21459 #. type: verbatim
21460 #: ../resize/virt-resize.pod:427
21461 #, no-wrap
21462 msgid ""
21463 " --resize /dev/sda4=90%\n"
21464 "\n"
21465 msgstr ""
21466
21467 #. type: verbatim
21468 #: ../resize/virt-resize.pod:429
21469 #, no-wrap
21470 msgid ""
21471 " --resize /dev/sda2=+1G\n"
21472 "\n"
21473 msgstr ""
21474
21475 #. type: verbatim
21476 #: ../resize/virt-resize.pod:431
21477 #, no-wrap
21478 msgid ""
21479 " --resize /dev/sda2=-200M\n"
21480 "\n"
21481 msgstr ""
21482
21483 #. type: verbatim
21484 #: ../resize/virt-resize.pod:433
21485 #, no-wrap
21486 msgid ""
21487 " --resize /dev/sda1=+128K\n"
21488 "\n"
21489 msgstr ""
21490
21491 #. type: verbatim
21492 #: ../resize/virt-resize.pod:435
21493 #, no-wrap
21494 msgid ""
21495 " --resize /dev/sda1=+10%\n"
21496 "\n"
21497 msgstr ""
21498
21499 #. type: verbatim
21500 #: ../resize/virt-resize.pod:437
21501 #, no-wrap
21502 msgid ""
21503 " --resize /dev/sda1=-10%\n"
21504 "\n"
21505 msgstr ""
21506
21507 #. type: textblock
21508 #: ../resize/virt-resize.pod:439
21509 msgid ""
21510 "You can increase the size of any partition.  Virt-resize will expand the "
21511 "direct content of the partition if it knows how (see I<--expand> below)."
21512 msgstr ""
21513
21514 #. type: textblock
21515 #: ../resize/virt-resize.pod:443
21516 msgid ""
21517 "You can only I<decrease> the size of partitions that contain filesystems or "
21518 "PVs which have already been shrunk.  Virt-resize will check this has been "
21519 "done before proceeding, or else will print an error (see also I<--resize-"
21520 "force>)."
21521 msgstr ""
21522
21523 #. type: =item
21524 #: ../resize/virt-resize.pod:450
21525 msgid "B<--resize-force part=size>"
21526 msgstr ""
21527
21528 #. type: textblock
21529 #: ../resize/virt-resize.pod:452
21530 msgid ""
21531 "This is the same as I<--resize> except that it will let you decrease the "
21532 "size of any partition.  Generally this means you will lose any data which "
21533 "was at the end of the partition you shrink, but you may not care about that "
21534 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
21535 "as a swap partition)."
21536 msgstr ""
21537
21538 #. type: textblock
21539 #: ../resize/virt-resize.pod:458
21540 msgid "See also the I<--ignore> option."
21541 msgstr ""
21542
21543 #. type: =item
21544 #: ../resize/virt-resize.pod:460
21545 msgid "B<--shrink part>"
21546 msgstr ""
21547
21548 #. type: textblock
21549 #: ../resize/virt-resize.pod:462
21550 msgid ""
21551 "Shrink the named partition until the overall disk image fits in the "
21552 "destination.  The named partition B<must> contain a filesystem or PV which "
21553 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
21554 "online tools).  Virt-resize will check this and give an error if it has not "
21555 "been done."
21556 msgstr ""
21557
21558 #. type: textblock
21559 #: ../resize/virt-resize.pod:468
21560 msgid ""
21561 "The amount by which the overall disk must be shrunk (after carrying out all "
21562 "other operations requested by the user) is called the \"deficit\".  For "
21563 "example, a straight copy (assume no other operations)  from a 5GB disk image "
21564 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
21565 "would give an error unless the user specified a partition to shrink and that "
21566 "partition had more than a gigabyte of free space."
21567 msgstr ""
21568
21569 #. type: =head2
21570 #: ../resize/virt-resize.pod:488
21571 msgid "\"Partition 1 does not end on cylinder boundary.\""
21572 msgstr ""
21573
21574 #. type: textblock
21575 #: ../resize/virt-resize.pod:490
21576 msgid ""
21577 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
21578 "means the partitions will not be aligned to the ancient CHS geometry.  "
21579 "However CHS geometry is meaningless for disks manufactured since the early "
21580 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
21581 "cylinders is not required by any modern operating system."
21582 msgstr ""
21583
21584 #. type: =head2
21585 #: ../resize/virt-resize.pod:497
21586 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
21587 msgstr ""
21588
21589 #. type: textblock
21590 #: ../resize/virt-resize.pod:499
21591 msgid ""
21592 "In Windows Vista and later versions, Microsoft switched to using a separate "
21593 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
21594 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
21595 "the boot partition.  Doing so seems to break the guest completely.  However "
21596 "expanding the second partition (ie. C: drive) should work."
21597 msgstr ""
21598
21599 #. type: textblock
21600 #: ../resize/virt-resize.pod:506
21601 msgid ""
21602 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
21603 "NTFS partitions have been expanded.  This is just a safety check and (unless "
21604 "it find errors) is nothing to worry about."
21605 msgstr ""
21606
21607 #. type: =head2
21608 #: ../resize/virt-resize.pod:510
21609 msgid "GUEST BOOT STUCK AT \"GRUB\""
21610 msgstr ""
21611
21612 #. type: textblock
21613 #: ../resize/virt-resize.pod:512
21614 msgid ""
21615 "If a Linux guest does not boot after resizing, and the boot is stuck after "
21616 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
21617 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
21618 "although we think is to do with partition alignment."
21619 msgstr ""
21620
21621 #. type: verbatim
21622 #: ../resize/virt-resize.pod:517
21623 #, no-wrap
21624 msgid ""
21625 " guestfish -i -a newdisk\n"
21626 " ><fs> cat /boot/grub/device.map\n"
21627 " # check the contents of this file are sensible or\n"
21628 " # edit the file if necessary\n"
21629 " ><fs> grub-install / /dev/vda\n"
21630 " ><fs> exit\n"
21631 "\n"
21632 msgstr ""
21633
21634 #. type: textblock
21635 #: ../resize/virt-resize.pod:524
21636 msgid ""
21637 "For more flexible guest reconfiguration, including if you need to specify "
21638 "other parameters to grub-install, use L<virt-rescue(1)>."
21639 msgstr ""
21640
21641 #. type: =head1
21642 #: ../resize/virt-resize.pod:527
21643 msgid "ALTERNATIVE TOOLS"
21644 msgstr ""
21645
21646 #. type: textblock
21647 #: ../resize/virt-resize.pod:529
21648 msgid ""
21649 "There are several proprietary tools for resizing partitions.  We won't "
21650 "mention any here."
21651 msgstr ""
21652
21653 #. type: textblock
21654 #: ../resize/virt-resize.pod:532
21655 msgid ""
21656 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
21657 "operations on disk images.  They can resize and move partitions, but I don't "
21658 "think they can do anything with the contents, and they certainly don't "
21659 "understand LVM."
21660 msgstr ""
21661
21662 #. type: textblock
21663 #: ../resize/virt-resize.pod:537
21664 msgid ""
21665 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
21666 "but at a much lower level.  You will probably end up hand-calculating sector "
21667 "offsets, which is something that virt-resize was designed to avoid.  If you "
21668 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
21669 "I<--debug> flag."
21670 msgstr ""
21671
21672 #. type: textblock
21673 #: ../resize/virt-resize.pod:552
21674 msgid ""
21675 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
21676 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
21677 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
21678 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
21679 msgstr ""
21680
21681 #. type: textblock
21682 #: ../ruby/examples/guestfs-ruby.pod:5
21683 msgid "guestfs-ruby - How to use libguestfs from Ruby"
21684 msgstr ""
21685
21686 #. type: verbatim
21687 #: ../ruby/examples/guestfs-ruby.pod:9
21688 #, no-wrap
21689 msgid ""
21690 " require 'guestfs'\n"
21691 " g = Guestfs::Guestfs.new()\n"
21692 " g.add_drive_opts(\"disk.img\",\n"
21693 "                  :readonly => 1, :format => \"raw\")\n"
21694 " g.launch()\n"
21695 "\n"
21696 msgstr ""
21697
21698 #. type: textblock
21699 #: ../ruby/examples/guestfs-ruby.pod:17
21700 msgid ""
21701 "This manual page documents how to call libguestfs from the Ruby programming "
21702 "language.  This page just documents the differences from the C API and gives "
21703 "some examples.  If you are not familiar with using libguestfs, you also need "
21704 "to read L<guestfs(3)>."
21705 msgstr ""
21706
21707 #. type: textblock
21708 #: ../ruby/examples/guestfs-ruby.pod:24
21709 msgid ""
21710 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
21711 "This has a single parameter which is the error message (a string)."
21712 msgstr ""
21713
21714 #. type: textblock
21715 #: ../ruby/examples/guestfs-ruby.pod:38
21716 msgid ""
21717 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21718 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
21719 "libguestfs.org/>."
21720 msgstr ""
21721
21722 #. type: =head2
21723 #: ../src/guestfs-actions.pod:1
21724 msgid "guestfs_add_cdrom"
21725 msgstr ""
21726
21727 #. type: verbatim
21728 #: ../src/guestfs-actions.pod:3
21729 #, no-wrap
21730 msgid ""
21731 " int\n"
21732 " guestfs_add_cdrom (guestfs_h *g,\n"
21733 "                    const char *filename);\n"
21734 "\n"
21735 msgstr ""
21736
21737 #. type: textblock
21738 #: ../src/guestfs-actions.pod:17
21739 msgid ""
21740 "This call checks for the existence of C<filename>.  This stops you from "
21741 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21742 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
21743 "instead."
21744 msgstr ""
21745
21746 #. type: textblock
21747 #: ../src/guestfs-actions.pod:24
21748 msgid ""
21749 "If you just want to add an ISO file (often you use this as an efficient way "
21750 "to transfer large files into the guest), then you should probably use "
21751 "C<guestfs_add_drive_ro> instead."
21752 msgstr ""
21753
21754 #. type: textblock
21755 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
21756 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
21757 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
21758 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
21759 #: ../src/guestfs-actions.pod:422 ../src/guestfs-actions.pod:442
21760 #: ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501
21761 #: ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547
21762 #: ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647
21763 #: ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676
21764 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793
21765 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821
21766 #: ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1041
21767 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1079
21768 #: ../src/guestfs-actions.pod:1163 ../src/guestfs-actions.pod:1181
21769 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1214
21770 #: ../src/guestfs-actions.pod:1234 ../src/guestfs-actions.pod:1304
21771 #: ../src/guestfs-actions.pod:1335 ../src/guestfs-actions.pod:1360
21772 #: ../src/guestfs-actions.pod:1402 ../src/guestfs-actions.pod:1508
21773 #: ../src/guestfs-actions.pod:1542 ../src/guestfs-actions.pod:1757
21774 #: ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1866
21775 #: ../src/guestfs-actions.pod:2341 ../src/guestfs-actions.pod:2485
21776 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2581
21777 #: ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3636
21778 #: ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:3850
21779 #: ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:3877
21780 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3906
21781 #: ../src/guestfs-actions.pod:3942 ../src/guestfs-actions.pod:4014
21782 #: ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4051
21783 #: ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4097
21784 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4151
21785 #: ../src/guestfs-actions.pod:4170 ../src/guestfs-actions.pod:4205
21786 #: ../src/guestfs-actions.pod:4217 ../src/guestfs-actions.pod:4253
21787 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:4282
21788 #: ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:4314
21789 #: ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4427
21790 #: ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4491
21791 #: ../src/guestfs-actions.pod:4509 ../src/guestfs-actions.pod:4527
21792 #: ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4557
21793 #: ../src/guestfs-actions.pod:4571 ../src/guestfs-actions.pod:4588
21794 #: ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:4623
21795 #: ../src/guestfs-actions.pod:4693 ../src/guestfs-actions.pod:4766
21796 #: ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4816
21797 #: ../src/guestfs-actions.pod:4835 ../src/guestfs-actions.pod:4847
21798 #: ../src/guestfs-actions.pod:4864 ../src/guestfs-actions.pod:4877
21799 #: ../src/guestfs-actions.pod:4892 ../src/guestfs-actions.pod:4907
21800 #: ../src/guestfs-actions.pod:4942 ../src/guestfs-actions.pod:4975
21801 #: ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5034
21802 #: ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5065
21803 #: ../src/guestfs-actions.pod:5114 ../src/guestfs-actions.pod:5160
21804 #: ../src/guestfs-actions.pod:5214 ../src/guestfs-actions.pod:5250
21805 #: ../src/guestfs-actions.pod:5285 ../src/guestfs-actions.pod:5302
21806 #: ../src/guestfs-actions.pod:5320 ../src/guestfs-actions.pod:5460
21807 #: ../src/guestfs-actions.pod:5517 ../src/guestfs-actions.pod:5539
21808 #: ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:5589
21809 #: ../src/guestfs-actions.pod:5655 ../src/guestfs-actions.pod:5672
21810 #: ../src/guestfs-actions.pod:5685 ../src/guestfs-actions.pod:5699
21811 #: ../src/guestfs-actions.pod:5988 ../src/guestfs-actions.pod:6007
21812 #: ../src/guestfs-actions.pod:6026 ../src/guestfs-actions.pod:6040
21813 #: ../src/guestfs-actions.pod:6052 ../src/guestfs-actions.pod:6066
21814 #: ../src/guestfs-actions.pod:6078 ../src/guestfs-actions.pod:6092
21815 #: ../src/guestfs-actions.pod:6108 ../src/guestfs-actions.pod:6129
21816 #: ../src/guestfs-actions.pod:6148 ../src/guestfs-actions.pod:6167
21817 #: ../src/guestfs-actions.pod:6197 ../src/guestfs-actions.pod:6215
21818 #: ../src/guestfs-actions.pod:6238 ../src/guestfs-actions.pod:6256
21819 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6296
21820 #: ../src/guestfs-actions.pod:6315 ../src/guestfs-actions.pod:6332
21821 #: ../src/guestfs-actions.pod:6351 ../src/guestfs-actions.pod:6379
21822 #: ../src/guestfs-actions.pod:6403 ../src/guestfs-actions.pod:6422
21823 #: ../src/guestfs-actions.pod:6446 ../src/guestfs-actions.pod:6465
21824 #: ../src/guestfs-actions.pod:6480 ../src/guestfs-actions.pod:6499
21825 #: ../src/guestfs-actions.pod:6536 ../src/guestfs-actions.pod:6566
21826 #: ../src/guestfs-actions.pod:6599 ../src/guestfs-actions.pod:6721
21827 #: ../src/guestfs-actions.pod:6842 ../src/guestfs-actions.pod:6854
21828 #: ../src/guestfs-actions.pod:6867 ../src/guestfs-actions.pod:6880
21829 #: ../src/guestfs-actions.pod:6902 ../src/guestfs-actions.pod:6915
21830 #: ../src/guestfs-actions.pod:6928 ../src/guestfs-actions.pod:6941
21831 #: ../src/guestfs-actions.pod:6956 ../src/guestfs-actions.pod:7015
21832 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7048
21833 #: ../src/guestfs-actions.pod:7064 ../src/guestfs-actions.pod:7081
21834 #: ../src/guestfs-actions.pod:7094 ../src/guestfs-actions.pod:7114
21835 #: ../src/guestfs-actions.pod:7150 ../src/guestfs-actions.pod:7164
21836 #: ../src/guestfs-actions.pod:7205 ../src/guestfs-actions.pod:7218
21837 #: ../src/guestfs-actions.pod:7236 ../src/guestfs-actions.pod:7270
21838 #: ../src/guestfs-actions.pod:7306 ../src/guestfs-actions.pod:7422
21839 #: ../src/guestfs-actions.pod:7437 ../src/guestfs-actions.pod:7451
21840 #: ../src/guestfs-actions.pod:7506 ../src/guestfs-actions.pod:7519
21841 #: ../src/guestfs-actions.pod:7564 ../src/guestfs-actions.pod:7597
21842 #: ../src/guestfs-actions.pod:7660 ../src/guestfs-actions.pod:7680
21843 #: ../src/guestfs-actions.pod:7706 ../src/guestfs-actions.pod:7773
21844 #: ../src/guestfs-actions.pod:7792 ../src/guestfs-actions.pod:7821
21845 msgid "This function returns 0 on success or -1 on error."
21846 msgstr ""
21847
21848 #. type: textblock
21849 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
21850 #: ../src/guestfs-actions.pod:1165 ../src/guestfs-actions.pod:1980
21851 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2192
21852 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3643
21853 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:6217
21854 #: ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:6467
21855 #: ../src/guestfs-actions.pod:6958 ../src/guestfs-actions.pod:7083
21856 #: ../src/guestfs-actions.pod:7606
21857 msgid "(Added in 0.3)"
21858 msgstr ""
21859
21860 #. type: =head2
21861 #: ../src/guestfs-actions.pod:41
21862 msgid "guestfs_add_domain"
21863 msgstr ""
21864
21865 #. type: verbatim
21866 #: ../src/guestfs-actions.pod:43
21867 #, no-wrap
21868 msgid ""
21869 " int\n"
21870 " guestfs_add_domain (guestfs_h *g,\n"
21871 "                     const char *dom,\n"
21872 "                     ...);\n"
21873 "\n"
21874 msgstr ""
21875
21876 #. type: textblock
21877 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
21878 #: ../src/guestfs-actions.pod:832 ../src/guestfs-actions.pod:2826
21879 #: ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4961
21880 #: ../src/guestfs-actions.pod:5178
21881 msgid ""
21882 "You may supply a list of optional arguments to this call.  Use zero or more "
21883 "of the following pairs of parameters, and terminate the list with C<-1> on "
21884 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
21885 msgstr ""
21886
21887 #. type: verbatim
21888 #: ../src/guestfs-actions.pod:53
21889 #, no-wrap
21890 msgid ""
21891 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
21892 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
21893 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
21894 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
21895 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
21896 "\n"
21897 msgstr ""
21898
21899 #. type: textblock
21900 #: ../src/guestfs-actions.pod:59
21901 msgid ""
21902 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21903 "It works by connecting to libvirt, requesting the domain and domain XML from "
21904 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
21905 "one."
21906 msgstr ""
21907
21908 #. type: textblock
21909 #: ../src/guestfs-actions.pod:94
21910 msgid ""
21911 "The other optional parameters are passed directly through to "
21912 "C<guestfs_add_drive_opts>."
21913 msgstr ""
21914
21915 #. type: textblock
21916 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
21917 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
21918 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
21919 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1380
21920 #: ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1939
21921 #: ../src/guestfs-actions.pod:2050 ../src/guestfs-actions.pod:2101
21922 #: ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:2179
21923 #: ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:2944
21924 #: ../src/guestfs-actions.pod:2962 ../src/guestfs-actions.pod:5137
21925 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5769
21926 #: ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:7191
21927 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:7630
21928 #: ../src/guestfs-actions.pod:7643
21929 msgid "On error this function returns -1."
21930 msgstr ""
21931
21932 #. type: textblock
21933 #: ../src/guestfs-actions.pod:99
21934 msgid "(Added in 1.7.4)"
21935 msgstr ""
21936
21937 #. type: =head2
21938 #: ../src/guestfs-actions.pod:101
21939 msgid "guestfs_add_domain_va"
21940 msgstr ""
21941
21942 #. type: verbatim
21943 #: ../src/guestfs-actions.pod:103
21944 #, no-wrap
21945 msgid ""
21946 " int\n"
21947 " guestfs_add_domain_va (guestfs_h *g,\n"
21948 "                        const char *dom,\n"
21949 "                        va_list args);\n"
21950 "\n"
21951 msgstr ""
21952
21953 #. type: textblock
21954 #: ../src/guestfs-actions.pod:108
21955 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
21956 msgstr ""
21957
21958 #. type: textblock
21959 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
21960 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
21961 #: ../src/guestfs-actions.pod:871 ../src/guestfs-actions.pod:882
21962 #: ../src/guestfs-actions.pod:2910 ../src/guestfs-actions.pod:2922
21963 #: ../src/guestfs-actions.pod:4707 ../src/guestfs-actions.pod:4719
21964 #: ../src/guestfs-actions.pod:4989 ../src/guestfs-actions.pod:5001
21965 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5238
21966 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
21967 msgstr ""
21968
21969 #. type: =head2
21970 #: ../src/guestfs-actions.pod:112
21971 msgid "guestfs_add_domain_argv"
21972 msgstr ""
21973
21974 #. type: verbatim
21975 #: ../src/guestfs-actions.pod:114
21976 #, no-wrap
21977 msgid ""
21978 " int\n"
21979 " guestfs_add_domain_argv (guestfs_h *g,\n"
21980 "                          const char *dom,\n"
21981 "                          const struct guestfs_add_domain_argv *optargs);\n"
21982 "\n"
21983 msgstr ""
21984
21985 #. type: textblock
21986 #: ../src/guestfs-actions.pod:119
21987 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
21988 msgstr ""
21989
21990 #. type: =head2
21991 #: ../src/guestfs-actions.pod:123
21992 msgid "guestfs_add_drive"
21993 msgstr ""
21994
21995 #. type: verbatim
21996 #: ../src/guestfs-actions.pod:125
21997 #, no-wrap
21998 msgid ""
21999 " int\n"
22000 " guestfs_add_drive (guestfs_h *g,\n"
22001 "                    const char *filename);\n"
22002 "\n"
22003 msgstr ""
22004
22005 #. type: textblock
22006 #: ../src/guestfs-actions.pod:129
22007 msgid ""
22008 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
22009 "optional parameters, so the disk is added writable, with the format being "
22010 "detected automatically."
22011 msgstr ""
22012
22013 #. type: textblock
22014 #: ../src/guestfs-actions.pod:133
22015 msgid ""
22016 "Automatic detection of the format opens you up to a potential security hole "
22017 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
22018 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
22019 "you should think about replacing calls to this function with calls to "
22020 "C<guestfs_add_drive_opts>, and specifying the format."
22021 msgstr ""
22022
22023 #. type: =head2
22024 #: ../src/guestfs-actions.pod:144
22025 msgid "guestfs_add_drive_opts"
22026 msgstr ""
22027
22028 #. type: verbatim
22029 #: ../src/guestfs-actions.pod:146
22030 #, no-wrap
22031 msgid ""
22032 " int\n"
22033 " guestfs_add_drive_opts (guestfs_h *g,\n"
22034 "                         const char *filename,\n"
22035 "                         ...);\n"
22036 "\n"
22037 msgstr ""
22038
22039 #. type: verbatim
22040 #: ../src/guestfs-actions.pod:156
22041 #, no-wrap
22042 msgid ""
22043 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
22044 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
22045 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
22046 "\n"
22047 msgstr ""
22048
22049 #. type: textblock
22050 #: ../src/guestfs-actions.pod:185
22051 msgid ""
22052 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
22053 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
22054 "Possible formats include C<raw> and C<qcow2>."
22055 msgstr ""
22056
22057 #. type: textblock
22058 #: ../src/guestfs-actions.pod:196
22059 msgid ""
22060 "This rarely-used option lets you emulate the behaviour of the deprecated "
22061 "C<guestfs_add_drive_with_if> call (q.v.)"
22062 msgstr ""
22063
22064 #. type: textblock
22065 #: ../src/guestfs-actions.pod:203
22066 msgid "(Added in 1.5.23)"
22067 msgstr ""
22068
22069 #. type: =head2
22070 #: ../src/guestfs-actions.pod:205
22071 msgid "guestfs_add_drive_opts_va"
22072 msgstr ""
22073
22074 #. type: verbatim
22075 #: ../src/guestfs-actions.pod:207
22076 #, no-wrap
22077 msgid ""
22078 " int\n"
22079 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
22080 "                            const char *filename,\n"
22081 "                            va_list args);\n"
22082 "\n"
22083 msgstr ""
22084
22085 #. type: textblock
22086 #: ../src/guestfs-actions.pod:212
22087 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
22088 msgstr ""
22089
22090 #. type: =head2
22091 #: ../src/guestfs-actions.pod:216
22092 msgid "guestfs_add_drive_opts_argv"
22093 msgstr ""
22094
22095 #. type: verbatim
22096 #: ../src/guestfs-actions.pod:218
22097 #, no-wrap
22098 msgid ""
22099 " int\n"
22100 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
22101 "                              const char *filename,\n"
22102 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
22103 "\n"
22104 msgstr ""
22105
22106 #. type: textblock
22107 #: ../src/guestfs-actions.pod:223
22108 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
22109 msgstr ""
22110
22111 #. type: =head2
22112 #: ../src/guestfs-actions.pod:227
22113 msgid "guestfs_add_drive_ro"
22114 msgstr ""
22115
22116 #. type: verbatim
22117 #: ../src/guestfs-actions.pod:229
22118 #, no-wrap
22119 msgid ""
22120 " int\n"
22121 " guestfs_add_drive_ro (guestfs_h *g,\n"
22122 "                       const char *filename);\n"
22123 "\n"
22124 msgstr ""
22125
22126 #. type: textblock
22127 #: ../src/guestfs-actions.pod:233
22128 msgid ""
22129 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
22130 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
22131 "disk is added read-only, with the format being detected automatically."
22132 msgstr ""
22133
22134 #. type: textblock
22135 #: ../src/guestfs-actions.pod:240
22136 msgid "(Added in 1.0.38)"
22137 msgstr ""
22138
22139 #. type: =head2
22140 #: ../src/guestfs-actions.pod:242
22141 msgid "guestfs_add_drive_ro_with_if"
22142 msgstr ""
22143
22144 #. type: verbatim
22145 #: ../src/guestfs-actions.pod:244
22146 #, no-wrap
22147 msgid ""
22148 " int\n"
22149 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
22150 "                               const char *filename,\n"
22151 "                               const char *iface);\n"
22152 "\n"
22153 msgstr ""
22154
22155 #. type: textblock
22156 #: ../src/guestfs-actions.pod:249
22157 msgid ""
22158 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
22159 "QEMU interface emulation to use at run time."
22160 msgstr ""
22161
22162 #. type: textblock
22163 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
22164 #: ../src/guestfs-actions.pod:2431
22165 msgid "(Added in 1.0.84)"
22166 msgstr ""
22167
22168 #. type: =head2
22169 #: ../src/guestfs-actions.pod:263
22170 msgid "guestfs_add_drive_with_if"
22171 msgstr ""
22172
22173 #. type: verbatim
22174 #: ../src/guestfs-actions.pod:265
22175 #, no-wrap
22176 msgid ""
22177 " int\n"
22178 " guestfs_add_drive_with_if (guestfs_h *g,\n"
22179 "                            const char *filename,\n"
22180 "                            const char *iface);\n"
22181 "\n"
22182 msgstr ""
22183
22184 #. type: textblock
22185 #: ../src/guestfs-actions.pod:270
22186 msgid ""
22187 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
22188 "QEMU interface emulation to use at run time."
22189 msgstr ""
22190
22191 #. type: =head2
22192 #: ../src/guestfs-actions.pod:284
22193 msgid "guestfs_aug_clear"
22194 msgstr ""
22195
22196 #. type: verbatim
22197 #: ../src/guestfs-actions.pod:286
22198 #, no-wrap
22199 msgid ""
22200 " int\n"
22201 " guestfs_aug_clear (guestfs_h *g,\n"
22202 "                    const char *augpath);\n"
22203 "\n"
22204 msgstr ""
22205
22206 #. type: textblock
22207 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2181
22208 msgid "(Added in 1.3.4)"
22209 msgstr ""
22210
22211 #. type: =head2
22212 #: ../src/guestfs-actions.pod:297
22213 msgid "guestfs_aug_close"
22214 msgstr ""
22215
22216 #. type: verbatim
22217 #: ../src/guestfs-actions.pod:299
22218 #, no-wrap
22219 msgid ""
22220 " int\n"
22221 " guestfs_aug_close (guestfs_h *g);\n"
22222 "\n"
22223 msgstr ""
22224
22225 #. type: textblock
22226 #: ../src/guestfs-actions.pod:302
22227 msgid ""
22228 "Close the current Augeas handle and free up any resources used by it.  After "
22229 "calling this, you have to call C<guestfs_aug_init> again before you can use "
22230 "any other Augeas functions."
22231 msgstr ""
22232
22233 #. type: textblock
22234 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
22235 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
22236 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
22237 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
22238 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
22239 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
22240 #: ../src/guestfs-actions.pod:5846
22241 msgid "(Added in 0.7)"
22242 msgstr ""
22243
22244 #. type: =head2
22245 #: ../src/guestfs-actions.pod:311
22246 msgid "guestfs_aug_defnode"
22247 msgstr ""
22248
22249 #. type: verbatim
22250 #: ../src/guestfs-actions.pod:313
22251 #, no-wrap
22252 msgid ""
22253 " struct guestfs_int_bool *\n"
22254 " guestfs_aug_defnode (guestfs_h *g,\n"
22255 "                      const char *name,\n"
22256 "                      const char *expr,\n"
22257 "                      const char *val);\n"
22258 "\n"
22259 msgstr ""
22260
22261 #. type: textblock
22262 #: ../src/guestfs-actions.pod:322
22263 msgid ""
22264 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22265 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
22266 "containing that single node."
22267 msgstr ""
22268
22269 #. type: textblock
22270 #: ../src/guestfs-actions.pod:330
22271 msgid ""
22272 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
22273 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
22274 msgstr ""
22275
22276 #. type: =head2
22277 #: ../src/guestfs-actions.pod:336
22278 msgid "guestfs_aug_defvar"
22279 msgstr ""
22280
22281 #. type: verbatim
22282 #: ../src/guestfs-actions.pod:338
22283 #, no-wrap
22284 msgid ""
22285 " int\n"
22286 " guestfs_aug_defvar (guestfs_h *g,\n"
22287 "                     const char *name,\n"
22288 "                     const char *expr);\n"
22289 "\n"
22290 msgstr ""
22291
22292 #. type: =head2
22293 #: ../src/guestfs-actions.pod:354
22294 msgid "guestfs_aug_get"
22295 msgstr ""
22296
22297 #. type: verbatim
22298 #: ../src/guestfs-actions.pod:356
22299 #, no-wrap
22300 msgid ""
22301 " char *\n"
22302 " guestfs_aug_get (guestfs_h *g,\n"
22303 "                  const char *augpath);\n"
22304 "\n"
22305 msgstr ""
22306
22307 #. type: textblock
22308 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:922
22309 #: ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1000
22310 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1119
22311 #: ../src/guestfs-actions.pod:1249 ../src/guestfs-actions.pod:1266
22312 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1419
22313 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1719
22314 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:1899
22315 #: ../src/guestfs-actions.pod:1966 ../src/guestfs-actions.pod:2002
22316 #: ../src/guestfs-actions.pod:2023 ../src/guestfs-actions.pod:2204
22317 #: ../src/guestfs-actions.pod:2396 ../src/guestfs-actions.pod:2600
22318 #: ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2794
22319 #: ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:3027
22320 #: ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3076
22321 #: ../src/guestfs-actions.pod:3110 ../src/guestfs-actions.pod:3169
22322 #: ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3209
22323 #: ../src/guestfs-actions.pod:3836 ../src/guestfs-actions.pod:4189
22324 #: ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:4469
22325 #: ../src/guestfs-actions.pod:5375 ../src/guestfs-actions.pod:5574
22326 #: ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:5922
22327 #: ../src/guestfs-actions.pod:5971 ../src/guestfs-actions.pod:6627
22328 #: ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6660
22329 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:7365
22330 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7402
22331 #: ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7878
22332 msgid ""
22333 "This function returns a string, or NULL on error.  I<The caller must free "
22334 "the returned string after use>."
22335 msgstr ""
22336
22337 #. type: =head2
22338 #: ../src/guestfs-actions.pod:368
22339 msgid "guestfs_aug_init"
22340 msgstr ""
22341
22342 #. type: verbatim
22343 #: ../src/guestfs-actions.pod:370
22344 #, no-wrap
22345 msgid ""
22346 " int\n"
22347 " guestfs_aug_init (guestfs_h *g,\n"
22348 "                   const char *root,\n"
22349 "                   int flags);\n"
22350 "\n"
22351 msgstr ""
22352
22353 #. type: textblock
22354 #: ../src/guestfs-actions.pod:379
22355 msgid "You must call this before using any other C<guestfs_aug_*> commands."
22356 msgstr ""
22357
22358 #. type: textblock
22359 #: ../src/guestfs-actions.pod:414
22360 msgid "Do not load the tree in C<guestfs_aug_init>."
22361 msgstr ""
22362
22363 #. type: textblock
22364 #: ../src/guestfs-actions.pod:418
22365 msgid "To close the handle, you can call C<guestfs_aug_close>."
22366 msgstr ""
22367
22368 #. type: =head2
22369 #: ../src/guestfs-actions.pod:426
22370 msgid "guestfs_aug_insert"
22371 msgstr ""
22372
22373 #. type: verbatim
22374 #: ../src/guestfs-actions.pod:428
22375 #, no-wrap
22376 msgid ""
22377 " int\n"
22378 " guestfs_aug_insert (guestfs_h *g,\n"
22379 "                     const char *augpath,\n"
22380 "                     const char *label,\n"
22381 "                     int before);\n"
22382 "\n"
22383 msgstr ""
22384
22385 #. type: =head2
22386 #: ../src/guestfs-actions.pod:446
22387 msgid "guestfs_aug_load"
22388 msgstr ""
22389
22390 #. type: verbatim
22391 #: ../src/guestfs-actions.pod:448
22392 #, no-wrap
22393 msgid ""
22394 " int\n"
22395 " guestfs_aug_load (guestfs_h *g);\n"
22396 "\n"
22397 msgstr ""
22398
22399 #. type: =head2
22400 #: ../src/guestfs-actions.pod:460
22401 msgid "guestfs_aug_ls"
22402 msgstr ""
22403
22404 #. type: verbatim
22405 #: ../src/guestfs-actions.pod:462
22406 #, no-wrap
22407 msgid ""
22408 " char **\n"
22409 " guestfs_aug_ls (guestfs_h *g,\n"
22410 "                 const char *augpath);\n"
22411 "\n"
22412 msgstr ""
22413
22414 #. type: textblock
22415 #: ../src/guestfs-actions.pod:466
22416 msgid ""
22417 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
22418 "sorting the resulting nodes into alphabetical order."
22419 msgstr ""
22420
22421 #. type: textblock
22422 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
22423 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1138
22424 #: ../src/guestfs-actions.pod:1434 ../src/guestfs-actions.pod:1453
22425 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
22426 #: ../src/guestfs-actions.pod:1821 ../src/guestfs-actions.pod:2276
22427 #: ../src/guestfs-actions.pod:2292 ../src/guestfs-actions.pod:2311
22428 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:2378
22429 #: ../src/guestfs-actions.pod:2449 ../src/guestfs-actions.pod:2498
22430 #: ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:3129
22431 #: ../src/guestfs-actions.pod:3405 ../src/guestfs-actions.pod:3719
22432 #: ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3756
22433 #: ../src/guestfs-actions.pod:3818 ../src/guestfs-actions.pod:3923
22434 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:5098
22435 #: ../src/guestfs-actions.pod:5716 ../src/guestfs-actions.pod:5842
22436 #: ../src/guestfs-actions.pod:5956 ../src/guestfs-actions.pod:6707
22437 #: ../src/guestfs-actions.pod:6768 ../src/guestfs-actions.pod:6823
22438 #: ../src/guestfs-actions.pod:6969 ../src/guestfs-actions.pod:6993
22439 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-actions.pod:7489
22440 #: ../src/guestfs-actions.pod:7536 ../src/guestfs-actions.pod:7730
22441 #: ../src/guestfs-actions.pod:7749 ../src/guestfs-actions.pod:7835
22442 #: ../src/guestfs-actions.pod:7854 ../src/guestfs-actions.pod:7900
22443 #: ../src/guestfs-actions.pod:7919
22444 msgid ""
22445 "This function returns a NULL-terminated array of strings (like L<environ(3)"
22446 ">), or NULL if there was an error.  I<The caller must free the strings and "
22447 "the array after use>."
22448 msgstr ""
22449
22450 #. type: textblock
22451 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1063
22452 #: ../src/guestfs-actions.pod:1081 ../src/guestfs-actions.pod:1491
22453 #: ../src/guestfs-actions.pod:3483 ../src/guestfs-actions.pod:3514
22454 #: ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:4222
22455 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4442
22456 #: ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:5102
22457 #: ../src/guestfs-actions.pod:5657 ../src/guestfs-actions.pod:6054
22458 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6080
22459 #: ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:7207
22460 #: ../src/guestfs-actions.pod:7220 ../src/guestfs-actions.pod:7453
22461 #: ../src/guestfs-actions.pod:7718
22462 msgid "(Added in 0.8)"
22463 msgstr ""
22464
22465 #. type: =head2
22466 #: ../src/guestfs-actions.pod:475
22467 msgid "guestfs_aug_match"
22468 msgstr ""
22469
22470 #. type: verbatim
22471 #: ../src/guestfs-actions.pod:477
22472 #, no-wrap
22473 msgid ""
22474 " char **\n"
22475 " guestfs_aug_match (guestfs_h *g,\n"
22476 "                    const char *augpath);\n"
22477 "\n"
22478 msgstr ""
22479
22480 #. type: =head2
22481 #: ../src/guestfs-actions.pod:491
22482 msgid "guestfs_aug_mv"
22483 msgstr ""
22484
22485 #. type: verbatim
22486 #: ../src/guestfs-actions.pod:493
22487 #, no-wrap
22488 msgid ""
22489 " int\n"
22490 " guestfs_aug_mv (guestfs_h *g,\n"
22491 "                 const char *src,\n"
22492 "                 const char *dest);\n"
22493 "\n"
22494 msgstr ""
22495
22496 #. type: =head2
22497 #: ../src/guestfs-actions.pod:505
22498 msgid "guestfs_aug_rm"
22499 msgstr ""
22500
22501 #. type: verbatim
22502 #: ../src/guestfs-actions.pod:507
22503 #, no-wrap
22504 msgid ""
22505 " int\n"
22506 " guestfs_aug_rm (guestfs_h *g,\n"
22507 "                 const char *augpath);\n"
22508 "\n"
22509 msgstr ""
22510
22511 #. type: =head2
22512 #: ../src/guestfs-actions.pod:519
22513 msgid "guestfs_aug_save"
22514 msgstr ""
22515
22516 #. type: verbatim
22517 #: ../src/guestfs-actions.pod:521
22518 #, no-wrap
22519 msgid ""
22520 " int\n"
22521 " guestfs_aug_save (guestfs_h *g);\n"
22522 "\n"
22523 msgstr ""
22524
22525 #. type: textblock
22526 #: ../src/guestfs-actions.pod:526
22527 msgid ""
22528 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
22529 "are saved."
22530 msgstr ""
22531
22532 #. type: =head2
22533 #: ../src/guestfs-actions.pod:533
22534 msgid "guestfs_aug_set"
22535 msgstr ""
22536
22537 #. type: verbatim
22538 #: ../src/guestfs-actions.pod:535
22539 #, no-wrap
22540 msgid ""
22541 " int\n"
22542 " guestfs_aug_set (guestfs_h *g,\n"
22543 "                  const char *augpath,\n"
22544 "                  const char *val);\n"
22545 "\n"
22546 msgstr ""
22547
22548 #. type: textblock
22549 #: ../src/guestfs-actions.pod:542
22550 msgid ""
22551 "In the Augeas API, it is possible to clear a node by setting the value to "
22552 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22553 "this call.  Instead you must use the C<guestfs_aug_clear> call."
22554 msgstr ""
22555
22556 #. type: =head2
22557 #: ../src/guestfs-actions.pod:551
22558 msgid "guestfs_available"
22559 msgstr ""
22560
22561 #. type: verbatim
22562 #: ../src/guestfs-actions.pod:553
22563 #, no-wrap
22564 msgid ""
22565 " int\n"
22566 " guestfs_available (guestfs_h *g,\n"
22567 "                    char *const *groups);\n"
22568 "\n"
22569 msgstr ""
22570
22571 #. type: textblock
22572 #: ../src/guestfs-actions.pod:561
22573 msgid ""
22574 "The libguestfs groups, and the functions that those groups correspond to, "
22575 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22576 "runtime by calling C<guestfs_available_all_groups>."
22577 msgstr ""
22578
22579 #. type: textblock
22580 #: ../src/guestfs-actions.pod:585
22581 msgid "You must call C<guestfs_launch> before calling this function."
22582 msgstr ""
22583
22584 #. type: textblock
22585 #: ../src/guestfs-actions.pod:607
22586 msgid ""
22587 "This call was added in version C<1.0.80>.  In previous versions of "
22588 "libguestfs all you could do would be to speculatively execute a command to "
22589 "find out if the daemon implemented it.  See also C<guestfs_version>."
22590 msgstr ""
22591
22592 #. type: textblock
22593 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1236
22594 msgid "(Added in 1.0.80)"
22595 msgstr ""
22596
22597 #. type: =head2
22598 #: ../src/guestfs-actions.pod:618
22599 msgid "guestfs_available_all_groups"
22600 msgstr ""
22601
22602 #. type: verbatim
22603 #: ../src/guestfs-actions.pod:620
22604 #, no-wrap
22605 msgid ""
22606 " char **\n"
22607 " guestfs_available_all_groups (guestfs_h *g);\n"
22608 "\n"
22609 msgstr ""
22610
22611 #. type: textblock
22612 #: ../src/guestfs-actions.pod:623
22613 msgid ""
22614 "This command returns a list of all optional groups that this daemon knows "
22615 "about.  Note this returns both supported and unsupported groups.  To find "
22616 "out which ones the daemon can actually support you have to call "
22617 "C<guestfs_available> on each member of the returned list."
22618 msgstr ""
22619
22620 #. type: textblock
22621 #: ../src/guestfs-actions.pod:629
22622 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
22623 msgstr ""
22624
22625 #. type: textblock
22626 #: ../src/guestfs-actions.pod:635
22627 msgid "(Added in 1.3.15)"
22628 msgstr ""
22629
22630 #. type: =head2
22631 #: ../src/guestfs-actions.pod:637
22632 msgid "guestfs_base64_in"
22633 msgstr ""
22634
22635 #. type: verbatim
22636 #: ../src/guestfs-actions.pod:639
22637 #, no-wrap
22638 msgid ""
22639 " int\n"
22640 " guestfs_base64_in (guestfs_h *g,\n"
22641 "                    const char *base64file,\n"
22642 "                    const char *filename);\n"
22643 "\n"
22644 msgstr ""
22645
22646 #. type: textblock
22647 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
22648 msgid "(Added in 1.3.5)"
22649 msgstr ""
22650
22651 #. type: =head2
22652 #: ../src/guestfs-actions.pod:651
22653 msgid "guestfs_base64_out"
22654 msgstr ""
22655
22656 #. type: verbatim
22657 #: ../src/guestfs-actions.pod:653
22658 #, no-wrap
22659 msgid ""
22660 " int\n"
22661 " guestfs_base64_out (guestfs_h *g,\n"
22662 "                     const char *filename,\n"
22663 "                     const char *base64file);\n"
22664 "\n"
22665 msgstr ""
22666
22667 #. type: =head2
22668 #: ../src/guestfs-actions.pod:665
22669 msgid "guestfs_blockdev_flushbufs"
22670 msgstr ""
22671
22672 #. type: verbatim
22673 #: ../src/guestfs-actions.pod:667
22674 #, no-wrap
22675 msgid ""
22676 " int\n"
22677 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
22678 "                             const char *device);\n"
22679 "\n"
22680 msgstr ""
22681
22682 #. type: textblock
22683 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
22684 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
22685 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
22686 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
22687 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
22688 msgid "(Added in 0.9.3)"
22689 msgstr ""
22690
22691 #. type: =head2
22692 #: ../src/guestfs-actions.pod:680
22693 msgid "guestfs_blockdev_getbsz"
22694 msgstr ""
22695
22696 #. type: verbatim
22697 #: ../src/guestfs-actions.pod:682
22698 #, no-wrap
22699 msgid ""
22700 " int\n"
22701 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
22702 "                          const char *device);\n"
22703 "\n"
22704 msgstr ""
22705
22706 #. type: =head2
22707 #: ../src/guestfs-actions.pod:697
22708 msgid "guestfs_blockdev_getro"
22709 msgstr ""
22710
22711 #. type: verbatim
22712 #: ../src/guestfs-actions.pod:699
22713 #, no-wrap
22714 msgid ""
22715 " int\n"
22716 " guestfs_blockdev_getro (guestfs_h *g,\n"
22717 "                         const char *device);\n"
22718 "\n"
22719 msgstr ""
22720
22721 #. type: textblock
22722 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1474
22723 #: ../src/guestfs-actions.pod:1489 ../src/guestfs-actions.pod:1978
22724 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2061
22725 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2127
22726 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2167
22727 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:3226
22728 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3260
22729 #: ../src/guestfs-actions.pod:3422 ../src/guestfs-actions.pod:3436
22730 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3465
22731 #: ../src/guestfs-actions.pod:3481 ../src/guestfs-actions.pod:3496
22732 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3526
22733 #: ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3553
22734 #: ../src/guestfs-actions.pod:3568 ../src/guestfs-actions.pod:3583
22735 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3610
22736 #: ../src/guestfs-actions.pod:5339
22737 msgid "This function returns a C truth value on success or -1 on error."
22738 msgstr ""
22739
22740 #. type: =head2
22741 #: ../src/guestfs-actions.pod:712
22742 msgid "guestfs_blockdev_getsize64"
22743 msgstr ""
22744
22745 #. type: verbatim
22746 #: ../src/guestfs-actions.pod:714
22747 #, no-wrap
22748 msgid ""
22749 " int64_t\n"
22750 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
22751 "                             const char *device);\n"
22752 "\n"
22753 msgstr ""
22754
22755 #. type: textblock
22756 #: ../src/guestfs-actions.pod:720
22757 msgid "See also C<guestfs_blockdev_getsz>."
22758 msgstr ""
22759
22760 #. type: =head2
22761 #: ../src/guestfs-actions.pod:728
22762 msgid "guestfs_blockdev_getss"
22763 msgstr ""
22764
22765 #. type: verbatim
22766 #: ../src/guestfs-actions.pod:730
22767 #, no-wrap
22768 msgid ""
22769 " int\n"
22770 " guestfs_blockdev_getss (guestfs_h *g,\n"
22771 "                         const char *device);\n"
22772 "\n"
22773 msgstr ""
22774
22775 #. type: textblock
22776 #: ../src/guestfs-actions.pod:737
22777 msgid ""
22778 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
22779 "that)."
22780 msgstr ""
22781
22782 #. type: =head2
22783 #: ../src/guestfs-actions.pod:746
22784 msgid "guestfs_blockdev_getsz"
22785 msgstr ""
22786
22787 #. type: verbatim
22788 #: ../src/guestfs-actions.pod:748
22789 #, no-wrap
22790 msgid ""
22791 " int64_t\n"
22792 " guestfs_blockdev_getsz (guestfs_h *g,\n"
22793 "                         const char *device);\n"
22794 "\n"
22795 msgstr ""
22796
22797 #. type: textblock
22798 #: ../src/guestfs-actions.pod:755
22799 msgid ""
22800 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
22801 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
22802 msgstr ""
22803
22804 #. type: =head2
22805 #: ../src/guestfs-actions.pod:765
22806 msgid "guestfs_blockdev_rereadpt"
22807 msgstr ""
22808
22809 #. type: verbatim
22810 #: ../src/guestfs-actions.pod:767
22811 #, no-wrap
22812 msgid ""
22813 " int\n"
22814 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
22815 "                            const char *device);\n"
22816 "\n"
22817 msgstr ""
22818
22819 #. type: =head2
22820 #: ../src/guestfs-actions.pod:779
22821 msgid "guestfs_blockdev_setbsz"
22822 msgstr ""
22823
22824 #. type: verbatim
22825 #: ../src/guestfs-actions.pod:781
22826 #, no-wrap
22827 msgid ""
22828 " int\n"
22829 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
22830 "                          const char *device,\n"
22831 "                          int blocksize);\n"
22832 "\n"
22833 msgstr ""
22834
22835 #. type: =head2
22836 #: ../src/guestfs-actions.pod:797
22837 msgid "guestfs_blockdev_setro"
22838 msgstr ""
22839
22840 #. type: verbatim
22841 #: ../src/guestfs-actions.pod:799
22842 #, no-wrap
22843 msgid ""
22844 " int\n"
22845 " guestfs_blockdev_setro (guestfs_h *g,\n"
22846 "                         const char *device);\n"
22847 "\n"
22848 msgstr ""
22849
22850 #. type: =head2
22851 #: ../src/guestfs-actions.pod:811
22852 msgid "guestfs_blockdev_setrw"
22853 msgstr ""
22854
22855 #. type: verbatim
22856 #: ../src/guestfs-actions.pod:813
22857 #, no-wrap
22858 msgid ""
22859 " int\n"
22860 " guestfs_blockdev_setrw (guestfs_h *g,\n"
22861 "                         const char *device);\n"
22862 "\n"
22863 msgstr ""
22864
22865 #. type: =head2
22866 #: ../src/guestfs-actions.pod:825
22867 msgid "guestfs_btrfs_filesystem_resize"
22868 msgstr ""
22869
22870 #. type: verbatim
22871 #: ../src/guestfs-actions.pod:827
22872 #, no-wrap
22873 msgid ""
22874 " int\n"
22875 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
22876 "                                  const char *mountpoint,\n"
22877 "                                  ...);\n"
22878 "\n"
22879 msgstr ""
22880
22881 #. type: verbatim
22882 #: ../src/guestfs-actions.pod:837
22883 #, no-wrap
22884 msgid ""
22885 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
22886 "\n"
22887 msgstr ""
22888
22889 #. type: textblock
22890 #: ../src/guestfs-actions.pod:860
22891 msgid "(Added in 1.11.17)"
22892 msgstr ""
22893
22894 #. type: =head2
22895 #: ../src/guestfs-actions.pod:862
22896 msgid "guestfs_btrfs_filesystem_resize_va"
22897 msgstr ""
22898
22899 #. type: verbatim
22900 #: ../src/guestfs-actions.pod:864
22901 #, no-wrap
22902 msgid ""
22903 " int\n"
22904 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
22905 "                                     const char *mountpoint,\n"
22906 "                                     va_list args);\n"
22907 "\n"
22908 msgstr ""
22909
22910 #. type: textblock
22911 #: ../src/guestfs-actions.pod:869
22912 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
22913 msgstr ""
22914
22915 #. type: =head2
22916 #: ../src/guestfs-actions.pod:873
22917 msgid "guestfs_btrfs_filesystem_resize_argv"
22918 msgstr ""
22919
22920 #. type: verbatim
22921 #: ../src/guestfs-actions.pod:875
22922 #, no-wrap
22923 msgid ""
22924 " int\n"
22925 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
22926 "                                       const char *mountpoint,\n"
22927 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
22928 "\n"
22929 msgstr ""
22930
22931 #. type: textblock
22932 #: ../src/guestfs-actions.pod:880
22933 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
22934 msgstr ""
22935
22936 #. type: =head2
22937 #: ../src/guestfs-actions.pod:884
22938 msgid "guestfs_case_sensitive_path"
22939 msgstr ""
22940
22941 #. type: verbatim
22942 #: ../src/guestfs-actions.pod:886
22943 #, no-wrap
22944 msgid ""
22945 " char *\n"
22946 " guestfs_case_sensitive_path (guestfs_h *g,\n"
22947 "                              const char *path);\n"
22948 "\n"
22949 msgstr ""
22950
22951 #. type: textblock
22952 #: ../src/guestfs-actions.pod:912
22953 msgid ""
22954 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
22955 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
22956 "how the directories were originally created under Windows)."
22957 msgstr ""
22958
22959 #. type: textblock
22960 #: ../src/guestfs-actions.pod:920
22961 msgid "See also C<guestfs_realpath>."
22962 msgstr ""
22963
22964 #. type: textblock
22965 #: ../src/guestfs-actions.pod:925 ../src/guestfs-actions.pod:7387
22966 msgid "(Added in 1.0.75)"
22967 msgstr ""
22968
22969 #. type: =head2
22970 #: ../src/guestfs-actions.pod:927
22971 msgid "guestfs_cat"
22972 msgstr ""
22973
22974 #. type: verbatim
22975 #: ../src/guestfs-actions.pod:929
22976 #, no-wrap
22977 msgid ""
22978 " char *\n"
22979 " guestfs_cat (guestfs_h *g,\n"
22980 "              const char *path);\n"
22981 "\n"
22982 msgstr ""
22983
22984 #. type: textblock
22985 #: ../src/guestfs-actions.pod:935
22986 msgid ""
22987 "Note that this function cannot correctly handle binary files (specifically, "
22988 "files containing C<\\0> character which is treated as end of string).  For "
22989 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
22990 "functions which have a more complex interface."
22991 msgstr ""
22992
22993 #. type: textblock
22994 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:3740
22995 #: ../src/guestfs-actions.pod:3822 ../src/guestfs-actions.pod:3839
22996 #: ../src/guestfs-actions.pod:3927 ../src/guestfs-actions.pod:4335
22997 #: ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:5720
22998 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:7540
22999 #: ../src/guestfs-actions.pod:7554
23000 msgid "(Added in 0.4)"
23001 msgstr ""
23002
23003 #. type: =head2
23004 #: ../src/guestfs-actions.pod:948
23005 msgid "guestfs_checksum"
23006 msgstr ""
23007
23008 #. type: verbatim
23009 #: ../src/guestfs-actions.pod:950
23010 #, no-wrap
23011 msgid ""
23012 " char *\n"
23013 " guestfs_checksum (guestfs_h *g,\n"
23014 "                   const char *csumtype,\n"
23015 "                   const char *path);\n"
23016 "\n"
23017 msgstr ""
23018
23019 #. type: textblock
23020 #: ../src/guestfs-actions.pod:996
23021 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
23022 msgstr ""
23023
23024 #. type: textblock
23025 #: ../src/guestfs-actions.pod:998
23026 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
23027 msgstr ""
23028
23029 #. type: textblock
23030 #: ../src/guestfs-actions.pod:1003 ../src/guestfs-actions.pod:1311
23031 #: ../src/guestfs-actions.pod:2158 ../src/guestfs-actions.pod:3438
23032 #: ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:3528
23033 #: ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:7243
23034 msgid "(Added in 1.0.2)"
23035 msgstr ""
23036
23037 #. type: =head2
23038 #: ../src/guestfs-actions.pod:1005
23039 msgid "guestfs_checksum_device"
23040 msgstr ""
23041
23042 #. type: verbatim
23043 #: ../src/guestfs-actions.pod:1007
23044 #, no-wrap
23045 msgid ""
23046 " char *\n"
23047 " guestfs_checksum_device (guestfs_h *g,\n"
23048 "                          const char *csumtype,\n"
23049 "                          const char *device);\n"
23050 "\n"
23051 msgstr ""
23052
23053 #. type: textblock
23054 #: ../src/guestfs-actions.pod:1012
23055 msgid ""
23056 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
23057 "device named C<device>.  For the types of checksums supported see the "
23058 "C<guestfs_checksum> command."
23059 msgstr ""
23060
23061 #. type: textblock
23062 #: ../src/guestfs-actions.pod:1019 ../src/guestfs-actions.pod:5169
23063 #: ../src/guestfs-actions.pod:5304 ../src/guestfs-actions.pod:5341
23064 #: ../src/guestfs-actions.pod:5359 ../src/guestfs-actions.pod:5541
23065 #: ../src/guestfs-actions.pod:7152 ../src/guestfs-actions.pod:7166
23066 #: ../src/guestfs-actions.pod:7566
23067 msgid "(Added in 1.3.2)"
23068 msgstr ""
23069
23070 #. type: =head2
23071 #: ../src/guestfs-actions.pod:1021
23072 msgid "guestfs_checksums_out"
23073 msgstr ""
23074
23075 #. type: verbatim
23076 #: ../src/guestfs-actions.pod:1023
23077 #, no-wrap
23078 msgid ""
23079 " int\n"
23080 " guestfs_checksums_out (guestfs_h *g,\n"
23081 "                        const char *csumtype,\n"
23082 "                        const char *directory,\n"
23083 "                        const char *sumsfile);\n"
23084 "\n"
23085 msgstr ""
23086
23087 #. type: textblock
23088 #: ../src/guestfs-actions.pod:1043
23089 msgid "(Added in 1.3.7)"
23090 msgstr ""
23091
23092 #. type: =head2
23093 #: ../src/guestfs-actions.pod:1045
23094 msgid "guestfs_chmod"
23095 msgstr ""
23096
23097 #. type: verbatim
23098 #: ../src/guestfs-actions.pod:1047
23099 #, no-wrap
23100 msgid ""
23101 " int\n"
23102 " guestfs_chmod (guestfs_h *g,\n"
23103 "                int mode,\n"
23104 "                const char *path);\n"
23105 "\n"
23106 msgstr ""
23107
23108 #. type: =head2
23109 #: ../src/guestfs-actions.pod:1065
23110 msgid "guestfs_chown"
23111 msgstr ""
23112
23113 #. type: verbatim
23114 #: ../src/guestfs-actions.pod:1067
23115 #, no-wrap
23116 msgid ""
23117 " int\n"
23118 " guestfs_chown (guestfs_h *g,\n"
23119 "                int owner,\n"
23120 "                int group,\n"
23121 "                const char *path);\n"
23122 "\n"
23123 msgstr ""
23124
23125 #. type: =head2
23126 #: ../src/guestfs-actions.pod:1083
23127 msgid "guestfs_command"
23128 msgstr ""
23129
23130 #. type: verbatim
23131 #: ../src/guestfs-actions.pod:1085
23132 #, no-wrap
23133 msgid ""
23134 " char *\n"
23135 " guestfs_command (guestfs_h *g,\n"
23136 "                  char *const *arguments);\n"
23137 "\n"
23138 msgstr ""
23139
23140 #. type: textblock
23141 #: ../src/guestfs-actions.pod:1094
23142 msgid ""
23143 "The single parameter is an argv-style list of arguments.  The first element "
23144 "is the name of the program to run.  Subsequent elements are parameters.  The "
23145 "list must be non-empty (ie. must contain a program name).  Note that the "
23146 "command runs directly, and is I<not> invoked via the shell (see "
23147 "C<guestfs_sh>)."
23148 msgstr ""
23149
23150 #. type: textblock
23151 #: ../src/guestfs-actions.pod:1125 ../src/guestfs-actions.pod:1145
23152 #: ../src/guestfs-actions.pod:1610
23153 msgid "(Added in 0.9.1)"
23154 msgstr ""
23155
23156 #. type: =head2
23157 #: ../src/guestfs-actions.pod:1127
23158 msgid "guestfs_command_lines"
23159 msgstr ""
23160
23161 #. type: verbatim
23162 #: ../src/guestfs-actions.pod:1129
23163 #, no-wrap
23164 msgid ""
23165 " char **\n"
23166 " guestfs_command_lines (guestfs_h *g,\n"
23167 "                        char *const *arguments);\n"
23168 "\n"
23169 msgstr ""
23170
23171 #. type: textblock
23172 #: ../src/guestfs-actions.pod:1133
23173 msgid ""
23174 "This is the same as C<guestfs_command>, but splits the result into a list of "
23175 "lines."
23176 msgstr ""
23177
23178 #. type: textblock
23179 #: ../src/guestfs-actions.pod:1136
23180 msgid "See also: C<guestfs_sh_lines>"
23181 msgstr ""
23182
23183 #. type: =head2
23184 #: ../src/guestfs-actions.pod:1147
23185 msgid "guestfs_config"
23186 msgstr ""
23187
23188 #. type: verbatim
23189 #: ../src/guestfs-actions.pod:1149
23190 #, no-wrap
23191 msgid ""
23192 " int\n"
23193 " guestfs_config (guestfs_h *g,\n"
23194 "                 const char *qemuparam,\n"
23195 "                 const char *qemuvalue);\n"
23196 "\n"
23197 msgstr ""
23198
23199 #. type: =head2
23200 #: ../src/guestfs-actions.pod:1167
23201 msgid "guestfs_copy_size"
23202 msgstr ""
23203
23204 #. type: verbatim
23205 #: ../src/guestfs-actions.pod:1169
23206 #, no-wrap
23207 msgid ""
23208 " int\n"
23209 " guestfs_copy_size (guestfs_h *g,\n"
23210 "                    const char *src,\n"
23211 "                    const char *dest,\n"
23212 "                    int64_t size);\n"
23213 "\n"
23214 msgstr ""
23215
23216 #. type: textblock
23217 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1306
23218 #: ../src/guestfs-actions.pod:1337 ../src/guestfs-actions.pod:1382
23219 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:1781
23220 #: ../src/guestfs-actions.pod:3638 ../src/guestfs-actions.pod:7238
23221 #: ../src/guestfs-actions.pod:7272 ../src/guestfs-actions.pod:7775
23222 #: ../src/guestfs-actions.pod:7794
23223 msgid ""
23224 "This long-running command can generate progress notification messages so "
23225 "that the caller can display a progress bar or indicator.  To receive these "
23226 "messages, the caller must register a progress event callback.  See L<guestfs"
23227 "(3)/GUESTFS_EVENT_PROGRESS>."
23228 msgstr ""
23229
23230 #. type: textblock
23231 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:4362
23232 #: ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:7473
23233 #: ../src/guestfs-actions.pod:7493 ../src/guestfs-actions.pod:7579
23234 msgid "(Added in 1.0.87)"
23235 msgstr ""
23236
23237 #. type: =head2
23238 #: ../src/guestfs-actions.pod:1190
23239 msgid "guestfs_cp"
23240 msgstr ""
23241
23242 #. type: verbatim
23243 #: ../src/guestfs-actions.pod:1192
23244 #, no-wrap
23245 msgid ""
23246 " int\n"
23247 " guestfs_cp (guestfs_h *g,\n"
23248 "             const char *src,\n"
23249 "             const char *dest);\n"
23250 "\n"
23251 msgstr ""
23252
23253 #. type: textblock
23254 #: ../src/guestfs-actions.pod:1202 ../src/guestfs-actions.pod:1216
23255 #: ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:1362
23256 #: ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:5116
23257 #: ../src/guestfs-actions.pod:5591
23258 msgid "(Added in 1.0.18)"
23259 msgstr ""
23260
23261 #. type: =head2
23262 #: ../src/guestfs-actions.pod:1204
23263 msgid "guestfs_cp_a"
23264 msgstr ""
23265
23266 #. type: verbatim
23267 #: ../src/guestfs-actions.pod:1206
23268 #, no-wrap
23269 msgid ""
23270 " int\n"
23271 " guestfs_cp_a (guestfs_h *g,\n"
23272 "               const char *src,\n"
23273 "               const char *dest);\n"
23274 "\n"
23275 msgstr ""
23276
23277 #. type: =head2
23278 #: ../src/guestfs-actions.pod:1218
23279 msgid "guestfs_dd"
23280 msgstr ""
23281
23282 #. type: verbatim
23283 #: ../src/guestfs-actions.pod:1220
23284 #, no-wrap
23285 msgid ""
23286 " int\n"
23287 " guestfs_dd (guestfs_h *g,\n"
23288 "             const char *src,\n"
23289 "             const char *dest);\n"
23290 "\n"
23291 msgstr ""
23292
23293 #. type: textblock
23294 #: ../src/guestfs-actions.pod:1230
23295 msgid ""
23296 "If the destination is a device, it must be as large or larger than the "
23297 "source file or device, otherwise the copy will fail.  This command cannot do "
23298 "partial copies (see C<guestfs_copy_size>)."
23299 msgstr ""
23300
23301 #. type: =head2
23302 #: ../src/guestfs-actions.pod:1238
23303 msgid "guestfs_df"
23304 msgstr ""
23305
23306 #. type: verbatim
23307 #: ../src/guestfs-actions.pod:1240
23308 #, no-wrap
23309 msgid ""
23310 " char *\n"
23311 " guestfs_df (guestfs_h *g);\n"
23312 "\n"
23313 msgstr ""
23314
23315 #. type: textblock
23316 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1262
23317 msgid ""
23318 "This command is mostly useful for interactive sessions.  It is I<not> "
23319 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
23320 "from programs."
23321 msgstr ""
23322
23323 #. type: textblock
23324 #: ../src/guestfs-actions.pod:1252 ../src/guestfs-actions.pod:1269
23325 #: ../src/guestfs-actions.pod:1387 ../src/guestfs-actions.pod:2361
23326 #: ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:2453
23327 #: ../src/guestfs-actions.pod:4472 ../src/guestfs-actions.pod:5016
23328 #: ../src/guestfs-actions.pod:6976 ../src/guestfs-actions.pod:7000
23329 #: ../src/guestfs-actions.pod:7619 ../src/guestfs-actions.pod:7632
23330 #: ../src/guestfs-actions.pod:7645
23331 msgid "(Added in 1.0.54)"
23332 msgstr ""
23333
23334 #. type: =head2
23335 #: ../src/guestfs-actions.pod:1254
23336 msgid "guestfs_df_h"
23337 msgstr ""
23338
23339 #. type: verbatim
23340 #: ../src/guestfs-actions.pod:1256
23341 #, no-wrap
23342 msgid ""
23343 " char *\n"
23344 " guestfs_df_h (guestfs_h *g);\n"
23345 "\n"
23346 msgstr ""
23347
23348 #. type: =head2
23349 #: ../src/guestfs-actions.pod:1271
23350 msgid "guestfs_dmesg"
23351 msgstr ""
23352
23353 #. type: verbatim
23354 #: ../src/guestfs-actions.pod:1273
23355 #, no-wrap
23356 msgid ""
23357 " char *\n"
23358 " guestfs_dmesg (guestfs_h *g);\n"
23359 "\n"
23360 msgstr ""
23361
23362 #. type: textblock
23363 #: ../src/guestfs-actions.pod:1280
23364 msgid ""
23365 "Another way to get the same information is to enable verbose messages with "
23366 "C<guestfs_set_verbose> or by setting the environment variable "
23367 "C<LIBGUESTFS_DEBUG=1> before running the program."
23368 msgstr ""
23369
23370 #. type: =head2
23371 #: ../src/guestfs-actions.pod:1290
23372 msgid "guestfs_download"
23373 msgstr ""
23374
23375 #. type: verbatim
23376 #: ../src/guestfs-actions.pod:1292
23377 #, no-wrap
23378 msgid ""
23379 " int\n"
23380 " guestfs_download (guestfs_h *g,\n"
23381 "                   const char *remotefilename,\n"
23382 "                   const char *filename);\n"
23383 "\n"
23384 msgstr ""
23385
23386 #. type: textblock
23387 #: ../src/guestfs-actions.pod:1302
23388 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
23389 msgstr ""
23390
23391 #. type: =head2
23392 #: ../src/guestfs-actions.pod:1313
23393 msgid "guestfs_download_offset"
23394 msgstr ""
23395
23396 #. type: verbatim
23397 #: ../src/guestfs-actions.pod:1315
23398 #, no-wrap
23399 msgid ""
23400 " int\n"
23401 " guestfs_download_offset (guestfs_h *g,\n"
23402 "                          const char *remotefilename,\n"
23403 "                          const char *filename,\n"
23404 "                          int64_t offset,\n"
23405 "                          int64_t size);\n"
23406 "\n"
23407 msgstr ""
23408
23409 #. type: textblock
23410 #: ../src/guestfs-actions.pod:1328
23411 msgid ""
23412 "Note that there is no limit on the amount of data that can be downloaded "
23413 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
23414 "full amount unless an error occurs."
23415 msgstr ""
23416
23417 #. type: textblock
23418 #: ../src/guestfs-actions.pod:1333
23419 msgid "See also C<guestfs_download>, C<guestfs_pread>."
23420 msgstr ""
23421
23422 #. type: textblock
23423 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:7277
23424 msgid "(Added in 1.5.17)"
23425 msgstr ""
23426
23427 #. type: =head2
23428 #: ../src/guestfs-actions.pod:1344
23429 msgid "guestfs_drop_caches"
23430 msgstr ""
23431
23432 #. type: verbatim
23433 #: ../src/guestfs-actions.pod:1346
23434 #, no-wrap
23435 msgid ""
23436 " int\n"
23437 " guestfs_drop_caches (guestfs_h *g,\n"
23438 "                      int whattodrop);\n"
23439 "\n"
23440 msgstr ""
23441
23442 #. type: =head2
23443 #: ../src/guestfs-actions.pod:1364
23444 msgid "guestfs_du"
23445 msgstr ""
23446
23447 #. type: verbatim
23448 #: ../src/guestfs-actions.pod:1366
23449 #, no-wrap
23450 msgid ""
23451 " int64_t\n"
23452 " guestfs_du (guestfs_h *g,\n"
23453 "             const char *path);\n"
23454 "\n"
23455 msgstr ""
23456
23457 #. type: =head2
23458 #: ../src/guestfs-actions.pod:1389
23459 msgid "guestfs_e2fsck_f"
23460 msgstr ""
23461
23462 #. type: verbatim
23463 #: ../src/guestfs-actions.pod:1391
23464 #, no-wrap
23465 msgid ""
23466 " int\n"
23467 " guestfs_e2fsck_f (guestfs_h *g,\n"
23468 "                   const char *device);\n"
23469 "\n"
23470 msgstr ""
23471
23472 #. type: textblock
23473 #: ../src/guestfs-actions.pod:1399
23474 msgid ""
23475 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
23476 "Normally you should use C<guestfs_fsck>."
23477 msgstr ""
23478
23479 #. type: textblock
23480 #: ../src/guestfs-actions.pod:1404
23481 msgid "(Added in 1.0.29)"
23482 msgstr ""
23483
23484 #. type: =head2
23485 #: ../src/guestfs-actions.pod:1406
23486 msgid "guestfs_echo_daemon"
23487 msgstr ""
23488
23489 #. type: verbatim
23490 #: ../src/guestfs-actions.pod:1408
23491 #, no-wrap
23492 msgid ""
23493 " char *\n"
23494 " guestfs_echo_daemon (guestfs_h *g,\n"
23495 "                      char *const *words);\n"
23496 "\n"
23497 msgstr ""
23498
23499 #. type: textblock
23500 #: ../src/guestfs-actions.pod:1417
23501 msgid "See also C<guestfs_ping_daemon>."
23502 msgstr ""
23503
23504 #. type: textblock
23505 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:2169
23506 #: ../src/guestfs-actions.pod:6448
23507 msgid "(Added in 1.0.69)"
23508 msgstr ""
23509
23510 #. type: =head2
23511 #: ../src/guestfs-actions.pod:1424
23512 msgid "guestfs_egrep"
23513 msgstr ""
23514
23515 #. type: verbatim
23516 #: ../src/guestfs-actions.pod:1426
23517 #, no-wrap
23518 msgid ""
23519 " char **\n"
23520 " guestfs_egrep (guestfs_h *g,\n"
23521 "                const char *regex,\n"
23522 "                const char *path);\n"
23523 "\n"
23524 msgstr ""
23525
23526 #. type: textblock
23527 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1460
23528 #: ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:1563
23529 #: ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:2299
23530 #: ../src/guestfs-actions.pod:2318 ../src/guestfs-actions.pod:2474
23531 #: ../src/guestfs-actions.pod:2487 ../src/guestfs-actions.pod:2502
23532 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2570
23533 #: ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:3852
23534 #: ../src/guestfs-actions.pod:3866 ../src/guestfs-actions.pod:3879
23535 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:4894
23536 #: ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5974
23537 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6856
23538 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6882
23539 #: ../src/guestfs-actions.pod:6904 ../src/guestfs-actions.pod:6917
23540 #: ../src/guestfs-actions.pod:6930 ../src/guestfs-actions.pod:6943
23541 #: ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:7756
23542 #: ../src/guestfs-actions.pod:7842 ../src/guestfs-actions.pod:7861
23543 #: ../src/guestfs-actions.pod:7907 ../src/guestfs-actions.pod:7926
23544 msgid "(Added in 1.0.66)"
23545 msgstr ""
23546
23547 #. type: =head2
23548 #: ../src/guestfs-actions.pod:1443
23549 msgid "guestfs_egrepi"
23550 msgstr ""
23551
23552 #. type: verbatim
23553 #: ../src/guestfs-actions.pod:1445
23554 #, no-wrap
23555 msgid ""
23556 " char **\n"
23557 " guestfs_egrepi (guestfs_h *g,\n"
23558 "                 const char *regex,\n"
23559 "                 const char *path);\n"
23560 "\n"
23561 msgstr ""
23562
23563 #. type: =head2
23564 #: ../src/guestfs-actions.pod:1462
23565 msgid "guestfs_equal"
23566 msgstr ""
23567
23568 #. type: verbatim
23569 #: ../src/guestfs-actions.pod:1464
23570 #, no-wrap
23571 msgid ""
23572 " int\n"
23573 " guestfs_equal (guestfs_h *g,\n"
23574 "                const char *file1,\n"
23575 "                const char *file2);\n"
23576 "\n"
23577 msgstr ""
23578
23579 #. type: =head2
23580 #: ../src/guestfs-actions.pod:1478
23581 msgid "guestfs_exists"
23582 msgstr ""
23583
23584 #. type: verbatim
23585 #: ../src/guestfs-actions.pod:1480
23586 #, no-wrap
23587 msgid ""
23588 " int\n"
23589 " guestfs_exists (guestfs_h *g,\n"
23590 "                 const char *path);\n"
23591 "\n"
23592 msgstr ""
23593
23594 #. type: textblock
23595 #: ../src/guestfs-actions.pod:1487
23596 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
23597 msgstr ""
23598
23599 #. type: =head2
23600 #: ../src/guestfs-actions.pod:1493
23601 msgid "guestfs_fallocate"
23602 msgstr ""
23603
23604 #. type: verbatim
23605 #: ../src/guestfs-actions.pod:1495
23606 #, no-wrap
23607 msgid ""
23608 " int\n"
23609 " guestfs_fallocate (guestfs_h *g,\n"
23610 "                    const char *path,\n"
23611 "                    int len);\n"
23612 "\n"
23613 msgstr ""
23614
23615 #. type: =head2
23616 #: ../src/guestfs-actions.pod:1519
23617 msgid "guestfs_fallocate64"
23618 msgstr ""
23619
23620 #. type: verbatim
23621 #: ../src/guestfs-actions.pod:1521
23622 #, no-wrap
23623 msgid ""
23624 " int\n"
23625 " guestfs_fallocate64 (guestfs_h *g,\n"
23626 "                      const char *path,\n"
23627 "                      int64_t len);\n"
23628 "\n"
23629 msgstr ""
23630
23631 #. type: textblock
23632 #: ../src/guestfs-actions.pod:1530
23633 msgid ""
23634 "Note that this call allocates disk blocks for the file.  To create a sparse "
23635 "file use C<guestfs_truncate_size> instead."
23636 msgstr ""
23637
23638 #. type: textblock
23639 #: ../src/guestfs-actions.pod:1533
23640 msgid ""
23641 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
23642 "oversight it only allowed 30 bit lengths to be specified, effectively "
23643 "limiting the maximum size of files created through that call to 1GB."
23644 msgstr ""
23645
23646 #. type: textblock
23647 #: ../src/guestfs-actions.pod:1544
23648 msgid "(Added in 1.3.17)"
23649 msgstr ""
23650
23651 #. type: =head2
23652 #: ../src/guestfs-actions.pod:1546
23653 msgid "guestfs_fgrep"
23654 msgstr ""
23655
23656 #. type: verbatim
23657 #: ../src/guestfs-actions.pod:1548
23658 #, no-wrap
23659 msgid ""
23660 " char **\n"
23661 " guestfs_fgrep (guestfs_h *g,\n"
23662 "                const char *pattern,\n"
23663 "                const char *path);\n"
23664 "\n"
23665 msgstr ""
23666
23667 #. type: =head2
23668 #: ../src/guestfs-actions.pod:1565
23669 msgid "guestfs_fgrepi"
23670 msgstr ""
23671
23672 #. type: verbatim
23673 #: ../src/guestfs-actions.pod:1567
23674 #, no-wrap
23675 msgid ""
23676 " char **\n"
23677 " guestfs_fgrepi (guestfs_h *g,\n"
23678 "                 const char *pattern,\n"
23679 "                 const char *path);\n"
23680 "\n"
23681 msgstr ""
23682
23683 #. type: =head2
23684 #: ../src/guestfs-actions.pod:1584
23685 msgid "guestfs_file"
23686 msgstr ""
23687
23688 #. type: verbatim
23689 #: ../src/guestfs-actions.pod:1586
23690 #, no-wrap
23691 msgid ""
23692 " char *\n"
23693 " guestfs_file (guestfs_h *g,\n"
23694 "               const char *path);\n"
23695 "\n"
23696 msgstr ""
23697
23698 #. type: textblock
23699 #: ../src/guestfs-actions.pod:1604
23700 msgid ""
23701 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
23702 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
23703 msgstr ""
23704
23705 #. type: =head2
23706 #: ../src/guestfs-actions.pod:1612
23707 msgid "guestfs_file_architecture"
23708 msgstr ""
23709
23710 #. type: verbatim
23711 #: ../src/guestfs-actions.pod:1614
23712 #, no-wrap
23713 msgid ""
23714 " char *\n"
23715 " guestfs_file_architecture (guestfs_h *g,\n"
23716 "                            const char *filename);\n"
23717 "\n"
23718 msgstr ""
23719
23720 #. type: textblock
23721 #: ../src/guestfs-actions.pod:1722 ../src/guestfs-actions.pod:1885
23722 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:2603
23723 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2759
23724 #: ../src/guestfs-actions.pod:2946 ../src/guestfs-actions.pod:2964
23725 #: ../src/guestfs-actions.pod:3004 ../src/guestfs-actions.pod:3079
23726 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3409
23727 #: ../src/guestfs-actions.pod:3541
23728 msgid "(Added in 1.5.3)"
23729 msgstr ""
23730
23731 #. type: =head2
23732 #: ../src/guestfs-actions.pod:1724
23733 msgid "guestfs_filesize"
23734 msgstr ""
23735
23736 #. type: verbatim
23737 #: ../src/guestfs-actions.pod:1726
23738 #, no-wrap
23739 msgid ""
23740 " int64_t\n"
23741 " guestfs_filesize (guestfs_h *g,\n"
23742 "                   const char *file);\n"
23743 "\n"
23744 msgstr ""
23745
23746 #. type: textblock
23747 #: ../src/guestfs-actions.pod:1732
23748 msgid ""
23749 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
23750 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
23751 "devices, use C<guestfs_blockdev_getsize64>."
23752 msgstr ""
23753
23754 #. type: textblock
23755 #: ../src/guestfs-actions.pod:1738
23756 msgid "(Added in 1.0.82)"
23757 msgstr ""
23758
23759 #. type: =head2
23760 #: ../src/guestfs-actions.pod:1740
23761 msgid "guestfs_fill"
23762 msgstr ""
23763
23764 #. type: verbatim
23765 #: ../src/guestfs-actions.pod:1742
23766 #, no-wrap
23767 msgid ""
23768 " int\n"
23769 " guestfs_fill (guestfs_h *g,\n"
23770 "               int c,\n"
23771 "               int len,\n"
23772 "               const char *path);\n"
23773 "\n"
23774 msgstr ""
23775
23776 #. type: textblock
23777 #: ../src/guestfs-actions.pod:1752
23778 msgid ""
23779 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23780 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
23781 "bytes use C<guestfs_fill_pattern>."
23782 msgstr ""
23783
23784 #. type: textblock
23785 #: ../src/guestfs-actions.pod:1764
23786 msgid "(Added in 1.0.79)"
23787 msgstr ""
23788
23789 #. type: =head2
23790 #: ../src/guestfs-actions.pod:1766
23791 msgid "guestfs_fill_pattern"
23792 msgstr ""
23793
23794 #. type: verbatim
23795 #: ../src/guestfs-actions.pod:1768
23796 #, no-wrap
23797 msgid ""
23798 " int\n"
23799 " guestfs_fill_pattern (guestfs_h *g,\n"
23800 "                       const char *pattern,\n"
23801 "                       int len,\n"
23802 "                       const char *path);\n"
23803 "\n"
23804 msgstr ""
23805
23806 #. type: textblock
23807 #: ../src/guestfs-actions.pod:1774
23808 msgid ""
23809 "This function is like C<guestfs_fill> except that it creates a new file of "
23810 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
23811 "pattern is truncated if necessary to ensure the length of the file is "
23812 "exactly C<len> bytes."
23813 msgstr ""
23814
23815 #. type: textblock
23816 #: ../src/guestfs-actions.pod:1786
23817 msgid "(Added in 1.3.12)"
23818 msgstr ""
23819
23820 #. type: =head2
23821 #: ../src/guestfs-actions.pod:1788
23822 msgid "guestfs_find"
23823 msgstr ""
23824
23825 #. type: verbatim
23826 #: ../src/guestfs-actions.pod:1790
23827 #, no-wrap
23828 msgid ""
23829 " char **\n"
23830 " guestfs_find (guestfs_h *g,\n"
23831 "               const char *directory);\n"
23832 "\n"
23833 msgstr ""
23834
23835 #. type: textblock
23836 #: ../src/guestfs-actions.pod:1806
23837 msgid ""
23838 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
23839 msgstr ""
23840
23841 #. type: textblock
23842 #: ../src/guestfs-actions.pod:1819
23843 msgid "See also C<guestfs_find0>."
23844 msgstr ""
23845
23846 #. type: textblock
23847 #: ../src/guestfs-actions.pod:1828 ../src/guestfs-actions.pod:4299
23848 #: ../src/guestfs-actions.pod:6009
23849 msgid "(Added in 1.0.27)"
23850 msgstr ""
23851
23852 #. type: =head2
23853 #: ../src/guestfs-actions.pod:1830
23854 msgid "guestfs_find0"
23855 msgstr ""
23856
23857 #. type: verbatim
23858 #: ../src/guestfs-actions.pod:1832
23859 #, no-wrap
23860 msgid ""
23861 " int\n"
23862 " guestfs_find0 (guestfs_h *g,\n"
23863 "                const char *directory,\n"
23864 "                const char *files);\n"
23865 "\n"
23866 msgstr ""
23867
23868 #. type: textblock
23869 #: ../src/guestfs-actions.pod:1841
23870 msgid ""
23871 "This command works the same way as C<guestfs_find> with the following "
23872 "exceptions:"
23873 msgstr ""
23874
23875 #. type: textblock
23876 #: ../src/guestfs-actions.pod:1868
23877 msgid "(Added in 1.0.74)"
23878 msgstr ""
23879
23880 #. type: =head2
23881 #: ../src/guestfs-actions.pod:1870
23882 msgid "guestfs_findfs_label"
23883 msgstr ""
23884
23885 #. type: verbatim
23886 #: ../src/guestfs-actions.pod:1872
23887 #, no-wrap
23888 msgid ""
23889 " char *\n"
23890 " guestfs_findfs_label (guestfs_h *g,\n"
23891 "                       const char *label);\n"
23892 "\n"
23893 msgstr ""
23894
23895 #. type: textblock
23896 #: ../src/guestfs-actions.pod:1880
23897 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
23898 msgstr ""
23899
23900 #. type: =head2
23901 #: ../src/guestfs-actions.pod:1887
23902 msgid "guestfs_findfs_uuid"
23903 msgstr ""
23904
23905 #. type: verbatim
23906 #: ../src/guestfs-actions.pod:1889
23907 #, no-wrap
23908 msgid ""
23909 " char *\n"
23910 " guestfs_findfs_uuid (guestfs_h *g,\n"
23911 "                      const char *uuid);\n"
23912 "\n"
23913 msgstr ""
23914
23915 #. type: textblock
23916 #: ../src/guestfs-actions.pod:1897
23917 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
23918 msgstr ""
23919
23920 #. type: =head2
23921 #: ../src/guestfs-actions.pod:1904
23922 msgid "guestfs_fsck"
23923 msgstr ""
23924
23925 #. type: verbatim
23926 #: ../src/guestfs-actions.pod:1906
23927 #, no-wrap
23928 msgid ""
23929 " int\n"
23930 " guestfs_fsck (guestfs_h *g,\n"
23931 "               const char *fstype,\n"
23932 "               const char *device);\n"
23933 "\n"
23934 msgstr ""
23935
23936 #. type: textblock
23937 #: ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:7780
23938 msgid "(Added in 1.0.16)"
23939 msgstr ""
23940
23941 #. type: =head2
23942 #: ../src/guestfs-actions.pod:1943
23943 msgid "guestfs_get_append"
23944 msgstr ""
23945
23946 #. type: verbatim
23947 #: ../src/guestfs-actions.pod:1945
23948 #, no-wrap
23949 msgid ""
23950 " const char *\n"
23951 " guestfs_get_append (guestfs_h *g);\n"
23952 "\n"
23953 msgstr ""
23954
23955 #. type: textblock
23956 #: ../src/guestfs-actions.pod:1953
23957 msgid ""
23958 "This function returns a string which may be NULL.  There is no way to return "
23959 "an error from this function.  The string is owned by the guest handle and "
23960 "must I<not> be freed."
23961 msgstr ""
23962
23963 #. type: textblock
23964 #: ../src/guestfs-actions.pod:1957 ../src/guestfs-actions.pod:5687
23965 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6611
23966 #: ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:6646
23967 #: ../src/guestfs-actions.pod:6670 ../src/guestfs-actions.pod:7424
23968 #: ../src/guestfs-actions.pod:7439 ../src/guestfs-actions.pod:7823
23969 msgid "(Added in 1.0.26)"
23970 msgstr ""
23971
23972 #. type: =head2
23973 #: ../src/guestfs-actions.pod:1959
23974 msgid "guestfs_get_attach_method"
23975 msgstr ""
23976
23977 #. type: verbatim
23978 #: ../src/guestfs-actions.pod:1961
23979 #, no-wrap
23980 msgid ""
23981 " char *\n"
23982 " guestfs_get_attach_method (guestfs_h *g);\n"
23983 "\n"
23984 msgstr ""
23985
23986 #. type: textblock
23987 #: ../src/guestfs-actions.pod:1964
23988 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
23989 msgstr ""
23990
23991 #. type: textblock
23992 #: ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:6199
23993 msgid "(Added in 1.9.8)"
23994 msgstr ""
23995
23996 #. type: =head2
23997 #: ../src/guestfs-actions.pod:1971
23998 msgid "guestfs_get_autosync"
23999 msgstr ""
24000
24001 #. type: verbatim
24002 #: ../src/guestfs-actions.pod:1973
24003 #, no-wrap
24004 msgid ""
24005 " int\n"
24006 " guestfs_get_autosync (guestfs_h *g);\n"
24007 "\n"
24008 msgstr ""
24009
24010 #. type: =head2
24011 #: ../src/guestfs-actions.pod:1982
24012 msgid "guestfs_get_direct"
24013 msgstr ""
24014
24015 #. type: verbatim
24016 #: ../src/guestfs-actions.pod:1984
24017 #, no-wrap
24018 msgid ""
24019 " int\n"
24020 " guestfs_get_direct (guestfs_h *g);\n"
24021 "\n"
24022 msgstr ""
24023
24024 #. type: textblock
24025 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:6240
24026 msgid "(Added in 1.0.72)"
24027 msgstr ""
24028
24029 #. type: =head2
24030 #: ../src/guestfs-actions.pod:1993
24031 msgid "guestfs_get_e2label"
24032 msgstr ""
24033
24034 #. type: verbatim
24035 #: ../src/guestfs-actions.pod:1995
24036 #, no-wrap
24037 msgid ""
24038 " char *\n"
24039 " guestfs_get_e2label (guestfs_h *g,\n"
24040 "                      const char *device);\n"
24041 "\n"
24042 msgstr ""
24043
24044 #. type: textblock
24045 #: ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2033
24046 #: ../src/guestfs-actions.pod:6258 ../src/guestfs-actions.pod:6277
24047 msgid "(Added in 1.0.15)"
24048 msgstr ""
24049
24050 #. type: =head2
24051 #: ../src/guestfs-actions.pod:2014
24052 msgid "guestfs_get_e2uuid"
24053 msgstr ""
24054
24055 #. type: verbatim
24056 #: ../src/guestfs-actions.pod:2016
24057 #, no-wrap
24058 msgid ""
24059 " char *\n"
24060 " guestfs_get_e2uuid (guestfs_h *g,\n"
24061 "                     const char *device);\n"
24062 "\n"
24063 msgstr ""
24064
24065 #. type: =head2
24066 #: ../src/guestfs-actions.pod:2035
24067 msgid "guestfs_get_memsize"
24068 msgstr ""
24069
24070 #. type: verbatim
24071 #: ../src/guestfs-actions.pod:2037
24072 #, no-wrap
24073 msgid ""
24074 " int\n"
24075 " guestfs_get_memsize (guestfs_h *g);\n"
24076 "\n"
24077 msgstr ""
24078
24079 #. type: textblock
24080 #: ../src/guestfs-actions.pod:2043
24081 msgid ""
24082 "If C<guestfs_set_memsize> was not called on this handle, and if "
24083 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
24084 "value for memsize."
24085 msgstr ""
24086
24087 #. type: textblock
24088 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:4590
24089 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4818
24090 #: ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:4849
24091 #: ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4879
24092 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:6298
24093 #: ../src/guestfs-actions.pod:6578 ../src/guestfs-actions.pod:7193
24094 msgid "(Added in 1.0.55)"
24095 msgstr ""
24096
24097 #. type: =head2
24098 #: ../src/guestfs-actions.pod:2054
24099 msgid "guestfs_get_network"
24100 msgstr ""
24101
24102 #. type: verbatim
24103 #: ../src/guestfs-actions.pod:2056
24104 #, no-wrap
24105 msgid ""
24106 " int\n"
24107 " guestfs_get_network (guestfs_h *g);\n"
24108 "\n"
24109 msgstr ""
24110
24111 #. type: textblock
24112 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:6317
24113 msgid "(Added in 1.5.4)"
24114 msgstr ""
24115
24116 #. type: =head2
24117 #: ../src/guestfs-actions.pod:2065
24118 msgid "guestfs_get_path"
24119 msgstr ""
24120
24121 #. type: verbatim
24122 #: ../src/guestfs-actions.pod:2067
24123 #, no-wrap
24124 msgid ""
24125 " const char *\n"
24126 " guestfs_get_path (guestfs_h *g);\n"
24127 "\n"
24128 msgstr ""
24129
24130 #. type: textblock
24131 #: ../src/guestfs-actions.pod:2075 ../src/guestfs-actions.pod:2115
24132 msgid ""
24133 "This function returns a string, or NULL on error.  The string is owned by "
24134 "the guest handle and must I<not> be freed."
24135 msgstr ""
24136
24137 #. type: =head2
24138 #: ../src/guestfs-actions.pod:2080
24139 msgid "guestfs_get_pgroup"
24140 msgstr ""
24141
24142 #. type: verbatim
24143 #: ../src/guestfs-actions.pod:2082
24144 #, no-wrap
24145 msgid ""
24146 " int\n"
24147 " guestfs_get_pgroup (guestfs_h *g);\n"
24148 "\n"
24149 msgstr ""
24150
24151 #. type: textblock
24152 #: ../src/guestfs-actions.pod:2089 ../src/guestfs-actions.pod:6353
24153 #: ../src/guestfs-actions.pod:7685
24154 msgid "(Added in 1.11.18)"
24155 msgstr ""
24156
24157 #. type: =head2
24158 #: ../src/guestfs-actions.pod:2091
24159 msgid "guestfs_get_pid"
24160 msgstr ""
24161
24162 #. type: verbatim
24163 #: ../src/guestfs-actions.pod:2093
24164 #, no-wrap
24165 msgid ""
24166 " int\n"
24167 " guestfs_get_pid (guestfs_h *g);\n"
24168 "\n"
24169 msgstr ""
24170
24171 #. type: textblock
24172 #: ../src/guestfs-actions.pod:2103
24173 msgid "(Added in 1.0.56)"
24174 msgstr ""
24175
24176 #. type: =head2
24177 #: ../src/guestfs-actions.pod:2105
24178 msgid "guestfs_get_qemu"
24179 msgstr ""
24180
24181 #. type: verbatim
24182 #: ../src/guestfs-actions.pod:2107
24183 #, no-wrap
24184 msgid ""
24185 " const char *\n"
24186 " guestfs_get_qemu (guestfs_h *g);\n"
24187 "\n"
24188 msgstr ""
24189
24190 #. type: textblock
24191 #: ../src/guestfs-actions.pod:2118 ../src/guestfs-actions.pod:6381
24192 msgid "(Added in 1.0.6)"
24193 msgstr ""
24194
24195 #. type: =head2
24196 #: ../src/guestfs-actions.pod:2120
24197 msgid "guestfs_get_recovery_proc"
24198 msgstr ""
24199
24200 #. type: verbatim
24201 #: ../src/guestfs-actions.pod:2122
24202 #, no-wrap
24203 msgid ""
24204 " int\n"
24205 " guestfs_get_recovery_proc (guestfs_h *g);\n"
24206 "\n"
24207 msgstr ""
24208
24209 #. type: textblock
24210 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3663
24211 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4397
24212 #: ../src/guestfs-actions.pod:4429 ../src/guestfs-actions.pod:5617
24213 #: ../src/guestfs-actions.pod:5960 ../src/guestfs-actions.pod:6405
24214 #: ../src/guestfs-actions.pod:7096 ../src/guestfs-actions.pod:7116
24215 #: ../src/guestfs-actions.pod:7308
24216 msgid "(Added in 1.0.77)"
24217 msgstr ""
24218
24219 #. type: =head2
24220 #: ../src/guestfs-actions.pod:2131
24221 msgid "guestfs_get_selinux"
24222 msgstr ""
24223
24224 #. type: verbatim
24225 #: ../src/guestfs-actions.pod:2133
24226 #, no-wrap
24227 msgid ""
24228 " int\n"
24229 " guestfs_get_selinux (guestfs_h *g);\n"
24230 "\n"
24231 msgstr ""
24232
24233 #. type: textblock
24234 #: ../src/guestfs-actions.pod:2136
24235 msgid ""
24236 "This returns the current setting of the selinux flag which is passed to the "
24237 "appliance at boot time.  See C<guestfs_set_selinux>."
24238 msgstr ""
24239
24240 #. type: textblock
24241 #: ../src/guestfs-actions.pod:2144 ../src/guestfs-actions.pod:2207
24242 #: ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6482
24243 msgid "(Added in 1.0.67)"
24244 msgstr ""
24245
24246 #. type: =head2
24247 #: ../src/guestfs-actions.pod:2146
24248 msgid "guestfs_get_state"
24249 msgstr ""
24250
24251 #. type: verbatim
24252 #: ../src/guestfs-actions.pod:2148
24253 #, no-wrap
24254 msgid ""
24255 " int\n"
24256 " guestfs_get_state (guestfs_h *g);\n"
24257 "\n"
24258 msgstr ""
24259
24260 #. type: =head2
24261 #: ../src/guestfs-actions.pod:2160
24262 msgid "guestfs_get_trace"
24263 msgstr ""
24264
24265 #. type: verbatim
24266 #: ../src/guestfs-actions.pod:2162
24267 #, no-wrap
24268 msgid ""
24269 " int\n"
24270 " guestfs_get_trace (guestfs_h *g);\n"
24271 "\n"
24272 msgstr ""
24273
24274 #. type: =head2
24275 #: ../src/guestfs-actions.pod:2171
24276 msgid "guestfs_get_umask"
24277 msgstr ""
24278
24279 #. type: verbatim
24280 #: ../src/guestfs-actions.pod:2173
24281 #, no-wrap
24282 msgid ""
24283 " int\n"
24284 " guestfs_get_umask (guestfs_h *g);\n"
24285 "\n"
24286 msgstr ""
24287
24288 #. type: textblock
24289 #: ../src/guestfs-actions.pod:2176
24290 msgid ""
24291 "Return the current umask.  By default the umask is C<022> unless it has been "
24292 "set by calling C<guestfs_umask>."
24293 msgstr ""
24294
24295 #. type: =head2
24296 #: ../src/guestfs-actions.pod:2183
24297 msgid "guestfs_get_verbose"
24298 msgstr ""
24299
24300 #. type: verbatim
24301 #: ../src/guestfs-actions.pod:2185
24302 #, no-wrap
24303 msgid ""
24304 " int\n"
24305 " guestfs_get_verbose (guestfs_h *g);\n"
24306 "\n"
24307 msgstr ""
24308
24309 #. type: =head2
24310 #: ../src/guestfs-actions.pod:2194
24311 msgid "guestfs_getcon"
24312 msgstr ""
24313
24314 #. type: verbatim
24315 #: ../src/guestfs-actions.pod:2196
24316 #, no-wrap
24317 msgid ""
24318 " char *\n"
24319 " guestfs_getcon (guestfs_h *g);\n"
24320 "\n"
24321 msgstr ""
24322
24323 #. type: textblock
24324 #: ../src/guestfs-actions.pod:2201
24325 msgid ""
24326 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
24327 msgstr ""
24328
24329 #. type: =head2
24330 #: ../src/guestfs-actions.pod:2209
24331 msgid "guestfs_getxattr"
24332 msgstr ""
24333
24334 #. type: verbatim
24335 #: ../src/guestfs-actions.pod:2211
24336 #, no-wrap
24337 msgid ""
24338 " char *\n"
24339 " guestfs_getxattr (guestfs_h *g,\n"
24340 "                   const char *path,\n"
24341 "                   const char *name,\n"
24342 "                   size_t *size_r);\n"
24343 "\n"
24344 msgstr ""
24345
24346 #. type: textblock
24347 #: ../src/guestfs-actions.pod:2217
24348 msgid ""
24349 "Get a single extended attribute from file C<path> named C<name>.  This call "
24350 "follows symlinks.  If you want to lookup an extended attribute for the "
24351 "symlink itself, use C<guestfs_lgetxattr>."
24352 msgstr ""
24353
24354 #. type: textblock
24355 #: ../src/guestfs-actions.pod:2221 ../src/guestfs-actions.pod:3677
24356 msgid ""
24357 "Normally it is better to get all extended attributes from a file in one go "
24358 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
24359 "implementations are buggy and do not provide a way to list out attributes.  "
24360 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
24361 "extended attributes you want in advance and call this function."
24362 msgstr ""
24363
24364 #. type: textblock
24365 #: ../src/guestfs-actions.pod:2231
24366 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
24367 msgstr ""
24368
24369 #. type: textblock
24370 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:2424
24371 #: ../src/guestfs-actions.pod:2894 ../src/guestfs-actions.pod:3689
24372 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
24373 #: ../src/guestfs-actions.pod:5817
24374 msgid ""
24375 "This function returns a buffer, or NULL on error.  The size of the returned "
24376 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
24377 "after use>."
24378 msgstr ""
24379
24380 #. type: textblock
24381 #: ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:3693
24382 msgid "(Added in 1.7.24)"
24383 msgstr ""
24384
24385 #. type: =head2
24386 #: ../src/guestfs-actions.pod:2239
24387 msgid "guestfs_getxattrs"
24388 msgstr ""
24389
24390 #. type: verbatim
24391 #: ../src/guestfs-actions.pod:2241
24392 #, no-wrap
24393 msgid ""
24394 " struct guestfs_xattr_list *\n"
24395 " guestfs_getxattrs (guestfs_h *g,\n"
24396 "                    const char *path);\n"
24397 "\n"
24398 msgstr ""
24399
24400 #. type: textblock
24401 #: ../src/guestfs-actions.pod:2251
24402 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
24403 msgstr ""
24404
24405 #. type: textblock
24406 #: ../src/guestfs-actions.pod:2253 ../src/guestfs-actions.pod:3705
24407 #: ../src/guestfs-actions.pod:4393
24408 msgid ""
24409 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
24410 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
24411 msgstr ""
24412
24413 #. type: textblock
24414 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:3709
24415 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3944
24416 #: ../src/guestfs-actions.pod:5990 ../src/guestfs-actions.pod:6501
24417 #: ../src/guestfs-actions.pod:7888
24418 msgid "(Added in 1.0.59)"
24419 msgstr ""
24420
24421 #. type: =head2
24422 #: ../src/guestfs-actions.pod:2259
24423 msgid "guestfs_glob_expand"
24424 msgstr ""
24425
24426 #. type: verbatim
24427 #: ../src/guestfs-actions.pod:2261
24428 #, no-wrap
24429 msgid ""
24430 " char **\n"
24431 " guestfs_glob_expand (guestfs_h *g,\n"
24432 "                      const char *pattern);\n"
24433 "\n"
24434 msgstr ""
24435
24436 #. type: textblock
24437 #: ../src/guestfs-actions.pod:2280 ../src/guestfs-actions.pod:6694
24438 #: ../src/guestfs-actions.pod:6711
24439 msgid "(Added in 1.0.50)"
24440 msgstr ""
24441
24442 #. type: =head2
24443 #: ../src/guestfs-actions.pod:2282
24444 msgid "guestfs_grep"
24445 msgstr ""
24446
24447 #. type: verbatim
24448 #: ../src/guestfs-actions.pod:2284
24449 #, no-wrap
24450 msgid ""
24451 " char **\n"
24452 " guestfs_grep (guestfs_h *g,\n"
24453 "               const char *regex,\n"
24454 "               const char *path);\n"
24455 "\n"
24456 msgstr ""
24457
24458 #. type: =head2
24459 #: ../src/guestfs-actions.pod:2301
24460 msgid "guestfs_grepi"
24461 msgstr ""
24462
24463 #. type: verbatim
24464 #: ../src/guestfs-actions.pod:2303
24465 #, no-wrap
24466 msgid ""
24467 " char **\n"
24468 " guestfs_grepi (guestfs_h *g,\n"
24469 "                const char *regex,\n"
24470 "                const char *path);\n"
24471 "\n"
24472 msgstr ""
24473
24474 #. type: =head2
24475 #: ../src/guestfs-actions.pod:2320
24476 msgid "guestfs_grub_install"
24477 msgstr ""
24478
24479 #. type: verbatim
24480 #: ../src/guestfs-actions.pod:2322
24481 #, no-wrap
24482 msgid ""
24483 " int\n"
24484 " guestfs_grub_install (guestfs_h *g,\n"
24485 "                       const char *root,\n"
24486 "                       const char *device);\n"
24487 "\n"
24488 msgstr ""
24489
24490 #. type: textblock
24491 #: ../src/guestfs-actions.pod:2343
24492 msgid "(Added in 1.0.17)"
24493 msgstr ""
24494
24495 #. type: =head2
24496 #: ../src/guestfs-actions.pod:2345
24497 msgid "guestfs_head"
24498 msgstr ""
24499
24500 #. type: verbatim
24501 #: ../src/guestfs-actions.pod:2347
24502 #, no-wrap
24503 msgid ""
24504 " char **\n"
24505 " guestfs_head (guestfs_h *g,\n"
24506 "               const char *path);\n"
24507 "\n"
24508 msgstr ""
24509
24510 #. type: =head2
24511 #: ../src/guestfs-actions.pod:2363
24512 msgid "guestfs_head_n"
24513 msgstr ""
24514
24515 #. type: verbatim
24516 #: ../src/guestfs-actions.pod:2365
24517 #, no-wrap
24518 msgid ""
24519 " char **\n"
24520 " guestfs_head_n (guestfs_h *g,\n"
24521 "                 int nrlines,\n"
24522 "                 const char *path);\n"
24523 "\n"
24524 msgstr ""
24525
24526 #. type: =head2
24527 #: ../src/guestfs-actions.pod:2387
24528 msgid "guestfs_hexdump"
24529 msgstr ""
24530
24531 #. type: verbatim
24532 #: ../src/guestfs-actions.pod:2389
24533 #, no-wrap
24534 msgid ""
24535 " char *\n"
24536 " guestfs_hexdump (guestfs_h *g,\n"
24537 "                  const char *path);\n"
24538 "\n"
24539 msgstr ""
24540
24541 #. type: textblock
24542 #: ../src/guestfs-actions.pod:2402 ../src/guestfs-actions.pod:6775
24543 #: ../src/guestfs-actions.pod:6830
24544 msgid "(Added in 1.0.22)"
24545 msgstr ""
24546
24547 #. type: =head2
24548 #: ../src/guestfs-actions.pod:2404
24549 msgid "guestfs_initrd_cat"
24550 msgstr ""
24551
24552 #. type: verbatim
24553 #: ../src/guestfs-actions.pod:2406
24554 #, no-wrap
24555 msgid ""
24556 " char *\n"
24557 " guestfs_initrd_cat (guestfs_h *g,\n"
24558 "                     const char *initrdpath,\n"
24559 "                     const char *filename,\n"
24560 "                     size_t *size_r);\n"
24561 "\n"
24562 msgstr ""
24563
24564 #. type: textblock
24565 #: ../src/guestfs-actions.pod:2422
24566 msgid "See also C<guestfs_initrd_list>."
24567 msgstr ""
24568
24569 #. type: =head2
24570 #: ../src/guestfs-actions.pod:2433
24571 msgid "guestfs_initrd_list"
24572 msgstr ""
24573
24574 #. type: verbatim
24575 #: ../src/guestfs-actions.pod:2435
24576 #, no-wrap
24577 msgid ""
24578 " char **\n"
24579 " guestfs_initrd_list (guestfs_h *g,\n"
24580 "                      const char *path);\n"
24581 "\n"
24582 msgstr ""
24583
24584 #. type: =head2
24585 #: ../src/guestfs-actions.pod:2455
24586 msgid "guestfs_inotify_add_watch"
24587 msgstr ""
24588
24589 #. type: verbatim
24590 #: ../src/guestfs-actions.pod:2457
24591 #, no-wrap
24592 msgid ""
24593 " int64_t\n"
24594 " guestfs_inotify_add_watch (guestfs_h *g,\n"
24595 "                            const char *path,\n"
24596 "                            int mask);\n"
24597 "\n"
24598 msgstr ""
24599
24600 #. type: =head2
24601 #: ../src/guestfs-actions.pod:2476
24602 msgid "guestfs_inotify_close"
24603 msgstr ""
24604
24605 #. type: verbatim
24606 #: ../src/guestfs-actions.pod:2478
24607 #, no-wrap
24608 msgid ""
24609 " int\n"
24610 " guestfs_inotify_close (guestfs_h *g);\n"
24611 "\n"
24612 msgstr ""
24613
24614 #. type: =head2
24615 #: ../src/guestfs-actions.pod:2489
24616 msgid "guestfs_inotify_files"
24617 msgstr ""
24618
24619 #. type: verbatim
24620 #: ../src/guestfs-actions.pod:2491
24621 #, no-wrap
24622 msgid ""
24623 " char **\n"
24624 " guestfs_inotify_files (guestfs_h *g);\n"
24625 "\n"
24626 msgstr ""
24627
24628 #. type: textblock
24629 #: ../src/guestfs-actions.pod:2494
24630 msgid ""
24631 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
24632 "returns a list of pathnames of objects that were touched.  The returned "
24633 "pathnames are sorted and deduplicated."
24634 msgstr ""
24635
24636 #. type: =head2
24637 #: ../src/guestfs-actions.pod:2504
24638 msgid "guestfs_inotify_init"
24639 msgstr ""
24640
24641 #. type: verbatim
24642 #: ../src/guestfs-actions.pod:2506
24643 #, no-wrap
24644 msgid ""
24645 " int\n"
24646 " guestfs_inotify_init (guestfs_h *g,\n"
24647 "                       int maxevents);\n"
24648 "\n"
24649 msgstr ""
24650
24651 #. type: textblock
24652 #: ../src/guestfs-actions.pod:2514
24653 msgid ""
24654 "C<maxevents> is the maximum number of events which will be queued up between "
24655 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
24656 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
24657 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
24658 "throws away events, but records the fact that it threw them away by setting "
24659 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
24660 "C<guestfs_inotify_read>)."
24661 msgstr ""
24662
24663 #. type: textblock
24664 #: ../src/guestfs-actions.pod:2524
24665 msgid ""
24666 "Before any events are generated, you have to add some watches to the "
24667 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
24668 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
24669 msgstr ""
24670
24671 #. type: textblock
24672 #: ../src/guestfs-actions.pod:2530
24673 msgid ""
24674 "Queued up events should be read periodically by calling "
24675 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
24676 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
24677 "often enough then you risk the internal queue overflowing."
24678 msgstr ""
24679
24680 #. type: textblock
24681 #: ../src/guestfs-actions.pod:2537
24682 msgid ""
24683 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
24684 "This also removes any watches automatically."
24685 msgstr ""
24686
24687 #. type: =head2
24688 #: ../src/guestfs-actions.pod:2550
24689 msgid "guestfs_inotify_read"
24690 msgstr ""
24691
24692 #. type: verbatim
24693 #: ../src/guestfs-actions.pod:2552
24694 #, no-wrap
24695 msgid ""
24696 " struct guestfs_inotify_event_list *\n"
24697 " guestfs_inotify_read (guestfs_h *g);\n"
24698 "\n"
24699 msgstr ""
24700
24701 #. type: textblock
24702 #: ../src/guestfs-actions.pod:2566
24703 msgid ""
24704 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
24705 "there was an error.  I<The caller must call "
24706 "C<guestfs_free_inotify_event_list> after use>."
24707 msgstr ""
24708
24709 #. type: =head2
24710 #: ../src/guestfs-actions.pod:2572
24711 msgid "guestfs_inotify_rm_watch"
24712 msgstr ""
24713
24714 #. type: verbatim
24715 #: ../src/guestfs-actions.pod:2574
24716 #, no-wrap
24717 msgid ""
24718 " int\n"
24719 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
24720 "                           int wd);\n"
24721 "\n"
24722 msgstr ""
24723
24724 #. type: textblock
24725 #: ../src/guestfs-actions.pod:2578
24726 msgid ""
24727 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
24728 msgstr ""
24729
24730 #. type: =head2
24731 #: ../src/guestfs-actions.pod:2585
24732 msgid "guestfs_inspect_get_arch"
24733 msgstr ""
24734
24735 #. type: verbatim
24736 #: ../src/guestfs-actions.pod:2587
24737 #, no-wrap
24738 msgid ""
24739 " char *\n"
24740 " guestfs_inspect_get_arch (guestfs_h *g,\n"
24741 "                           const char *root);\n"
24742 "\n"
24743 msgstr ""
24744
24745 #. type: textblock
24746 #: ../src/guestfs-actions.pod:2591
24747 msgid ""
24748 "This returns the architecture of the inspected operating system.  The "
24749 "possible return values are listed under C<guestfs_file_architecture>."
24750 msgstr ""
24751
24752 #. type: =head2
24753 #: ../src/guestfs-actions.pod:2605
24754 msgid "guestfs_inspect_get_distro"
24755 msgstr ""
24756
24757 #. type: verbatim
24758 #: ../src/guestfs-actions.pod:2607
24759 #, no-wrap
24760 msgid ""
24761 " char *\n"
24762 " guestfs_inspect_get_distro (guestfs_h *g,\n"
24763 "                             const char *root);\n"
24764 "\n"
24765 msgstr ""
24766
24767 #. type: =head2
24768 #: ../src/guestfs-actions.pod:2695
24769 msgid "guestfs_inspect_get_drive_mappings"
24770 msgstr ""
24771
24772 #. type: verbatim
24773 #: ../src/guestfs-actions.pod:2697
24774 #, no-wrap
24775 msgid ""
24776 " char **\n"
24777 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
24778 "                                     const char *root);\n"
24779 "\n"
24780 msgstr ""
24781
24782 #. type: textblock
24783 #: ../src/guestfs-actions.pod:2726
24784 msgid ""
24785 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24786 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
24787 msgstr ""
24788
24789 #. type: textblock
24790 #: ../src/guestfs-actions.pod:2730 ../src/guestfs-actions.pod:2998
24791 #: ../src/guestfs-actions.pod:3796 ../src/guestfs-actions.pod:5078
24792 #: ../src/guestfs-actions.pod:7132
24793 msgid ""
24794 "This function returns a NULL-terminated array of strings, or NULL if there "
24795 "was an error.  The array of strings will always have length C<2n+1>, where "
24796 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
24797 "caller must free the strings and the array after use>."
24798 msgstr ""
24799
24800 #. type: textblock
24801 #: ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:3192
24802 msgid "(Added in 1.9.17)"
24803 msgstr ""
24804
24805 #. type: =head2
24806 #: ../src/guestfs-actions.pod:2738
24807 msgid "guestfs_inspect_get_filesystems"
24808 msgstr ""
24809
24810 #. type: verbatim
24811 #: ../src/guestfs-actions.pod:2740
24812 #, no-wrap
24813 msgid ""
24814 " char **\n"
24815 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
24816 "                                  const char *root);\n"
24817 "\n"
24818 msgstr ""
24819
24820 #. type: textblock
24821 #: ../src/guestfs-actions.pod:2752
24822 msgid ""
24823 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24824 "C<guestfs_inspect_get_mountpoints>."
24825 msgstr ""
24826
24827 #. type: =head2
24828 #: ../src/guestfs-actions.pod:2761
24829 msgid "guestfs_inspect_get_format"
24830 msgstr ""
24831
24832 #. type: verbatim
24833 #: ../src/guestfs-actions.pod:2763
24834 #, no-wrap
24835 msgid ""
24836 " char *\n"
24837 " guestfs_inspect_get_format (guestfs_h *g,\n"
24838 "                             const char *root);\n"
24839 "\n"
24840 msgstr ""
24841
24842 #. type: textblock
24843 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:3228
24844 #: ../src/guestfs-actions.pod:3244 ../src/guestfs-actions.pod:3262
24845 #: ../src/guestfs-actions.pod:6028
24846 msgid "(Added in 1.9.4)"
24847 msgstr ""
24848
24849 #. type: =head2
24850 #: ../src/guestfs-actions.pod:2799
24851 msgid "guestfs_inspect_get_hostname"
24852 msgstr ""
24853
24854 #. type: verbatim
24855 #: ../src/guestfs-actions.pod:2801
24856 #, no-wrap
24857 msgid ""
24858 " char *\n"
24859 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
24860 "                               const char *root);\n"
24861 "\n"
24862 msgstr ""
24863
24864 #. type: textblock
24865 #: ../src/guestfs-actions.pod:2816
24866 msgid "(Added in 1.7.9)"
24867 msgstr ""
24868
24869 #. type: =head2
24870 #: ../src/guestfs-actions.pod:2818
24871 msgid "guestfs_inspect_get_icon"
24872 msgstr ""
24873
24874 #. type: verbatim
24875 #: ../src/guestfs-actions.pod:2820
24876 #, no-wrap
24877 msgid ""
24878 " char *\n"
24879 " guestfs_inspect_get_icon (guestfs_h *g,\n"
24880 "                           const char *root,\n"
24881 "                           size_t *size_r,\n"
24882 "                           ...);\n"
24883 "\n"
24884 msgstr ""
24885
24886 #. type: verbatim
24887 #: ../src/guestfs-actions.pod:2831
24888 #, no-wrap
24889 msgid ""
24890 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
24891 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
24892 "\n"
24893 msgstr ""
24894
24895 #. type: textblock
24896 #: ../src/guestfs-actions.pod:2898 ../src/guestfs-actions.pod:3723
24897 #: ../src/guestfs-actions.pod:4977
24898 msgid "(Added in 1.11.12)"
24899 msgstr ""
24900
24901 #. type: =head2
24902 #: ../src/guestfs-actions.pod:2900
24903 msgid "guestfs_inspect_get_icon_va"
24904 msgstr ""
24905
24906 #. type: verbatim
24907 #: ../src/guestfs-actions.pod:2902
24908 #, no-wrap
24909 msgid ""
24910 " char *\n"
24911 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
24912 "                              const char *root,\n"
24913 "                              size_t *size_r,\n"
24914 "                              va_list args);\n"
24915 "\n"
24916 msgstr ""
24917
24918 #. type: textblock
24919 #: ../src/guestfs-actions.pod:2908
24920 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
24921 msgstr ""
24922
24923 #. type: =head2
24924 #: ../src/guestfs-actions.pod:2912
24925 msgid "guestfs_inspect_get_icon_argv"
24926 msgstr ""
24927
24928 #. type: verbatim
24929 #: ../src/guestfs-actions.pod:2914
24930 #, no-wrap
24931 msgid ""
24932 " char *\n"
24933 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
24934 "                                const char *root,\n"
24935 "                                size_t *size_r,\n"
24936 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
24937 "\n"
24938 msgstr ""
24939
24940 #. type: textblock
24941 #: ../src/guestfs-actions.pod:2920
24942 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
24943 msgstr ""
24944
24945 #. type: =head2
24946 #: ../src/guestfs-actions.pod:2924
24947 msgid "guestfs_inspect_get_major_version"
24948 msgstr ""
24949
24950 #. type: verbatim
24951 #: ../src/guestfs-actions.pod:2926
24952 #, no-wrap
24953 msgid ""
24954 " int\n"
24955 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
24956 "                                    const char *root);\n"
24957 "\n"
24958 msgstr ""
24959
24960 #. type: =head2
24961 #: ../src/guestfs-actions.pod:2948
24962 msgid "guestfs_inspect_get_minor_version"
24963 msgstr ""
24964
24965 #. type: verbatim
24966 #: ../src/guestfs-actions.pod:2950
24967 #, no-wrap
24968 msgid ""
24969 " int\n"
24970 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
24971 "                                    const char *root);\n"
24972 "\n"
24973 msgstr ""
24974
24975 #. type: textblock
24976 #: ../src/guestfs-actions.pod:2959
24977 msgid ""
24978 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24979 "C<guestfs_inspect_get_major_version>."
24980 msgstr ""
24981
24982 #. type: =head2
24983 #: ../src/guestfs-actions.pod:2966
24984 msgid "guestfs_inspect_get_mountpoints"
24985 msgstr ""
24986
24987 #. type: verbatim
24988 #: ../src/guestfs-actions.pod:2968
24989 #, no-wrap
24990 msgid ""
24991 " char **\n"
24992 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
24993 "                                  const char *root);\n"
24994 "\n"
24995 msgstr ""
24996
24997 #. type: textblock
24998 #: ../src/guestfs-actions.pod:2989
24999 msgid ""
25000 "For operating systems like Windows which still use drive letters, this call "
25001 "will only return an entry for the first drive \"mounted on\" C</>.  For "
25002 "information about the mapping of drive letters to partitions, see "
25003 "C<guestfs_inspect_get_drive_mappings>."
25004 msgstr ""
25005
25006 #. type: textblock
25007 #: ../src/guestfs-actions.pod:2995
25008 msgid ""
25009 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25010 "C<guestfs_inspect_get_filesystems>."
25011 msgstr ""
25012
25013 #. type: =head2
25014 #: ../src/guestfs-actions.pod:3006
25015 msgid "guestfs_inspect_get_package_format"
25016 msgstr ""
25017
25018 #. type: verbatim
25019 #: ../src/guestfs-actions.pod:3008
25020 #, no-wrap
25021 msgid ""
25022 " char *\n"
25023 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
25024 "                                     const char *root);\n"
25025 "\n"
25026 msgstr ""
25027
25028 #. type: textblock
25029 #: ../src/guestfs-actions.pod:3012
25030 msgid ""
25031 "This function and C<guestfs_inspect_get_package_management> return the "
25032 "package format and package management tool used by the inspected operating "
25033 "system.  For example for Fedora these functions would return C<rpm> (package "
25034 "format) and C<yum> (package management)."
25035 msgstr ""
25036
25037 #. type: textblock
25038 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
25039 msgid "(Added in 1.7.5)"
25040 msgstr ""
25041
25042 #. type: =head2
25043 #: ../src/guestfs-actions.pod:3032
25044 msgid "guestfs_inspect_get_package_management"
25045 msgstr ""
25046
25047 #. type: verbatim
25048 #: ../src/guestfs-actions.pod:3034
25049 #, no-wrap
25050 msgid ""
25051 " char *\n"
25052 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
25053 "                                         const char *root);\n"
25054 "\n"
25055 msgstr ""
25056
25057 #. type: textblock
25058 #: ../src/guestfs-actions.pod:3038
25059 msgid ""
25060 "C<guestfs_inspect_get_package_format> and this function return the package "
25061 "format and package management tool used by the inspected operating system.  "
25062 "For example for Fedora these functions would return C<rpm> (package format) "
25063 "and C<yum> (package management)."
25064 msgstr ""
25065
25066 #. type: =head2
25067 #: ../src/guestfs-actions.pod:3060
25068 msgid "guestfs_inspect_get_product_name"
25069 msgstr ""
25070
25071 #. type: verbatim
25072 #: ../src/guestfs-actions.pod:3062
25073 #, no-wrap
25074 msgid ""
25075 " char *\n"
25076 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
25077 "                                   const char *root);\n"
25078 "\n"
25079 msgstr ""
25080
25081 #. type: =head2
25082 #: ../src/guestfs-actions.pod:3081
25083 msgid "guestfs_inspect_get_product_variant"
25084 msgstr ""
25085
25086 #. type: verbatim
25087 #: ../src/guestfs-actions.pod:3083
25088 #, no-wrap
25089 msgid ""
25090 " char *\n"
25091 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
25092 "                                      const char *root);\n"
25093 "\n"
25094 msgstr ""
25095
25096 #. type: textblock
25097 #: ../src/guestfs-actions.pod:3106
25098 msgid ""
25099 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25100 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
25101 msgstr ""
25102
25103 #. type: textblock
25104 #: ../src/guestfs-actions.pod:3113
25105 msgid "(Added in 1.9.13)"
25106 msgstr ""
25107
25108 #. type: =head2
25109 #: ../src/guestfs-actions.pod:3115
25110 msgid "guestfs_inspect_get_roots"
25111 msgstr ""
25112
25113 #. type: verbatim
25114 #: ../src/guestfs-actions.pod:3117
25115 #, no-wrap
25116 msgid ""
25117 " char **\n"
25118 " guestfs_inspect_get_roots (guestfs_h *g);\n"
25119 "\n"
25120 msgstr ""
25121
25122 #. type: textblock
25123 #: ../src/guestfs-actions.pod:3120
25124 msgid ""
25125 "This function is a convenient way to get the list of root devices, as "
25126 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
25127 "the whole inspection process."
25128 msgstr ""
25129
25130 #. type: textblock
25131 #: ../src/guestfs-actions.pod:3124
25132 msgid ""
25133 "This returns an empty list if either no root devices were found or the "
25134 "caller has not called C<guestfs_inspect_os>."
25135 msgstr ""
25136
25137 #. type: textblock
25138 #: ../src/guestfs-actions.pod:3133
25139 msgid "(Added in 1.7.3)"
25140 msgstr ""
25141
25142 #. type: =head2
25143 #: ../src/guestfs-actions.pod:3135
25144 msgid "guestfs_inspect_get_type"
25145 msgstr ""
25146
25147 #. type: verbatim
25148 #: ../src/guestfs-actions.pod:3137
25149 #, no-wrap
25150 msgid ""
25151 " char *\n"
25152 " guestfs_inspect_get_type (guestfs_h *g,\n"
25153 "                           const char *root);\n"
25154 "\n"
25155 msgstr ""
25156
25157 #. type: =head2
25158 #: ../src/guestfs-actions.pod:3174
25159 msgid "guestfs_inspect_get_windows_current_control_set"
25160 msgstr ""
25161
25162 #. type: verbatim
25163 #: ../src/guestfs-actions.pod:3176
25164 #, no-wrap
25165 msgid ""
25166 " char *\n"
25167 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
25168 "                                                  const char *root);\n"
25169 "\n"
25170 msgstr ""
25171
25172 #. type: =head2
25173 #: ../src/guestfs-actions.pod:3194
25174 msgid "guestfs_inspect_get_windows_systemroot"
25175 msgstr ""
25176
25177 #. type: verbatim
25178 #: ../src/guestfs-actions.pod:3196
25179 #, no-wrap
25180 msgid ""
25181 " char *\n"
25182 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
25183 "                                         const char *root);\n"
25184 "\n"
25185 msgstr ""
25186
25187 #. type: textblock
25188 #: ../src/guestfs-actions.pod:3212
25189 msgid "(Added in 1.5.25)"
25190 msgstr ""
25191
25192 #. type: =head2
25193 #: ../src/guestfs-actions.pod:3214
25194 msgid "guestfs_inspect_is_live"
25195 msgstr ""
25196
25197 #. type: verbatim
25198 #: ../src/guestfs-actions.pod:3216
25199 #, no-wrap
25200 msgid ""
25201 " int\n"
25202 " guestfs_inspect_is_live (guestfs_h *g,\n"
25203 "                          const char *root);\n"
25204 "\n"
25205 msgstr ""
25206
25207 #. type: textblock
25208 #: ../src/guestfs-actions.pod:3220
25209 msgid ""
25210 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25211 "disk), then this returns true if a live image was detected on the disk."
25212 msgstr ""
25213
25214 #. type: =head2
25215 #: ../src/guestfs-actions.pod:3230
25216 msgid "guestfs_inspect_is_multipart"
25217 msgstr ""
25218
25219 #. type: verbatim
25220 #: ../src/guestfs-actions.pod:3232
25221 #, no-wrap
25222 msgid ""
25223 " int\n"
25224 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
25225 "                               const char *root);\n"
25226 "\n"
25227 msgstr ""
25228
25229 #. type: textblock
25230 #: ../src/guestfs-actions.pod:3236
25231 msgid ""
25232 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25233 "disk), then this returns true if the disk is part of a set."
25234 msgstr ""
25235
25236 #. type: =head2
25237 #: ../src/guestfs-actions.pod:3246
25238 msgid "guestfs_inspect_is_netinst"
25239 msgstr ""
25240
25241 #. type: verbatim
25242 #: ../src/guestfs-actions.pod:3248
25243 #, no-wrap
25244 msgid ""
25245 " int\n"
25246 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
25247 "                             const char *root);\n"
25248 "\n"
25249 msgstr ""
25250
25251 #. type: textblock
25252 #: ../src/guestfs-actions.pod:3252
25253 msgid ""
25254 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25255 "disk), then this returns true if the disk is a network installer, ie. not a "
25256 "self-contained install CD but one which is likely to require network access "
25257 "to complete the install."
25258 msgstr ""
25259
25260 #. type: =head2
25261 #: ../src/guestfs-actions.pod:3264
25262 msgid "guestfs_inspect_list_applications"
25263 msgstr ""
25264
25265 #. type: verbatim
25266 #: ../src/guestfs-actions.pod:3266
25267 #, no-wrap
25268 msgid ""
25269 " struct guestfs_application_list *\n"
25270 " guestfs_inspect_list_applications (guestfs_h *g,\n"
25271 "                                    const char *root);\n"
25272 "\n"
25273 msgstr ""
25274
25275 #. type: textblock
25276 #: ../src/guestfs-actions.pod:3272
25277 msgid ""
25278 "I<Note:> This call works differently from other parts of the inspection "
25279 "API.  You have to call C<guestfs_inspect_os>, then "
25280 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
25281 "this.  Listing applications is a significantly more difficult operation "
25282 "which requires access to the full filesystem.  Also note that unlike the "
25283 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
25284 "the libguestfs handle, this call actually reads parts of the mounted "
25285 "filesystems during the call."
25286 msgstr ""
25287
25288 #. type: textblock
25289 #: ../src/guestfs-actions.pod:3362
25290 msgid ""
25291 "This function returns a C<struct guestfs_application_list *>, or NULL if "
25292 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
25293 "after use>."
25294 msgstr ""
25295
25296 #. type: textblock
25297 #: ../src/guestfs-actions.pod:3366
25298 msgid "(Added in 1.7.8)"
25299 msgstr ""
25300
25301 #. type: =head2
25302 #: ../src/guestfs-actions.pod:3368
25303 msgid "guestfs_inspect_os"
25304 msgstr ""
25305
25306 #. type: verbatim
25307 #: ../src/guestfs-actions.pod:3370
25308 #, no-wrap
25309 msgid ""
25310 " char **\n"
25311 " guestfs_inspect_os (guestfs_h *g);\n"
25312 "\n"
25313 msgstr ""
25314
25315 #. type: textblock
25316 #: ../src/guestfs-actions.pod:3386
25317 msgid ""
25318 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
25319 "functions in order to query further information about each operating system, "
25320 "such as the name and version."
25321 msgstr ""
25322
25323 #. type: textblock
25324 #: ../src/guestfs-actions.pod:3391
25325 msgid ""
25326 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
25327 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
25328 "the contents.  This should be called with no disks currently mounted.  The "
25329 "function may also use Augeas, so any existing Augeas handle will be closed."
25330 msgstr ""
25331
25332 #. type: textblock
25333 #: ../src/guestfs-actions.pod:3403 ../src/guestfs-actions.pod:3734
25334 #: ../src/guestfs-actions.pod:3816
25335 msgid "See also C<guestfs_list_filesystems>."
25336 msgstr ""
25337
25338 #. type: =head2
25339 #: ../src/guestfs-actions.pod:3411
25340 msgid "guestfs_is_blockdev"
25341 msgstr ""
25342
25343 #. type: verbatim
25344 #: ../src/guestfs-actions.pod:3413
25345 #, no-wrap
25346 msgid ""
25347 " int\n"
25348 " guestfs_is_blockdev (guestfs_h *g,\n"
25349 "                      const char *path);\n"
25350 "\n"
25351 msgstr ""
25352
25353 #. type: textblock
25354 #: ../src/guestfs-actions.pod:3420 ../src/guestfs-actions.pod:3449
25355 #: ../src/guestfs-actions.pod:3479 ../src/guestfs-actions.pod:3494
25356 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3566
25357 #: ../src/guestfs-actions.pod:3581
25358 msgid "See also C<guestfs_stat>."
25359 msgstr ""
25360
25361 #. type: textblock
25362 #: ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:3453
25363 #: ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3570
25364 #: ../src/guestfs-actions.pod:3585
25365 msgid "(Added in 1.5.10)"
25366 msgstr ""
25367
25368 #. type: =head2
25369 #: ../src/guestfs-actions.pod:3426
25370 msgid "guestfs_is_busy"
25371 msgstr ""
25372
25373 #. type: verbatim
25374 #: ../src/guestfs-actions.pod:3428
25375 #, no-wrap
25376 msgid ""
25377 " int\n"
25378 " guestfs_is_busy (guestfs_h *g);\n"
25379 "\n"
25380 msgstr ""
25381
25382 #. type: =head2
25383 #: ../src/guestfs-actions.pod:3440
25384 msgid "guestfs_is_chardev"
25385 msgstr ""
25386
25387 #. type: verbatim
25388 #: ../src/guestfs-actions.pod:3442
25389 #, no-wrap
25390 msgid ""
25391 " int\n"
25392 " guestfs_is_chardev (guestfs_h *g,\n"
25393 "                     const char *path);\n"
25394 "\n"
25395 msgstr ""
25396
25397 #. type: =head2
25398 #: ../src/guestfs-actions.pod:3455
25399 msgid "guestfs_is_config"
25400 msgstr ""
25401
25402 #. type: verbatim
25403 #: ../src/guestfs-actions.pod:3457
25404 #, no-wrap
25405 msgid ""
25406 " int\n"
25407 " guestfs_is_config (guestfs_h *g);\n"
25408 "\n"
25409 msgstr ""
25410
25411 #. type: =head2
25412 #: ../src/guestfs-actions.pod:3469
25413 msgid "guestfs_is_dir"
25414 msgstr ""
25415
25416 #. type: verbatim
25417 #: ../src/guestfs-actions.pod:3471
25418 #, no-wrap
25419 msgid ""
25420 " int\n"
25421 " guestfs_is_dir (guestfs_h *g,\n"
25422 "                 const char *path);\n"
25423 "\n"
25424 msgstr ""
25425
25426 #. type: =head2
25427 #: ../src/guestfs-actions.pod:3485
25428 msgid "guestfs_is_fifo"
25429 msgstr ""
25430
25431 #. type: verbatim
25432 #: ../src/guestfs-actions.pod:3487
25433 #, no-wrap
25434 msgid ""
25435 " int\n"
25436 " guestfs_is_fifo (guestfs_h *g,\n"
25437 "                  const char *path);\n"
25438 "\n"
25439 msgstr ""
25440
25441 #. type: =head2
25442 #: ../src/guestfs-actions.pod:3500
25443 msgid "guestfs_is_file"
25444 msgstr ""
25445
25446 #. type: verbatim
25447 #: ../src/guestfs-actions.pod:3502
25448 #, no-wrap
25449 msgid ""
25450 " int\n"
25451 " guestfs_is_file (guestfs_h *g,\n"
25452 "                  const char *path);\n"
25453 "\n"
25454 msgstr ""
25455
25456 #. type: =head2
25457 #: ../src/guestfs-actions.pod:3516
25458 msgid "guestfs_is_launching"
25459 msgstr ""
25460
25461 #. type: verbatim
25462 #: ../src/guestfs-actions.pod:3518
25463 #, no-wrap
25464 msgid ""
25465 " int\n"
25466 " guestfs_is_launching (guestfs_h *g);\n"
25467 "\n"
25468 msgstr ""
25469
25470 #. type: =head2
25471 #: ../src/guestfs-actions.pod:3530
25472 msgid "guestfs_is_lv"
25473 msgstr ""
25474
25475 #. type: verbatim
25476 #: ../src/guestfs-actions.pod:3532
25477 #, no-wrap
25478 msgid ""
25479 " int\n"
25480 " guestfs_is_lv (guestfs_h *g,\n"
25481 "                const char *device);\n"
25482 "\n"
25483 msgstr ""
25484
25485 #. type: =head2
25486 #: ../src/guestfs-actions.pod:3543
25487 msgid "guestfs_is_ready"
25488 msgstr ""
25489
25490 #. type: verbatim
25491 #: ../src/guestfs-actions.pod:3545
25492 #, no-wrap
25493 msgid ""
25494 " int\n"
25495 " guestfs_is_ready (guestfs_h *g);\n"
25496 "\n"
25497 msgstr ""
25498
25499 #. type: =head2
25500 #: ../src/guestfs-actions.pod:3557
25501 msgid "guestfs_is_socket"
25502 msgstr ""
25503
25504 #. type: verbatim
25505 #: ../src/guestfs-actions.pod:3559
25506 #, no-wrap
25507 msgid ""
25508 " int\n"
25509 " guestfs_is_socket (guestfs_h *g,\n"
25510 "                    const char *path);\n"
25511 "\n"
25512 msgstr ""
25513
25514 #. type: =head2
25515 #: ../src/guestfs-actions.pod:3572
25516 msgid "guestfs_is_symlink"
25517 msgstr ""
25518
25519 #. type: verbatim
25520 #: ../src/guestfs-actions.pod:3574
25521 #, no-wrap
25522 msgid ""
25523 " int\n"
25524 " guestfs_is_symlink (guestfs_h *g,\n"
25525 "                     const char *path);\n"
25526 "\n"
25527 msgstr ""
25528
25529 #. type: =head2
25530 #: ../src/guestfs-actions.pod:3587
25531 msgid "guestfs_is_zero"
25532 msgstr ""
25533
25534 #. type: verbatim
25535 #: ../src/guestfs-actions.pod:3589
25536 #, no-wrap
25537 msgid ""
25538 " int\n"
25539 " guestfs_is_zero (guestfs_h *g,\n"
25540 "                  const char *path);\n"
25541 "\n"
25542 msgstr ""
25543
25544 #. type: textblock
25545 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:3612
25546 msgid "(Added in 1.11.8)"
25547 msgstr ""
25548
25549 #. type: =head2
25550 #: ../src/guestfs-actions.pod:3600
25551 msgid "guestfs_is_zero_device"
25552 msgstr ""
25553
25554 #. type: verbatim
25555 #: ../src/guestfs-actions.pod:3602
25556 #, no-wrap
25557 msgid ""
25558 " int\n"
25559 " guestfs_is_zero_device (guestfs_h *g,\n"
25560 "                         const char *device);\n"
25561 "\n"
25562 msgstr ""
25563
25564 #. type: =head2
25565 #: ../src/guestfs-actions.pod:3614
25566 msgid "guestfs_kill_subprocess"
25567 msgstr ""
25568
25569 #. type: verbatim
25570 #: ../src/guestfs-actions.pod:3616
25571 #, no-wrap
25572 msgid ""
25573 " int\n"
25574 " guestfs_kill_subprocess (guestfs_h *g);\n"
25575 "\n"
25576 msgstr ""
25577
25578 #. type: =head2
25579 #: ../src/guestfs-actions.pod:3625
25580 msgid "guestfs_launch"
25581 msgstr ""
25582
25583 #. type: verbatim
25584 #: ../src/guestfs-actions.pod:3627
25585 #, no-wrap
25586 msgid ""
25587 " int\n"
25588 " guestfs_launch (guestfs_h *g);\n"
25589 "\n"
25590 msgstr ""
25591
25592 #. type: =head2
25593 #: ../src/guestfs-actions.pod:3645
25594 msgid "guestfs_lchown"
25595 msgstr ""
25596
25597 #. type: verbatim
25598 #: ../src/guestfs-actions.pod:3647
25599 #, no-wrap
25600 msgid ""
25601 " int\n"
25602 " guestfs_lchown (guestfs_h *g,\n"
25603 "                 int owner,\n"
25604 "                 int group,\n"
25605 "                 const char *path);\n"
25606 "\n"
25607 msgstr ""
25608
25609 #. type: textblock
25610 #: ../src/guestfs-actions.pod:3653
25611 msgid ""
25612 "Change the file owner to C<owner> and group to C<group>.  This is like "
25613 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
25614 "changed, not the target."
25615 msgstr ""
25616
25617 #. type: =head2
25618 #: ../src/guestfs-actions.pod:3665
25619 msgid "guestfs_lgetxattr"
25620 msgstr ""
25621
25622 #. type: verbatim
25623 #: ../src/guestfs-actions.pod:3667
25624 #, no-wrap
25625 msgid ""
25626 " char *\n"
25627 " guestfs_lgetxattr (guestfs_h *g,\n"
25628 "                    const char *path,\n"
25629 "                    const char *name,\n"
25630 "                    size_t *size_r);\n"
25631 "\n"
25632 msgstr ""
25633
25634 #. type: textblock
25635 #: ../src/guestfs-actions.pod:3687
25636 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
25637 msgstr ""
25638
25639 #. type: =head2
25640 #: ../src/guestfs-actions.pod:3695
25641 msgid "guestfs_lgetxattrs"
25642 msgstr ""
25643
25644 #. type: verbatim
25645 #: ../src/guestfs-actions.pod:3697
25646 #, no-wrap
25647 msgid ""
25648 " struct guestfs_xattr_list *\n"
25649 " guestfs_lgetxattrs (guestfs_h *g,\n"
25650 "                     const char *path);\n"
25651 "\n"
25652 msgstr ""
25653
25654 #. type: textblock
25655 #: ../src/guestfs-actions.pod:3701
25656 msgid ""
25657 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
25658 "then it returns the extended attributes of the link itself."
25659 msgstr ""
25660
25661 #. type: =head2
25662 #: ../src/guestfs-actions.pod:3711
25663 msgid "guestfs_list_9p"
25664 msgstr ""
25665
25666 #. type: verbatim
25667 #: ../src/guestfs-actions.pod:3713
25668 #, no-wrap
25669 msgid ""
25670 " char **\n"
25671 " guestfs_list_9p (guestfs_h *g);\n"
25672 "\n"
25673 msgstr ""
25674
25675 #. type: =head2
25676 #: ../src/guestfs-actions.pod:3725
25677 msgid "guestfs_list_devices"
25678 msgstr ""
25679
25680 #. type: verbatim
25681 #: ../src/guestfs-actions.pod:3727
25682 #, no-wrap
25683 msgid ""
25684 " char **\n"
25685 " guestfs_list_devices (guestfs_h *g);\n"
25686 "\n"
25687 msgstr ""
25688
25689 #. type: =head2
25690 #: ../src/guestfs-actions.pod:3742
25691 msgid "guestfs_list_dm_devices"
25692 msgstr ""
25693
25694 #. type: verbatim
25695 #: ../src/guestfs-actions.pod:3744
25696 #, no-wrap
25697 msgid ""
25698 " char **\n"
25699 " guestfs_list_dm_devices (guestfs_h *g);\n"
25700 "\n"
25701 msgstr ""
25702
25703 #. type: textblock
25704 #: ../src/guestfs-actions.pod:3749
25705 msgid ""
25706 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
25707 "previous call to C<guestfs_luks_open>."
25708 msgstr ""
25709
25710 #. type: textblock
25711 #: ../src/guestfs-actions.pod:3752
25712 msgid ""
25713 "Device mapper devices which correspond to logical volumes are I<not> "
25714 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
25715 "volumes."
25716 msgstr ""
25717
25718 #. type: textblock
25719 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:5216
25720 msgid "(Added in 1.11.15)"
25721 msgstr ""
25722
25723 #. type: =head2
25724 #: ../src/guestfs-actions.pod:3762
25725 msgid "guestfs_list_filesystems"
25726 msgstr ""
25727
25728 #. type: verbatim
25729 #: ../src/guestfs-actions.pod:3764
25730 #, no-wrap
25731 msgid ""
25732 " char **\n"
25733 " guestfs_list_filesystems (guestfs_h *g);\n"
25734 "\n"
25735 msgstr ""
25736
25737 #. type: textblock
25738 #: ../src/guestfs-actions.pod:3784
25739 msgid ""
25740 "This command runs other libguestfs commands, which might include "
25741 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
25742 "soon after launch and only when nothing is mounted."
25743 msgstr ""
25744
25745 #. type: textblock
25746 #: ../src/guestfs-actions.pod:3788
25747 msgid ""
25748 "Not all of the filesystems returned will be mountable.  In particular, swap "
25749 "partitions are returned in the list.  Also this command does not check that "
25750 "each filesystem found is valid and mountable, and some filesystems might be "
25751 "mountable but require special options.  Filesystems may not all belong to a "
25752 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
25753 msgstr ""
25754
25755 #. type: textblock
25756 #: ../src/guestfs-actions.pod:3802 ../src/guestfs-actions.pod:5577
25757 msgid "(Added in 1.5.15)"
25758 msgstr ""
25759
25760 #. type: =head2
25761 #: ../src/guestfs-actions.pod:3804
25762 msgid "guestfs_list_partitions"
25763 msgstr ""
25764
25765 #. type: verbatim
25766 #: ../src/guestfs-actions.pod:3806
25767 #, no-wrap
25768 msgid ""
25769 " char **\n"
25770 " guestfs_list_partitions (guestfs_h *g);\n"
25771 "\n"
25772 msgstr ""
25773
25774 #. type: textblock
25775 #: ../src/guestfs-actions.pod:3813
25776 msgid ""
25777 "This does not return logical volumes.  For that you will need to call "
25778 "C<guestfs_lvs>."
25779 msgstr ""
25780
25781 #. type: =head2
25782 #: ../src/guestfs-actions.pod:3824
25783 msgid "guestfs_ll"
25784 msgstr ""
25785
25786 #. type: verbatim
25787 #: ../src/guestfs-actions.pod:3826
25788 #, no-wrap
25789 msgid ""
25790 " char *\n"
25791 " guestfs_ll (guestfs_h *g,\n"
25792 "             const char *directory);\n"
25793 "\n"
25794 msgstr ""
25795
25796 #. type: =head2
25797 #: ../src/guestfs-actions.pod:3841
25798 msgid "guestfs_ln"
25799 msgstr ""
25800
25801 #. type: verbatim
25802 #: ../src/guestfs-actions.pod:3843
25803 #, no-wrap
25804 msgid ""
25805 " int\n"
25806 " guestfs_ln (guestfs_h *g,\n"
25807 "             const char *target,\n"
25808 "             const char *linkname);\n"
25809 "\n"
25810 msgstr ""
25811
25812 #. type: =head2
25813 #: ../src/guestfs-actions.pod:3854
25814 msgid "guestfs_ln_f"
25815 msgstr ""
25816
25817 #. type: verbatim
25818 #: ../src/guestfs-actions.pod:3856
25819 #, no-wrap
25820 msgid ""
25821 " int\n"
25822 " guestfs_ln_f (guestfs_h *g,\n"
25823 "               const char *target,\n"
25824 "               const char *linkname);\n"
25825 "\n"
25826 msgstr ""
25827
25828 #. type: =head2
25829 #: ../src/guestfs-actions.pod:3868
25830 msgid "guestfs_ln_s"
25831 msgstr ""
25832
25833 #. type: verbatim
25834 #: ../src/guestfs-actions.pod:3870
25835 #, no-wrap
25836 msgid ""
25837 " int\n"
25838 " guestfs_ln_s (guestfs_h *g,\n"
25839 "               const char *target,\n"
25840 "               const char *linkname);\n"
25841 "\n"
25842 msgstr ""
25843
25844 #. type: =head2
25845 #: ../src/guestfs-actions.pod:3881
25846 msgid "guestfs_ln_sf"
25847 msgstr ""
25848
25849 #. type: verbatim
25850 #: ../src/guestfs-actions.pod:3883
25851 #, no-wrap
25852 msgid ""
25853 " int\n"
25854 " guestfs_ln_sf (guestfs_h *g,\n"
25855 "                const char *target,\n"
25856 "                const char *linkname);\n"
25857 "\n"
25858 msgstr ""
25859
25860 #. type: =head2
25861 #: ../src/guestfs-actions.pod:3895
25862 msgid "guestfs_lremovexattr"
25863 msgstr ""
25864
25865 #. type: verbatim
25866 #: ../src/guestfs-actions.pod:3897
25867 #, no-wrap
25868 msgid ""
25869 " int\n"
25870 " guestfs_lremovexattr (guestfs_h *g,\n"
25871 "                       const char *xattr,\n"
25872 "                       const char *path);\n"
25873 "\n"
25874 msgstr ""
25875
25876 #. type: textblock
25877 #: ../src/guestfs-actions.pod:3902
25878 msgid ""
25879 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
25880 "link, then it removes an extended attribute of the link itself."
25881 msgstr ""
25882
25883 #. type: =head2
25884 #: ../src/guestfs-actions.pod:3910
25885 msgid "guestfs_ls"
25886 msgstr ""
25887
25888 #. type: verbatim
25889 #: ../src/guestfs-actions.pod:3912
25890 #, no-wrap
25891 msgid ""
25892 " char **\n"
25893 " guestfs_ls (guestfs_h *g,\n"
25894 "             const char *directory);\n"
25895 "\n"
25896 msgstr ""
25897
25898 #. type: textblock
25899 #: ../src/guestfs-actions.pod:3920
25900 msgid ""
25901 "This command is mostly useful for interactive sessions.  Programs should "
25902 "probably use C<guestfs_readdir> instead."
25903 msgstr ""
25904
25905 #. type: =head2
25906 #: ../src/guestfs-actions.pod:3929
25907 msgid "guestfs_lsetxattr"
25908 msgstr ""
25909
25910 #. type: verbatim
25911 #: ../src/guestfs-actions.pod:3931
25912 #, no-wrap
25913 msgid ""
25914 " int\n"
25915 " guestfs_lsetxattr (guestfs_h *g,\n"
25916 "                    const char *xattr,\n"
25917 "                    const char *val,\n"
25918 "                    int vallen,\n"
25919 "                    const char *path);\n"
25920 "\n"
25921 msgstr ""
25922
25923 #. type: textblock
25924 #: ../src/guestfs-actions.pod:3938
25925 msgid ""
25926 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
25927 "then it sets an extended attribute of the link itself."
25928 msgstr ""
25929
25930 #. type: =head2
25931 #: ../src/guestfs-actions.pod:3946
25932 msgid "guestfs_lstat"
25933 msgstr ""
25934
25935 #. type: verbatim
25936 #: ../src/guestfs-actions.pod:3948
25937 #, no-wrap
25938 msgid ""
25939 " struct guestfs_stat *\n"
25940 " guestfs_lstat (guestfs_h *g,\n"
25941 "                const char *path);\n"
25942 "\n"
25943 msgstr ""
25944
25945 #. type: textblock
25946 #: ../src/guestfs-actions.pod:3954
25947 msgid ""
25948 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
25949 "link, then the link is stat-ed, not the file it refers to."
25950 msgstr ""
25951
25952 #. type: textblock
25953 #: ../src/guestfs-actions.pod:3960 ../src/guestfs-actions.pod:6735
25954 msgid ""
25955 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
25956 "error.  I<The caller must call C<guestfs_free_stat> after use>."
25957 msgstr ""
25958
25959 #. type: textblock
25960 #: ../src/guestfs-actions.pod:3964 ../src/guestfs-actions.pod:6739
25961 #: ../src/guestfs-actions.pod:6757 ../src/guestfs-actions.pod:7138
25962 msgid "(Added in 0.9.2)"
25963 msgstr ""
25964
25965 #. type: =head2
25966 #: ../src/guestfs-actions.pod:3966
25967 msgid "guestfs_lstatlist"
25968 msgstr ""
25969
25970 #. type: verbatim
25971 #: ../src/guestfs-actions.pod:3968
25972 #, no-wrap
25973 msgid ""
25974 " struct guestfs_stat_list *\n"
25975 " guestfs_lstatlist (guestfs_h *g,\n"
25976 "                    const char *path,\n"
25977 "                    char *const *names);\n"
25978 "\n"
25979 msgstr ""
25980
25981 #. type: textblock
25982 #: ../src/guestfs-actions.pod:3973
25983 msgid ""
25984 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
25985 "files, where all files are in the directory C<path>.  C<names> is the list "
25986 "of files from this directory."
25987 msgstr ""
25988
25989 #. type: textblock
25990 #: ../src/guestfs-actions.pod:3982
25991 msgid ""
25992 "This call is intended for programs that want to efficiently list a directory "
25993 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
25994 "for a similarly efficient call for getting extended attributes.  Very long "
25995 "directory listings might cause the protocol message size to be exceeded, "
25996 "causing this call to fail.  The caller must split up such requests into "
25997 "smaller groups of names."
25998 msgstr ""
25999
26000 #. type: textblock
26001 #: ../src/guestfs-actions.pod:3990
26002 msgid ""
26003 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
26004 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
26005 msgstr ""
26006
26007 #. type: =head2
26008 #: ../src/guestfs-actions.pod:3996
26009 msgid "guestfs_luks_add_key"
26010 msgstr ""
26011
26012 #. type: verbatim
26013 #: ../src/guestfs-actions.pod:3998
26014 #, no-wrap
26015 msgid ""
26016 " int\n"
26017 " guestfs_luks_add_key (guestfs_h *g,\n"
26018 "                       const char *device,\n"
26019 "                       const char *key,\n"
26020 "                       const char *newkey,\n"
26021 "                       int keyslot);\n"
26022 "\n"
26023 msgstr ""
26024
26025 #. type: textblock
26026 #: ../src/guestfs-actions.pod:4010
26027 msgid ""
26028 "Note that if C<keyslot> already contains a key, then this command will "
26029 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
26030 msgstr ""
26031
26032 #. type: textblock
26033 #: ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4056
26034 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4099
26035 #: ../src/guestfs-actions.pod:4134 ../src/guestfs-actions.pod:4153
26036 msgid ""
26037 "This function takes a key or passphrase parameter which could contain "
26038 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
26039 "information."
26040 msgstr ""
26041
26042 #. type: textblock
26043 #: ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4060
26044 #: ../src/guestfs-actions.pod:4083 ../src/guestfs-actions.pod:4103
26045 msgid "(Added in 1.5.2)"
26046 msgstr ""
26047
26048 #. type: =head2
26049 #: ../src/guestfs-actions.pod:4022
26050 msgid "guestfs_luks_close"
26051 msgstr ""
26052
26053 #. type: verbatim
26054 #: ../src/guestfs-actions.pod:4024
26055 #, no-wrap
26056 msgid ""
26057 " int\n"
26058 " guestfs_luks_close (guestfs_h *g,\n"
26059 "                     const char *device);\n"
26060 "\n"
26061 msgstr ""
26062
26063 #. type: textblock
26064 #: ../src/guestfs-actions.pod:4028
26065 msgid ""
26066 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
26067 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
26068 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
26069 "underlying block device."
26070 msgstr ""
26071
26072 #. type: textblock
26073 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4138
26074 #: ../src/guestfs-actions.pod:4157 ../src/guestfs-actions.pod:4207
26075 #: ../src/guestfs-actions.pod:4255
26076 msgid "(Added in 1.5.1)"
26077 msgstr ""
26078
26079 #. type: =head2
26080 #: ../src/guestfs-actions.pod:4038
26081 msgid "guestfs_luks_format"
26082 msgstr ""
26083
26084 #. type: verbatim
26085 #: ../src/guestfs-actions.pod:4040
26086 #, no-wrap
26087 msgid ""
26088 " int\n"
26089 " guestfs_luks_format (guestfs_h *g,\n"
26090 "                      const char *device,\n"
26091 "                      const char *key,\n"
26092 "                      int keyslot);\n"
26093 "\n"
26094 msgstr ""
26095
26096 #. type: =head2
26097 #: ../src/guestfs-actions.pod:4062
26098 msgid "guestfs_luks_format_cipher"
26099 msgstr ""
26100
26101 #. type: verbatim
26102 #: ../src/guestfs-actions.pod:4064
26103 #, no-wrap
26104 msgid ""
26105 " int\n"
26106 " guestfs_luks_format_cipher (guestfs_h *g,\n"
26107 "                             const char *device,\n"
26108 "                             const char *key,\n"
26109 "                             int keyslot,\n"
26110 "                             const char *cipher);\n"
26111 "\n"
26112 msgstr ""
26113
26114 #. type: textblock
26115 #: ../src/guestfs-actions.pod:4071
26116 msgid ""
26117 "This command is the same as C<guestfs_luks_format> but it also allows you to "
26118 "set the C<cipher> used."
26119 msgstr ""
26120
26121 #. type: =head2
26122 #: ../src/guestfs-actions.pod:4085
26123 msgid "guestfs_luks_kill_slot"
26124 msgstr ""
26125
26126 #. type: verbatim
26127 #: ../src/guestfs-actions.pod:4087
26128 #, no-wrap
26129 msgid ""
26130 " int\n"
26131 " guestfs_luks_kill_slot (guestfs_h *g,\n"
26132 "                         const char *device,\n"
26133 "                         const char *key,\n"
26134 "                         int keyslot);\n"
26135 "\n"
26136 msgstr ""
26137
26138 #. type: =head2
26139 #: ../src/guestfs-actions.pod:4105
26140 msgid "guestfs_luks_open"
26141 msgstr ""
26142
26143 #. type: verbatim
26144 #: ../src/guestfs-actions.pod:4107
26145 #, no-wrap
26146 msgid ""
26147 " int\n"
26148 " guestfs_luks_open (guestfs_h *g,\n"
26149 "                    const char *device,\n"
26150 "                    const char *key,\n"
26151 "                    const char *mapname);\n"
26152 "\n"
26153 msgstr ""
26154
26155 #. type: textblock
26156 #: ../src/guestfs-actions.pod:4125
26157 msgid ""
26158 "If this block device contains LVM volume groups, then calling "
26159 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
26160 "visible."
26161 msgstr ""
26162
26163 #. type: textblock
26164 #: ../src/guestfs-actions.pod:4129
26165 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
26166 msgstr ""
26167
26168 #. type: =head2
26169 #: ../src/guestfs-actions.pod:4140
26170 msgid "guestfs_luks_open_ro"
26171 msgstr ""
26172
26173 #. type: verbatim
26174 #: ../src/guestfs-actions.pod:4142
26175 #, no-wrap
26176 msgid ""
26177 " int\n"
26178 " guestfs_luks_open_ro (guestfs_h *g,\n"
26179 "                       const char *device,\n"
26180 "                       const char *key,\n"
26181 "                       const char *mapname);\n"
26182 "\n"
26183 msgstr ""
26184
26185 #. type: textblock
26186 #: ../src/guestfs-actions.pod:4148
26187 msgid ""
26188 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
26189 "created."
26190 msgstr ""
26191
26192 #. type: =head2
26193 #: ../src/guestfs-actions.pod:4159
26194 msgid "guestfs_lvcreate"
26195 msgstr ""
26196
26197 #. type: verbatim
26198 #: ../src/guestfs-actions.pod:4161
26199 #, no-wrap
26200 msgid ""
26201 " int\n"
26202 " guestfs_lvcreate (guestfs_h *g,\n"
26203 "                   const char *logvol,\n"
26204 "                   const char *volgroup,\n"
26205 "                   int mbytes);\n"
26206 "\n"
26207 msgstr ""
26208
26209 #. type: =head2
26210 #: ../src/guestfs-actions.pod:4174
26211 msgid "guestfs_lvm_canonical_lv_name"
26212 msgstr ""
26213
26214 #. type: verbatim
26215 #: ../src/guestfs-actions.pod:4176
26216 #, no-wrap
26217 msgid ""
26218 " char *\n"
26219 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
26220 "                                const char *lvname);\n"
26221 "\n"
26222 msgstr ""
26223
26224 #. type: textblock
26225 #: ../src/guestfs-actions.pod:4187
26226 msgid "See also C<guestfs_is_lv>."
26227 msgstr ""
26228
26229 #. type: textblock
26230 #: ../src/guestfs-actions.pod:4192
26231 msgid "(Added in 1.5.24)"
26232 msgstr ""
26233
26234 #. type: =head2
26235 #: ../src/guestfs-actions.pod:4194
26236 msgid "guestfs_lvm_clear_filter"
26237 msgstr ""
26238
26239 #. type: verbatim
26240 #: ../src/guestfs-actions.pod:4196
26241 #, no-wrap
26242 msgid ""
26243 " int\n"
26244 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
26245 "\n"
26246 msgstr ""
26247
26248 #. type: textblock
26249 #: ../src/guestfs-actions.pod:4199
26250 msgid ""
26251 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
26252 "see every block device."
26253 msgstr ""
26254
26255 #. type: =head2
26256 #: ../src/guestfs-actions.pod:4209
26257 msgid "guestfs_lvm_remove_all"
26258 msgstr ""
26259
26260 #. type: verbatim
26261 #: ../src/guestfs-actions.pod:4211
26262 #, no-wrap
26263 msgid ""
26264 " int\n"
26265 " guestfs_lvm_remove_all (guestfs_h *g);\n"
26266 "\n"
26267 msgstr ""
26268
26269 #. type: =head2
26270 #: ../src/guestfs-actions.pod:4224
26271 msgid "guestfs_lvm_set_filter"
26272 msgstr ""
26273
26274 #. type: verbatim
26275 #: ../src/guestfs-actions.pod:4226
26276 #, no-wrap
26277 msgid ""
26278 " int\n"
26279 " guestfs_lvm_set_filter (guestfs_h *g,\n"
26280 "                         char *const *devices);\n"
26281 "\n"
26282 msgstr ""
26283
26284 #. type: =head2
26285 #: ../src/guestfs-actions.pod:4257
26286 msgid "guestfs_lvremove"
26287 msgstr ""
26288
26289 #. type: verbatim
26290 #: ../src/guestfs-actions.pod:4259
26291 #, no-wrap
26292 msgid ""
26293 " int\n"
26294 " guestfs_lvremove (guestfs_h *g,\n"
26295 "                   const char *device);\n"
26296 "\n"
26297 msgstr ""
26298
26299 #. type: textblock
26300 #: ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:5674
26301 #: ../src/guestfs-actions.pod:7508
26302 msgid "(Added in 1.0.13)"
26303 msgstr ""
26304
26305 #. type: =head2
26306 #: ../src/guestfs-actions.pod:4273
26307 msgid "guestfs_lvrename"
26308 msgstr ""
26309
26310 #. type: verbatim
26311 #: ../src/guestfs-actions.pod:4275
26312 #, no-wrap
26313 msgid ""
26314 " int\n"
26315 " guestfs_lvrename (guestfs_h *g,\n"
26316 "                   const char *logvol,\n"
26317 "                   const char *newlogvol);\n"
26318 "\n"
26319 msgstr ""
26320
26321 #. type: textblock
26322 #: ../src/guestfs-actions.pod:4284 ../src/guestfs-actions.pod:7521
26323 msgid "(Added in 1.0.83)"
26324 msgstr ""
26325
26326 #. type: =head2
26327 #: ../src/guestfs-actions.pod:4286
26328 msgid "guestfs_lvresize"
26329 msgstr ""
26330
26331 #. type: verbatim
26332 #: ../src/guestfs-actions.pod:4288
26333 #, no-wrap
26334 msgid ""
26335 " int\n"
26336 " guestfs_lvresize (guestfs_h *g,\n"
26337 "                   const char *device,\n"
26338 "                   int mbytes);\n"
26339 "\n"
26340 msgstr ""
26341
26342 #. type: =head2
26343 #: ../src/guestfs-actions.pod:4301
26344 msgid "guestfs_lvresize_free"
26345 msgstr ""
26346
26347 #. type: verbatim
26348 #: ../src/guestfs-actions.pod:4303
26349 #, no-wrap
26350 msgid ""
26351 " int\n"
26352 " guestfs_lvresize_free (guestfs_h *g,\n"
26353 "                        const char *lv,\n"
26354 "                        int percent);\n"
26355 "\n"
26356 msgstr ""
26357
26358 #. type: textblock
26359 #: ../src/guestfs-actions.pod:4316
26360 msgid "(Added in 1.3.3)"
26361 msgstr ""
26362
26363 #. type: =head2
26364 #: ../src/guestfs-actions.pod:4318
26365 msgid "guestfs_lvs"
26366 msgstr ""
26367
26368 #. type: verbatim
26369 #: ../src/guestfs-actions.pod:4320
26370 #, no-wrap
26371 msgid ""
26372 " char **\n"
26373 " guestfs_lvs (guestfs_h *g);\n"
26374 "\n"
26375 msgstr ""
26376
26377 #. type: textblock
26378 #: ../src/guestfs-actions.pod:4329
26379 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
26380 msgstr ""
26381
26382 #. type: =head2
26383 #: ../src/guestfs-actions.pod:4337
26384 msgid "guestfs_lvs_full"
26385 msgstr ""
26386
26387 #. type: verbatim
26388 #: ../src/guestfs-actions.pod:4339
26389 #, no-wrap
26390 msgid ""
26391 " struct guestfs_lvm_lv_list *\n"
26392 " guestfs_lvs_full (guestfs_h *g);\n"
26393 "\n"
26394 msgstr ""
26395
26396 #. type: textblock
26397 #: ../src/guestfs-actions.pod:4345
26398 msgid ""
26399 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
26400 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
26401 msgstr ""
26402
26403 #. type: =head2
26404 #: ../src/guestfs-actions.pod:4351
26405 msgid "guestfs_lvuuid"
26406 msgstr ""
26407
26408 #. type: verbatim
26409 #: ../src/guestfs-actions.pod:4353
26410 #, no-wrap
26411 msgid ""
26412 " char *\n"
26413 " guestfs_lvuuid (guestfs_h *g,\n"
26414 "                 const char *device);\n"
26415 "\n"
26416 msgstr ""
26417
26418 #. type: =head2
26419 #: ../src/guestfs-actions.pod:4364
26420 msgid "guestfs_lxattrlist"
26421 msgstr ""
26422
26423 #. type: verbatim
26424 #: ../src/guestfs-actions.pod:4366
26425 #, no-wrap
26426 msgid ""
26427 " struct guestfs_xattr_list *\n"
26428 " guestfs_lxattrlist (guestfs_h *g,\n"
26429 "                     const char *path,\n"
26430 "                     char *const *names);\n"
26431 "\n"
26432 msgstr ""
26433
26434 #. type: textblock
26435 #: ../src/guestfs-actions.pod:4385
26436 msgid ""
26437 "This call is intended for programs that want to efficiently list a directory "
26438 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
26439 "a similarly efficient call for getting standard stats.  Very long directory "
26440 "listings might cause the protocol message size to be exceeded, causing this "
26441 "call to fail.  The caller must split up such requests into smaller groups of "
26442 "names."
26443 msgstr ""
26444
26445 #. type: =head2
26446 #: ../src/guestfs-actions.pod:4399
26447 msgid "guestfs_mkdir"
26448 msgstr ""
26449
26450 #. type: verbatim
26451 #: ../src/guestfs-actions.pod:4401
26452 #, no-wrap
26453 msgid ""
26454 " int\n"
26455 " guestfs_mkdir (guestfs_h *g,\n"
26456 "                const char *path);\n"
26457 "\n"
26458 msgstr ""
26459
26460 #. type: =head2
26461 #: ../src/guestfs-actions.pod:4411
26462 msgid "guestfs_mkdir_mode"
26463 msgstr ""
26464
26465 #. type: verbatim
26466 #: ../src/guestfs-actions.pod:4413
26467 #, no-wrap
26468 msgid ""
26469 " int\n"
26470 " guestfs_mkdir_mode (guestfs_h *g,\n"
26471 "                     const char *path,\n"
26472 "                     int mode);\n"
26473 "\n"
26474 msgstr ""
26475
26476 #. type: textblock
26477 #: ../src/guestfs-actions.pod:4425
26478 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
26479 msgstr ""
26480
26481 #. type: =head2
26482 #: ../src/guestfs-actions.pod:4431
26483 msgid "guestfs_mkdir_p"
26484 msgstr ""
26485
26486 #. type: verbatim
26487 #: ../src/guestfs-actions.pod:4433
26488 #, no-wrap
26489 msgid ""
26490 " int\n"
26491 " guestfs_mkdir_p (guestfs_h *g,\n"
26492 "                  const char *path);\n"
26493 "\n"
26494 msgstr ""
26495
26496 #. type: =head2
26497 #: ../src/guestfs-actions.pod:4444
26498 msgid "guestfs_mkdtemp"
26499 msgstr ""
26500
26501 #. type: verbatim
26502 #: ../src/guestfs-actions.pod:4446
26503 #, no-wrap
26504 msgid ""
26505 " char *\n"
26506 " guestfs_mkdtemp (guestfs_h *g,\n"
26507 "                  const char *template);\n"
26508 "\n"
26509 msgstr ""
26510
26511 #. type: =head2
26512 #: ../src/guestfs-actions.pod:4474
26513 msgid "guestfs_mke2fs_J"
26514 msgstr ""
26515
26516 #. type: verbatim
26517 #: ../src/guestfs-actions.pod:4476
26518 #, no-wrap
26519 msgid ""
26520 " int\n"
26521 " guestfs_mke2fs_J (guestfs_h *g,\n"
26522 "                   const char *fstype,\n"
26523 "                   int blocksize,\n"
26524 "                   const char *device,\n"
26525 "                   const char *journal);\n"
26526 "\n"
26527 msgstr ""
26528
26529 #. type: textblock
26530 #: ../src/guestfs-actions.pod:4489
26531 msgid "See also C<guestfs_mke2journal>."
26532 msgstr ""
26533
26534 #. type: textblock
26535 #: ../src/guestfs-actions.pod:4493 ../src/guestfs-actions.pod:4511
26536 #: ../src/guestfs-actions.pod:4529 ../src/guestfs-actions.pod:4545
26537 #: ../src/guestfs-actions.pod:4559 ../src/guestfs-actions.pod:4573
26538 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4909
26539 msgid "(Added in 1.0.68)"
26540 msgstr ""
26541
26542 #. type: =head2
26543 #: ../src/guestfs-actions.pod:4495
26544 msgid "guestfs_mke2fs_JL"
26545 msgstr ""
26546
26547 #. type: verbatim
26548 #: ../src/guestfs-actions.pod:4497
26549 #, no-wrap
26550 msgid ""
26551 " int\n"
26552 " guestfs_mke2fs_JL (guestfs_h *g,\n"
26553 "                    const char *fstype,\n"
26554 "                    int blocksize,\n"
26555 "                    const char *device,\n"
26556 "                    const char *label);\n"
26557 "\n"
26558 msgstr ""
26559
26560 #. type: textblock
26561 #: ../src/guestfs-actions.pod:4507
26562 msgid "See also C<guestfs_mke2journal_L>."
26563 msgstr ""
26564
26565 #. type: =head2
26566 #: ../src/guestfs-actions.pod:4513
26567 msgid "guestfs_mke2fs_JU"
26568 msgstr ""
26569
26570 #. type: verbatim
26571 #: ../src/guestfs-actions.pod:4515
26572 #, no-wrap
26573 msgid ""
26574 " int\n"
26575 " guestfs_mke2fs_JU (guestfs_h *g,\n"
26576 "                    const char *fstype,\n"
26577 "                    int blocksize,\n"
26578 "                    const char *device,\n"
26579 "                    const char *uuid);\n"
26580 "\n"
26581 msgstr ""
26582
26583 #. type: textblock
26584 #: ../src/guestfs-actions.pod:4525
26585 msgid "See also C<guestfs_mke2journal_U>."
26586 msgstr ""
26587
26588 #. type: =head2
26589 #: ../src/guestfs-actions.pod:4531
26590 msgid "guestfs_mke2journal"
26591 msgstr ""
26592
26593 #. type: verbatim
26594 #: ../src/guestfs-actions.pod:4533
26595 #, no-wrap
26596 msgid ""
26597 " int\n"
26598 " guestfs_mke2journal (guestfs_h *g,\n"
26599 "                      int blocksize,\n"
26600 "                      const char *device);\n"
26601 "\n"
26602 msgstr ""
26603
26604 #. type: =head2
26605 #: ../src/guestfs-actions.pod:4547
26606 msgid "guestfs_mke2journal_L"
26607 msgstr ""
26608
26609 #. type: verbatim
26610 #: ../src/guestfs-actions.pod:4549
26611 #, no-wrap
26612 msgid ""
26613 " int\n"
26614 " guestfs_mke2journal_L (guestfs_h *g,\n"
26615 "                        int blocksize,\n"
26616 "                        const char *label,\n"
26617 "                        const char *device);\n"
26618 "\n"
26619 msgstr ""
26620
26621 #. type: =head2
26622 #: ../src/guestfs-actions.pod:4561
26623 msgid "guestfs_mke2journal_U"
26624 msgstr ""
26625
26626 #. type: verbatim
26627 #: ../src/guestfs-actions.pod:4563
26628 #, no-wrap
26629 msgid ""
26630 " int\n"
26631 " guestfs_mke2journal_U (guestfs_h *g,\n"
26632 "                        int blocksize,\n"
26633 "                        const char *uuid,\n"
26634 "                        const char *device);\n"
26635 "\n"
26636 msgstr ""
26637
26638 #. type: =head2
26639 #: ../src/guestfs-actions.pod:4575
26640 msgid "guestfs_mkfifo"
26641 msgstr ""
26642
26643 #. type: verbatim
26644 #: ../src/guestfs-actions.pod:4577
26645 #, no-wrap
26646 msgid ""
26647 " int\n"
26648 " guestfs_mkfifo (guestfs_h *g,\n"
26649 "                 int mode,\n"
26650 "                 const char *path);\n"
26651 "\n"
26652 msgstr ""
26653
26654 #. type: textblock
26655 #: ../src/guestfs-actions.pod:4582
26656 msgid ""
26657 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
26658 "is just a convenient wrapper around C<guestfs_mknod>."
26659 msgstr ""
26660
26661 #. type: =head2
26662 #: ../src/guestfs-actions.pod:4592
26663 msgid "guestfs_mkfs"
26664 msgstr ""
26665
26666 #. type: verbatim
26667 #: ../src/guestfs-actions.pod:4594
26668 #, no-wrap
26669 msgid ""
26670 " int\n"
26671 " guestfs_mkfs (guestfs_h *g,\n"
26672 "               const char *fstype,\n"
26673 "               const char *device);\n"
26674 "\n"
26675 msgstr ""
26676
26677 #. type: =head2
26678 #: ../src/guestfs-actions.pod:4607
26679 msgid "guestfs_mkfs_b"
26680 msgstr ""
26681
26682 #. type: verbatim
26683 #: ../src/guestfs-actions.pod:4609
26684 #, no-wrap
26685 msgid ""
26686 " int\n"
26687 " guestfs_mkfs_b (guestfs_h *g,\n"
26688 "                 const char *fstype,\n"
26689 "                 int blocksize,\n"
26690 "                 const char *device);\n"
26691 "\n"
26692 msgstr ""
26693
26694 #. type: textblock
26695 #: ../src/guestfs-actions.pod:4615
26696 msgid ""
26697 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
26698 "block size of the resulting filesystem.  Supported block sizes depend on the "
26699 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
26700 msgstr ""
26701
26702 #. type: =head2
26703 #: ../src/guestfs-actions.pod:4634
26704 msgid "guestfs_mkfs_opts"
26705 msgstr ""
26706
26707 #. type: verbatim
26708 #: ../src/guestfs-actions.pod:4636
26709 #, no-wrap
26710 msgid ""
26711 " int\n"
26712 " guestfs_mkfs_opts (guestfs_h *g,\n"
26713 "                    const char *fstype,\n"
26714 "                    const char *device,\n"
26715 "                    ...);\n"
26716 "\n"
26717 msgstr ""
26718
26719 #. type: verbatim
26720 #: ../src/guestfs-actions.pod:4647
26721 #, no-wrap
26722 msgid ""
26723 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
26724 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
26725 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
26726 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
26727 "\n"
26728 msgstr ""
26729
26730 #. type: textblock
26731 #: ../src/guestfs-actions.pod:4695
26732 msgid "(Added in 1.7.19)"
26733 msgstr ""
26734
26735 #. type: =head2
26736 #: ../src/guestfs-actions.pod:4697
26737 msgid "guestfs_mkfs_opts_va"
26738 msgstr ""
26739
26740 #. type: verbatim
26741 #: ../src/guestfs-actions.pod:4699
26742 #, no-wrap
26743 msgid ""
26744 " int\n"
26745 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
26746 "                       const char *fstype,\n"
26747 "                       const char *device,\n"
26748 "                       va_list args);\n"
26749 "\n"
26750 msgstr ""
26751
26752 #. type: textblock
26753 #: ../src/guestfs-actions.pod:4705
26754 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
26755 msgstr ""
26756
26757 #. type: =head2
26758 #: ../src/guestfs-actions.pod:4709
26759 msgid "guestfs_mkfs_opts_argv"
26760 msgstr ""
26761
26762 #. type: verbatim
26763 #: ../src/guestfs-actions.pod:4711
26764 #, no-wrap
26765 msgid ""
26766 " int\n"
26767 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26768 "                         const char *fstype,\n"
26769 "                         const char *device,\n"
26770 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
26771 "\n"
26772 msgstr ""
26773
26774 #. type: textblock
26775 #: ../src/guestfs-actions.pod:4717
26776 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
26777 msgstr ""
26778
26779 #. type: =head2
26780 #: ../src/guestfs-actions.pod:4721
26781 msgid "guestfs_mkmountpoint"
26782 msgstr ""
26783
26784 #. type: verbatim
26785 #: ../src/guestfs-actions.pod:4723
26786 #, no-wrap
26787 msgid ""
26788 " int\n"
26789 " guestfs_mkmountpoint (guestfs_h *g,\n"
26790 "                       const char *exemptpath);\n"
26791 "\n"
26792 msgstr ""
26793
26794 #. type: textblock
26795 #: ../src/guestfs-actions.pod:4727
26796 msgid ""
26797 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
26798 "that can be used to create extra mountpoints before mounting the first "
26799 "filesystem."
26800 msgstr ""
26801
26802 #. type: textblock
26803 #: ../src/guestfs-actions.pod:4751
26804 msgid ""
26805 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
26806 "may get unexpected errors if you try to mix these calls.  It is safest to "
26807 "manually unmount filesystems and remove mountpoints after use."
26808 msgstr ""
26809
26810 #. type: textblock
26811 #: ../src/guestfs-actions.pod:4755
26812 msgid ""
26813 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
26814 "first, so for this to work for manual mountpoints, you must ensure that the "
26815 "innermost mountpoints have the longest pathnames, as in the example code "
26816 "above."
26817 msgstr ""
26818
26819 #. type: textblock
26820 #: ../src/guestfs-actions.pod:4762
26821 msgid ""
26822 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
26823 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
26824 "can also trigger these issues."
26825 msgstr ""
26826
26827 #. type: textblock
26828 #: ../src/guestfs-actions.pod:4768 ../src/guestfs-actions.pod:5084
26829 #: ../src/guestfs-actions.pod:6094
26830 msgid "(Added in 1.0.62)"
26831 msgstr ""
26832
26833 #. type: =head2
26834 #: ../src/guestfs-actions.pod:4770
26835 msgid "guestfs_mknod"
26836 msgstr ""
26837
26838 #. type: verbatim
26839 #: ../src/guestfs-actions.pod:4772
26840 #, no-wrap
26841 msgid ""
26842 " int\n"
26843 " guestfs_mknod (guestfs_h *g,\n"
26844 "                int mode,\n"
26845 "                int devmajor,\n"
26846 "                int devminor,\n"
26847 "                const char *path);\n"
26848 "\n"
26849 msgstr ""
26850
26851 #. type: textblock
26852 #: ../src/guestfs-actions.pod:4787
26853 msgid ""
26854 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
26855 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
26856 "regular file).  These constants are available in the standard Linux header "
26857 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
26858 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
26859 "the appropriate constant for you."
26860 msgstr ""
26861
26862 #. type: =head2
26863 #: ../src/guestfs-actions.pod:4801
26864 msgid "guestfs_mknod_b"
26865 msgstr ""
26866
26867 #. type: verbatim
26868 #: ../src/guestfs-actions.pod:4803
26869 #, no-wrap
26870 msgid ""
26871 " int\n"
26872 " guestfs_mknod_b (guestfs_h *g,\n"
26873 "                  int mode,\n"
26874 "                  int devmajor,\n"
26875 "                  int devminor,\n"
26876 "                  const char *path);\n"
26877 "\n"
26878 msgstr ""
26879
26880 #. type: textblock
26881 #: ../src/guestfs-actions.pod:4810
26882 msgid ""
26883 "This call creates a block device node called C<path> with mode C<mode> and "
26884 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26885 "wrapper around C<guestfs_mknod>."
26886 msgstr ""
26887
26888 #. type: =head2
26889 #: ../src/guestfs-actions.pod:4820
26890 msgid "guestfs_mknod_c"
26891 msgstr ""
26892
26893 #. type: verbatim
26894 #: ../src/guestfs-actions.pod:4822
26895 #, no-wrap
26896 msgid ""
26897 " int\n"
26898 " guestfs_mknod_c (guestfs_h *g,\n"
26899 "                  int mode,\n"
26900 "                  int devmajor,\n"
26901 "                  int devminor,\n"
26902 "                  const char *path);\n"
26903 "\n"
26904 msgstr ""
26905
26906 #. type: textblock
26907 #: ../src/guestfs-actions.pod:4829
26908 msgid ""
26909 "This call creates a char device node called C<path> with mode C<mode> and "
26910 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26911 "wrapper around C<guestfs_mknod>."
26912 msgstr ""
26913
26914 #. type: =head2
26915 #: ../src/guestfs-actions.pod:4839
26916 msgid "guestfs_mkswap"
26917 msgstr ""
26918
26919 #. type: verbatim
26920 #: ../src/guestfs-actions.pod:4841
26921 #, no-wrap
26922 msgid ""
26923 " int\n"
26924 " guestfs_mkswap (guestfs_h *g,\n"
26925 "                 const char *device);\n"
26926 "\n"
26927 msgstr ""
26928
26929 #. type: =head2
26930 #: ../src/guestfs-actions.pod:4851
26931 msgid "guestfs_mkswap_L"
26932 msgstr ""
26933
26934 #. type: verbatim
26935 #: ../src/guestfs-actions.pod:4853
26936 #, no-wrap
26937 msgid ""
26938 " int\n"
26939 " guestfs_mkswap_L (guestfs_h *g,\n"
26940 "                   const char *label,\n"
26941 "                   const char *device);\n"
26942 "\n"
26943 msgstr ""
26944
26945 #. type: =head2
26946 #: ../src/guestfs-actions.pod:4868
26947 msgid "guestfs_mkswap_U"
26948 msgstr ""
26949
26950 #. type: verbatim
26951 #: ../src/guestfs-actions.pod:4870
26952 #, no-wrap
26953 msgid ""
26954 " int\n"
26955 " guestfs_mkswap_U (guestfs_h *g,\n"
26956 "                   const char *uuid,\n"
26957 "                   const char *device);\n"
26958 "\n"
26959 msgstr ""
26960
26961 #. type: =head2
26962 #: ../src/guestfs-actions.pod:4881
26963 msgid "guestfs_mkswap_file"
26964 msgstr ""
26965
26966 #. type: verbatim
26967 #: ../src/guestfs-actions.pod:4883
26968 #, no-wrap
26969 msgid ""
26970 " int\n"
26971 " guestfs_mkswap_file (guestfs_h *g,\n"
26972 "                      const char *path);\n"
26973 "\n"
26974 msgstr ""
26975
26976 #. type: textblock
26977 #: ../src/guestfs-actions.pod:4889
26978 msgid ""
26979 "This command just writes a swap file signature to an existing file.  To "
26980 "create the file itself, use something like C<guestfs_fallocate>."
26981 msgstr ""
26982
26983 #. type: =head2
26984 #: ../src/guestfs-actions.pod:4896
26985 msgid "guestfs_modprobe"
26986 msgstr ""
26987
26988 #. type: verbatim
26989 #: ../src/guestfs-actions.pod:4898
26990 #, no-wrap
26991 msgid ""
26992 " int\n"
26993 " guestfs_modprobe (guestfs_h *g,\n"
26994 "                   const char *modulename);\n"
26995 "\n"
26996 msgstr ""
26997
26998 #. type: =head2
26999 #: ../src/guestfs-actions.pod:4911
27000 msgid "guestfs_mount"
27001 msgstr ""
27002
27003 #. type: verbatim
27004 #: ../src/guestfs-actions.pod:4913
27005 #, no-wrap
27006 msgid ""
27007 " int\n"
27008 " guestfs_mount (guestfs_h *g,\n"
27009 "                const char *device,\n"
27010 "                const char *mountpoint);\n"
27011 "\n"
27012 msgstr ""
27013
27014 #. type: textblock
27015 #: ../src/guestfs-actions.pod:4932
27016 msgid ""
27017 "B<Important note:> When you use this call, the filesystem options C<sync> "
27018 "and C<noatime> are set implicitly.  This was originally done because we "
27019 "thought it would improve reliability, but it turns out that I<-o sync> has a "
27020 "very large negative performance impact and negligible effect on "
27021 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
27022 "in any code that needs performance, and instead use C<guestfs_mount_options> "
27023 "(use an empty string for the first parameter if you don't want any options)."
27024 msgstr ""
27025
27026 #. type: =head2
27027 #: ../src/guestfs-actions.pod:4953
27028 msgid "guestfs_mount_9p"
27029 msgstr ""
27030
27031 #. type: verbatim
27032 #: ../src/guestfs-actions.pod:4955
27033 #, no-wrap
27034 msgid ""
27035 " int\n"
27036 " guestfs_mount_9p (guestfs_h *g,\n"
27037 "                   const char *mounttag,\n"
27038 "                   const char *mountpoint,\n"
27039 "                   ...);\n"
27040 "\n"
27041 msgstr ""
27042
27043 #. type: verbatim
27044 #: ../src/guestfs-actions.pod:4966
27045 #, no-wrap
27046 msgid ""
27047 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
27048 "\n"
27049 msgstr ""
27050
27051 #. type: =head2
27052 #: ../src/guestfs-actions.pod:4979
27053 msgid "guestfs_mount_9p_va"
27054 msgstr ""
27055
27056 #. type: verbatim
27057 #: ../src/guestfs-actions.pod:4981
27058 #, no-wrap
27059 msgid ""
27060 " int\n"
27061 " guestfs_mount_9p_va (guestfs_h *g,\n"
27062 "                      const char *mounttag,\n"
27063 "                      const char *mountpoint,\n"
27064 "                      va_list args);\n"
27065 "\n"
27066 msgstr ""
27067
27068 #. type: textblock
27069 #: ../src/guestfs-actions.pod:4987
27070 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
27071 msgstr ""
27072
27073 #. type: =head2
27074 #: ../src/guestfs-actions.pod:4991
27075 msgid "guestfs_mount_9p_argv"
27076 msgstr ""
27077
27078 #. type: verbatim
27079 #: ../src/guestfs-actions.pod:4993
27080 #, no-wrap
27081 msgid ""
27082 " int\n"
27083 " guestfs_mount_9p_argv (guestfs_h *g,\n"
27084 "                        const char *mounttag,\n"
27085 "                        const char *mountpoint,\n"
27086 "                        const struct guestfs_mount_9p_argv *optargs);\n"
27087 "\n"
27088 msgstr ""
27089
27090 #. type: textblock
27091 #: ../src/guestfs-actions.pod:4999
27092 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
27093 msgstr ""
27094
27095 #. type: =head2
27096 #: ../src/guestfs-actions.pod:5003
27097 msgid "guestfs_mount_loop"
27098 msgstr ""
27099
27100 #. type: verbatim
27101 #: ../src/guestfs-actions.pod:5005
27102 #, no-wrap
27103 msgid ""
27104 " int\n"
27105 " guestfs_mount_loop (guestfs_h *g,\n"
27106 "                     const char *file,\n"
27107 "                     const char *mountpoint);\n"
27108 "\n"
27109 msgstr ""
27110
27111 #. type: =head2
27112 #: ../src/guestfs-actions.pod:5018
27113 msgid "guestfs_mount_options"
27114 msgstr ""
27115
27116 #. type: verbatim
27117 #: ../src/guestfs-actions.pod:5020
27118 #, no-wrap
27119 msgid ""
27120 " int\n"
27121 " guestfs_mount_options (guestfs_h *g,\n"
27122 "                        const char *options,\n"
27123 "                        const char *device,\n"
27124 "                        const char *mountpoint);\n"
27125 "\n"
27126 msgstr ""
27127
27128 #. type: textblock
27129 #: ../src/guestfs-actions.pod:5026
27130 msgid ""
27131 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27132 "the mount options as for the L<mount(8)> I<-o> flag."
27133 msgstr ""
27134
27135 #. type: textblock
27136 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5050
27137 #: ../src/guestfs-actions.pod:5067
27138 msgid "(Added in 1.0.10)"
27139 msgstr ""
27140
27141 #. type: =head2
27142 #: ../src/guestfs-actions.pod:5038
27143 msgid "guestfs_mount_ro"
27144 msgstr ""
27145
27146 #. type: verbatim
27147 #: ../src/guestfs-actions.pod:5040
27148 #, no-wrap
27149 msgid ""
27150 " int\n"
27151 " guestfs_mount_ro (guestfs_h *g,\n"
27152 "                   const char *device,\n"
27153 "                   const char *mountpoint);\n"
27154 "\n"
27155 msgstr ""
27156
27157 #. type: textblock
27158 #: ../src/guestfs-actions.pod:5045
27159 msgid ""
27160 "This is the same as the C<guestfs_mount> command, but it mounts the "
27161 "filesystem with the read-only (I<-o ro>) flag."
27162 msgstr ""
27163
27164 #. type: =head2
27165 #: ../src/guestfs-actions.pod:5052
27166 msgid "guestfs_mount_vfs"
27167 msgstr ""
27168
27169 #. type: verbatim
27170 #: ../src/guestfs-actions.pod:5054
27171 #, no-wrap
27172 msgid ""
27173 " int\n"
27174 " guestfs_mount_vfs (guestfs_h *g,\n"
27175 "                    const char *options,\n"
27176 "                    const char *vfstype,\n"
27177 "                    const char *device,\n"
27178 "                    const char *mountpoint);\n"
27179 "\n"
27180 msgstr ""
27181
27182 #. type: textblock
27183 #: ../src/guestfs-actions.pod:5061
27184 msgid ""
27185 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27186 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
27187 "t> flags."
27188 msgstr ""
27189
27190 #. type: =head2
27191 #: ../src/guestfs-actions.pod:5069
27192 msgid "guestfs_mountpoints"
27193 msgstr ""
27194
27195 #. type: verbatim
27196 #: ../src/guestfs-actions.pod:5071
27197 #, no-wrap
27198 msgid ""
27199 " char **\n"
27200 " guestfs_mountpoints (guestfs_h *g);\n"
27201 "\n"
27202 msgstr ""
27203
27204 #. type: textblock
27205 #: ../src/guestfs-actions.pod:5074
27206 msgid ""
27207 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
27208 "devices.  This one returns a hash table (map) of device name to directory "
27209 "where the device is mounted."
27210 msgstr ""
27211
27212 #. type: =head2
27213 #: ../src/guestfs-actions.pod:5086
27214 msgid "guestfs_mounts"
27215 msgstr ""
27216
27217 #. type: verbatim
27218 #: ../src/guestfs-actions.pod:5088
27219 #, no-wrap
27220 msgid ""
27221 " char **\n"
27222 " guestfs_mounts (guestfs_h *g);\n"
27223 "\n"
27224 msgstr ""
27225
27226 #. type: textblock
27227 #: ../src/guestfs-actions.pod:5096
27228 msgid "See also: C<guestfs_mountpoints>"
27229 msgstr ""
27230
27231 #. type: =head2
27232 #: ../src/guestfs-actions.pod:5104
27233 msgid "guestfs_mv"
27234 msgstr ""
27235
27236 #. type: verbatim
27237 #: ../src/guestfs-actions.pod:5106
27238 #, no-wrap
27239 msgid ""
27240 " int\n"
27241 " guestfs_mv (guestfs_h *g,\n"
27242 "             const char *src,\n"
27243 "             const char *dest);\n"
27244 "\n"
27245 msgstr ""
27246
27247 #. type: =head2
27248 #: ../src/guestfs-actions.pod:5118
27249 msgid "guestfs_ntfs_3g_probe"
27250 msgstr ""
27251
27252 #. type: verbatim
27253 #: ../src/guestfs-actions.pod:5120
27254 #, no-wrap
27255 msgid ""
27256 " int\n"
27257 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
27258 "                        int rw,\n"
27259 "                        const char *device);\n"
27260 "\n"
27261 msgstr ""
27262
27263 #. type: textblock
27264 #: ../src/guestfs-actions.pod:5139
27265 msgid "(Added in 1.0.43)"
27266 msgstr ""
27267
27268 #. type: =head2
27269 #: ../src/guestfs-actions.pod:5141
27270 msgid "guestfs_ntfsresize"
27271 msgstr ""
27272
27273 #. type: verbatim
27274 #: ../src/guestfs-actions.pod:5143
27275 #, no-wrap
27276 msgid ""
27277 " int\n"
27278 " guestfs_ntfsresize (guestfs_h *g,\n"
27279 "                     const char *device);\n"
27280 "\n"
27281 msgstr ""
27282
27283 #. type: =head2
27284 #: ../src/guestfs-actions.pod:5171
27285 msgid "guestfs_ntfsresize_opts"
27286 msgstr ""
27287
27288 #. type: verbatim
27289 #: ../src/guestfs-actions.pod:5173
27290 #, no-wrap
27291 msgid ""
27292 " int\n"
27293 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
27294 "                          const char *device,\n"
27295 "                          ...);\n"
27296 "\n"
27297 msgstr ""
27298
27299 #. type: verbatim
27300 #: ../src/guestfs-actions.pod:5183
27301 #, no-wrap
27302 msgid ""
27303 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
27304 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
27305 "\n"
27306 msgstr ""
27307
27308 #. type: textblock
27309 #: ../src/guestfs-actions.pod:5203
27310 msgid ""
27311 "After the resize operation, the filesystem is always marked as requiring a "
27312 "consistency check (for safety).  You have to boot into Windows to perform "
27313 "this check and clear this condition.  If you I<don't> set the C<force> "
27314 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
27315 "times on a single filesystem without booting into Windows between each "
27316 "resize."
27317 msgstr ""
27318
27319 #. type: =head2
27320 #: ../src/guestfs-actions.pod:5218
27321 msgid "guestfs_ntfsresize_opts_va"
27322 msgstr ""
27323
27324 #. type: verbatim
27325 #: ../src/guestfs-actions.pod:5220
27326 #, no-wrap
27327 msgid ""
27328 " int\n"
27329 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
27330 "                             const char *device,\n"
27331 "                             va_list args);\n"
27332 "\n"
27333 msgstr ""
27334
27335 #. type: textblock
27336 #: ../src/guestfs-actions.pod:5225
27337 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
27338 msgstr ""
27339
27340 #. type: =head2
27341 #: ../src/guestfs-actions.pod:5229
27342 msgid "guestfs_ntfsresize_opts_argv"
27343 msgstr ""
27344
27345 #. type: verbatim
27346 #: ../src/guestfs-actions.pod:5231
27347 #, no-wrap
27348 msgid ""
27349 " int\n"
27350 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
27351 "                               const char *device,\n"
27352 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
27353 "\n"
27354 msgstr ""
27355
27356 #. type: textblock
27357 #: ../src/guestfs-actions.pod:5236
27358 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
27359 msgstr ""
27360
27361 #. type: =head2
27362 #: ../src/guestfs-actions.pod:5240
27363 msgid "guestfs_ntfsresize_size"
27364 msgstr ""
27365
27366 #. type: verbatim
27367 #: ../src/guestfs-actions.pod:5242
27368 #, no-wrap
27369 msgid ""
27370 " int\n"
27371 " guestfs_ntfsresize_size (guestfs_h *g,\n"
27372 "                          const char *device,\n"
27373 "                          int64_t size);\n"
27374 "\n"
27375 msgstr ""
27376
27377 #. type: textblock
27378 #: ../src/guestfs-actions.pod:5247
27379 msgid ""
27380 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
27381 "to specify the new size (in bytes) explicitly."
27382 msgstr ""
27383
27384 #. type: textblock
27385 #: ../src/guestfs-actions.pod:5259 ../src/guestfs-actions.pod:5701
27386 #: ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:6042
27387 #: ../src/guestfs-actions.pod:7665
27388 msgid "(Added in 1.3.14)"
27389 msgstr ""
27390
27391 #. type: =head2
27392 #: ../src/guestfs-actions.pod:5261
27393 msgid "guestfs_part_add"
27394 msgstr ""
27395
27396 #. type: verbatim
27397 #: ../src/guestfs-actions.pod:5263
27398 #, no-wrap
27399 msgid ""
27400 " int\n"
27401 " guestfs_part_add (guestfs_h *g,\n"
27402 "                   const char *device,\n"
27403 "                   const char *prlogex,\n"
27404 "                   int64_t startsect,\n"
27405 "                   int64_t endsect);\n"
27406 "\n"
27407 msgstr ""
27408
27409 #. type: textblock
27410 #: ../src/guestfs-actions.pod:5270
27411 msgid ""
27412 "This command adds a partition to C<device>.  If there is no partition table "
27413 "on the device, call C<guestfs_part_init> first."
27414 msgstr ""
27415
27416 #. type: textblock
27417 #: ../src/guestfs-actions.pod:5282
27418 msgid ""
27419 "Creating a partition which covers the whole disk is not so easy.  Use "
27420 "C<guestfs_part_disk> to do that."
27421 msgstr ""
27422
27423 #. type: textblock
27424 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5325
27425 #: ../src/guestfs-actions.pod:5378 ../src/guestfs-actions.pod:5462
27426 #: ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5519
27427 #: ../src/guestfs-actions.pod:5559
27428 msgid "(Added in 1.0.78)"
27429 msgstr ""
27430
27431 #. type: =head2
27432 #: ../src/guestfs-actions.pod:5289
27433 msgid "guestfs_part_del"
27434 msgstr ""
27435
27436 #. type: verbatim
27437 #: ../src/guestfs-actions.pod:5291
27438 #, no-wrap
27439 msgid ""
27440 " int\n"
27441 " guestfs_part_del (guestfs_h *g,\n"
27442 "                   const char *device,\n"
27443 "                   int partnum);\n"
27444 "\n"
27445 msgstr ""
27446
27447 #. type: =head2
27448 #: ../src/guestfs-actions.pod:5306
27449 msgid "guestfs_part_disk"
27450 msgstr ""
27451
27452 #. type: verbatim
27453 #: ../src/guestfs-actions.pod:5308
27454 #, no-wrap
27455 msgid ""
27456 " int\n"
27457 " guestfs_part_disk (guestfs_h *g,\n"
27458 "                    const char *device,\n"
27459 "                    const char *parttype);\n"
27460 "\n"
27461 msgstr ""
27462
27463 #. type: textblock
27464 #: ../src/guestfs-actions.pod:5313
27465 msgid ""
27466 "This command is simply a combination of C<guestfs_part_init> followed by "
27467 "C<guestfs_part_add> to create a single primary partition covering the whole "
27468 "disk."
27469 msgstr ""
27470
27471 #. type: textblock
27472 #: ../src/guestfs-actions.pod:5317
27473 msgid ""
27474 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27475 "possible values are described in C<guestfs_part_init>."
27476 msgstr ""
27477
27478 #. type: =head2
27479 #: ../src/guestfs-actions.pod:5327
27480 msgid "guestfs_part_get_bootable"
27481 msgstr ""
27482
27483 #. type: verbatim
27484 #: ../src/guestfs-actions.pod:5329
27485 #, no-wrap
27486 msgid ""
27487 " int\n"
27488 " guestfs_part_get_bootable (guestfs_h *g,\n"
27489 "                            const char *device,\n"
27490 "                            int partnum);\n"
27491 "\n"
27492 msgstr ""
27493
27494 #. type: textblock
27495 #: ../src/guestfs-actions.pod:5337
27496 msgid "See also C<guestfs_part_set_bootable>."
27497 msgstr ""
27498
27499 #. type: =head2
27500 #: ../src/guestfs-actions.pod:5343
27501 msgid "guestfs_part_get_mbr_id"
27502 msgstr ""
27503
27504 #. type: verbatim
27505 #: ../src/guestfs-actions.pod:5345
27506 #, no-wrap
27507 msgid ""
27508 " int\n"
27509 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
27510 "                          const char *device,\n"
27511 "                          int partnum);\n"
27512 "\n"
27513 msgstr ""
27514
27515 #. type: textblock
27516 #: ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:5535
27517 msgid ""
27518 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27519 "undefined results for other partition table types (see "
27520 "C<guestfs_part_get_parttype>)."
27521 msgstr ""
27522
27523 #. type: =head2
27524 #: ../src/guestfs-actions.pod:5361
27525 msgid "guestfs_part_get_parttype"
27526 msgstr ""
27527
27528 #. type: verbatim
27529 #: ../src/guestfs-actions.pod:5363
27530 #, no-wrap
27531 msgid ""
27532 " char *\n"
27533 " guestfs_part_get_parttype (guestfs_h *g,\n"
27534 "                            const char *device);\n"
27535 "\n"
27536 msgstr ""
27537
27538 #. type: textblock
27539 #: ../src/guestfs-actions.pod:5370
27540 msgid ""
27541 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27542 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27543 "possible, although unusual.  See C<guestfs_part_init> for a full list."
27544 msgstr ""
27545
27546 #. type: =head2
27547 #: ../src/guestfs-actions.pod:5380
27548 msgid "guestfs_part_init"
27549 msgstr ""
27550
27551 #. type: verbatim
27552 #: ../src/guestfs-actions.pod:5382
27553 #, no-wrap
27554 msgid ""
27555 " int\n"
27556 " guestfs_part_init (guestfs_h *g,\n"
27557 "                    const char *device,\n"
27558 "                    const char *parttype);\n"
27559 "\n"
27560 msgstr ""
27561
27562 #. type: textblock
27563 #: ../src/guestfs-actions.pod:5391
27564 msgid ""
27565 "Initially there are no partitions.  Following this, you should call "
27566 "C<guestfs_part_add> for each partition required."
27567 msgstr ""
27568
27569 #. type: =head2
27570 #: ../src/guestfs-actions.pod:5464
27571 msgid "guestfs_part_list"
27572 msgstr ""
27573
27574 #. type: verbatim
27575 #: ../src/guestfs-actions.pod:5466
27576 #, no-wrap
27577 msgid ""
27578 " struct guestfs_partition_list *\n"
27579 " guestfs_part_list (guestfs_h *g,\n"
27580 "                    const char *device);\n"
27581 "\n"
27582 msgstr ""
27583
27584 #. type: textblock
27585 #: ../src/guestfs-actions.pod:5483
27586 msgid ""
27587 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27588 "the device's sector size, see C<guestfs_blockdev_getss>."
27589 msgstr ""
27590
27591 #. type: textblock
27592 #: ../src/guestfs-actions.pod:5496
27593 msgid ""
27594 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
27595 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
27596 "use>."
27597 msgstr ""
27598
27599 #. type: =head2
27600 #: ../src/guestfs-actions.pod:5502
27601 msgid "guestfs_part_set_bootable"
27602 msgstr ""
27603
27604 #. type: verbatim
27605 #: ../src/guestfs-actions.pod:5504
27606 #, no-wrap
27607 msgid ""
27608 " int\n"
27609 " guestfs_part_set_bootable (guestfs_h *g,\n"
27610 "                            const char *device,\n"
27611 "                            int partnum,\n"
27612 "                            int bootable);\n"
27613 "\n"
27614 msgstr ""
27615
27616 #. type: =head2
27617 #: ../src/guestfs-actions.pod:5521
27618 msgid "guestfs_part_set_mbr_id"
27619 msgstr ""
27620
27621 #. type: verbatim
27622 #: ../src/guestfs-actions.pod:5523
27623 #, no-wrap
27624 msgid ""
27625 " int\n"
27626 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
27627 "                          const char *device,\n"
27628 "                          int partnum,\n"
27629 "                          int idbyte);\n"
27630 "\n"
27631 msgstr ""
27632
27633 #. type: =head2
27634 #: ../src/guestfs-actions.pod:5543
27635 msgid "guestfs_part_set_name"
27636 msgstr ""
27637
27638 #. type: verbatim
27639 #: ../src/guestfs-actions.pod:5545
27640 #, no-wrap
27641 msgid ""
27642 " int\n"
27643 " guestfs_part_set_name (guestfs_h *g,\n"
27644 "                        const char *device,\n"
27645 "                        int partnum,\n"
27646 "                        const char *name);\n"
27647 "\n"
27648 msgstr ""
27649
27650 #. type: =head2
27651 #: ../src/guestfs-actions.pod:5561
27652 msgid "guestfs_part_to_dev"
27653 msgstr ""
27654
27655 #. type: verbatim
27656 #: ../src/guestfs-actions.pod:5563
27657 #, no-wrap
27658 msgid ""
27659 " char *\n"
27660 " guestfs_part_to_dev (guestfs_h *g,\n"
27661 "                      const char *partition);\n"
27662 "\n"
27663 msgstr ""
27664
27665 #. type: textblock
27666 #: ../src/guestfs-actions.pod:5571
27667 msgid ""
27668 "The named partition must exist, for example as a string returned from "
27669 "C<guestfs_list_partitions>."
27670 msgstr ""
27671
27672 #. type: =head2
27673 #: ../src/guestfs-actions.pod:5579
27674 msgid "guestfs_ping_daemon"
27675 msgstr ""
27676
27677 #. type: verbatim
27678 #: ../src/guestfs-actions.pod:5581
27679 #, no-wrap
27680 msgid ""
27681 " int\n"
27682 " guestfs_ping_daemon (guestfs_h *g);\n"
27683 "\n"
27684 msgstr ""
27685
27686 #. type: =head2
27687 #: ../src/guestfs-actions.pod:5593
27688 msgid "guestfs_pread"
27689 msgstr ""
27690
27691 #. type: verbatim
27692 #: ../src/guestfs-actions.pod:5595
27693 #, no-wrap
27694 msgid ""
27695 " char *\n"
27696 " guestfs_pread (guestfs_h *g,\n"
27697 "                const char *path,\n"
27698 "                int count,\n"
27699 "                int64_t offset,\n"
27700 "                size_t *size_r);\n"
27701 "\n"
27702 msgstr ""
27703
27704 #. type: textblock
27705 #: ../src/guestfs-actions.pod:5608
27706 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
27707 msgstr ""
27708
27709 #. type: =head2
27710 #: ../src/guestfs-actions.pod:5619
27711 msgid "guestfs_pread_device"
27712 msgstr ""
27713
27714 #. type: verbatim
27715 #: ../src/guestfs-actions.pod:5621
27716 #, no-wrap
27717 msgid ""
27718 " char *\n"
27719 " guestfs_pread_device (guestfs_h *g,\n"
27720 "                       const char *device,\n"
27721 "                       int count,\n"
27722 "                       int64_t offset,\n"
27723 "                       size_t *size_r);\n"
27724 "\n"
27725 msgstr ""
27726
27727 #. type: textblock
27728 #: ../src/guestfs-actions.pod:5634
27729 msgid "See also C<guestfs_pread>."
27730 msgstr ""
27731
27732 #. type: textblock
27733 #: ../src/guestfs-actions.pod:5643
27734 msgid "(Added in 1.5.21)"
27735 msgstr ""
27736
27737 #. type: =head2
27738 #: ../src/guestfs-actions.pod:5645
27739 msgid "guestfs_pvcreate"
27740 msgstr ""
27741
27742 #. type: verbatim
27743 #: ../src/guestfs-actions.pod:5647
27744 #, no-wrap
27745 msgid ""
27746 " int\n"
27747 " guestfs_pvcreate (guestfs_h *g,\n"
27748 "                   const char *device);\n"
27749 "\n"
27750 msgstr ""
27751
27752 #. type: =head2
27753 #: ../src/guestfs-actions.pod:5659
27754 msgid "guestfs_pvremove"
27755 msgstr ""
27756
27757 #. type: verbatim
27758 #: ../src/guestfs-actions.pod:5661
27759 #, no-wrap
27760 msgid ""
27761 " int\n"
27762 " guestfs_pvremove (guestfs_h *g,\n"
27763 "                   const char *device);\n"
27764 "\n"
27765 msgstr ""
27766
27767 #. type: =head2
27768 #: ../src/guestfs-actions.pod:5676
27769 msgid "guestfs_pvresize"
27770 msgstr ""
27771
27772 #. type: verbatim
27773 #: ../src/guestfs-actions.pod:5678
27774 #, no-wrap
27775 msgid ""
27776 " int\n"
27777 " guestfs_pvresize (guestfs_h *g,\n"
27778 "                   const char *device);\n"
27779 "\n"
27780 msgstr ""
27781
27782 #. type: =head2
27783 #: ../src/guestfs-actions.pod:5689
27784 msgid "guestfs_pvresize_size"
27785 msgstr ""
27786
27787 #. type: verbatim
27788 #: ../src/guestfs-actions.pod:5691
27789 #, no-wrap
27790 msgid ""
27791 " int\n"
27792 " guestfs_pvresize_size (guestfs_h *g,\n"
27793 "                        const char *device,\n"
27794 "                        int64_t size);\n"
27795 "\n"
27796 msgstr ""
27797
27798 #. type: textblock
27799 #: ../src/guestfs-actions.pod:5696
27800 msgid ""
27801 "This command is the same as C<guestfs_pvresize> except that it allows you to "
27802 "specify the new size (in bytes) explicitly."
27803 msgstr ""
27804
27805 #. type: =head2
27806 #: ../src/guestfs-actions.pod:5703
27807 msgid "guestfs_pvs"
27808 msgstr ""
27809
27810 #. type: verbatim
27811 #: ../src/guestfs-actions.pod:5705
27812 #, no-wrap
27813 msgid ""
27814 " char **\n"
27815 " guestfs_pvs (guestfs_h *g);\n"
27816 "\n"
27817 msgstr ""
27818
27819 #. type: textblock
27820 #: ../src/guestfs-actions.pod:5714
27821 msgid "See also C<guestfs_pvs_full>."
27822 msgstr ""
27823
27824 #. type: =head2
27825 #: ../src/guestfs-actions.pod:5722
27826 msgid "guestfs_pvs_full"
27827 msgstr ""
27828
27829 #. type: verbatim
27830 #: ../src/guestfs-actions.pod:5724
27831 #, no-wrap
27832 msgid ""
27833 " struct guestfs_lvm_pv_list *\n"
27834 " guestfs_pvs_full (guestfs_h *g);\n"
27835 "\n"
27836 msgstr ""
27837
27838 #. type: textblock
27839 #: ../src/guestfs-actions.pod:5730
27840 msgid ""
27841 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
27842 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
27843 msgstr ""
27844
27845 #. type: =head2
27846 #: ../src/guestfs-actions.pod:5736
27847 msgid "guestfs_pvuuid"
27848 msgstr ""
27849
27850 #. type: verbatim
27851 #: ../src/guestfs-actions.pod:5738
27852 #, no-wrap
27853 msgid ""
27854 " char *\n"
27855 " guestfs_pvuuid (guestfs_h *g,\n"
27856 "                 const char *device);\n"
27857 "\n"
27858 msgstr ""
27859
27860 #. type: =head2
27861 #: ../src/guestfs-actions.pod:5749
27862 msgid "guestfs_pwrite"
27863 msgstr ""
27864
27865 #. type: verbatim
27866 #: ../src/guestfs-actions.pod:5751
27867 #, no-wrap
27868 msgid ""
27869 " int\n"
27870 " guestfs_pwrite (guestfs_h *g,\n"
27871 "                 const char *path,\n"
27872 "                 const char *content,\n"
27873 "                 size_t content_size,\n"
27874 "                 int64_t offset);\n"
27875 "\n"
27876 msgstr ""
27877
27878 #. type: textblock
27879 #: ../src/guestfs-actions.pod:5767
27880 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
27881 msgstr ""
27882
27883 #. type: =head2
27884 #: ../src/guestfs-actions.pod:5776
27885 msgid "guestfs_pwrite_device"
27886 msgstr ""
27887
27888 #. type: verbatim
27889 #: ../src/guestfs-actions.pod:5778
27890 #, no-wrap
27891 msgid ""
27892 " int\n"
27893 " guestfs_pwrite_device (guestfs_h *g,\n"
27894 "                        const char *device,\n"
27895 "                        const char *content,\n"
27896 "                        size_t content_size,\n"
27897 "                        int64_t offset);\n"
27898 "\n"
27899 msgstr ""
27900
27901 #. type: textblock
27902 #: ../src/guestfs-actions.pod:5793
27903 msgid "See also C<guestfs_pwrite>."
27904 msgstr ""
27905
27906 #. type: textblock
27907 #: ../src/guestfs-actions.pod:5800
27908 msgid "(Added in 1.5.20)"
27909 msgstr ""
27910
27911 #. type: =head2
27912 #: ../src/guestfs-actions.pod:5802
27913 msgid "guestfs_read_file"
27914 msgstr ""
27915
27916 #. type: verbatim
27917 #: ../src/guestfs-actions.pod:5804
27918 #, no-wrap
27919 msgid ""
27920 " char *\n"
27921 " guestfs_read_file (guestfs_h *g,\n"
27922 "                    const char *path,\n"
27923 "                    size_t *size_r);\n"
27924 "\n"
27925 msgstr ""
27926
27927 #. type: textblock
27928 #: ../src/guestfs-actions.pod:5812
27929 msgid ""
27930 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
27931 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
27932 "function is limited in the total size of file that can be handled."
27933 msgstr ""
27934
27935 #. type: textblock
27936 #: ../src/guestfs-actions.pod:5824
27937 msgid "(Added in 1.0.63)"
27938 msgstr ""
27939
27940 #. type: =head2
27941 #: ../src/guestfs-actions.pod:5826
27942 msgid "guestfs_read_lines"
27943 msgstr ""
27944
27945 #. type: verbatim
27946 #: ../src/guestfs-actions.pod:5828
27947 #, no-wrap
27948 msgid ""
27949 " char **\n"
27950 " guestfs_read_lines (guestfs_h *g,\n"
27951 "                     const char *path);\n"
27952 "\n"
27953 msgstr ""
27954
27955 #. type: textblock
27956 #: ../src/guestfs-actions.pod:5837
27957 msgid ""
27958 "Note that this function cannot correctly handle binary files (specifically, "
27959 "files containing C<\\0> character which is treated as end of line).  For "
27960 "those you need to use the C<guestfs_read_file> function which has a more "
27961 "complex interface."
27962 msgstr ""
27963
27964 #. type: =head2
27965 #: ../src/guestfs-actions.pod:5848
27966 msgid "guestfs_readdir"
27967 msgstr ""
27968
27969 #. type: verbatim
27970 #: ../src/guestfs-actions.pod:5850
27971 #, no-wrap
27972 msgid ""
27973 " struct guestfs_dirent_list *\n"
27974 " guestfs_readdir (guestfs_h *g,\n"
27975 "                  const char *dir);\n"
27976 "\n"
27977 msgstr ""
27978
27979 #. type: textblock
27980 #: ../src/guestfs-actions.pod:5904
27981 msgid ""
27982 "This function is primarily intended for use by programs.  To get a simple "
27983 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
27984 "consumption, use C<guestfs_ll>."
27985 msgstr ""
27986
27987 #. type: textblock
27988 #: ../src/guestfs-actions.pod:5908
27989 msgid ""
27990 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
27991 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
27992 msgstr ""
27993
27994 #. type: =head2
27995 #: ../src/guestfs-actions.pod:5914
27996 msgid "guestfs_readlink"
27997 msgstr ""
27998
27999 #. type: verbatim
28000 #: ../src/guestfs-actions.pod:5916
28001 #, no-wrap
28002 msgid ""
28003 " char *\n"
28004 " guestfs_readlink (guestfs_h *g,\n"
28005 "                   const char *path);\n"
28006 "\n"
28007 msgstr ""
28008
28009 #. type: =head2
28010 #: ../src/guestfs-actions.pod:5927
28011 msgid "guestfs_readlinklist"
28012 msgstr ""
28013
28014 #. type: verbatim
28015 #: ../src/guestfs-actions.pod:5929
28016 #, no-wrap
28017 msgid ""
28018 " char **\n"
28019 " guestfs_readlinklist (guestfs_h *g,\n"
28020 "                       const char *path,\n"
28021 "                       char *const *names);\n"
28022 "\n"
28023 msgstr ""
28024
28025 #. type: =head2
28026 #: ../src/guestfs-actions.pod:5962
28027 msgid "guestfs_realpath"
28028 msgstr ""
28029
28030 #. type: verbatim
28031 #: ../src/guestfs-actions.pod:5964
28032 #, no-wrap
28033 msgid ""
28034 " char *\n"
28035 " guestfs_realpath (guestfs_h *g,\n"
28036 "                   const char *path);\n"
28037 "\n"
28038 msgstr ""
28039
28040 #. type: =head2
28041 #: ../src/guestfs-actions.pod:5976
28042 msgid "guestfs_removexattr"
28043 msgstr ""
28044
28045 #. type: verbatim
28046 #: ../src/guestfs-actions.pod:5978
28047 #, no-wrap
28048 msgid ""
28049 " int\n"
28050 " guestfs_removexattr (guestfs_h *g,\n"
28051 "                      const char *xattr,\n"
28052 "                      const char *path);\n"
28053 "\n"
28054 msgstr ""
28055
28056 #. type: textblock
28057 #: ../src/guestfs-actions.pod:5986
28058 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
28059 msgstr ""
28060
28061 #. type: =head2
28062 #: ../src/guestfs-actions.pod:5992
28063 msgid "guestfs_resize2fs"
28064 msgstr ""
28065
28066 #. type: verbatim
28067 #: ../src/guestfs-actions.pod:5994
28068 #, no-wrap
28069 msgid ""
28070 " int\n"
28071 " guestfs_resize2fs (guestfs_h *g,\n"
28072 "                    const char *device);\n"
28073 "\n"
28074 msgstr ""
28075
28076 #. type: textblock
28077 #: ../src/guestfs-actions.pod:6001
28078 msgid ""
28079 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
28080 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
28081 "sometimes gives an error about this and sometimes not.  In any case, it is "
28082 "always safe to call C<guestfs_e2fsck_f> before calling this function."
28083 msgstr ""
28084
28085 #. type: =head2
28086 #: ../src/guestfs-actions.pod:6011
28087 msgid "guestfs_resize2fs_M"
28088 msgstr ""
28089
28090 #. type: verbatim
28091 #: ../src/guestfs-actions.pod:6013
28092 #, no-wrap
28093 msgid ""
28094 " int\n"
28095 " guestfs_resize2fs_M (guestfs_h *g,\n"
28096 "                      const char *device);\n"
28097 "\n"
28098 msgstr ""
28099
28100 #. type: textblock
28101 #: ../src/guestfs-actions.pod:6017
28102 msgid ""
28103 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
28104 "resized to its minimum size.  This works like the I<-M> option to the "
28105 "C<resize2fs> command."
28106 msgstr ""
28107
28108 #. type: textblock
28109 #: ../src/guestfs-actions.pod:6021
28110 msgid ""
28111 "To get the resulting size of the filesystem you should call "
28112 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
28113 "These two numbers, multiplied together, give the resulting size of the "
28114 "minimal filesystem in bytes."
28115 msgstr ""
28116
28117 #. type: =head2
28118 #: ../src/guestfs-actions.pod:6030
28119 msgid "guestfs_resize2fs_size"
28120 msgstr ""
28121
28122 #. type: verbatim
28123 #: ../src/guestfs-actions.pod:6032
28124 #, no-wrap
28125 msgid ""
28126 " int\n"
28127 " guestfs_resize2fs_size (guestfs_h *g,\n"
28128 "                         const char *device,\n"
28129 "                         int64_t size);\n"
28130 "\n"
28131 msgstr ""
28132
28133 #. type: textblock
28134 #: ../src/guestfs-actions.pod:6037
28135 msgid ""
28136 "This command is the same as C<guestfs_resize2fs> except that it allows you "
28137 "to specify the new size (in bytes) explicitly."
28138 msgstr ""
28139
28140 #. type: =head2
28141 #: ../src/guestfs-actions.pod:6044
28142 msgid "guestfs_rm"
28143 msgstr ""
28144
28145 #. type: verbatim
28146 #: ../src/guestfs-actions.pod:6046
28147 #, no-wrap
28148 msgid ""
28149 " int\n"
28150 " guestfs_rm (guestfs_h *g,\n"
28151 "             const char *path);\n"
28152 "\n"
28153 msgstr ""
28154
28155 #. type: =head2
28156 #: ../src/guestfs-actions.pod:6056
28157 msgid "guestfs_rm_rf"
28158 msgstr ""
28159
28160 #. type: verbatim
28161 #: ../src/guestfs-actions.pod:6058
28162 #, no-wrap
28163 msgid ""
28164 " int\n"
28165 " guestfs_rm_rf (guestfs_h *g,\n"
28166 "                const char *path);\n"
28167 "\n"
28168 msgstr ""
28169
28170 #. type: =head2
28171 #: ../src/guestfs-actions.pod:6070
28172 msgid "guestfs_rmdir"
28173 msgstr ""
28174
28175 #. type: verbatim
28176 #: ../src/guestfs-actions.pod:6072
28177 #, no-wrap
28178 msgid ""
28179 " int\n"
28180 " guestfs_rmdir (guestfs_h *g,\n"
28181 "                const char *path);\n"
28182 "\n"
28183 msgstr ""
28184
28185 #. type: =head2
28186 #: ../src/guestfs-actions.pod:6082
28187 msgid "guestfs_rmmountpoint"
28188 msgstr ""
28189
28190 #. type: verbatim
28191 #: ../src/guestfs-actions.pod:6084
28192 #, no-wrap
28193 msgid ""
28194 " int\n"
28195 " guestfs_rmmountpoint (guestfs_h *g,\n"
28196 "                       const char *exemptpath);\n"
28197 "\n"
28198 msgstr ""
28199
28200 #. type: textblock
28201 #: ../src/guestfs-actions.pod:6088
28202 msgid ""
28203 "This calls removes a mountpoint that was previously created with "
28204 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
28205 msgstr ""
28206
28207 #. type: =head2
28208 #: ../src/guestfs-actions.pod:6096
28209 msgid "guestfs_scrub_device"
28210 msgstr ""
28211
28212 #. type: verbatim
28213 #: ../src/guestfs-actions.pod:6098
28214 #, no-wrap
28215 msgid ""
28216 " int\n"
28217 " guestfs_scrub_device (guestfs_h *g,\n"
28218 "                       const char *device);\n"
28219 "\n"
28220 msgstr ""
28221
28222 #. type: textblock
28223 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6131
28224 #: ../src/guestfs-actions.pod:6150
28225 msgid "(Added in 1.0.52)"
28226 msgstr ""
28227
28228 #. type: =head2
28229 #: ../src/guestfs-actions.pod:6115
28230 msgid "guestfs_scrub_file"
28231 msgstr ""
28232
28233 #. type: verbatim
28234 #: ../src/guestfs-actions.pod:6117
28235 #, no-wrap
28236 msgid ""
28237 " int\n"
28238 " guestfs_scrub_file (guestfs_h *g,\n"
28239 "                     const char *file);\n"
28240 "\n"
28241 msgstr ""
28242
28243 #. type: =head2
28244 #: ../src/guestfs-actions.pod:6133
28245 msgid "guestfs_scrub_freespace"
28246 msgstr ""
28247
28248 #. type: verbatim
28249 #: ../src/guestfs-actions.pod:6135
28250 #, no-wrap
28251 msgid ""
28252 " int\n"
28253 " guestfs_scrub_freespace (guestfs_h *g,\n"
28254 "                          const char *dir);\n"
28255 "\n"
28256 msgstr ""
28257
28258 #. type: textblock
28259 #: ../src/guestfs-actions.pod:6139
28260 msgid ""
28261 "This command creates the directory C<dir> and then fills it with files until "
28262 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
28263 "and deletes them.  The intention is to scrub any free space on the partition "
28264 "containing C<dir>."
28265 msgstr ""
28266
28267 #. type: =head2
28268 #: ../src/guestfs-actions.pod:6152
28269 msgid "guestfs_set_append"
28270 msgstr ""
28271
28272 #. type: verbatim
28273 #: ../src/guestfs-actions.pod:6154
28274 #, no-wrap
28275 msgid ""
28276 " int\n"
28277 " guestfs_set_append (guestfs_h *g,\n"
28278 "                     const char *append);\n"
28279 "\n"
28280 msgstr ""
28281
28282 #. type: =head2
28283 #: ../src/guestfs-actions.pod:6171
28284 msgid "guestfs_set_attach_method"
28285 msgstr ""
28286
28287 #. type: verbatim
28288 #: ../src/guestfs-actions.pod:6173
28289 #, no-wrap
28290 msgid ""
28291 " int\n"
28292 " guestfs_set_attach_method (guestfs_h *g,\n"
28293 "                            const char *attachmethod);\n"
28294 "\n"
28295 msgstr ""
28296
28297 #. type: =head2
28298 #: ../src/guestfs-actions.pod:6201
28299 msgid "guestfs_set_autosync"
28300 msgstr ""
28301
28302 #. type: verbatim
28303 #: ../src/guestfs-actions.pod:6203
28304 #, no-wrap
28305 msgid ""
28306 " int\n"
28307 " guestfs_set_autosync (guestfs_h *g,\n"
28308 "                       int autosync);\n"
28309 "\n"
28310 msgstr ""
28311
28312 #. type: =head2
28313 #: ../src/guestfs-actions.pod:6219
28314 msgid "guestfs_set_direct"
28315 msgstr ""
28316
28317 #. type: verbatim
28318 #: ../src/guestfs-actions.pod:6221
28319 #, no-wrap
28320 msgid ""
28321 " int\n"
28322 " guestfs_set_direct (guestfs_h *g,\n"
28323 "                     int direct);\n"
28324 "\n"
28325 msgstr ""
28326
28327 #. type: textblock
28328 #: ../src/guestfs-actions.pod:6229
28329 msgid ""
28330 "One consequence of this is that log messages aren't caught by the library "
28331 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
28332 "stdout."
28333 msgstr ""
28334
28335 #. type: =head2
28336 #: ../src/guestfs-actions.pod:6242
28337 msgid "guestfs_set_e2label"
28338 msgstr ""
28339
28340 #. type: verbatim
28341 #: ../src/guestfs-actions.pod:6244
28342 #, no-wrap
28343 msgid ""
28344 " int\n"
28345 " guestfs_set_e2label (guestfs_h *g,\n"
28346 "                      const char *device,\n"
28347 "                      const char *label);\n"
28348 "\n"
28349 msgstr ""
28350
28351 #. type: textblock
28352 #: ../src/guestfs-actions.pod:6253
28353 msgid ""
28354 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
28355 "the existing label on a filesystem."
28356 msgstr ""
28357
28358 #. type: =head2
28359 #: ../src/guestfs-actions.pod:6260
28360 msgid "guestfs_set_e2uuid"
28361 msgstr ""
28362
28363 #. type: verbatim
28364 #: ../src/guestfs-actions.pod:6262
28365 #, no-wrap
28366 msgid ""
28367 " int\n"
28368 " guestfs_set_e2uuid (guestfs_h *g,\n"
28369 "                     const char *device,\n"
28370 "                     const char *uuid);\n"
28371 "\n"
28372 msgstr ""
28373
28374 #. type: textblock
28375 #: ../src/guestfs-actions.pod:6272
28376 msgid ""
28377 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
28378 "the existing UUID of a filesystem."
28379 msgstr ""
28380
28381 #. type: =head2
28382 #: ../src/guestfs-actions.pod:6279
28383 msgid "guestfs_set_memsize"
28384 msgstr ""
28385
28386 #. type: verbatim
28387 #: ../src/guestfs-actions.pod:6281
28388 #, no-wrap
28389 msgid ""
28390 " int\n"
28391 " guestfs_set_memsize (guestfs_h *g,\n"
28392 "                      int memsize);\n"
28393 "\n"
28394 msgstr ""
28395
28396 #. type: textblock
28397 #: ../src/guestfs-actions.pod:6285
28398 msgid ""
28399 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28400 "This only has any effect if called before C<guestfs_launch>."
28401 msgstr ""
28402
28403 #. type: =head2
28404 #: ../src/guestfs-actions.pod:6300
28405 msgid "guestfs_set_network"
28406 msgstr ""
28407
28408 #. type: verbatim
28409 #: ../src/guestfs-actions.pod:6302
28410 #, no-wrap
28411 msgid ""
28412 " int\n"
28413 " guestfs_set_network (guestfs_h *g,\n"
28414 "                      int network);\n"
28415 "\n"
28416 msgstr ""
28417
28418 #. type: textblock
28419 #: ../src/guestfs-actions.pod:6312
28420 msgid ""
28421 "You must call this before calling C<guestfs_launch>, otherwise it has no "
28422 "effect."
28423 msgstr ""
28424
28425 #. type: =head2
28426 #: ../src/guestfs-actions.pod:6319
28427 msgid "guestfs_set_path"
28428 msgstr ""
28429
28430 #. type: verbatim
28431 #: ../src/guestfs-actions.pod:6321
28432 #, no-wrap
28433 msgid ""
28434 " int\n"
28435 " guestfs_set_path (guestfs_h *g,\n"
28436 "                   const char *searchpath);\n"
28437 "\n"
28438 msgstr ""
28439
28440 #. type: =head2
28441 #: ../src/guestfs-actions.pod:6336
28442 msgid "guestfs_set_pgroup"
28443 msgstr ""
28444
28445 #. type: verbatim
28446 #: ../src/guestfs-actions.pod:6338
28447 #, no-wrap
28448 msgid ""
28449 " int\n"
28450 " guestfs_set_pgroup (guestfs_h *g,\n"
28451 "                     int pgroup);\n"
28452 "\n"
28453 msgstr ""
28454
28455 #. type: =head2
28456 #: ../src/guestfs-actions.pod:6355
28457 msgid "guestfs_set_qemu"
28458 msgstr ""
28459
28460 #. type: verbatim
28461 #: ../src/guestfs-actions.pod:6357
28462 #, no-wrap
28463 msgid ""
28464 " int\n"
28465 " guestfs_set_qemu (guestfs_h *g,\n"
28466 "                   const char *qemu);\n"
28467 "\n"
28468 msgstr ""
28469
28470 #. type: =head2
28471 #: ../src/guestfs-actions.pod:6383
28472 msgid "guestfs_set_recovery_proc"
28473 msgstr ""
28474
28475 #. type: verbatim
28476 #: ../src/guestfs-actions.pod:6385
28477 #, no-wrap
28478 msgid ""
28479 " int\n"
28480 " guestfs_set_recovery_proc (guestfs_h *g,\n"
28481 "                            int recoveryproc);\n"
28482 "\n"
28483 msgstr ""
28484
28485 #. type: textblock
28486 #: ../src/guestfs-actions.pod:6389
28487 msgid ""
28488 "If this is called with the parameter C<false> then C<guestfs_launch> does "
28489 "not create a recovery process.  The purpose of the recovery process is to "
28490 "stop runaway qemu processes in the case where the main program aborts "
28491 "abruptly."
28492 msgstr ""
28493
28494 #. type: textblock
28495 #: ../src/guestfs-actions.pod:6394
28496 msgid ""
28497 "This only has any effect if called before C<guestfs_launch>, and the default "
28498 "is true."
28499 msgstr ""
28500
28501 #. type: =head2
28502 #: ../src/guestfs-actions.pod:6407
28503 msgid "guestfs_set_selinux"
28504 msgstr ""
28505
28506 #. type: verbatim
28507 #: ../src/guestfs-actions.pod:6409
28508 #, no-wrap
28509 msgid ""
28510 " int\n"
28511 " guestfs_set_selinux (guestfs_h *g,\n"
28512 "                      int selinux);\n"
28513 "\n"
28514 msgstr ""
28515
28516 #. type: =head2
28517 #: ../src/guestfs-actions.pod:6426
28518 msgid "guestfs_set_trace"
28519 msgstr ""
28520
28521 #. type: verbatim
28522 #: ../src/guestfs-actions.pod:6428
28523 #, no-wrap
28524 msgid ""
28525 " int\n"
28526 " guestfs_set_trace (guestfs_h *g,\n"
28527 "                    int trace);\n"
28528 "\n"
28529 msgstr ""
28530
28531 #. type: textblock
28532 #: ../src/guestfs-actions.pod:6442
28533 msgid ""
28534 "Trace messages are normally sent to C<stderr>, unless you register a "
28535 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28536 msgstr ""
28537
28538 #. type: =head2
28539 #: ../src/guestfs-actions.pod:6450
28540 msgid "guestfs_set_verbose"
28541 msgstr ""
28542
28543 #. type: verbatim
28544 #: ../src/guestfs-actions.pod:6452
28545 #, no-wrap
28546 msgid ""
28547 " int\n"
28548 " guestfs_set_verbose (guestfs_h *g,\n"
28549 "                      int verbose);\n"
28550 "\n"
28551 msgstr ""
28552
28553 #. type: textblock
28554 #: ../src/guestfs-actions.pod:6461
28555 msgid ""
28556 "Verbose messages are normally sent to C<stderr>, unless you register a "
28557 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28558 msgstr ""
28559
28560 #. type: =head2
28561 #: ../src/guestfs-actions.pod:6469
28562 msgid "guestfs_setcon"
28563 msgstr ""
28564
28565 #. type: verbatim
28566 #: ../src/guestfs-actions.pod:6471
28567 #, no-wrap
28568 msgid ""
28569 " int\n"
28570 " guestfs_setcon (guestfs_h *g,\n"
28571 "                 const char *context);\n"
28572 "\n"
28573 msgstr ""
28574
28575 #. type: =head2
28576 #: ../src/guestfs-actions.pod:6484
28577 msgid "guestfs_setxattr"
28578 msgstr ""
28579
28580 #. type: verbatim
28581 #: ../src/guestfs-actions.pod:6486
28582 #, no-wrap
28583 msgid ""
28584 " int\n"
28585 " guestfs_setxattr (guestfs_h *g,\n"
28586 "                   const char *xattr,\n"
28587 "                   const char *val,\n"
28588 "                   int vallen,\n"
28589 "                   const char *path);\n"
28590 "\n"
28591 msgstr ""
28592
28593 #. type: textblock
28594 #: ../src/guestfs-actions.pod:6497
28595 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
28596 msgstr ""
28597
28598 #. type: =head2
28599 #: ../src/guestfs-actions.pod:6503
28600 msgid "guestfs_sfdisk"
28601 msgstr ""
28602
28603 #. type: verbatim
28604 #: ../src/guestfs-actions.pod:6505
28605 #, no-wrap
28606 msgid ""
28607 " int\n"
28608 " guestfs_sfdisk (guestfs_h *g,\n"
28609 "                 const char *device,\n"
28610 "                 int cyls,\n"
28611 "                 int heads,\n"
28612 "                 int sectors,\n"
28613 "                 char *const *lines);\n"
28614 "\n"
28615 msgstr ""
28616
28617 #. type: textblock
28618 #: ../src/guestfs-actions.pod:6533
28619 msgid ""
28620 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
28621 msgstr ""
28622
28623 #. type: =head2
28624 #: ../src/guestfs-actions.pod:6550
28625 msgid "guestfs_sfdiskM"
28626 msgstr ""
28627
28628 #. type: verbatim
28629 #: ../src/guestfs-actions.pod:6552
28630 #, no-wrap
28631 msgid ""
28632 " int\n"
28633 " guestfs_sfdiskM (guestfs_h *g,\n"
28634 "                  const char *device,\n"
28635 "                  char *const *lines);\n"
28636 "\n"
28637 msgstr ""
28638
28639 #. type: textblock
28640 #: ../src/guestfs-actions.pod:6557
28641 msgid ""
28642 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
28643 "partition sizes are specified in megabytes only (rounded to the nearest "
28644 "cylinder) and you don't need to specify the cyls, heads and sectors "
28645 "parameters which were rarely if ever used anyway."
28646 msgstr ""
28647
28648 #. type: textblock
28649 #: ../src/guestfs-actions.pod:6563
28650 msgid ""
28651 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
28652 "C<guestfs_part_disk>"
28653 msgstr ""
28654
28655 #. type: =head2
28656 #: ../src/guestfs-actions.pod:6580
28657 msgid "guestfs_sfdisk_N"
28658 msgstr ""
28659
28660 #. type: verbatim
28661 #: ../src/guestfs-actions.pod:6582
28662 #, no-wrap
28663 msgid ""
28664 " int\n"
28665 " guestfs_sfdisk_N (guestfs_h *g,\n"
28666 "                   const char *device,\n"
28667 "                   int partnum,\n"
28668 "                   int cyls,\n"
28669 "                   int heads,\n"
28670 "                   int sectors,\n"
28671 "                   const char *line);\n"
28672 "\n"
28673 msgstr ""
28674
28675 #. type: textblock
28676 #: ../src/guestfs-actions.pod:6594
28677 msgid ""
28678 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
28679 "for the cyls/heads/sectors parameters."
28680 msgstr ""
28681
28682 #. type: textblock
28683 #: ../src/guestfs-actions.pod:6597
28684 msgid "See also: C<guestfs_part_add>"
28685 msgstr ""
28686
28687 #. type: =head2
28688 #: ../src/guestfs-actions.pod:6613
28689 msgid "guestfs_sfdisk_disk_geometry"
28690 msgstr ""
28691
28692 #. type: verbatim
28693 #: ../src/guestfs-actions.pod:6615
28694 #, no-wrap
28695 msgid ""
28696 " char *\n"
28697 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
28698 "                               const char *device);\n"
28699 "\n"
28700 msgstr ""
28701
28702 #. type: textblock
28703 #: ../src/guestfs-actions.pod:6619
28704 msgid ""
28705 "This displays the disk geometry of C<device> read from the partition table.  "
28706 "Especially in the case where the underlying block device has been resized, "
28707 "this can be different from the kernel's idea of the geometry (see "
28708 "C<guestfs_sfdisk_kernel_geometry>)."
28709 msgstr ""
28710
28711 #. type: =head2
28712 #: ../src/guestfs-actions.pod:6632
28713 msgid "guestfs_sfdisk_kernel_geometry"
28714 msgstr ""
28715
28716 #. type: verbatim
28717 #: ../src/guestfs-actions.pod:6634
28718 #, no-wrap
28719 msgid ""
28720 " char *\n"
28721 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
28722 "                                 const char *device);\n"
28723 "\n"
28724 msgstr ""
28725
28726 #. type: =head2
28727 #: ../src/guestfs-actions.pod:6648
28728 msgid "guestfs_sfdisk_l"
28729 msgstr ""
28730
28731 #. type: verbatim
28732 #: ../src/guestfs-actions.pod:6650
28733 #, no-wrap
28734 msgid ""
28735 " char *\n"
28736 " guestfs_sfdisk_l (guestfs_h *g,\n"
28737 "                   const char *device);\n"
28738 "\n"
28739 msgstr ""
28740
28741 #. type: textblock
28742 #: ../src/guestfs-actions.pod:6658
28743 msgid "See also: C<guestfs_part_list>"
28744 msgstr ""
28745
28746 #. type: =head2
28747 #: ../src/guestfs-actions.pod:6672
28748 msgid "guestfs_sh"
28749 msgstr ""
28750
28751 #. type: verbatim
28752 #: ../src/guestfs-actions.pod:6674
28753 #, no-wrap
28754 msgid ""
28755 " char *\n"
28756 " guestfs_sh (guestfs_h *g,\n"
28757 "             const char *command);\n"
28758 "\n"
28759 msgstr ""
28760
28761 #. type: textblock
28762 #: ../src/guestfs-actions.pod:6681
28763 msgid "This is like C<guestfs_command>, but passes the command to:"
28764 msgstr ""
28765
28766 #. type: textblock
28767 #: ../src/guestfs-actions.pod:6689
28768 msgid "All the provisos about C<guestfs_command> apply to this call."
28769 msgstr ""
28770
28771 #. type: =head2
28772 #: ../src/guestfs-actions.pod:6696
28773 msgid "guestfs_sh_lines"
28774 msgstr ""
28775
28776 #. type: verbatim
28777 #: ../src/guestfs-actions.pod:6698
28778 #, no-wrap
28779 msgid ""
28780 " char **\n"
28781 " guestfs_sh_lines (guestfs_h *g,\n"
28782 "                   const char *command);\n"
28783 "\n"
28784 msgstr ""
28785
28786 #. type: textblock
28787 #: ../src/guestfs-actions.pod:6702
28788 msgid ""
28789 "This is the same as C<guestfs_sh>, but splits the result into a list of "
28790 "lines."
28791 msgstr ""
28792
28793 #. type: textblock
28794 #: ../src/guestfs-actions.pod:6705
28795 msgid "See also: C<guestfs_command_lines>"
28796 msgstr ""
28797
28798 #. type: =head2
28799 #: ../src/guestfs-actions.pod:6713
28800 msgid "guestfs_sleep"
28801 msgstr ""
28802
28803 #. type: verbatim
28804 #: ../src/guestfs-actions.pod:6715
28805 #, no-wrap
28806 msgid ""
28807 " int\n"
28808 " guestfs_sleep (guestfs_h *g,\n"
28809 "                int secs);\n"
28810 "\n"
28811 msgstr ""
28812
28813 #. type: textblock
28814 #: ../src/guestfs-actions.pod:6723
28815 msgid "(Added in 1.0.41)"
28816 msgstr ""
28817
28818 #. type: =head2
28819 #: ../src/guestfs-actions.pod:6725 ../src/guestfs-structs.pod:109
28820 msgid "guestfs_stat"
28821 msgstr ""
28822
28823 #. type: verbatim
28824 #: ../src/guestfs-actions.pod:6727
28825 #, no-wrap
28826 msgid ""
28827 " struct guestfs_stat *\n"
28828 " guestfs_stat (guestfs_h *g,\n"
28829 "               const char *path);\n"
28830 "\n"
28831 msgstr ""
28832
28833 #. type: =head2
28834 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-structs.pod:135
28835 msgid "guestfs_statvfs"
28836 msgstr ""
28837
28838 #. type: verbatim
28839 #: ../src/guestfs-actions.pod:6743
28840 #, no-wrap
28841 msgid ""
28842 " struct guestfs_statvfs *\n"
28843 " guestfs_statvfs (guestfs_h *g,\n"
28844 "                  const char *path);\n"
28845 "\n"
28846 msgstr ""
28847
28848 #. type: textblock
28849 #: ../src/guestfs-actions.pod:6753
28850 msgid ""
28851 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
28852 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
28853 msgstr ""
28854
28855 #. type: =head2
28856 #: ../src/guestfs-actions.pod:6759
28857 msgid "guestfs_strings"
28858 msgstr ""
28859
28860 #. type: verbatim
28861 #: ../src/guestfs-actions.pod:6761
28862 #, no-wrap
28863 msgid ""
28864 " char **\n"
28865 " guestfs_strings (guestfs_h *g,\n"
28866 "                  const char *path);\n"
28867 "\n"
28868 msgstr ""
28869
28870 #. type: =head2
28871 #: ../src/guestfs-actions.pod:6777
28872 msgid "guestfs_strings_e"
28873 msgstr ""
28874
28875 #. type: verbatim
28876 #: ../src/guestfs-actions.pod:6779
28877 #, no-wrap
28878 msgid ""
28879 " char **\n"
28880 " guestfs_strings_e (guestfs_h *g,\n"
28881 "                    const char *encoding,\n"
28882 "                    const char *path);\n"
28883 "\n"
28884 msgstr ""
28885
28886 #. type: textblock
28887 #: ../src/guestfs-actions.pod:6784
28888 msgid ""
28889 "This is like the C<guestfs_strings> command, but allows you to specify the "
28890 "encoding of strings that are looked for in the source file C<path>."
28891 msgstr ""
28892
28893 #. type: textblock
28894 #: ../src/guestfs-actions.pod:6794
28895 msgid ""
28896 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
28897 "ISO-8859-X (this is what C<guestfs_strings> uses)."
28898 msgstr ""
28899
28900 #. type: =head2
28901 #: ../src/guestfs-actions.pod:6832
28902 msgid "guestfs_swapoff_device"
28903 msgstr ""
28904
28905 #. type: verbatim
28906 #: ../src/guestfs-actions.pod:6834
28907 #, no-wrap
28908 msgid ""
28909 " int\n"
28910 " guestfs_swapoff_device (guestfs_h *g,\n"
28911 "                         const char *device);\n"
28912 "\n"
28913 msgstr ""
28914
28915 #. type: textblock
28916 #: ../src/guestfs-actions.pod:6838
28917 msgid ""
28918 "This command disables the libguestfs appliance swap device or partition "
28919 "named C<device>.  See C<guestfs_swapon_device>."
28920 msgstr ""
28921
28922 #. type: =head2
28923 #: ../src/guestfs-actions.pod:6846
28924 msgid "guestfs_swapoff_file"
28925 msgstr ""
28926
28927 #. type: verbatim
28928 #: ../src/guestfs-actions.pod:6848
28929 #, no-wrap
28930 msgid ""
28931 " int\n"
28932 " guestfs_swapoff_file (guestfs_h *g,\n"
28933 "                       const char *file);\n"
28934 "\n"
28935 msgstr ""
28936
28937 #. type: =head2
28938 #: ../src/guestfs-actions.pod:6858
28939 msgid "guestfs_swapoff_label"
28940 msgstr ""
28941
28942 #. type: verbatim
28943 #: ../src/guestfs-actions.pod:6860
28944 #, no-wrap
28945 msgid ""
28946 " int\n"
28947 " guestfs_swapoff_label (guestfs_h *g,\n"
28948 "                        const char *label);\n"
28949 "\n"
28950 msgstr ""
28951
28952 #. type: =head2
28953 #: ../src/guestfs-actions.pod:6871
28954 msgid "guestfs_swapoff_uuid"
28955 msgstr ""
28956
28957 #. type: verbatim
28958 #: ../src/guestfs-actions.pod:6873
28959 #, no-wrap
28960 msgid ""
28961 " int\n"
28962 " guestfs_swapoff_uuid (guestfs_h *g,\n"
28963 "                       const char *uuid);\n"
28964 "\n"
28965 msgstr ""
28966
28967 #. type: =head2
28968 #: ../src/guestfs-actions.pod:6884
28969 msgid "guestfs_swapon_device"
28970 msgstr ""
28971
28972 #. type: verbatim
28973 #: ../src/guestfs-actions.pod:6886
28974 #, no-wrap
28975 msgid ""
28976 " int\n"
28977 " guestfs_swapon_device (guestfs_h *g,\n"
28978 "                        const char *device);\n"
28979 "\n"
28980 msgstr ""
28981
28982 #. type: textblock
28983 #: ../src/guestfs-actions.pod:6890
28984 msgid ""
28985 "This command enables the libguestfs appliance to use the swap device or "
28986 "partition named C<device>.  The increased memory is made available for all "
28987 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
28988 msgstr ""
28989
28990 #. type: =head2
28991 #: ../src/guestfs-actions.pod:6906
28992 msgid "guestfs_swapon_file"
28993 msgstr ""
28994
28995 #. type: verbatim
28996 #: ../src/guestfs-actions.pod:6908
28997 #, no-wrap
28998 msgid ""
28999 " int\n"
29000 " guestfs_swapon_file (guestfs_h *g,\n"
29001 "                      const char *file);\n"
29002 "\n"
29003 msgstr ""
29004
29005 #. type: textblock
29006 #: ../src/guestfs-actions.pod:6912
29007 msgid ""
29008 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
29009 "notes."
29010 msgstr ""
29011
29012 #. type: =head2
29013 #: ../src/guestfs-actions.pod:6919
29014 msgid "guestfs_swapon_label"
29015 msgstr ""
29016
29017 #. type: verbatim
29018 #: ../src/guestfs-actions.pod:6921
29019 #, no-wrap
29020 msgid ""
29021 " int\n"
29022 " guestfs_swapon_label (guestfs_h *g,\n"
29023 "                       const char *label);\n"
29024 "\n"
29025 msgstr ""
29026
29027 #. type: textblock
29028 #: ../src/guestfs-actions.pod:6925
29029 msgid ""
29030 "This command enables swap to a labeled swap partition.  See "
29031 "C<guestfs_swapon_device> for other notes."
29032 msgstr ""
29033
29034 #. type: =head2
29035 #: ../src/guestfs-actions.pod:6932
29036 msgid "guestfs_swapon_uuid"
29037 msgstr ""
29038
29039 #. type: verbatim
29040 #: ../src/guestfs-actions.pod:6934
29041 #, no-wrap
29042 msgid ""
29043 " int\n"
29044 " guestfs_swapon_uuid (guestfs_h *g,\n"
29045 "                      const char *uuid);\n"
29046 "\n"
29047 msgstr ""
29048
29049 #. type: textblock
29050 #: ../src/guestfs-actions.pod:6938
29051 msgid ""
29052 "This command enables swap to a swap partition with the given UUID.  See "
29053 "C<guestfs_swapon_device> for other notes."
29054 msgstr ""
29055
29056 #. type: =head2
29057 #: ../src/guestfs-actions.pod:6945
29058 msgid "guestfs_sync"
29059 msgstr ""
29060
29061 #. type: verbatim
29062 #: ../src/guestfs-actions.pod:6947
29063 #, no-wrap
29064 msgid ""
29065 " int\n"
29066 " guestfs_sync (guestfs_h *g);\n"
29067 "\n"
29068 msgstr ""
29069
29070 #. type: =head2
29071 #: ../src/guestfs-actions.pod:6960
29072 msgid "guestfs_tail"
29073 msgstr ""
29074
29075 #. type: verbatim
29076 #: ../src/guestfs-actions.pod:6962
29077 #, no-wrap
29078 msgid ""
29079 " char **\n"
29080 " guestfs_tail (guestfs_h *g,\n"
29081 "               const char *path);\n"
29082 "\n"
29083 msgstr ""
29084
29085 #. type: =head2
29086 #: ../src/guestfs-actions.pod:6978
29087 msgid "guestfs_tail_n"
29088 msgstr ""
29089
29090 #. type: verbatim
29091 #: ../src/guestfs-actions.pod:6980
29092 #, no-wrap
29093 msgid ""
29094 " char **\n"
29095 " guestfs_tail_n (guestfs_h *g,\n"
29096 "                 int nrlines,\n"
29097 "                 const char *path);\n"
29098 "\n"
29099 msgstr ""
29100
29101 #. type: =head2
29102 #: ../src/guestfs-actions.pod:7002
29103 msgid "guestfs_tar_in"
29104 msgstr ""
29105
29106 #. type: verbatim
29107 #: ../src/guestfs-actions.pod:7004
29108 #, no-wrap
29109 msgid ""
29110 " int\n"
29111 " guestfs_tar_in (guestfs_h *g,\n"
29112 "                 const char *tarfile,\n"
29113 "                 const char *directory);\n"
29114 "\n"
29115 msgstr ""
29116
29117 #. type: textblock
29118 #: ../src/guestfs-actions.pod:7012
29119 msgid ""
29120 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
29121 msgstr ""
29122
29123 #. type: textblock
29124 #: ../src/guestfs-actions.pod:7017 ../src/guestfs-actions.pod:7034
29125 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7066
29126 msgid "(Added in 1.0.3)"
29127 msgstr ""
29128
29129 #. type: =head2
29130 #: ../src/guestfs-actions.pod:7019
29131 msgid "guestfs_tar_out"
29132 msgstr ""
29133
29134 #. type: verbatim
29135 #: ../src/guestfs-actions.pod:7021
29136 #, no-wrap
29137 msgid ""
29138 " int\n"
29139 " guestfs_tar_out (guestfs_h *g,\n"
29140 "                  const char *directory,\n"
29141 "                  const char *tarfile);\n"
29142 "\n"
29143 msgstr ""
29144
29145 #. type: textblock
29146 #: ../src/guestfs-actions.pod:7029
29147 msgid ""
29148 "To download a compressed tarball, use C<guestfs_tgz_out> or "
29149 "C<guestfs_txz_out>."
29150 msgstr ""
29151
29152 #. type: =head2
29153 #: ../src/guestfs-actions.pod:7036
29154 msgid "guestfs_tgz_in"
29155 msgstr ""
29156
29157 #. type: verbatim
29158 #: ../src/guestfs-actions.pod:7038
29159 #, no-wrap
29160 msgid ""
29161 " int\n"
29162 " guestfs_tgz_in (guestfs_h *g,\n"
29163 "                 const char *tarball,\n"
29164 "                 const char *directory);\n"
29165 "\n"
29166 msgstr ""
29167
29168 #. type: textblock
29169 #: ../src/guestfs-actions.pod:7046
29170 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
29171 msgstr ""
29172
29173 #. type: =head2
29174 #: ../src/guestfs-actions.pod:7052
29175 msgid "guestfs_tgz_out"
29176 msgstr ""
29177
29178 #. type: verbatim
29179 #: ../src/guestfs-actions.pod:7054
29180 #, no-wrap
29181 msgid ""
29182 " int\n"
29183 " guestfs_tgz_out (guestfs_h *g,\n"
29184 "                  const char *directory,\n"
29185 "                  const char *tarball);\n"
29186 "\n"
29187 msgstr ""
29188
29189 #. type: textblock
29190 #: ../src/guestfs-actions.pod:7062
29191 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
29192 msgstr ""
29193
29194 #. type: =head2
29195 #: ../src/guestfs-actions.pod:7068
29196 msgid "guestfs_touch"
29197 msgstr ""
29198
29199 #. type: verbatim
29200 #: ../src/guestfs-actions.pod:7070
29201 #, no-wrap
29202 msgid ""
29203 " int\n"
29204 " guestfs_touch (guestfs_h *g,\n"
29205 "                const char *path);\n"
29206 "\n"
29207 msgstr ""
29208
29209 #. type: =head2
29210 #: ../src/guestfs-actions.pod:7085
29211 msgid "guestfs_truncate"
29212 msgstr ""
29213
29214 #. type: verbatim
29215 #: ../src/guestfs-actions.pod:7087
29216 #, no-wrap
29217 msgid ""
29218 " int\n"
29219 " guestfs_truncate (guestfs_h *g,\n"
29220 "                   const char *path);\n"
29221 "\n"
29222 msgstr ""
29223
29224 #. type: =head2
29225 #: ../src/guestfs-actions.pod:7098
29226 msgid "guestfs_truncate_size"
29227 msgstr ""
29228
29229 #. type: verbatim
29230 #: ../src/guestfs-actions.pod:7100
29231 #, no-wrap
29232 msgid ""
29233 " int\n"
29234 " guestfs_truncate_size (guestfs_h *g,\n"
29235 "                        const char *path,\n"
29236 "                        int64_t size);\n"
29237 "\n"
29238 msgstr ""
29239
29240 #. type: textblock
29241 #: ../src/guestfs-actions.pod:7108
29242 msgid ""
29243 "If the current file size is less than C<size> then the file is extended to "
29244 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29245 "blocks are not allocated for the file until you write to it).  To create a "
29246 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
29247 msgstr ""
29248
29249 #. type: =head2
29250 #: ../src/guestfs-actions.pod:7118
29251 msgid "guestfs_tune2fs_l"
29252 msgstr ""
29253
29254 #. type: verbatim
29255 #: ../src/guestfs-actions.pod:7120
29256 #, no-wrap
29257 msgid ""
29258 " char **\n"
29259 " guestfs_tune2fs_l (guestfs_h *g,\n"
29260 "                    const char *device);\n"
29261 "\n"
29262 msgstr ""
29263
29264 #. type: =head2
29265 #: ../src/guestfs-actions.pod:7140
29266 msgid "guestfs_txz_in"
29267 msgstr ""
29268
29269 #. type: verbatim
29270 #: ../src/guestfs-actions.pod:7142
29271 #, no-wrap
29272 msgid ""
29273 " int\n"
29274 " guestfs_txz_in (guestfs_h *g,\n"
29275 "                 const char *tarball,\n"
29276 "                 const char *directory);\n"
29277 "\n"
29278 msgstr ""
29279
29280 #. type: =head2
29281 #: ../src/guestfs-actions.pod:7154
29282 msgid "guestfs_txz_out"
29283 msgstr ""
29284
29285 #. type: verbatim
29286 #: ../src/guestfs-actions.pod:7156
29287 #, no-wrap
29288 msgid ""
29289 " int\n"
29290 " guestfs_txz_out (guestfs_h *g,\n"
29291 "                  const char *directory,\n"
29292 "                  const char *tarball);\n"
29293 "\n"
29294 msgstr ""
29295
29296 #. type: =head2
29297 #: ../src/guestfs-actions.pod:7168
29298 msgid "guestfs_umask"
29299 msgstr ""
29300
29301 #. type: verbatim
29302 #: ../src/guestfs-actions.pod:7170
29303 #, no-wrap
29304 msgid ""
29305 " int\n"
29306 " guestfs_umask (guestfs_h *g,\n"
29307 "                int mask);\n"
29308 "\n"
29309 msgstr ""
29310
29311 #. type: textblock
29312 #: ../src/guestfs-actions.pod:7186
29313 msgid ""
29314 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
29315 "C<guestfs_mkdir>."
29316 msgstr ""
29317
29318 #. type: =head2
29319 #: ../src/guestfs-actions.pod:7195
29320 msgid "guestfs_umount"
29321 msgstr ""
29322
29323 #. type: verbatim
29324 #: ../src/guestfs-actions.pod:7197
29325 #, no-wrap
29326 msgid ""
29327 " int\n"
29328 " guestfs_umount (guestfs_h *g,\n"
29329 "                 const char *pathordevice);\n"
29330 "\n"
29331 msgstr ""
29332
29333 #. type: =head2
29334 #: ../src/guestfs-actions.pod:7209
29335 msgid "guestfs_umount_all"
29336 msgstr ""
29337
29338 #. type: verbatim
29339 #: ../src/guestfs-actions.pod:7211
29340 #, no-wrap
29341 msgid ""
29342 " int\n"
29343 " guestfs_umount_all (guestfs_h *g);\n"
29344 "\n"
29345 msgstr ""
29346
29347 #. type: =head2
29348 #: ../src/guestfs-actions.pod:7222
29349 msgid "guestfs_upload"
29350 msgstr ""
29351
29352 #. type: verbatim
29353 #: ../src/guestfs-actions.pod:7224
29354 #, no-wrap
29355 msgid ""
29356 " int\n"
29357 " guestfs_upload (guestfs_h *g,\n"
29358 "                 const char *filename,\n"
29359 "                 const char *remotefilename);\n"
29360 "\n"
29361 msgstr ""
29362
29363 #. type: textblock
29364 #: ../src/guestfs-actions.pod:7234
29365 msgid "See also C<guestfs_download>."
29366 msgstr ""
29367
29368 #. type: =head2
29369 #: ../src/guestfs-actions.pod:7245
29370 msgid "guestfs_upload_offset"
29371 msgstr ""
29372
29373 #. type: verbatim
29374 #: ../src/guestfs-actions.pod:7247
29375 #, no-wrap
29376 msgid ""
29377 " int\n"
29378 " guestfs_upload_offset (guestfs_h *g,\n"
29379 "                        const char *filename,\n"
29380 "                        const char *remotefilename,\n"
29381 "                        int64_t offset);\n"
29382 "\n"
29383 msgstr ""
29384
29385 #. type: textblock
29386 #: ../src/guestfs-actions.pod:7263
29387 msgid ""
29388 "Note that there is no limit on the amount of data that can be uploaded with "
29389 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
29390 "full amount unless an error occurs."
29391 msgstr ""
29392
29393 #. type: textblock
29394 #: ../src/guestfs-actions.pod:7268
29395 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
29396 msgstr ""
29397
29398 #. type: =head2
29399 #: ../src/guestfs-actions.pod:7279
29400 msgid "guestfs_utimens"
29401 msgstr ""
29402
29403 #. type: verbatim
29404 #: ../src/guestfs-actions.pod:7281
29405 #, no-wrap
29406 msgid ""
29407 " int\n"
29408 " guestfs_utimens (guestfs_h *g,\n"
29409 "                  const char *path,\n"
29410 "                  int64_t atsecs,\n"
29411 "                  int64_t atnsecs,\n"
29412 "                  int64_t mtsecs,\n"
29413 "                  int64_t mtnsecs);\n"
29414 "\n"
29415 msgstr ""
29416
29417 #. type: =head2
29418 #: ../src/guestfs-actions.pod:7310 ../src/guestfs-structs.pod:175
29419 msgid "guestfs_version"
29420 msgstr ""
29421
29422 #. type: verbatim
29423 #: ../src/guestfs-actions.pod:7312
29424 #, no-wrap
29425 msgid ""
29426 " struct guestfs_version *\n"
29427 " guestfs_version (guestfs_h *g);\n"
29428 "\n"
29429 msgstr ""
29430
29431 #. type: textblock
29432 #: ../src/guestfs-actions.pod:7340
29433 msgid ""
29434 "I<Note:> Don't use this call to test for availability of features.  In "
29435 "enterprise distributions we backport features from later versions into "
29436 "earlier versions, making this an unreliable way to test for features.  Use "
29437 "C<guestfs_available> instead."
29438 msgstr ""
29439
29440 #. type: textblock
29441 #: ../src/guestfs-actions.pod:7346
29442 msgid ""
29443 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
29444 "error.  I<The caller must call C<guestfs_free_version> after use>."
29445 msgstr ""
29446
29447 #. type: textblock
29448 #: ../src/guestfs-actions.pod:7350
29449 msgid "(Added in 1.0.58)"
29450 msgstr ""
29451
29452 #. type: =head2
29453 #: ../src/guestfs-actions.pod:7352
29454 msgid "guestfs_vfs_label"
29455 msgstr ""
29456
29457 #. type: verbatim
29458 #: ../src/guestfs-actions.pod:7354
29459 #, no-wrap
29460 msgid ""
29461 " char *\n"
29462 " guestfs_vfs_label (guestfs_h *g,\n"
29463 "                    const char *device);\n"
29464 "\n"
29465 msgstr ""
29466
29467 #. type: textblock
29468 #: ../src/guestfs-actions.pod:7363
29469 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
29470 msgstr ""
29471
29472 #. type: textblock
29473 #: ../src/guestfs-actions.pod:7368 ../src/guestfs-actions.pod:7405
29474 msgid "(Added in 1.3.18)"
29475 msgstr ""
29476
29477 #. type: =head2
29478 #: ../src/guestfs-actions.pod:7370
29479 msgid "guestfs_vfs_type"
29480 msgstr ""
29481
29482 #. type: verbatim
29483 #: ../src/guestfs-actions.pod:7372
29484 #, no-wrap
29485 msgid ""
29486 " char *\n"
29487 " guestfs_vfs_type (guestfs_h *g,\n"
29488 "                   const char *device);\n"
29489 "\n"
29490 msgstr ""
29491
29492 #. type: =head2
29493 #: ../src/guestfs-actions.pod:7389
29494 msgid "guestfs_vfs_uuid"
29495 msgstr ""
29496
29497 #. type: verbatim
29498 #: ../src/guestfs-actions.pod:7391
29499 #, no-wrap
29500 msgid ""
29501 " char *\n"
29502 " guestfs_vfs_uuid (guestfs_h *g,\n"
29503 "                   const char *device);\n"
29504 "\n"
29505 msgstr ""
29506
29507 #. type: textblock
29508 #: ../src/guestfs-actions.pod:7400
29509 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
29510 msgstr ""
29511
29512 #. type: =head2
29513 #: ../src/guestfs-actions.pod:7407
29514 msgid "guestfs_vg_activate"
29515 msgstr ""
29516
29517 #. type: verbatim
29518 #: ../src/guestfs-actions.pod:7409
29519 #, no-wrap
29520 msgid ""
29521 " int\n"
29522 " guestfs_vg_activate (guestfs_h *g,\n"
29523 "                      int activate,\n"
29524 "                      char *const *volgroups);\n"
29525 "\n"
29526 msgstr ""
29527
29528 #. type: =head2
29529 #: ../src/guestfs-actions.pod:7426
29530 msgid "guestfs_vg_activate_all"
29531 msgstr ""
29532
29533 #. type: verbatim
29534 #: ../src/guestfs-actions.pod:7428
29535 #, no-wrap
29536 msgid ""
29537 " int\n"
29538 " guestfs_vg_activate_all (guestfs_h *g,\n"
29539 "                          int activate);\n"
29540 "\n"
29541 msgstr ""
29542
29543 #. type: =head2
29544 #: ../src/guestfs-actions.pod:7441
29545 msgid "guestfs_vgcreate"
29546 msgstr ""
29547
29548 #. type: verbatim
29549 #: ../src/guestfs-actions.pod:7443
29550 #, no-wrap
29551 msgid ""
29552 " int\n"
29553 " guestfs_vgcreate (guestfs_h *g,\n"
29554 "                   const char *volgroup,\n"
29555 "                   char *const *physvols);\n"
29556 "\n"
29557 msgstr ""
29558
29559 #. type: =head2
29560 #: ../src/guestfs-actions.pod:7455
29561 msgid "guestfs_vglvuuids"
29562 msgstr ""
29563
29564 #. type: verbatim
29565 #: ../src/guestfs-actions.pod:7457
29566 #, no-wrap
29567 msgid ""
29568 " char **\n"
29569 " guestfs_vglvuuids (guestfs_h *g,\n"
29570 "                    const char *vgname);\n"
29571 "\n"
29572 msgstr ""
29573
29574 #. type: textblock
29575 #: ../src/guestfs-actions.pod:7464
29576 msgid ""
29577 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
29578 "associate logical volumes and volume groups."
29579 msgstr ""
29580
29581 #. type: textblock
29582 #: ../src/guestfs-actions.pod:7467
29583 msgid "See also C<guestfs_vgpvuuids>."
29584 msgstr ""
29585
29586 #. type: =head2
29587 #: ../src/guestfs-actions.pod:7475
29588 msgid "guestfs_vgpvuuids"
29589 msgstr ""
29590
29591 #. type: verbatim
29592 #: ../src/guestfs-actions.pod:7477
29593 #, no-wrap
29594 msgid ""
29595 " char **\n"
29596 " guestfs_vgpvuuids (guestfs_h *g,\n"
29597 "                    const char *vgname);\n"
29598 "\n"
29599 msgstr ""
29600
29601 #. type: textblock
29602 #: ../src/guestfs-actions.pod:7484
29603 msgid ""
29604 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
29605 "associate physical volumes and volume groups."
29606 msgstr ""
29607
29608 #. type: textblock
29609 #: ../src/guestfs-actions.pod:7487
29610 msgid "See also C<guestfs_vglvuuids>."
29611 msgstr ""
29612
29613 #. type: =head2
29614 #: ../src/guestfs-actions.pod:7495
29615 msgid "guestfs_vgremove"
29616 msgstr ""
29617
29618 #. type: verbatim
29619 #: ../src/guestfs-actions.pod:7497
29620 #, no-wrap
29621 msgid ""
29622 " int\n"
29623 " guestfs_vgremove (guestfs_h *g,\n"
29624 "                   const char *vgname);\n"
29625 "\n"
29626 msgstr ""
29627
29628 #. type: =head2
29629 #: ../src/guestfs-actions.pod:7510
29630 msgid "guestfs_vgrename"
29631 msgstr ""
29632
29633 #. type: verbatim
29634 #: ../src/guestfs-actions.pod:7512
29635 #, no-wrap
29636 msgid ""
29637 " int\n"
29638 " guestfs_vgrename (guestfs_h *g,\n"
29639 "                   const char *volgroup,\n"
29640 "                   const char *newvolgroup);\n"
29641 "\n"
29642 msgstr ""
29643
29644 #. type: =head2
29645 #: ../src/guestfs-actions.pod:7523
29646 msgid "guestfs_vgs"
29647 msgstr ""
29648
29649 #. type: verbatim
29650 #: ../src/guestfs-actions.pod:7525
29651 #, no-wrap
29652 msgid ""
29653 " char **\n"
29654 " guestfs_vgs (guestfs_h *g);\n"
29655 "\n"
29656 msgstr ""
29657
29658 #. type: textblock
29659 #: ../src/guestfs-actions.pod:7534
29660 msgid "See also C<guestfs_vgs_full>."
29661 msgstr ""
29662
29663 #. type: =head2
29664 #: ../src/guestfs-actions.pod:7542
29665 msgid "guestfs_vgs_full"
29666 msgstr ""
29667
29668 #. type: verbatim
29669 #: ../src/guestfs-actions.pod:7544
29670 #, no-wrap
29671 msgid ""
29672 " struct guestfs_lvm_vg_list *\n"
29673 " guestfs_vgs_full (guestfs_h *g);\n"
29674 "\n"
29675 msgstr ""
29676
29677 #. type: textblock
29678 #: ../src/guestfs-actions.pod:7550
29679 msgid ""
29680 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
29681 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
29682 msgstr ""
29683
29684 #. type: =head2
29685 #: ../src/guestfs-actions.pod:7556
29686 msgid "guestfs_vgscan"
29687 msgstr ""
29688
29689 #. type: verbatim
29690 #: ../src/guestfs-actions.pod:7558
29691 #, no-wrap
29692 msgid ""
29693 " int\n"
29694 " guestfs_vgscan (guestfs_h *g);\n"
29695 "\n"
29696 msgstr ""
29697
29698 #. type: =head2
29699 #: ../src/guestfs-actions.pod:7568
29700 msgid "guestfs_vguuid"
29701 msgstr ""
29702
29703 #. type: verbatim
29704 #: ../src/guestfs-actions.pod:7570
29705 #, no-wrap
29706 msgid ""
29707 " char *\n"
29708 " guestfs_vguuid (guestfs_h *g,\n"
29709 "                 const char *vgname);\n"
29710 "\n"
29711 msgstr ""
29712
29713 #. type: =head2
29714 #: ../src/guestfs-actions.pod:7581
29715 msgid "guestfs_wait_ready"
29716 msgstr ""
29717
29718 #. type: verbatim
29719 #: ../src/guestfs-actions.pod:7583
29720 #, no-wrap
29721 msgid ""
29722 " int\n"
29723 " guestfs_wait_ready (guestfs_h *g);\n"
29724 "\n"
29725 msgstr ""
29726
29727 #. type: textblock
29728 #: ../src/guestfs-actions.pod:7586
29729 msgid "This function is a no op."
29730 msgstr ""
29731
29732 #. type: textblock
29733 #: ../src/guestfs-actions.pod:7588
29734 msgid ""
29735 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
29736 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
29737 "is no longer necessary because C<guestfs_launch> now does the waiting."
29738 msgstr ""
29739
29740 #. type: textblock
29741 #: ../src/guestfs-actions.pod:7593
29742 msgid ""
29743 "If you see any calls to this function in code then you can just remove them, "
29744 "unless you want to retain compatibility with older versions of the API."
29745 msgstr ""
29746
29747 #. type: textblock
29748 #: ../src/guestfs-actions.pod:7599
29749 msgid ""
29750 "This function is deprecated.  In new code, use the C<launch> call instead."
29751 msgstr ""
29752
29753 #. type: =head2
29754 #: ../src/guestfs-actions.pod:7608
29755 msgid "guestfs_wc_c"
29756 msgstr ""
29757
29758 #. type: verbatim
29759 #: ../src/guestfs-actions.pod:7610
29760 #, no-wrap
29761 msgid ""
29762 " int\n"
29763 " guestfs_wc_c (guestfs_h *g,\n"
29764 "               const char *path);\n"
29765 "\n"
29766 msgstr ""
29767
29768 #. type: =head2
29769 #: ../src/guestfs-actions.pod:7621
29770 msgid "guestfs_wc_l"
29771 msgstr ""
29772
29773 #. type: verbatim
29774 #: ../src/guestfs-actions.pod:7623
29775 #, no-wrap
29776 msgid ""
29777 " int\n"
29778 " guestfs_wc_l (guestfs_h *g,\n"
29779 "               const char *path);\n"
29780 "\n"
29781 msgstr ""
29782
29783 #. type: =head2
29784 #: ../src/guestfs-actions.pod:7634
29785 msgid "guestfs_wc_w"
29786 msgstr ""
29787
29788 #. type: verbatim
29789 #: ../src/guestfs-actions.pod:7636
29790 #, no-wrap
29791 msgid ""
29792 " int\n"
29793 " guestfs_wc_w (guestfs_h *g,\n"
29794 "               const char *path);\n"
29795 "\n"
29796 msgstr ""
29797
29798 #. type: =head2
29799 #: ../src/guestfs-actions.pod:7647
29800 msgid "guestfs_write"
29801 msgstr ""
29802
29803 #. type: verbatim
29804 #: ../src/guestfs-actions.pod:7649
29805 #, no-wrap
29806 msgid ""
29807 " int\n"
29808 " guestfs_write (guestfs_h *g,\n"
29809 "                const char *path,\n"
29810 "                const char *content,\n"
29811 "                size_t content_size);\n"
29812 "\n"
29813 msgstr ""
29814
29815 #. type: textblock
29816 #: ../src/guestfs-actions.pod:7658
29817 msgid "See also C<guestfs_write_append>."
29818 msgstr ""
29819
29820 #. type: =head2
29821 #: ../src/guestfs-actions.pod:7667
29822 msgid "guestfs_write_append"
29823 msgstr ""
29824
29825 #. type: verbatim
29826 #: ../src/guestfs-actions.pod:7669
29827 #, no-wrap
29828 msgid ""
29829 " int\n"
29830 " guestfs_write_append (guestfs_h *g,\n"
29831 "                       const char *path,\n"
29832 "                       const char *content,\n"
29833 "                       size_t content_size);\n"
29834 "\n"
29835 msgstr ""
29836
29837 #. type: textblock
29838 #: ../src/guestfs-actions.pod:7678
29839 msgid "See also C<guestfs_write>."
29840 msgstr ""
29841
29842 #. type: =head2
29843 #: ../src/guestfs-actions.pod:7687
29844 msgid "guestfs_write_file"
29845 msgstr ""
29846
29847 #. type: verbatim
29848 #: ../src/guestfs-actions.pod:7689
29849 #, no-wrap
29850 msgid ""
29851 " int\n"
29852 " guestfs_write_file (guestfs_h *g,\n"
29853 "                     const char *path,\n"
29854 "                     const char *content,\n"
29855 "                     int size);\n"
29856 "\n"
29857 msgstr ""
29858
29859 #. type: =head2
29860 #: ../src/guestfs-actions.pod:7720
29861 msgid "guestfs_zegrep"
29862 msgstr ""
29863
29864 #. type: verbatim
29865 #: ../src/guestfs-actions.pod:7722
29866 #, no-wrap
29867 msgid ""
29868 " char **\n"
29869 " guestfs_zegrep (guestfs_h *g,\n"
29870 "                 const char *regex,\n"
29871 "                 const char *path);\n"
29872 "\n"
29873 msgstr ""
29874
29875 #. type: =head2
29876 #: ../src/guestfs-actions.pod:7739
29877 msgid "guestfs_zegrepi"
29878 msgstr ""
29879
29880 #. type: verbatim
29881 #: ../src/guestfs-actions.pod:7741
29882 #, no-wrap
29883 msgid ""
29884 " char **\n"
29885 " guestfs_zegrepi (guestfs_h *g,\n"
29886 "                  const char *regex,\n"
29887 "                  const char *path);\n"
29888 "\n"
29889 msgstr ""
29890
29891 #. type: =head2
29892 #: ../src/guestfs-actions.pod:7758
29893 msgid "guestfs_zero"
29894 msgstr ""
29895
29896 #. type: verbatim
29897 #: ../src/guestfs-actions.pod:7760
29898 #, no-wrap
29899 msgid ""
29900 " int\n"
29901 " guestfs_zero (guestfs_h *g,\n"
29902 "               const char *device);\n"
29903 "\n"
29904 msgstr ""
29905
29906 #. type: textblock
29907 #: ../src/guestfs-actions.pod:7770
29908 msgid ""
29909 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
29910 "C<guestfs_is_zero_device>"
29911 msgstr ""
29912
29913 #. type: =head2
29914 #: ../src/guestfs-actions.pod:7782
29915 msgid "guestfs_zero_device"
29916 msgstr ""
29917
29918 #. type: verbatim
29919 #: ../src/guestfs-actions.pod:7784
29920 #, no-wrap
29921 msgid ""
29922 " int\n"
29923 " guestfs_zero_device (guestfs_h *g,\n"
29924 "                      const char *device);\n"
29925 "\n"
29926 msgstr ""
29927
29928 #. type: textblock
29929 #: ../src/guestfs-actions.pod:7788
29930 msgid ""
29931 "This command writes zeroes over the entire C<device>.  Compare with "
29932 "C<guestfs_zero> which just zeroes the first few blocks of a device."
29933 msgstr ""
29934
29935 #. type: textblock
29936 #: ../src/guestfs-actions.pod:7802
29937 msgid "(Added in 1.3.1)"
29938 msgstr ""
29939
29940 #. type: =head2
29941 #: ../src/guestfs-actions.pod:7804
29942 msgid "guestfs_zerofree"
29943 msgstr ""
29944
29945 #. type: verbatim
29946 #: ../src/guestfs-actions.pod:7806
29947 #, no-wrap
29948 msgid ""
29949 " int\n"
29950 " guestfs_zerofree (guestfs_h *g,\n"
29951 "                   const char *device);\n"
29952 "\n"
29953 msgstr ""
29954
29955 #. type: =head2
29956 #: ../src/guestfs-actions.pod:7825
29957 msgid "guestfs_zfgrep"
29958 msgstr ""
29959
29960 #. type: verbatim
29961 #: ../src/guestfs-actions.pod:7827
29962 #, no-wrap
29963 msgid ""
29964 " char **\n"
29965 " guestfs_zfgrep (guestfs_h *g,\n"
29966 "                 const char *pattern,\n"
29967 "                 const char *path);\n"
29968 "\n"
29969 msgstr ""
29970
29971 #. type: =head2
29972 #: ../src/guestfs-actions.pod:7844
29973 msgid "guestfs_zfgrepi"
29974 msgstr ""
29975
29976 #. type: verbatim
29977 #: ../src/guestfs-actions.pod:7846
29978 #, no-wrap
29979 msgid ""
29980 " char **\n"
29981 " guestfs_zfgrepi (guestfs_h *g,\n"
29982 "                  const char *pattern,\n"
29983 "                  const char *path);\n"
29984 "\n"
29985 msgstr ""
29986
29987 #. type: =head2
29988 #: ../src/guestfs-actions.pod:7863
29989 msgid "guestfs_zfile"
29990 msgstr ""
29991
29992 #. type: verbatim
29993 #: ../src/guestfs-actions.pod:7865
29994 #, no-wrap
29995 msgid ""
29996 " char *\n"
29997 " guestfs_zfile (guestfs_h *g,\n"
29998 "                const char *meth,\n"
29999 "                const char *path);\n"
30000 "\n"
30001 msgstr ""
30002
30003 #. type: textblock
30004 #: ../src/guestfs-actions.pod:7875
30005 msgid ""
30006 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
30007 "files."
30008 msgstr ""
30009
30010 #. type: =head2
30011 #: ../src/guestfs-actions.pod:7890
30012 msgid "guestfs_zgrep"
30013 msgstr ""
30014
30015 #. type: verbatim
30016 #: ../src/guestfs-actions.pod:7892
30017 #, no-wrap
30018 msgid ""
30019 " char **\n"
30020 " guestfs_zgrep (guestfs_h *g,\n"
30021 "                const char *regex,\n"
30022 "                const char *path);\n"
30023 "\n"
30024 msgstr ""
30025
30026 #. type: =head2
30027 #: ../src/guestfs-actions.pod:7909
30028 msgid "guestfs_zgrepi"
30029 msgstr ""
30030
30031 #. type: verbatim
30032 #: ../src/guestfs-actions.pod:7911
30033 #, no-wrap
30034 msgid ""
30035 " char **\n"
30036 " guestfs_zgrepi (guestfs_h *g,\n"
30037 "                 const char *regex,\n"
30038 "                 const char *path);\n"
30039 "\n"
30040 msgstr ""
30041
30042 #. type: =item
30043 #: ../src/guestfs-availability.pod:3
30044 msgid "B<augeas>"
30045 msgstr ""
30046
30047 #. type: textblock
30048 #: ../src/guestfs-availability.pod:5
30049 msgid ""
30050 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
30051 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
30052 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
30053 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
30054 "L</guestfs_aug_save> L</guestfs_aug_set>"
30055 msgstr ""
30056
30057 #. type: =item
30058 #: ../src/guestfs-availability.pod:21
30059 msgid "B<btrfs>"
30060 msgstr ""
30061
30062 #. type: textblock
30063 #: ../src/guestfs-availability.pod:23
30064 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
30065 msgstr ""
30066
30067 #. type: =item
30068 #: ../src/guestfs-availability.pod:26
30069 msgid "B<inotify>"
30070 msgstr ""
30071
30072 #. type: textblock
30073 #: ../src/guestfs-availability.pod:28
30074 msgid ""
30075 "The following functions: L</guestfs_inotify_add_watch> L</"
30076 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
30077 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
30078 msgstr ""
30079
30080 #. type: =item
30081 #: ../src/guestfs-availability.pod:36
30082 msgid "B<linuxfsuuid>"
30083 msgstr ""
30084
30085 #. type: textblock
30086 #: ../src/guestfs-availability.pod:38
30087 msgid ""
30088 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
30089 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
30090 msgstr ""
30091
30092 #. type: =item
30093 #: ../src/guestfs-availability.pod:45
30094 msgid "B<linuxmodules>"
30095 msgstr ""
30096
30097 #. type: textblock
30098 #: ../src/guestfs-availability.pod:47
30099 msgid "The following functions: L</guestfs_modprobe>"
30100 msgstr ""
30101
30102 #. type: =item
30103 #: ../src/guestfs-availability.pod:50
30104 msgid "B<linuxxattrs>"
30105 msgstr ""
30106
30107 #. type: textblock
30108 #: ../src/guestfs-availability.pod:52
30109 msgid ""
30110 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
30111 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
30112 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
30113 "guestfs_setxattr>"
30114 msgstr ""
30115
30116 #. type: =item
30117 #: ../src/guestfs-availability.pod:63
30118 msgid "B<luks>"
30119 msgstr ""
30120
30121 #. type: textblock
30122 #: ../src/guestfs-availability.pod:65
30123 msgid ""
30124 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
30125 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
30126 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
30127 msgstr ""
30128
30129 #. type: =item
30130 #: ../src/guestfs-availability.pod:74
30131 msgid "B<lvm2>"
30132 msgstr ""
30133
30134 #. type: textblock
30135 #: ../src/guestfs-availability.pod:76
30136 msgid ""
30137 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
30138 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
30139 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
30140 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
30141 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
30142 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
30143 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
30144 msgstr ""
30145
30146 #. type: =item
30147 #: ../src/guestfs-availability.pod:99
30148 msgid "B<mknod>"
30149 msgstr ""
30150
30151 #. type: textblock
30152 #: ../src/guestfs-availability.pod:101
30153 msgid ""
30154 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
30155 "guestfs_mknod_b> L</guestfs_mknod_c>"
30156 msgstr ""
30157
30158 #. type: =item
30159 #: ../src/guestfs-availability.pod:107
30160 msgid "B<ntfs3g>"
30161 msgstr ""
30162
30163 #. type: textblock
30164 #: ../src/guestfs-availability.pod:109
30165 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
30166 msgstr ""
30167
30168 #. type: =item
30169 #: ../src/guestfs-availability.pod:112
30170 msgid "B<ntfsprogs>"
30171 msgstr ""
30172
30173 #. type: textblock
30174 #: ../src/guestfs-availability.pod:114
30175 msgid ""
30176 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
30177 "L</guestfs_ntfsresize_size>"
30178 msgstr ""
30179
30180 #. type: =item
30181 #: ../src/guestfs-availability.pod:119
30182 msgid "B<realpath>"
30183 msgstr ""
30184
30185 #. type: textblock
30186 #: ../src/guestfs-availability.pod:121
30187 msgid "The following functions: L</guestfs_realpath>"
30188 msgstr ""
30189
30190 #. type: =item
30191 #: ../src/guestfs-availability.pod:124
30192 msgid "B<scrub>"
30193 msgstr ""
30194
30195 #. type: textblock
30196 #: ../src/guestfs-availability.pod:126
30197 msgid ""
30198 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
30199 "guestfs_scrub_freespace>"
30200 msgstr ""
30201
30202 #. type: =item
30203 #: ../src/guestfs-availability.pod:131
30204 msgid "B<selinux>"
30205 msgstr ""
30206
30207 #. type: textblock
30208 #: ../src/guestfs-availability.pod:133
30209 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
30210 msgstr ""
30211
30212 #. type: =item
30213 #: ../src/guestfs-availability.pod:137
30214 msgid "B<xz>"
30215 msgstr ""
30216
30217 #. type: textblock
30218 #: ../src/guestfs-availability.pod:139
30219 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
30220 msgstr ""
30221
30222 #. type: =item
30223 #: ../src/guestfs-availability.pod:143
30224 msgid "B<zerofree>"
30225 msgstr ""
30226
30227 #. type: textblock
30228 #: ../src/guestfs-availability.pod:145
30229 msgid "The following functions: L</guestfs_zerofree>"
30230 msgstr ""
30231
30232 #. type: =head2
30233 #: ../src/guestfs-structs.pod:1
30234 msgid "guestfs_int_bool"
30235 msgstr ""
30236
30237 #. type: verbatim
30238 #: ../src/guestfs-structs.pod:3
30239 #, no-wrap
30240 msgid ""
30241 " struct guestfs_int_bool {\n"
30242 "   int32_t i;\n"
30243 "   int32_t b;\n"
30244 " };\n"
30245 " \n"
30246 msgstr ""
30247
30248 #. type: verbatim
30249 #: ../src/guestfs-structs.pod:8
30250 #, no-wrap
30251 msgid ""
30252 " struct guestfs_int_bool_list {\n"
30253 "   uint32_t len; /* Number of elements in list. */\n"
30254 "   struct guestfs_int_bool *val; /* Elements. */\n"
30255 " };\n"
30256 " \n"
30257 msgstr ""
30258
30259 #. type: verbatim
30260 #: ../src/guestfs-structs.pod:13
30261 #, no-wrap
30262 msgid ""
30263 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
30264 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
30265 "\n"
30266 msgstr ""
30267
30268 #. type: =head2
30269 #: ../src/guestfs-structs.pod:16
30270 msgid "guestfs_lvm_pv"
30271 msgstr ""
30272
30273 #. type: verbatim
30274 #: ../src/guestfs-structs.pod:18
30275 #, no-wrap
30276 msgid ""
30277 " struct guestfs_lvm_pv {\n"
30278 "   char *pv_name;\n"
30279 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30280 "   char pv_uuid[32];\n"
30281 "   char *pv_fmt;\n"
30282 "   uint64_t pv_size;\n"
30283 "   uint64_t dev_size;\n"
30284 "   uint64_t pv_free;\n"
30285 "   uint64_t pv_used;\n"
30286 "   char *pv_attr;\n"
30287 "   int64_t pv_pe_count;\n"
30288 "   int64_t pv_pe_alloc_count;\n"
30289 "   char *pv_tags;\n"
30290 "   uint64_t pe_start;\n"
30291 "   int64_t pv_mda_count;\n"
30292 "   uint64_t pv_mda_free;\n"
30293 " };\n"
30294 " \n"
30295 msgstr ""
30296
30297 #. type: verbatim
30298 #: ../src/guestfs-structs.pod:36
30299 #, no-wrap
30300 msgid ""
30301 " struct guestfs_lvm_pv_list {\n"
30302 "   uint32_t len; /* Number of elements in list. */\n"
30303 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
30304 " };\n"
30305 " \n"
30306 msgstr ""
30307
30308 #. type: verbatim
30309 #: ../src/guestfs-structs.pod:41
30310 #, no-wrap
30311 msgid ""
30312 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
30313 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
30314 "\n"
30315 msgstr ""
30316
30317 #. type: =head2
30318 #: ../src/guestfs-structs.pod:44
30319 msgid "guestfs_lvm_vg"
30320 msgstr ""
30321
30322 #. type: verbatim
30323 #: ../src/guestfs-structs.pod:46
30324 #, no-wrap
30325 msgid ""
30326 " struct guestfs_lvm_vg {\n"
30327 "   char *vg_name;\n"
30328 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30329 "   char vg_uuid[32];\n"
30330 "   char *vg_fmt;\n"
30331 "   char *vg_attr;\n"
30332 "   uint64_t vg_size;\n"
30333 "   uint64_t vg_free;\n"
30334 "   char *vg_sysid;\n"
30335 "   uint64_t vg_extent_size;\n"
30336 "   int64_t vg_extent_count;\n"
30337 "   int64_t vg_free_count;\n"
30338 "   int64_t max_lv;\n"
30339 "   int64_t max_pv;\n"
30340 "   int64_t pv_count;\n"
30341 "   int64_t lv_count;\n"
30342 "   int64_t snap_count;\n"
30343 "   int64_t vg_seqno;\n"
30344 "   char *vg_tags;\n"
30345 "   int64_t vg_mda_count;\n"
30346 "   uint64_t vg_mda_free;\n"
30347 " };\n"
30348 " \n"
30349 msgstr ""
30350
30351 #. type: verbatim
30352 #: ../src/guestfs-structs.pod:69
30353 #, no-wrap
30354 msgid ""
30355 " struct guestfs_lvm_vg_list {\n"
30356 "   uint32_t len; /* Number of elements in list. */\n"
30357 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
30358 " };\n"
30359 " \n"
30360 msgstr ""
30361
30362 #. type: verbatim
30363 #: ../src/guestfs-structs.pod:74
30364 #, no-wrap
30365 msgid ""
30366 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
30367 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
30368 "\n"
30369 msgstr ""
30370
30371 #. type: =head2
30372 #: ../src/guestfs-structs.pod:77
30373 msgid "guestfs_lvm_lv"
30374 msgstr ""
30375
30376 #. type: verbatim
30377 #: ../src/guestfs-structs.pod:79
30378 #, no-wrap
30379 msgid ""
30380 " struct guestfs_lvm_lv {\n"
30381 "   char *lv_name;\n"
30382 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30383 "   char lv_uuid[32];\n"
30384 "   char *lv_attr;\n"
30385 "   int64_t lv_major;\n"
30386 "   int64_t lv_minor;\n"
30387 "   int64_t lv_kernel_major;\n"
30388 "   int64_t lv_kernel_minor;\n"
30389 "   uint64_t lv_size;\n"
30390 "   int64_t seg_count;\n"
30391 "   char *origin;\n"
30392 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30393 "   float snap_percent;\n"
30394 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30395 "   float copy_percent;\n"
30396 "   char *move_pv;\n"
30397 "   char *lv_tags;\n"
30398 "   char *mirror_log;\n"
30399 "   char *modules;\n"
30400 " };\n"
30401 " \n"
30402 msgstr ""
30403
30404 #. type: verbatim
30405 #: ../src/guestfs-structs.pod:101
30406 #, no-wrap
30407 msgid ""
30408 " struct guestfs_lvm_lv_list {\n"
30409 "   uint32_t len; /* Number of elements in list. */\n"
30410 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
30411 " };\n"
30412 " \n"
30413 msgstr ""
30414
30415 #. type: verbatim
30416 #: ../src/guestfs-structs.pod:106
30417 #, no-wrap
30418 msgid ""
30419 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
30420 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
30421 "\n"
30422 msgstr ""
30423
30424 #. type: verbatim
30425 #: ../src/guestfs-structs.pod:111
30426 #, no-wrap
30427 msgid ""
30428 " struct guestfs_stat {\n"
30429 "   int64_t dev;\n"
30430 "   int64_t ino;\n"
30431 "   int64_t mode;\n"
30432 "   int64_t nlink;\n"
30433 "   int64_t uid;\n"
30434 "   int64_t gid;\n"
30435 "   int64_t rdev;\n"
30436 "   int64_t size;\n"
30437 "   int64_t blksize;\n"
30438 "   int64_t blocks;\n"
30439 "   int64_t atime;\n"
30440 "   int64_t mtime;\n"
30441 "   int64_t ctime;\n"
30442 " };\n"
30443 " \n"
30444 msgstr ""
30445
30446 #. type: verbatim
30447 #: ../src/guestfs-structs.pod:127
30448 #, no-wrap
30449 msgid ""
30450 " struct guestfs_stat_list {\n"
30451 "   uint32_t len; /* Number of elements in list. */\n"
30452 "   struct guestfs_stat *val; /* Elements. */\n"
30453 " };\n"
30454 " \n"
30455 msgstr ""
30456
30457 #. type: verbatim
30458 #: ../src/guestfs-structs.pod:132
30459 #, no-wrap
30460 msgid ""
30461 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
30462 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
30463 "\n"
30464 msgstr ""
30465
30466 #. type: verbatim
30467 #: ../src/guestfs-structs.pod:137
30468 #, no-wrap
30469 msgid ""
30470 " struct guestfs_statvfs {\n"
30471 "   int64_t bsize;\n"
30472 "   int64_t frsize;\n"
30473 "   int64_t blocks;\n"
30474 "   int64_t bfree;\n"
30475 "   int64_t bavail;\n"
30476 "   int64_t files;\n"
30477 "   int64_t ffree;\n"
30478 "   int64_t favail;\n"
30479 "   int64_t fsid;\n"
30480 "   int64_t flag;\n"
30481 "   int64_t namemax;\n"
30482 " };\n"
30483 " \n"
30484 msgstr ""
30485
30486 #. type: verbatim
30487 #: ../src/guestfs-structs.pod:151
30488 #, no-wrap
30489 msgid ""
30490 " struct guestfs_statvfs_list {\n"
30491 "   uint32_t len; /* Number of elements in list. */\n"
30492 "   struct guestfs_statvfs *val; /* Elements. */\n"
30493 " };\n"
30494 " \n"
30495 msgstr ""
30496
30497 #. type: verbatim
30498 #: ../src/guestfs-structs.pod:156
30499 #, no-wrap
30500 msgid ""
30501 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
30502 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
30503 "\n"
30504 msgstr ""
30505
30506 #. type: =head2
30507 #: ../src/guestfs-structs.pod:159
30508 msgid "guestfs_dirent"
30509 msgstr ""
30510
30511 #. type: verbatim
30512 #: ../src/guestfs-structs.pod:161
30513 #, no-wrap
30514 msgid ""
30515 " struct guestfs_dirent {\n"
30516 "   int64_t ino;\n"
30517 "   char ftyp;\n"
30518 "   char *name;\n"
30519 " };\n"
30520 " \n"
30521 msgstr ""
30522
30523 #. type: verbatim
30524 #: ../src/guestfs-structs.pod:167
30525 #, no-wrap
30526 msgid ""
30527 " struct guestfs_dirent_list {\n"
30528 "   uint32_t len; /* Number of elements in list. */\n"
30529 "   struct guestfs_dirent *val; /* Elements. */\n"
30530 " };\n"
30531 " \n"
30532 msgstr ""
30533
30534 #. type: verbatim
30535 #: ../src/guestfs-structs.pod:172
30536 #, no-wrap
30537 msgid ""
30538 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
30539 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
30540 "\n"
30541 msgstr ""
30542
30543 #. type: verbatim
30544 #: ../src/guestfs-structs.pod:177
30545 #, no-wrap
30546 msgid ""
30547 " struct guestfs_version {\n"
30548 "   int64_t major;\n"
30549 "   int64_t minor;\n"
30550 "   int64_t release;\n"
30551 "   char *extra;\n"
30552 " };\n"
30553 " \n"
30554 msgstr ""
30555
30556 #. type: verbatim
30557 #: ../src/guestfs-structs.pod:184
30558 #, no-wrap
30559 msgid ""
30560 " struct guestfs_version_list {\n"
30561 "   uint32_t len; /* Number of elements in list. */\n"
30562 "   struct guestfs_version *val; /* Elements. */\n"
30563 " };\n"
30564 " \n"
30565 msgstr ""
30566
30567 #. type: verbatim
30568 #: ../src/guestfs-structs.pod:189
30569 #, no-wrap
30570 msgid ""
30571 " void guestfs_free_version (struct guestfs_free_version *);\n"
30572 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
30573 "\n"
30574 msgstr ""
30575
30576 #. type: =head2
30577 #: ../src/guestfs-structs.pod:192
30578 msgid "guestfs_xattr"
30579 msgstr ""
30580
30581 #. type: verbatim
30582 #: ../src/guestfs-structs.pod:194
30583 #, no-wrap
30584 msgid ""
30585 " struct guestfs_xattr {\n"
30586 "   char *attrname;\n"
30587 "   /* The next two fields describe a byte array. */\n"
30588 "   uint32_t attrval_len;\n"
30589 "   char *attrval;\n"
30590 " };\n"
30591 " \n"
30592 msgstr ""
30593
30594 #. type: verbatim
30595 #: ../src/guestfs-structs.pod:201
30596 #, no-wrap
30597 msgid ""
30598 " struct guestfs_xattr_list {\n"
30599 "   uint32_t len; /* Number of elements in list. */\n"
30600 "   struct guestfs_xattr *val; /* Elements. */\n"
30601 " };\n"
30602 " \n"
30603 msgstr ""
30604
30605 #. type: verbatim
30606 #: ../src/guestfs-structs.pod:206
30607 #, no-wrap
30608 msgid ""
30609 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
30610 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
30611 "\n"
30612 msgstr ""
30613
30614 #. type: =head2
30615 #: ../src/guestfs-structs.pod:209
30616 msgid "guestfs_inotify_event"
30617 msgstr ""
30618
30619 #. type: verbatim
30620 #: ../src/guestfs-structs.pod:211
30621 #, no-wrap
30622 msgid ""
30623 " struct guestfs_inotify_event {\n"
30624 "   int64_t in_wd;\n"
30625 "   uint32_t in_mask;\n"
30626 "   uint32_t in_cookie;\n"
30627 "   char *in_name;\n"
30628 " };\n"
30629 " \n"
30630 msgstr ""
30631
30632 #. type: verbatim
30633 #: ../src/guestfs-structs.pod:218
30634 #, no-wrap
30635 msgid ""
30636 " struct guestfs_inotify_event_list {\n"
30637 "   uint32_t len; /* Number of elements in list. */\n"
30638 "   struct guestfs_inotify_event *val; /* Elements. */\n"
30639 " };\n"
30640 " \n"
30641 msgstr ""
30642
30643 #. type: verbatim
30644 #: ../src/guestfs-structs.pod:223
30645 #, no-wrap
30646 msgid ""
30647 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
30648 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
30649 "\n"
30650 msgstr ""
30651
30652 #. type: =head2
30653 #: ../src/guestfs-structs.pod:226
30654 msgid "guestfs_partition"
30655 msgstr ""
30656
30657 #. type: verbatim
30658 #: ../src/guestfs-structs.pod:228
30659 #, no-wrap
30660 msgid ""
30661 " struct guestfs_partition {\n"
30662 "   int32_t part_num;\n"
30663 "   uint64_t part_start;\n"
30664 "   uint64_t part_end;\n"
30665 "   uint64_t part_size;\n"
30666 " };\n"
30667 " \n"
30668 msgstr ""
30669
30670 #. type: verbatim
30671 #: ../src/guestfs-structs.pod:235
30672 #, no-wrap
30673 msgid ""
30674 " struct guestfs_partition_list {\n"
30675 "   uint32_t len; /* Number of elements in list. */\n"
30676 "   struct guestfs_partition *val; /* Elements. */\n"
30677 " };\n"
30678 " \n"
30679 msgstr ""
30680
30681 #. type: verbatim
30682 #: ../src/guestfs-structs.pod:240
30683 #, no-wrap
30684 msgid ""
30685 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
30686 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
30687 "\n"
30688 msgstr ""
30689
30690 #. type: =head2
30691 #: ../src/guestfs-structs.pod:243
30692 msgid "guestfs_application"
30693 msgstr ""
30694
30695 #. type: verbatim
30696 #: ../src/guestfs-structs.pod:245
30697 #, no-wrap
30698 msgid ""
30699 " struct guestfs_application {\n"
30700 "   char *app_name;\n"
30701 "   char *app_display_name;\n"
30702 "   int32_t app_epoch;\n"
30703 "   char *app_version;\n"
30704 "   char *app_release;\n"
30705 "   char *app_install_path;\n"
30706 "   char *app_trans_path;\n"
30707 "   char *app_publisher;\n"
30708 "   char *app_url;\n"
30709 "   char *app_source_package;\n"
30710 "   char *app_summary;\n"
30711 "   char *app_description;\n"
30712 " };\n"
30713 " \n"
30714 msgstr ""
30715
30716 #. type: verbatim
30717 #: ../src/guestfs-structs.pod:260
30718 #, no-wrap
30719 msgid ""
30720 " struct guestfs_application_list {\n"
30721 "   uint32_t len; /* Number of elements in list. */\n"
30722 "   struct guestfs_application *val; /* Elements. */\n"
30723 " };\n"
30724 " \n"
30725 msgstr ""
30726
30727 #. type: verbatim
30728 #: ../src/guestfs-structs.pod:265
30729 #, no-wrap
30730 msgid ""
30731 " void guestfs_free_application (struct guestfs_free_application *);\n"
30732 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
30733 "\n"
30734 msgstr ""
30735
30736 #. type: textblock
30737 #: ../src/guestfs.pod:5
30738 msgid "guestfs - Library for accessing and modifying virtual machine images"
30739 msgstr ""
30740
30741 #. type: verbatim
30742 #: ../src/guestfs.pod:11
30743 #, no-wrap
30744 msgid ""
30745 " guestfs_h *g = guestfs_create ();\n"
30746 " guestfs_add_drive (g, \"guest.img\");\n"
30747 " guestfs_launch (g);\n"
30748 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30749 " guestfs_touch (g, \"/hello\");\n"
30750 " guestfs_umount (g, \"/\");\n"
30751 " guestfs_close (g);\n"
30752 "\n"
30753 msgstr ""
30754
30755 #. type: textblock
30756 #: ../src/guestfs.pod:25
30757 msgid ""
30758 "Libguestfs is a library for accessing and modifying guest disk images.  "
30759 "Amongst the things this is good for: making batch configuration changes to "
30760 "guests, getting disk used/free statistics (see also: virt-df), migrating "
30761 "between virtualization systems (see also: virt-p2v), performing partial "
30762 "backups, performing partial guest clones, cloning guests and changing "
30763 "registry/UUID/hostname info, and much else besides."
30764 msgstr ""
30765
30766 #. type: textblock
30767 #: ../src/guestfs.pod:33
30768 msgid ""
30769 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
30770 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
30771 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
30772 "qcow2, vmdk."
30773 msgstr ""
30774
30775 #. type: textblock
30776 #: ../src/guestfs.pod:38
30777 msgid ""
30778 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
30779 "what filesystem is in each LV, etc.).  It can also run commands in the "
30780 "context of the guest.  Also you can access filesystems over FUSE."
30781 msgstr ""
30782
30783 #. type: textblock
30784 #: ../src/guestfs.pod:43
30785 msgid ""
30786 "Libguestfs is a library that can be linked with C and C++ management "
30787 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
30788 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
30789 "line."
30790 msgstr ""
30791
30792 #. type: textblock
30793 #: ../src/guestfs.pod:48
30794 msgid ""
30795 "You don't need to be root to use libguestfs, although obviously you do need "
30796 "enough permissions to access the disk images."
30797 msgstr ""
30798
30799 #. type: textblock
30800 #: ../src/guestfs.pod:51
30801 msgid ""
30802 "Libguestfs is a large API because it can do many things.  For a gentle "
30803 "introduction, please read the L</API OVERVIEW> section next."
30804 msgstr ""
30805
30806 #. type: textblock
30807 #: ../src/guestfs.pod:54
30808 msgid ""
30809 "There are also some example programs in the L<guestfs-examples(3)> manual "
30810 "page."
30811 msgstr ""
30812
30813 #. type: =head1
30814 #: ../src/guestfs.pod:57
30815 msgid "API OVERVIEW"
30816 msgstr ""
30817
30818 #. type: textblock
30819 #: ../src/guestfs.pod:59
30820 msgid ""
30821 "This section provides a gentler overview of the libguestfs API.  We also try "
30822 "to group API calls together, where that may not be obvious from reading "
30823 "about the individual calls in the main section of this manual."
30824 msgstr ""
30825
30826 #. type: =head2
30827 #: ../src/guestfs.pod:64
30828 msgid "HANDLES"
30829 msgstr ""
30830
30831 #. type: textblock
30832 #: ../src/guestfs.pod:66
30833 msgid ""
30834 "Before you can use libguestfs calls, you have to create a handle.  Then you "
30835 "must add at least one disk image to the handle, followed by launching the "
30836 "handle, then performing whatever operations you want, and finally closing "
30837 "the handle.  By convention we use the single letter C<g> for the name of the "
30838 "handle variable, although of course you can use any name you want."
30839 msgstr ""
30840
30841 #. type: textblock
30842 #: ../src/guestfs.pod:73
30843 msgid "The general structure of all libguestfs-using programs looks like this:"
30844 msgstr ""
30845
30846 #. type: verbatim
30847 #: ../src/guestfs.pod:76
30848 #, no-wrap
30849 msgid ""
30850 " guestfs_h *g = guestfs_create ();\n"
30851 " \n"
30852 msgstr ""
30853
30854 #. type: verbatim
30855 #: ../src/guestfs.pod:78
30856 #, no-wrap
30857 msgid ""
30858 " /* Call guestfs_add_drive additional times if there are\n"
30859 "  * multiple disk images.\n"
30860 "  */\n"
30861 " guestfs_add_drive (g, \"guest.img\");\n"
30862 " \n"
30863 msgstr ""
30864
30865 #. type: verbatim
30866 #: ../src/guestfs.pod:83
30867 #, no-wrap
30868 msgid ""
30869 " /* Most manipulation calls won't work until you've launched\n"
30870 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
30871 "  * and _before_ other commands.\n"
30872 "  */\n"
30873 " guestfs_launch (g);\n"
30874 " \n"
30875 msgstr ""
30876
30877 #. type: verbatim
30878 #: ../src/guestfs.pod:89
30879 #, no-wrap
30880 msgid ""
30881 " /* Now you can examine what partitions, LVs etc are available.\n"
30882 "  */\n"
30883 " char **partitions = guestfs_list_partitions (g);\n"
30884 " char **logvols = guestfs_lvs (g);\n"
30885 " \n"
30886 msgstr ""
30887
30888 #. type: verbatim
30889 #: ../src/guestfs.pod:94
30890 #, no-wrap
30891 msgid ""
30892 " /* To access a filesystem in the image, you must mount it.\n"
30893 "  */\n"
30894 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30895 " \n"
30896 msgstr ""
30897
30898 #. type: verbatim
30899 #: ../src/guestfs.pod:98
30900 #, no-wrap
30901 msgid ""
30902 " /* Now you can perform filesystem actions on the guest\n"
30903 "  * disk image.\n"
30904 "  */\n"
30905 " guestfs_touch (g, \"/hello\");\n"
30906 " \n"
30907 msgstr ""
30908
30909 #. type: verbatim
30910 #: ../src/guestfs.pod:103
30911 #, no-wrap
30912 msgid ""
30913 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
30914 "  * it is done automatically when you close the handle.  See\n"
30915 "  * discussion of autosync in this page.\n"
30916 "  */\n"
30917 " guestfs_sync (g);\n"
30918 " \n"
30919 msgstr ""
30920
30921 #. type: verbatim
30922 #: ../src/guestfs.pod:109
30923 #, no-wrap
30924 msgid ""
30925 " /* Close the handle 'g'. */\n"
30926 " guestfs_close (g);\n"
30927 "\n"
30928 msgstr ""
30929
30930 #. type: textblock
30931 #: ../src/guestfs.pod:112
30932 msgid ""
30933 "The code above doesn't include any error checking.  In real code you should "
30934 "check return values carefully for errors.  In general all functions that "
30935 "return integers return C<-1> on error, and all functions that return "
30936 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
30937 "how to handle errors, and consult the documentation for each function call "
30938 "below to see precisely how they return error indications.  See L<guestfs-"
30939 "examples(3)> for fully worked examples."
30940 msgstr ""
30941
30942 #. type: =head2
30943 #: ../src/guestfs.pod:121
30944 msgid "DISK IMAGES"
30945 msgstr ""
30946
30947 #. type: textblock
30948 #: ../src/guestfs.pod:123
30949 msgid ""
30950 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
30951 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
30952 "actual block device, or simply an empty file of zeroes that you have created "
30953 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
30954 "of these."
30955 msgstr ""
30956
30957 #. type: textblock
30958 #: ../src/guestfs.pod:129
30959 msgid ""
30960 "The call you should use in modern code for adding drives is L</"
30961 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
30962 "specifying that the format is raw, do:"
30963 msgstr ""
30964
30965 #. type: verbatim
30966 #: ../src/guestfs.pod:133
30967 #, no-wrap
30968 msgid ""
30969 " guestfs_add_drive_opts (g, filename,\n"
30970 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
30971 "                         -1);\n"
30972 "\n"
30973 msgstr ""
30974
30975 #. type: textblock
30976 #: ../src/guestfs.pod:137
30977 msgid "You can add a disk read-only using:"
30978 msgstr ""
30979
30980 #. type: verbatim
30981 #: ../src/guestfs.pod:139
30982 #, no-wrap
30983 msgid ""
30984 " guestfs_add_drive_opts (g, filename,\n"
30985 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
30986 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
30987 "                         -1);\n"
30988 "\n"
30989 msgstr ""
30990
30991 #. type: textblock
30992 #: ../src/guestfs.pod:144
30993 msgid ""
30994 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
30995 "libguestfs won't modify the file."
30996 msgstr ""
30997
30998 #. type: textblock
30999 #: ../src/guestfs.pod:147
31000 msgid ""
31001 "Be extremely cautious if the disk image is in use, eg. if it is being used "
31002 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
31003 "corruption, but adding it read-only is safe."
31004 msgstr ""
31005
31006 #. type: textblock
31007 #: ../src/guestfs.pod:151
31008 msgid ""
31009 "You must add at least one disk image, and you may add multiple disk images.  "
31010 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
31011 "first one you added), C</dev/sdb> (for the second one you added), etc."
31012 msgstr ""
31013
31014 #. type: textblock
31015 #: ../src/guestfs.pod:156
31016 msgid ""
31017 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
31018 "can call L</guestfs_list_devices> to get a list of the device names, in the "
31019 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
31020 msgstr ""
31021
31022 #. type: =head2
31023 #: ../src/guestfs.pod:161
31024 msgid "MOUNTING"
31025 msgstr ""
31026
31027 #. type: textblock
31028 #: ../src/guestfs.pod:163
31029 msgid ""
31030 "Before you can read or write files, create directories and so on in a disk "
31031 "image that contains filesystems, you have to mount those filesystems using "
31032 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
31033 "a disk image contains (for example) one partition with a filesystem on that "
31034 "partition, then you can mount it directly:"
31035 msgstr ""
31036
31037 #. type: verbatim
31038 #: ../src/guestfs.pod:170
31039 #, no-wrap
31040 msgid ""
31041 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
31042 "\n"
31043 msgstr ""
31044
31045 #. type: textblock
31046 #: ../src/guestfs.pod:172
31047 msgid ""
31048 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
31049 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
31050 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
31051 "that these are libguestfs virtual devices, and are nothing to do with host "
31052 "devices."
31053 msgstr ""
31054
31055 #. type: textblock
31056 #: ../src/guestfs.pod:178
31057 msgid ""
31058 "If you are given a disk image and you don't know what it contains then you "
31059 "have to find out.  Libguestfs can do that too: use L</"
31060 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
31061 "LVs, and either try mounting each to see what is mountable, or else examine "
31062 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
31063 "filesystems, use L</guestfs_list_filesystems>."
31064 msgstr ""
31065
31066 #. type: textblock
31067 #: ../src/guestfs.pod:186
31068 msgid ""
31069 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
31070 "L</INSPECTION> below).  But you might find it easier to look at higher level "
31071 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
31072 msgstr ""
31073
31074 #. type: textblock
31075 #: ../src/guestfs.pod:191
31076 msgid ""
31077 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
31078 "several other variations of the C<guestfs_mount_*> call."
31079 msgstr ""
31080
31081 #. type: =head2
31082 #: ../src/guestfs.pod:194
31083 msgid "FILESYSTEM ACCESS AND MODIFICATION"
31084 msgstr ""
31085
31086 #. type: textblock
31087 #: ../src/guestfs.pod:196
31088 msgid ""
31089 "The majority of the libguestfs API consists of fairly low-level calls for "
31090 "accessing and modifying the files, directories, symlinks etc on mounted "
31091 "filesystems.  There are over a hundred such calls which you can find listed "
31092 "in detail below in this man page, and we don't even pretend to cover them "
31093 "all in this overview."
31094 msgstr ""
31095
31096 #. type: textblock
31097 #: ../src/guestfs.pod:202
31098 msgid ""
31099 "Specify filenames as full paths, starting with C<\"/\"> and including the "
31100 "mount point."
31101 msgstr ""
31102
31103 #. type: textblock
31104 #: ../src/guestfs.pod:205
31105 msgid ""
31106 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
31107 "the file called C<\"etc/passwd\"> then you could do:"
31108 msgstr ""
31109
31110 #. type: verbatim
31111 #: ../src/guestfs.pod:208
31112 #, no-wrap
31113 msgid ""
31114 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
31115 "\n"
31116 msgstr ""
31117
31118 #. type: textblock
31119 #: ../src/guestfs.pod:210
31120 msgid ""
31121 "This would return C<data> as a newly allocated buffer containing the full "
31122 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
31123 "or C<NULL> if there was an error."
31124 msgstr ""
31125
31126 #. type: textblock
31127 #: ../src/guestfs.pod:214
31128 msgid ""
31129 "As another example, to create a top-level directory on that filesystem "
31130 "called C<\"var\"> you would do:"
31131 msgstr ""
31132
31133 #. type: verbatim
31134 #: ../src/guestfs.pod:217
31135 #, no-wrap
31136 msgid ""
31137 " guestfs_mkdir (g, \"/var\");\n"
31138 "\n"
31139 msgstr ""
31140
31141 #. type: textblock
31142 #: ../src/guestfs.pod:219
31143 msgid "To create a symlink you could do:"
31144 msgstr ""
31145
31146 #. type: verbatim
31147 #: ../src/guestfs.pod:221
31148 #, no-wrap
31149 msgid ""
31150 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
31151 "               \"/etc/rc3.d/S30portmap\");\n"
31152 "\n"
31153 msgstr ""
31154
31155 #. type: textblock
31156 #: ../src/guestfs.pod:224
31157 msgid ""
31158 "Libguestfs will reject attempts to use relative paths and there is no "
31159 "concept of a current working directory."
31160 msgstr ""
31161
31162 #. type: textblock
31163 #: ../src/guestfs.pod:227
31164 msgid ""
31165 "Libguestfs can return errors in many situations: for example if the "
31166 "filesystem isn't writable, or if a file or directory that you requested "
31167 "doesn't exist.  If you are using the C API (documented here)  you have to "
31168 "check for those error conditions after each call.  (Other language bindings "
31169 "turn these errors into exceptions)."
31170 msgstr ""
31171
31172 #. type: textblock
31173 #: ../src/guestfs.pod:233
31174 msgid ""
31175 "File writes are affected by the per-handle umask, set by calling L</"
31176 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
31177 msgstr ""
31178
31179 #. type: =head2
31180 #: ../src/guestfs.pod:236
31181 msgid "PARTITIONING"
31182 msgstr ""
31183
31184 #. type: textblock
31185 #: ../src/guestfs.pod:238
31186 msgid ""
31187 "Libguestfs contains API calls to read, create and modify partition tables on "
31188 "disk images."
31189 msgstr ""
31190
31191 #. type: textblock
31192 #: ../src/guestfs.pod:241
31193 msgid ""
31194 "In the common case where you want to create a single partition covering the "
31195 "whole disk, you should use the L</guestfs_part_disk> call:"
31196 msgstr ""
31197
31198 #. type: verbatim
31199 #: ../src/guestfs.pod:245
31200 #, no-wrap
31201 msgid ""
31202 " const char *parttype = \"mbr\";\n"
31203 " if (disk_is_larger_than_2TB)\n"
31204 "   parttype = \"gpt\";\n"
31205 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
31206 "\n"
31207 msgstr ""
31208
31209 #. type: textblock
31210 #: ../src/guestfs.pod:250
31211 msgid ""
31212 "Obviously this effectively wipes anything that was on that disk image before."
31213 msgstr ""
31214
31215 #. type: =head2
31216 #: ../src/guestfs.pod:253
31217 msgid "LVM2"
31218 msgstr ""
31219
31220 #. type: textblock
31221 #: ../src/guestfs.pod:255
31222 msgid ""
31223 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
31224 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
31225 "you familiarize yourself with the concepts of physical volumes, volume "
31226 "groups and logical volumes."
31227 msgstr ""
31228
31229 #. type: textblock
31230 #: ../src/guestfs.pod:260
31231 msgid ""
31232 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
31233 "tldp.org/HOWTO/LVM-HOWTO/>."
31234 msgstr ""
31235
31236 #. type: =head2
31237 #: ../src/guestfs.pod:263
31238 msgid "DOWNLOADING"
31239 msgstr ""
31240
31241 #. type: textblock
31242 #: ../src/guestfs.pod:265
31243 msgid ""
31244 "Use L</guestfs_cat> to download small, text only files.  This call is "
31245 "limited to files which are less than 2 MB and which cannot contain any ASCII "
31246 "NUL (C<\\0>) characters.  However the API is very simple to use."
31247 msgstr ""
31248
31249 #. type: textblock
31250 #: ../src/guestfs.pod:269
31251 msgid ""
31252 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
31253 "bit data, since it returns a (pointer, size) pair.  However it is still "
31254 "limited to \"small\" files, less than 2 MB."
31255 msgstr ""
31256
31257 #. type: textblock
31258 #: ../src/guestfs.pod:273
31259 msgid ""
31260 "L</guestfs_download> can be used to download any file, with no limits on "
31261 "content or size (even files larger than 4 GB)."
31262 msgstr ""
31263
31264 #. type: textblock
31265 #: ../src/guestfs.pod:276
31266 msgid ""
31267 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
31268 msgstr ""
31269
31270 #. type: =head2
31271 #: ../src/guestfs.pod:279
31272 msgid "UPLOADING"
31273 msgstr ""
31274
31275 #. type: textblock
31276 #: ../src/guestfs.pod:281
31277 msgid ""
31278 "It's often the case that you want to write a file or files to the disk image."
31279 msgstr ""
31280
31281 #. type: textblock
31282 #: ../src/guestfs.pod:284
31283 msgid ""
31284 "To write a small file with fixed content, use L</guestfs_write>.  To create "
31285 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
31286 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
31287 "of other functions for creating test files, for example L</guestfs_fill> and "
31288 "L</guestfs_fill_pattern>."
31289 msgstr ""
31290
31291 #. type: textblock
31292 #: ../src/guestfs.pod:290
31293 msgid ""
31294 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
31295 "file content or size (even files larger than 4 GB)."
31296 msgstr ""
31297
31298 #. type: textblock
31299 #: ../src/guestfs.pod:293
31300 msgid ""
31301 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
31302 msgstr ""
31303
31304 #. type: textblock
31305 #: ../src/guestfs.pod:295
31306 msgid ""
31307 "However the fastest way to upload I<large numbers of arbitrary files> is to "
31308 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
31309 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
31310 "in a predictable way (eg. adding it last after all other drives) then you "
31311 "can get the device name from L</guestfs_list_devices> and mount it directly "
31312 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
31313 "portable between kernel versions, and they don't support labels or UUIDs.  "
31314 "If you want to pre-build an image or you need to mount it using a label or "
31315 "UUID, use an ISO image instead."
31316 msgstr ""
31317
31318 #. type: =head2
31319 #: ../src/guestfs.pod:306
31320 msgid "COPYING"
31321 msgstr ""
31322
31323 #. type: textblock
31324 #: ../src/guestfs.pod:308
31325 msgid ""
31326 "There are various different commands for copying between files and devices "
31327 "and in and out of the guest filesystem.  These are summarised in the table "
31328 "below."
31329 msgstr ""
31330
31331 #. type: =item
31332 #: ../src/guestfs.pod:314
31333 msgid "B<file> to B<file>"
31334 msgstr ""
31335
31336 #. type: textblock
31337 #: ../src/guestfs.pod:316
31338 msgid ""
31339 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
31340 "directories recursively."
31341 msgstr ""
31342
31343 #. type: =item
31344 #: ../src/guestfs.pod:319
31345 msgid "B<file or device> to B<file or device>"
31346 msgstr ""
31347
31348 #. type: textblock
31349 #: ../src/guestfs.pod:321
31350 msgid ""
31351 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
31352 "devices in the guest."
31353 msgstr ""
31354
31355 #. type: textblock
31356 #: ../src/guestfs.pod:324
31357 msgid "Example: duplicate the contents of an LV:"
31358 msgstr ""
31359
31360 #. type: verbatim
31361 #: ../src/guestfs.pod:326
31362 #, no-wrap
31363 msgid ""
31364 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
31365 "\n"
31366 msgstr ""
31367
31368 #. type: textblock
31369 #: ../src/guestfs.pod:328
31370 msgid ""
31371 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
31372 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
31373 "guestfs_copy_size>."
31374 msgstr ""
31375
31376 #. type: =item
31377 #: ../src/guestfs.pod:332
31378 msgid "B<file on the host> to B<file or device>"
31379 msgstr ""
31380
31381 #. type: textblock
31382 #: ../src/guestfs.pod:334
31383 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
31384 msgstr ""
31385
31386 #. type: =item
31387 #: ../src/guestfs.pod:336
31388 msgid "B<file or device> to B<file on the host>"
31389 msgstr ""
31390
31391 #. type: textblock
31392 #: ../src/guestfs.pod:338
31393 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
31394 msgstr ""
31395
31396 #. type: =head2
31397 #: ../src/guestfs.pod:342
31398 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
31399 msgstr ""
31400
31401 #. type: textblock
31402 #: ../src/guestfs.pod:344
31403 msgid ""
31404 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
31405 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
31406 "appears you can only upload and download to files.  However many Un*x-like "
31407 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
31408 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
31409 "and arbitrary file descriptor N."
31410 msgstr ""
31411
31412 #. type: textblock
31413 #: ../src/guestfs.pod:352
31414 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
31415 msgstr ""
31416
31417 #. type: verbatim
31418 #: ../src/guestfs.pod:355
31419 #, no-wrap
31420 msgid ""
31421 " guestfs_download (g, filename, \"/dev/stdout\");\n"
31422 "\n"
31423 msgstr ""
31424
31425 #. type: textblock
31426 #: ../src/guestfs.pod:357
31427 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
31428 msgstr ""
31429
31430 #. type: verbatim
31431 #: ../src/guestfs.pod:359
31432 #, no-wrap
31433 msgid ""
31434 " char devfd[64];\n"
31435 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
31436 " guestfs_tar_out (g, \"/\", devfd);\n"
31437 "\n"
31438 msgstr ""
31439
31440 #. type: =head2
31441 #: ../src/guestfs.pod:363
31442 msgid "LISTING FILES"
31443 msgstr ""
31444
31445 #. type: textblock
31446 #: ../src/guestfs.pod:365
31447 msgid ""
31448 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
31449 "L<guestfish(1)>-equivalent command C<ll>)."
31450 msgstr ""
31451
31452 #. type: textblock
31453 #: ../src/guestfs.pod:368
31454 msgid ""
31455 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
31456 "programs, as a flat list of strings."
31457 msgstr ""
31458
31459 #. type: textblock
31460 #: ../src/guestfs.pod:371
31461 msgid ""
31462 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
31463 "directory, plus additional information about each one.  It is more "
31464 "equivalent to using the L<readdir(3)> call on a local filesystem."
31465 msgstr ""
31466
31467 #. type: textblock
31468 #: ../src/guestfs.pod:375
31469 msgid ""
31470 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
31471 msgstr ""
31472
31473 #. type: =head2
31474 #: ../src/guestfs.pod:378
31475 msgid "RUNNING COMMANDS"
31476 msgstr ""
31477
31478 #. type: textblock
31479 #: ../src/guestfs.pod:380
31480 msgid ""
31481 "Although libguestfs is primarily an API for manipulating files inside guest "
31482 "images, we also provide some limited facilities for running commands inside "
31483 "guests."
31484 msgstr ""
31485
31486 #. type: textblock
31487 #: ../src/guestfs.pod:384
31488 msgid "There are many limitations to this:"
31489 msgstr ""
31490
31491 #. type: textblock
31492 #: ../src/guestfs.pod:390
31493 msgid ""
31494 "The kernel version that the command runs under will be different from what "
31495 "it expects."
31496 msgstr ""
31497
31498 #. type: textblock
31499 #: ../src/guestfs.pod:395
31500 msgid ""
31501 "If the command needs to communicate with daemons, then most likely they "
31502 "won't be running."
31503 msgstr ""
31504
31505 #. type: textblock
31506 #: ../src/guestfs.pod:400
31507 msgid "The command will be running in limited memory."
31508 msgstr ""
31509
31510 #. type: textblock
31511 #: ../src/guestfs.pod:404
31512 msgid ""
31513 "The network may not be available unless you enable it (see L</"
31514 "guestfs_set_network>)."
31515 msgstr ""
31516
31517 #. type: textblock
31518 #: ../src/guestfs.pod:409
31519 msgid "Only supports Linux guests (not Windows, BSD, etc)."
31520 msgstr ""
31521
31522 #. type: textblock
31523 #: ../src/guestfs.pod:413
31524 msgid ""
31525 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
31526 msgstr ""
31527
31528 #. type: textblock
31529 #: ../src/guestfs.pod:418
31530 msgid ""
31531 "For SELinux guests, you may need to enable SELinux and load policy first.  "
31532 "See L</SELINUX> in this manpage."
31533 msgstr ""
31534
31535 #. type: textblock
31536 #: ../src/guestfs.pod:423
31537 msgid ""
31538 "I<Security:> It is not safe to run commands from untrusted, possibly "
31539 "malicious guests.  These commands may attempt to exploit your program by "
31540 "sending unexpected output.  They could also try to exploit the Linux kernel "
31541 "or qemu provided by the libguestfs appliance.  They could use the network "
31542 "provided by the libguestfs appliance to bypass ordinary network partitions "
31543 "and firewalls.  They could use the elevated privileges or different SELinux "
31544 "context of your program to their advantage."
31545 msgstr ""
31546
31547 #. type: textblock
31548 #: ../src/guestfs.pod:432
31549 msgid ""
31550 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
31551 "(a script which runs when the guest next boots normally), and to have this "
31552 "script run the commands you want in the normal context of the running guest, "
31553 "network security and so on.  For information about other security issues, "
31554 "see L</SECURITY>."
31555 msgstr ""
31556
31557 #. type: textblock
31558 #: ../src/guestfs.pod:440
31559 msgid ""
31560 "The two main API calls to run commands are L</guestfs_command> and L</"
31561 "guestfs_sh> (there are also variations)."
31562 msgstr ""
31563
31564 #. type: textblock
31565 #: ../src/guestfs.pod:443
31566 msgid ""
31567 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
31568 "shell globs, redirections, etc will work."
31569 msgstr ""
31570
31571 #. type: =head2
31572 #: ../src/guestfs.pod:446
31573 msgid "CONFIGURATION FILES"
31574 msgstr ""
31575
31576 #. type: textblock
31577 #: ../src/guestfs.pod:448
31578 msgid ""
31579 "To read and write configuration files in Linux guest filesystems, we "
31580 "strongly recommend using Augeas.  For example, Augeas understands how to "
31581 "read and write, say, a Linux shadow password file or X.org configuration "
31582 "file, and so avoids you having to write that code."
31583 msgstr ""
31584
31585 #. type: textblock
31586 #: ../src/guestfs.pod:453
31587 msgid ""
31588 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
31589 "document Augeas itself here because there is excellent documentation on the "
31590 "L<http://augeas.net/> website."
31591 msgstr ""
31592
31593 #. type: textblock
31594 #: ../src/guestfs.pod:457
31595 msgid ""
31596 "If you don't want to use Augeas (you fool!) then try calling L</"
31597 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
31598 "over."
31599 msgstr ""
31600
31601 #. type: =head2
31602 #: ../src/guestfs.pod:461
31603 msgid "SELINUX"
31604 msgstr ""
31605
31606 #. type: textblock
31607 #: ../src/guestfs.pod:463
31608 msgid ""
31609 "We support SELinux guests.  To ensure that labeling happens correctly in "
31610 "SELinux guests, you need to enable SELinux and load the guest's policy:"
31611 msgstr ""
31612
31613 #. type: textblock
31614 #: ../src/guestfs.pod:471
31615 msgid "Before launching, do:"
31616 msgstr ""
31617
31618 #. type: verbatim
31619 #: ../src/guestfs.pod:473
31620 #, no-wrap
31621 msgid ""
31622 " guestfs_set_selinux (g, 1);\n"
31623 "\n"
31624 msgstr ""
31625
31626 #. type: textblock
31627 #: ../src/guestfs.pod:477
31628 msgid ""
31629 "After mounting the guest's filesystem(s), load the policy.  This is best "
31630 "done by running the L<load_policy(8)> command in the guest itself:"
31631 msgstr ""
31632
31633 #. type: verbatim
31634 #: ../src/guestfs.pod:481
31635 #, no-wrap
31636 msgid ""
31637 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
31638 "\n"
31639 msgstr ""
31640
31641 #. type: textblock
31642 #: ../src/guestfs.pod:483
31643 msgid ""
31644 "(Older versions of C<load_policy> require you to specify the name of the "
31645 "policy file)."
31646 msgstr ""
31647
31648 #. type: textblock
31649 #: ../src/guestfs.pod:488
31650 msgid ""
31651 "Optionally, set the security context for the API.  The correct security "
31652 "context to use can only be known by inspecting the guest.  As an example:"
31653 msgstr ""
31654
31655 #. type: verbatim
31656 #: ../src/guestfs.pod:492
31657 #, no-wrap
31658 msgid ""
31659 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
31660 "\n"
31661 msgstr ""
31662
31663 #. type: textblock
31664 #: ../src/guestfs.pod:496
31665 msgid "This will work for running commands and editing existing files."
31666 msgstr ""
31667
31668 #. type: textblock
31669 #: ../src/guestfs.pod:498
31670 msgid ""
31671 "When new files are created, you may need to label them explicitly, for "
31672 "example by running the external command C<restorecon pathname>."
31673 msgstr ""
31674
31675 #. type: =head2
31676 #: ../src/guestfs.pod:502
31677 msgid "UMASK"
31678 msgstr ""
31679
31680 #. type: textblock
31681 #: ../src/guestfs.pod:504
31682 msgid ""
31683 "Certain calls are affected by the current file mode creation mask (the "
31684 "\"umask\").  In particular ones which create files or directories, such as "
31685 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
31686 "either the default mode that the file is created with or modifies the mode "
31687 "that you supply."
31688 msgstr ""
31689
31690 #. type: textblock
31691 #: ../src/guestfs.pod:510
31692 msgid ""
31693 "The default umask is C<022>, so files are created with modes such as C<0644> "
31694 "and directories with C<0755>."
31695 msgstr ""
31696
31697 #. type: textblock
31698 #: ../src/guestfs.pod:513
31699 msgid ""
31700 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
31701 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
31702 "guestfs_chmod> after creating each file or directory."
31703 msgstr ""
31704
31705 #. type: textblock
31706 #: ../src/guestfs.pod:517
31707 msgid "For more information about umask, see L<umask(2)>."
31708 msgstr ""
31709
31710 #. type: textblock
31711 #: ../src/guestfs.pod:521
31712 msgid ""
31713 "Libguestfs allows you to access Linux guests which have been encrypted using "
31714 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
31715 "standard.  This includes nearly all whole disk encryption systems used by "
31716 "modern Linux guests."
31717 msgstr ""
31718
31719 #. type: textblock
31720 #: ../src/guestfs.pod:527
31721 msgid ""
31722 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
31723 "returns the string C<crypto_LUKS>)."
31724 msgstr ""
31725
31726 #. type: textblock
31727 #: ../src/guestfs.pod:530
31728 msgid ""
31729 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
31730 "will require the passphrase!"
31731 msgstr ""
31732
31733 #. type: textblock
31734 #: ../src/guestfs.pod:533
31735 msgid ""
31736 "Opening a LUKS device creates a new device mapper device called C</dev/"
31737 "mapper/mapname> (where C<mapname> is the string you supply to L</"
31738 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
31739 "from and encrypted to the underlying block device respectively."
31740 msgstr ""
31741
31742 #. type: textblock
31743 #: ../src/guestfs.pod:539
31744 msgid ""
31745 "LVM volume groups on the device can be made visible by calling L</"
31746 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
31747 "(s) can now be mounted in the usual way."
31748 msgstr ""
31749
31750 #. type: textblock
31751 #: ../src/guestfs.pod:543
31752 msgid ""
31753 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
31754 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
31755 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
31756 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
31757 "underlying encrypted block device)."
31758 msgstr ""
31759
31760 #. type: =head2
31761 #: ../src/guestfs.pod:550
31762 msgid "INSPECTION"
31763 msgstr ""
31764
31765 #. type: textblock
31766 #: ../src/guestfs.pod:552
31767 msgid ""
31768 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
31769 "contains operating systems, an install CD or a live CD.  (These APIs used to "
31770 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
31771 "version 1.5.3 the most frequently used part of this library has been "
31772 "rewritten in C and moved into the core code)."
31773 msgstr ""
31774
31775 #. type: textblock
31776 #: ../src/guestfs.pod:559
31777 msgid ""
31778 "Add all disks belonging to the unknown virtual machine and call L</"
31779 "guestfs_launch> in the usual way."
31780 msgstr ""
31781
31782 #. type: textblock
31783 #: ../src/guestfs.pod:562
31784 msgid ""
31785 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
31786 "and certain heuristics, and returns a list of operating systems that were "
31787 "found.  An empty list means none were found.  A single element is the root "
31788 "filesystem of the operating system.  For dual- or multi-boot guests, "
31789 "multiple roots can be returned, each one corresponding to a separate "
31790 "operating system.  (Multi-boot virtual machines are extremely rare in the "
31791 "world of virtualization, but since this scenario can happen, we have built "
31792 "libguestfs to deal with it.)"
31793 msgstr ""
31794
31795 #. type: textblock
31796 #: ../src/guestfs.pod:571
31797 msgid ""
31798 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
31799 "to get additional details about that operating system.  For example, call L</"
31800 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
31801 "Windows and Linux-based operating systems respectively."
31802 msgstr ""
31803
31804 #. type: textblock
31805 #: ../src/guestfs.pod:577
31806 msgid ""
31807 "Un*x-like and Linux-based operating systems usually consist of several "
31808 "filesystems which are mounted at boot time (for example, a separate boot "
31809 "partition mounted on C</boot>).  The inspection rules are able to detect how "
31810 "filesystems correspond to mount points.  Call "
31811 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
31812 "hash table like this example:"
31813 msgstr ""
31814
31815 #. type: verbatim
31816 #: ../src/guestfs.pod:584
31817 #, no-wrap
31818 msgid ""
31819 " /boot => /dev/sda1\n"
31820 " /     => /dev/vg_guest/lv_root\n"
31821 " /usr  => /dev/vg_guest/lv_usr\n"
31822 "\n"
31823 msgstr ""
31824
31825 #. type: textblock
31826 #: ../src/guestfs.pod:588
31827 msgid ""
31828 "The caller can then make calls to L</guestfs_mount_options> to mount the "
31829 "filesystems as suggested."
31830 msgstr ""
31831
31832 #. type: textblock
31833 #: ../src/guestfs.pod:591
31834 msgid ""
31835 "Be careful to mount filesystems in the right order (eg. C</> before C</"
31836 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
31837 msgstr ""
31838
31839 #. type: textblock
31840 #: ../src/guestfs.pod:595
31841 msgid ""
31842 "Inspection currently only works for some common operating systems.  "
31843 "Contributors are welcome to send patches for other operating systems that we "
31844 "currently cannot detect."
31845 msgstr ""
31846
31847 #. type: textblock
31848 #: ../src/guestfs.pod:599
31849 msgid ""
31850 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
31851 "for more details.  The L</guestfs_inspect_os> function just ignores any "
31852 "encrypted devices."
31853 msgstr ""
31854
31855 #. type: textblock
31856 #: ../src/guestfs.pod:603
31857 msgid ""
31858 "A note on the implementation: The call L</guestfs_inspect_os> performs "
31859 "inspection and caches the results in the guest handle.  Subsequent calls to "
31860 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
31861 "read the disks.  If you change the content of the guest disks, you can redo "
31862 "inspection by calling L</guestfs_inspect_os> again.  (L</"
31863 "guestfs_inspect_list_applications> works a little differently from the other "
31864 "calls and does read the disks.  See documentation for that function for "
31865 "details)."
31866 msgstr ""
31867
31868 #. type: =head3
31869 #: ../src/guestfs.pod:612
31870 msgid "INSPECTING INSTALL DISKS"
31871 msgstr ""
31872
31873 #. type: textblock
31874 #: ../src/guestfs.pod:614
31875 msgid ""
31876 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
31877 "CDs and more."
31878 msgstr ""
31879
31880 #. type: textblock
31881 #: ../src/guestfs.pod:617
31882 msgid ""
31883 "Call L</guestfs_inspect_get_format> to return the format of the operating "
31884 "system, which currently can be C<installed> (a regular operating system) or "
31885 "C<installer> (some sort of install disk)."
31886 msgstr ""
31887
31888 #. type: textblock
31889 #: ../src/guestfs.pod:621
31890 msgid ""
31891 "Further information is available about the operating system that can be "
31892 "installed using the regular inspection APIs like L</"
31893 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
31894 msgstr ""
31895
31896 #. type: textblock
31897 #: ../src/guestfs.pod:626
31898 msgid ""
31899 "Some additional information specific to installer disks is also available "
31900 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
31901 "guestfs_inspect_is_multipart> calls."
31902 msgstr ""
31903
31904 #. type: =head2
31905 #: ../src/guestfs.pod:631
31906 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
31907 msgstr ""
31908
31909 #. type: textblock
31910 #: ../src/guestfs.pod:633
31911 msgid ""
31912 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
31913 "ntfs-3g.org/> driver."
31914 msgstr ""
31915
31916 #. type: =head3
31917 #: ../src/guestfs.pod:636
31918 msgid "DRIVE LETTERS AND PATHS"
31919 msgstr ""
31920
31921 #. type: textblock
31922 #: ../src/guestfs.pod:638
31923 msgid ""
31924 "DOS and Windows still use drive letters, and the filesystems are always "
31925 "treated as case insensitive by Windows itself, and therefore you might find "
31926 "a Windows configuration file referring to a path like C<c:\\windows"
31927 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
31928 "might be referred to as C</WINDOWS/System32>."
31929 msgstr ""
31930
31931 #. type: textblock
31932 #: ../src/guestfs.pod:644
31933 msgid ""
31934 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
31935 "L</guestfs_inspect_get_drive_mappings>)"
31936 msgstr ""
31937
31938 #. type: textblock
31939 #: ../src/guestfs.pod:647
31940 msgid ""
31941 "Dealing with separator characters (backslash vs forward slash) is outside "
31942 "the scope of libguestfs, but usually a simple character replacement will "
31943 "work."
31944 msgstr ""
31945
31946 #. type: textblock
31947 #: ../src/guestfs.pod:651
31948 msgid ""
31949 "To resolve the case insensitivity of paths, call L</"
31950 "guestfs_case_sensitive_path>."
31951 msgstr ""
31952
31953 #. type: =head3
31954 #: ../src/guestfs.pod:654
31955 msgid "ACCESSING THE WINDOWS REGISTRY"
31956 msgstr ""
31957
31958 #. type: textblock
31959 #: ../src/guestfs.pod:656
31960 msgid ""
31961 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
31962 "files, through the library C<hivex> which is part of the libguestfs project "
31963 "although ships as a separate tarball.  You have to locate and download the "
31964 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
31965 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
31966 "reg(1)> for more help on this issue."
31967 msgstr ""
31968
31969 #. type: =head3
31970 #: ../src/guestfs.pod:664
31971 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
31972 msgstr ""
31973
31974 #. type: textblock
31975 #: ../src/guestfs.pod:666
31976 msgid ""
31977 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
31978 "provide something which looks like a Linux symlink.  The way it tries to do "
31979 "the rewriting is described here:"
31980 msgstr ""
31981
31982 #. type: textblock
31983 #: ../src/guestfs.pod:670
31984 msgid ""
31985 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
31986 "symbolic-links/>"
31987 msgstr ""
31988
31989 #. type: textblock
31990 #: ../src/guestfs.pod:672
31991 msgid ""
31992 "The essential problem is that ntfs-3g simply does not have enough "
31993 "information to do a correct job.  NTFS links can contain drive letters and "
31994 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
31995 "It is almost certainly the case that libguestfs callers should ignore what "
31996 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
31997 msgstr ""
31998
31999 #. type: textblock
32000 #: ../src/guestfs.pod:679
32001 msgid ""
32002 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
32003 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
32004 "attribute, and read the raw reparse data from that (you can find the format "
32005 "documented in various places around the web)."
32006 msgstr ""
32007
32008 #. type: =head3
32009 #: ../src/guestfs.pod:684
32010 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
32011 msgstr ""
32012
32013 #. type: textblock
32014 #: ../src/guestfs.pod:686
32015 msgid ""
32016 "There are other useful extended attributes that can be read from ntfs-3g "
32017 "filesystems (using L</guestfs_getxattr>).  See:"
32018 msgstr ""
32019
32020 #. type: textblock
32021 #: ../src/guestfs.pod:689
32022 msgid ""
32023 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
32024 msgstr ""
32025
32026 #. type: =head2
32027 #: ../src/guestfs.pod:691
32028 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
32029 msgstr ""
32030
32031 #. type: textblock
32032 #: ../src/guestfs.pod:693
32033 msgid ""
32034 "Although we don't want to discourage you from using the C API, we will "
32035 "mention here that the same API is also available in other languages."
32036 msgstr ""
32037
32038 #. type: textblock
32039 #: ../src/guestfs.pod:696
32040 msgid ""
32041 "The API is broadly identical in all supported languages.  This means that "
32042 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
32043 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
32044 "OCaml.  In other words, a straightforward, predictable isomorphism between "
32045 "each language."
32046 msgstr ""
32047
32048 #. type: textblock
32049 #: ../src/guestfs.pod:702
32050 msgid ""
32051 "Error messages are automatically transformed into exceptions if the language "
32052 "supports it."
32053 msgstr ""
32054
32055 #. type: textblock
32056 #: ../src/guestfs.pod:705
32057 msgid ""
32058 "We don't try to \"object orientify\" parts of the API in OO languages, "
32059 "although contributors are welcome to write higher level APIs above what we "
32060 "provide in their favourite languages if they wish."
32061 msgstr ""
32062
32063 #. type: =item
32064 #: ../src/guestfs.pod:711
32065 msgid "B<C++>"
32066 msgstr ""
32067
32068 #. type: textblock
32069 #: ../src/guestfs.pod:713
32070 msgid ""
32071 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
32072 "identical to the C API.  C++ classes and exceptions are not used."
32073 msgstr ""
32074
32075 #. type: =item
32076 #: ../src/guestfs.pod:717
32077 msgid "B<C#>"
32078 msgstr ""
32079
32080 #. type: textblock
32081 #: ../src/guestfs.pod:719
32082 msgid ""
32083 "The C# bindings are highly experimental.  Please read the warnings at the "
32084 "top of C<csharp/Libguestfs.cs>."
32085 msgstr ""
32086
32087 #. type: =item
32088 #: ../src/guestfs.pod:722
32089 msgid "B<Haskell>"
32090 msgstr ""
32091
32092 #. type: textblock
32093 #: ../src/guestfs.pod:724
32094 msgid ""
32095 "This is the only language binding that is working but incomplete.  Only "
32096 "calls which return simple integers have been bound in Haskell, and we are "
32097 "looking for help to complete this binding."
32098 msgstr ""
32099
32100 #. type: =item
32101 #: ../src/guestfs.pod:728
32102 msgid "B<Java>"
32103 msgstr ""
32104
32105 #. type: textblock
32106 #: ../src/guestfs.pod:730
32107 msgid ""
32108 "Full documentation is contained in the Javadoc which is distributed with "
32109 "libguestfs.  For examples, see L<guestfs-java(3)>."
32110 msgstr ""
32111
32112 #. type: =item
32113 #: ../src/guestfs.pod:733
32114 msgid "B<OCaml>"
32115 msgstr ""
32116
32117 #. type: textblock
32118 #: ../src/guestfs.pod:735
32119 msgid "See L<guestfs-ocaml(3)>."
32120 msgstr ""
32121
32122 #. type: =item
32123 #: ../src/guestfs.pod:737
32124 msgid "B<Perl>"
32125 msgstr ""
32126
32127 #. type: textblock
32128 #: ../src/guestfs.pod:739
32129 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
32130 msgstr ""
32131
32132 #. type: =item
32133 #: ../src/guestfs.pod:741
32134 msgid "B<PHP>"
32135 msgstr ""
32136
32137 #. type: textblock
32138 #: ../src/guestfs.pod:743
32139 msgid ""
32140 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
32141 "the php-libguestfs package for your distribution."
32142 msgstr ""
32143
32144 #. type: textblock
32145 #: ../src/guestfs.pod:746
32146 msgid "The PHP binding only works correctly on 64 bit machines."
32147 msgstr ""
32148
32149 #. type: =item
32150 #: ../src/guestfs.pod:748
32151 msgid "B<Python>"
32152 msgstr ""
32153
32154 #. type: textblock
32155 #: ../src/guestfs.pod:750
32156 msgid "See L<guestfs-python(3)>."
32157 msgstr ""
32158
32159 #. type: =item
32160 #: ../src/guestfs.pod:752
32161 msgid "B<Ruby>"
32162 msgstr ""
32163
32164 #. type: textblock
32165 #: ../src/guestfs.pod:754
32166 msgid "See L<guestfs-ruby(3)>."
32167 msgstr ""
32168
32169 #. type: =item
32170 #: ../src/guestfs.pod:756
32171 msgid "B<shell scripts>"
32172 msgstr ""
32173
32174 #. type: textblock
32175 #: ../src/guestfs.pod:758
32176 msgid "See L<guestfish(1)>."
32177 msgstr ""
32178
32179 #. type: =head2
32180 #: ../src/guestfs.pod:762
32181 msgid "LIBGUESTFS GOTCHAS"
32182 msgstr ""
32183
32184 #. type: textblock
32185 #: ../src/guestfs.pod:764
32186 msgid ""
32187 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
32188 "system [...] that works in the way it is documented but is counterintuitive "
32189 "and almost invites mistakes.\""
32190 msgstr ""
32191
32192 #. type: textblock
32193 #: ../src/guestfs.pod:768
32194 msgid ""
32195 "Since we developed libguestfs and the associated tools, there are several "
32196 "things we would have designed differently, but are now stuck with for "
32197 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
32198 "release, you can expect these to change.  Beware of them."
32199 msgstr ""
32200
32201 #. type: =item
32202 #: ../src/guestfs.pod:776
32203 msgid "Autosync / forgetting to sync."
32204 msgstr ""
32205
32206 #. type: textblock
32207 #: ../src/guestfs.pod:778
32208 msgid ""
32209 "I<Update:> Autosync is enabled by default for all API users starting from "
32210 "libguestfs 1.5.24.  This section only applies to older versions."
32211 msgstr ""
32212
32213 #. type: textblock
32214 #: ../src/guestfs.pod:781
32215 msgid ""
32216 "When modifying a filesystem from C or another language, you B<must> unmount "
32217 "all filesystems and call L</guestfs_sync> explicitly before you close the "
32218 "libguestfs handle.  You can also call:"
32219 msgstr ""
32220
32221 #. type: verbatim
32222 #: ../src/guestfs.pod:785
32223 #, no-wrap
32224 msgid ""
32225 " guestfs_set_autosync (g, 1);\n"
32226 "\n"
32227 msgstr ""
32228
32229 #. type: textblock
32230 #: ../src/guestfs.pod:787
32231 msgid ""
32232 "to have the unmount/sync done automatically for you when the handle 'g' is "
32233 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
32234 msgstr ""
32235
32236 #. type: textblock
32237 #: ../src/guestfs.pod:791
32238 msgid ""
32239 "If you forget to do this, then it is entirely possible that your changes "
32240 "won't be written out, or will be partially written, or (very rarely) that "
32241 "you'll get disk corruption."
32242 msgstr ""
32243
32244 #. type: textblock
32245 #: ../src/guestfs.pod:795
32246 msgid ""
32247 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
32248 "guestfish scripts that forget to sync will work just fine, which can make "
32249 "this very puzzling if you are trying to debug a problem."
32250 msgstr ""
32251
32252 #. type: =item
32253 #: ../src/guestfs.pod:799
32254 msgid "Mount option C<-o sync> should not be the default."
32255 msgstr ""
32256
32257 #. type: textblock
32258 #: ../src/guestfs.pod:801
32259 msgid ""
32260 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
32261 "However C<-o sync> does not add any reliability benefit, but does have a "
32262 "very large performance impact."
32263 msgstr ""
32264
32265 #. type: textblock
32266 #: ../src/guestfs.pod:805
32267 msgid ""
32268 "The work around is to use L</guestfs_mount_options> and set the mount "
32269 "options that you actually want to use."
32270 msgstr ""
32271
32272 #. type: =item
32273 #: ../src/guestfs.pod:808
32274 msgid "Read-only should be the default."
32275 msgstr ""
32276
32277 #. type: textblock
32278 #: ../src/guestfs.pod:810
32279 msgid ""
32280 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
32281 "specify I<--rw> if you want to make changes to the image."
32282 msgstr ""
32283
32284 #. type: textblock
32285 #: ../src/guestfs.pod:813
32286 msgid "This would reduce the potential to corrupt live VM images."
32287 msgstr ""
32288
32289 #. type: textblock
32290 #: ../src/guestfs.pod:815
32291 msgid ""
32292 "Note that many filesystems change the disk when you just mount and unmount, "
32293 "even if you didn't perform any writes.  You need to use L</"
32294 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
32295 msgstr ""
32296
32297 #. type: =item
32298 #: ../src/guestfs.pod:819
32299 msgid "guestfish command line is hard to use."
32300 msgstr ""
32301
32302 #. type: textblock
32303 #: ../src/guestfs.pod:821
32304 msgid ""
32305 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
32306 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
32307 "exist, so it fails.  In earlier versions of guestfish the error message was "
32308 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
32309 "we should have used C<guestfish -c command> to run commands."
32310 msgstr ""
32311
32312 #. type: =item
32313 #: ../src/guestfs.pod:828
32314 msgid "guestfish megabyte modifiers don't work right on all commands"
32315 msgstr ""
32316
32317 #. type: textblock
32318 #: ../src/guestfs.pod:830
32319 msgid ""
32320 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
32321 "other modifiers).  What guestfish actually does is to multiply the number "
32322 "part by the modifier part and pass the result to the C API.  However this "
32323 "doesn't work for a few APIs which aren't expecting bytes, but are already "
32324 "expecting some other unit (eg. megabytes)."
32325 msgstr ""
32326
32327 #. type: textblock
32328 #: ../src/guestfs.pod:837
32329 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
32330 msgstr ""
32331
32332 #. type: verbatim
32333 #: ../src/guestfs.pod:839
32334 #, no-wrap
32335 msgid ""
32336 " lvcreate LV VG 100M\n"
32337 "\n"
32338 msgstr ""
32339
32340 #. type: textblock
32341 #: ../src/guestfs.pod:841
32342 msgid ""
32343 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
32344 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
32345 "megabytes * megabytes) logical volume.  The error message you get from this "
32346 "is also a little obscure."
32347 msgstr ""
32348
32349 #. type: textblock
32350 #: ../src/guestfs.pod:846
32351 msgid ""
32352 "This could be fixed in the generator by specially marking parameters and "
32353 "return values which take bytes or other units."
32354 msgstr ""
32355
32356 #. type: =item
32357 #: ../src/guestfs.pod:849
32358 msgid "Ambiguity between devices and paths"
32359 msgstr ""
32360
32361 #. type: textblock
32362 #: ../src/guestfs.pod:851
32363 msgid ""
32364 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
32365 "sdb2>) and a similar pathname.  A file might just happen to be called "
32366 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
32367 msgstr ""
32368
32369 #. type: textblock
32370 #: ../src/guestfs.pod:856
32371 msgid ""
32372 "In the current API we usually resolve this ambiguity by having two separate "
32373 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
32374 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
32375 "detecting if the path supplied begins with C</dev/>."
32376 msgstr ""
32377
32378 #. type: textblock
32379 #: ../src/guestfs.pod:862
32380 msgid ""
32381 "To avoid both the ambiguity and the need to duplicate some calls, we could "
32382 "make paths/devices into structured names.  One way to do this would be to "
32383 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
32384 "aspect of grub.  Another way would be to use a structured type, equivalent "
32385 "to this OCaml type:"
32386 msgstr ""
32387
32388 #. type: verbatim
32389 #: ../src/guestfs.pod:868
32390 #, no-wrap
32391 msgid ""
32392 " type path = Path of string | Device of int | Partition of int * int\n"
32393 "\n"
32394 msgstr ""
32395
32396 #. type: textblock
32397 #: ../src/guestfs.pod:870
32398 msgid "which would allow you to pass arguments like:"
32399 msgstr ""
32400
32401 #. type: verbatim
32402 #: ../src/guestfs.pod:872
32403 #, no-wrap
32404 msgid ""
32405 " Path \"/foo/bar\"\n"
32406 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
32407 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
32408 " Path \"/dev/sdb2\"    (* not a device *)\n"
32409 "\n"
32410 msgstr ""
32411
32412 #. type: textblock
32413 #: ../src/guestfs.pod:877
32414 msgid ""
32415 "As you can see there are still problems to resolve even with this "
32416 "representation.  Also consider how it might work in guestfish."
32417 msgstr ""
32418
32419 #. type: =head2
32420 #: ../src/guestfs.pod:882
32421 msgid "KEYS AND PASSPHRASES"
32422 msgstr ""
32423
32424 #. type: textblock
32425 #: ../src/guestfs.pod:884
32426 msgid ""
32427 "Certain libguestfs calls take a parameter that contains sensitive key "
32428 "material, passed in as a C string."
32429 msgstr ""
32430
32431 #. type: textblock
32432 #: ../src/guestfs.pod:887
32433 msgid ""
32434 "In the future we would hope to change the libguestfs implementation so that "
32435 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
32436 "swap.  However this is I<not> done at the moment, because of the complexity "
32437 "of such an implementation."
32438 msgstr ""
32439
32440 #. type: textblock
32441 #: ../src/guestfs.pod:892
32442 msgid ""
32443 "Therefore you should be aware that any key parameter you pass to libguestfs "
32444 "might end up being written out to the swap partition.  If this is a concern, "
32445 "scrub the swap partition or don't use libguestfs on encrypted devices."
32446 msgstr ""
32447
32448 #. type: =head2
32449 #: ../src/guestfs.pod:897
32450 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
32451 msgstr ""
32452
32453 #. type: textblock
32454 #: ../src/guestfs.pod:899
32455 msgid ""
32456 "All high-level libguestfs actions are synchronous.  If you want to use "
32457 "libguestfs asynchronously then you must create a thread."
32458 msgstr ""
32459
32460 #. type: textblock
32461 #: ../src/guestfs.pod:902
32462 msgid ""
32463 "Only use the handle from a single thread.  Either use the handle exclusively "
32464 "from one thread, or provide your own mutex so that two threads cannot issue "
32465 "calls on the same handle at the same time."
32466 msgstr ""
32467
32468 #. type: textblock
32469 #: ../src/guestfs.pod:906
32470 msgid ""
32471 "See the graphical program guestfs-browser for one possible architecture for "
32472 "multithreaded programs using libvirt and libguestfs."
32473 msgstr ""
32474
32475 #. type: =head2
32476 #: ../src/guestfs.pod:909
32477 msgid "PATH"
32478 msgstr ""
32479
32480 #. type: textblock
32481 #: ../src/guestfs.pod:911
32482 msgid ""
32483 "Libguestfs needs a supermin appliance, which it finds by looking along an "
32484 "internal path."
32485 msgstr ""
32486
32487 #. type: textblock
32488 #: ../src/guestfs.pod:914
32489 msgid ""
32490 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
32491 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
32492 msgstr ""
32493
32494 #. type: textblock
32495 #: ../src/guestfs.pod:917
32496 msgid ""
32497 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
32498 "to change the directories that libguestfs will search in.  The value is a "
32499 "colon-separated list of paths.  The current directory is I<not> searched "
32500 "unless the path contains an empty element or C<.>.  For example "
32501 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
32502 "then C</usr/lib/guestfs>."
32503 msgstr ""
32504
32505 #. type: =head2
32506 #: ../src/guestfs.pod:924
32507 msgid "QEMU WRAPPERS"
32508 msgstr ""
32509
32510 #. type: textblock
32511 #: ../src/guestfs.pod:926
32512 msgid ""
32513 "If you want to compile your own qemu, run qemu from a non-standard location, "
32514 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
32515 "around qemu."
32516 msgstr ""
32517
32518 #. type: textblock
32519 #: ../src/guestfs.pod:930
32520 msgid ""
32521 "There is one important rule to remember: you I<must C<exec qemu>> as the "
32522 "last command in the shell script (so that qemu replaces the shell and "
32523 "becomes the direct child of the libguestfs-using program).  If you don't do "
32524 "this, then the qemu process won't be cleaned up correctly."
32525 msgstr ""
32526
32527 #. type: textblock
32528 #: ../src/guestfs.pod:935
32529 msgid ""
32530 "Here is an example of a wrapper, where I have built my own copy of qemu from "
32531 "source:"
32532 msgstr ""
32533
32534 #. type: verbatim
32535 #: ../src/guestfs.pod:938
32536 #, no-wrap
32537 msgid ""
32538 " #!/bin/sh -\n"
32539 " qemudir=/home/rjones/d/qemu\n"
32540 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
32541 "\n"
32542 msgstr ""
32543
32544 #. type: textblock
32545 #: ../src/guestfs.pod:942
32546 msgid ""
32547 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
32548 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
32549 "example:"
32550 msgstr ""
32551
32552 #. type: verbatim
32553 #: ../src/guestfs.pod:946
32554 #, no-wrap
32555 msgid ""
32556 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
32557 "\n"
32558 msgstr ""
32559
32560 #. type: textblock
32561 #: ../src/guestfs.pod:948
32562 msgid ""
32563 "Note that libguestfs also calls qemu with the -help and -version options in "
32564 "order to determine features."
32565 msgstr ""
32566
32567 #. type: =head2
32568 #: ../src/guestfs.pod:951
32569 msgid "ATTACHING TO RUNNING DAEMONS"
32570 msgstr ""
32571
32572 #. type: textblock
32573 #: ../src/guestfs.pod:953
32574 msgid ""
32575 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
32576 "babies.  Use with caution."
32577 msgstr ""
32578
32579 #. type: textblock
32580 #: ../src/guestfs.pod:956
32581 msgid ""
32582 "I<Note (2):> This section explains how to attach to a running daemon from a "
32583 "low level perspective.  For most users, simply using virt tools such as "
32584 "L<guestfish(1)> with the I<--live> option will \"just work\"."
32585 msgstr ""
32586
32587 #. type: =head3
32588 #: ../src/guestfs.pod:960
32589 msgid "Using guestfs_set_attach_method"
32590 msgstr ""
32591
32592 #. type: textblock
32593 #: ../src/guestfs.pod:962
32594 msgid ""
32595 "By calling L</guestfs_set_attach_method> you can change how the library "
32596 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
32597 "ARCHITECTURE> for some background)."
32598 msgstr ""
32599
32600 #. type: textblock
32601 #: ../src/guestfs.pod:966
32602 msgid ""
32603 "The normal attach method is C<appliance>, where a small appliance is created "
32604 "containing the daemon, and then the library connects to this."
32605 msgstr ""
32606
32607 #. type: textblock
32608 #: ../src/guestfs.pod:969
32609 msgid ""
32610 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
32611 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
32612 "daemon over the Unix domain socket."
32613 msgstr ""
32614
32615 #. type: textblock
32616 #: ../src/guestfs.pod:973
32617 msgid ""
32618 "The normal use for this is to connect to a running virtual machine that "
32619 "contains a C<guestfsd> daemon, and send commands so you can read and write "
32620 "files inside the live virtual machine."
32621 msgstr ""
32622
32623 #. type: =head3
32624 #: ../src/guestfs.pod:977
32625 msgid "Using guestfs_add_domain with live flag"
32626 msgstr ""
32627
32628 #. type: textblock
32629 #: ../src/guestfs.pod:979
32630 msgid ""
32631 "L</guestfs_add_domain> provides some help for getting the correct attach "
32632 "method.  If you pass the C<live> option to this function, then (if the "
32633 "virtual machine is running) it will examine the libvirt XML looking for a "
32634 "virtio-serial channel to connect to:"
32635 msgstr ""
32636
32637 #. type: verbatim
32638 #: ../src/guestfs.pod:985
32639 #, no-wrap
32640 msgid ""
32641 " <domain>\n"
32642 "   ...\n"
32643 "   <devices>\n"
32644 "     ...\n"
32645 "     <channel type='unix'>\n"
32646 "       <source mode='bind' path='/path/to/socket'/>\n"
32647 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
32648 "     </channel>\n"
32649 "     ...\n"
32650 "   </devices>\n"
32651 " </domain>\n"
32652 "\n"
32653 msgstr ""
32654
32655 #. type: textblock
32656 #: ../src/guestfs.pod:997
32657 msgid ""
32658 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
32659 "method to C<unix:/path/to/socket>."
32660 msgstr ""
32661
32662 #. type: textblock
32663 #: ../src/guestfs.pod:1000
32664 msgid ""
32665 "Some of the libguestfs tools (including guestfish) support a I<--live> "
32666 "option which is passed through to L</guestfs_add_domain> thus allowing you "
32667 "to attach to and modify live virtual machines."
32668 msgstr ""
32669
32670 #. type: textblock
32671 #: ../src/guestfs.pod:1004
32672 msgid ""
32673 "The virtual machine needs to have been set up beforehand so that it has the "
32674 "virtio-serial channel and so that guestfsd is running inside it."
32675 msgstr ""
32676
32677 #. type: =head2
32678 #: ../src/guestfs.pod:1008
32679 msgid "ABI GUARANTEE"
32680 msgstr ""
32681
32682 #. type: textblock
32683 #: ../src/guestfs.pod:1010
32684 msgid ""
32685 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
32686 "actions as outlined in this section.  Although we will deprecate some "
32687 "actions, for example if they get replaced by newer calls, we will keep the "
32688 "old actions forever.  This allows you the developer to program in confidence "
32689 "against the libguestfs API."
32690 msgstr ""
32691
32692 #. type: =head2
32693 #: ../src/guestfs.pod:1016
32694 msgid "BLOCK DEVICE NAMING"
32695 msgstr ""
32696
32697 #. type: textblock
32698 #: ../src/guestfs.pod:1018
32699 msgid ""
32700 "In the kernel there is now quite a profusion of schemata for naming block "
32701 "devices (in this context, by I<block device> I mean a physical or virtual "
32702 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
32703 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
32704 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
32705 "for the old IDE driver (particularly for SATA devices) those devices also "
32706 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
32707 "paravirtualized drivers.  This has created several different naming systems, "
32708 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
32709 msgstr ""
32710
32711 #. type: textblock
32712 #: ../src/guestfs.pod:1030
32713 msgid ""
32714 "As discussed above, libguestfs uses a qemu appliance running an embedded "
32715 "Linux kernel to access block devices.  We can run a variety of appliances "
32716 "based on a variety of Linux kernels."
32717 msgstr ""
32718
32719 #. type: textblock
32720 #: ../src/guestfs.pod:1034
32721 msgid ""
32722 "This causes a problem for libguestfs because many API calls use device or "
32723 "partition names.  Working scripts and the recipe (example) scripts that we "
32724 "make available over the internet could fail if the naming scheme changes."
32725 msgstr ""
32726
32727 #. type: textblock
32728 #: ../src/guestfs.pod:1039
32729 msgid ""
32730 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
32731 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
32732 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
32733 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
32734 msgstr ""
32735
32736 #. type: textblock
32737 #: ../src/guestfs.pod:1045
32738 msgid ""
32739 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
32740 "L</guestfs_list_partitions> and similar calls return the true names of the "
32741 "devices and partitions as known to the appliance."
32742 msgstr ""
32743
32744 #. type: =head3
32745 #: ../src/guestfs.pod:1050
32746 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
32747 msgstr ""
32748
32749 #. type: textblock
32750 #: ../src/guestfs.pod:1052
32751 msgid ""
32752 "Usually this translation is transparent.  However in some (very rare)  cases "
32753 "you may need to know the exact algorithm.  Such cases include where you use "
32754 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
32755 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
32756 msgstr ""
32757
32758 #. type: textblock
32759 #: ../src/guestfs.pod:1058
32760 msgid ""
32761 "The algorithm is applied only to I<parameters> which are known to be either "
32762 "device or partition names.  Return values from functions such as L</"
32763 "guestfs_list_devices> are never changed."
32764 msgstr ""
32765
32766 #. type: textblock
32767 #: ../src/guestfs.pod:1066
32768 msgid "Is the string a parameter which is a device or partition name?"
32769 msgstr ""
32770
32771 #. type: textblock
32772 #: ../src/guestfs.pod:1070
32773 msgid "Does the string begin with C</dev/sd>?"
32774 msgstr ""
32775
32776 #. type: textblock
32777 #: ../src/guestfs.pod:1074
32778 msgid ""
32779 "Does the named device exist? If so, we use that device.  However if I<not> "
32780 "then we continue with this algorithm."
32781 msgstr ""
32782
32783 #. type: textblock
32784 #: ../src/guestfs.pod:1079
32785 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
32786 msgstr ""
32787
32788 #. type: textblock
32789 #: ../src/guestfs.pod:1081
32790 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
32791 msgstr ""
32792
32793 #. type: textblock
32794 #: ../src/guestfs.pod:1083
32795 msgid "If that named device exists, use it.  If not, continue."
32796 msgstr ""
32797
32798 #. type: textblock
32799 #: ../src/guestfs.pod:1087
32800 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
32801 msgstr ""
32802
32803 #. type: textblock
32804 #: ../src/guestfs.pod:1089
32805 msgid "If that named device exists, use it.  If not, return an error."
32806 msgstr ""
32807
32808 #. type: =head3
32809 #: ../src/guestfs.pod:1093
32810 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
32811 msgstr ""
32812
32813 #. type: textblock
32814 #: ../src/guestfs.pod:1095
32815 msgid ""
32816 "Although the standard naming scheme and automatic translation is useful for "
32817 "simple programs and guestfish scripts, for larger programs it is best not to "
32818 "rely on this mechanism."
32819 msgstr ""
32820
32821 #. type: textblock
32822 #: ../src/guestfs.pod:1099
32823 msgid ""
32824 "Where possible for maximum future portability programs using libguestfs "
32825 "should use these future-proof techniques:"
32826 msgstr ""
32827
32828 #. type: textblock
32829 #: ../src/guestfs.pod:1106
32830 msgid ""
32831 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
32832 "device names, and then use those names directly."
32833 msgstr ""
32834
32835 #. type: textblock
32836 #: ../src/guestfs.pod:1109
32837 msgid ""
32838 "Since those device names exist by definition, they will never be translated."
32839 msgstr ""
32840
32841 #. type: textblock
32842 #: ../src/guestfs.pod:1114
32843 msgid ""
32844 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
32845 "filesystem labels."
32846 msgstr ""
32847
32848 #. type: =head1
32849 #: ../src/guestfs.pod:1119
32850 msgid "SECURITY"
32851 msgstr ""
32852
32853 #. type: textblock
32854 #: ../src/guestfs.pod:1121
32855 msgid ""
32856 "This section discusses security implications of using libguestfs, "
32857 "particularly with untrusted or malicious guests or disk images."
32858 msgstr ""
32859
32860 #. type: =head2
32861 #: ../src/guestfs.pod:1124
32862 msgid "GENERAL SECURITY CONSIDERATIONS"
32863 msgstr ""
32864
32865 #. type: textblock
32866 #: ../src/guestfs.pod:1126
32867 msgid ""
32868 "Be careful with any files or data that you download from a guest (by "
32869 "\"download\" we mean not just the L</guestfs_download> command but any "
32870 "command that reads files, filenames, directories or anything else from a "
32871 "disk image).  An attacker could manipulate the data to fool your program "
32872 "into doing the wrong thing.  Consider cases such as:"
32873 msgstr ""
32874
32875 #. type: textblock
32876 #: ../src/guestfs.pod:1136
32877 msgid "the data (file etc) not being present"
32878 msgstr ""
32879
32880 #. type: textblock
32881 #: ../src/guestfs.pod:1140
32882 msgid "being present but empty"
32883 msgstr ""
32884
32885 #. type: textblock
32886 #: ../src/guestfs.pod:1144
32887 msgid "being much larger than normal"
32888 msgstr ""
32889
32890 #. type: textblock
32891 #: ../src/guestfs.pod:1148
32892 msgid "containing arbitrary 8 bit data"
32893 msgstr ""
32894
32895 #. type: textblock
32896 #: ../src/guestfs.pod:1152
32897 msgid "being in an unexpected character encoding"
32898 msgstr ""
32899
32900 #. type: textblock
32901 #: ../src/guestfs.pod:1156
32902 msgid "containing homoglyphs."
32903 msgstr ""
32904
32905 #. type: =head2
32906 #: ../src/guestfs.pod:1160
32907 msgid "SECURITY OF MOUNTING FILESYSTEMS"
32908 msgstr ""
32909
32910 #. type: textblock
32911 #: ../src/guestfs.pod:1162
32912 msgid ""
32913 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
32914 "(VFS) module can sometimes be escalated into exploits by deliberately "
32915 "creating a malicious, malformed filesystem.  These exploits are very severe "
32916 "for two reasons.  Firstly there are very many filesystem drivers in the "
32917 "kernel, and many of them are infrequently used and not much developer "
32918 "attention has been paid to the code.  Linux userspace helps potential "
32919 "crackers by detecting the filesystem type and automatically choosing the "
32920 "right VFS driver, even if that filesystem type is obscure or unexpected for "
32921 "the administrator.  Secondly, a kernel-level exploit is like a local root "
32922 "exploit (worse in some ways), giving immediate and total access to the "
32923 "system right down to the hardware level."
32924 msgstr ""
32925
32926 #. type: textblock
32927 #: ../src/guestfs.pod:1175
32928 msgid ""
32929 "That explains why you should never mount a filesystem from an untrusted "
32930 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
32931 "inside a qemu virtual machine, usually running as a non-root user.  The "
32932 "attacker would need to write a filesystem which first exploited the kernel, "
32933 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
32934 "the libguestfs protocol, and finally to be as serious as the host kernel "
32935 "exploit it would need to escalate its privileges to root.  This multi-step "
32936 "escalation, performed by a static piece of data, is thought to be extremely "
32937 "hard to do, although we never say 'never' about security issues."
32938 msgstr ""
32939
32940 #. type: textblock
32941 #: ../src/guestfs.pod:1186
32942 msgid ""
32943 "In any case callers can reduce the attack surface by forcing the filesystem "
32944 "type when mounting (use L</guestfs_mount_vfs>)."
32945 msgstr ""
32946
32947 #. type: =head2
32948 #: ../src/guestfs.pod:1189
32949 msgid "PROTOCOL SECURITY"
32950 msgstr ""
32951
32952 #. type: textblock
32953 #: ../src/guestfs.pod:1191
32954 msgid ""
32955 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
32956 "defined upper message size.  However a program that uses libguestfs must "
32957 "also take care - for example you can write a program that downloads a binary "
32958 "from a disk image and executes it locally, and no amount of protocol "
32959 "security will save you from the consequences."
32960 msgstr ""
32961
32962 #. type: =head2
32963 #: ../src/guestfs.pod:1197
32964 msgid "INSPECTION SECURITY"
32965 msgstr ""
32966
32967 #. type: textblock
32968 #: ../src/guestfs.pod:1199
32969 msgid ""
32970 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
32971 "directly from the guest, and these could contain any 8 bit data.  Callers "
32972 "should be careful to escape these before printing them to a structured file "
32973 "(for example, use HTML escaping if creating a web page)."
32974 msgstr ""
32975
32976 #. type: textblock
32977 #: ../src/guestfs.pod:1205
32978 msgid ""
32979 "Guest configuration may be altered in unusual ways by the administrator of "
32980 "the virtual machine, and may not reflect reality (particularly for untrusted "
32981 "or actively malicious guests).  For example we parse the hostname from "
32982 "configuration files like C</etc/sysconfig/network> that we find in the "
32983 "guest, but the guest administrator can easily manipulate these files to "
32984 "provide the wrong hostname."
32985 msgstr ""
32986
32987 #. type: textblock
32988 #: ../src/guestfs.pod:1213
32989 msgid ""
32990 "The inspection API parses guest configuration using two external libraries: "
32991 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
32992 "designed to be robust in the face of malicious data, although denial of "
32993 "service attacks are still possible, for example with oversized configuration "
32994 "files."
32995 msgstr ""
32996
32997 #. type: =head2
32998 #: ../src/guestfs.pod:1219
32999 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
33000 msgstr ""
33001
33002 #. type: textblock
33003 #: ../src/guestfs.pod:1221
33004 msgid ""
33005 "Be very cautious about running commands from the guest.  By running a "
33006 "command in the guest, you are giving CPU time to a binary that you do not "
33007 "control, under the same user account as the library, albeit wrapped in qemu "
33008 "virtualization.  More information and alternatives can be found in the "
33009 "section L</RUNNING COMMANDS>."
33010 msgstr ""
33011
33012 #. type: =head2
33013 #: ../src/guestfs.pod:1227
33014 msgid "CVE-2010-3851"
33015 msgstr ""
33016
33017 #. type: textblock
33018 #: ../src/guestfs.pod:1229
33019 msgid "https://bugzilla.redhat.com/642934"
33020 msgstr ""
33021
33022 #. type: textblock
33023 #: ../src/guestfs.pod:1231
33024 msgid ""
33025 "This security bug concerns the automatic disk format detection that qemu "
33026 "does on disk images."
33027 msgstr ""
33028
33029 #. type: textblock
33030 #: ../src/guestfs.pod:1234
33031 msgid ""
33032 "A raw disk image is just the raw bytes, there is no header.  Other disk "
33033 "images like qcow2 contain a special header.  Qemu deals with this by looking "
33034 "for one of the known headers, and if none is found then assuming the disk "
33035 "image must be raw."
33036 msgstr ""
33037
33038 #. type: textblock
33039 #: ../src/guestfs.pod:1239
33040 msgid ""
33041 "This allows a guest which has been given a raw disk image to write some "
33042 "other header.  At next boot (or when the disk image is accessed by "
33043 "libguestfs) qemu would do autodetection and think the disk image format was, "
33044 "say, qcow2 based on the header written by the guest."
33045 msgstr ""
33046
33047 #. type: textblock
33048 #: ../src/guestfs.pod:1244
33049 msgid ""
33050 "This in itself would not be a problem, but qcow2 offers many features, one "
33051 "of which is to allow a disk image to refer to another image (called the "
33052 "\"backing disk\").  It does this by placing the path to the backing disk "
33053 "into the qcow2 header.  This path is not validated and could point to any "
33054 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
33055 "\"holes\" in the qcow2 disk image, which of course is completely under the "
33056 "control of the attacker."
33057 msgstr ""
33058
33059 #. type: textblock
33060 #: ../src/guestfs.pod:1252
33061 msgid ""
33062 "In libguestfs this is rather hard to exploit except under two circumstances:"
33063 msgstr ""
33064
33065 #. type: textblock
33066 #: ../src/guestfs.pod:1259
33067 msgid "You have enabled the network or have opened the disk in write mode."
33068 msgstr ""
33069
33070 #. type: textblock
33071 #: ../src/guestfs.pod:1263
33072 msgid ""
33073 "You are also running untrusted code from the guest (see L</RUNNING "
33074 "COMMANDS>)."
33075 msgstr ""
33076
33077 #. type: textblock
33078 #: ../src/guestfs.pod:1268
33079 msgid ""
33080 "The way to avoid this is to specify the expected disk format when adding "
33081 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
33082 "should always do this if the disk is raw format, and it's a good idea for "
33083 "other cases too."
33084 msgstr ""
33085
33086 #. type: textblock
33087 #: ../src/guestfs.pod:1273
33088 msgid ""
33089 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
33090 "format is fetched from libvirt and passed through."
33091 msgstr ""
33092
33093 #. type: textblock
33094 #: ../src/guestfs.pod:1276
33095 msgid ""
33096 "For libguestfs tools, use the I<--format> command line parameter as "
33097 "appropriate."
33098 msgstr ""
33099
33100 #. type: =head1
33101 #: ../src/guestfs.pod:1279
33102 msgid "CONNECTION MANAGEMENT"
33103 msgstr ""
33104
33105 #. type: =head2
33106 #: ../src/guestfs.pod:1281
33107 msgid "guestfs_h *"
33108 msgstr ""
33109
33110 #. type: textblock
33111 #: ../src/guestfs.pod:1283
33112 msgid ""
33113 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
33114 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
33115 "handle and release all resources used."
33116 msgstr ""
33117
33118 #. type: textblock
33119 #: ../src/guestfs.pod:1287
33120 msgid ""
33121 "For information on using multiple handles and threads, see the section L</"
33122 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
33123 msgstr ""
33124
33125 #. type: =head2
33126 #: ../src/guestfs.pod:1290
33127 msgid "guestfs_create"
33128 msgstr ""
33129
33130 #. type: verbatim
33131 #: ../src/guestfs.pod:1292
33132 #, no-wrap
33133 msgid ""
33134 " guestfs_h *guestfs_create (void);\n"
33135 "\n"
33136 msgstr ""
33137
33138 #. type: textblock
33139 #: ../src/guestfs.pod:1294
33140 msgid "Create a connection handle."
33141 msgstr ""
33142
33143 #. type: textblock
33144 #: ../src/guestfs.pod:1296
33145 msgid ""
33146 "On success this returns a non-NULL pointer to a handle.  On error it returns "
33147 "NULL."
33148 msgstr ""
33149
33150 #. type: textblock
33151 #: ../src/guestfs.pod:1299
33152 msgid ""
33153 "You have to \"configure\" the handle after creating it.  This includes "
33154 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
33155 "handle at least once."
33156 msgstr ""
33157
33158 #. type: textblock
33159 #: ../src/guestfs.pod:1303
33160 msgid "After configuring the handle, you have to call L</guestfs_launch>."
33161 msgstr ""
33162
33163 #. type: textblock
33164 #: ../src/guestfs.pod:1305
33165 msgid ""
33166 "You may also want to configure error handling for the handle.  See the L</"
33167 "ERROR HANDLING> section below."
33168 msgstr ""
33169
33170 #. type: =head2
33171 #: ../src/guestfs.pod:1308
33172 msgid "guestfs_close"
33173 msgstr ""
33174
33175 #. type: verbatim
33176 #: ../src/guestfs.pod:1310
33177 #, no-wrap
33178 msgid ""
33179 " void guestfs_close (guestfs_h *g);\n"
33180 "\n"
33181 msgstr ""
33182
33183 #. type: textblock
33184 #: ../src/guestfs.pod:1312
33185 msgid "This closes the connection handle and frees up all resources used."
33186 msgstr ""
33187
33188 #. type: textblock
33189 #: ../src/guestfs.pod:1314
33190 msgid ""
33191 "If autosync was set on the handle and the handle was launched, then this "
33192 "implicitly calls various functions to unmount filesystems and sync the "
33193 "disk.  See L</guestfs_set_autosync> for more details."
33194 msgstr ""
33195
33196 #. type: textblock
33197 #: ../src/guestfs.pod:1318
33198 msgid "If a close callback was set on the handle, then it is called."
33199 msgstr ""
33200
33201 #. type: =head1
33202 #: ../src/guestfs.pod:1320
33203 msgid "ERROR HANDLING"
33204 msgstr ""
33205
33206 #. type: textblock
33207 #: ../src/guestfs.pod:1322
33208 msgid ""
33209 "API functions can return errors.  For example, almost all functions that "
33210 "return C<int> will return C<-1> to indicate an error."
33211 msgstr ""
33212
33213 #. type: textblock
33214 #: ../src/guestfs.pod:1325
33215 msgid ""
33216 "Additional information is available for errors: an error message string and "
33217 "optionally an error number (errno) if the thing that failed was a system "
33218 "call."
33219 msgstr ""
33220
33221 #. type: textblock
33222 #: ../src/guestfs.pod:1329
33223 msgid ""
33224 "You can get at the additional information about the last error on the handle "
33225 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
33226 "up an error handler with L</guestfs_set_error_handler>."
33227 msgstr ""
33228
33229 #. type: textblock
33230 #: ../src/guestfs.pod:1334
33231 msgid ""
33232 "When the handle is created, a default error handler is installed which "
33233 "prints the error message string to C<stderr>.  For small short-running "
33234 "command line programs it is sufficient to do:"
33235 msgstr ""
33236
33237 #. type: verbatim
33238 #: ../src/guestfs.pod:1338
33239 #, no-wrap
33240 msgid ""
33241 " if (guestfs_launch (g) == -1)\n"
33242 "   exit (EXIT_FAILURE);\n"
33243 "\n"
33244 msgstr ""
33245
33246 #. type: textblock
33247 #: ../src/guestfs.pod:1341
33248 msgid ""
33249 "since the default error handler will ensure that an error message has been "
33250 "printed to C<stderr> before the program exits."
33251 msgstr ""
33252
33253 #. type: textblock
33254 #: ../src/guestfs.pod:1344
33255 msgid ""
33256 "For other programs the caller will almost certainly want to install an "
33257 "alternate error handler or do error handling in-line like this:"
33258 msgstr ""
33259
33260 #. type: verbatim
33261 #: ../src/guestfs.pod:1347
33262 #, no-wrap
33263 msgid ""
33264 " g = guestfs_create ();\n"
33265 " \n"
33266 msgstr ""
33267
33268 #. type: verbatim
33269 #: ../src/guestfs.pod:1349
33270 #, no-wrap
33271 msgid ""
33272 " /* This disables the default behaviour of printing errors\n"
33273 "    on stderr. */\n"
33274 " guestfs_set_error_handler (g, NULL, NULL);\n"
33275 " \n"
33276 msgstr ""
33277
33278 #. type: verbatim
33279 #: ../src/guestfs.pod:1353
33280 #, no-wrap
33281 msgid ""
33282 " if (guestfs_launch (g) == -1) {\n"
33283 "   /* Examine the error message and print it etc. */\n"
33284 "   char *msg = guestfs_last_error (g);\n"
33285 "   int errnum = guestfs_last_errno (g);\n"
33286 "   fprintf (stderr, \"%s\\n\", msg);\n"
33287 "   /* ... */\n"
33288 "  }\n"
33289 "\n"
33290 msgstr ""
33291
33292 #. type: textblock
33293 #: ../src/guestfs.pod:1361
33294 msgid ""
33295 "Out of memory errors are handled differently.  The default action is to call "
33296 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
33297 "guestfs_set_out_of_memory_handler>."
33298 msgstr ""
33299
33300 #. type: textblock
33301 #: ../src/guestfs.pod:1365
33302 msgid ""
33303 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
33304 "because there is no handle if this happens there is no way to get additional "
33305 "error information.  However L</guestfs_create> is supposed to be a "
33306 "lightweight operation which can only fail because of insufficient memory (it "
33307 "returns NULL in this case)."
33308 msgstr ""
33309
33310 #. type: =head2
33311 #: ../src/guestfs.pod:1371
33312 msgid "guestfs_last_error"
33313 msgstr ""
33314
33315 #. type: verbatim
33316 #: ../src/guestfs.pod:1373
33317 #, no-wrap
33318 msgid ""
33319 " const char *guestfs_last_error (guestfs_h *g);\n"
33320 "\n"
33321 msgstr ""
33322
33323 #. type: textblock
33324 #: ../src/guestfs.pod:1375
33325 msgid ""
33326 "This returns the last error message that happened on C<g>.  If there has not "
33327 "been an error since the handle was created, then this returns C<NULL>."
33328 msgstr ""
33329
33330 #. type: textblock
33331 #: ../src/guestfs.pod:1379
33332 msgid ""
33333 "The lifetime of the returned string is until the next error occurs, or L</"
33334 "guestfs_close> is called."
33335 msgstr ""
33336
33337 #. type: =head2
33338 #: ../src/guestfs.pod:1382
33339 msgid "guestfs_last_errno"
33340 msgstr ""
33341
33342 #. type: verbatim
33343 #: ../src/guestfs.pod:1384
33344 #, no-wrap
33345 msgid ""
33346 " int guestfs_last_errno (guestfs_h *g);\n"
33347 "\n"
33348 msgstr ""
33349
33350 #. type: textblock
33351 #: ../src/guestfs.pod:1386
33352 msgid "This returns the last error number (errno) that happened on C<g>."
33353 msgstr ""
33354
33355 #. type: textblock
33356 #: ../src/guestfs.pod:1388
33357 msgid "If successful, an errno integer not equal to zero is returned."
33358 msgstr ""
33359
33360 #. type: textblock
33361 #: ../src/guestfs.pod:1390
33362 msgid ""
33363 "If no error, this returns 0.  This call can return 0 in three situations:"
33364 msgstr ""
33365
33366 #. type: textblock
33367 #: ../src/guestfs.pod:1397
33368 msgid "There has not been any error on the handle."
33369 msgstr ""
33370
33371 #. type: textblock
33372 #: ../src/guestfs.pod:1401
33373 msgid ""
33374 "There has been an error but the errno was meaningless.  This corresponds to "
33375 "the case where the error did not come from a failed system call, but for "
33376 "some other reason."
33377 msgstr ""
33378
33379 #. type: textblock
33380 #: ../src/guestfs.pod:1407
33381 msgid ""
33382 "There was an error from a failed system call, but for some reason the errno "
33383 "was not captured and returned.  This usually indicates a bug in libguestfs."
33384 msgstr ""
33385
33386 #. type: textblock
33387 #: ../src/guestfs.pod:1413
33388 msgid ""
33389 "Libguestfs tries to convert the errno from inside the applicance into a "
33390 "corresponding errno for the caller (not entirely trivial: the appliance "
33391 "might be running a completely different operating system from the library "
33392 "and error numbers are not standardized across Un*xen).  If this could not be "
33393 "done, then the error is translated to C<EINVAL>.  In practice this should "
33394 "only happen in very rare circumstances."
33395 msgstr ""
33396
33397 #. type: =head2
33398 #: ../src/guestfs.pod:1421
33399 msgid "guestfs_set_error_handler"
33400 msgstr ""
33401
33402 #. type: verbatim
33403 #: ../src/guestfs.pod:1423
33404 #, no-wrap
33405 msgid ""
33406 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
33407 "                                           void *opaque,\n"
33408 "                                           const char *msg);\n"
33409 " void guestfs_set_error_handler (guestfs_h *g,\n"
33410 "                                 guestfs_error_handler_cb cb,\n"
33411 "                                 void *opaque);\n"
33412 "\n"
33413 msgstr ""
33414
33415 #. type: textblock
33416 #: ../src/guestfs.pod:1430
33417 msgid ""
33418 "The callback C<cb> will be called if there is an error.  The parameters "
33419 "passed to the callback are an opaque data pointer and the error message "
33420 "string."
33421 msgstr ""
33422
33423 #. type: textblock
33424 #: ../src/guestfs.pod:1434
33425 msgid ""
33426 "C<errno> is not passed to the callback.  To get that the callback must call "
33427 "L</guestfs_last_errno>."
33428 msgstr ""
33429
33430 #. type: textblock
33431 #: ../src/guestfs.pod:1437
33432 msgid ""
33433 "Note that the message string C<msg> is freed as soon as the callback "
33434 "function returns, so if you want to stash it somewhere you must make your "
33435 "own copy."
33436 msgstr ""
33437
33438 #. type: textblock
33439 #: ../src/guestfs.pod:1441
33440 msgid "The default handler prints messages on C<stderr>."
33441 msgstr ""
33442
33443 #. type: textblock
33444 #: ../src/guestfs.pod:1443
33445 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
33446 msgstr ""
33447
33448 #. type: =head2
33449 #: ../src/guestfs.pod:1445
33450 msgid "guestfs_get_error_handler"
33451 msgstr ""
33452
33453 #. type: verbatim
33454 #: ../src/guestfs.pod:1447
33455 #, no-wrap
33456 msgid ""
33457 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
33458 "                                                     void **opaque_rtn);\n"
33459 "\n"
33460 msgstr ""
33461
33462 #. type: textblock
33463 #: ../src/guestfs.pod:1450
33464 msgid "Returns the current error handler callback."
33465 msgstr ""
33466
33467 #. type: =head2
33468 #: ../src/guestfs.pod:1452
33469 msgid "guestfs_set_out_of_memory_handler"
33470 msgstr ""
33471
33472 #. type: verbatim
33473 #: ../src/guestfs.pod:1454
33474 #, no-wrap
33475 msgid ""
33476 " typedef void (*guestfs_abort_cb) (void);\n"
33477 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
33478 "                                        guestfs_abort_cb);\n"
33479 "\n"
33480 msgstr ""
33481
33482 #. type: textblock
33483 #: ../src/guestfs.pod:1458
33484 msgid ""
33485 "The callback C<cb> will be called if there is an out of memory situation.  "
33486 "I<Note this callback must not return>."
33487 msgstr ""
33488
33489 #. type: textblock
33490 #: ../src/guestfs.pod:1461
33491 msgid "The default is to call L<abort(3)>."
33492 msgstr ""
33493
33494 #. type: textblock
33495 #: ../src/guestfs.pod:1463
33496 msgid ""
33497 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
33498 msgstr ""
33499
33500 #. type: =head2
33501 #: ../src/guestfs.pod:1466
33502 msgid "guestfs_get_out_of_memory_handler"
33503 msgstr ""
33504
33505 #. type: verbatim
33506 #: ../src/guestfs.pod:1468
33507 #, no-wrap
33508 msgid ""
33509 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
33510 "\n"
33511 msgstr ""
33512
33513 #. type: textblock
33514 #: ../src/guestfs.pod:1470
33515 msgid "This returns the current out of memory handler."
33516 msgstr ""
33517
33518 #. type: =head1
33519 #: ../src/guestfs.pod:1472
33520 msgid "API CALLS"
33521 msgstr ""
33522
33523 #. type: =head1
33524 #: ../src/guestfs.pod:1476
33525 msgid "STRUCTURES"
33526 msgstr ""
33527
33528 #. type: textblock
33529 #: ../src/guestfs.pod:1478
33530 msgid "@STRUCTS@"
33531 msgstr ""
33532
33533 #. type: =head1
33534 #: ../src/guestfs.pod:1480
33535 msgid "AVAILABILITY"
33536 msgstr ""
33537
33538 #. type: =head2
33539 #: ../src/guestfs.pod:1482
33540 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
33541 msgstr ""
33542
33543 #. type: textblock
33544 #: ../src/guestfs.pod:1484
33545 msgid ""
33546 "Using L</guestfs_available> you can test availability of the following "
33547 "groups of functions.  This test queries the appliance to see if the "
33548 "appliance you are currently using supports the functionality."
33549 msgstr ""
33550
33551 #. type: textblock
33552 #: ../src/guestfs.pod:1489
33553 msgid "@AVAILABILITY@"
33554 msgstr ""
33555
33556 #. type: =head2
33557 #: ../src/guestfs.pod:1491
33558 msgid "GUESTFISH supported COMMAND"
33559 msgstr ""
33560
33561 #. type: textblock
33562 #: ../src/guestfs.pod:1493
33563 msgid ""
33564 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
33565 "prints out the available groups and whether they are supported by this build "
33566 "of libguestfs.  Note however that you have to do C<run> first."
33567 msgstr ""
33568
33569 #. type: =head2
33570 #: ../src/guestfs.pod:1498
33571 msgid "SINGLE CALLS AT COMPILE TIME"
33572 msgstr ""
33573
33574 #. type: textblock
33575 #: ../src/guestfs.pod:1500
33576 msgid ""
33577 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
33578 "function, such as:"
33579 msgstr ""
33580
33581 #. type: verbatim
33582 #: ../src/guestfs.pod:1503
33583 #, no-wrap
33584 msgid ""
33585 " #define LIBGUESTFS_HAVE_DD 1\n"
33586 "\n"
33587 msgstr ""
33588
33589 #. type: textblock
33590 #: ../src/guestfs.pod:1505
33591 msgid "if L</guestfs_dd> is available."
33592 msgstr ""
33593
33594 #. type: textblock
33595 #: ../src/guestfs.pod:1507
33596 msgid ""
33597 "Before version 1.5.8, if you needed to test whether a single libguestfs "
33598 "function is available at compile time, we recommended using build tools such "
33599 "as autoconf or cmake.  For example in autotools you could use:"
33600 msgstr ""
33601
33602 #. type: verbatim
33603 #: ../src/guestfs.pod:1512
33604 #, no-wrap
33605 msgid ""
33606 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
33607 " AC_CHECK_FUNCS([guestfs_dd])\n"
33608 "\n"
33609 msgstr ""
33610
33611 #. type: textblock
33612 #: ../src/guestfs.pod:1515
33613 msgid ""
33614 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
33615 "in your program."
33616 msgstr ""
33617
33618 #. type: =head2
33619 #: ../src/guestfs.pod:1518
33620 msgid "SINGLE CALLS AT RUN TIME"
33621 msgstr ""
33622
33623 #. type: textblock
33624 #: ../src/guestfs.pod:1520
33625 msgid ""
33626 "Testing at compile time doesn't guarantee that a function really exists in "
33627 "the library.  The reason is that you might be dynamically linked against a "
33628 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
33629 "This situation unfortunately results in a segmentation fault, which is a "
33630 "shortcoming of the C dynamic linking system itself."
33631 msgstr ""
33632
33633 #. type: textblock
33634 #: ../src/guestfs.pod:1527
33635 msgid ""
33636 "You can use L<dlopen(3)> to test if a function is available at run time, as "
33637 "in this example program (note that you still need the compile time check as "
33638 "well):"
33639 msgstr ""
33640
33641 #. type: verbatim
33642 #: ../src/guestfs.pod:1531
33643 #, no-wrap
33644 msgid ""
33645 " #include <stdio.h>\n"
33646 " #include <stdlib.h>\n"
33647 " #include <unistd.h>\n"
33648 " #include <dlfcn.h>\n"
33649 " #include <guestfs.h>\n"
33650 " \n"
33651 msgstr ""
33652
33653 #. type: verbatim
33654 #: ../src/guestfs.pod:1537
33655 #, no-wrap
33656 msgid ""
33657 " main ()\n"
33658 " {\n"
33659 " #ifdef LIBGUESTFS_HAVE_DD\n"
33660 "   void *dl;\n"
33661 "   int has_function;\n"
33662 " \n"
33663 msgstr ""
33664
33665 #. type: verbatim
33666 #: ../src/guestfs.pod:1543
33667 #, no-wrap
33668 msgid ""
33669 "   /* Test if the function guestfs_dd is really available. */\n"
33670 "   dl = dlopen (NULL, RTLD_LAZY);\n"
33671 "   if (!dl) {\n"
33672 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
33673 "     exit (EXIT_FAILURE);\n"
33674 "   }\n"
33675 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
33676 "   dlclose (dl);\n"
33677 " \n"
33678 msgstr ""
33679
33680 #. type: verbatim
33681 #: ../src/guestfs.pod:1552
33682 #, no-wrap
33683 msgid ""
33684 "   if (!has_function)\n"
33685 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
33686 "   else {\n"
33687 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
33688 "     /* Now it's safe to call\n"
33689 "     guestfs_dd (g, \"foo\", \"bar\");\n"
33690 "     */\n"
33691 "   }\n"
33692 " #else\n"
33693 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
33694 " #endif\n"
33695 "  }\n"
33696 "\n"
33697 msgstr ""
33698
33699 #. type: textblock
33700 #: ../src/guestfs.pod:1565
33701 msgid ""
33702 "You may think the above is an awful lot of hassle, and it is.  There are "
33703 "other ways outside of the C linking system to ensure that this kind of "
33704 "incompatibility never arises, such as using package versioning:"
33705 msgstr ""
33706
33707 #. type: verbatim
33708 #: ../src/guestfs.pod:1570
33709 #, no-wrap
33710 msgid ""
33711 " Requires: libguestfs >= 1.0.80\n"
33712 "\n"
33713 msgstr ""
33714
33715 #. type: =head1
33716 #: ../src/guestfs.pod:1572
33717 msgid "CALLS WITH OPTIONAL ARGUMENTS"
33718 msgstr ""
33719
33720 #. type: textblock
33721 #: ../src/guestfs.pod:1574
33722 msgid ""
33723 "A recent feature of the API is the introduction of calls which take optional "
33724 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
33725 "takes variable arguments (ie. C<...>), as in this example:"
33726 msgstr ""
33727
33728 #. type: verbatim
33729 #: ../src/guestfs.pod:1579
33730 #, no-wrap
33731 msgid ""
33732 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
33733 "\n"
33734 msgstr ""
33735
33736 #. type: textblock
33737 #: ../src/guestfs.pod:1581
33738 msgid ""
33739 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
33740 "call with no optional arguments specified:"
33741 msgstr ""
33742
33743 #. type: verbatim
33744 #: ../src/guestfs.pod:1584
33745 #, no-wrap
33746 msgid ""
33747 " guestfs_add_drive_opts (g, filename, -1);\n"
33748 "\n"
33749 msgstr ""
33750
33751 #. type: textblock
33752 #: ../src/guestfs.pod:1586
33753 msgid "With a single optional argument:"
33754 msgstr ""
33755
33756 #. type: verbatim
33757 #: ../src/guestfs.pod:1588
33758 #, no-wrap
33759 msgid ""
33760 " guestfs_add_drive_opts (g, filename,\n"
33761 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33762 "                         -1);\n"
33763 "\n"
33764 msgstr ""
33765
33766 #. type: textblock
33767 #: ../src/guestfs.pod:1592
33768 msgid "With two:"
33769 msgstr ""
33770
33771 #. type: verbatim
33772 #: ../src/guestfs.pod:1594
33773 #, no-wrap
33774 msgid ""
33775 " guestfs_add_drive_opts (g, filename,\n"
33776 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33777 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33778 "                         -1);\n"
33779 "\n"
33780 msgstr ""
33781
33782 #. type: textblock
33783 #: ../src/guestfs.pod:1599
33784 msgid ""
33785 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
33786 "happen!"
33787 msgstr ""
33788
33789 #. type: =head2
33790 #: ../src/guestfs.pod:1602
33791 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
33792 msgstr ""
33793
33794 #. type: textblock
33795 #: ../src/guestfs.pod:1604
33796 msgid ""
33797 "The second variant has the same name with the suffix C<_va>, which works the "
33798 "same way but takes a C<va_list>.  See the C manual for details.  For the "
33799 "example function, this is declared:"
33800 msgstr ""
33801
33802 #. type: verbatim
33803 #: ../src/guestfs.pod:1608
33804 #, no-wrap
33805 msgid ""
33806 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
33807 "                                va_list args);\n"
33808 "\n"
33809 msgstr ""
33810
33811 #. type: =head2
33812 #: ../src/guestfs.pod:1611
33813 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
33814 msgstr ""
33815
33816 #. type: textblock
33817 #: ../src/guestfs.pod:1613
33818 msgid ""
33819 "The third variant is useful where you need to construct these calls.  You "
33820 "pass in a structure where you fill in the optional fields.  The structure "
33821 "has a bitmask as the first element which you must set to indicate which "
33822 "fields you have filled in.  For our example function the structure and call "
33823 "are declared:"
33824 msgstr ""
33825
33826 #. type: verbatim
33827 #: ../src/guestfs.pod:1619
33828 #, no-wrap
33829 msgid ""
33830 " struct guestfs_add_drive_opts_argv {\n"
33831 "   uint64_t bitmask;\n"
33832 "   int readonly;\n"
33833 "   const char *format;\n"
33834 "   /* ... */\n"
33835 " };\n"
33836 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
33837 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
33838 "\n"
33839 msgstr ""
33840
33841 #. type: textblock
33842 #: ../src/guestfs.pod:1628
33843 msgid "You could call it like this:"
33844 msgstr ""
33845
33846 #. type: verbatim
33847 #: ../src/guestfs.pod:1630
33848 #, no-wrap
33849 msgid ""
33850 " struct guestfs_add_drive_opts_argv optargs = {\n"
33851 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
33852 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
33853 "   .readonly = 1,\n"
33854 "   .format = \"qcow2\"\n"
33855 " };\n"
33856 " \n"
33857 msgstr ""
33858
33859 #. type: verbatim
33860 #: ../src/guestfs.pod:1637
33861 #, no-wrap
33862 msgid ""
33863 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
33864 "\n"
33865 msgstr ""
33866
33867 #. type: textblock
33868 #: ../src/guestfs.pod:1645
33869 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
33870 msgstr ""
33871
33872 #. type: textblock
33873 #: ../src/guestfs.pod:1650
33874 msgid "You do not need to fill in all fields of the structure."
33875 msgstr ""
33876
33877 #. type: textblock
33878 #: ../src/guestfs.pod:1654
33879 msgid ""
33880 "There must be a one-to-one correspondence between fields of the structure "
33881 "that are filled in, and bits set in the bitmask."
33882 msgstr ""
33883
33884 #. type: =head2
33885 #: ../src/guestfs.pod:1659
33886 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
33887 msgstr ""
33888
33889 #. type: textblock
33890 #: ../src/guestfs.pod:1661
33891 msgid ""
33892 "In other languages, optional arguments are expressed in the way that is "
33893 "natural for that language.  We refer you to the language-specific "
33894 "documentation for more details on that."
33895 msgstr ""
33896
33897 #. type: textblock
33898 #: ../src/guestfs.pod:1665
33899 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
33900 msgstr ""
33901
33902 #. type: =head2
33903 #: ../src/guestfs.pod:1667
33904 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
33905 msgstr ""
33906
33907 #. type: textblock
33908 #: ../src/guestfs.pod:1669
33909 msgid ""
33910 "B<Note:> This section documents the generic event mechanism introduced in "
33911 "libguestfs 1.10, which you should use in new code if possible.  The old "
33912 "functions C<guestfs_set_log_message_callback>, "
33913 "C<guestfs_set_subprocess_quit_callback>, "
33914 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
33915 "C<guestfs_set_progress_callback> are no longer documented in this manual "
33916 "page.  Because of the ABI guarantee, the old functions continue to work."
33917 msgstr ""
33918
33919 #. type: textblock
33920 #: ../src/guestfs.pod:1678
33921 msgid ""
33922 "Handles generate events when certain things happen, such as log messages "
33923 "being generated, progress messages during long-running operations, or the "
33924 "handle being closed.  The API calls described below let you register a "
33925 "callback to be called when events happen.  You can register multiple "
33926 "callbacks (for the same, different or overlapping sets of events), and "
33927 "individually remove callbacks.  If callbacks are not removed, then they "
33928 "remain in force until the handle is closed."
33929 msgstr ""
33930
33931 #. type: textblock
33932 #: ../src/guestfs.pod:1686
33933 msgid ""
33934 "In the current implementation, events are only generated synchronously: that "
33935 "means that events (and hence callbacks) can only happen while you are in the "
33936 "middle of making another libguestfs call.  The callback is called in the "
33937 "same thread."
33938 msgstr ""
33939
33940 #. type: textblock
33941 #: ../src/guestfs.pod:1691
33942 msgid ""
33943 "Events may contain a payload, usually nothing (void), an array of 64 bit "
33944 "unsigned integers, or a message buffer.  Payloads are discussed later on."
33945 msgstr ""
33946
33947 #. type: =head3
33948 #: ../src/guestfs.pod:1695
33949 msgid "CLASSES OF EVENTS"
33950 msgstr ""
33951
33952 #. type: =item
33953 #: ../src/guestfs.pod:1699
33954 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
33955 msgstr ""
33956
33957 #. type: textblock
33958 #: ../src/guestfs.pod:1702
33959 msgid ""
33960 "The callback function will be called while the handle is being closed "
33961 "(synchronously from L</guestfs_close>)."
33962 msgstr ""
33963
33964 #. type: textblock
33965 #: ../src/guestfs.pod:1705
33966 msgid ""
33967 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
33968 "handles that are open when the program exits.  This means that this callback "
33969 "might be called indirectly from L<exit(3)>, which can cause unexpected "
33970 "problems in higher-level languages (eg. if your HLL interpreter has already "
33971 "been cleaned up by the time this is called, and if your callback then jumps "
33972 "into some HLL function)."
33973 msgstr ""
33974
33975 #. type: textblock
33976 #: ../src/guestfs.pod:1712
33977 msgid ""
33978 "If no callback is registered: the handle is closed without any callback "
33979 "being invoked."
33980 msgstr ""
33981
33982 #. type: =item
33983 #: ../src/guestfs.pod:1715
33984 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
33985 msgstr ""
33986
33987 #. type: textblock
33988 #: ../src/guestfs.pod:1718
33989 msgid ""
33990 "The callback function will be called when the child process quits, either "
33991 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
33992 "corresponds to a transition from any state to the CONFIG state)."
33993 msgstr ""
33994
33995 #. type: textblock
33996 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
33997 msgid "If no callback is registered: the event is ignored."
33998 msgstr ""
33999
34000 #. type: =item
34001 #: ../src/guestfs.pod:1724
34002 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
34003 msgstr ""
34004
34005 #. type: textblock
34006 #: ../src/guestfs.pod:1727
34007 msgid ""
34008 "The callback function will be called when the child process becomes ready "
34009 "first time after it has been launched.  (This corresponds to a transition "
34010 "from LAUNCHING to the READY state)."
34011 msgstr ""
34012
34013 #. type: =item
34014 #: ../src/guestfs.pod:1733
34015 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
34016 msgstr ""
34017
34018 #. type: textblock
34019 #: ../src/guestfs.pod:1736
34020 msgid ""
34021 "Some long-running operations can generate progress messages.  If this "
34022 "callback is registered, then it will be called each time a progress message "
34023 "is generated (usually two seconds after the operation started, and three "
34024 "times per second thereafter until it completes, although the frequency may "
34025 "change in future versions)."
34026 msgstr ""
34027
34028 #. type: textblock
34029 #: ../src/guestfs.pod:1742
34030 msgid ""
34031 "The callback receives in the payload four unsigned 64 bit numbers which are "
34032 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
34033 msgstr ""
34034
34035 #. type: textblock
34036 #: ../src/guestfs.pod:1745
34037 msgid ""
34038 "The units of C<total> are not defined, although for some operations C<total> "
34039 "may relate in some way to the amount of data to be transferred (eg. in bytes "
34040 "or megabytes), and C<position> may be the portion which has been transferred."
34041 msgstr ""
34042
34043 #. type: textblock
34044 #: ../src/guestfs.pod:1750
34045 msgid "The only defined and stable parts of the API are:"
34046 msgstr ""
34047
34048 #. type: textblock
34049 #: ../src/guestfs.pod:1756
34050 msgid ""
34051 "The callback can display to the user some type of progress bar or indicator "
34052 "which shows the ratio of C<position>:C<total>."
34053 msgstr ""
34054
34055 #. type: textblock
34056 #: ../src/guestfs.pod:1761
34057 msgid "0 E<lt>= C<position> E<lt>= C<total>"
34058 msgstr ""
34059
34060 #. type: textblock
34061 #: ../src/guestfs.pod:1765
34062 msgid ""
34063 "If any progress notification is sent during a call, then a final progress "
34064 "notification is always sent when C<position> = C<total> (I<unless> the call "
34065 "fails with an error)."
34066 msgstr ""
34067
34068 #. type: textblock
34069 #: ../src/guestfs.pod:1769
34070 msgid ""
34071 "This is to simplify caller code, so callers can easily set the progress "
34072 "indicator to \"100%\" at the end of the operation, without requiring special "
34073 "code to detect this case."
34074 msgstr ""
34075
34076 #. type: textblock
34077 #: ../src/guestfs.pod:1775
34078 msgid ""
34079 "For some calls we are unable to estimate the progress of the call, but we "
34080 "can still generate progress messages to indicate activity.  This is known as "
34081 "\"pulse mode\", and is directly supported by certain progress bar "
34082 "implementations (eg. GtkProgressBar)."
34083 msgstr ""
34084
34085 #. type: textblock
34086 #: ../src/guestfs.pod:1780
34087 msgid ""
34088 "For these calls, zero or more progress messages are generated with "
34089 "C<position = 0> and C<total = 1>, followed by a final message with "
34090 "C<position = total = 1>."
34091 msgstr ""
34092
34093 #. type: textblock
34094 #: ../src/guestfs.pod:1784
34095 msgid ""
34096 "As noted above, if the call fails with an error then the final message may "
34097 "not be generated."
34098 msgstr ""
34099
34100 #. type: textblock
34101 #: ../src/guestfs.pod:1789
34102 msgid ""
34103 "The callback also receives the procedure number (C<proc_nr>) and serial "
34104 "number (C<serial>) of the call.  These are only useful for debugging "
34105 "protocol issues, and the callback can normally ignore them.  The callback "
34106 "may want to print these numbers in error messages or debugging messages."
34107 msgstr ""
34108
34109 #. type: textblock
34110 #: ../src/guestfs.pod:1795
34111 msgid "If no callback is registered: progress messages are discarded."
34112 msgstr ""
34113
34114 #. type: =item
34115 #: ../src/guestfs.pod:1797
34116 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
34117 msgstr ""
34118
34119 #. type: textblock
34120 #: ../src/guestfs.pod:1800
34121 msgid ""
34122 "The callback function is called whenever a log message is generated by qemu, "
34123 "the appliance kernel, guestfsd (daemon), or utility programs."
34124 msgstr ""
34125
34126 #. type: textblock
34127 #: ../src/guestfs.pod:1803
34128 msgid ""
34129 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
34130 "guestfs_launch>) then additional debug messages are generated."
34131 msgstr ""
34132
34133 #. type: textblock
34134 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
34135 msgid ""
34136 "If no callback is registered: the messages are discarded unless the verbose "
34137 "flag is set in which case they are sent to stderr.  You can override the "
34138 "printing of verbose messages to stderr by setting up a callback."
34139 msgstr ""
34140
34141 #. type: =item
34142 #: ../src/guestfs.pod:1811
34143 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
34144 msgstr ""
34145
34146 #. type: textblock
34147 #: ../src/guestfs.pod:1814
34148 msgid ""
34149 "The callback function is called whenever a log message is generated by the "
34150 "library part of libguestfs."
34151 msgstr ""
34152
34153 #. type: textblock
34154 #: ../src/guestfs.pod:1817
34155 msgid ""
34156 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
34157 "messages are generated."
34158 msgstr ""
34159
34160 #. type: =item
34161 #: ../src/guestfs.pod:1825
34162 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
34163 msgstr ""
34164
34165 #. type: textblock
34166 #: ../src/guestfs.pod:1828
34167 msgid ""
34168 "The callback function is called whenever a trace message is generated.  This "
34169 "only applies if the trace flag (L</guestfs_set_trace>) is set."
34170 msgstr ""
34171
34172 #. type: textblock
34173 #: ../src/guestfs.pod:1831
34174 msgid ""
34175 "If no callback is registered: the messages are sent to stderr.  You can "
34176 "override the printing of trace messages to stderr by setting up a callback."
34177 msgstr ""
34178
34179 #. type: =head3
34180 #: ../src/guestfs.pod:1837
34181 msgid "guestfs_set_event_callback"
34182 msgstr ""
34183
34184 #. type: verbatim
34185 #: ../src/guestfs.pod:1839
34186 #, no-wrap
34187 msgid ""
34188 " int guestfs_set_event_callback (guestfs_h *g,\n"
34189 "                                 guestfs_event_callback cb,\n"
34190 "                                 uint64_t event_bitmask,\n"
34191 "                                 int flags,\n"
34192 "                                 void *opaque);\n"
34193 "\n"
34194 msgstr ""
34195
34196 #. type: textblock
34197 #: ../src/guestfs.pod:1845
34198 msgid ""
34199 "This function registers a callback (C<cb>) for all event classes in the "
34200 "C<event_bitmask>."
34201 msgstr ""
34202
34203 #. type: textblock
34204 #: ../src/guestfs.pod:1848
34205 msgid ""
34206 "For example, to register for all log message events, you could call this "
34207 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
34208 "To register a single callback for all possible classes of events, use "
34209 "C<GUESTFS_EVENT_ALL>."
34210 msgstr ""
34211
34212 #. type: textblock
34213 #: ../src/guestfs.pod:1854
34214 msgid "C<flags> should always be passed as 0."
34215 msgstr ""
34216
34217 #. type: textblock
34218 #: ../src/guestfs.pod:1856
34219 msgid ""
34220 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
34221 "it for any purpose."
34222 msgstr ""
34223
34224 #. type: textblock
34225 #: ../src/guestfs.pod:1859
34226 msgid ""
34227 "The return value is the event handle (an integer) which you can use to "
34228 "delete the callback (see below)."
34229 msgstr ""
34230
34231 #. type: textblock
34232 #: ../src/guestfs.pod:1862
34233 msgid ""
34234 "If there is an error, this function returns C<-1>, and sets the error in the "
34235 "handle in the usual way (see L</guestfs_last_error> etc.)"
34236 msgstr ""
34237
34238 #. type: textblock
34239 #: ../src/guestfs.pod:1865
34240 msgid ""
34241 "Callbacks remain in effect until they are deleted, or until the handle is "
34242 "closed."
34243 msgstr ""
34244
34245 #. type: textblock
34246 #: ../src/guestfs.pod:1868
34247 msgid ""
34248 "In the case where multiple callbacks are registered for a particular event "
34249 "class, all of the callbacks are called.  The order in which multiple "
34250 "callbacks are called is not defined."
34251 msgstr ""
34252
34253 #. type: =head3
34254 #: ../src/guestfs.pod:1872
34255 msgid "guestfs_delete_event_callback"
34256 msgstr ""
34257
34258 #. type: verbatim
34259 #: ../src/guestfs.pod:1874
34260 #, no-wrap
34261 msgid ""
34262 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
34263 "\n"
34264 msgstr ""
34265
34266 #. type: textblock
34267 #: ../src/guestfs.pod:1876
34268 msgid ""
34269 "Delete a callback that was previously registered.  C<event_handle> should be "
34270 "the integer that was returned by a previous call to "
34271 "C<guestfs_set_event_callback> on the same handle."
34272 msgstr ""
34273
34274 #. type: =head3
34275 #: ../src/guestfs.pod:1880
34276 msgid "guestfs_event_callback"
34277 msgstr ""
34278
34279 #. type: verbatim
34280 #: ../src/guestfs.pod:1882
34281 #, no-wrap
34282 msgid ""
34283 " typedef void (*guestfs_event_callback) (\n"
34284 "                  guestfs_h *g,\n"
34285 "                  void *opaque,\n"
34286 "                  uint64_t event,\n"
34287 "                  int event_handle,\n"
34288 "                  int flags,\n"
34289 "                  const char *buf, size_t buf_len,\n"
34290 "                  const uint64_t *array, size_t array_len);\n"
34291 "\n"
34292 msgstr ""
34293
34294 #. type: textblock
34295 #: ../src/guestfs.pod:1891
34296 msgid ""
34297 "This is the type of the event callback function that you have to provide."
34298 msgstr ""
34299
34300 #. type: textblock
34301 #: ../src/guestfs.pod:1894
34302 msgid ""
34303 "The basic parameters are: the handle (C<g>), the opaque user pointer "
34304 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
34305 "handle, and C<flags> which in the current API you should ignore."
34306 msgstr ""
34307
34308 #. type: textblock
34309 #: ../src/guestfs.pod:1898
34310 msgid ""
34311 "The remaining parameters contain the event payload (if any).  Each event may "
34312 "contain a payload, which usually relates to the event class, but for future "
34313 "proofing your code should be written to handle any payload for any event "
34314 "class."
34315 msgstr ""
34316
34317 #. type: textblock
34318 #: ../src/guestfs.pod:1903
34319 msgid ""
34320 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
34321 "there is no message buffer).  Note that this message buffer can contain "
34322 "arbitrary 8 bit data, including NUL bytes."
34323 msgstr ""
34324
34325 #. type: textblock
34326 #: ../src/guestfs.pod:1907
34327 msgid ""
34328 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
34329 "moment this is only used for progress messages."
34330 msgstr ""
34331
34332 #. type: =head3
34333 #: ../src/guestfs.pod:1910
34334 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
34335 msgstr ""
34336
34337 #. type: textblock
34338 #: ../src/guestfs.pod:1912
34339 msgid ""
34340 "One motivation for the generic event API was to allow GUI programs to "
34341 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
34342 "unconditionally to C<stderr>."
34343 msgstr ""
34344
34345 #. type: textblock
34346 #: ../src/guestfs.pod:1916
34347 msgid ""
34348 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
34349 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
34350 "messages are not events; you must capture error messages separately)."
34351 msgstr ""
34352
34353 #. type: textblock
34354 #: ../src/guestfs.pod:1921
34355 msgid ""
34356 "Programs have to set up a callback to capture the classes of events of "
34357 "interest:"
34358 msgstr ""
34359
34360 #. type: verbatim
34361 #: ../src/guestfs.pod:1924
34362 #, no-wrap
34363 msgid ""
34364 " int eh =\n"
34365 "   guestfs_set_event_callback\n"
34366 "     (g, message_callback,\n"
34367 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
34368 "      GUESTFS_EVENT_TRACE,\n"
34369 "      0, NULL) == -1)\n"
34370 " if (eh == -1) {\n"
34371 "   // handle error in the usual way\n"
34372 " }\n"
34373 "\n"
34374 msgstr ""
34375
34376 #. type: textblock
34377 #: ../src/guestfs.pod:1934
34378 msgid ""
34379 "The callback can then direct messages to the appropriate place.  In this "
34380 "example, messages are directed to syslog:"
34381 msgstr ""
34382
34383 #. type: verbatim
34384 #: ../src/guestfs.pod:1937
34385 #, no-wrap
34386 msgid ""
34387 " static void\n"
34388 " message_callback (\n"
34389 "         guestfs_h *g,\n"
34390 "         void *opaque,\n"
34391 "         uint64_t event,\n"
34392 "         int event_handle,\n"
34393 "         int flags,\n"
34394 "         const char *buf, size_t buf_len,\n"
34395 "         const uint64_t *array, size_t array_len)\n"
34396 " {\n"
34397 "   const int priority = LOG_USER|LOG_INFO;\n"
34398 "   if (buf_len > 0)\n"
34399 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
34400 " }\n"
34401 "\n"
34402 msgstr ""
34403
34404 #. type: =head1
34405 #: ../src/guestfs.pod:1952
34406 msgid "CANCELLING LONG TRANSFERS"
34407 msgstr ""
34408
34409 #. type: textblock
34410 #: ../src/guestfs.pod:1954
34411 msgid ""
34412 "Some operations can be cancelled by the caller while they are in progress.  "
34413 "Currently only operations that involve uploading or downloading data can be "
34414 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
34415 "parameters in the generator)."
34416 msgstr ""
34417
34418 #. type: =head2
34419 #: ../src/guestfs.pod:1959
34420 msgid "guestfs_user_cancel"
34421 msgstr ""
34422
34423 #. type: verbatim
34424 #: ../src/guestfs.pod:1961
34425 #, no-wrap
34426 msgid ""
34427 " void guestfs_user_cancel (guestfs_h *g);\n"
34428 "\n"
34429 msgstr ""
34430
34431 #. type: textblock
34432 #: ../src/guestfs.pod:1963
34433 msgid ""
34434 "C<guestfs_user_cancel> cancels the current upload or download operation."
34435 msgstr ""
34436
34437 #. type: textblock
34438 #: ../src/guestfs.pod:1966
34439 msgid ""
34440 "Unlike most other libguestfs calls, this function is signal safe and thread "
34441 "safe.  You can call it from a signal handler or from another thread, without "
34442 "needing to do any locking."
34443 msgstr ""
34444
34445 #. type: textblock
34446 #: ../src/guestfs.pod:1970
34447 msgid ""
34448 "The transfer that was in progress (if there is one) will stop shortly "
34449 "afterwards, and will return an error.  The errno (see L</"
34450 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
34451 "out if the operation was cancelled or failed because of another error."
34452 msgstr ""
34453
34454 #. type: textblock
34455 #: ../src/guestfs.pod:1976
34456 msgid ""
34457 "No cleanup is performed: for example, if a file was being uploaded then "
34458 "after cancellation there may be a partially uploaded file.  It is the "
34459 "caller's responsibility to clean up if necessary."
34460 msgstr ""
34461
34462 #. type: textblock
34463 #: ../src/guestfs.pod:1980
34464 msgid "There are two common places that you might call C<guestfs_user_cancel>."
34465 msgstr ""
34466
34467 #. type: textblock
34468 #: ../src/guestfs.pod:1982
34469 msgid ""
34470 "In an interactive text-based program, you might call it from a C<SIGINT> "
34471 "signal handler so that pressing C<^C> cancels the current operation.  (You "
34472 "also need to call L</guestfs_set_pgroup> so that child processes don't "
34473 "receive the C<^C> signal)."
34474 msgstr ""
34475
34476 #. type: textblock
34477 #: ../src/guestfs.pod:1987
34478 msgid ""
34479 "In a graphical program, when the main thread is displaying a progress bar "
34480 "with a cancel button, wire up the cancel button to call this function."
34481 msgstr ""
34482
34483 #. type: =head1
34484 #: ../src/guestfs.pod:1991
34485 msgid "PRIVATE DATA AREA"
34486 msgstr ""
34487
34488 #. type: textblock
34489 #: ../src/guestfs.pod:1993
34490 msgid ""
34491 "You can attach named pieces of private data to the libguestfs handle, fetch "
34492 "them by name, and walk over them, for the lifetime of the handle.  This is "
34493 "called the private data area and is only available from the C API."
34494 msgstr ""
34495
34496 #. type: textblock
34497 #: ../src/guestfs.pod:1998
34498 msgid "To attach a named piece of data, use the following call:"
34499 msgstr ""
34500
34501 #. type: verbatim
34502 #: ../src/guestfs.pod:2000
34503 #, no-wrap
34504 msgid ""
34505 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
34506 "\n"
34507 msgstr ""
34508
34509 #. type: textblock
34510 #: ../src/guestfs.pod:2002
34511 msgid ""
34512 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
34513 "pointer (which can be C<NULL>).  Any previous item with the same key is "
34514 "overwritten."
34515 msgstr ""
34516
34517 #. type: textblock
34518 #: ../src/guestfs.pod:2006
34519 msgid ""
34520 "You can use any C<key> you want, but your key should I<not> start with an "
34521 "underscore character.  Keys beginning with an underscore character are "
34522 "reserved for internal libguestfs purposes (eg. for implementing language "
34523 "bindings).  It is recommended that you prefix the key with some unique "
34524 "string to avoid collisions with other users."
34525 msgstr ""
34526
34527 #. type: textblock
34528 #: ../src/guestfs.pod:2012
34529 msgid "To retrieve the pointer, use:"
34530 msgstr ""
34531
34532 #. type: verbatim
34533 #: ../src/guestfs.pod:2014
34534 #, no-wrap
34535 msgid ""
34536 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
34537 "\n"
34538 msgstr ""
34539
34540 #. type: textblock
34541 #: ../src/guestfs.pod:2016
34542 msgid ""
34543 "This function returns C<NULL> if either no data is found associated with "
34544 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
34545 "C<NULL>."
34546 msgstr ""
34547
34548 #. type: textblock
34549 #: ../src/guestfs.pod:2020
34550 msgid ""
34551 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
34552 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
34553 "all.  In particular, libguestfs does I<not> try to free the data when the "
34554 "handle is closed.  If the data must be freed, then the caller must either "
34555 "free it before calling L</guestfs_close> or must set up a close callback to "
34556 "do it (see L</GUESTFS_EVENT_CLOSE>)."
34557 msgstr ""
34558
34559 #. type: textblock
34560 #: ../src/guestfs.pod:2027
34561 msgid "To walk over all entries, use these two functions:"
34562 msgstr ""
34563
34564 #. type: verbatim
34565 #: ../src/guestfs.pod:2029
34566 #, no-wrap
34567 msgid ""
34568 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
34569 "\n"
34570 msgstr ""
34571
34572 #. type: verbatim
34573 #: ../src/guestfs.pod:2031
34574 #, no-wrap
34575 msgid ""
34576 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
34577 "\n"
34578 msgstr ""
34579
34580 #. type: textblock
34581 #: ../src/guestfs.pod:2033
34582 msgid ""
34583 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
34584 "not have any particular meaning -- keys are not returned in any defined "
34585 "order).  A pointer to the key is returned in C<*key_rtn> and the "
34586 "corresponding data pointer is returned from the function.  C<NULL> is "
34587 "returned if there are no keys stored in the handle."
34588 msgstr ""
34589
34590 #. type: textblock
34591 #: ../src/guestfs.pod:2039
34592 msgid ""
34593 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
34594 "value of this function is also C<NULL> is there are no further entries to "
34595 "return."
34596 msgstr ""
34597
34598 #. type: textblock
34599 #: ../src/guestfs.pod:2043
34600 msgid "Notes about walking over entries:"
34601 msgstr ""
34602
34603 #. type: textblock
34604 #: ../src/guestfs.pod:2049
34605 msgid ""
34606 "You must not call C<guestfs_set_private> while walking over the entries."
34607 msgstr ""
34608
34609 #. type: textblock
34610 #: ../src/guestfs.pod:2054
34611 msgid ""
34612 "The handle maintains an internal iterator which is reset when you call "
34613 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
34614 "call C<guestfs_set_private>."
34615 msgstr ""
34616
34617 #. type: textblock
34618 #: ../src/guestfs.pod:2060
34619 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
34620 msgstr ""
34621
34622 #. type: verbatim
34623 #: ../src/guestfs.pod:2062
34624 #, no-wrap
34625 msgid ""
34626 " guestfs_set_private (g, key, NULL);\n"
34627 "\n"
34628 msgstr ""
34629
34630 #. type: textblock
34631 #: ../src/guestfs.pod:2064
34632 msgid "then that C<key> is not returned when walking."
34633 msgstr ""
34634
34635 #. type: textblock
34636 #: ../src/guestfs.pod:2068
34637 msgid ""
34638 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
34639 "C<guestfs_next_private> or C<guestfs_set_private>."
34640 msgstr ""
34641
34642 #. type: textblock
34643 #: ../src/guestfs.pod:2074
34644 msgid ""
34645 "The following example code shows how to print all keys and data pointers "
34646 "that are associated with the handle C<g>:"
34647 msgstr ""
34648
34649 #. type: verbatim
34650 #: ../src/guestfs.pod:2077
34651 #, no-wrap
34652 msgid ""
34653 " const char *key;\n"
34654 " void *data = guestfs_first_private (g, &key);\n"
34655 " while (data != NULL)\n"
34656 "   {\n"
34657 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
34658 "     data = guestfs_next_private (g, &key);\n"
34659 "   }\n"
34660 "\n"
34661 msgstr ""
34662
34663 #. type: textblock
34664 #: ../src/guestfs.pod:2085
34665 msgid ""
34666 "More commonly you are only interested in keys that begin with an application-"
34667 "specific prefix C<foo_>.  Modify the loop like so:"
34668 msgstr ""
34669
34670 #. type: verbatim
34671 #: ../src/guestfs.pod:2088
34672 #, no-wrap
34673 msgid ""
34674 " const char *key;\n"
34675 " void *data = guestfs_first_private (g, &key);\n"
34676 " while (data != NULL)\n"
34677 "   {\n"
34678 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34679 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
34680 "     data = guestfs_next_private (g, &key);\n"
34681 "   }\n"
34682 "\n"
34683 msgstr ""
34684
34685 #. type: textblock
34686 #: ../src/guestfs.pod:2097
34687 msgid ""
34688 "If you need to modify keys while walking, then you have to jump back to the "
34689 "beginning of the loop.  For example, to delete all keys prefixed with "
34690 "C<foo_>:"
34691 msgstr ""
34692
34693 #. type: verbatim
34694 #: ../src/guestfs.pod:2101
34695 #, no-wrap
34696 msgid ""
34697 "  const char *key;\n"
34698 "  void *data;\n"
34699 " again:\n"
34700 "  data = guestfs_first_private (g, &key);\n"
34701 "  while (data != NULL)\n"
34702 "    {\n"
34703 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34704 "        {\n"
34705 "          guestfs_set_private (g, key, NULL);\n"
34706 "          /* note that 'key' pointer is now invalid, and so is\n"
34707 "             the internal iterator */\n"
34708 "          goto again;\n"
34709 "        }\n"
34710 "      data = guestfs_next_private (g, &key);\n"
34711 "    }\n"
34712 "\n"
34713 msgstr ""
34714
34715 #. type: textblock
34716 #: ../src/guestfs.pod:2117
34717 msgid ""
34718 "Note that the above loop is guaranteed to terminate because the keys are "
34719 "being deleted, but other manipulations of keys within the loop might not "
34720 "terminate unless you also maintain an indication of which keys have been "
34721 "visited."
34722 msgstr ""
34723
34724 #. type: =end
34725 #: ../src/guestfs.pod:2122 ../src/guestfs.pod:2127
34726 msgid "html"
34727 msgstr ""
34728
34729 #. type: textblock
34730 #: ../src/guestfs.pod:2124
34731 msgid ""
34732 "<!-- old anchor for the next section --> <a name="
34733 "\"state_machine_and_low_level_event_api\"/>"
34734 msgstr ""
34735
34736 #. type: =head1
34737 #: ../src/guestfs.pod:2129
34738 msgid "ARCHITECTURE"
34739 msgstr ""
34740
34741 #. type: textblock
34742 #: ../src/guestfs.pod:2131
34743 msgid ""
34744 "Internally, libguestfs is implemented by running an appliance (a special "
34745 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
34746 "process of the main program."
34747 msgstr ""
34748
34749 #. type: verbatim
34750 #: ../src/guestfs.pod:2135
34751 #, no-wrap
34752 msgid ""
34753 "  ___________________\n"
34754 " /                   \\\n"
34755 " | main program      |\n"
34756 " |                   |\n"
34757 " |                   |           child process / appliance\n"
34758 " |                   |           __________________________\n"
34759 " |                   |          / qemu                     \\\n"
34760 " +-------------------+   RPC    |      +-----------------+ |\n"
34761 " | libguestfs     <--------------------> guestfsd        | |\n"
34762 " |                   |          |      +-----------------+ |\n"
34763 " \\___________________/          |      | Linux kernel    | |\n"
34764 "                                |      +--^--------------+ |\n"
34765 "                                \\_________|________________/\n"
34766 "                                          |\n"
34767 "                                   _______v______\n"
34768 "                                  /              \\\n"
34769 "                                  | Device or    |\n"
34770 "                                  | disk image   |\n"
34771 "                                  \\______________/\n"
34772 "\n"
34773 msgstr ""
34774
34775 #. type: textblock
34776 #: ../src/guestfs.pod:2155
34777 msgid ""
34778 "The library, linked to the main program, creates the child process and hence "
34779 "the appliance in the L</guestfs_launch> function."
34780 msgstr ""
34781
34782 #. type: textblock
34783 #: ../src/guestfs.pod:2158
34784 msgid ""
34785 "Inside the appliance is a Linux kernel and a complete stack of userspace "
34786 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
34787 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
34788 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
34789 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
34790 "attached to the qemu process which translates device access by the "
34791 "appliance's Linux kernel into accesses to the image."
34792 msgstr ""
34793
34794 #. type: textblock
34795 #: ../src/guestfs.pod:2167
34796 msgid ""
34797 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
34798 "Although the disk image you are attached to might also be used by some "
34799 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
34800 "care if both libguestfs's qemu process and your virtual machine are trying "
34801 "to update the disk image at the same time, since these usually results in "
34802 "massive disk corruption)."
34803 msgstr ""
34804
34805 #. type: =head1
34806 #: ../src/guestfs.pod:2174
34807 msgid "STATE MACHINE"
34808 msgstr ""
34809
34810 #. type: textblock
34811 #: ../src/guestfs.pod:2176
34812 msgid "libguestfs uses a state machine to model the child process:"
34813 msgstr ""
34814
34815 #. type: verbatim
34816 #: ../src/guestfs.pod:2178
34817 #, no-wrap
34818 msgid ""
34819 "                         |\n"
34820 "                    guestfs_create\n"
34821 "                         |\n"
34822 "                         |\n"
34823 "                     ____V_____\n"
34824 "                    /          \\\n"
34825 "                    |  CONFIG  |\n"
34826 "                    \\__________/\n"
34827 "                     ^ ^   ^  \\\n"
34828 "                    /  |    \\  \\ guestfs_launch\n"
34829 "                   /   |    _\\__V______\n"
34830 "                  /    |   /           \\\n"
34831 "                 /     |   | LAUNCHING |\n"
34832 "                /      |   \\___________/\n"
34833 "               /       |       /\n"
34834 "              /        |  guestfs_launch\n"
34835 "             /         |     /\n"
34836 "    ______  /        __|____V\n"
34837 "   /      \\ ------> /        \\\n"
34838 "   | BUSY |         | READY  |\n"
34839 "   \\______/ <------ \\________/\n"
34840 "\n"
34841 msgstr ""
34842
34843 #. type: textblock
34844 #: ../src/guestfs.pod:2200
34845 msgid ""
34846 "The normal transitions are (1) CONFIG (when the handle is created, but there "
34847 "is no child process), (2) LAUNCHING (when the child process is booting up), "
34848 "(3) alternating between READY and BUSY as commands are issued to, and "
34849 "carried out by, the child process."
34850 msgstr ""
34851
34852 #. type: textblock
34853 #: ../src/guestfs.pod:2205
34854 msgid ""
34855 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
34856 "asynchronously at any time (eg. due to some internal error), and that causes "
34857 "the state to transition back to CONFIG."
34858 msgstr ""
34859
34860 #. type: textblock
34861 #: ../src/guestfs.pod:2209
34862 msgid ""
34863 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
34864 "issued when in the CONFIG state."
34865 msgstr ""
34866
34867 #. type: textblock
34868 #: ../src/guestfs.pod:2212
34869 msgid ""
34870 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
34871 "L</guestfs_launch> blocks until the child process is READY to accept "
34872 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
34873 "moves the state from CONFIG to LAUNCHING while it is running."
34874 msgstr ""
34875
34876 #. type: textblock
34877 #: ../src/guestfs.pod:2218
34878 msgid ""
34879 "API actions such as L</guestfs_mount> can only be issued when in the READY "
34880 "state.  These API calls block waiting for the command to be carried out (ie. "
34881 "the state to transition to BUSY and then back to READY).  There are no non-"
34882 "blocking versions, and no way to issue more than one command per handle at "
34883 "the same time."
34884 msgstr ""
34885
34886 #. type: textblock
34887 #: ../src/guestfs.pod:2224
34888 msgid ""
34889 "Finally, the child process sends asynchronous messages back to the main "
34890 "program, such as kernel log messages.  You can register a callback to "
34891 "receive these messages."
34892 msgstr ""
34893
34894 #. type: =head1
34895 #: ../src/guestfs.pod:2228
34896 msgid "INTERNALS"
34897 msgstr ""
34898
34899 #. type: =head2
34900 #: ../src/guestfs.pod:2230
34901 msgid "COMMUNICATION PROTOCOL"
34902 msgstr ""
34903
34904 #. type: textblock
34905 #: ../src/guestfs.pod:2232
34906 msgid ""
34907 "Don't rely on using this protocol directly.  This section documents how it "
34908 "currently works, but it may change at any time."
34909 msgstr ""
34910
34911 #. type: textblock
34912 #: ../src/guestfs.pod:2235
34913 msgid ""
34914 "The protocol used to talk between the library and the daemon running inside "
34915 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
34916 "1014, RFC 1832, RFC 4506)."
34917 msgstr ""
34918
34919 #. type: textblock
34920 #: ../src/guestfs.pod:2239
34921 msgid ""
34922 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
34923 "this file is automatically generated)."
34924 msgstr ""
34925
34926 #. type: textblock
34927 #: ../src/guestfs.pod:2242
34928 msgid ""
34929 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
34930 "and C<FileOut> parameters, which are handled with very simple request/reply "
34931 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
34932 "parameters, which use the same request and reply messages, but they may also "
34933 "be followed by files sent using a chunked encoding."
34934 msgstr ""
34935
34936 #. type: =head3
34937 #: ../src/guestfs.pod:2249
34938 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
34939 msgstr ""
34940
34941 #. type: textblock
34942 #: ../src/guestfs.pod:2251
34943 msgid "For ordinary functions, the request message is:"
34944 msgstr ""
34945
34946 #. type: verbatim
34947 #: ../src/guestfs.pod:2253
34948 #, no-wrap
34949 msgid ""
34950 " total length (header + arguments,\n"
34951 "      but not including the length word itself)\n"
34952 " struct guestfs_message_header (encoded as XDR)\n"
34953 " struct guestfs_<foo>_args (encoded as XDR)\n"
34954 "\n"
34955 msgstr ""
34956
34957 #. type: textblock
34958 #: ../src/guestfs.pod:2258
34959 msgid ""
34960 "The total length field allows the daemon to allocate a fixed size buffer "
34961 "into which it slurps the rest of the message.  As a result, the total length "
34962 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
34963 "effective size of any request is limited to somewhere under this size."
34964 msgstr ""
34965
34966 #. type: textblock
34967 #: ../src/guestfs.pod:2264
34968 msgid ""
34969 "Note also that many functions don't take any arguments, in which case the "
34970 "C<guestfs_I<foo>_args> is completely omitted."
34971 msgstr ""
34972
34973 #. type: textblock
34974 #: ../src/guestfs.pod:2267
34975 msgid ""
34976 "The header contains the procedure number (C<guestfs_proc>) which is how the "
34977 "receiver knows what type of args structure to expect, or none at all."
34978 msgstr ""
34979
34980 #. type: textblock
34981 #: ../src/guestfs.pod:2271
34982 msgid ""
34983 "For functions that take optional arguments, the optional arguments are "
34984 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
34985 "arguments.  A bitmask in the header indicates which optional arguments are "
34986 "meaningful.  The bitmask is also checked to see if it contains bits set "
34987 "which the daemon does not know about (eg. if more optional arguments were "
34988 "added in a later version of the library), and this causes the call to be "
34989 "rejected."
34990 msgstr ""
34991
34992 #. type: textblock
34993 #: ../src/guestfs.pod:2279
34994 msgid "The reply message for ordinary functions is:"
34995 msgstr ""
34996
34997 #. type: verbatim
34998 #: ../src/guestfs.pod:2281
34999 #, no-wrap
35000 msgid ""
35001 " total length (header + ret,\n"
35002 "      but not including the length word itself)\n"
35003 " struct guestfs_message_header (encoded as XDR)\n"
35004 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35005 "\n"
35006 msgstr ""
35007
35008 #. type: textblock
35009 #: ../src/guestfs.pod:2286
35010 msgid ""
35011 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
35012 "functions that return no formal return values."
35013 msgstr ""
35014
35015 #. type: textblock
35016 #: ../src/guestfs.pod:2289
35017 msgid ""
35018 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
35019 msgstr ""
35020
35021 #. type: textblock
35022 #: ../src/guestfs.pod:2292
35023 msgid ""
35024 "In the case of an error, a flag is set in the header, and the reply message "
35025 "is slightly changed:"
35026 msgstr ""
35027
35028 #. type: verbatim
35029 #: ../src/guestfs.pod:2295
35030 #, no-wrap
35031 msgid ""
35032 " total length (header + error,\n"
35033 "      but not including the length word itself)\n"
35034 " struct guestfs_message_header (encoded as XDR)\n"
35035 " struct guestfs_message_error (encoded as XDR)\n"
35036 "\n"
35037 msgstr ""
35038
35039 #. type: textblock
35040 #: ../src/guestfs.pod:2300
35041 msgid ""
35042 "The C<guestfs_message_error> structure contains the error message as a "
35043 "string."
35044 msgstr ""
35045
35046 #. type: =head3
35047 #: ../src/guestfs.pod:2303
35048 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
35049 msgstr ""
35050
35051 #. type: textblock
35052 #: ../src/guestfs.pod:2305
35053 msgid ""
35054 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
35055 "The normal request message is sent (see above).  However this is followed by "
35056 "a sequence of file chunks."
35057 msgstr ""
35058
35059 #. type: verbatim
35060 #: ../src/guestfs.pod:2309
35061 #, no-wrap
35062 msgid ""
35063 " total length (header + arguments,\n"
35064 "      but not including the length word itself,\n"
35065 "      and not including the chunks)\n"
35066 " struct guestfs_message_header (encoded as XDR)\n"
35067 " struct guestfs_<foo>_args (encoded as XDR)\n"
35068 " sequence of chunks for FileIn param #0\n"
35069 " sequence of chunks for FileIn param #1 etc.\n"
35070 "\n"
35071 msgstr ""
35072
35073 #. type: textblock
35074 #: ../src/guestfs.pod:2317
35075 msgid "The \"sequence of chunks\" is:"
35076 msgstr ""
35077
35078 #. type: verbatim
35079 #: ../src/guestfs.pod:2319
35080 #, no-wrap
35081 msgid ""
35082 " length of chunk (not including length word itself)\n"
35083 " struct guestfs_chunk (encoded as XDR)\n"
35084 " length of chunk\n"
35085 " struct guestfs_chunk (encoded as XDR)\n"
35086 "   ...\n"
35087 " length of chunk\n"
35088 " struct guestfs_chunk (with data.data_len == 0)\n"
35089 "\n"
35090 msgstr ""
35091
35092 #. type: textblock
35093 #: ../src/guestfs.pod:2327
35094 msgid ""
35095 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
35096 "is set in the final chunk to indicate either successful completion or early "
35097 "cancellation."
35098 msgstr ""
35099
35100 #. type: textblock
35101 #: ../src/guestfs.pod:2331
35102 msgid ""
35103 "At time of writing there are no functions that have more than one FileIn "
35104 "parameter.  However this is (theoretically) supported, by sending the "
35105 "sequence of chunks for each FileIn parameter one after another (from left to "
35106 "right)."
35107 msgstr ""
35108
35109 #. type: textblock
35110 #: ../src/guestfs.pod:2336
35111 msgid ""
35112 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
35113 "transfer.  The library does this by sending a chunk with a special flag set "
35114 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
35115 "RPC, does I<not> send any reply, and goes back to reading the next request."
35116 msgstr ""
35117
35118 #. type: textblock
35119 #: ../src/guestfs.pod:2342
35120 msgid ""
35121 "The daemon may also cancel.  It does this by writing a special word "
35122 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
35123 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
35124 "cancel chunk).  The special word is chosen so that even if cancellation "
35125 "happens right at the end of the transfer (after the library has finished "
35126 "writing and has started listening for the reply), the \"spurious\" cancel "
35127 "flag will not be confused with the reply message."
35128 msgstr ""
35129
35130 #. type: textblock
35131 #: ../src/guestfs.pod:2351
35132 msgid ""
35133 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
35134 "limit), and also files where the size is not known in advance (eg. from "
35135 "pipes or sockets).  However the chunks are rather small "
35136 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
35137 "to keep much in memory."
35138 msgstr ""
35139
35140 #. type: =head3
35141 #: ../src/guestfs.pod:2357
35142 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
35143 msgstr ""
35144
35145 #. type: textblock
35146 #: ../src/guestfs.pod:2359
35147 msgid ""
35148 "The protocol for FileOut parameters is exactly the same as for FileIn "
35149 "parameters, but with the roles of daemon and library reversed."
35150 msgstr ""
35151
35152 #. type: verbatim
35153 #: ../src/guestfs.pod:2362
35154 #, no-wrap
35155 msgid ""
35156 " total length (header + ret,\n"
35157 "      but not including the length word itself,\n"
35158 "      and not including the chunks)\n"
35159 " struct guestfs_message_header (encoded as XDR)\n"
35160 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35161 " sequence of chunks for FileOut param #0\n"
35162 " sequence of chunks for FileOut param #1 etc.\n"
35163 "\n"
35164 msgstr ""
35165
35166 #. type: =head3
35167 #: ../src/guestfs.pod:2370
35168 msgid "INITIAL MESSAGE"
35169 msgstr ""
35170
35171 #. type: textblock
35172 #: ../src/guestfs.pod:2372
35173 msgid ""
35174 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
35175 "which indicates that the guest and daemon is alive.  This is what L</"
35176 "guestfs_launch> waits for."
35177 msgstr ""
35178
35179 #. type: =head3
35180 #: ../src/guestfs.pod:2376
35181 msgid "PROGRESS NOTIFICATION MESSAGES"
35182 msgstr ""
35183
35184 #. type: textblock
35185 #: ../src/guestfs.pod:2378
35186 msgid ""
35187 "The daemon may send progress notification messages at any time.  These are "
35188 "distinguished by the normal length word being replaced by "
35189 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
35190 msgstr ""
35191
35192 #. type: textblock
35193 #: ../src/guestfs.pod:2382
35194 msgid ""
35195 "The library turns them into progress callbacks (see L</"
35196 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
35197 "if not."
35198 msgstr ""
35199
35200 #. type: textblock
35201 #: ../src/guestfs.pod:2386
35202 msgid ""
35203 "The daemon self-limits the frequency of progress messages it sends (see "
35204 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
35205 "messages."
35206 msgstr ""
35207
35208 #. type: =head1
35209 #: ../src/guestfs.pod:2390
35210 msgid "LIBGUESTFS VERSION NUMBERS"
35211 msgstr ""
35212
35213 #. type: textblock
35214 #: ../src/guestfs.pod:2392
35215 msgid ""
35216 "Since April 2010, libguestfs has started to make separate development and "
35217 "stable releases, along with corresponding branches in our git repository.  "
35218 "These separate releases can be identified by version number:"
35219 msgstr ""
35220
35221 #. type: verbatim
35222 #: ../src/guestfs.pod:2397
35223 #, no-wrap
35224 msgid ""
35225 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
35226 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
35227 "       |\n"
35228 "       v\n"
35229 " 1  .  3  .  5\n"
35230 " ^           ^\n"
35231 " |           |\n"
35232 " |           `-------- sub-version\n"
35233 " |\n"
35234 " `------ always '1' because we don't change the ABI\n"
35235 "\n"
35236 msgstr ""
35237
35238 #. type: textblock
35239 #: ../src/guestfs.pod:2408
35240 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
35241 msgstr ""
35242
35243 #. type: textblock
35244 #: ../src/guestfs.pod:2410
35245 msgid ""
35246 "As time passes we cherry pick fixes from the development branch and backport "
35247 "those into the stable branch, the effect being that the stable branch should "
35248 "get more stable and less buggy over time.  So the stable releases are ideal "
35249 "for people who don't need new features but would just like the software to "
35250 "work."
35251 msgstr ""
35252
35253 #. type: textblock
35254 #: ../src/guestfs.pod:2416
35255 msgid "Our criteria for backporting changes are:"
35256 msgstr ""
35257
35258 #. type: textblock
35259 #: ../src/guestfs.pod:2422
35260 msgid ""
35261 "Documentation changes which don't affect any code are backported unless the "
35262 "documentation refers to a future feature which is not in stable."
35263 msgstr ""
35264
35265 #. type: textblock
35266 #: ../src/guestfs.pod:2428
35267 msgid ""
35268 "Bug fixes which are not controversial, fix obvious problems, and have been "
35269 "well tested are backported."
35270 msgstr ""
35271
35272 #. type: textblock
35273 #: ../src/guestfs.pod:2433
35274 msgid ""
35275 "Simple rearrangements of code which shouldn't affect how it works get "
35276 "backported.  This is so that the code in the two branches doesn't get too "
35277 "far out of step, allowing us to backport future fixes more easily."
35278 msgstr ""
35279
35280 #. type: textblock
35281 #: ../src/guestfs.pod:2439
35282 msgid ""
35283 "We I<don't> backport new features, new APIs, new tools etc, except in one "
35284 "exceptional case: the new feature is required in order to implement an "
35285 "important bug fix."
35286 msgstr ""
35287
35288 #. type: textblock
35289 #: ../src/guestfs.pod:2445
35290 msgid ""
35291 "A new stable branch starts when we think the new features in development are "
35292 "substantial and compelling enough over the current stable branch to warrant "
35293 "it.  When that happens we create new stable and development versions 1.N.0 "
35294 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
35295 "stable at this point, but by backporting fixes from development, that branch "
35296 "will stabilize over time."
35297 msgstr ""
35298
35299 #. type: =head1
35300 #: ../src/guestfs.pod:2453
35301 msgid "EXTENDING LIBGUESTFS"
35302 msgstr ""
35303
35304 #. type: =head2
35305 #: ../src/guestfs.pod:2455
35306 msgid "ADDING A NEW API ACTION"
35307 msgstr ""
35308
35309 #. type: textblock
35310 #: ../src/guestfs.pod:2457
35311 msgid ""
35312 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
35313 "documentation) are generated, and this makes it easy to extend the "
35314 "libguestfs API."
35315 msgstr ""
35316
35317 #. type: textblock
35318 #: ../src/guestfs.pod:2461
35319 msgid "To add a new API action there are two changes:"
35320 msgstr ""
35321
35322 #. type: textblock
35323 #: ../src/guestfs.pod:2467
35324 msgid ""
35325 "You need to add a description of the call (name, parameters, return type, "
35326 "tests, documentation) to C<generator/generator_actions.ml>."
35327 msgstr ""
35328
35329 #. type: textblock
35330 #: ../src/guestfs.pod:2470
35331 msgid ""
35332 "There are two sorts of API action, depending on whether the call goes "
35333 "through to the daemon in the appliance, or is serviced entirely by the "
35334 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
35335 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
35336 "an example of the latter, since a trace flag is maintained in the handle and "
35337 "all tracing is done on the library side."
35338 msgstr ""
35339
35340 #. type: textblock
35341 #: ../src/guestfs.pod:2478
35342 msgid ""
35343 "Most new actions are of the first type, and get added to the "
35344 "C<daemon_functions> list.  Each function has a unique procedure number used "
35345 "in the RPC protocol which is assigned to that action when we publish "
35346 "libguestfs and cannot be reused.  Take the latest procedure number and "
35347 "increment it."
35348 msgstr ""
35349
35350 #. type: textblock
35351 #: ../src/guestfs.pod:2484
35352 msgid ""
35353 "For library-only actions of the second type, add to the "
35354 "C<non_daemon_functions> list.  Since these functions are serviced by the "
35355 "library and do not travel over the RPC mechanism to the daemon, these "
35356 "functions do not need a procedure number, and so the procedure number is set "
35357 "to C<-1>."
35358 msgstr ""
35359
35360 #. type: textblock
35361 #: ../src/guestfs.pod:2492
35362 msgid "Implement the action (in C):"
35363 msgstr ""
35364
35365 #. type: textblock
35366 #: ../src/guestfs.pod:2494
35367 msgid ""
35368 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
35369 "C<daemon/> directory."
35370 msgstr ""
35371
35372 #. type: textblock
35373 #: ../src/guestfs.pod:2497
35374 msgid ""
35375 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
35376 "(note: double underscore) in the C<src/> directory."
35377 msgstr ""
35378
35379 #. type: textblock
35380 #: ../src/guestfs.pod:2500
35381 msgid "In either case, use another function as an example of what to do."
35382 msgstr ""
35383
35384 #. type: textblock
35385 #: ../src/guestfs.pod:2504
35386 msgid "After making these changes, use C<make> to compile."
35387 msgstr ""
35388
35389 #. type: textblock
35390 #: ../src/guestfs.pod:2506
35391 msgid ""
35392 "Note that you don't need to implement the RPC, language bindings, manual "
35393 "pages or anything else.  It's all automatically generated from the OCaml "
35394 "description."
35395 msgstr ""
35396
35397 #. type: =head2
35398 #: ../src/guestfs.pod:2510
35399 msgid "ADDING TESTS FOR AN API ACTION"
35400 msgstr ""
35401
35402 #. type: textblock
35403 #: ../src/guestfs.pod:2512
35404 msgid ""
35405 "You can supply zero or as many tests as you want per API call.  The tests "
35406 "can either be added as part of the API description (C<generator/"
35407 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
35408 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
35409 "slower, so if possible use the first method."
35410 msgstr ""
35411
35412 #. type: textblock
35413 #: ../src/guestfs.pod:2518
35414 msgid ""
35415 "The following describes the test environment used when you add an API test "
35416 "in C<generator_actions.ml>."
35417 msgstr ""
35418
35419 #. type: textblock
35420 #: ../src/guestfs.pod:2521
35421 msgid "The test environment has 4 block devices:"
35422 msgstr ""
35423
35424 #. type: =item
35425 #: ../src/guestfs.pod:2525
35426 msgid "C</dev/sda> 500MB"
35427 msgstr ""
35428
35429 #. type: textblock
35430 #: ../src/guestfs.pod:2527
35431 msgid "General block device for testing."
35432 msgstr ""
35433
35434 #. type: =item
35435 #: ../src/guestfs.pod:2529
35436 msgid "C</dev/sdb> 50MB"
35437 msgstr ""
35438
35439 #. type: textblock
35440 #: ../src/guestfs.pod:2531
35441 msgid ""
35442 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
35443 "operations."
35444 msgstr ""
35445
35446 #. type: =item
35447 #: ../src/guestfs.pod:2534
35448 msgid "C</dev/sdc> 10MB"
35449 msgstr ""
35450
35451 #. type: textblock
35452 #: ../src/guestfs.pod:2536
35453 msgid "Used in a few tests where two block devices are needed."
35454 msgstr ""
35455
35456 #. type: =item
35457 #: ../src/guestfs.pod:2538
35458 msgid "C</dev/sdd>"
35459 msgstr ""
35460
35461 #. type: textblock
35462 #: ../src/guestfs.pod:2540
35463 msgid "ISO with fixed content (see C<images/test.iso>)."
35464 msgstr ""
35465
35466 #. type: textblock
35467 #: ../src/guestfs.pod:2544
35468 msgid ""
35469 "To be able to run the tests in a reasonable amount of time, the libguestfs "
35470 "appliance and block devices are reused between tests.  So don't try testing "
35471 "L</guestfs_kill_subprocess> :-x"
35472 msgstr ""
35473
35474 #. type: textblock
35475 #: ../src/guestfs.pod:2548
35476 msgid ""
35477 "Each test starts with an initial scenario, selected using one of the "
35478 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
35479 "initialize the disks mentioned above in a particular way as documented in "
35480 "C<generator_types.ml>.  You should not assume anything about the previous "
35481 "contents of other disks that are not initialized."
35482 msgstr ""
35483
35484 #. type: textblock
35485 #: ../src/guestfs.pod:2554
35486 msgid ""
35487 "You can add a prerequisite clause to any individual test.  This is a run-"
35488 "time check, which, if it fails, causes the test to be skipped.  Useful if "
35489 "testing a command which might not work on all variations of libguestfs "
35490 "builds.  A test that has prerequisite of C<Always> means to run "
35491 "unconditionally."
35492 msgstr ""
35493
35494 #. type: textblock
35495 #: ../src/guestfs.pod:2560
35496 msgid ""
35497 "In addition, packagers can skip individual tests by setting environment "
35498 "variables before running C<make check>."
35499 msgstr ""
35500
35501 #. type: verbatim
35502 #: ../src/guestfs.pod:2563
35503 #, no-wrap
35504 msgid ""
35505 " SKIP_TEST_<CMD>_<NUM>=1\n"
35506 "\n"
35507 msgstr ""
35508
35509 #. type: textblock
35510 #: ../src/guestfs.pod:2565
35511 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
35512 msgstr ""
35513
35514 #. type: textblock
35515 #: ../src/guestfs.pod:2567
35516 msgid "or:"
35517 msgstr ""
35518
35519 #. type: verbatim
35520 #: ../src/guestfs.pod:2569
35521 #, no-wrap
35522 msgid ""
35523 " SKIP_TEST_<CMD>=1\n"
35524 "\n"
35525 msgstr ""
35526
35527 #. type: textblock
35528 #: ../src/guestfs.pod:2571
35529 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
35530 msgstr ""
35531
35532 #. type: textblock
35533 #: ../src/guestfs.pod:2573
35534 msgid "Packagers can run only certain tests by setting for example:"
35535 msgstr ""
35536
35537 #. type: verbatim
35538 #: ../src/guestfs.pod:2575
35539 #, no-wrap
35540 msgid ""
35541 " TEST_ONLY=\"vfs_type zerofree\"\n"
35542 "\n"
35543 msgstr ""
35544
35545 #. type: textblock
35546 #: ../src/guestfs.pod:2577
35547 msgid ""
35548 "See C<capitests/tests.c> for more details of how these environment variables "
35549 "work."
35550 msgstr ""
35551
35552 #. type: =head2
35553 #: ../src/guestfs.pod:2580
35554 msgid "DEBUGGING NEW API ACTIONS"
35555 msgstr ""
35556
35557 #. type: textblock
35558 #: ../src/guestfs.pod:2582
35559 msgid "Test new actions work before submitting them."
35560 msgstr ""
35561
35562 #. type: textblock
35563 #: ../src/guestfs.pod:2584
35564 msgid "You can use guestfish to try out new commands."
35565 msgstr ""
35566
35567 #. type: textblock
35568 #: ../src/guestfs.pod:2586
35569 msgid ""
35570 "Debugging the daemon is a problem because it runs inside a minimal "
35571 "environment.  However you can fprintf messages in the daemon to stderr, and "
35572 "they will show up if you use C<guestfish -v>."
35573 msgstr ""
35574
35575 #. type: =head2
35576 #: ../src/guestfs.pod:2590
35577 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
35578 msgstr ""
35579
35580 #. type: textblock
35581 #: ../src/guestfs.pod:2592
35582 msgid ""
35583 "Our C source code generally adheres to some basic code-formatting "
35584 "conventions.  The existing code base is not totally consistent on this "
35585 "front, but we do prefer that contributed code be formatted similarly.  In "
35586 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
35587 "indentation level, and other than that, follow the K&R style."
35588 msgstr ""
35589
35590 #. type: textblock
35591 #: ../src/guestfs.pod:2598
35592 msgid ""
35593 "If you use Emacs, add the following to one of one of your start-up files (e."
35594 "g., ~/.emacs), to help ensure that you get indentation right:"
35595 msgstr ""
35596
35597 #. type: verbatim
35598 #: ../src/guestfs.pod:2601
35599 #, no-wrap
35600 msgid ""
35601 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
35602 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
35603 " (add-hook 'find-file-hook\n"
35604 "     '(lambda () (if (and buffer-file-name\n"
35605 "                          (string-match \"/libguestfs\\\\>\"\n"
35606 "                              (buffer-file-name))\n"
35607 "                          (not (string-equal mode-name \"Change Log\"))\n"
35608 "                          (not (string-equal mode-name \"Makefile\")))\n"
35609 "                     (setq indent-tabs-mode nil))))\n"
35610 " \n"
35611 msgstr ""
35612
35613 #. type: verbatim
35614 #: ../src/guestfs.pod:2611
35615 #, no-wrap
35616 msgid ""
35617 " ;;; When editing C sources in libguestfs, use this style.\n"
35618 " (defun libguestfs-c-mode ()\n"
35619 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
35620 "   (interactive)\n"
35621 "   (c-set-style \"K&R\")\n"
35622 "   (setq c-indent-level 2)\n"
35623 "   (setq c-basic-offset 2))\n"
35624 " (add-hook 'c-mode-hook\n"
35625 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
35626 "                               (buffer-file-name))\n"
35627 "                           (libguestfs-c-mode))))\n"
35628 "\n"
35629 msgstr ""
35630
35631 #. type: textblock
35632 #: ../src/guestfs.pod:2623
35633 msgid "Enable warnings when compiling (and fix any problems this finds):"
35634 msgstr ""
35635
35636 #. type: verbatim
35637 #: ../src/guestfs.pod:2626
35638 #, no-wrap
35639 msgid ""
35640 " ./configure --enable-gcc-warnings\n"
35641 "\n"
35642 msgstr ""
35643
35644 #. type: textblock
35645 #: ../src/guestfs.pod:2628
35646 msgid "Useful targets are:"
35647 msgstr ""
35648
35649 #. type: verbatim
35650 #: ../src/guestfs.pod:2630
35651 #, no-wrap
35652 msgid ""
35653 " make syntax-check  # checks the syntax of the C code\n"
35654 " make check         # runs the test suite\n"
35655 "\n"
35656 msgstr ""
35657
35658 #. type: =head2
35659 #: ../src/guestfs.pod:2633
35660 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
35661 msgstr ""
35662
35663 #. type: textblock
35664 #: ../src/guestfs.pod:2635
35665 msgid ""
35666 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
35667 "which are used to do shell quoting."
35668 msgstr ""
35669
35670 #. type: =item
35671 #: ../src/guestfs.pod:2640
35672 msgid "%Q"
35673 msgstr ""
35674
35675 #. type: textblock
35676 #: ../src/guestfs.pod:2642
35677 msgid ""
35678 "Simple shell quoted string.  Any spaces or other shell characters are "
35679 "escaped for you."
35680 msgstr ""
35681
35682 #. type: =item
35683 #: ../src/guestfs.pod:2645
35684 msgid "%R"
35685 msgstr ""
35686
35687 #. type: textblock
35688 #: ../src/guestfs.pod:2647
35689 msgid ""
35690 "Same as C<%Q> except the string is treated as a path which is prefixed by "
35691 "the sysroot."
35692 msgstr ""
35693
35694 #. type: verbatim
35695 #: ../src/guestfs.pod:2654
35696 #, no-wrap
35697 msgid ""
35698 " asprintf (&cmd, \"cat %R\", path);\n"
35699 "\n"
35700 msgstr ""
35701
35702 #. type: textblock
35703 #: ../src/guestfs.pod:2656
35704 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
35705 msgstr ""
35706
35707 #. type: textblock
35708 #: ../src/guestfs.pod:2658
35709 msgid ""
35710 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
35711 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
35712 "they are not passed via the shell (instead, straight to exec).  You probably "
35713 "want to use the C<sysroot_path()> function however."
35714 msgstr ""
35715
35716 #. type: =head2
35717 #: ../src/guestfs.pod:2664
35718 msgid "SUBMITTING YOUR NEW API ACTIONS"
35719 msgstr ""
35720
35721 #. type: textblock
35722 #: ../src/guestfs.pod:2666
35723 msgid ""
35724 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
35725 "libguestfs> and CC to L<rjones@redhat.com>."
35726 msgstr ""
35727
35728 #. type: =head2
35729 #: ../src/guestfs.pod:2670
35730 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
35731 msgstr ""
35732
35733 #. type: textblock
35734 #: ../src/guestfs.pod:2672
35735 msgid "We support i18n (gettext anyhow) in the library."
35736 msgstr ""
35737
35738 #. type: textblock
35739 #: ../src/guestfs.pod:2674
35740 msgid ""
35741 "However many messages come from the daemon, and we don't translate those at "
35742 "the moment.  One reason is that the appliance generally has all locale files "
35743 "removed from it, because they take up a lot of space.  So we'd have to readd "
35744 "some of those, as well as copying our PO files into the appliance."
35745 msgstr ""
35746
35747 #. type: textblock
35748 #: ../src/guestfs.pod:2680
35749 msgid ""
35750 "Debugging messages are never translated, since they are intended for the "
35751 "programmers."
35752 msgstr ""
35753
35754 #. type: =head2
35755 #: ../src/guestfs.pod:2683
35756 msgid "SOURCE CODE SUBDIRECTORIES"
35757 msgstr ""
35758
35759 #. type: textblock
35760 #: ../src/guestfs.pod:2689
35761 msgid "The libguestfs appliance, build scripts and so on."
35762 msgstr ""
35763
35764 #. type: =item
35765 #: ../src/guestfs.pod:2691
35766 msgid "C<capitests>"
35767 msgstr ""
35768
35769 #. type: textblock
35770 #: ../src/guestfs.pod:2693
35771 msgid "Automated tests of the C API."
35772 msgstr ""
35773
35774 #. type: =item
35775 #: ../src/guestfs.pod:2695
35776 msgid "C<cat>"
35777 msgstr ""
35778
35779 #. type: textblock
35780 #: ../src/guestfs.pod:2697
35781 msgid ""
35782 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
35783 "documentation."
35784 msgstr ""
35785
35786 #. type: =item
35787 #: ../src/guestfs.pod:2700
35788 msgid "C<caution>"
35789 msgstr ""
35790
35791 #. type: textblock
35792 #: ../src/guestfs.pod:2702
35793 msgid ""
35794 "Safety and liveness tests of components that libguestfs depends upon (not of "
35795 "libguestfs itself).  Mainly this is for qemu and the kernel."
35796 msgstr ""
35797
35798 #. type: =item
35799 #: ../src/guestfs.pod:2705
35800 msgid "C<contrib>"
35801 msgstr ""
35802
35803 #. type: textblock
35804 #: ../src/guestfs.pod:2707
35805 msgid "Outside contributions, experimental parts."
35806 msgstr ""
35807
35808 #. type: =item
35809 #: ../src/guestfs.pod:2709
35810 msgid "C<daemon>"
35811 msgstr ""
35812
35813 #. type: textblock
35814 #: ../src/guestfs.pod:2711
35815 msgid ""
35816 "The daemon that runs inside the libguestfs appliance and carries out actions."
35817 msgstr ""
35818
35819 #. type: =item
35820 #: ../src/guestfs.pod:2714
35821 msgid "C<df>"
35822 msgstr ""
35823
35824 #. type: textblock
35825 #: ../src/guestfs.pod:2716
35826 msgid "L<virt-df(1)> command and documentation."
35827 msgstr ""
35828
35829 #. type: =item
35830 #: ../src/guestfs.pod:2718
35831 msgid "C<edit>"
35832 msgstr ""
35833
35834 #. type: textblock
35835 #: ../src/guestfs.pod:2720
35836 msgid "L<virt-edit(1)> command and documentation."
35837 msgstr ""
35838
35839 #. type: =item
35840 #: ../src/guestfs.pod:2722
35841 msgid "C<examples>"
35842 msgstr ""
35843
35844 #. type: textblock
35845 #: ../src/guestfs.pod:2724
35846 msgid "C API example code."
35847 msgstr ""
35848
35849 #. type: =item
35850 #: ../src/guestfs.pod:2726
35851 msgid "C<fish>"
35852 msgstr ""
35853
35854 #. type: textblock
35855 #: ../src/guestfs.pod:2728
35856 msgid ""
35857 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
35858 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
35859 "L<virt-tar-out(1)>."
35860 msgstr ""
35861
35862 #. type: =item
35863 #: ../src/guestfs.pod:2732
35864 msgid "C<fuse>"
35865 msgstr ""
35866
35867 #. type: textblock
35868 #: ../src/guestfs.pod:2734
35869 msgid ""
35870 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
35871 msgstr ""
35872
35873 #. type: =item
35874 #: ../src/guestfs.pod:2736
35875 msgid "C<generator>"
35876 msgstr ""
35877
35878 #. type: textblock
35879 #: ../src/guestfs.pod:2738
35880 msgid ""
35881 "The crucially important generator, used to automatically generate large "
35882 "amounts of boilerplate C code for things like RPC and bindings."
35883 msgstr ""
35884
35885 #. type: =item
35886 #: ../src/guestfs.pod:2741
35887 msgid "C<images>"
35888 msgstr ""
35889
35890 #. type: textblock
35891 #: ../src/guestfs.pod:2743
35892 msgid "Files used by the test suite."
35893 msgstr ""
35894
35895 #. type: textblock
35896 #: ../src/guestfs.pod:2745
35897 msgid "Some \"phony\" guest images which we test against."
35898 msgstr ""
35899
35900 #. type: =item
35901 #: ../src/guestfs.pod:2747
35902 msgid "C<inspector>"
35903 msgstr ""
35904
35905 #. type: textblock
35906 #: ../src/guestfs.pod:2749
35907 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
35908 msgstr ""
35909
35910 #. type: =item
35911 #: ../src/guestfs.pod:2751
35912 msgid "C<logo>"
35913 msgstr ""
35914
35915 #. type: textblock
35916 #: ../src/guestfs.pod:2753
35917 msgid "Logo used on the website.  The fish is called Arthur by the way."
35918 msgstr ""
35919
35920 #. type: =item
35921 #: ../src/guestfs.pod:2755
35922 msgid "C<m4>"
35923 msgstr ""
35924
35925 #. type: textblock
35926 #: ../src/guestfs.pod:2757
35927 msgid "M4 macros used by autoconf."
35928 msgstr ""
35929
35930 #. type: =item
35931 #: ../src/guestfs.pod:2759
35932 msgid "C<po>"
35933 msgstr ""
35934
35935 #. type: textblock
35936 #: ../src/guestfs.pod:2761
35937 msgid "Translations of simple gettext strings."
35938 msgstr ""
35939
35940 #. type: =item
35941 #: ../src/guestfs.pod:2763
35942 msgid "C<po-docs>"
35943 msgstr ""
35944
35945 #. type: textblock
35946 #: ../src/guestfs.pod:2765
35947 msgid ""
35948 "The build infrastructure and PO files for translations of manpages and POD "
35949 "files.  Eventually this will be combined with the C<po> directory, but that "
35950 "is rather complicated."
35951 msgstr ""
35952
35953 #. type: =item
35954 #: ../src/guestfs.pod:2769
35955 msgid "C<regressions>"
35956 msgstr ""
35957
35958 #. type: textblock
35959 #: ../src/guestfs.pod:2771
35960 msgid "Regression tests."
35961 msgstr ""
35962
35963 #. type: =item
35964 #: ../src/guestfs.pod:2773
35965 msgid "C<rescue>"
35966 msgstr ""
35967
35968 #. type: textblock
35969 #: ../src/guestfs.pod:2775
35970 msgid "L<virt-rescue(1)> command and documentation."
35971 msgstr ""
35972
35973 #. type: =item
35974 #: ../src/guestfs.pod:2777
35975 msgid "C<src>"
35976 msgstr ""
35977
35978 #. type: textblock
35979 #: ../src/guestfs.pod:2779
35980 msgid "Source code to the C library."
35981 msgstr ""
35982
35983 #. type: =item
35984 #: ../src/guestfs.pod:2781
35985 msgid "C<tools>"
35986 msgstr ""
35987
35988 #. type: textblock
35989 #: ../src/guestfs.pod:2783
35990 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
35991 msgstr ""
35992
35993 #. type: =item
35994 #: ../src/guestfs.pod:2785
35995 msgid "C<test-tool>"
35996 msgstr ""
35997
35998 #. type: textblock
35999 #: ../src/guestfs.pod:2787
36000 msgid ""
36001 "Test tool for end users to test if their qemu/kernel combination will work "
36002 "with libguestfs."
36003 msgstr ""
36004
36005 #. type: =item
36006 #: ../src/guestfs.pod:2790
36007 msgid "C<csharp>"
36008 msgstr ""
36009
36010 #. type: =item
36011 #: ../src/guestfs.pod:2792
36012 msgid "C<haskell>"
36013 msgstr ""
36014
36015 #. type: =item
36016 #: ../src/guestfs.pod:2794
36017 msgid "C<java>"
36018 msgstr ""
36019
36020 #. type: =item
36021 #: ../src/guestfs.pod:2796
36022 msgid "C<ocaml>"
36023 msgstr ""
36024
36025 #. type: =item
36026 #: ../src/guestfs.pod:2798
36027 msgid "C<php>"
36028 msgstr ""
36029
36030 #. type: =item
36031 #: ../src/guestfs.pod:2800
36032 msgid "C<perl>"
36033 msgstr ""
36034
36035 #. type: =item
36036 #: ../src/guestfs.pod:2802
36037 msgid "C<python>"
36038 msgstr ""
36039
36040 #. type: =item
36041 #: ../src/guestfs.pod:2804
36042 msgid "C<ruby>"
36043 msgstr ""
36044
36045 #. type: textblock
36046 #: ../src/guestfs.pod:2806
36047 msgid "Language bindings."
36048 msgstr ""
36049
36050 #. type: =head2
36051 #: ../src/guestfs.pod:2810
36052 msgid "MAKING A STABLE RELEASE"
36053 msgstr ""
36054
36055 #. type: textblock
36056 #: ../src/guestfs.pod:2812
36057 msgid ""
36058 "When we make a stable release, there are several steps documented here.  See "
36059 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
36060 "branch policy."
36061 msgstr ""
36062
36063 #. type: textblock
36064 #: ../src/guestfs.pod:2820
36065 msgid ""
36066 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
36067 msgstr ""
36068
36069 #. type: textblock
36070 #: ../src/guestfs.pod:2825
36071 msgid "Finalize RELEASE-NOTES."
36072 msgstr ""
36073
36074 #. type: textblock
36075 #: ../src/guestfs.pod:2829
36076 msgid "Update ROADMAP."
36077 msgstr ""
36078
36079 #. type: textblock
36080 #: ../src/guestfs.pod:2833
36081 msgid "Run C<src/api-support/update-from-tarballs.sh>."
36082 msgstr ""
36083
36084 #. type: textblock
36085 #: ../src/guestfs.pod:2837
36086 msgid "Push and pull from Transifex."
36087 msgstr ""
36088
36089 #. type: textblock
36090 #: ../src/guestfs.pod:2839
36091 msgid "Run:"
36092 msgstr ""
36093
36094 #. type: verbatim
36095 #: ../src/guestfs.pod:2841
36096 #, no-wrap
36097 msgid ""
36098 " tx push -s\n"
36099 "\n"
36100 msgstr ""
36101
36102 #. type: textblock
36103 #: ../src/guestfs.pod:2843
36104 msgid "to push the latest POT files to Transifex.  Then run:"
36105 msgstr ""
36106
36107 #. type: verbatim
36108 #: ../src/guestfs.pod:2845
36109 #, no-wrap
36110 msgid ""
36111 " ./tx-pull.sh\n"
36112 "\n"
36113 msgstr ""
36114
36115 #. type: textblock
36116 #: ../src/guestfs.pod:2847
36117 msgid "which is a wrapper to pull the latest translated C<*.po> files."
36118 msgstr ""
36119
36120 #. type: textblock
36121 #: ../src/guestfs.pod:2851
36122 msgid ""
36123 "Create new stable and development directories under L<http://libguestfs.org/"
36124 "download>."
36125 msgstr ""
36126
36127 #. type: textblock
36128 #: ../src/guestfs.pod:2856
36129 msgid "Create the branch in git:"
36130 msgstr ""
36131
36132 #. type: verbatim
36133 #: ../src/guestfs.pod:2858
36134 #, no-wrap
36135 msgid ""
36136 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
36137 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
36138 " git branch stable-1.XX\n"
36139 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
36140 "\n"
36141 msgstr ""
36142
36143 #. type: =head1
36144 #: ../src/guestfs.pod:2865
36145 msgid "LIMITS"
36146 msgstr ""
36147
36148 #. type: =head2
36149 #: ../src/guestfs.pod:2867
36150 msgid "PROTOCOL LIMITS"
36151 msgstr ""
36152
36153 #. type: textblock
36154 #: ../src/guestfs.pod:2869
36155 msgid ""
36156 "Internally libguestfs uses a message-based protocol to pass API calls and "
36157 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
36158 "plenty more detail about this).  The maximum message size used by the "
36159 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
36160 "aware of this limit.  The API calls which may be affected are individually "
36161 "documented, with a link back to this section of the documentation."
36162 msgstr ""
36163
36164 #. type: textblock
36165 #: ../src/guestfs.pod:2877
36166 msgid ""
36167 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
36168 "a simple string.  Because this string is at some point internally encoded as "
36169 "a message, the maximum size that it can return is slightly under 4 MB.  If "
36170 "the requested file is larger than this then you will get an error."
36171 msgstr ""
36172
36173 #. type: textblock
36174 #: ../src/guestfs.pod:2883
36175 msgid ""
36176 "In order to transfer large files into and out of the guest filesystem, you "
36177 "need to use particular calls that support this.  The sections L</UPLOADING> "
36178 "and L</DOWNLOADING> document how to do this."
36179 msgstr ""
36180
36181 #. type: textblock
36182 #: ../src/guestfs.pod:2887
36183 msgid ""
36184 "You might also consider mounting the disk image using our FUSE filesystem "
36185 "support (L<guestmount(1)>)."
36186 msgstr ""
36187
36188 #. type: =head2
36189 #: ../src/guestfs.pod:2890
36190 msgid "MAXIMUM NUMBER OF DISKS"
36191 msgstr ""
36192
36193 #. type: textblock
36194 #: ../src/guestfs.pod:2892
36195 msgid "When using virtio disks (the default) the current limit is B<25> disks."
36196 msgstr ""
36197
36198 #. type: textblock
36199 #: ../src/guestfs.pod:2895
36200 msgid ""
36201 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
36202 "slots.  However febootstrap only understands disks with names C</dev/vda> "
36203 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
36204 "purposes."
36205 msgstr ""
36206
36207 #. type: textblock
36208 #: ../src/guestfs.pod:2900
36209 msgid ""
36210 "We are working to substantially raise this limit in future versions but it "
36211 "requires complex changes to qemu."
36212 msgstr ""
36213
36214 #. type: textblock
36215 #: ../src/guestfs.pod:2903
36216 msgid ""
36217 "In future versions of libguestfs it should also be possible to \"hot plug\" "
36218 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
36219 "requires changes to qemu."
36220 msgstr ""
36221
36222 #. type: =head2
36223 #: ../src/guestfs.pod:2907
36224 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
36225 msgstr ""
36226
36227 #. type: textblock
36228 #: ../src/guestfs.pod:2909
36229 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
36230 msgstr ""
36231
36232 #. type: textblock
36233 #: ../src/guestfs.pod:2911
36234 msgid ""
36235 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
36236 "vda>, and C</dev/vda1> through C</dev/vda15>)."
36237 msgstr ""
36238
36239 #. type: textblock
36240 #: ../src/guestfs.pod:2914
36241 msgid ""
36242 "If you attach a disk with more than 15 partitions, the extra partitions are "
36243 "ignored by libguestfs."
36244 msgstr ""
36245
36246 #. type: =head2
36247 #: ../src/guestfs.pod:2917
36248 msgid "MAXIMUM SIZE OF A DISK"
36249 msgstr ""
36250
36251 #. type: textblock
36252 #: ../src/guestfs.pod:2919
36253 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
36254 msgstr ""
36255
36256 #. type: textblock
36257 #: ../src/guestfs.pod:2921
36258 msgid ""
36259 "We have tested block devices up to 1 exabyte (2**60 or "
36260 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
36261 "filesystem."
36262 msgstr ""
36263
36264 #. type: textblock
36265 #: ../src/guestfs.pod:2925
36266 msgid ""
36267 "Although libguestfs probably does not impose any limit, the underlying host "
36268 "storage will.  If you store disk images on a host ext4 filesystem, then the "
36269 "maximum size will be limited by the maximum ext4 file size (currently 16 "
36270 "TB).  If you store disk images as host logical volumes then you are limited "
36271 "by the maximum size of an LV."
36272 msgstr ""
36273
36274 #. type: textblock
36275 #: ../src/guestfs.pod:2931
36276 msgid ""
36277 "For the hugest disk image files, we recommend using XFS on the host for "
36278 "storage."
36279 msgstr ""
36280
36281 #. type: =head2
36282 #: ../src/guestfs.pod:2934
36283 msgid "MAXIMUM SIZE OF A PARTITION"
36284 msgstr ""
36285
36286 #. type: textblock
36287 #: ../src/guestfs.pod:2936
36288 msgid ""
36289 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
36290 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
36291 "address a partition located beyond 2 TB on the disk."
36292 msgstr ""
36293
36294 #. type: textblock
36295 #: ../src/guestfs.pod:2940
36296 msgid ""
36297 "It is recommended that you use GPT partitions on disks which are larger than "
36298 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
36299 "which are theoretically larger than the largest disk we could support."
36300 msgstr ""
36301
36302 #. type: =head2
36303 #: ../src/guestfs.pod:2945
36304 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
36305 msgstr ""
36306
36307 #. type: textblock
36308 #: ../src/guestfs.pod:2947
36309 msgid ""
36310 "This depends on the filesystem type.  libguestfs itself does not impose any "
36311 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
36312 "what these limits are."
36313 msgstr ""
36314
36315 #. type: =head2
36316 #: ../src/guestfs.pod:2951
36317 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
36318 msgstr ""
36319
36320 #. type: textblock
36321 #: ../src/guestfs.pod:2953
36322 msgid ""
36323 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
36324 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
36325 "uploads and downloads."
36326 msgstr ""
36327
36328 #. type: =head2
36329 #: ../src/guestfs.pod:2957
36330 msgid "INSPECTION LIMITS"
36331 msgstr ""
36332
36333 #. type: textblock
36334 #: ../src/guestfs.pod:2959
36335 msgid ""
36336 "The inspection code has several arbitrary limits on things like the size of "
36337 "Windows Registry hive it will read, and the length of product name.  These "
36338 "are intended to stop a malicious guest from consuming arbitrary amounts of "
36339 "memory and disk space on the host, and should not be reached in practice.  "
36340 "See the source code for more information."
36341 msgstr ""
36342
36343 #. type: textblock
36344 #: ../src/guestfs.pod:2985
36345 msgid ""
36346 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
36347 "effect as calling C<guestfs_set_verbose (g, 1)>."
36348 msgstr ""
36349
36350 #. type: textblock
36351 #: ../src/guestfs.pod:2997
36352 msgid ""
36353 "Set the path that libguestfs uses to search for a supermin appliance.  See "
36354 "the discussion of paths in section L</PATH> above."
36355 msgstr ""
36356
36357 #. type: textblock
36358 #: ../src/guestfs.pod:3006
36359 msgid "See also L</QEMU WRAPPERS> above."
36360 msgstr ""
36361
36362 #. type: textblock
36363 #: ../src/guestfs.pod:3010
36364 msgid ""
36365 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
36366 "effect as calling C<guestfs_set_trace (g, 1)>."
36367 msgstr ""
36368
36369 #. type: textblock
36370 #: ../src/guestfs.pod:3028
36371 msgid ""
36372 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
36373 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
36374 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
36375 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
36376 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
36377 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
36378 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
36379 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
36380 msgstr ""
36381
36382 #. type: textblock
36383 #: ../src/guestfs.pod:3058
36384 msgid ""
36385 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
36386 "(8)>, L<disktype(1)>."
36387 msgstr ""
36388
36389 #. type: =head1
36390 #: ../src/guestfs.pod:3065 ../tools/virt-make-fs.pl:553
36391 #: ../tools/virt-win-reg.pl:761
36392 msgid "BUGS"
36393 msgstr ""
36394
36395 #. type: textblock
36396 #: ../src/guestfs.pod:3067
36397 msgid "To get a list of bugs against libguestfs use this link:"
36398 msgstr ""
36399
36400 #. type: textblock
36401 #: ../src/guestfs.pod:3069
36402 msgid ""
36403 "L<https://bugzilla.redhat.com/buglist.cgi?"
36404 "component=libguestfs&product=Virtualization+Tools>"
36405 msgstr ""
36406
36407 #. type: textblock
36408 #: ../src/guestfs.pod:3071
36409 msgid "To report a new bug against libguestfs use this link:"
36410 msgstr ""
36411
36412 #. type: textblock
36413 #: ../src/guestfs.pod:3073
36414 msgid ""
36415 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
36416 "component=libguestfs&product=Virtualization+Tools>"
36417 msgstr ""
36418
36419 #. type: textblock
36420 #: ../src/guestfs.pod:3075
36421 msgid "When reporting a bug, please check:"
36422 msgstr ""
36423
36424 #. type: textblock
36425 #: ../src/guestfs.pod:3081
36426 msgid "That the bug hasn't been reported already."
36427 msgstr ""
36428
36429 #. type: textblock
36430 #: ../src/guestfs.pod:3085
36431 msgid "That you are testing a recent version."
36432 msgstr ""
36433
36434 #. type: textblock
36435 #: ../src/guestfs.pod:3089
36436 msgid "Describe the bug accurately, and give a way to reproduce it."
36437 msgstr ""
36438
36439 #. type: textblock
36440 #: ../src/guestfs.pod:3093
36441 msgid ""
36442 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
36443 "bug report."
36444 msgstr ""
36445
36446 #. type: textblock
36447 #: ../test-tool/libguestfs-test-tool.pod:5
36448 msgid "libguestfs-test-tool - End user tests for libguestfs"
36449 msgstr ""
36450
36451 #. type: verbatim
36452 #: ../test-tool/libguestfs-test-tool.pod:9
36453 #, no-wrap
36454 msgid ""
36455 " libguestfs-test-tool [--options]\n"
36456 "\n"
36457 msgstr ""
36458
36459 #. type: textblock
36460 #: ../test-tool/libguestfs-test-tool.pod:13
36461 msgid ""
36462 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
36463 "and developers, to allow them to check basic libguestfs functionality is "
36464 "working.  This is needed because libguestfs occasionally breaks for reasons "
36465 "beyond our control: usually because of changes in the underlying qemu or "
36466 "kernel packages, or the host environment."
36467 msgstr ""
36468
36469 #. type: textblock
36470 #: ../test-tool/libguestfs-test-tool.pod:20
36471 msgid "If you suspect a problem in libguestfs, then just run:"
36472 msgstr ""
36473
36474 #. type: verbatim
36475 #: ../test-tool/libguestfs-test-tool.pod:22
36476 #, no-wrap
36477 msgid ""
36478 " libguestfs-test-tool\n"
36479 "\n"
36480 msgstr ""
36481
36482 #. type: textblock
36483 #: ../test-tool/libguestfs-test-tool.pod:24
36484 msgid "It will print lots of diagnostic messages."
36485 msgstr ""
36486
36487 #. type: textblock
36488 #: ../test-tool/libguestfs-test-tool.pod:26
36489 msgid "If it runs to completion successfully, you will see this near the end:"
36490 msgstr ""
36491
36492 #. type: verbatim
36493 #: ../test-tool/libguestfs-test-tool.pod:28
36494 #, no-wrap
36495 msgid ""
36496 " ===== TEST FINISHED OK =====\n"
36497 "\n"
36498 msgstr ""
36499
36500 #. type: textblock
36501 #: ../test-tool/libguestfs-test-tool.pod:30
36502 msgid "and the test tool will exit with code 0."
36503 msgstr ""
36504
36505 #. type: textblock
36506 #: ../test-tool/libguestfs-test-tool.pod:32
36507 msgid ""
36508 "If it fails (and/or exits with non-zero error code), please paste the "
36509 "B<complete, unedited> output of the test tool into a bug report.  More "
36510 "information about reporting bugs can be found on the L<http://libguestfs.org/"
36511 "> website."
36512 msgstr ""
36513
36514 #. type: =item
36515 #: ../test-tool/libguestfs-test-tool.pod:41
36516 msgid "I<--help>"
36517 msgstr ""
36518
36519 #. type: textblock
36520 #: ../test-tool/libguestfs-test-tool.pod:43
36521 msgid "Display short usage information and exit."
36522 msgstr ""
36523
36524 #. type: =item
36525 #: ../test-tool/libguestfs-test-tool.pod:45
36526 msgid "I<--qemu qemu_binary>"
36527 msgstr ""
36528
36529 #. type: textblock
36530 #: ../test-tool/libguestfs-test-tool.pod:47
36531 msgid ""
36532 "If you have downloaded another qemu binary, point this option at the full "
36533 "path of the binary to try it."
36534 msgstr ""
36535
36536 #. type: =item
36537 #: ../test-tool/libguestfs-test-tool.pod:50
36538 msgid "I<--qemudir qemu_source_dir>"
36539 msgstr ""
36540
36541 #. type: textblock
36542 #: ../test-tool/libguestfs-test-tool.pod:52
36543 msgid ""
36544 "If you have compiled qemu from source, point this option at the source "
36545 "directory to try it."
36546 msgstr ""
36547
36548 #. type: =item
36549 #: ../test-tool/libguestfs-test-tool.pod:55
36550 msgid "I<--timeout N>"
36551 msgstr ""
36552
36553 #. type: textblock
36554 #: ../test-tool/libguestfs-test-tool.pod:57
36555 msgid ""
36556 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
36557 "does not usually need to be adjusted unless your machine is very slow."
36558 msgstr ""
36559
36560 #. type: =head1
36561 #: ../test-tool/libguestfs-test-tool.pod:63
36562 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
36563 msgstr ""
36564
36565 #. type: textblock
36566 #: ../test-tool/libguestfs-test-tool.pod:65
36567 msgid ""
36568 "If you have compiled another version of qemu from source and would like to "
36569 "try that, then you can use the I<--qemudir> option to point to the qemu "
36570 "source directory."
36571 msgstr ""
36572
36573 #. type: textblock
36574 #: ../test-tool/libguestfs-test-tool.pod:69
36575 msgid ""
36576 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
36577 "option to point to the binary."
36578 msgstr ""
36579
36580 #. type: textblock
36581 #: ../test-tool/libguestfs-test-tool.pod:72
36582 msgid ""
36583 "When using an alternate qemu with libguestfs, usually you would need to "
36584 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
36585 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
36586 "use either of the I<--qemudir> or I<--qemu> options."
36587 msgstr ""
36588
36589 #. type: textblock
36590 #: ../test-tool/libguestfs-test-tool.pod:79
36591 msgid ""
36592 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
36593 "I<1> if there was an error."
36594 msgstr ""
36595
36596 #. type: textblock
36597 #: ../test-tool/libguestfs-test-tool.pod:84
36598 msgid ""
36599 "For the full list of environment variables which may affect libguestfs, "
36600 "please see the L<guestfs(3)> manual page."
36601 msgstr ""
36602
36603 #. type: textblock
36604 #: ../test-tool/libguestfs-test-tool.pod:89
36605 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
36606 msgstr ""
36607
36608 #. type: textblock
36609 #: ../tools/virt-list-filesystems.pl:32
36610 msgid ""
36611 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
36612 msgstr ""
36613
36614 #. type: verbatim
36615 #: ../tools/virt-list-filesystems.pl:36
36616 #, no-wrap
36617 msgid ""
36618 " virt-list-filesystems [--options] domname\n"
36619 "\n"
36620 msgstr ""
36621
36622 #. type: verbatim
36623 #: ../tools/virt-list-filesystems.pl:38
36624 #, no-wrap
36625 msgid ""
36626 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
36627 "\n"
36628 msgstr ""
36629
36630 #. type: textblock
36631 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
36632 msgid ""
36633 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
36634 "replacement."
36635 msgstr ""
36636
36637 #. type: textblock
36638 #: ../tools/virt-list-filesystems.pl:45
36639 msgid ""
36640 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
36641 "are contained in a virtual machine or disk image."
36642 msgstr ""
36643
36644 #. type: textblock
36645 #: ../tools/virt-list-filesystems.pl:49
36646 msgid ""
36647 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
36648 "functionality.  For more complex cases you should look at the L<guestfish(1)"
36649 "> tool."
36650 msgstr ""
36651
36652 #. type: textblock
36653 #: ../tools/virt-list-filesystems.pl:112
36654 msgid ""
36655 "With this option, C<virt-list-filesystems> displays the type of each "
36656 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
36657 msgstr ""
36658
36659 #. type: =item
36660 #: ../tools/virt-list-filesystems.pl:119
36661 msgid "B<-a>"
36662 msgstr ""
36663
36664 #. type: textblock
36665 #: ../tools/virt-list-filesystems.pl:123
36666 msgid ""
36667 "Normally we only show mountable filesystems.  If this option is given then "
36668 "swap devices are shown too."
36669 msgstr ""
36670
36671 #. type: textblock
36672 #: ../tools/virt-list-filesystems.pl:197
36673 msgid ""
36674 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
36675 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
36676 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
36681 msgid "Copyright (C) 2009 Red Hat Inc."
36682 msgstr ""
36683
36684 #. type: textblock
36685 #: ../tools/virt-list-partitions.pl:32
36686 msgid ""
36687 "virt-list-partitions - List partitions in a virtual machine or disk image"
36688 msgstr ""
36689
36690 #. type: verbatim
36691 #: ../tools/virt-list-partitions.pl:36
36692 #, no-wrap
36693 msgid ""
36694 " virt-list-partitions [--options] domname\n"
36695 "\n"
36696 msgstr ""
36697
36698 #. type: verbatim
36699 #: ../tools/virt-list-partitions.pl:38
36700 #, no-wrap
36701 msgid ""
36702 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
36703 "\n"
36704 msgstr ""
36705
36706 #. type: textblock
36707 #: ../tools/virt-list-partitions.pl:45
36708 msgid ""
36709 "C<virt-list-partitions> is a command line tool to list the partitions that "
36710 "are contained in a virtual machine or disk image.  It is mainly useful as a "
36711 "first step to using L<virt-resize(1)>."
36712 msgstr ""
36713
36714 #. type: textblock
36715 #: ../tools/virt-list-partitions.pl:50
36716 msgid ""
36717 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
36718 "functionality.  For more complex cases you should look at the L<guestfish(1)"
36719 "> tool."
36720 msgstr ""
36721
36722 #. type: textblock
36723 #: ../tools/virt-list-partitions.pl:113
36724 msgid "Show sizes in human-readable form (eg. \"1G\")."
36725 msgstr ""
36726
36727 #. type: textblock
36728 #: ../tools/virt-list-partitions.pl:123
36729 msgid ""
36730 "With this option, C<virt-list-partitions> displays the type and size of each "
36731 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
36732 msgstr ""
36733
36734 #. type: =item
36735 #: ../tools/virt-list-partitions.pl:130
36736 msgid "B<-t>"
36737 msgstr ""
36738
36739 #. type: =item
36740 #: ../tools/virt-list-partitions.pl:132
36741 msgid "B<--total>"
36742 msgstr ""
36743
36744 #. type: textblock
36745 #: ../tools/virt-list-partitions.pl:134
36746 msgid ""
36747 "Display the total size of each block device (as a separate row or rows)."
36748 msgstr ""
36749
36750 #. type: textblock
36751 #: ../tools/virt-list-partitions.pl:267
36752 msgid ""
36753 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
36754 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
36755 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36756 msgstr ""
36757
36758 #. type: textblock
36759 #: ../tools/virt-list-partitions.pl:283
36760 msgid "Copyright (C) 2009-2010 Red Hat Inc."
36761 msgstr ""
36762
36763 #. type: textblock
36764 #: ../tools/virt-make-fs.pl:37
36765 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
36766 msgstr ""
36767
36768 #. type: verbatim
36769 #: ../tools/virt-make-fs.pl:41
36770 #, no-wrap
36771 msgid ""
36772 " virt-make-fs [--options] input.tar output.img\n"
36773 "\n"
36774 msgstr ""
36775
36776 #. type: verbatim
36777 #: ../tools/virt-make-fs.pl:43
36778 #, no-wrap
36779 msgid ""
36780 " virt-make-fs [--options] input.tar.gz output.img\n"
36781 "\n"
36782 msgstr ""
36783
36784 #. type: verbatim
36785 #: ../tools/virt-make-fs.pl:45
36786 #, no-wrap
36787 msgid ""
36788 " virt-make-fs [--options] directory output.img\n"
36789 "\n"
36790 msgstr ""
36791
36792 #. type: textblock
36793 #: ../tools/virt-make-fs.pl:49
36794 msgid ""
36795 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
36796 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
36797 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
36798 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
36799 "you want to attach these filesystems to existing virtual machines (eg. to "
36800 "import large amounts of read-only data to a VM)."
36801 msgstr ""
36802
36803 #. type: textblock
36804 #: ../tools/virt-make-fs.pl:57
36805 msgid "Basic usage is:"
36806 msgstr ""
36807
36808 #. type: verbatim
36809 #: ../tools/virt-make-fs.pl:59
36810 #, no-wrap
36811 msgid ""
36812 " virt-make-fs input output\n"
36813 "\n"
36814 msgstr ""
36815
36816 #. type: textblock
36817 #: ../tools/virt-make-fs.pl:61
36818 msgid ""
36819 "where C<input> is either a directory containing files that you want to add, "
36820 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
36821 "C<output> is a disk image.  The input type is detected automatically.  The "
36822 "output disk image defaults to a raw ext2 image unless you specify extra "
36823 "flags (see L</OPTIONS> below)."
36824 msgstr ""
36825
36826 #. type: =head2
36827 #: ../tools/virt-make-fs.pl:67
36828 msgid "EXTRA SPACE"
36829 msgstr ""
36830
36831 #. type: textblock
36832 #: ../tools/virt-make-fs.pl:69
36833 msgid ""
36834 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
36835 "the files that it contains, but might have extra space.  Depending on how "
36836 "you are going to use the output, you might think this extra space is wasted "
36837 "and want to minimize it, or you might want to leave space so that more files "
36838 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
36839 "but you can use the I<--size> flag to leave space in the filesystem if you "
36840 "want it."
36841 msgstr ""
36842
36843 #. type: textblock
36844 #: ../tools/virt-make-fs.pl:77
36845 msgid ""
36846 "An alternative way to leave extra space but not make the output image any "
36847 "bigger is to use an alternative disk image format (instead of the default "
36848 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
36849 "image format (check your hypervisor supports this before using it).  This "
36850 "allows you to choose a large I<--size> but the extra space won't actually be "
36851 "allocated in the image until you try to store something in it."
36852 msgstr ""
36853
36854 #. type: textblock
36855 #: ../tools/virt-make-fs.pl:85
36856 msgid ""
36857 "Don't forget that you can also use local commands including L<resize2fs(8)> "
36858 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
36859 "to build another image from scratch."
36860 msgstr ""
36861
36862 #. type: =head3
36863 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
36864 #: ../tools/virt-make-fs.pl:142
36865 msgid "EXAMPLE"
36866 msgstr ""
36867
36868 #. type: verbatim
36869 #: ../tools/virt-make-fs.pl:91
36870 #, no-wrap
36871 msgid ""
36872 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
36873 "\n"
36874 msgstr ""
36875
36876 #. type: =head2
36877 #: ../tools/virt-make-fs.pl:93
36878 msgid "FILESYSTEM TYPE"
36879 msgstr ""
36880
36881 #. type: textblock
36882 #: ../tools/virt-make-fs.pl:95
36883 msgid ""
36884 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
36885 "libguestfs supports can be used (but I<not> read-only formats like "
36886 "ISO9660).  Here are some of the more common choices:"
36887 msgstr ""
36888
36889 #. type: =item
36890 #: ../tools/virt-make-fs.pl:101
36891 msgid "I<ext3>"
36892 msgstr ""
36893
36894 #. type: textblock
36895 #: ../tools/virt-make-fs.pl:103
36896 msgid ""
36897 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
36898 "you are not going to use the filesystem in a way that requires the journal, "
36899 "then this is just wasted overhead."
36900 msgstr ""
36901
36902 #. type: =item
36903 #: ../tools/virt-make-fs.pl:107
36904 msgid "I<ntfs> or I<vfat>"
36905 msgstr ""
36906
36907 #. type: textblock
36908 #: ../tools/virt-make-fs.pl:109
36909 msgid "Useful if exporting data to a Windows guest."
36910 msgstr ""
36911
36912 #. type: textblock
36913 #: ../tools/virt-make-fs.pl:111
36914 msgid ""
36915 "I<Note for vfat>: The tar archive or local directory must only contain files "
36916 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
36917 "program running within libguestfs is unable to change the ownership of non-"
36918 "root files, since vfat itself does not support this."
36919 msgstr ""
36920
36921 #. type: =item
36922 #: ../tools/virt-make-fs.pl:116
36923 msgid "I<minix>"
36924 msgstr ""
36925
36926 #. type: textblock
36927 #: ../tools/virt-make-fs.pl:118
36928 msgid ""
36929 "Lower overhead than C<ext2>, but certain limitations on filename length and "
36930 "total filesystem size."
36931 msgstr ""
36932
36933 #. type: verbatim
36934 #: ../tools/virt-make-fs.pl:125
36935 #, no-wrap
36936 msgid ""
36937 " virt-make-fs --type=minix input minixfs.img\n"
36938 "\n"
36939 msgstr ""
36940
36941 #. type: =head2
36942 #: ../tools/virt-make-fs.pl:127
36943 msgid "TO PARTITION OR NOT TO PARTITION"
36944 msgstr ""
36945
36946 #. type: textblock
36947 #: ../tools/virt-make-fs.pl:129
36948 msgid "Optionally virt-make-fs can add a partition table to the output disk."
36949 msgstr ""
36950
36951 #. type: textblock
36952 #: ../tools/virt-make-fs.pl:131
36953 msgid ""
36954 "Adding a partition can make the disk image more compatible with certain "
36955 "virtualized operating systems which don't expect to see a filesystem "
36956 "directly located on a block device (Linux doesn't care and will happily "
36957 "handle both types)."
36958 msgstr ""
36959
36960 #. type: textblock
36961 #: ../tools/virt-make-fs.pl:136
36962 msgid ""
36963 "On the other hand, if you have a partition table then the output image is no "
36964 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
36965 "directly on a partitioned disk image.  (However libguestfs tools such as "
36966 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
36967 msgstr ""
36968
36969 #. type: textblock
36970 #: ../tools/virt-make-fs.pl:144
36971 msgid "Add an MBR partition:"
36972 msgstr ""
36973
36974 #. type: verbatim
36975 #: ../tools/virt-make-fs.pl:146
36976 #, no-wrap
36977 msgid ""
36978 " virt-make-fs --partition -- input disk.img\n"
36979 "\n"
36980 msgstr ""
36981
36982 #. type: textblock
36983 #: ../tools/virt-make-fs.pl:148
36984 msgid ""
36985 "If the output disk image could be terabyte-sized or larger, it's better to "
36986 "use an EFI/GPT-compatible partition table:"
36987 msgstr ""
36988
36989 #. type: verbatim
36990 #: ../tools/virt-make-fs.pl:151
36991 #, no-wrap
36992 msgid ""
36993 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
36994 "\n"
36995 msgstr ""
36996
36997 #. type: textblock
36998 #: ../tools/virt-make-fs.pl:179
36999 msgid "Enable debugging information."
37000 msgstr ""
37001
37002 #. type: =item
37003 #: ../tools/virt-make-fs.pl:185
37004 msgid "B<--size=E<lt>NE<gt>>"
37005 msgstr ""
37006
37007 #. type: =item
37008 #: ../tools/virt-make-fs.pl:187
37009 msgid "B<--size=+E<lt>NE<gt>>"
37010 msgstr ""
37011
37012 #. type: =item
37013 #: ../tools/virt-make-fs.pl:189
37014 msgid "B<-s E<lt>NE<gt>>"
37015 msgstr ""
37016
37017 #. type: =item
37018 #: ../tools/virt-make-fs.pl:191
37019 msgid "B<-s +E<lt>NE<gt>>"
37020 msgstr ""
37021
37022 #. type: textblock
37023 #: ../tools/virt-make-fs.pl:193
37024 msgid ""
37025 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
37026 msgstr ""
37027
37028 #. type: textblock
37029 #: ../tools/virt-make-fs.pl:196
37030 msgid ""
37031 "If this option is I<not> given, then the output image will be just large "
37032 "enough to contain all the files, with not much wasted space."
37033 msgstr ""
37034
37035 #. type: textblock
37036 #: ../tools/virt-make-fs.pl:199
37037 msgid ""
37038 "To choose a fixed size output disk, specify an absolute number followed by b/"
37039 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37040 "Petabytes or Exabytes.  This must be large enough to contain all the input "
37041 "files, else you will get an error."
37042 msgstr ""
37043
37044 #. type: textblock
37045 #: ../tools/virt-make-fs.pl:204
37046 msgid ""
37047 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
37048 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37049 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
37050 "the input files, and (approximately) an extra 200 MB free space."
37051 msgstr ""
37052
37053 #. type: textblock
37054 #: ../tools/virt-make-fs.pl:210
37055 msgid ""
37056 "Note that virt-make-fs estimates free space, and therefore will not produce "
37057 "filesystems containing precisely the free space requested.  (It is much more "
37058 "expensive and time-consuming to produce a filesystem which has precisely the "
37059 "desired free space)."
37060 msgstr ""
37061
37062 #. type: =item
37063 #: ../tools/virt-make-fs.pl:219
37064 msgid "B<--format=E<lt>fmtE<gt>>"
37065 msgstr ""
37066
37067 #. type: =item
37068 #: ../tools/virt-make-fs.pl:221
37069 msgid "B<-F E<lt>fmtE<gt>>"
37070 msgstr ""
37071
37072 #. type: textblock
37073 #: ../tools/virt-make-fs.pl:223
37074 msgid "Choose the output disk image format."
37075 msgstr ""
37076
37077 #. type: textblock
37078 #: ../tools/virt-make-fs.pl:225
37079 msgid "The default is C<raw> (raw disk image)."
37080 msgstr ""
37081
37082 #. type: textblock
37083 #: ../tools/virt-make-fs.pl:227
37084 msgid ""
37085 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
37086 "that would really make sense here is C<qcow2>."
37087 msgstr ""
37088
37089 #. type: =item
37090 #: ../tools/virt-make-fs.pl:234
37091 msgid "B<--type=E<lt>fsE<gt>>"
37092 msgstr ""
37093
37094 #. type: =item
37095 #: ../tools/virt-make-fs.pl:236
37096 msgid "B<-t E<lt>fsE<gt>>"
37097 msgstr ""
37098
37099 #. type: textblock
37100 #: ../tools/virt-make-fs.pl:238
37101 msgid "Choose the output filesystem type."
37102 msgstr ""
37103
37104 #. type: textblock
37105 #: ../tools/virt-make-fs.pl:240
37106 msgid "The default is C<ext2>."
37107 msgstr ""
37108
37109 #. type: textblock
37110 #: ../tools/virt-make-fs.pl:242
37111 msgid ""
37112 "Any filesystem which is supported read-write by libguestfs can be used here."
37113 msgstr ""
37114
37115 #. type: =item
37116 #: ../tools/virt-make-fs.pl:249
37117 msgid "B<--partition>"
37118 msgstr ""
37119
37120 #. type: =item
37121 #: ../tools/virt-make-fs.pl:251
37122 msgid "B<--partition=E<lt>parttypeE<gt>>"
37123 msgstr ""
37124
37125 #. type: textblock
37126 #: ../tools/virt-make-fs.pl:253
37127 msgid ""
37128 "If specified, this flag adds an MBR partition table to the output disk image."
37129 msgstr ""
37130
37131 #. type: textblock
37132 #: ../tools/virt-make-fs.pl:256
37133 msgid ""
37134 "You can change the partition table type, eg. I<--partition=gpt> for large "
37135 "disks."
37136 msgstr ""
37137
37138 #. type: textblock
37139 #: ../tools/virt-make-fs.pl:259
37140 msgid ""
37141 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
37142 "might consider the next parameter to be the partition type.  For example:"
37143 msgstr ""
37144
37145 #. type: verbatim
37146 #: ../tools/virt-make-fs.pl:263
37147 #, no-wrap
37148 msgid ""
37149 " virt-make-fs --partition input.tar ...\n"
37150 "\n"
37151 msgstr ""
37152
37153 #. type: textblock
37154 #: ../tools/virt-make-fs.pl:265
37155 msgid ""
37156 "would cause virt-make-fs to think you wanted to use a partition type of "
37157 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
37158 "dash) between options and the input file argument:"
37159 msgstr ""
37160
37161 #. type: verbatim
37162 #: ../tools/virt-make-fs.pl:269
37163 #, no-wrap
37164 msgid ""
37165 " virt-make-fs --partition -- input.tar ...\n"
37166 "\n"
37167 msgstr ""
37168
37169 #. type: textblock
37170 #: ../tools/virt-make-fs.pl:541
37171 msgid ""
37172 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
37173 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
37174 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
37175 msgstr ""
37176
37177 #. type: textblock
37178 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
37179 msgid ""
37180 "When reporting bugs, please enable debugging and capture the I<complete> "
37181 "output:"
37182 msgstr ""
37183
37184 #. type: verbatim
37185 #: ../tools/virt-make-fs.pl:558
37186 #, no-wrap
37187 msgid ""
37188 " export LIBGUESTFS_DEBUG=1\n"
37189 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
37190 "\n"
37191 msgstr ""
37192
37193 #. type: textblock
37194 #: ../tools/virt-make-fs.pl:561
37195 msgid ""
37196 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
37197 "redhat.com/>"
37198 msgstr ""
37199
37200 #. type: textblock
37201 #: ../tools/virt-tar.pl:33
37202 msgid "virt-tar - Extract or upload files to a virtual machine"
37203 msgstr ""
37204
37205 #. type: verbatim
37206 #: ../tools/virt-tar.pl:37
37207 #, no-wrap
37208 msgid ""
37209 " virt-tar [--options] -x domname directory tarball\n"
37210 "\n"
37211 msgstr ""
37212
37213 #. type: verbatim
37214 #: ../tools/virt-tar.pl:39
37215 #, no-wrap
37216 msgid ""
37217 " virt-tar [--options] -u domname tarball directory\n"
37218 "\n"
37219 msgstr ""
37220
37221 #. type: verbatim
37222 #: ../tools/virt-tar.pl:41
37223 #, no-wrap
37224 msgid ""
37225 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
37226 "\n"
37227 msgstr ""
37228
37229 #. type: verbatim
37230 #: ../tools/virt-tar.pl:43
37231 #, no-wrap
37232 msgid ""
37233 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
37234 "\n"
37235 msgstr ""
37236
37237 #. type: =head2
37238 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
37239 msgid "NOTE"
37240 msgstr ""
37241
37242 #. type: textblock
37243 #: ../tools/virt-tar.pl:47
37244 msgid ""
37245 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
37246 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
37247 msgstr ""
37248
37249 #. type: textblock
37250 #: ../tools/virt-tar.pl:52
37251 msgid "Download C</home> from the VM into a local tarball:"
37252 msgstr ""
37253
37254 #. type: verbatim
37255 #: ../tools/virt-tar.pl:54
37256 #, no-wrap
37257 msgid ""
37258 " virt-tar -x domname /home home.tar\n"
37259 "\n"
37260 msgstr ""
37261
37262 #. type: verbatim
37263 #: ../tools/virt-tar.pl:56
37264 #, no-wrap
37265 msgid ""
37266 " virt-tar -zx domname /home home.tar.gz\n"
37267 "\n"
37268 msgstr ""
37269
37270 #. type: textblock
37271 #: ../tools/virt-tar.pl:58
37272 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
37273 msgstr ""
37274
37275 #. type: verbatim
37276 #: ../tools/virt-tar.pl:60
37277 #, no-wrap
37278 msgid ""
37279 " virt-tar -u domname uploadstuff.tar /tmp\n"
37280 "\n"
37281 msgstr ""
37282
37283 #. type: verbatim
37284 #: ../tools/virt-tar.pl:62
37285 #, no-wrap
37286 msgid ""
37287 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
37288 "\n"
37289 msgstr ""
37290
37291 #. type: textblock
37292 #: ../tools/virt-tar.pl:66
37293 msgid ""
37294 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
37295 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
37296 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
37297 msgstr ""
37298
37299 #. type: textblock
37300 #: ../tools/virt-tar.pl:71
37301 msgid ""
37302 "You can use I<-x> (extract) on live virtual machines, but you might get "
37303 "inconsistent results or errors if there is filesystem activity inside the "
37304 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
37305 "work, but the only way to guarantee consistent results is if the virtual "
37306 "machine is shut down."
37307 msgstr ""
37308
37309 #. type: textblock
37310 #: ../tools/virt-tar.pl:79
37311 msgid ""
37312 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
37313 "parts of a guest filesystem.  There are many possibilities: making backups, "
37314 "uploading data files, snooping on guest activity, fixing or customizing "
37315 "guests, etc."
37316 msgstr ""
37317
37318 #. type: textblock
37319 #: ../tools/virt-tar.pl:84
37320 msgid ""
37321 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
37322 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
37323 "should look at the L<guestfish(1)> tool."
37324 msgstr ""
37325
37326 #. type: textblock
37327 #: ../tools/virt-tar.pl:88
37328 msgid ""
37329 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
37330 "its contents (recursively) from the virtual machine into a local tarball.  "
37331 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
37332 "virtual machine.  You cannot use these two options together."
37333 msgstr ""
37334
37335 #. type: textblock
37336 #: ../tools/virt-tar.pl:94
37337 msgid ""
37338 "In addition, you may need to use the I<-z> (gZip) option to enable "
37339 "compression.  When uploading, you have to specify I<-z> if the upload file "
37340 "is compressed because virt-tar won't detect this on its own."
37341 msgstr ""
37342
37343 #. type: textblock
37344 #: ../tools/virt-tar.pl:98
37345 msgid ""
37346 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
37347 "example it cannot do PKZip files or bzip2 compression.  If you want that "
37348 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
37349 "the L<libguestfs(3)> API)."
37350 msgstr ""
37351
37352 #. type: =item
37353 #: ../tools/virt-tar.pl:160
37354 msgid "B<--extract>"
37355 msgstr ""
37356
37357 #. type: =item
37358 #: ../tools/virt-tar.pl:162
37359 msgid "B<--download>"
37360 msgstr ""
37361
37362 #. type: =item
37363 #: ../tools/virt-tar.pl:164
37364 msgid "B<-u>"
37365 msgstr ""
37366
37367 #. type: =item
37368 #: ../tools/virt-tar.pl:166
37369 msgid "B<--upload>"
37370 msgstr ""
37371
37372 #. type: textblock
37373 #: ../tools/virt-tar.pl:168
37374 msgid ""
37375 "Use I<-x> to extract (download) a directory from a virtual machine to a "
37376 "local tarball."
37377 msgstr ""
37378
37379 #. type: textblock
37380 #: ../tools/virt-tar.pl:171
37381 msgid ""
37382 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
37383 "Please read the L</WARNING> section above before using this option."
37384 msgstr ""
37385
37386 #. type: textblock
37387 #: ../tools/virt-tar.pl:175
37388 msgid "You must specify exactly one of these options."
37389 msgstr ""
37390
37391 #. type: =item
37392 #: ../tools/virt-tar.pl:181
37393 msgid "B<-z>"
37394 msgstr ""
37395
37396 #. type: =item
37397 #: ../tools/virt-tar.pl:183
37398 msgid "B<--gzip>"
37399 msgstr ""
37400
37401 #. type: textblock
37402 #: ../tools/virt-tar.pl:185
37403 msgid "Specify that the input or output tarball is gzip-compressed."
37404 msgstr ""
37405
37406 #. type: textblock
37407 #: ../tools/virt-tar.pl:298
37408 msgid ""
37409 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
37410 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
37411 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
37412 "org/>."
37413 msgstr ""
37414
37415 #. type: textblock
37416 #: ../tools/virt-win-reg.pl:37
37417 msgid ""
37418 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
37419 msgstr ""
37420
37421 #. type: verbatim
37422 #: ../tools/virt-win-reg.pl:41
37423 #, no-wrap
37424 msgid ""
37425 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
37426 "\n"
37427 msgstr ""
37428
37429 #. type: verbatim
37430 #: ../tools/virt-win-reg.pl:43
37431 #, no-wrap
37432 msgid ""
37433 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
37434 "\n"
37435 msgstr ""
37436
37437 #. type: verbatim
37438 #: ../tools/virt-win-reg.pl:45
37439 #, no-wrap
37440 msgid ""
37441 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
37442 "\n"
37443 msgstr ""
37444
37445 #. type: verbatim
37446 #: ../tools/virt-win-reg.pl:47
37447 #, no-wrap
37448 msgid ""
37449 " virt-win-reg --merge domname [input.reg ...]\n"
37450 "\n"
37451 msgstr ""
37452
37453 #. type: verbatim
37454 #: ../tools/virt-win-reg.pl:49
37455 #, no-wrap
37456 msgid ""
37457 " virt-win-reg [--options] disk.img ... # instead of domname\n"
37458 "\n"
37459 msgstr ""
37460
37461 #. type: textblock
37462 #: ../tools/virt-win-reg.pl:53
37463 msgid ""
37464 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
37465 "virtual machines.  If you do this, you I<will> get irreversible disk "
37466 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
37467 "but doesn't catch all cases."
37468 msgstr ""
37469
37470 #. type: textblock
37471 #: ../tools/virt-win-reg.pl:58
37472 msgid ""
37473 "Modifying the Windows Registry is an inherently risky operation.  The format "
37474 "is deliberately obscure and undocumented, and Registry changes can leave the "
37475 "system unbootable.  Therefore when using the I<--merge> option, make sure "
37476 "you have a reliable backup first."
37477 msgstr ""
37478
37479 #. type: textblock
37480 #: ../tools/virt-win-reg.pl:65
37481 msgid ""
37482 "This program can export and merge Windows Registry entries from a Windows "
37483 "guest."
37484 msgstr ""
37485
37486 #. type: textblock
37487 #: ../tools/virt-win-reg.pl:68
37488 msgid ""
37489 "The first parameter is the libvirt guest name or the raw disk image of a "
37490 "Windows guest."
37491 msgstr ""
37492
37493 #. type: textblock
37494 #: ../tools/virt-win-reg.pl:71
37495 msgid ""
37496 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
37497 "exported (recursively).  For example:"
37498 msgstr ""
37499
37500 #. type: verbatim
37501 #: ../tools/virt-win-reg.pl:74
37502 #, no-wrap
37503 msgid ""
37504 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
37505 "\n"
37506 msgstr ""
37507
37508 #. type: textblock
37509 #: ../tools/virt-win-reg.pl:76
37510 msgid ""
37511 "You can also display single values from within registry keys, for example:"
37512 msgstr ""
37513
37514 #. type: verbatim
37515 #: ../tools/virt-win-reg.pl:79
37516 #, no-wrap
37517 msgid ""
37518 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
37519 " $ virt-win-reg Windows7 $cvkey ProductName\n"
37520 " Windows 7 Enterprise\n"
37521 "\n"
37522 msgstr ""
37523
37524 #. type: textblock
37525 #: ../tools/virt-win-reg.pl:83
37526 msgid ""
37527 "With I<--merge>, you can merge a textual regedit file into the Windows "
37528 "Registry:"
37529 msgstr ""
37530
37531 #. type: verbatim
37532 #: ../tools/virt-win-reg.pl:86
37533 #, no-wrap
37534 msgid ""
37535 " $ virt-win-reg --merge Windows7 changes.reg\n"
37536 "\n"
37537 msgstr ""
37538
37539 #. type: textblock
37540 #: ../tools/virt-win-reg.pl:90
37541 msgid ""
37542 "This program is only meant for simple access to the registry.  If you want "
37543 "to do complicated things with the registry, we suggest you download the "
37544 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
37545 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
37546 "L<hivexregedit(1)>."
37547 msgstr ""
37548
37549 #. type: =item
37550 #: ../tools/virt-win-reg.pl:159
37551 msgid "B<--merge>"
37552 msgstr ""
37553
37554 #. type: textblock
37555 #: ../tools/virt-win-reg.pl:161
37556 msgid ""
37557 "In merge mode, this merges a textual regedit file into the Windows Registry "
37558 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
37559 "displays or exports Registry entries instead."
37560 msgstr ""
37561
37562 #. type: textblock
37563 #: ../tools/virt-win-reg.pl:165
37564 msgid ""
37565 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
37566 "result in disk corruption.  However exporting (without this flag)  is always "
37567 "safe."
37568 msgstr ""
37569
37570 #. type: =item
37571 #: ../tools/virt-win-reg.pl:173
37572 msgid "B<--encoding> UTF-16LE|ASCII"
37573 msgstr ""
37574
37575 #. type: textblock
37576 #: ../tools/virt-win-reg.pl:175
37577 msgid ""
37578 "When merging (only), you may need to specify the encoding for strings to be "
37579 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
37580 "(3)/ENCODING STRINGS>."
37581 msgstr ""
37582
37583 #. type: textblock
37584 #: ../tools/virt-win-reg.pl:179
37585 msgid ""
37586 "The default is to use UTF-16LE, which should work with recent versions of "
37587 "Windows."
37588 msgstr ""
37589
37590 #. type: =item
37591 #: ../tools/virt-win-reg.pl:186
37592 msgid "B<--unsafe-printable-strings>"
37593 msgstr ""
37594
37595 #. type: textblock
37596 #: ../tools/virt-win-reg.pl:188
37597 msgid ""
37598 "When exporting (only), assume strings are UTF-16LE and print them as strings "
37599 "instead of hex sequences.  Remove the final zero codepoint from strings if "
37600 "present."
37601 msgstr ""
37602
37603 #. type: textblock
37604 #: ../tools/virt-win-reg.pl:192
37605 msgid ""
37606 "This is unsafe and does not preserve the fidelity of strings in the original "
37607 "Registry for various reasons:"
37608 msgstr ""
37609
37610 #. type: textblock
37611 #: ../tools/virt-win-reg.pl:199
37612 msgid ""
37613 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
37614 "other encodings will be corrupted by this transformation."
37615 msgstr ""
37616
37617 #. type: textblock
37618 #: ../tools/virt-win-reg.pl:204
37619 msgid ""
37620 "Assumes that everything which has type 1 or 2 is really a string and that "
37621 "everything else is not a string, but the type field in real Registries is "
37622 "not reliable."
37623 msgstr ""
37624
37625 #. type: textblock
37626 #: ../tools/virt-win-reg.pl:210
37627 msgid ""
37628 "Loses information about whether a zero codepoint followed the string in the "
37629 "Registry or not."
37630 msgstr ""
37631
37632 #. type: textblock
37633 #: ../tools/virt-win-reg.pl:215
37634 msgid ""
37635 "This all happens because the Registry itself contains no information about "
37636 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
37637 msgstr ""
37638
37639 #. type: textblock
37640 #: ../tools/virt-win-reg.pl:219
37641 msgid ""
37642 "You should only use this option for quick hacking and debugging of the "
37643 "Registry contents, and I<never> use it if the output is going to be passed "
37644 "into another program or stored in another Registry."
37645 msgstr ""
37646
37647 #. type: =head1
37648 #: ../tools/virt-win-reg.pl:556
37649 msgid "SUPPORTED SYSTEMS"
37650 msgstr ""
37651
37652 #. type: textblock
37653 #: ../tools/virt-win-reg.pl:558
37654 msgid ""
37655 "The program currently supports Windows NT-derived guests starting with "
37656 "Windows XP through to at least Windows 7."
37657 msgstr ""
37658
37659 #. type: textblock
37660 #: ../tools/virt-win-reg.pl:561
37661 msgid "The following Registry keys are supported:"
37662 msgstr ""
37663
37664 #. type: =item
37665 #: ../tools/virt-win-reg.pl:565
37666 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
37667 msgstr ""
37668
37669 #. type: =item
37670 #: ../tools/virt-win-reg.pl:567
37671 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
37672 msgstr ""
37673
37674 #. type: =item
37675 #: ../tools/virt-win-reg.pl:569
37676 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
37677 msgstr ""
37678
37679 #. type: =item
37680 #: ../tools/virt-win-reg.pl:571
37681 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
37682 msgstr ""
37683
37684 #. type: =item
37685 #: ../tools/virt-win-reg.pl:573
37686 msgid "C<HKEY_USERS\\.DEFAULT>"
37687 msgstr ""
37688
37689 #. type: =item
37690 #: ../tools/virt-win-reg.pl:575
37691 msgid "C<HKEY_USERS\\I<SID>>"
37692 msgstr ""
37693
37694 #. type: textblock
37695 #: ../tools/virt-win-reg.pl:577
37696 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
37697 msgstr ""
37698
37699 #. type: =item
37700 #: ../tools/virt-win-reg.pl:579
37701 msgid "C<HKEY_USERS\\I<username>>"
37702 msgstr ""
37703
37704 #. type: textblock
37705 #: ../tools/virt-win-reg.pl:581
37706 msgid ""
37707 "where I<username> is a local user name (this is a libguestfs extension)."
37708 msgstr ""
37709
37710 #. type: textblock
37711 #: ../tools/virt-win-reg.pl:585
37712 msgid ""
37713 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
37714 "C<HKEY_USERS>."
37715 msgstr ""
37716
37717 #. type: textblock
37718 #: ../tools/virt-win-reg.pl:588
37719 msgid ""
37720 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
37721 "supported (there is no \"current user\")."
37722 msgstr ""
37723
37724 #. type: =head1
37725 #: ../tools/virt-win-reg.pl:591
37726 msgid "ENCODING"
37727 msgstr ""
37728
37729 #. type: textblock
37730 #: ../tools/virt-win-reg.pl:593
37731 msgid ""
37732 "C<virt-win-reg> expects that regedit files have already been reencoded in "
37733 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
37734 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
37735 "Windows-style line endings, you may need to reencode the whole file before "
37736 "or after processing."
37737 msgstr ""
37738
37739 #. type: textblock
37740 #: ../tools/virt-win-reg.pl:599
37741 msgid ""
37742 "To reencode a file from Windows format to Linux (before processing it with "
37743 "the I<--merge> option), you would do something like this:"
37744 msgstr ""
37745
37746 #. type: verbatim
37747 #: ../tools/virt-win-reg.pl:602
37748 #, no-wrap
37749 msgid ""
37750 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
37751 "\n"
37752 msgstr ""
37753
37754 #. type: textblock
37755 #: ../tools/virt-win-reg.pl:604
37756 msgid ""
37757 "To go in the opposite direction, after exporting and before sending the file "
37758 "to a Windows user, do something like this:"
37759 msgstr ""
37760
37761 #. type: verbatim
37762 #: ../tools/virt-win-reg.pl:607
37763 #, no-wrap
37764 msgid ""
37765 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
37766 "\n"
37767 msgstr ""
37768
37769 #. type: textblock
37770 #: ../tools/virt-win-reg.pl:609
37771 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
37772 msgstr ""
37773
37774 #. type: textblock
37775 #: ../tools/virt-win-reg.pl:611
37776 msgid ""
37777 "If you are unsure about the current encoding, use the L<file(1)> command.  "
37778 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
37779 "style (CRLF) line endings, like this:"
37780 msgstr ""
37781
37782 #. type: verbatim
37783 #: ../tools/virt-win-reg.pl:615
37784 #, no-wrap
37785 msgid ""
37786 " $ file software.reg\n"
37787 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
37788 " with CRLF line terminators\n"
37789 "\n"
37790 msgstr ""
37791
37792 #. type: textblock
37793 #: ../tools/virt-win-reg.pl:619
37794 msgid "This file would need conversion before you could I<--merge> it."
37795 msgstr ""
37796
37797 #. type: =head1
37798 #: ../tools/virt-win-reg.pl:621
37799 msgid "CurrentControlSet etc."
37800 msgstr ""
37801
37802 #. type: textblock
37803 #: ../tools/virt-win-reg.pl:623
37804 msgid ""
37805 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
37806 "Registry at the level of the hive file, and therefore you cannot modify "
37807 "these."
37808 msgstr ""
37809
37810 #. type: textblock
37811 #: ../tools/virt-win-reg.pl:627
37812 msgid ""
37813 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
37814 "circumstances it might refer to another control set.  The way to find out is "
37815 "to look at the C<HKLM\\SYSTEM\\Select> key:"
37816 msgstr ""
37817
37818 #. type: verbatim
37819 #: ../tools/virt-win-reg.pl:631
37820 #, no-wrap
37821 msgid ""
37822 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
37823 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
37824 " \"Current\"=dword:00000001\n"
37825 " \"Default\"=dword:00000001\n"
37826 " \"Failed\"=dword:00000000\n"
37827 " \"LastKnownGood\"=dword:00000002\n"
37828 "\n"
37829 msgstr ""
37830
37831 #. type: textblock
37832 #: ../tools/virt-win-reg.pl:638
37833 msgid "\"Current\" is the one which Windows will choose when it boots."
37834 msgstr ""
37835
37836 #. type: textblock
37837 #: ../tools/virt-win-reg.pl:640
37838 msgid ""
37839 "Similarly, other C<Current...> keys in the path may need to be replaced."
37840 msgstr ""
37841
37842 #. type: =head1
37843 #: ../tools/virt-win-reg.pl:643
37844 msgid "WINDOWS TIPS"
37845 msgstr ""
37846
37847 #. type: textblock
37848 #: ../tools/virt-win-reg.pl:645
37849 msgid ""
37850 "Note that some of these tips modify the guest disk image.  The guest I<must> "
37851 "be shut off, else you will get disk corruption."
37852 msgstr ""
37853
37854 #. type: =head2
37855 #: ../tools/virt-win-reg.pl:648
37856 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
37857 msgstr ""
37858
37859 #. type: textblock
37860 #: ../tools/virt-win-reg.pl:650
37861 msgid ""
37862 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
37863 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
37864 "is uploaded into C<C:\\>:"
37865 msgstr ""
37866
37867 #. type: verbatim
37868 #: ../tools/virt-win-reg.pl:654
37869 #, no-wrap
37870 msgid ""
37871 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
37872 "\n"
37873 msgstr ""
37874
37875 #. type: textblock
37876 #: ../tools/virt-win-reg.pl:656
37877 msgid "Prepare a regedit file containing the registry change:"
37878 msgstr ""
37879
37880 #. type: verbatim
37881 #: ../tools/virt-win-reg.pl:658
37882 #, no-wrap
37883 msgid ""
37884 " cat > test.reg <<'EOF'\n"
37885 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
37886 " \"Test\"=\"c:\\\\test.bat\"\n"
37887 " EOF\n"
37888 "\n"
37889 msgstr ""
37890
37891 #. type: textblock
37892 #: ../tools/virt-win-reg.pl:663
37893 msgid ""
37894 "In this example we use the key C<RunOnce> which means that the script will "
37895 "run precisely once when the first user logs in.  If you want it to run every "
37896 "time a user logs in, replace C<RunOnce> with C<Run>."
37897 msgstr ""
37898
37899 #. type: textblock
37900 #: ../tools/virt-win-reg.pl:667
37901 msgid "Now update the registry:"
37902 msgstr ""
37903
37904 #. type: verbatim
37905 #: ../tools/virt-win-reg.pl:669
37906 #, no-wrap
37907 msgid ""
37908 " virt-win-reg --merge WindowsGuest test.reg\n"
37909 "\n"
37910 msgstr ""
37911
37912 #. type: =head2
37913 #: ../tools/virt-win-reg.pl:671
37914 msgid "INSTALLING A SERVICE"
37915 msgstr ""
37916
37917 #. type: textblock
37918 #: ../tools/virt-win-reg.pl:673
37919 msgid ""
37920 "This section assumes you are familiar with Windows services, and you either "
37921 "have a program which handles the Windows Service Control Protocol directly "
37922 "or you want to run any program using a service wrapper like SrvAny or the "
37923 "free RHSrvAny."
37924 msgstr ""
37925
37926 #. type: textblock
37927 #: ../tools/virt-win-reg.pl:678
37928 msgid ""
37929 "First upload the program and optionally the service wrapper.  In this case "
37930 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
37931 msgstr ""
37932
37933 #. type: verbatim
37934 #: ../tools/virt-win-reg.pl:682
37935 #, no-wrap
37936 msgid ""
37937 " guestfish -i -d WindowsGuest <<EOF\n"
37938 "   upload rhsrvany.exe /rhsrvany.exe\n"
37939 "   upload test.exe /test.exe\n"
37940 " EOF\n"
37941 "\n"
37942 msgstr ""
37943
37944 #. type: textblock
37945 #: ../tools/virt-win-reg.pl:687
37946 msgid ""
37947 "Prepare a regedit file containing the registry changes.  In this example, "
37948 "the first registry change is needed for the service itself or the service "
37949 "wrapper (if used).  The second registry change is only needed because I am "
37950 "using the RHSrvAny service wrapper."
37951 msgstr ""
37952
37953 #. type: verbatim
37954 #: ../tools/virt-win-reg.pl:692
37955 #, no-wrap
37956 msgid ""
37957 " cat > service.reg <<'EOF'\n"
37958 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
37959 " \"Type\"=dword:00000010\n"
37960 " \"Start\"=dword:00000002\n"
37961 " \"ErrorControl\"=dword:00000001\n"
37962 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
37963 " \"DisplayName\"=\"RHSrvAny\"\n"
37964 " \"ObjectName\"=\"NetworkService\"\n"
37965 " \n"
37966 msgstr ""
37967
37968 #. type: verbatim
37969 #: ../tools/virt-win-reg.pl:701
37970 #, no-wrap
37971 msgid ""
37972 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
37973 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
37974 " \"PWD\"=\"c:\\\\Temp\"\n"
37975 " EOF\n"
37976 "\n"
37977 msgstr ""
37978
37979 #. type: textblock
37980 #: ../tools/virt-win-reg.pl:712
37981 msgid ""
37982 "For use of C<ControlSet001> see the section above in this manual page.  You "
37983 "may need to adjust this according to the control set that is in use by the "
37984 "guest."
37985 msgstr ""
37986
37987 #. type: textblock
37988 #: ../tools/virt-win-reg.pl:718
37989 msgid ""
37990 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
37991 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
37992 "privileged account."
37993 msgstr ""
37994
37995 #. type: textblock
37996 #: ../tools/virt-win-reg.pl:724
37997 msgid ""
37998 "For the meaning of the magic numbers, see this Microsoft KB article: "
37999 "L<http://support.microsoft.com/kb/103000>."
38000 msgstr ""
38001
38002 #. type: textblock
38003 #: ../tools/virt-win-reg.pl:729
38004 msgid "Update the registry:"
38005 msgstr ""
38006
38007 #. type: verbatim
38008 #: ../tools/virt-win-reg.pl:731
38009 #, no-wrap
38010 msgid ""
38011 " virt-win-reg --merge WindowsGuest service.reg\n"
38012 "\n"
38013 msgstr ""
38014
38015 #. type: textblock
38016 #: ../tools/virt-win-reg.pl:735
38017 msgid ""
38018 "Be careful when passing parameters containing C<\\> (backslash) in the "
38019 "shell.  Usually you will have to use 'single quotes' or double backslashes "
38020 "(but not both) to protect them from the shell."
38021 msgstr ""
38022
38023 #. type: textblock
38024 #: ../tools/virt-win-reg.pl:739
38025 msgid "Paths and value names are case-insensitive."
38026 msgstr ""
38027
38028 #. type: textblock
38029 #: ../tools/virt-win-reg.pl:748
38030 msgid ""
38031 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
38032 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
38033 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38034 msgstr ""
38035
38036 #. type: verbatim
38037 #: ../tools/virt-win-reg.pl:766
38038 #, no-wrap
38039 msgid ""
38040 " export LIBGUESTFS_DEBUG=1\n"
38041 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
38042 "\n"
38043 msgstr ""
38044
38045 #. type: textblock
38046 #: ../tools/virt-win-reg.pl:769
38047 msgid ""
38048 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
38049 "redhat.com/>"
38050 msgstr ""