ca92744437feef9cfe8452cb6f91dee178040ec4
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # rjones <rjones@redhat.com>, 2011.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-08-07 23: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
4103 msgid ""
4104 "This function is deprecated.  In new code, use the L</add_drive_opts> call "
4105 "instead."
4106 msgstr ""
4107
4108 #. type: textblock
4109 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4110 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:986
4111 #: ../fish/guestfish-actions.pod:1346 ../fish/guestfish-actions.pod:1360
4112 #: ../fish/guestfish-actions.pod:3085 ../fish/guestfish-actions.pod:3292
4113 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3454
4114 #: ../fish/guestfish-actions.pod:4355 ../fish/guestfish-actions.pod:4378
4115 #: ../fish/guestfish-actions.pod:4400 ../fish/guestfish-actions.pod:4438
4116 #: ../fish/guestfish-actions.pod:5087 ../fish/guestfish-actions.pod:5185
4117 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
4118 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1513
4119 #: ../src/guestfs-actions.pod:2008 ../src/guestfs-actions.pod:2029
4120 #: ../src/guestfs-actions.pod:4628 ../src/guestfs-actions.pod:4947
4121 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5255
4122 #: ../src/guestfs-actions.pod:6544 ../src/guestfs-actions.pod:6574
4123 #: ../src/guestfs-actions.pod:6607 ../src/guestfs-actions.pod:6666
4124 #: ../src/guestfs-actions.pod:7602 ../src/guestfs-actions.pod:7714
4125 #: ../src/guestfs-actions.pod:7884
4126 msgid ""
4127 "Deprecated functions will not be removed from the API, but the fact that "
4128 "they are deprecated indicates that there are problems with correct use of "
4129 "these functions."
4130 msgstr ""
4131
4132 #. type: =head2
4133 #: ../fish/guestfish-actions.pod:35
4134 msgid "add-domain"
4135 msgstr ""
4136
4137 #. type: =head2
4138 #: ../fish/guestfish-actions.pod:37
4139 msgid "domain"
4140 msgstr ""
4141
4142 #. type: verbatim
4143 #: ../fish/guestfish-actions.pod:39
4144 #, no-wrap
4145 msgid ""
4146 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4147 "\n"
4148 msgstr ""
4149
4150 #. type: textblock
4151 #: ../fish/guestfish-actions.pod:41
4152 msgid ""
4153 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4154 "It works by connecting to libvirt, requesting the domain and domain XML from "
4155 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4156 msgstr ""
4157
4158 #. type: textblock
4159 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4160 msgid ""
4161 "The number of disks added is returned.  This operation is atomic: if an "
4162 "error is returned, then no disks are added."
4163 msgstr ""
4164
4165 #. type: textblock
4166 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4167 msgid ""
4168 "This function does some minimal checks to make sure the libvirt domain is "
4169 "not running (unless C<readonly> is true).  In a future version we will try "
4170 "to acquire the libvirt lock on each disk."
4171 msgstr ""
4172
4173 #. type: textblock
4174 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4175 msgid ""
4176 "Disks must be accessible locally.  This often means that adding disks from a "
4177 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4178 "unless those disks are accessible via the same device path locally too."
4179 msgstr ""
4180
4181 #. type: textblock
4182 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4183 msgid ""
4184 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4185 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4186 "libvirt URI (or one set through an environment variable, see the libvirt "
4187 "documentation for full details)."
4188 msgstr ""
4189
4190 #. type: textblock
4191 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4192 msgid ""
4193 "The optional C<live> flag controls whether this call will try to connect to "
4194 "a running virtual machine C<guestfsd> process if it sees a suitable "
4195 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4196 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4197 "DAEMONS> for more information."
4198 msgstr ""
4199
4200 #. type: textblock
4201 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4202 msgid ""
4203 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4204 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4205 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4206 "as usual."
4207 msgstr ""
4208
4209 #. type: textblock
4210 #: ../fish/guestfish-actions.pod:76
4211 msgid ""
4212 "The other optional parameters are passed directly through to L</add-drive-"
4213 "opts>."
4214 msgstr ""
4215
4216 #. type: textblock
4217 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4218 #: ../fish/guestfish-actions.pod:568 ../fish/guestfish-actions.pod:1968
4219 #: ../fish/guestfish-actions.pod:3134 ../fish/guestfish-actions.pod:3307
4220 #: ../fish/guestfish-actions.pod:3442
4221 msgid ""
4222 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4223 msgstr ""
4224
4225 #. type: =head2
4226 #: ../fish/guestfish-actions.pod:81
4227 msgid "add-drive"
4228 msgstr ""
4229
4230 #. type: verbatim
4231 #: ../fish/guestfish-actions.pod:83
4232 #, no-wrap
4233 msgid ""
4234 " add-drive filename\n"
4235 "\n"
4236 msgstr ""
4237
4238 #. type: textblock
4239 #: ../fish/guestfish-actions.pod:85
4240 msgid ""
4241 "This function is the equivalent of calling L</add-drive-opts> with no "
4242 "optional parameters, so the disk is added writable, with the format being "
4243 "detected automatically."
4244 msgstr ""
4245
4246 #. type: textblock
4247 #: ../fish/guestfish-actions.pod:89
4248 msgid ""
4249 "Automatic detection of the format opens you up to a potential security hole "
4250 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4251 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4252 "you should think about replacing calls to this function with calls to L</add-"
4253 "drive-opts>, and specifying the format."
4254 msgstr ""
4255
4256 #. type: =head2
4257 #: ../fish/guestfish-actions.pod:96
4258 msgid "add-drive-opts"
4259 msgstr ""
4260
4261 #. type: =head2
4262 #: ../fish/guestfish-actions.pod:98
4263 msgid "add"
4264 msgstr ""
4265
4266 #. type: verbatim
4267 #: ../fish/guestfish-actions.pod:100
4268 #, no-wrap
4269 msgid ""
4270 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4271 "\n"
4272 msgstr ""
4273
4274 #. type: textblock
4275 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4276 msgid ""
4277 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4278 "The first time you call this function, the disk appears as C</dev/sda>, the "
4279 "second time as C</dev/sdb>, and so on."
4280 msgstr ""
4281
4282 #. type: textblock
4283 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4284 msgid ""
4285 "You don't necessarily need to be root when using libguestfs.  However you "
4286 "obviously do need sufficient permissions to access the filename for whatever "
4287 "operations you want to perform (ie. read access if you just want to read the "
4288 "image or write access if you want to modify the image)."
4289 msgstr ""
4290
4291 #. type: textblock
4292 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4293 msgid "This call checks that C<filename> exists."
4294 msgstr ""
4295
4296 #. type: textblock
4297 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3096
4298 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4655
4299 msgid "The optional arguments are:"
4300 msgstr ""
4301
4302 #. type: =item
4303 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4304 msgid "C<readonly>"
4305 msgstr ""
4306
4307 #. type: textblock
4308 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4309 msgid ""
4310 "If true then the image is treated as read-only.  Writes are still allowed, "
4311 "but they are stored in a temporary snapshot overlay which is discarded at "
4312 "the end.  The disk that you add is not modified."
4313 msgstr ""
4314
4315 #. type: =item
4316 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4317 msgid "C<format>"
4318 msgstr ""
4319
4320 #. type: textblock
4321 #: ../fish/guestfish-actions.pod:127
4322 msgid ""
4323 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4324 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4325 "include C<raw> and C<qcow2>."
4326 msgstr ""
4327
4328 #. type: textblock
4329 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4330 msgid ""
4331 "Automatic detection of the format opens you up to a potential security hole "
4332 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4333 "RHBZ#642934.  Specifying the format closes this security hole."
4334 msgstr ""
4335
4336 #. type: =item
4337 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4338 msgid "C<iface>"
4339 msgstr ""
4340
4341 #. type: textblock
4342 #: ../fish/guestfish-actions.pod:138
4343 msgid ""
4344 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4345 "add-drive-with-if> call (q.v.)"
4346 msgstr ""
4347
4348 #. type: =head2
4349 #: ../fish/guestfish-actions.pod:145
4350 msgid "add-drive-ro"
4351 msgstr ""
4352
4353 #. type: =head2
4354 #: ../fish/guestfish-actions.pod:147
4355 msgid "add-ro"
4356 msgstr ""
4357
4358 #. type: verbatim
4359 #: ../fish/guestfish-actions.pod:149
4360 #, no-wrap
4361 msgid ""
4362 " add-drive-ro filename\n"
4363 "\n"
4364 msgstr ""
4365
4366 #. type: textblock
4367 #: ../fish/guestfish-actions.pod:151
4368 msgid ""
4369 "This function is the equivalent of calling L</add-drive-opts> with the "
4370 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4371 "is added read-only, with the format being detected automatically."
4372 msgstr ""
4373
4374 #. type: =head2
4375 #: ../fish/guestfish-actions.pod:156
4376 msgid "add-drive-ro-with-if"
4377 msgstr ""
4378
4379 #. type: verbatim
4380 #: ../fish/guestfish-actions.pod:158
4381 #, no-wrap
4382 msgid ""
4383 " add-drive-ro-with-if filename iface\n"
4384 "\n"
4385 msgstr ""
4386
4387 #. type: textblock
4388 #: ../fish/guestfish-actions.pod:160
4389 msgid ""
4390 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4391 "interface emulation to use at run time."
4392 msgstr ""
4393
4394 #. type: =head2
4395 #: ../fish/guestfish-actions.pod:170
4396 msgid "add-drive-with-if"
4397 msgstr ""
4398
4399 #. type: verbatim
4400 #: ../fish/guestfish-actions.pod:172
4401 #, no-wrap
4402 msgid ""
4403 " add-drive-with-if filename iface\n"
4404 "\n"
4405 msgstr ""
4406
4407 #. type: textblock
4408 #: ../fish/guestfish-actions.pod:174
4409 msgid ""
4410 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4411 "interface emulation to use at run time."
4412 msgstr ""
4413
4414 #. type: =head2
4415 #: ../fish/guestfish-actions.pod:184
4416 msgid "aug-clear"
4417 msgstr ""
4418
4419 #. type: verbatim
4420 #: ../fish/guestfish-actions.pod:186
4421 #, no-wrap
4422 msgid ""
4423 " aug-clear augpath\n"
4424 "\n"
4425 msgstr ""
4426
4427 #. type: textblock
4428 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4429 msgid ""
4430 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4431 "L<augtool(1)> C<clear> command."
4432 msgstr ""
4433
4434 #. type: =head2
4435 #: ../fish/guestfish-actions.pod:191
4436 msgid "aug-close"
4437 msgstr ""
4438
4439 #. type: verbatim
4440 #: ../fish/guestfish-actions.pod:193
4441 #, no-wrap
4442 msgid ""
4443 " aug-close\n"
4444 "\n"
4445 msgstr ""
4446
4447 #. type: textblock
4448 #: ../fish/guestfish-actions.pod:195
4449 msgid ""
4450 "Close the current Augeas handle and free up any resources used by it.  After "
4451 "calling this, you have to call L</aug-init> again before you can use any "
4452 "other Augeas functions."
4453 msgstr ""
4454
4455 #. type: =head2
4456 #: ../fish/guestfish-actions.pod:200
4457 msgid "aug-defnode"
4458 msgstr ""
4459
4460 #. type: verbatim
4461 #: ../fish/guestfish-actions.pod:202
4462 #, no-wrap
4463 msgid ""
4464 " aug-defnode name expr val\n"
4465 "\n"
4466 msgstr ""
4467
4468 #. type: textblock
4469 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4470 msgid ""
4471 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4472 msgstr ""
4473
4474 #. type: textblock
4475 #: ../fish/guestfish-actions.pod:207
4476 msgid ""
4477 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4478 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4479 "containing that single node."
4480 msgstr ""
4481
4482 #. type: textblock
4483 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4484 msgid ""
4485 "On success this returns a pair containing the number of nodes in the "
4486 "nodeset, and a boolean flag if a node was created."
4487 msgstr ""
4488
4489 #. type: =head2
4490 #: ../fish/guestfish-actions.pod:215
4491 msgid "aug-defvar"
4492 msgstr ""
4493
4494 #. type: verbatim
4495 #: ../fish/guestfish-actions.pod:217
4496 #, no-wrap
4497 msgid ""
4498 " aug-defvar name expr\n"
4499 "\n"
4500 msgstr ""
4501
4502 #. type: textblock
4503 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4504 msgid ""
4505 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4506 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4511 msgid ""
4512 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4513 "evaluates to something which is not a nodeset."
4514 msgstr ""
4515
4516 #. type: =head2
4517 #: ../fish/guestfish-actions.pod:226
4518 msgid "aug-get"
4519 msgstr ""
4520
4521 #. type: verbatim
4522 #: ../fish/guestfish-actions.pod:228
4523 #, no-wrap
4524 msgid ""
4525 " aug-get augpath\n"
4526 "\n"
4527 msgstr ""
4528
4529 #. type: textblock
4530 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4531 msgid ""
4532 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4533 "node, the C<value> is returned."
4534 msgstr ""
4535
4536 #. type: =head2
4537 #: ../fish/guestfish-actions.pod:233
4538 msgid "aug-init"
4539 msgstr ""
4540
4541 #. type: verbatim
4542 #: ../fish/guestfish-actions.pod:235
4543 #, no-wrap
4544 msgid ""
4545 " aug-init root flags\n"
4546 "\n"
4547 msgstr ""
4548
4549 #. type: textblock
4550 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4551 msgid ""
4552 "Create a new Augeas handle for editing configuration files.  If there was "
4553 "any previous Augeas handle associated with this guestfs session, then it is "
4554 "closed."
4555 msgstr ""
4556
4557 #. type: textblock
4558 #: ../fish/guestfish-actions.pod:241
4559 msgid "You must call this before using any other L</aug-*> commands."
4560 msgstr ""
4561
4562 #. type: textblock
4563 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4564 msgid ""
4565 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4566 msgstr ""
4567
4568 #. type: textblock
4569 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4570 msgid ""
4571 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4572 "logical I<or> of the following integers:"
4573 msgstr ""
4574
4575 #. type: =item
4576 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4577 msgid "C<AUG_SAVE_BACKUP> = 1"
4578 msgstr ""
4579
4580 #. type: textblock
4581 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4582 msgid "Keep the original file with a C<.augsave> extension."
4583 msgstr ""
4584
4585 #. type: =item
4586 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4587 msgid "C<AUG_SAVE_NEWFILE> = 2"
4588 msgstr ""
4589
4590 #. type: textblock
4591 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4592 msgid ""
4593 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4594 "original.  Overrides C<AUG_SAVE_BACKUP>."
4595 msgstr ""
4596
4597 #. type: =item
4598 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4599 msgid "C<AUG_TYPE_CHECK> = 4"
4600 msgstr ""
4601
4602 #. type: textblock
4603 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4604 msgid "Typecheck lenses (can be expensive)."
4605 msgstr ""
4606
4607 #. type: =item
4608 #: ../fish/guestfish-actions.pod:266 ../src/guestfs-actions.pod:404
4609 msgid "C<AUG_NO_STDINC> = 8"
4610 msgstr ""
4611
4612 #. type: textblock
4613 #: ../fish/guestfish-actions.pod:268 ../src/guestfs-actions.pod:406
4614 msgid "Do not use standard load path for modules."
4615 msgstr ""
4616
4617 #. type: =item
4618 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:408
4619 msgid "C<AUG_SAVE_NOOP> = 16"
4620 msgstr ""
4621
4622 #. type: textblock
4623 #: ../fish/guestfish-actions.pod:272 ../src/guestfs-actions.pod:410
4624 msgid "Make save a no-op, just record what would have been changed."
4625 msgstr ""
4626
4627 #. type: =item
4628 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:412
4629 msgid "C<AUG_NO_LOAD> = 32"
4630 msgstr ""
4631
4632 #. type: textblock
4633 #: ../fish/guestfish-actions.pod:276
4634 msgid "Do not load the tree in L</aug-init>."
4635 msgstr ""
4636
4637 #. type: textblock
4638 #: ../fish/guestfish-actions.pod:280
4639 msgid "To close the handle, you can call L</aug-close>."
4640 msgstr ""
4641
4642 #. type: textblock
4643 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:420
4644 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4645 msgstr ""
4646
4647 #. type: =head2
4648 #: ../fish/guestfish-actions.pod:284
4649 msgid "aug-insert"
4650 msgstr ""
4651
4652 #. type: verbatim
4653 #: ../fish/guestfish-actions.pod:286
4654 #, no-wrap
4655 msgid ""
4656 " aug-insert augpath label true|false\n"
4657 "\n"
4658 msgstr ""
4659
4660 #. type: textblock
4661 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:434
4662 msgid ""
4663 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4664 "or after C<path> (depending on the boolean flag C<before>)."
4665 msgstr ""
4666
4667 #. type: textblock
4668 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:438
4669 msgid ""
4670 "C<path> must match exactly one existing node in the tree, and C<label> must "
4671 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4672 msgstr ""
4673
4674 #. type: =head2
4675 #: ../fish/guestfish-actions.pod:296
4676 msgid "aug-load"
4677 msgstr ""
4678
4679 #. type: verbatim
4680 #: ../fish/guestfish-actions.pod:298
4681 #, no-wrap
4682 msgid ""
4683 " aug-load\n"
4684 "\n"
4685 msgstr ""
4686
4687 #. type: textblock
4688 #: ../fish/guestfish-actions.pod:300 ../src/guestfs-actions.pod:451
4689 msgid "Load files into the tree."
4690 msgstr ""
4691
4692 #. type: textblock
4693 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:453
4694 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4695 msgstr ""
4696
4697 #. type: =head2
4698 #: ../fish/guestfish-actions.pod:305
4699 msgid "aug-ls"
4700 msgstr ""
4701
4702 #. type: verbatim
4703 #: ../fish/guestfish-actions.pod:307
4704 #, no-wrap
4705 msgid ""
4706 " aug-ls augpath\n"
4707 "\n"
4708 msgstr ""
4709
4710 #. type: textblock
4711 #: ../fish/guestfish-actions.pod:309
4712 msgid ""
4713 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4714 "resulting nodes into alphabetical order."
4715 msgstr ""
4716
4717 #. type: =head2
4718 #: ../fish/guestfish-actions.pod:312
4719 msgid "aug-match"
4720 msgstr ""
4721
4722 #. type: verbatim
4723 #: ../fish/guestfish-actions.pod:314
4724 #, no-wrap
4725 msgid ""
4726 " aug-match augpath\n"
4727 "\n"
4728 msgstr ""
4729
4730 #. type: textblock
4731 #: ../fish/guestfish-actions.pod:316 ../src/guestfs-actions.pod:481
4732 msgid ""
4733 "Returns a list of paths which match the path expression C<path>.  The "
4734 "returned paths are sufficiently qualified so that they match exactly one "
4735 "node in the current tree."
4736 msgstr ""
4737
4738 #. type: =head2
4739 #: ../fish/guestfish-actions.pod:320
4740 msgid "aug-mv"
4741 msgstr ""
4742
4743 #. type: verbatim
4744 #: ../fish/guestfish-actions.pod:322
4745 #, no-wrap
4746 msgid ""
4747 " aug-mv src dest\n"
4748 "\n"
4749 msgstr ""
4750
4751 #. type: textblock
4752 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:498
4753 msgid ""
4754 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4755 "C<dest> is overwritten if it exists."
4756 msgstr ""
4757
4758 #. type: =head2
4759 #: ../fish/guestfish-actions.pod:327
4760 msgid "aug-rm"
4761 msgstr ""
4762
4763 #. type: verbatim
4764 #: ../fish/guestfish-actions.pod:329
4765 #, no-wrap
4766 msgid ""
4767 " aug-rm augpath\n"
4768 "\n"
4769 msgstr ""
4770
4771 #. type: textblock
4772 #: ../fish/guestfish-actions.pod:331 ../src/guestfs-actions.pod:511
4773 msgid "Remove C<path> and all of its children."
4774 msgstr ""
4775
4776 #. type: textblock
4777 #: ../fish/guestfish-actions.pod:333 ../src/guestfs-actions.pod:513
4778 msgid "On success this returns the number of entries which were removed."
4779 msgstr ""
4780
4781 #. type: =head2
4782 #: ../fish/guestfish-actions.pod:335
4783 msgid "aug-save"
4784 msgstr ""
4785
4786 #. type: verbatim
4787 #: ../fish/guestfish-actions.pod:337
4788 #, no-wrap
4789 msgid ""
4790 " aug-save\n"
4791 "\n"
4792 msgstr ""
4793
4794 #. type: textblock
4795 #: ../fish/guestfish-actions.pod:339 ../src/guestfs-actions.pod:524
4796 msgid "This writes all pending changes to disk."
4797 msgstr ""
4798
4799 #. type: textblock
4800 #: ../fish/guestfish-actions.pod:341
4801 msgid ""
4802 "The flags which were passed to L</aug-init> affect exactly how files are "
4803 "saved."
4804 msgstr ""
4805
4806 #. type: =head2
4807 #: ../fish/guestfish-actions.pod:344
4808 msgid "aug-set"
4809 msgstr ""
4810
4811 #. type: verbatim
4812 #: ../fish/guestfish-actions.pod:346
4813 #, no-wrap
4814 msgid ""
4815 " aug-set augpath val\n"
4816 "\n"
4817 msgstr ""
4818
4819 #. type: textblock
4820 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:540
4821 msgid "Set the value associated with C<path> to C<val>."
4822 msgstr ""
4823
4824 #. type: textblock
4825 #: ../fish/guestfish-actions.pod:350
4826 msgid ""
4827 "In the Augeas API, it is possible to clear a node by setting the value to "
4828 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4829 "this call.  Instead you must use the L</aug-clear> call."
4830 msgstr ""
4831
4832 #. type: =head2
4833 #: ../fish/guestfish-actions.pod:355
4834 msgid "available"
4835 msgstr ""
4836
4837 #. type: verbatim
4838 #: ../fish/guestfish-actions.pod:357
4839 #, no-wrap
4840 msgid ""
4841 " available 'groups ...'\n"
4842 "\n"
4843 msgstr ""
4844
4845 #. type: textblock
4846 #: ../fish/guestfish-actions.pod:359 ../src/guestfs-actions.pod:557
4847 msgid ""
4848 "This command is used to check the availability of some groups of "
4849 "functionality in the appliance, which not all builds of the libguestfs "
4850 "appliance will be able to provide."
4851 msgstr ""
4852
4853 #. type: textblock
4854 #: ../fish/guestfish-actions.pod:363
4855 msgid ""
4856 "The libguestfs groups, and the functions that those groups correspond to, "
4857 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4858 "runtime by calling L</available-all-groups>."
4859 msgstr ""
4860
4861 #. type: textblock
4862 #: ../fish/guestfish-actions.pod:368 ../src/guestfs-actions.pod:566
4863 msgid ""
4864 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
4865 "\"]> would check for the availability of the Linux inotify functions and "
4866 "Augeas (configuration file editing) functions."
4867 msgstr ""
4868
4869 #. type: textblock
4870 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
4871 msgid "The command returns no error if I<all> requested groups are available."
4872 msgstr ""
4873
4874 #. type: textblock
4875 #: ../fish/guestfish-actions.pod:375 ../src/guestfs-actions.pod:573
4876 msgid ""
4877 "It fails with an error if one or more of the requested groups is unavailable "
4878 "in the appliance."
4879 msgstr ""
4880
4881 #. type: textblock
4882 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
4883 msgid ""
4884 "If an unknown group name is included in the list of groups then an error is "
4885 "always returned."
4886 msgstr ""
4887
4888 #. type: textblock
4889 #: ../fish/guestfish-actions.pod:381 ../src/guestfs-actions.pod:579
4890 msgid "I<Notes:>"
4891 msgstr ""
4892
4893 #. type: textblock
4894 #: ../fish/guestfish-actions.pod:387
4895 msgid "You must call L</launch> before calling this function."
4896 msgstr ""
4897
4898 #. type: textblock
4899 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:587
4900 msgid ""
4901 "The reason is because we don't know what groups are supported by the "
4902 "appliance/daemon until it is running and can be queried."
4903 msgstr ""
4904
4905 #. type: textblock
4906 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:593
4907 msgid ""
4908 "If a group of functions is available, this does not necessarily mean that "
4909 "they will work.  You still have to check for errors when calling individual "
4910 "API functions even if they are available."
4911 msgstr ""
4912
4913 #. type: textblock
4914 #: ../fish/guestfish-actions.pod:402 ../src/guestfs-actions.pod:600
4915 msgid ""
4916 "It is usually the job of distro packagers to build complete functionality "
4917 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4918 "with all requirements satisfied, will support everything."
4919 msgstr ""
4920
4921 #. type: textblock
4922 #: ../fish/guestfish-actions.pod:409
4923 msgid ""
4924 "This call was added in version C<1.0.80>.  In previous versions of "
4925 "libguestfs all you could do would be to speculatively execute a command to "
4926 "find out if the daemon implemented it.  See also L</version>."
4927 msgstr ""
4928
4929 #. type: =head2
4930 #: ../fish/guestfish-actions.pod:416
4931 msgid "available-all-groups"
4932 msgstr ""
4933
4934 #. type: verbatim
4935 #: ../fish/guestfish-actions.pod:418
4936 #, no-wrap
4937 msgid ""
4938 " available-all-groups\n"
4939 "\n"
4940 msgstr ""
4941
4942 #. type: textblock
4943 #: ../fish/guestfish-actions.pod:420
4944 msgid ""
4945 "This command returns a list of all optional groups that this daemon knows "
4946 "about.  Note this returns both supported and unsupported groups.  To find "
4947 "out which ones the daemon can actually support you have to call L</"
4948 "available> on each member of the returned list."
4949 msgstr ""
4950
4951 #. type: textblock
4952 #: ../fish/guestfish-actions.pod:426
4953 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
4954 msgstr ""
4955
4956 #. type: =head2
4957 #: ../fish/guestfish-actions.pod:428
4958 msgid "base64-in"
4959 msgstr ""
4960
4961 #. type: verbatim
4962 #: ../fish/guestfish-actions.pod:430
4963 #, no-wrap
4964 msgid ""
4965 " base64-in (base64file|-) filename\n"
4966 "\n"
4967 msgstr ""
4968
4969 #. type: textblock
4970 #: ../fish/guestfish-actions.pod:432 ../src/guestfs-actions.pod:644
4971 msgid ""
4972 "This command uploads base64-encoded data from C<base64file> to C<filename>."
4973 msgstr ""
4974
4975 #. type: textblock
4976 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
4977 #: ../fish/guestfish-actions.pod:693 ../fish/guestfish-actions.pod:862
4978 #: ../fish/guestfish-actions.pod:881 ../fish/guestfish-actions.pod:1255
4979 #: ../fish/guestfish-actions.pod:4658 ../fish/guestfish-actions.pod:4670
4980 #: ../fish/guestfish-actions.pod:4681 ../fish/guestfish-actions.pod:4692
4981 #: ../fish/guestfish-actions.pod:4744 ../fish/guestfish-actions.pod:4753
4982 #: ../fish/guestfish-actions.pod:4807 ../fish/guestfish-actions.pod:4830
4983 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
4984 msgstr ""
4985
4986 #. type: =head2
4987 #: ../fish/guestfish-actions.pod:437
4988 msgid "base64-out"
4989 msgstr ""
4990
4991 #. type: verbatim
4992 #: ../fish/guestfish-actions.pod:439
4993 #, no-wrap
4994 msgid ""
4995 " base64-out filename (base64file|-)\n"
4996 "\n"
4997 msgstr ""
4998
4999 #. type: textblock
5000 #: ../fish/guestfish-actions.pod:441 ../src/guestfs-actions.pod:658
5001 msgid ""
5002 "This command downloads the contents of C<filename>, writing it out to local "
5003 "file C<base64file> encoded as base64."
5004 msgstr ""
5005
5006 #. type: =head2
5007 #: ../fish/guestfish-actions.pod:446
5008 msgid "blockdev-flushbufs"
5009 msgstr ""
5010
5011 #. type: verbatim
5012 #: ../fish/guestfish-actions.pod:448
5013 #, no-wrap
5014 msgid ""
5015 " blockdev-flushbufs device\n"
5016 "\n"
5017 msgstr ""
5018
5019 #. type: textblock
5020 #: ../fish/guestfish-actions.pod:450 ../src/guestfs-actions.pod:671
5021 msgid ""
5022 "This tells the kernel to flush internal buffers associated with C<device>."
5023 msgstr ""
5024
5025 #. type: textblock
5026 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
5027 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
5028 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
5029 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
5030 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
5031 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
5032 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
5033 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
5034 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
5035 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
5036 msgid "This uses the L<blockdev(8)> command."
5037 msgstr ""
5038
5039 #. type: =head2
5040 #: ../fish/guestfish-actions.pod:455
5041 msgid "blockdev-getbsz"
5042 msgstr ""
5043
5044 #. type: verbatim
5045 #: ../fish/guestfish-actions.pod:457
5046 #, no-wrap
5047 msgid ""
5048 " blockdev-getbsz device\n"
5049 "\n"
5050 msgstr ""
5051
5052 #. type: textblock
5053 #: ../fish/guestfish-actions.pod:459 ../src/guestfs-actions.pod:686
5054 msgid "This returns the block size of a device."
5055 msgstr ""
5056
5057 #. type: textblock
5058 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
5059 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
5060 msgid ""
5061 "(Note this is different from both I<size in blocks> and I<filesystem block "
5062 "size>)."
5063 msgstr ""
5064
5065 #. type: =head2
5066 #: ../fish/guestfish-actions.pod:466
5067 msgid "blockdev-getro"
5068 msgstr ""
5069
5070 #. type: verbatim
5071 #: ../fish/guestfish-actions.pod:468
5072 #, no-wrap
5073 msgid ""
5074 " blockdev-getro device\n"
5075 "\n"
5076 msgstr ""
5077
5078 #. type: textblock
5079 #: ../fish/guestfish-actions.pod:470 ../src/guestfs-actions.pod:703
5080 msgid ""
5081 "Returns a boolean indicating if the block device is read-only (true if read-"
5082 "only, false if not)."
5083 msgstr ""
5084
5085 #. type: =head2
5086 #: ../fish/guestfish-actions.pod:475
5087 msgid "blockdev-getsize64"
5088 msgstr ""
5089
5090 #. type: verbatim
5091 #: ../fish/guestfish-actions.pod:477
5092 #, no-wrap
5093 msgid ""
5094 " blockdev-getsize64 device\n"
5095 "\n"
5096 msgstr ""
5097
5098 #. type: textblock
5099 #: ../fish/guestfish-actions.pod:479 ../src/guestfs-actions.pod:718
5100 msgid "This returns the size of the device in bytes."
5101 msgstr ""
5102
5103 #. type: textblock
5104 #: ../fish/guestfish-actions.pod:481
5105 msgid "See also L</blockdev-getsz>."
5106 msgstr ""
5107
5108 #. type: =head2
5109 #: ../fish/guestfish-actions.pod:485
5110 msgid "blockdev-getss"
5111 msgstr ""
5112
5113 #. type: verbatim
5114 #: ../fish/guestfish-actions.pod:487
5115 #, no-wrap
5116 msgid ""
5117 " blockdev-getss device\n"
5118 "\n"
5119 msgstr ""
5120
5121 #. type: textblock
5122 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:734
5123 msgid ""
5124 "This returns the size of sectors on a block device.  Usually 512, but can be "
5125 "larger for modern devices."
5126 msgstr ""
5127
5128 #. type: textblock
5129 #: ../fish/guestfish-actions.pod:492
5130 msgid ""
5131 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5132 msgstr ""
5133
5134 #. type: =head2
5135 #: ../fish/guestfish-actions.pod:497
5136 msgid "blockdev-getsz"
5137 msgstr ""
5138
5139 #. type: verbatim
5140 #: ../fish/guestfish-actions.pod:499
5141 #, no-wrap
5142 msgid ""
5143 " blockdev-getsz device\n"
5144 "\n"
5145 msgstr ""
5146
5147 #. type: textblock
5148 #: ../fish/guestfish-actions.pod:501 ../src/guestfs-actions.pod:752
5149 msgid ""
5150 "This returns the size of the device in units of 512-byte sectors (even if "
5151 "the sectorsize isn't 512 bytes ... weird)."
5152 msgstr ""
5153
5154 #. type: textblock
5155 #: ../fish/guestfish-actions.pod:504
5156 msgid ""
5157 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5158 "blockdev-getsize64> for the more useful I<size in bytes>."
5159 msgstr ""
5160
5161 #. type: =head2
5162 #: ../fish/guestfish-actions.pod:510
5163 msgid "blockdev-rereadpt"
5164 msgstr ""
5165
5166 #. type: verbatim
5167 #: ../fish/guestfish-actions.pod:512
5168 #, no-wrap
5169 msgid ""
5170 " blockdev-rereadpt device\n"
5171 "\n"
5172 msgstr ""
5173
5174 #. type: textblock
5175 #: ../fish/guestfish-actions.pod:514 ../src/guestfs-actions.pod:771
5176 msgid "Reread the partition table on C<device>."
5177 msgstr ""
5178
5179 #. type: =head2
5180 #: ../fish/guestfish-actions.pod:518
5181 msgid "blockdev-setbsz"
5182 msgstr ""
5183
5184 #. type: verbatim
5185 #: ../fish/guestfish-actions.pod:520
5186 #, no-wrap
5187 msgid ""
5188 " blockdev-setbsz device blocksize\n"
5189 "\n"
5190 msgstr ""
5191
5192 #. type: textblock
5193 #: ../fish/guestfish-actions.pod:522 ../src/guestfs-actions.pod:786
5194 msgid "This sets the block size of a device."
5195 msgstr ""
5196
5197 #. type: =head2
5198 #: ../fish/guestfish-actions.pod:529
5199 msgid "blockdev-setro"
5200 msgstr ""
5201
5202 #. type: verbatim
5203 #: ../fish/guestfish-actions.pod:531
5204 #, no-wrap
5205 msgid ""
5206 " blockdev-setro device\n"
5207 "\n"
5208 msgstr ""
5209
5210 #. type: textblock
5211 #: ../fish/guestfish-actions.pod:533 ../src/guestfs-actions.pod:803
5212 msgid "Sets the block device named C<device> to read-only."
5213 msgstr ""
5214
5215 #. type: =head2
5216 #: ../fish/guestfish-actions.pod:537
5217 msgid "blockdev-setrw"
5218 msgstr ""
5219
5220 #. type: verbatim
5221 #: ../fish/guestfish-actions.pod:539
5222 #, no-wrap
5223 msgid ""
5224 " blockdev-setrw device\n"
5225 "\n"
5226 msgstr ""
5227
5228 #. type: textblock
5229 #: ../fish/guestfish-actions.pod:541 ../src/guestfs-actions.pod:817
5230 msgid "Sets the block device named C<device> to read-write."
5231 msgstr ""
5232
5233 #. type: =head2
5234 #: ../fish/guestfish-actions.pod:545
5235 msgid "btrfs-filesystem-resize"
5236 msgstr ""
5237
5238 #. type: verbatim
5239 #: ../fish/guestfish-actions.pod:547
5240 #, no-wrap
5241 msgid ""
5242 " btrfs-filesystem-resize mountpoint [size:..]\n"
5243 "\n"
5244 msgstr ""
5245
5246 #. type: textblock
5247 #: ../fish/guestfish-actions.pod:549 ../src/guestfs-actions.pod:839
5248 msgid "This command resizes a btrfs filesystem."
5249 msgstr ""
5250
5251 #. type: textblock
5252 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:841
5253 msgid ""
5254 "Note that unlike other resize calls, the filesystem has to be mounted and "
5255 "the parameter is the mountpoint not the device (this is a requirement of "
5256 "btrfs itself)."
5257 msgstr ""
5258
5259 #. type: textblock
5260 #: ../fish/guestfish-actions.pod:555 ../fish/guestfish-actions.pod:3417
5261 #: ../src/guestfs-actions.pod:845 ../src/guestfs-actions.pod:5189
5262 msgid "The optional parameters are:"
5263 msgstr ""
5264
5265 #. type: =item
5266 #: ../fish/guestfish-actions.pod:559 ../fish/guestfish-actions.pod:3421
5267 #: ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:5193
5268 msgid "C<size>"
5269 msgstr ""
5270
5271 #. type: textblock
5272 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:851
5273 msgid ""
5274 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5275 "resized to the maximum size."
5276 msgstr ""
5277
5278 #. type: textblock
5279 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5280 msgid "See also L<btrfs(8)>."
5281 msgstr ""
5282
5283 #. type: =head2
5284 #: ../fish/guestfish-actions.pod:570
5285 msgid "case-sensitive-path"
5286 msgstr ""
5287
5288 #. type: verbatim
5289 #: ../fish/guestfish-actions.pod:572
5290 #, no-wrap
5291 msgid ""
5292 " case-sensitive-path path\n"
5293 "\n"
5294 msgstr ""
5295
5296 #. type: textblock
5297 #: ../fish/guestfish-actions.pod:574 ../src/guestfs-actions.pod:890
5298 msgid ""
5299 "This can be used to resolve case insensitive paths on a filesystem which is "
5300 "case sensitive.  The use case is to resolve paths which you have read from "
5301 "Windows configuration files or the Windows Registry, to the true path."
5302 msgstr ""
5303
5304 #. type: textblock
5305 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5306 msgid ""
5307 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5308 "(and probably others), which is that although the underlying filesystem is "
5309 "case-insensitive, the driver exports the filesystem to Linux as case-"
5310 "sensitive."
5311 msgstr ""
5312
5313 #. type: textblock
5314 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5315 msgid ""
5316 "One consequence of this is that special directories such as C<c:\\windows> "
5317 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5318 "precise details of how they were created.  In Windows itself this would not "
5319 "be a problem."
5320 msgstr ""
5321
5322 #. type: textblock
5323 #: ../fish/guestfish-actions.pod:590 ../src/guestfs-actions.pod:906
5324 msgid ""
5325 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5326 "#posixfilenames1>"
5327 msgstr ""
5328
5329 #. type: textblock
5330 #: ../fish/guestfish-actions.pod:593 ../src/guestfs-actions.pod:909
5331 msgid ""
5332 "This function resolves the true case of each element in the path and returns "
5333 "the case-sensitive path."
5334 msgstr ""
5335
5336 #. type: textblock
5337 #: ../fish/guestfish-actions.pod:596
5338 msgid ""
5339 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5340 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5341 "the directories were originally created under Windows)."
5342 msgstr ""
5343
5344 #. type: textblock
5345 #: ../fish/guestfish-actions.pod:601 ../src/guestfs-actions.pod:917
5346 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5347 msgstr ""
5348
5349 #. type: textblock
5350 #: ../fish/guestfish-actions.pod:604
5351 msgid "See also L</realpath>."
5352 msgstr ""
5353
5354 #. type: =head2
5355 #: ../fish/guestfish-actions.pod:606
5356 msgid "cat"
5357 msgstr ""
5358
5359 #. type: verbatim
5360 #: ../fish/guestfish-actions.pod:608
5361 #, no-wrap
5362 msgid ""
5363 " cat path\n"
5364 "\n"
5365 msgstr ""
5366
5367 #. type: textblock
5368 #: ../fish/guestfish-actions.pod:610 ../fish/guestfish-actions.pod:3837
5369 #: ../src/guestfs-actions.pod:933 ../src/guestfs-actions.pod:5832
5370 msgid "Return the contents of the file named C<path>."
5371 msgstr ""
5372
5373 #. type: textblock
5374 #: ../fish/guestfish-actions.pod:612
5375 msgid ""
5376 "Note that this function cannot correctly handle binary files (specifically, "
5377 "files containing C<\\0> character which is treated as end of string).  For "
5378 "those you need to use the L</read-file> or L</download> functions which have "
5379 "a more complex interface."
5380 msgstr ""
5381
5382 #. type: textblock
5383 #: ../fish/guestfish-actions.pod:617 ../fish/guestfish-actions.pod:752
5384 #: ../fish/guestfish-actions.pod:764 ../fish/guestfish-actions.pod:940
5385 #: ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:1017
5386 #: ../fish/guestfish-actions.pod:1027 ../fish/guestfish-actions.pod:1219
5387 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:1536
5388 #: ../fish/guestfish-actions.pod:1564 ../fish/guestfish-actions.pod:1579
5389 #: ../fish/guestfish-actions.pod:1589 ../fish/guestfish-actions.pod:1608
5390 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
5391 #: ../fish/guestfish-actions.pod:3798 ../fish/guestfish-actions.pod:3815
5392 #: ../fish/guestfish-actions.pod:3830 ../fish/guestfish-actions.pod:4499
5393 #: ../fish/guestfish-actions.pod:4545 ../fish/guestfish-actions.pod:4630
5394 #: ../fish/guestfish-actions.pod:4645 ../fish/guestfish-actions.pod:5051
5395 #: ../fish/guestfish-actions.pod:5063 ../fish/guestfish-actions.pod:5081
5396 #: ../fish/guestfish-actions.pod:5098 ../fish/guestfish-actions.pod:5108
5397 #: ../fish/guestfish-actions.pod:5157 ../fish/guestfish-actions.pod:5167
5398 #: ../fish/guestfish-actions.pod:5196 ../fish/guestfish-actions.pod:5206
5399 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1122
5400 #: ../src/guestfs-actions.pod:1142 ../src/guestfs-actions.pod:1438
5401 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1560
5402 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1825
5403 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:2315
5404 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:2382
5405 #: ../src/guestfs-actions.pod:2399 ../src/guestfs-actions.pod:2428
5406 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5640
5407 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5797
5408 #: ../src/guestfs-actions.pod:5821 ../src/guestfs-actions.pod:6772
5409 #: ../src/guestfs-actions.pod:6827 ../src/guestfs-actions.pod:6973
5410 #: ../src/guestfs-actions.pod:6997 ../src/guestfs-actions.pod:7662
5411 #: ../src/guestfs-actions.pod:7682 ../src/guestfs-actions.pod:7708
5412 #: ../src/guestfs-actions.pod:7734 ../src/guestfs-actions.pod:7753
5413 #: ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7858
5414 #: ../src/guestfs-actions.pod:7904 ../src/guestfs-actions.pod:7923
5415 msgid ""
5416 "Because of the message protocol, there is a transfer limit of somewhere "
5417 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5418 msgstr ""
5419
5420 #. type: =head2
5421 #: ../fish/guestfish-actions.pod:620
5422 msgid "checksum"
5423 msgstr ""
5424
5425 #. type: verbatim
5426 #: ../fish/guestfish-actions.pod:622
5427 #, no-wrap
5428 msgid ""
5429 " checksum csumtype path\n"
5430 "\n"
5431 msgstr ""
5432
5433 #. type: textblock
5434 #: ../fish/guestfish-actions.pod:624 ../src/guestfs-actions.pod:955
5435 msgid ""
5436 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5437 msgstr ""
5438
5439 #. type: textblock
5440 #: ../fish/guestfish-actions.pod:627 ../src/guestfs-actions.pod:958
5441 msgid ""
5442 "The type of checksum to compute is given by the C<csumtype> parameter which "
5443 "must have one of the following values:"
5444 msgstr ""
5445
5446 #. type: =item
5447 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5448 msgid "C<crc>"
5449 msgstr ""
5450
5451 #. type: textblock
5452 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:965
5453 msgid ""
5454 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5455 "C<cksum> command."
5456 msgstr ""
5457
5458 #. type: =item
5459 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5460 msgid "C<md5>"
5461 msgstr ""
5462
5463 #. type: textblock
5464 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5465 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5466 msgstr ""
5467
5468 #. type: =item
5469 #: ../fish/guestfish-actions.pod:641 ../src/guestfs-actions.pod:972
5470 msgid "C<sha1>"
5471 msgstr ""
5472
5473 #. type: textblock
5474 #: ../fish/guestfish-actions.pod:643 ../src/guestfs-actions.pod:974
5475 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5476 msgstr ""
5477
5478 #. type: =item
5479 #: ../fish/guestfish-actions.pod:645 ../src/guestfs-actions.pod:976
5480 msgid "C<sha224>"
5481 msgstr ""
5482
5483 #. type: textblock
5484 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:978
5485 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5486 msgstr ""
5487
5488 #. type: =item
5489 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:980
5490 msgid "C<sha256>"
5491 msgstr ""
5492
5493 #. type: textblock
5494 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:982
5495 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5496 msgstr ""
5497
5498 #. type: =item
5499 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:984
5500 msgid "C<sha384>"
5501 msgstr ""
5502
5503 #. type: textblock
5504 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:986
5505 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5506 msgstr ""
5507
5508 #. type: =item
5509 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:988
5510 msgid "C<sha512>"
5511 msgstr ""
5512
5513 #. type: textblock
5514 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:990
5515 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5516 msgstr ""
5517
5518 #. type: textblock
5519 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:994
5520 msgid "The checksum is returned as a printable string."
5521 msgstr ""
5522
5523 #. type: textblock
5524 #: ../fish/guestfish-actions.pod:665
5525 msgid "To get the checksum for a device, use L</checksum-device>."
5526 msgstr ""
5527
5528 #. type: textblock
5529 #: ../fish/guestfish-actions.pod:667
5530 msgid "To get the checksums for many files, use L</checksums-out>."
5531 msgstr ""
5532
5533 #. type: =head2
5534 #: ../fish/guestfish-actions.pod:669
5535 msgid "checksum-device"
5536 msgstr ""
5537
5538 #. type: verbatim
5539 #: ../fish/guestfish-actions.pod:671
5540 #, no-wrap
5541 msgid ""
5542 " checksum-device csumtype device\n"
5543 "\n"
5544 msgstr ""
5545
5546 #. type: textblock
5547 #: ../fish/guestfish-actions.pod:673
5548 msgid ""
5549 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5550 "device named C<device>.  For the types of checksums supported see the L</"
5551 "checksum> command."
5552 msgstr ""
5553
5554 #. type: =head2
5555 #: ../fish/guestfish-actions.pod:677
5556 msgid "checksums-out"
5557 msgstr ""
5558
5559 #. type: verbatim
5560 #: ../fish/guestfish-actions.pod:679
5561 #, no-wrap
5562 msgid ""
5563 " checksums-out csumtype directory (sumsfile|-)\n"
5564 "\n"
5565 msgstr ""
5566
5567 #. type: textblock
5568 #: ../fish/guestfish-actions.pod:681 ../src/guestfs-actions.pod:1029
5569 msgid ""
5570 "This command computes the checksums of all regular files in C<directory> and "
5571 "then emits a list of those checksums to the local output file C<sumsfile>."
5572 msgstr ""
5573
5574 #. type: textblock
5575 #: ../fish/guestfish-actions.pod:685 ../src/guestfs-actions.pod:1033
5576 msgid ""
5577 "This can be used for verifying the integrity of a virtual machine.  However "
5578 "to be properly secure you should pay attention to the output of the checksum "
5579 "command (it uses the ones from GNU coreutils).  In particular when the "
5580 "filename is not printable, coreutils uses a special backslash syntax.  For "
5581 "more information, see the GNU coreutils info file."
5582 msgstr ""
5583
5584 #. type: =head2
5585 #: ../fish/guestfish-actions.pod:695
5586 msgid "chmod"
5587 msgstr ""
5588
5589 #. type: verbatim
5590 #: ../fish/guestfish-actions.pod:697
5591 #, no-wrap
5592 msgid ""
5593 " chmod mode path\n"
5594 "\n"
5595 msgstr ""
5596
5597 #. type: textblock
5598 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1052
5599 msgid ""
5600 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5601 "supported."
5602 msgstr ""
5603
5604 #. type: textblock
5605 #: ../fish/guestfish-actions.pod:702 ../src/guestfs-actions.pod:1055
5606 msgid ""
5607 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5608 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5609 "C<700>."
5610 msgstr ""
5611
5612 #. type: textblock
5613 #: ../fish/guestfish-actions.pod:706 ../fish/guestfish-actions.pod:3060
5614 #: ../fish/guestfish-actions.pod:3199 ../fish/guestfish-actions.pod:3209
5615 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:1059
5616 #: ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4795
5617 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:4833
5618 msgid "The mode actually set is affected by the umask."
5619 msgstr ""
5620
5621 #. type: =head2
5622 #: ../fish/guestfish-actions.pod:708
5623 msgid "chown"
5624 msgstr ""
5625
5626 #. type: verbatim
5627 #: ../fish/guestfish-actions.pod:710
5628 #, no-wrap
5629 msgid ""
5630 " chown owner group path\n"
5631 "\n"
5632 msgstr ""
5633
5634 #. type: textblock
5635 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1073
5636 msgid "Change the file owner to C<owner> and group to C<group>."
5637 msgstr ""
5638
5639 #. type: textblock
5640 #: ../fish/guestfish-actions.pod:714 ../fish/guestfish-actions.pod:2495
5641 #: ../src/guestfs-actions.pod:1075 ../src/guestfs-actions.pod:3657
5642 msgid ""
5643 "Only numeric uid and gid are supported.  If you want to use names, you will "
5644 "need to locate and parse the password file yourself (Augeas support makes "
5645 "this relatively easy)."
5646 msgstr ""
5647
5648 #. type: =head2
5649 #: ../fish/guestfish-actions.pod:718
5650 msgid "command"
5651 msgstr ""
5652
5653 #. type: verbatim
5654 #: ../fish/guestfish-actions.pod:720
5655 #, no-wrap
5656 msgid ""
5657 " command 'arguments ...'\n"
5658 "\n"
5659 msgstr ""
5660
5661 #. type: textblock
5662 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1089
5663 msgid ""
5664 "This call runs a command from the guest filesystem.  The filesystem must be "
5665 "mounted, and must contain a compatible operating system (ie. something "
5666 "Linux, with the same or compatible processor architecture)."
5667 msgstr ""
5668
5669 #. type: textblock
5670 #: ../fish/guestfish-actions.pod:727
5671 msgid ""
5672 "The single parameter is an argv-style list of arguments.  The first element "
5673 "is the name of the program to run.  Subsequent elements are parameters.  The "
5674 "list must be non-empty (ie. must contain a program name).  Note that the "
5675 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5676 msgstr ""
5677
5678 #. type: textblock
5679 #: ../fish/guestfish-actions.pod:734 ../src/guestfs-actions.pod:1101
5680 msgid "The return value is anything printed to I<stdout> by the command."
5681 msgstr ""
5682
5683 #. type: textblock
5684 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1104
5685 msgid ""
5686 "If the command returns a non-zero exit status, then this function returns an "
5687 "error message.  The error message string is the content of I<stderr> from "
5688 "the command."
5689 msgstr ""
5690
5691 #. type: textblock
5692 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1108
5693 msgid ""
5694 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5695 "bin>.  If you require a program from another location, you should provide "
5696 "the full path in the first parameter."
5697 msgstr ""
5698
5699 #. type: textblock
5700 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5701 msgid ""
5702 "Shared libraries and data files required by the program must be available on "
5703 "filesystems which are mounted in the correct places.  It is the caller's "
5704 "responsibility to ensure all filesystems that are needed are mounted at the "
5705 "right locations."
5706 msgstr ""
5707
5708 #. type: =head2
5709 #: ../fish/guestfish-actions.pod:755
5710 msgid "command-lines"
5711 msgstr ""
5712
5713 #. type: verbatim
5714 #: ../fish/guestfish-actions.pod:757
5715 #, no-wrap
5716 msgid ""
5717 " command-lines 'arguments ...'\n"
5718 "\n"
5719 msgstr ""
5720
5721 #. type: textblock
5722 #: ../fish/guestfish-actions.pod:759
5723 msgid ""
5724 "This is the same as L</command>, but splits the result into a list of lines."
5725 msgstr ""
5726
5727 #. type: textblock
5728 #: ../fish/guestfish-actions.pod:762
5729 msgid "See also: L</sh-lines>"
5730 msgstr ""
5731
5732 #. type: =head2
5733 #: ../fish/guestfish-actions.pod:767
5734 msgid "config"
5735 msgstr ""
5736
5737 #. type: verbatim
5738 #: ../fish/guestfish-actions.pod:769
5739 #, no-wrap
5740 msgid ""
5741 " config qemuparam qemuvalue\n"
5742 "\n"
5743 msgstr ""
5744
5745 #. type: textblock
5746 #: ../fish/guestfish-actions.pod:771 ../src/guestfs-actions.pod:1154
5747 msgid ""
5748 "This can be used to add arbitrary qemu command line parameters of the form "
5749 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5750 "setting some parameters which would interfere with parameters that we use."
5751 msgstr ""
5752
5753 #. type: textblock
5754 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
5755 msgid "The first character of C<param> string must be a C<-> (dash)."
5756 msgstr ""
5757
5758 #. type: textblock
5759 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1161
5760 msgid "C<value> can be NULL."
5761 msgstr ""
5762
5763 #. type: =head2
5764 #: ../fish/guestfish-actions.pod:780
5765 msgid "copy-size"
5766 msgstr ""
5767
5768 #. type: verbatim
5769 #: ../fish/guestfish-actions.pod:782
5770 #, no-wrap
5771 msgid ""
5772 " copy-size src dest size\n"
5773 "\n"
5774 msgstr ""
5775
5776 #. type: textblock
5777 #: ../fish/guestfish-actions.pod:784 ../src/guestfs-actions.pod:1175
5778 msgid ""
5779 "This command copies exactly C<size> bytes from one source device or file "
5780 "C<src> to another destination device or file C<dest>."
5781 msgstr ""
5782
5783 #. type: textblock
5784 #: ../fish/guestfish-actions.pod:787 ../src/guestfs-actions.pod:1178
5785 msgid ""
5786 "Note this will fail if the source is too short or if the destination is not "
5787 "large enough."
5788 msgstr ""
5789
5790 #. type: =head2
5791 #: ../fish/guestfish-actions.pod:790
5792 msgid "cp"
5793 msgstr ""
5794
5795 #. type: verbatim
5796 #: ../fish/guestfish-actions.pod:792
5797 #, no-wrap
5798 msgid ""
5799 " cp src dest\n"
5800 "\n"
5801 msgstr ""
5802
5803 #. type: textblock
5804 #: ../fish/guestfish-actions.pod:794 ../src/guestfs-actions.pod:1197
5805 msgid ""
5806 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5807 "destination filename or destination directory."
5808 msgstr ""
5809
5810 #. type: =head2
5811 #: ../fish/guestfish-actions.pod:797
5812 msgid "cp-a"
5813 msgstr ""
5814
5815 #. type: verbatim
5816 #: ../fish/guestfish-actions.pod:799
5817 #, no-wrap
5818 msgid ""
5819 " cp-a src dest\n"
5820 "\n"
5821 msgstr ""
5822
5823 #. type: textblock
5824 #: ../fish/guestfish-actions.pod:801 ../src/guestfs-actions.pod:1211
5825 msgid ""
5826 "This copies a file or directory from C<src> to C<dest> recursively using the "
5827 "C<cp -a> command."
5828 msgstr ""
5829
5830 #. type: =head2
5831 #: ../fish/guestfish-actions.pod:804
5832 msgid "dd"
5833 msgstr ""
5834
5835 #. type: verbatim
5836 #: ../fish/guestfish-actions.pod:806
5837 #, no-wrap
5838 msgid ""
5839 " dd src dest\n"
5840 "\n"
5841 msgstr ""
5842
5843 #. type: textblock
5844 #: ../fish/guestfish-actions.pod:808 ../src/guestfs-actions.pod:1225
5845 msgid ""
5846 "This command copies from one source device or file C<src> to another "
5847 "destination device or file C<dest>.  Normally you would use this to copy to "
5848 "or from a device or partition, for example to duplicate a filesystem."
5849 msgstr ""
5850
5851 #. type: textblock
5852 #: ../fish/guestfish-actions.pod:813
5853 msgid ""
5854 "If the destination is a device, it must be as large or larger than the "
5855 "source file or device, otherwise the copy will fail.  This command cannot do "
5856 "partial copies (see L</copy-size>)."
5857 msgstr ""
5858
5859 #. type: =head2
5860 #: ../fish/guestfish-actions.pod:817
5861 msgid "df"
5862 msgstr ""
5863
5864 #. type: verbatim
5865 #: ../fish/guestfish-actions.pod:819
5866 #, no-wrap
5867 msgid ""
5868 " df\n"
5869 "\n"
5870 msgstr ""
5871
5872 #. type: textblock
5873 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1243
5874 msgid "This command runs the C<df> command to report disk space used."
5875 msgstr ""
5876
5877 #. type: textblock
5878 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:834
5879 msgid ""
5880 "This command is mostly useful for interactive sessions.  It is I<not> "
5881 "intended that you try to parse the output string.  Use L</statvfs> from "
5882 "programs."
5883 msgstr ""
5884
5885 #. type: =head2
5886 #: ../fish/guestfish-actions.pod:827
5887 msgid "df-h"
5888 msgstr ""
5889
5890 #. type: verbatim
5891 #: ../fish/guestfish-actions.pod:829
5892 #, no-wrap
5893 msgid ""
5894 " df-h\n"
5895 "\n"
5896 msgstr ""
5897
5898 #. type: textblock
5899 #: ../fish/guestfish-actions.pod:831 ../src/guestfs-actions.pod:1259
5900 msgid ""
5901 "This command runs the C<df -h> command to report disk space used in human-"
5902 "readable format."
5903 msgstr ""
5904
5905 #. type: =head2
5906 #: ../fish/guestfish-actions.pod:838
5907 msgid "dmesg"
5908 msgstr ""
5909
5910 #. type: verbatim
5911 #: ../fish/guestfish-actions.pod:840
5912 #, no-wrap
5913 msgid ""
5914 " dmesg\n"
5915 "\n"
5916 msgstr ""
5917
5918 #. type: textblock
5919 #: ../fish/guestfish-actions.pod:842 ../src/guestfs-actions.pod:1276
5920 msgid ""
5921 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5922 "This is sometimes useful for extended debugging of problems."
5923 msgstr ""
5924
5925 #. type: textblock
5926 #: ../fish/guestfish-actions.pod:846
5927 msgid ""
5928 "Another way to get the same information is to enable verbose messages with "
5929 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
5930 "before running the program."
5931 msgstr ""
5932
5933 #. type: =head2
5934 #: ../fish/guestfish-actions.pod:851
5935 msgid "download"
5936 msgstr ""
5937
5938 #. type: verbatim
5939 #: ../fish/guestfish-actions.pod:853
5940 #, no-wrap
5941 msgid ""
5942 " download remotefilename (filename|-)\n"
5943 "\n"
5944 msgstr ""
5945
5946 #. type: textblock
5947 #: ../fish/guestfish-actions.pod:855 ../fish/guestfish-actions.pod:868
5948 #: ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1322
5949 msgid ""
5950 "Download file C<remotefilename> and save it as C<filename> on the local "
5951 "machine."
5952 msgstr ""
5953
5954 #. type: textblock
5955 #: ../fish/guestfish-actions.pod:858 ../fish/guestfish-actions.pod:4803
5956 #: ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:7232
5957 msgid "C<filename> can also be a named pipe."
5958 msgstr ""
5959
5960 #. type: textblock
5961 #: ../fish/guestfish-actions.pod:860
5962 msgid "See also L</upload>, L</cat>."
5963 msgstr ""
5964
5965 #. type: =head2
5966 #: ../fish/guestfish-actions.pod:864
5967 msgid "download-offset"
5968 msgstr ""
5969
5970 #. type: verbatim
5971 #: ../fish/guestfish-actions.pod:866
5972 #, no-wrap
5973 msgid ""
5974 " download-offset remotefilename (filename|-) offset size\n"
5975 "\n"
5976 msgstr ""
5977
5978 #. type: textblock
5979 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1325
5980 msgid ""
5981 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5982 "region must be within the file or device)."
5983 msgstr ""
5984
5985 #. type: textblock
5986 #: ../fish/guestfish-actions.pod:874
5987 msgid ""
5988 "Note that there is no limit on the amount of data that can be downloaded "
5989 "with this call, unlike with L</pread>, and this call always reads the full "
5990 "amount unless an error occurs."
5991 msgstr ""
5992
5993 #. type: textblock
5994 #: ../fish/guestfish-actions.pod:879
5995 msgid "See also L</download>, L</pread>."
5996 msgstr ""
5997
5998 #. type: =head2
5999 #: ../fish/guestfish-actions.pod:883
6000 msgid "drop-caches"
6001 msgstr ""
6002
6003 #. type: verbatim
6004 #: ../fish/guestfish-actions.pod:885
6005 #, no-wrap
6006 msgid ""
6007 " drop-caches whattodrop\n"
6008 "\n"
6009 msgstr ""
6010
6011 #. type: textblock
6012 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1350
6013 msgid ""
6014 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6015 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6016 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6017 msgstr ""
6018
6019 #. type: textblock
6020 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6021 msgid "Setting C<whattodrop> to 3 should drop everything."
6022 msgstr ""
6023
6024 #. type: textblock
6025 #: ../fish/guestfish-actions.pod:894 ../src/guestfs-actions.pod:1357
6026 msgid ""
6027 "This automatically calls L<sync(2)> before the operation, so that the "
6028 "maximum guest memory is freed."
6029 msgstr ""
6030
6031 #. type: =head2
6032 #: ../fish/guestfish-actions.pod:897
6033 msgid "du"
6034 msgstr ""
6035
6036 #. type: verbatim
6037 #: ../fish/guestfish-actions.pod:899
6038 #, no-wrap
6039 msgid ""
6040 " du path\n"
6041 "\n"
6042 msgstr ""
6043
6044 #. type: textblock
6045 #: ../fish/guestfish-actions.pod:901 ../src/guestfs-actions.pod:1370
6046 msgid ""
6047 "This command runs the C<du -s> command to estimate file space usage for "
6048 "C<path>."
6049 msgstr ""
6050
6051 #. type: textblock
6052 #: ../fish/guestfish-actions.pod:904 ../src/guestfs-actions.pod:1373
6053 msgid ""
6054 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6055 "estimate includes the contents of the directory and all subdirectories "
6056 "(recursively)."
6057 msgstr ""
6058
6059 #. type: textblock
6060 #: ../fish/guestfish-actions.pod:908 ../src/guestfs-actions.pod:1377
6061 msgid ""
6062 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6063 msgstr ""
6064
6065 #. type: =head2
6066 #: ../fish/guestfish-actions.pod:911
6067 msgid "e2fsck-f"
6068 msgstr ""
6069
6070 #. type: verbatim
6071 #: ../fish/guestfish-actions.pod:913
6072 #, no-wrap
6073 msgid ""
6074 " e2fsck-f device\n"
6075 "\n"
6076 msgstr ""
6077
6078 #. type: textblock
6079 #: ../fish/guestfish-actions.pod:915 ../src/guestfs-actions.pod:1395
6080 msgid ""
6081 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6082 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6083 "clean (I<-f>)."
6084 msgstr ""
6085
6086 #. type: textblock
6087 #: ../fish/guestfish-actions.pod:919
6088 msgid ""
6089 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6090 "should use L</fsck>."
6091 msgstr ""
6092
6093 #. type: =head2
6094 #: ../fish/guestfish-actions.pod:922
6095 msgid "echo-daemon"
6096 msgstr ""
6097
6098 #. type: verbatim
6099 #: ../fish/guestfish-actions.pod:924
6100 #, no-wrap
6101 msgid ""
6102 " echo-daemon 'words ...'\n"
6103 "\n"
6104 msgstr ""
6105
6106 #. type: textblock
6107 #: ../fish/guestfish-actions.pod:926 ../src/guestfs-actions.pod:1412
6108 msgid ""
6109 "This command concatenates the list of C<words> passed with single spaces "
6110 "between them and returns the resulting string."
6111 msgstr ""
6112
6113 #. type: textblock
6114 #: ../fish/guestfish-actions.pod:929 ../src/guestfs-actions.pod:1415
6115 msgid "You can use this command to test the connection through to the daemon."
6116 msgstr ""
6117
6118 #. type: textblock
6119 #: ../fish/guestfish-actions.pod:931
6120 msgid "See also L</ping-daemon>."
6121 msgstr ""
6122
6123 #. type: =head2
6124 #: ../fish/guestfish-actions.pod:933
6125 msgid "egrep"
6126 msgstr ""
6127
6128 #. type: verbatim
6129 #: ../fish/guestfish-actions.pod:935
6130 #, no-wrap
6131 msgid ""
6132 " egrep regex path\n"
6133 "\n"
6134 msgstr ""
6135
6136 #. type: textblock
6137 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1431
6138 msgid ""
6139 "This calls the external C<egrep> program and returns the matching lines."
6140 msgstr ""
6141
6142 #. type: =head2
6143 #: ../fish/guestfish-actions.pod:943
6144 msgid "egrepi"
6145 msgstr ""
6146
6147 #. type: verbatim
6148 #: ../fish/guestfish-actions.pod:945
6149 #, no-wrap
6150 msgid ""
6151 " egrepi regex path\n"
6152 "\n"
6153 msgstr ""
6154
6155 #. type: textblock
6156 #: ../fish/guestfish-actions.pod:947 ../src/guestfs-actions.pod:1450
6157 msgid ""
6158 "This calls the external C<egrep -i> program and returns the matching lines."
6159 msgstr ""
6160
6161 #. type: =head2
6162 #: ../fish/guestfish-actions.pod:953
6163 msgid "equal"
6164 msgstr ""
6165
6166 #. type: verbatim
6167 #: ../fish/guestfish-actions.pod:955
6168 #, no-wrap
6169 msgid ""
6170 " equal file1 file2\n"
6171 "\n"
6172 msgstr ""
6173
6174 #. type: textblock
6175 #: ../fish/guestfish-actions.pod:957 ../src/guestfs-actions.pod:1469
6176 msgid ""
6177 "This compares the two files C<file1> and C<file2> and returns true if their "
6178 "content is exactly equal, or false otherwise."
6179 msgstr ""
6180
6181 #. type: textblock
6182 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1472
6183 msgid "The external L<cmp(1)> program is used for the comparison."
6184 msgstr ""
6185
6186 #. type: =head2
6187 #: ../fish/guestfish-actions.pod:962
6188 msgid "exists"
6189 msgstr ""
6190
6191 #. type: verbatim
6192 #: ../fish/guestfish-actions.pod:964
6193 #, no-wrap
6194 msgid ""
6195 " exists path\n"
6196 "\n"
6197 msgstr ""
6198
6199 #. type: textblock
6200 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1484
6201 msgid ""
6202 "This returns C<true> if and only if there is a file, directory (or anything) "
6203 "with the given C<path> name."
6204 msgstr ""
6205
6206 #. type: textblock
6207 #: ../fish/guestfish-actions.pod:969
6208 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6209 msgstr ""
6210
6211 #. type: =head2
6212 #: ../fish/guestfish-actions.pod:971
6213 msgid "fallocate"
6214 msgstr ""
6215
6216 #. type: verbatim
6217 #: ../fish/guestfish-actions.pod:973
6218 #, no-wrap
6219 msgid ""
6220 " fallocate path len\n"
6221 "\n"
6222 msgstr ""
6223
6224 #. type: textblock
6225 #: ../fish/guestfish-actions.pod:975 ../fish/guestfish-actions.pod:994
6226 #: ../src/guestfs-actions.pod:1500 ../src/guestfs-actions.pod:1526
6227 msgid ""
6228 "This command preallocates a file (containing zero bytes) named C<path> of "
6229 "size C<len> bytes.  If the file exists already, it is overwritten."
6230 msgstr ""
6231
6232 #. type: textblock
6233 #: ../fish/guestfish-actions.pod:979 ../src/guestfs-actions.pod:1504
6234 msgid ""
6235 "Do not confuse this with the guestfish-specific C<alloc> command which "
6236 "allocates a file in the host and attaches it as a device."
6237 msgstr ""
6238
6239 #. type: textblock
6240 #: ../fish/guestfish-actions.pod:983
6241 msgid ""
6242 "This function is deprecated.  In new code, use the L</fallocate64> call "
6243 "instead."
6244 msgstr ""
6245
6246 #. type: =head2
6247 #: ../fish/guestfish-actions.pod:990
6248 msgid "fallocate64"
6249 msgstr ""
6250
6251 #. type: verbatim
6252 #: ../fish/guestfish-actions.pod:992
6253 #, no-wrap
6254 msgid ""
6255 " fallocate64 path len\n"
6256 "\n"
6257 msgstr ""
6258
6259 #. type: textblock
6260 #: ../fish/guestfish-actions.pod:998
6261 msgid ""
6262 "Note that this call allocates disk blocks for the file.  To create a sparse "
6263 "file use L</truncate-size> instead."
6264 msgstr ""
6265
6266 #. type: textblock
6267 #: ../fish/guestfish-actions.pod:1001
6268 msgid ""
6269 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6270 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6271 "maximum size of files created through that call to 1GB."
6272 msgstr ""
6273
6274 #. type: textblock
6275 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1538
6276 msgid ""
6277 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6278 "commands which create a file in the host and attach it as a device."
6279 msgstr ""
6280
6281 #. type: =head2
6282 #: ../fish/guestfish-actions.pod:1010
6283 msgid "fgrep"
6284 msgstr ""
6285
6286 #. type: verbatim
6287 #: ../fish/guestfish-actions.pod:1012
6288 #, no-wrap
6289 msgid ""
6290 " fgrep pattern path\n"
6291 "\n"
6292 msgstr ""
6293
6294 #. type: textblock
6295 #: ../fish/guestfish-actions.pod:1014 ../src/guestfs-actions.pod:1553
6296 msgid ""
6297 "This calls the external C<fgrep> program and returns the matching lines."
6298 msgstr ""
6299
6300 #. type: =head2
6301 #: ../fish/guestfish-actions.pod:1020
6302 msgid "fgrepi"
6303 msgstr ""
6304
6305 #. type: verbatim
6306 #: ../fish/guestfish-actions.pod:1022
6307 #, no-wrap
6308 msgid ""
6309 " fgrepi pattern path\n"
6310 "\n"
6311 msgstr ""
6312
6313 #. type: textblock
6314 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1572
6315 msgid ""
6316 "This calls the external C<fgrep -i> program and returns the matching lines."
6317 msgstr ""
6318
6319 #. type: =head2
6320 #: ../fish/guestfish-actions.pod:1030
6321 msgid "file"
6322 msgstr ""
6323
6324 #. type: verbatim
6325 #: ../fish/guestfish-actions.pod:1032
6326 #, no-wrap
6327 msgid ""
6328 " file path\n"
6329 "\n"
6330 msgstr ""
6331
6332 #. type: textblock
6333 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1590
6334 msgid ""
6335 "This call uses the standard L<file(1)> command to determine the type or "
6336 "contents of the file."
6337 msgstr ""
6338
6339 #. type: textblock
6340 #: ../fish/guestfish-actions.pod:1037 ../src/guestfs-actions.pod:1593
6341 msgid ""
6342 "This call will also transparently look inside various types of compressed "
6343 "file."
6344 msgstr ""
6345
6346 #. type: textblock
6347 #: ../fish/guestfish-actions.pod:1040 ../src/guestfs-actions.pod:1596
6348 msgid ""
6349 "The exact command which runs is C<file -zb path>.  Note in particular that "
6350 "the filename is not prepended to the output (the I<-b> option)."
6351 msgstr ""
6352
6353 #. type: textblock
6354 #: ../fish/guestfish-actions.pod:1044 ../src/guestfs-actions.pod:1600
6355 msgid ""
6356 "The output depends on the output of the underlying L<file(1)> command and it "
6357 "can change in future in ways beyond our control.  In other words, the output "
6358 "is not guaranteed by the ABI."
6359 msgstr ""
6360
6361 #. type: textblock
6362 #: ../fish/guestfish-actions.pod:1048
6363 msgid ""
6364 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6365 "(etc), L</is-zero>."
6366 msgstr ""
6367
6368 #. type: =head2
6369 #: ../fish/guestfish-actions.pod:1051
6370 msgid "file-architecture"
6371 msgstr ""
6372
6373 #. type: verbatim
6374 #: ../fish/guestfish-actions.pod:1053
6375 #, no-wrap
6376 msgid ""
6377 " file-architecture filename\n"
6378 "\n"
6379 msgstr ""
6380
6381 #. type: textblock
6382 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1618
6383 msgid ""
6384 "This detects the architecture of the binary C<filename>, and returns it if "
6385 "known."
6386 msgstr ""
6387
6388 #. type: textblock
6389 #: ../fish/guestfish-actions.pod:1058 ../src/guestfs-actions.pod:1621
6390 msgid "Currently defined architectures are:"
6391 msgstr ""
6392
6393 #. type: =item
6394 #: ../fish/guestfish-actions.pod:1062 ../src/guestfs-actions.pod:1625
6395 msgid "\"i386\""
6396 msgstr ""
6397
6398 #. type: textblock
6399 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1627
6400 msgid ""
6401 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6402 "irrespective of the precise processor requirements of the binary."
6403 msgstr ""
6404
6405 #. type: =item
6406 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6407 msgid "\"x86_64\""
6408 msgstr ""
6409
6410 #. type: textblock
6411 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6412 msgid "64 bit x86-64."
6413 msgstr ""
6414
6415 #. type: =item
6416 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1634
6417 msgid "\"sparc\""
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:1073 ../src/guestfs-actions.pod:1636
6422 msgid "32 bit SPARC."
6423 msgstr ""
6424
6425 #. type: =item
6426 #: ../fish/guestfish-actions.pod:1075 ../src/guestfs-actions.pod:1638
6427 msgid "\"sparc64\""
6428 msgstr ""
6429
6430 #. type: textblock
6431 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1640
6432 msgid "64 bit SPARC V9 and above."
6433 msgstr ""
6434
6435 #. type: =item
6436 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1642
6437 msgid "\"ia64\""
6438 msgstr ""
6439
6440 #. type: textblock
6441 #: ../fish/guestfish-actions.pod:1081 ../src/guestfs-actions.pod:1644
6442 msgid "Intel Itanium."
6443 msgstr ""
6444
6445 #. type: =item
6446 #: ../fish/guestfish-actions.pod:1083 ../src/guestfs-actions.pod:1646
6447 msgid "\"ppc\""
6448 msgstr ""
6449
6450 #. type: textblock
6451 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1648
6452 msgid "32 bit Power PC."
6453 msgstr ""
6454
6455 #. type: =item
6456 #: ../fish/guestfish-actions.pod:1087 ../src/guestfs-actions.pod:1650
6457 msgid "\"ppc64\""
6458 msgstr ""
6459
6460 #. type: textblock
6461 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1652
6462 msgid "64 bit Power PC."
6463 msgstr ""
6464
6465 #. type: textblock
6466 #: ../fish/guestfish-actions.pod:1093 ../src/guestfs-actions.pod:1656
6467 msgid "Libguestfs may return other architecture strings in future."
6468 msgstr ""
6469
6470 #. type: textblock
6471 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1658
6472 msgid "The function works on at least the following types of files:"
6473 msgstr ""
6474
6475 #. type: textblock
6476 #: ../fish/guestfish-actions.pod:1101 ../src/guestfs-actions.pod:1664
6477 msgid "many types of Un*x and Linux binary"
6478 msgstr ""
6479
6480 #. type: textblock
6481 #: ../fish/guestfish-actions.pod:1105 ../src/guestfs-actions.pod:1668
6482 msgid "many types of Un*x and Linux shared library"
6483 msgstr ""
6484
6485 #. type: textblock
6486 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1672
6487 msgid "Windows Win32 and Win64 binaries"
6488 msgstr ""
6489
6490 #. type: textblock
6491 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1676
6492 msgid "Windows Win32 and Win64 DLLs"
6493 msgstr ""
6494
6495 #. type: textblock
6496 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1678
6497 msgid "Win32 binaries and DLLs return C<i386>."
6498 msgstr ""
6499
6500 #. type: textblock
6501 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1680
6502 msgid "Win64 binaries and DLLs return C<x86_64>."
6503 msgstr ""
6504
6505 #. type: textblock
6506 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1684
6507 msgid "Linux kernel modules"
6508 msgstr ""
6509
6510 #. type: textblock
6511 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1688
6512 msgid "Linux new-style initrd images"
6513 msgstr ""
6514
6515 #. type: textblock
6516 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1692
6517 msgid "some non-x86 Linux vmlinuz kernels"
6518 msgstr ""
6519
6520 #. type: textblock
6521 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1696
6522 msgid "What it can't do currently:"
6523 msgstr ""
6524
6525 #. type: textblock
6526 #: ../fish/guestfish-actions.pod:1139 ../src/guestfs-actions.pod:1702
6527 msgid "static libraries (libfoo.a)"
6528 msgstr ""
6529
6530 #. type: textblock
6531 #: ../fish/guestfish-actions.pod:1143 ../src/guestfs-actions.pod:1706
6532 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6533 msgstr ""
6534
6535 #. type: textblock
6536 #: ../fish/guestfish-actions.pod:1147 ../src/guestfs-actions.pod:1710
6537 msgid "x86 Linux vmlinuz kernels"
6538 msgstr ""
6539
6540 #. type: textblock
6541 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1712
6542 msgid ""
6543 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6544 "compressed code, and are horribly hard to unpack.  If you want to find the "
6545 "architecture of a kernel, use the architecture of the associated initrd or "
6546 "kernel module(s) instead."
6547 msgstr ""
6548
6549 #. type: =head2
6550 #: ../fish/guestfish-actions.pod:1156
6551 msgid "filesize"
6552 msgstr ""
6553
6554 #. type: verbatim
6555 #: ../fish/guestfish-actions.pod:1158
6556 #, no-wrap
6557 msgid ""
6558 " filesize file\n"
6559 "\n"
6560 msgstr ""
6561
6562 #. type: textblock
6563 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1730
6564 msgid "This command returns the size of C<file> in bytes."
6565 msgstr ""
6566
6567 #. type: textblock
6568 #: ../fish/guestfish-actions.pod:1162
6569 msgid ""
6570 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
6571 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
6572 msgstr ""
6573
6574 #. type: =head2
6575 #: ../fish/guestfish-actions.pod:1166
6576 msgid "fill"
6577 msgstr ""
6578
6579 #. type: verbatim
6580 #: ../fish/guestfish-actions.pod:1168
6581 #, no-wrap
6582 msgid ""
6583 " fill c len path\n"
6584 "\n"
6585 msgstr ""
6586
6587 #. type: textblock
6588 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1748
6589 msgid ""
6590 "This command creates a new file called C<path>.  The initial content of the "
6591 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6592 "[0..255]>."
6593 msgstr ""
6594
6595 #. type: textblock
6596 #: ../fish/guestfish-actions.pod:1174
6597 msgid ""
6598 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6599 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6600 "L</fill-pattern>."
6601 msgstr ""
6602
6603 #. type: =head2
6604 #: ../fish/guestfish-actions.pod:1179
6605 msgid "fill-pattern"
6606 msgstr ""
6607
6608 #. type: verbatim
6609 #: ../fish/guestfish-actions.pod:1181
6610 #, no-wrap
6611 msgid ""
6612 " fill-pattern pattern len path\n"
6613 "\n"
6614 msgstr ""
6615
6616 #. type: textblock
6617 #: ../fish/guestfish-actions.pod:1183
6618 msgid ""
6619 "This function is like L</fill> except that it creates a new file of length "
6620 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6621 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6622 "bytes."
6623 msgstr ""
6624
6625 #. type: =head2
6626 #: ../fish/guestfish-actions.pod:1188
6627 msgid "find"
6628 msgstr ""
6629
6630 #. type: verbatim
6631 #: ../fish/guestfish-actions.pod:1190
6632 #, no-wrap
6633 msgid ""
6634 " find directory\n"
6635 "\n"
6636 msgstr ""
6637
6638 #. type: textblock
6639 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1794
6640 msgid ""
6641 "This command lists out all files and directories, recursively, starting at "
6642 "C<directory>.  It is essentially equivalent to running the shell command "
6643 "C<find directory -print> but some post-processing happens on the output, "
6644 "described below."
6645 msgstr ""
6646
6647 #. type: textblock
6648 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
6649 msgid ""
6650 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6651 "structure was:"
6652 msgstr ""
6653
6654 #. type: verbatim
6655 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1802
6656 #, no-wrap
6657 msgid ""
6658 " /tmp/a\n"
6659 " /tmp/b\n"
6660 " /tmp/c/d\n"
6661 "\n"
6662 msgstr ""
6663
6664 #. type: textblock
6665 #: ../fish/guestfish-actions.pod:1204
6666 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6667 msgstr ""
6668
6669 #. type: verbatim
6670 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:1809
6671 #, no-wrap
6672 msgid ""
6673 " a\n"
6674 " b\n"
6675 " c\n"
6676 " c/d\n"
6677 "\n"
6678 msgstr ""
6679
6680 #. type: textblock
6681 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
6682 msgid "If C<directory> is not a directory, then this command returns an error."
6683 msgstr ""
6684
6685 #. type: textblock
6686 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1817
6687 msgid "The returned list is sorted."
6688 msgstr ""
6689
6690 #. type: textblock
6691 #: ../fish/guestfish-actions.pod:1217
6692 msgid "See also L</find0>."
6693 msgstr ""
6694
6695 #. type: =head2
6696 #: ../fish/guestfish-actions.pod:1222
6697 msgid "find0"
6698 msgstr ""
6699
6700 #. type: verbatim
6701 #: ../fish/guestfish-actions.pod:1224
6702 #, no-wrap
6703 msgid ""
6704 " find0 directory (files|-)\n"
6705 "\n"
6706 msgstr ""
6707
6708 #. type: textblock
6709 #: ../fish/guestfish-actions.pod:1226 ../src/guestfs-actions.pod:1837
6710 msgid ""
6711 "This command lists out all files and directories, recursively, starting at "
6712 "C<directory>, placing the resulting list in the external file called "
6713 "C<files>."
6714 msgstr ""
6715
6716 #. type: textblock
6717 #: ../fish/guestfish-actions.pod:1230
6718 msgid ""
6719 "This command works the same way as L</find> with the following exceptions:"
6720 msgstr ""
6721
6722 #. type: textblock
6723 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1848
6724 msgid "The resulting list is written to an external file."
6725 msgstr ""
6726
6727 #. type: textblock
6728 #: ../fish/guestfish-actions.pod:1241 ../src/guestfs-actions.pod:1852
6729 msgid ""
6730 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6731 "L<find(1)> option I<-print0>."
6732 msgstr ""
6733
6734 #. type: textblock
6735 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
6736 msgid "This command is not limited in the number of names that it can return."
6737 msgstr ""
6738
6739 #. type: textblock
6740 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
6741 msgid "The result list is not sorted."
6742 msgstr ""
6743
6744 #. type: =head2
6745 #: ../fish/guestfish-actions.pod:1257
6746 msgid "findfs-label"
6747 msgstr ""
6748
6749 #. type: verbatim
6750 #: ../fish/guestfish-actions.pod:1259
6751 #, no-wrap
6752 msgid ""
6753 " findfs-label label\n"
6754 "\n"
6755 msgstr ""
6756
6757 #. type: textblock
6758 #: ../fish/guestfish-actions.pod:1261 ../src/guestfs-actions.pod:1876
6759 msgid ""
6760 "This command searches the filesystems and returns the one which has the "
6761 "given label.  An error is returned if no such filesystem can be found."
6762 msgstr ""
6763
6764 #. type: textblock
6765 #: ../fish/guestfish-actions.pod:1265
6766 msgid "To find the label of a filesystem, use L</vfs-label>."
6767 msgstr ""
6768
6769 #. type: =head2
6770 #: ../fish/guestfish-actions.pod:1267
6771 msgid "findfs-uuid"
6772 msgstr ""
6773
6774 #. type: verbatim
6775 #: ../fish/guestfish-actions.pod:1269
6776 #, no-wrap
6777 msgid ""
6778 " findfs-uuid uuid\n"
6779 "\n"
6780 msgstr ""
6781
6782 #. type: textblock
6783 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1893
6784 msgid ""
6785 "This command searches the filesystems and returns the one which has the "
6786 "given UUID.  An error is returned if no such filesystem can be found."
6787 msgstr ""
6788
6789 #. type: textblock
6790 #: ../fish/guestfish-actions.pod:1275
6791 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
6792 msgstr ""
6793
6794 #. type: =head2
6795 #: ../fish/guestfish-actions.pod:1277
6796 msgid "fsck"
6797 msgstr ""
6798
6799 #. type: verbatim
6800 #: ../fish/guestfish-actions.pod:1279
6801 #, no-wrap
6802 msgid ""
6803 " fsck fstype device\n"
6804 "\n"
6805 msgstr ""
6806
6807 #. type: textblock
6808 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1911
6809 msgid ""
6810 "This runs the filesystem checker (fsck) on C<device> which should have "
6811 "filesystem type C<fstype>."
6812 msgstr ""
6813
6814 #. type: textblock
6815 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:1914
6816 msgid ""
6817 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6818 "codes from C<fsck>."
6819 msgstr ""
6820
6821 #. type: textblock
6822 #: ../fish/guestfish-actions.pod:1293 ../src/guestfs-actions.pod:1923
6823 msgid "Multiple status codes can be summed together."
6824 msgstr ""
6825
6826 #. type: textblock
6827 #: ../fish/guestfish-actions.pod:1297 ../src/guestfs-actions.pod:1927
6828 msgid ""
6829 "A non-zero return code can mean \"success\", for example if errors have been "
6830 "corrected on the filesystem."
6831 msgstr ""
6832
6833 #. type: textblock
6834 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
6835 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6836 msgstr ""
6837
6838 #. type: textblock
6839 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
6840 msgid ""
6841 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6842 msgstr ""
6843
6844 #. type: =head2
6845 #: ../fish/guestfish-actions.pod:1309
6846 msgid "get-append"
6847 msgstr ""
6848
6849 #. type: verbatim
6850 #: ../fish/guestfish-actions.pod:1311
6851 #, no-wrap
6852 msgid ""
6853 " get-append\n"
6854 "\n"
6855 msgstr ""
6856
6857 #. type: textblock
6858 #: ../fish/guestfish-actions.pod:1313 ../src/guestfs-actions.pod:1948
6859 msgid ""
6860 "Return the additional kernel options which are added to the guest kernel "
6861 "command line."
6862 msgstr ""
6863
6864 #. type: textblock
6865 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:1951
6866 msgid "If C<NULL> then no options are added."
6867 msgstr ""
6868
6869 #. type: =head2
6870 #: ../fish/guestfish-actions.pod:1318
6871 msgid "get-attach-method"
6872 msgstr ""
6873
6874 #. type: verbatim
6875 #: ../fish/guestfish-actions.pod:1320
6876 #, no-wrap
6877 msgid ""
6878 " get-attach-method\n"
6879 "\n"
6880 msgstr ""
6881
6882 #. type: textblock
6883 #: ../fish/guestfish-actions.pod:1322
6884 msgid "Return the current attach method.  See L</set-attach-method>."
6885 msgstr ""
6886
6887 #. type: =head2
6888 #: ../fish/guestfish-actions.pod:1324
6889 msgid "get-autosync"
6890 msgstr ""
6891
6892 #. type: verbatim
6893 #: ../fish/guestfish-actions.pod:1326
6894 #, no-wrap
6895 msgid ""
6896 " get-autosync\n"
6897 "\n"
6898 msgstr ""
6899
6900 #. type: textblock
6901 #: ../fish/guestfish-actions.pod:1328 ../src/guestfs-actions.pod:1976
6902 msgid "Get the autosync flag."
6903 msgstr ""
6904
6905 #. type: =head2
6906 #: ../fish/guestfish-actions.pod:1330
6907 msgid "get-direct"
6908 msgstr ""
6909
6910 #. type: verbatim
6911 #: ../fish/guestfish-actions.pod:1332
6912 #, no-wrap
6913 msgid ""
6914 " get-direct\n"
6915 "\n"
6916 msgstr ""
6917
6918 #. type: textblock
6919 #: ../fish/guestfish-actions.pod:1334 ../src/guestfs-actions.pod:1987
6920 msgid "Return the direct appliance mode flag."
6921 msgstr ""
6922
6923 #. type: =head2
6924 #: ../fish/guestfish-actions.pod:1336
6925 msgid "get-e2label"
6926 msgstr ""
6927
6928 #. type: verbatim
6929 #: ../fish/guestfish-actions.pod:1338
6930 #, no-wrap
6931 msgid ""
6932 " get-e2label device\n"
6933 "\n"
6934 msgstr ""
6935
6936 #. type: textblock
6937 #: ../fish/guestfish-actions.pod:1340 ../src/guestfs-actions.pod:1999
6938 msgid ""
6939 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6940 msgstr ""
6941
6942 #. type: textblock
6943 #: ../fish/guestfish-actions.pod:1343
6944 msgid ""
6945 "This function is deprecated.  In new code, use the L</vfs_label> call "
6946 "instead."
6947 msgstr ""
6948
6949 #. type: =head2
6950 #: ../fish/guestfish-actions.pod:1350
6951 msgid "get-e2uuid"
6952 msgstr ""
6953
6954 #. type: verbatim
6955 #: ../fish/guestfish-actions.pod:1352
6956 #, no-wrap
6957 msgid ""
6958 " get-e2uuid device\n"
6959 "\n"
6960 msgstr ""
6961
6962 #. type: textblock
6963 #: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod: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
6970 msgid ""
6971 "This function is deprecated.  In new code, use the L</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
10758 msgid ""
10759 "This function is deprecated.  In new code, use the L</mkfs_opts> call "
10760 "instead."
10761 msgstr ""
10762
10763 #. type: =head2
10764 #: ../fish/guestfish-actions.pod:3089
10765 msgid "mkfs-opts"
10766 msgstr ""
10767
10768 #. type: verbatim
10769 #: ../fish/guestfish-actions.pod:3091
10770 #, no-wrap
10771 msgid ""
10772 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
10773 "\n"
10774 msgstr ""
10775
10776 #. type: textblock
10777 #: ../fish/guestfish-actions.pod:3093 ../src/guestfs-actions.pod:4652
10778 msgid ""
10779 "This function creates a filesystem on C<device>.  The filesystem type is "
10780 "C<fstype>, for example C<ext3>."
10781 msgstr ""
10782
10783 #. type: =item
10784 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4659
10785 msgid "C<blocksize>"
10786 msgstr ""
10787
10788 #. type: textblock
10789 #: ../fish/guestfish-actions.pod:3102 ../src/guestfs-actions.pod:4661
10790 msgid ""
10791 "The filesystem block size.  Supported block sizes depend on the filesystem "
10792 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10793 "filesystems."
10794 msgstr ""
10795
10796 #. type: textblock
10797 #: ../fish/guestfish-actions.pod:3109 ../src/guestfs-actions.pod:4668
10798 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10799 msgstr ""
10800
10801 #. type: =item
10802 #: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4670
10803 msgid "C<features>"
10804 msgstr ""
10805
10806 #. type: textblock
10807 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4672
10808 msgid "This passes the I<-O> parameter to the external mkfs program."
10809 msgstr ""
10810
10811 #. type: textblock
10812 #: ../fish/guestfish-actions.pod:3115 ../src/guestfs-actions.pod:4674
10813 msgid ""
10814 "For certain filesystem types, this allows extra filesystem features to be "
10815 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10816 msgstr ""
10817
10818 #. type: textblock
10819 #: ../fish/guestfish-actions.pod:3119 ../src/guestfs-actions.pod:4678
10820 msgid ""
10821 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10822 "type."
10823 msgstr ""
10824
10825 #. type: =item
10826 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4681
10827 msgid "C<inode>"
10828 msgstr ""
10829
10830 #. type: textblock
10831 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
10832 msgid ""
10833 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10834 "sets the inode size (only for ext2/3/4 filesystems at present)."
10835 msgstr ""
10836
10837 #. type: =item
10838 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
10839 msgid "C<sectorsize>"
10840 msgstr ""
10841
10842 #. type: textblock
10843 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
10844 msgid ""
10845 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10846 "sets sector size for ufs filesystem."
10847 msgstr ""
10848
10849 #. type: =head2
10850 #: ../fish/guestfish-actions.pod:3136
10851 msgid "mkmountpoint"
10852 msgstr ""
10853
10854 #. type: verbatim
10855 #: ../fish/guestfish-actions.pod:3138
10856 #, no-wrap
10857 msgid ""
10858 " mkmountpoint exemptpath\n"
10859 "\n"
10860 msgstr ""
10861
10862 #. type: textblock
10863 #: ../fish/guestfish-actions.pod:3140
10864 msgid ""
10865 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10866 "to create extra mountpoints before mounting the first filesystem."
10867 msgstr ""
10868
10869 #. type: textblock
10870 #: ../fish/guestfish-actions.pod:3144 ../src/guestfs-actions.pod:4731
10871 msgid ""
10872 "These calls are I<only> necessary in some very limited circumstances, mainly "
10873 "the case where you want to mount a mix of unrelated and/or read-only "
10874 "filesystems together."
10875 msgstr ""
10876
10877 #. type: textblock
10878 #: ../fish/guestfish-actions.pod:3148 ../src/guestfs-actions.pod:4735
10879 msgid ""
10880 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10881 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10882 "inside that.  You can unpack this as follows in guestfish:"
10883 msgstr ""
10884
10885 #. type: verbatim
10886 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
10887 #, no-wrap
10888 msgid ""
10889 " add-ro Fedora-11-i686-Live.iso\n"
10890 " run\n"
10891 " mkmountpoint /cd\n"
10892 " mkmountpoint /sqsh\n"
10893 " mkmountpoint /ext3fs\n"
10894 " mount /dev/sda /cd\n"
10895 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10896 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10897 "\n"
10898 msgstr ""
10899
10900 #. type: textblock
10901 #: ../fish/guestfish-actions.pod:3162 ../src/guestfs-actions.pod:4749
10902 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10903 msgstr ""
10904
10905 #. type: textblock
10906 #: ../fish/guestfish-actions.pod:3164
10907 msgid ""
10908 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10909 "unexpected errors if you try to mix these calls.  It is safest to manually "
10910 "unmount filesystems and remove mountpoints after use."
10911 msgstr ""
10912
10913 #. type: textblock
10914 #: ../fish/guestfish-actions.pod:3168
10915 msgid ""
10916 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10917 "for this to work for manual mountpoints, you must ensure that the innermost "
10918 "mountpoints have the longest pathnames, as in the example code above."
10919 msgstr ""
10920
10921 #. type: textblock
10922 #: ../fish/guestfish-actions.pod:3173 ../src/guestfs-actions.pod:4760
10923 msgid ""
10924 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10925 msgstr ""
10926
10927 #. type: textblock
10928 #: ../fish/guestfish-actions.pod:3175
10929 msgid ""
10930 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
10931 "L</umount-all> to be called when the handle is closed which can also trigger "
10932 "these issues."
10933 msgstr ""
10934
10935 #. type: =head2
10936 #: ../fish/guestfish-actions.pod:3179
10937 msgid "mknod"
10938 msgstr ""
10939
10940 #. type: verbatim
10941 #: ../fish/guestfish-actions.pod:3181
10942 #, no-wrap
10943 msgid ""
10944 " mknod mode devmajor devminor path\n"
10945 "\n"
10946 msgstr ""
10947
10948 #. type: textblock
10949 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4779
10950 msgid ""
10951 "This call creates block or character special devices, or named pipes (FIFOs)."
10952 msgstr ""
10953
10954 #. type: textblock
10955 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4782
10956 msgid ""
10957 "The C<mode> parameter should be the mode, using the standard constants.  "
10958 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10959 "used when creating block and character special devices."
10960 msgstr ""
10961
10962 #. type: textblock
10963 #: ../fish/guestfish-actions.pod:3191
10964 msgid ""
10965 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10966 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10967 "regular file).  These constants are available in the standard Linux header "
10968 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
10969 "wrappers around this command which bitwise OR in the appropriate constant "
10970 "for you."
10971 msgstr ""
10972
10973 #. type: =head2
10974 #: ../fish/guestfish-actions.pod:3201
10975 msgid "mknod-b"
10976 msgstr ""
10977
10978 #. type: verbatim
10979 #: ../fish/guestfish-actions.pod:3203
10980 #, no-wrap
10981 msgid ""
10982 " mknod-b mode devmajor devminor path\n"
10983 "\n"
10984 msgstr ""
10985
10986 #. type: textblock
10987 #: ../fish/guestfish-actions.pod:3205
10988 msgid ""
10989 "This call creates a block device node called C<path> with mode C<mode> and "
10990 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10991 "wrapper around L</mknod>."
10992 msgstr ""
10993
10994 #. type: =head2
10995 #: ../fish/guestfish-actions.pod:3211
10996 msgid "mknod-c"
10997 msgstr ""
10998
10999 #. type: verbatim
11000 #: ../fish/guestfish-actions.pod:3213
11001 #, no-wrap
11002 msgid ""
11003 " mknod-c mode devmajor devminor path\n"
11004 "\n"
11005 msgstr ""
11006
11007 #. type: textblock
11008 #: ../fish/guestfish-actions.pod:3215
11009 msgid ""
11010 "This call creates a char device node called C<path> with mode C<mode> and "
11011 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11012 "wrapper around L</mknod>."
11013 msgstr ""
11014
11015 #. type: =head2
11016 #: ../fish/guestfish-actions.pod:3221
11017 msgid "mkswap"
11018 msgstr ""
11019
11020 #. type: verbatim
11021 #: ../fish/guestfish-actions.pod:3223
11022 #, no-wrap
11023 msgid ""
11024 " mkswap device\n"
11025 "\n"
11026 msgstr ""
11027
11028 #. type: textblock
11029 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4845
11030 msgid "Create a swap partition on C<device>."
11031 msgstr ""
11032
11033 #. type: =head2
11034 #: ../fish/guestfish-actions.pod:3227
11035 msgid "mkswap-L"
11036 msgstr ""
11037
11038 #. type: verbatim
11039 #: ../fish/guestfish-actions.pod:3229
11040 #, no-wrap
11041 msgid ""
11042 " mkswap-L label device\n"
11043 "\n"
11044 msgstr ""
11045
11046 #. type: textblock
11047 #: ../fish/guestfish-actions.pod:3231 ../src/guestfs-actions.pod:4858
11048 msgid "Create a swap partition on C<device> with label C<label>."
11049 msgstr ""
11050
11051 #. type: textblock
11052 #: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4860
11053 msgid ""
11054 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11055 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11056 "or swap tools."
11057 msgstr ""
11058
11059 #. type: =head2
11060 #: ../fish/guestfish-actions.pod:3237
11061 msgid "mkswap-U"
11062 msgstr ""
11063
11064 #. type: verbatim
11065 #: ../fish/guestfish-actions.pod:3239
11066 #, no-wrap
11067 msgid ""
11068 " mkswap-U uuid device\n"
11069 "\n"
11070 msgstr ""
11071
11072 #. type: textblock
11073 #: ../fish/guestfish-actions.pod:3241 ../src/guestfs-actions.pod:4875
11074 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11075 msgstr ""
11076
11077 #. type: =head2
11078 #: ../fish/guestfish-actions.pod:3243
11079 msgid "mkswap-file"
11080 msgstr ""
11081
11082 #. type: verbatim
11083 #: ../fish/guestfish-actions.pod:3245
11084 #, no-wrap
11085 msgid ""
11086 " mkswap-file path\n"
11087 "\n"
11088 msgstr ""
11089
11090 #. type: textblock
11091 #: ../fish/guestfish-actions.pod:3247 ../src/guestfs-actions.pod:4887
11092 msgid "Create a swap file."
11093 msgstr ""
11094
11095 #. type: textblock
11096 #: ../fish/guestfish-actions.pod:3249
11097 msgid ""
11098 "This command just writes a swap file signature to an existing file.  To "
11099 "create the file itself, use something like L</fallocate>."
11100 msgstr ""
11101
11102 #. type: =head2
11103 #: ../fish/guestfish-actions.pod:3252
11104 msgid "modprobe"
11105 msgstr ""
11106
11107 #. type: verbatim
11108 #: ../fish/guestfish-actions.pod:3254
11109 #, no-wrap
11110 msgid ""
11111 " modprobe modulename\n"
11112 "\n"
11113 msgstr ""
11114
11115 #. type: textblock
11116 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:4902
11117 msgid "This loads a kernel module in the appliance."
11118 msgstr ""
11119
11120 #. type: textblock
11121 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4904
11122 msgid ""
11123 "The kernel module must have been whitelisted when libguestfs was built (see "
11124 "C<appliance/kmod.whitelist.in> in the source)."
11125 msgstr ""
11126
11127 #. type: =head2
11128 #: ../fish/guestfish-actions.pod:3261
11129 msgid "mount"
11130 msgstr ""
11131
11132 #. type: verbatim
11133 #: ../fish/guestfish-actions.pod:3263
11134 #, no-wrap
11135 msgid ""
11136 " mount device mountpoint\n"
11137 "\n"
11138 msgstr ""
11139
11140 #. type: textblock
11141 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:4918
11142 msgid ""
11143 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11144 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11145 "those block devices contain partitions, they will have the usual names (eg. "
11146 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11147 msgstr ""
11148
11149 #. type: textblock
11150 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:4924
11151 msgid ""
11152 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11153 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11154 "mounted on directories which already exist."
11155 msgstr ""
11156
11157 #. type: textblock
11158 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4929
11159 msgid ""
11160 "The mounted filesystem is writable, if we have sufficient permissions on the "
11161 "underlying device."
11162 msgstr ""
11163
11164 #. type: textblock
11165 #: ../fish/guestfish-actions.pod:3279
11166 msgid ""
11167 "B<Important note:> When you use this call, the filesystem options C<sync> "
11168 "and C<noatime> are set implicitly.  This was originally done because we "
11169 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11170 "very large negative performance impact and negligible effect on "
11171 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11172 "code that needs performance, and instead use L</mount-options> (use an empty "
11173 "string for the first parameter if you don't want any options)."
11174 msgstr ""
11175
11176 #. type: textblock
11177 #: ../fish/guestfish-actions.pod:3289
11178 msgid ""
11179 "This function is deprecated.  In new code, use the L</mount_options> call "
11180 "instead."
11181 msgstr ""
11182
11183 #. type: =head2
11184 #: ../fish/guestfish-actions.pod:3296
11185 msgid "mount-9p"
11186 msgstr ""
11187
11188 #. type: verbatim
11189 #: ../fish/guestfish-actions.pod:3298
11190 #, no-wrap
11191 msgid ""
11192 " mount-9p mounttag mountpoint [options:..]\n"
11193 "\n"
11194 msgstr ""
11195
11196 #. type: textblock
11197 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:4968
11198 msgid ""
11199 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11200 "C<mountpoint>."
11201 msgstr ""
11202
11203 #. type: textblock
11204 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:4971
11205 msgid ""
11206 "If required, C<trans=virtio> will be automatically added to the options.  "
11207 "Any other options required can be passed in the optional C<options> "
11208 "parameter."
11209 msgstr ""
11210
11211 #. type: =head2
11212 #: ../fish/guestfish-actions.pod:3309
11213 msgid "mount-loop"
11214 msgstr ""
11215
11216 #. type: verbatim
11217 #: ../fish/guestfish-actions.pod:3311
11218 #, no-wrap
11219 msgid ""
11220 " mount-loop file mountpoint\n"
11221 "\n"
11222 msgstr ""
11223
11224 #. type: textblock
11225 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5010
11226 msgid ""
11227 "This command lets you mount C<file> (a filesystem image in a file) on a "
11228 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11229 "mountpoint>."
11230 msgstr ""
11231
11232 #. type: =head2
11233 #: ../fish/guestfish-actions.pod:3317
11234 msgid "mount-options"
11235 msgstr ""
11236
11237 #. type: verbatim
11238 #: ../fish/guestfish-actions.pod:3319
11239 #, no-wrap
11240 msgid ""
11241 " mount-options options device mountpoint\n"
11242 "\n"
11243 msgstr ""
11244
11245 #. type: textblock
11246 #: ../fish/guestfish-actions.pod:3321
11247 msgid ""
11248 "This is the same as the L</mount> command, but it allows you to set the "
11249 "mount options as for the L<mount(8)> I<-o> flag."
11250 msgstr ""
11251
11252 #. type: textblock
11253 #: ../fish/guestfish-actions.pod:3325 ../src/guestfs-actions.pod:5030
11254 msgid ""
11255 "If the C<options> parameter is an empty string, then no options are passed "
11256 "(all options default to whatever the filesystem uses)."
11257 msgstr ""
11258
11259 #. type: =head2
11260 #: ../fish/guestfish-actions.pod:3329
11261 msgid "mount-ro"
11262 msgstr ""
11263
11264 #. type: verbatim
11265 #: ../fish/guestfish-actions.pod:3331
11266 #, no-wrap
11267 msgid ""
11268 " mount-ro device mountpoint\n"
11269 "\n"
11270 msgstr ""
11271
11272 #. type: textblock
11273 #: ../fish/guestfish-actions.pod:3333
11274 msgid ""
11275 "This is the same as the L</mount> command, but it mounts the filesystem with "
11276 "the read-only (I<-o ro>) flag."
11277 msgstr ""
11278
11279 #. type: =head2
11280 #: ../fish/guestfish-actions.pod:3336
11281 msgid "mount-vfs"
11282 msgstr ""
11283
11284 #. type: verbatim
11285 #: ../fish/guestfish-actions.pod:3338
11286 #, no-wrap
11287 msgid ""
11288 " mount-vfs options vfstype device mountpoint\n"
11289 "\n"
11290 msgstr ""
11291
11292 #. type: textblock
11293 #: ../fish/guestfish-actions.pod:3340
11294 msgid ""
11295 "This is the same as the L</mount> command, but it allows you to set both the "
11296 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11297 msgstr ""
11298
11299 #. type: =head2
11300 #: ../fish/guestfish-actions.pod:3344
11301 msgid "mountpoints"
11302 msgstr ""
11303
11304 #. type: verbatim
11305 #: ../fish/guestfish-actions.pod:3346
11306 #, no-wrap
11307 msgid ""
11308 " mountpoints\n"
11309 "\n"
11310 msgstr ""
11311
11312 #. type: textblock
11313 #: ../fish/guestfish-actions.pod:3348
11314 msgid ""
11315 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11316 "This one returns a hash table (map) of device name to directory where the "
11317 "device is mounted."
11318 msgstr ""
11319
11320 #. type: =head2
11321 #: ../fish/guestfish-actions.pod:3352
11322 msgid "mounts"
11323 msgstr ""
11324
11325 #. type: verbatim
11326 #: ../fish/guestfish-actions.pod:3354
11327 #, no-wrap
11328 msgid ""
11329 " mounts\n"
11330 "\n"
11331 msgstr ""
11332
11333 #. type: textblock
11334 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5091
11335 msgid ""
11336 "This returns the list of currently mounted filesystems.  It returns the list "
11337 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11338 msgstr ""
11339
11340 #. type: textblock
11341 #: ../fish/guestfish-actions.pod:3359 ../src/guestfs-actions.pod:5094
11342 msgid "Some internal mounts are not shown."
11343 msgstr ""
11344
11345 #. type: textblock
11346 #: ../fish/guestfish-actions.pod:3361
11347 msgid "See also: L</mountpoints>"
11348 msgstr ""
11349
11350 #. type: =head2
11351 #: ../fish/guestfish-actions.pod:3363
11352 msgid "mv"
11353 msgstr ""
11354
11355 #. type: verbatim
11356 #: ../fish/guestfish-actions.pod:3365
11357 #, no-wrap
11358 msgid ""
11359 " mv src dest\n"
11360 "\n"
11361 msgstr ""
11362
11363 #. type: textblock
11364 #: ../fish/guestfish-actions.pod:3367 ../src/guestfs-actions.pod:5111
11365 msgid ""
11366 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11367 "destination filename or destination directory."
11368 msgstr ""
11369
11370 #. type: =head2
11371 #: ../fish/guestfish-actions.pod:3370
11372 msgid "ntfs-3g-probe"
11373 msgstr ""
11374
11375 #. type: verbatim
11376 #: ../fish/guestfish-actions.pod:3372
11377 #, no-wrap
11378 msgid ""
11379 " ntfs-3g-probe true|false device\n"
11380 "\n"
11381 msgstr ""
11382
11383 #. type: textblock
11384 #: ../fish/guestfish-actions.pod:3374 ../src/guestfs-actions.pod:5125
11385 msgid ""
11386 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11387 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11388 "write, and some cannot be mounted at all)."
11389 msgstr ""
11390
11391 #. type: textblock
11392 #: ../fish/guestfish-actions.pod:3378 ../src/guestfs-actions.pod:5129
11393 msgid ""
11394 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11395 "can be mounted read-write.  Set it to false if you want to test if the "
11396 "volume can be mounted read-only."
11397 msgstr ""
11398
11399 #. type: textblock
11400 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5133
11401 msgid ""
11402 "The return value is an integer which C<0> if the operation would succeed, or "
11403 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11404 msgstr ""
11405
11406 #. type: =head2
11407 #: ../fish/guestfish-actions.pod:3386
11408 msgid "ntfsresize"
11409 msgstr ""
11410
11411 #. type: verbatim
11412 #: ../fish/guestfish-actions.pod:3388
11413 #, no-wrap
11414 msgid ""
11415 " ntfsresize device\n"
11416 "\n"
11417 msgstr ""
11418
11419 #. type: textblock
11420 #: ../fish/guestfish-actions.pod:3390 ../fish/guestfish-actions.pod:3414
11421 #: ../src/guestfs-actions.pod:5147 ../src/guestfs-actions.pod:5186
11422 msgid ""
11423 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11424 "size of the underlying device."
11425 msgstr ""
11426
11427 #. type: textblock
11428 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5150
11429 msgid ""
11430 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
11431 "consistency check (for safety).  You have to boot into Windows to perform "
11432 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
11433 "resize filesystems which have been marked in this way.  So in effect it is "
11434 "not possible to call ntfsresize multiple times on a single filesystem "
11435 "without booting into Windows between each resize."
11436 msgstr ""
11437
11438 #. type: textblock
11439 #: ../fish/guestfish-actions.pod:3401 ../fish/guestfish-actions.pod:3440
11440 #: ../src/guestfs-actions.pod:5158 ../src/guestfs-actions.pod:5212
11441 msgid "See also L<ntfsresize(8)>."
11442 msgstr ""
11443
11444 #. type: textblock
11445 #: ../fish/guestfish-actions.pod:3403 ../fish/guestfish-actions.pod:3451
11446 msgid ""
11447 "This function is deprecated.  In new code, use the L</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
13540 msgid ""
13541 "This function is deprecated.  In new code, use the L</part_add> call instead."
13542 msgstr ""
13543
13544 #. type: =head2
13545 #: ../fish/guestfish-actions.pod:4359
13546 msgid "sfdiskM"
13547 msgstr ""
13548
13549 #. type: verbatim
13550 #: ../fish/guestfish-actions.pod:4361
13551 #, no-wrap
13552 msgid ""
13553 " sfdiskM device 'lines ...'\n"
13554 "\n"
13555 msgstr ""
13556
13557 #. type: textblock
13558 #: ../fish/guestfish-actions.pod:4363
13559 msgid ""
13560 "This is a simplified interface to the L</sfdisk> command, where partition "
13561 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13562 "you don't need to specify the cyls, heads and sectors parameters which were "
13563 "rarely if ever used anyway."
13564 msgstr ""
13565
13566 #. type: textblock
13567 #: ../fish/guestfish-actions.pod:4369
13568 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13569 msgstr ""
13570
13571 #. type: =head2
13572 #: ../fish/guestfish-actions.pod:4382
13573 msgid "sfdisk-N"
13574 msgstr ""
13575
13576 #. type: verbatim
13577 #: ../fish/guestfish-actions.pod:4384
13578 #, no-wrap
13579 msgid ""
13580 " sfdisk-N device partnum cyls heads sectors line\n"
13581 "\n"
13582 msgstr ""
13583
13584 #. type: textblock
13585 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6591
13586 msgid ""
13587 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13588 "(note: C<n> counts from 1)."
13589 msgstr ""
13590
13591 #. type: textblock
13592 #: ../fish/guestfish-actions.pod:4389
13593 msgid ""
13594 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13595 "cyls/heads/sectors parameters."
13596 msgstr ""
13597
13598 #. type: textblock
13599 #: ../fish/guestfish-actions.pod:4392
13600 msgid "See also: L</part-add>"
13601 msgstr ""
13602
13603 #. type: =head2
13604 #: ../fish/guestfish-actions.pod:4404
13605 msgid "sfdisk-disk-geometry"
13606 msgstr ""
13607
13608 #. type: verbatim
13609 #: ../fish/guestfish-actions.pod:4406
13610 #, no-wrap
13611 msgid ""
13612 " sfdisk-disk-geometry device\n"
13613 "\n"
13614 msgstr ""
13615
13616 #. type: textblock
13617 #: ../fish/guestfish-actions.pod:4408
13618 msgid ""
13619 "This displays the disk geometry of C<device> read from the partition table.  "
13620 "Especially in the case where the underlying block device has been resized, "
13621 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
13622 "kernel-geometry>)."
13623 msgstr ""
13624
13625 #. type: textblock
13626 #: ../fish/guestfish-actions.pod:4413 ../fish/guestfish-actions.pod:4422
13627 #: ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6640
13628 msgid "The result is in human-readable format, and not designed to be parsed."
13629 msgstr ""
13630
13631 #. type: =head2
13632 #: ../fish/guestfish-actions.pod:4416
13633 msgid "sfdisk-kernel-geometry"
13634 msgstr ""
13635
13636 #. type: verbatim
13637 #: ../fish/guestfish-actions.pod:4418
13638 #, no-wrap
13639 msgid ""
13640 " sfdisk-kernel-geometry device\n"
13641 "\n"
13642 msgstr ""
13643
13644 #. type: textblock
13645 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6638
13646 msgid "This displays the kernel's idea of the geometry of C<device>."
13647 msgstr ""
13648
13649 #. type: =head2
13650 #: ../fish/guestfish-actions.pod:4425
13651 msgid "sfdisk-l"
13652 msgstr ""
13653
13654 #. type: verbatim
13655 #: ../fish/guestfish-actions.pod:4427
13656 #, no-wrap
13657 msgid ""
13658 " sfdisk-l device\n"
13659 "\n"
13660 msgstr ""
13661
13662 #. type: textblock
13663 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6654
13664 msgid ""
13665 "This displays the partition table on C<device>, in the human-readable output "
13666 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13667 msgstr ""
13668
13669 #. type: textblock
13670 #: ../fish/guestfish-actions.pod:4433
13671 msgid "See also: L</part-list>"
13672 msgstr ""
13673
13674 #. type: textblock
13675 #: ../fish/guestfish-actions.pod:4435
13676 msgid ""
13677 "This function is deprecated.  In new code, use the L</part_list> call "
13678 "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
15186 msgid ""
15187 "This function is deprecated.  In new code, use the L</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
15382 msgid ""
15383 "This function is deprecated.  In new code, use the L</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:32 ../src/guestfs-actions.pod:254
21850 #: ../src/guestfs-actions.pod:275
21851 msgid ""
21852 "This function is deprecated.  In new code, use the L</"
21853 "guestfs_add_drive_opts> call instead."
21854 msgstr ""
21855
21856 #. type: textblock
21857 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
21858 #: ../src/guestfs-actions.pod:1165 ../src/guestfs-actions.pod:1980
21859 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2192
21860 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3643
21861 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:6217
21862 #: ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:6467
21863 #: ../src/guestfs-actions.pod:6958 ../src/guestfs-actions.pod:7083
21864 #: ../src/guestfs-actions.pod:7606
21865 msgid "(Added in 0.3)"
21866 msgstr ""
21867
21868 #. type: =head2
21869 #: ../src/guestfs-actions.pod:41
21870 msgid "guestfs_add_domain"
21871 msgstr ""
21872
21873 #. type: verbatim
21874 #: ../src/guestfs-actions.pod:43
21875 #, no-wrap
21876 msgid ""
21877 " int\n"
21878 " guestfs_add_domain (guestfs_h *g,\n"
21879 "                     const char *dom,\n"
21880 "                     ...);\n"
21881 "\n"
21882 msgstr ""
21883
21884 #. type: textblock
21885 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
21886 #: ../src/guestfs-actions.pod:832 ../src/guestfs-actions.pod:2826
21887 #: ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4961
21888 #: ../src/guestfs-actions.pod:5178
21889 msgid ""
21890 "You may supply a list of optional arguments to this call.  Use zero or more "
21891 "of the following pairs of parameters, and terminate the list with C<-1> on "
21892 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
21893 msgstr ""
21894
21895 #. type: verbatim
21896 #: ../src/guestfs-actions.pod:53
21897 #, no-wrap
21898 msgid ""
21899 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
21900 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
21901 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
21902 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
21903 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
21904 "\n"
21905 msgstr ""
21906
21907 #. type: textblock
21908 #: ../src/guestfs-actions.pod:59
21909 msgid ""
21910 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21911 "It works by connecting to libvirt, requesting the domain and domain XML from "
21912 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
21913 "one."
21914 msgstr ""
21915
21916 #. type: textblock
21917 #: ../src/guestfs-actions.pod:94
21918 msgid ""
21919 "The other optional parameters are passed directly through to "
21920 "C<guestfs_add_drive_opts>."
21921 msgstr ""
21922
21923 #. type: textblock
21924 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
21925 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
21926 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
21927 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1380
21928 #: ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1939
21929 #: ../src/guestfs-actions.pod:2050 ../src/guestfs-actions.pod:2101
21930 #: ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:2179
21931 #: ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:2944
21932 #: ../src/guestfs-actions.pod:2962 ../src/guestfs-actions.pod:5137
21933 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5769
21934 #: ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:7191
21935 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:7630
21936 #: ../src/guestfs-actions.pod:7643
21937 msgid "On error this function returns -1."
21938 msgstr ""
21939
21940 #. type: textblock
21941 #: ../src/guestfs-actions.pod:99
21942 msgid "(Added in 1.7.4)"
21943 msgstr ""
21944
21945 #. type: =head2
21946 #: ../src/guestfs-actions.pod:101
21947 msgid "guestfs_add_domain_va"
21948 msgstr ""
21949
21950 #. type: verbatim
21951 #: ../src/guestfs-actions.pod:103
21952 #, no-wrap
21953 msgid ""
21954 " int\n"
21955 " guestfs_add_domain_va (guestfs_h *g,\n"
21956 "                        const char *dom,\n"
21957 "                        va_list args);\n"
21958 "\n"
21959 msgstr ""
21960
21961 #. type: textblock
21962 #: ../src/guestfs-actions.pod:108
21963 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
21964 msgstr ""
21965
21966 #. type: textblock
21967 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
21968 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
21969 #: ../src/guestfs-actions.pod:871 ../src/guestfs-actions.pod:882
21970 #: ../src/guestfs-actions.pod:2910 ../src/guestfs-actions.pod:2922
21971 #: ../src/guestfs-actions.pod:4707 ../src/guestfs-actions.pod:4719
21972 #: ../src/guestfs-actions.pod:4989 ../src/guestfs-actions.pod:5001
21973 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5238
21974 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
21975 msgstr ""
21976
21977 #. type: =head2
21978 #: ../src/guestfs-actions.pod:112
21979 msgid "guestfs_add_domain_argv"
21980 msgstr ""
21981
21982 #. type: verbatim
21983 #: ../src/guestfs-actions.pod:114
21984 #, no-wrap
21985 msgid ""
21986 " int\n"
21987 " guestfs_add_domain_argv (guestfs_h *g,\n"
21988 "                          const char *dom,\n"
21989 "                          const struct guestfs_add_domain_argv *optargs);\n"
21990 "\n"
21991 msgstr ""
21992
21993 #. type: textblock
21994 #: ../src/guestfs-actions.pod:119
21995 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
21996 msgstr ""
21997
21998 #. type: =head2
21999 #: ../src/guestfs-actions.pod:123
22000 msgid "guestfs_add_drive"
22001 msgstr ""
22002
22003 #. type: verbatim
22004 #: ../src/guestfs-actions.pod:125
22005 #, no-wrap
22006 msgid ""
22007 " int\n"
22008 " guestfs_add_drive (guestfs_h *g,\n"
22009 "                    const char *filename);\n"
22010 "\n"
22011 msgstr ""
22012
22013 #. type: textblock
22014 #: ../src/guestfs-actions.pod:129
22015 msgid ""
22016 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
22017 "optional parameters, so the disk is added writable, with the format being "
22018 "detected automatically."
22019 msgstr ""
22020
22021 #. type: textblock
22022 #: ../src/guestfs-actions.pod:133
22023 msgid ""
22024 "Automatic detection of the format opens you up to a potential security hole "
22025 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
22026 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
22027 "you should think about replacing calls to this function with calls to "
22028 "C<guestfs_add_drive_opts>, and specifying the format."
22029 msgstr ""
22030
22031 #. type: =head2
22032 #: ../src/guestfs-actions.pod:144
22033 msgid "guestfs_add_drive_opts"
22034 msgstr ""
22035
22036 #. type: verbatim
22037 #: ../src/guestfs-actions.pod:146
22038 #, no-wrap
22039 msgid ""
22040 " int\n"
22041 " guestfs_add_drive_opts (guestfs_h *g,\n"
22042 "                         const char *filename,\n"
22043 "                         ...);\n"
22044 "\n"
22045 msgstr ""
22046
22047 #. type: verbatim
22048 #: ../src/guestfs-actions.pod:156
22049 #, no-wrap
22050 msgid ""
22051 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
22052 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
22053 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
22054 "\n"
22055 msgstr ""
22056
22057 #. type: textblock
22058 #: ../src/guestfs-actions.pod:185
22059 msgid ""
22060 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
22061 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
22062 "Possible formats include C<raw> and C<qcow2>."
22063 msgstr ""
22064
22065 #. type: textblock
22066 #: ../src/guestfs-actions.pod:196
22067 msgid ""
22068 "This rarely-used option lets you emulate the behaviour of the deprecated "
22069 "C<guestfs_add_drive_with_if> call (q.v.)"
22070 msgstr ""
22071
22072 #. type: textblock
22073 #: ../src/guestfs-actions.pod:203
22074 msgid "(Added in 1.5.23)"
22075 msgstr ""
22076
22077 #. type: =head2
22078 #: ../src/guestfs-actions.pod:205
22079 msgid "guestfs_add_drive_opts_va"
22080 msgstr ""
22081
22082 #. type: verbatim
22083 #: ../src/guestfs-actions.pod:207
22084 #, no-wrap
22085 msgid ""
22086 " int\n"
22087 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
22088 "                            const char *filename,\n"
22089 "                            va_list args);\n"
22090 "\n"
22091 msgstr ""
22092
22093 #. type: textblock
22094 #: ../src/guestfs-actions.pod:212
22095 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
22096 msgstr ""
22097
22098 #. type: =head2
22099 #: ../src/guestfs-actions.pod:216
22100 msgid "guestfs_add_drive_opts_argv"
22101 msgstr ""
22102
22103 #. type: verbatim
22104 #: ../src/guestfs-actions.pod:218
22105 #, no-wrap
22106 msgid ""
22107 " int\n"
22108 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
22109 "                              const char *filename,\n"
22110 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
22111 "\n"
22112 msgstr ""
22113
22114 #. type: textblock
22115 #: ../src/guestfs-actions.pod:223
22116 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
22117 msgstr ""
22118
22119 #. type: =head2
22120 #: ../src/guestfs-actions.pod:227
22121 msgid "guestfs_add_drive_ro"
22122 msgstr ""
22123
22124 #. type: verbatim
22125 #: ../src/guestfs-actions.pod:229
22126 #, no-wrap
22127 msgid ""
22128 " int\n"
22129 " guestfs_add_drive_ro (guestfs_h *g,\n"
22130 "                       const char *filename);\n"
22131 "\n"
22132 msgstr ""
22133
22134 #. type: textblock
22135 #: ../src/guestfs-actions.pod:233
22136 msgid ""
22137 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
22138 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
22139 "disk is added read-only, with the format being detected automatically."
22140 msgstr ""
22141
22142 #. type: textblock
22143 #: ../src/guestfs-actions.pod:240
22144 msgid "(Added in 1.0.38)"
22145 msgstr ""
22146
22147 #. type: =head2
22148 #: ../src/guestfs-actions.pod:242
22149 msgid "guestfs_add_drive_ro_with_if"
22150 msgstr ""
22151
22152 #. type: verbatim
22153 #: ../src/guestfs-actions.pod:244
22154 #, no-wrap
22155 msgid ""
22156 " int\n"
22157 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
22158 "                               const char *filename,\n"
22159 "                               const char *iface);\n"
22160 "\n"
22161 msgstr ""
22162
22163 #. type: textblock
22164 #: ../src/guestfs-actions.pod:249
22165 msgid ""
22166 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
22167 "QEMU interface emulation to use at run time."
22168 msgstr ""
22169
22170 #. type: textblock
22171 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
22172 #: ../src/guestfs-actions.pod:2431
22173 msgid "(Added in 1.0.84)"
22174 msgstr ""
22175
22176 #. type: =head2
22177 #: ../src/guestfs-actions.pod:263
22178 msgid "guestfs_add_drive_with_if"
22179 msgstr ""
22180
22181 #. type: verbatim
22182 #: ../src/guestfs-actions.pod:265
22183 #, no-wrap
22184 msgid ""
22185 " int\n"
22186 " guestfs_add_drive_with_if (guestfs_h *g,\n"
22187 "                            const char *filename,\n"
22188 "                            const char *iface);\n"
22189 "\n"
22190 msgstr ""
22191
22192 #. type: textblock
22193 #: ../src/guestfs-actions.pod:270
22194 msgid ""
22195 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
22196 "QEMU interface emulation to use at run time."
22197 msgstr ""
22198
22199 #. type: =head2
22200 #: ../src/guestfs-actions.pod:284
22201 msgid "guestfs_aug_clear"
22202 msgstr ""
22203
22204 #. type: verbatim
22205 #: ../src/guestfs-actions.pod:286
22206 #, no-wrap
22207 msgid ""
22208 " int\n"
22209 " guestfs_aug_clear (guestfs_h *g,\n"
22210 "                    const char *augpath);\n"
22211 "\n"
22212 msgstr ""
22213
22214 #. type: textblock
22215 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2181
22216 msgid "(Added in 1.3.4)"
22217 msgstr ""
22218
22219 #. type: =head2
22220 #: ../src/guestfs-actions.pod:297
22221 msgid "guestfs_aug_close"
22222 msgstr ""
22223
22224 #. type: verbatim
22225 #: ../src/guestfs-actions.pod:299
22226 #, no-wrap
22227 msgid ""
22228 " int\n"
22229 " guestfs_aug_close (guestfs_h *g);\n"
22230 "\n"
22231 msgstr ""
22232
22233 #. type: textblock
22234 #: ../src/guestfs-actions.pod:302
22235 msgid ""
22236 "Close the current Augeas handle and free up any resources used by it.  After "
22237 "calling this, you have to call C<guestfs_aug_init> again before you can use "
22238 "any other Augeas functions."
22239 msgstr ""
22240
22241 #. type: textblock
22242 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
22243 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
22244 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
22245 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
22246 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
22247 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
22248 #: ../src/guestfs-actions.pod:5846
22249 msgid "(Added in 0.7)"
22250 msgstr ""
22251
22252 #. type: =head2
22253 #: ../src/guestfs-actions.pod:311
22254 msgid "guestfs_aug_defnode"
22255 msgstr ""
22256
22257 #. type: verbatim
22258 #: ../src/guestfs-actions.pod:313
22259 #, no-wrap
22260 msgid ""
22261 " struct guestfs_int_bool *\n"
22262 " guestfs_aug_defnode (guestfs_h *g,\n"
22263 "                      const char *name,\n"
22264 "                      const char *expr,\n"
22265 "                      const char *val);\n"
22266 "\n"
22267 msgstr ""
22268
22269 #. type: textblock
22270 #: ../src/guestfs-actions.pod:322
22271 msgid ""
22272 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22273 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
22274 "containing that single node."
22275 msgstr ""
22276
22277 #. type: textblock
22278 #: ../src/guestfs-actions.pod:330
22279 msgid ""
22280 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
22281 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
22282 msgstr ""
22283
22284 #. type: =head2
22285 #: ../src/guestfs-actions.pod:336
22286 msgid "guestfs_aug_defvar"
22287 msgstr ""
22288
22289 #. type: verbatim
22290 #: ../src/guestfs-actions.pod:338
22291 #, no-wrap
22292 msgid ""
22293 " int\n"
22294 " guestfs_aug_defvar (guestfs_h *g,\n"
22295 "                     const char *name,\n"
22296 "                     const char *expr);\n"
22297 "\n"
22298 msgstr ""
22299
22300 #. type: =head2
22301 #: ../src/guestfs-actions.pod:354
22302 msgid "guestfs_aug_get"
22303 msgstr ""
22304
22305 #. type: verbatim
22306 #: ../src/guestfs-actions.pod:356
22307 #, no-wrap
22308 msgid ""
22309 " char *\n"
22310 " guestfs_aug_get (guestfs_h *g,\n"
22311 "                  const char *augpath);\n"
22312 "\n"
22313 msgstr ""
22314
22315 #. type: textblock
22316 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:922
22317 #: ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1000
22318 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1119
22319 #: ../src/guestfs-actions.pod:1249 ../src/guestfs-actions.pod:1266
22320 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1419
22321 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1719
22322 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:1899
22323 #: ../src/guestfs-actions.pod:1966 ../src/guestfs-actions.pod:2002
22324 #: ../src/guestfs-actions.pod:2023 ../src/guestfs-actions.pod:2204
22325 #: ../src/guestfs-actions.pod:2396 ../src/guestfs-actions.pod:2600
22326 #: ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2794
22327 #: ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:3027
22328 #: ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3076
22329 #: ../src/guestfs-actions.pod:3110 ../src/guestfs-actions.pod:3169
22330 #: ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3209
22331 #: ../src/guestfs-actions.pod:3836 ../src/guestfs-actions.pod:4189
22332 #: ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:4469
22333 #: ../src/guestfs-actions.pod:5375 ../src/guestfs-actions.pod:5574
22334 #: ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:5922
22335 #: ../src/guestfs-actions.pod:5971 ../src/guestfs-actions.pod:6627
22336 #: ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6660
22337 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:7365
22338 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7402
22339 #: ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7878
22340 msgid ""
22341 "This function returns a string, or NULL on error.  I<The caller must free "
22342 "the returned string after use>."
22343 msgstr ""
22344
22345 #. type: =head2
22346 #: ../src/guestfs-actions.pod:368
22347 msgid "guestfs_aug_init"
22348 msgstr ""
22349
22350 #. type: verbatim
22351 #: ../src/guestfs-actions.pod:370
22352 #, no-wrap
22353 msgid ""
22354 " int\n"
22355 " guestfs_aug_init (guestfs_h *g,\n"
22356 "                   const char *root,\n"
22357 "                   int flags);\n"
22358 "\n"
22359 msgstr ""
22360
22361 #. type: textblock
22362 #: ../src/guestfs-actions.pod:379
22363 msgid "You must call this before using any other C<guestfs_aug_*> commands."
22364 msgstr ""
22365
22366 #. type: textblock
22367 #: ../src/guestfs-actions.pod:414
22368 msgid "Do not load the tree in C<guestfs_aug_init>."
22369 msgstr ""
22370
22371 #. type: textblock
22372 #: ../src/guestfs-actions.pod:418
22373 msgid "To close the handle, you can call C<guestfs_aug_close>."
22374 msgstr ""
22375
22376 #. type: =head2
22377 #: ../src/guestfs-actions.pod:426
22378 msgid "guestfs_aug_insert"
22379 msgstr ""
22380
22381 #. type: verbatim
22382 #: ../src/guestfs-actions.pod:428
22383 #, no-wrap
22384 msgid ""
22385 " int\n"
22386 " guestfs_aug_insert (guestfs_h *g,\n"
22387 "                     const char *augpath,\n"
22388 "                     const char *label,\n"
22389 "                     int before);\n"
22390 "\n"
22391 msgstr ""
22392
22393 #. type: =head2
22394 #: ../src/guestfs-actions.pod:446
22395 msgid "guestfs_aug_load"
22396 msgstr ""
22397
22398 #. type: verbatim
22399 #: ../src/guestfs-actions.pod:448
22400 #, no-wrap
22401 msgid ""
22402 " int\n"
22403 " guestfs_aug_load (guestfs_h *g);\n"
22404 "\n"
22405 msgstr ""
22406
22407 #. type: =head2
22408 #: ../src/guestfs-actions.pod:460
22409 msgid "guestfs_aug_ls"
22410 msgstr ""
22411
22412 #. type: verbatim
22413 #: ../src/guestfs-actions.pod:462
22414 #, no-wrap
22415 msgid ""
22416 " char **\n"
22417 " guestfs_aug_ls (guestfs_h *g,\n"
22418 "                 const char *augpath);\n"
22419 "\n"
22420 msgstr ""
22421
22422 #. type: textblock
22423 #: ../src/guestfs-actions.pod:466
22424 msgid ""
22425 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
22426 "sorting the resulting nodes into alphabetical order."
22427 msgstr ""
22428
22429 #. type: textblock
22430 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
22431 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1138
22432 #: ../src/guestfs-actions.pod:1434 ../src/guestfs-actions.pod:1453
22433 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
22434 #: ../src/guestfs-actions.pod:1821 ../src/guestfs-actions.pod:2276
22435 #: ../src/guestfs-actions.pod:2292 ../src/guestfs-actions.pod:2311
22436 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:2378
22437 #: ../src/guestfs-actions.pod:2449 ../src/guestfs-actions.pod:2498
22438 #: ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:3129
22439 #: ../src/guestfs-actions.pod:3405 ../src/guestfs-actions.pod:3719
22440 #: ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3756
22441 #: ../src/guestfs-actions.pod:3818 ../src/guestfs-actions.pod:3923
22442 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:5098
22443 #: ../src/guestfs-actions.pod:5716 ../src/guestfs-actions.pod:5842
22444 #: ../src/guestfs-actions.pod:5956 ../src/guestfs-actions.pod:6707
22445 #: ../src/guestfs-actions.pod:6768 ../src/guestfs-actions.pod:6823
22446 #: ../src/guestfs-actions.pod:6969 ../src/guestfs-actions.pod:6993
22447 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-actions.pod:7489
22448 #: ../src/guestfs-actions.pod:7536 ../src/guestfs-actions.pod:7730
22449 #: ../src/guestfs-actions.pod:7749 ../src/guestfs-actions.pod:7835
22450 #: ../src/guestfs-actions.pod:7854 ../src/guestfs-actions.pod:7900
22451 #: ../src/guestfs-actions.pod:7919
22452 msgid ""
22453 "This function returns a NULL-terminated array of strings (like L<environ(3)"
22454 ">), or NULL if there was an error.  I<The caller must free the strings and "
22455 "the array after use>."
22456 msgstr ""
22457
22458 #. type: textblock
22459 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1063
22460 #: ../src/guestfs-actions.pod:1081 ../src/guestfs-actions.pod:1491
22461 #: ../src/guestfs-actions.pod:3483 ../src/guestfs-actions.pod:3514
22462 #: ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:4222
22463 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4442
22464 #: ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:5102
22465 #: ../src/guestfs-actions.pod:5657 ../src/guestfs-actions.pod:6054
22466 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6080
22467 #: ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:7207
22468 #: ../src/guestfs-actions.pod:7220 ../src/guestfs-actions.pod:7453
22469 #: ../src/guestfs-actions.pod:7718
22470 msgid "(Added in 0.8)"
22471 msgstr ""
22472
22473 #. type: =head2
22474 #: ../src/guestfs-actions.pod:475
22475 msgid "guestfs_aug_match"
22476 msgstr ""
22477
22478 #. type: verbatim
22479 #: ../src/guestfs-actions.pod:477
22480 #, no-wrap
22481 msgid ""
22482 " char **\n"
22483 " guestfs_aug_match (guestfs_h *g,\n"
22484 "                    const char *augpath);\n"
22485 "\n"
22486 msgstr ""
22487
22488 #. type: =head2
22489 #: ../src/guestfs-actions.pod:491
22490 msgid "guestfs_aug_mv"
22491 msgstr ""
22492
22493 #. type: verbatim
22494 #: ../src/guestfs-actions.pod:493
22495 #, no-wrap
22496 msgid ""
22497 " int\n"
22498 " guestfs_aug_mv (guestfs_h *g,\n"
22499 "                 const char *src,\n"
22500 "                 const char *dest);\n"
22501 "\n"
22502 msgstr ""
22503
22504 #. type: =head2
22505 #: ../src/guestfs-actions.pod:505
22506 msgid "guestfs_aug_rm"
22507 msgstr ""
22508
22509 #. type: verbatim
22510 #: ../src/guestfs-actions.pod:507
22511 #, no-wrap
22512 msgid ""
22513 " int\n"
22514 " guestfs_aug_rm (guestfs_h *g,\n"
22515 "                 const char *augpath);\n"
22516 "\n"
22517 msgstr ""
22518
22519 #. type: =head2
22520 #: ../src/guestfs-actions.pod:519
22521 msgid "guestfs_aug_save"
22522 msgstr ""
22523
22524 #. type: verbatim
22525 #: ../src/guestfs-actions.pod:521
22526 #, no-wrap
22527 msgid ""
22528 " int\n"
22529 " guestfs_aug_save (guestfs_h *g);\n"
22530 "\n"
22531 msgstr ""
22532
22533 #. type: textblock
22534 #: ../src/guestfs-actions.pod:526
22535 msgid ""
22536 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
22537 "are saved."
22538 msgstr ""
22539
22540 #. type: =head2
22541 #: ../src/guestfs-actions.pod:533
22542 msgid "guestfs_aug_set"
22543 msgstr ""
22544
22545 #. type: verbatim
22546 #: ../src/guestfs-actions.pod:535
22547 #, no-wrap
22548 msgid ""
22549 " int\n"
22550 " guestfs_aug_set (guestfs_h *g,\n"
22551 "                  const char *augpath,\n"
22552 "                  const char *val);\n"
22553 "\n"
22554 msgstr ""
22555
22556 #. type: textblock
22557 #: ../src/guestfs-actions.pod:542
22558 msgid ""
22559 "In the Augeas API, it is possible to clear a node by setting the value to "
22560 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22561 "this call.  Instead you must use the C<guestfs_aug_clear> call."
22562 msgstr ""
22563
22564 #. type: =head2
22565 #: ../src/guestfs-actions.pod:551
22566 msgid "guestfs_available"
22567 msgstr ""
22568
22569 #. type: verbatim
22570 #: ../src/guestfs-actions.pod:553
22571 #, no-wrap
22572 msgid ""
22573 " int\n"
22574 " guestfs_available (guestfs_h *g,\n"
22575 "                    char *const *groups);\n"
22576 "\n"
22577 msgstr ""
22578
22579 #. type: textblock
22580 #: ../src/guestfs-actions.pod:561
22581 msgid ""
22582 "The libguestfs groups, and the functions that those groups correspond to, "
22583 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22584 "runtime by calling C<guestfs_available_all_groups>."
22585 msgstr ""
22586
22587 #. type: textblock
22588 #: ../src/guestfs-actions.pod:585
22589 msgid "You must call C<guestfs_launch> before calling this function."
22590 msgstr ""
22591
22592 #. type: textblock
22593 #: ../src/guestfs-actions.pod:607
22594 msgid ""
22595 "This call was added in version C<1.0.80>.  In previous versions of "
22596 "libguestfs all you could do would be to speculatively execute a command to "
22597 "find out if the daemon implemented it.  See also C<guestfs_version>."
22598 msgstr ""
22599
22600 #. type: textblock
22601 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1236
22602 msgid "(Added in 1.0.80)"
22603 msgstr ""
22604
22605 #. type: =head2
22606 #: ../src/guestfs-actions.pod:618
22607 msgid "guestfs_available_all_groups"
22608 msgstr ""
22609
22610 #. type: verbatim
22611 #: ../src/guestfs-actions.pod:620
22612 #, no-wrap
22613 msgid ""
22614 " char **\n"
22615 " guestfs_available_all_groups (guestfs_h *g);\n"
22616 "\n"
22617 msgstr ""
22618
22619 #. type: textblock
22620 #: ../src/guestfs-actions.pod:623
22621 msgid ""
22622 "This command returns a list of all optional groups that this daemon knows "
22623 "about.  Note this returns both supported and unsupported groups.  To find "
22624 "out which ones the daemon can actually support you have to call "
22625 "C<guestfs_available> on each member of the returned list."
22626 msgstr ""
22627
22628 #. type: textblock
22629 #: ../src/guestfs-actions.pod:629
22630 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
22631 msgstr ""
22632
22633 #. type: textblock
22634 #: ../src/guestfs-actions.pod:635
22635 msgid "(Added in 1.3.15)"
22636 msgstr ""
22637
22638 #. type: =head2
22639 #: ../src/guestfs-actions.pod:637
22640 msgid "guestfs_base64_in"
22641 msgstr ""
22642
22643 #. type: verbatim
22644 #: ../src/guestfs-actions.pod:639
22645 #, no-wrap
22646 msgid ""
22647 " int\n"
22648 " guestfs_base64_in (guestfs_h *g,\n"
22649 "                    const char *base64file,\n"
22650 "                    const char *filename);\n"
22651 "\n"
22652 msgstr ""
22653
22654 #. type: textblock
22655 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
22656 msgid "(Added in 1.3.5)"
22657 msgstr ""
22658
22659 #. type: =head2
22660 #: ../src/guestfs-actions.pod:651
22661 msgid "guestfs_base64_out"
22662 msgstr ""
22663
22664 #. type: verbatim
22665 #: ../src/guestfs-actions.pod:653
22666 #, no-wrap
22667 msgid ""
22668 " int\n"
22669 " guestfs_base64_out (guestfs_h *g,\n"
22670 "                     const char *filename,\n"
22671 "                     const char *base64file);\n"
22672 "\n"
22673 msgstr ""
22674
22675 #. type: =head2
22676 #: ../src/guestfs-actions.pod:665
22677 msgid "guestfs_blockdev_flushbufs"
22678 msgstr ""
22679
22680 #. type: verbatim
22681 #: ../src/guestfs-actions.pod:667
22682 #, no-wrap
22683 msgid ""
22684 " int\n"
22685 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
22686 "                             const char *device);\n"
22687 "\n"
22688 msgstr ""
22689
22690 #. type: textblock
22691 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
22692 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
22693 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
22694 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
22695 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
22696 msgid "(Added in 0.9.3)"
22697 msgstr ""
22698
22699 #. type: =head2
22700 #: ../src/guestfs-actions.pod:680
22701 msgid "guestfs_blockdev_getbsz"
22702 msgstr ""
22703
22704 #. type: verbatim
22705 #: ../src/guestfs-actions.pod:682
22706 #, no-wrap
22707 msgid ""
22708 " int\n"
22709 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
22710 "                          const char *device);\n"
22711 "\n"
22712 msgstr ""
22713
22714 #. type: =head2
22715 #: ../src/guestfs-actions.pod:697
22716 msgid "guestfs_blockdev_getro"
22717 msgstr ""
22718
22719 #. type: verbatim
22720 #: ../src/guestfs-actions.pod:699
22721 #, no-wrap
22722 msgid ""
22723 " int\n"
22724 " guestfs_blockdev_getro (guestfs_h *g,\n"
22725 "                         const char *device);\n"
22726 "\n"
22727 msgstr ""
22728
22729 #. type: textblock
22730 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1474
22731 #: ../src/guestfs-actions.pod:1489 ../src/guestfs-actions.pod:1978
22732 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2061
22733 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2127
22734 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2167
22735 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:3226
22736 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3260
22737 #: ../src/guestfs-actions.pod:3422 ../src/guestfs-actions.pod:3436
22738 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3465
22739 #: ../src/guestfs-actions.pod:3481 ../src/guestfs-actions.pod:3496
22740 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3526
22741 #: ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3553
22742 #: ../src/guestfs-actions.pod:3568 ../src/guestfs-actions.pod:3583
22743 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3610
22744 #: ../src/guestfs-actions.pod:5339
22745 msgid "This function returns a C truth value on success or -1 on error."
22746 msgstr ""
22747
22748 #. type: =head2
22749 #: ../src/guestfs-actions.pod:712
22750 msgid "guestfs_blockdev_getsize64"
22751 msgstr ""
22752
22753 #. type: verbatim
22754 #: ../src/guestfs-actions.pod:714
22755 #, no-wrap
22756 msgid ""
22757 " int64_t\n"
22758 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
22759 "                             const char *device);\n"
22760 "\n"
22761 msgstr ""
22762
22763 #. type: textblock
22764 #: ../src/guestfs-actions.pod:720
22765 msgid "See also C<guestfs_blockdev_getsz>."
22766 msgstr ""
22767
22768 #. type: =head2
22769 #: ../src/guestfs-actions.pod:728
22770 msgid "guestfs_blockdev_getss"
22771 msgstr ""
22772
22773 #. type: verbatim
22774 #: ../src/guestfs-actions.pod:730
22775 #, no-wrap
22776 msgid ""
22777 " int\n"
22778 " guestfs_blockdev_getss (guestfs_h *g,\n"
22779 "                         const char *device);\n"
22780 "\n"
22781 msgstr ""
22782
22783 #. type: textblock
22784 #: ../src/guestfs-actions.pod:737
22785 msgid ""
22786 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
22787 "that)."
22788 msgstr ""
22789
22790 #. type: =head2
22791 #: ../src/guestfs-actions.pod:746
22792 msgid "guestfs_blockdev_getsz"
22793 msgstr ""
22794
22795 #. type: verbatim
22796 #: ../src/guestfs-actions.pod:748
22797 #, no-wrap
22798 msgid ""
22799 " int64_t\n"
22800 " guestfs_blockdev_getsz (guestfs_h *g,\n"
22801 "                         const char *device);\n"
22802 "\n"
22803 msgstr ""
22804
22805 #. type: textblock
22806 #: ../src/guestfs-actions.pod:755
22807 msgid ""
22808 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
22809 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
22810 msgstr ""
22811
22812 #. type: =head2
22813 #: ../src/guestfs-actions.pod:765
22814 msgid "guestfs_blockdev_rereadpt"
22815 msgstr ""
22816
22817 #. type: verbatim
22818 #: ../src/guestfs-actions.pod:767
22819 #, no-wrap
22820 msgid ""
22821 " int\n"
22822 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
22823 "                            const char *device);\n"
22824 "\n"
22825 msgstr ""
22826
22827 #. type: =head2
22828 #: ../src/guestfs-actions.pod:779
22829 msgid "guestfs_blockdev_setbsz"
22830 msgstr ""
22831
22832 #. type: verbatim
22833 #: ../src/guestfs-actions.pod:781
22834 #, no-wrap
22835 msgid ""
22836 " int\n"
22837 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
22838 "                          const char *device,\n"
22839 "                          int blocksize);\n"
22840 "\n"
22841 msgstr ""
22842
22843 #. type: =head2
22844 #: ../src/guestfs-actions.pod:797
22845 msgid "guestfs_blockdev_setro"
22846 msgstr ""
22847
22848 #. type: verbatim
22849 #: ../src/guestfs-actions.pod:799
22850 #, no-wrap
22851 msgid ""
22852 " int\n"
22853 " guestfs_blockdev_setro (guestfs_h *g,\n"
22854 "                         const char *device);\n"
22855 "\n"
22856 msgstr ""
22857
22858 #. type: =head2
22859 #: ../src/guestfs-actions.pod:811
22860 msgid "guestfs_blockdev_setrw"
22861 msgstr ""
22862
22863 #. type: verbatim
22864 #: ../src/guestfs-actions.pod:813
22865 #, no-wrap
22866 msgid ""
22867 " int\n"
22868 " guestfs_blockdev_setrw (guestfs_h *g,\n"
22869 "                         const char *device);\n"
22870 "\n"
22871 msgstr ""
22872
22873 #. type: =head2
22874 #: ../src/guestfs-actions.pod:825
22875 msgid "guestfs_btrfs_filesystem_resize"
22876 msgstr ""
22877
22878 #. type: verbatim
22879 #: ../src/guestfs-actions.pod:827
22880 #, no-wrap
22881 msgid ""
22882 " int\n"
22883 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
22884 "                                  const char *mountpoint,\n"
22885 "                                  ...);\n"
22886 "\n"
22887 msgstr ""
22888
22889 #. type: verbatim
22890 #: ../src/guestfs-actions.pod:837
22891 #, no-wrap
22892 msgid ""
22893 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
22894 "\n"
22895 msgstr ""
22896
22897 #. type: textblock
22898 #: ../src/guestfs-actions.pod:860
22899 msgid "(Added in 1.11.17)"
22900 msgstr ""
22901
22902 #. type: =head2
22903 #: ../src/guestfs-actions.pod:862
22904 msgid "guestfs_btrfs_filesystem_resize_va"
22905 msgstr ""
22906
22907 #. type: verbatim
22908 #: ../src/guestfs-actions.pod:864
22909 #, no-wrap
22910 msgid ""
22911 " int\n"
22912 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
22913 "                                     const char *mountpoint,\n"
22914 "                                     va_list args);\n"
22915 "\n"
22916 msgstr ""
22917
22918 #. type: textblock
22919 #: ../src/guestfs-actions.pod:869
22920 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
22921 msgstr ""
22922
22923 #. type: =head2
22924 #: ../src/guestfs-actions.pod:873
22925 msgid "guestfs_btrfs_filesystem_resize_argv"
22926 msgstr ""
22927
22928 #. type: verbatim
22929 #: ../src/guestfs-actions.pod:875
22930 #, no-wrap
22931 msgid ""
22932 " int\n"
22933 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
22934 "                                       const char *mountpoint,\n"
22935 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
22936 "\n"
22937 msgstr ""
22938
22939 #. type: textblock
22940 #: ../src/guestfs-actions.pod:880
22941 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
22942 msgstr ""
22943
22944 #. type: =head2
22945 #: ../src/guestfs-actions.pod:884
22946 msgid "guestfs_case_sensitive_path"
22947 msgstr ""
22948
22949 #. type: verbatim
22950 #: ../src/guestfs-actions.pod:886
22951 #, no-wrap
22952 msgid ""
22953 " char *\n"
22954 " guestfs_case_sensitive_path (guestfs_h *g,\n"
22955 "                              const char *path);\n"
22956 "\n"
22957 msgstr ""
22958
22959 #. type: textblock
22960 #: ../src/guestfs-actions.pod:912
22961 msgid ""
22962 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
22963 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
22964 "how the directories were originally created under Windows)."
22965 msgstr ""
22966
22967 #. type: textblock
22968 #: ../src/guestfs-actions.pod:920
22969 msgid "See also C<guestfs_realpath>."
22970 msgstr ""
22971
22972 #. type: textblock
22973 #: ../src/guestfs-actions.pod:925 ../src/guestfs-actions.pod:7387
22974 msgid "(Added in 1.0.75)"
22975 msgstr ""
22976
22977 #. type: =head2
22978 #: ../src/guestfs-actions.pod:927
22979 msgid "guestfs_cat"
22980 msgstr ""
22981
22982 #. type: verbatim
22983 #: ../src/guestfs-actions.pod:929
22984 #, no-wrap
22985 msgid ""
22986 " char *\n"
22987 " guestfs_cat (guestfs_h *g,\n"
22988 "              const char *path);\n"
22989 "\n"
22990 msgstr ""
22991
22992 #. type: textblock
22993 #: ../src/guestfs-actions.pod:935
22994 msgid ""
22995 "Note that this function cannot correctly handle binary files (specifically, "
22996 "files containing C<\\0> character which is treated as end of string).  For "
22997 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
22998 "functions which have a more complex interface."
22999 msgstr ""
23000
23001 #. type: textblock
23002 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:3740
23003 #: ../src/guestfs-actions.pod:3822 ../src/guestfs-actions.pod:3839
23004 #: ../src/guestfs-actions.pod:3927 ../src/guestfs-actions.pod:4335
23005 #: ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:5720
23006 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:7540
23007 #: ../src/guestfs-actions.pod:7554
23008 msgid "(Added in 0.4)"
23009 msgstr ""
23010
23011 #. type: =head2
23012 #: ../src/guestfs-actions.pod:948
23013 msgid "guestfs_checksum"
23014 msgstr ""
23015
23016 #. type: verbatim
23017 #: ../src/guestfs-actions.pod:950
23018 #, no-wrap
23019 msgid ""
23020 " char *\n"
23021 " guestfs_checksum (guestfs_h *g,\n"
23022 "                   const char *csumtype,\n"
23023 "                   const char *path);\n"
23024 "\n"
23025 msgstr ""
23026
23027 #. type: textblock
23028 #: ../src/guestfs-actions.pod:996
23029 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
23030 msgstr ""
23031
23032 #. type: textblock
23033 #: ../src/guestfs-actions.pod:998
23034 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
23035 msgstr ""
23036
23037 #. type: textblock
23038 #: ../src/guestfs-actions.pod:1003 ../src/guestfs-actions.pod:1311
23039 #: ../src/guestfs-actions.pod:2158 ../src/guestfs-actions.pod:3438
23040 #: ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:3528
23041 #: ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:7243
23042 msgid "(Added in 1.0.2)"
23043 msgstr ""
23044
23045 #. type: =head2
23046 #: ../src/guestfs-actions.pod:1005
23047 msgid "guestfs_checksum_device"
23048 msgstr ""
23049
23050 #. type: verbatim
23051 #: ../src/guestfs-actions.pod:1007
23052 #, no-wrap
23053 msgid ""
23054 " char *\n"
23055 " guestfs_checksum_device (guestfs_h *g,\n"
23056 "                          const char *csumtype,\n"
23057 "                          const char *device);\n"
23058 "\n"
23059 msgstr ""
23060
23061 #. type: textblock
23062 #: ../src/guestfs-actions.pod:1012
23063 msgid ""
23064 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
23065 "device named C<device>.  For the types of checksums supported see the "
23066 "C<guestfs_checksum> command."
23067 msgstr ""
23068
23069 #. type: textblock
23070 #: ../src/guestfs-actions.pod:1019 ../src/guestfs-actions.pod:5169
23071 #: ../src/guestfs-actions.pod:5304 ../src/guestfs-actions.pod:5341
23072 #: ../src/guestfs-actions.pod:5359 ../src/guestfs-actions.pod:5541
23073 #: ../src/guestfs-actions.pod:7152 ../src/guestfs-actions.pod:7166
23074 #: ../src/guestfs-actions.pod:7566
23075 msgid "(Added in 1.3.2)"
23076 msgstr ""
23077
23078 #. type: =head2
23079 #: ../src/guestfs-actions.pod:1021
23080 msgid "guestfs_checksums_out"
23081 msgstr ""
23082
23083 #. type: verbatim
23084 #: ../src/guestfs-actions.pod:1023
23085 #, no-wrap
23086 msgid ""
23087 " int\n"
23088 " guestfs_checksums_out (guestfs_h *g,\n"
23089 "                        const char *csumtype,\n"
23090 "                        const char *directory,\n"
23091 "                        const char *sumsfile);\n"
23092 "\n"
23093 msgstr ""
23094
23095 #. type: textblock
23096 #: ../src/guestfs-actions.pod:1043
23097 msgid "(Added in 1.3.7)"
23098 msgstr ""
23099
23100 #. type: =head2
23101 #: ../src/guestfs-actions.pod:1045
23102 msgid "guestfs_chmod"
23103 msgstr ""
23104
23105 #. type: verbatim
23106 #: ../src/guestfs-actions.pod:1047
23107 #, no-wrap
23108 msgid ""
23109 " int\n"
23110 " guestfs_chmod (guestfs_h *g,\n"
23111 "                int mode,\n"
23112 "                const char *path);\n"
23113 "\n"
23114 msgstr ""
23115
23116 #. type: =head2
23117 #: ../src/guestfs-actions.pod:1065
23118 msgid "guestfs_chown"
23119 msgstr ""
23120
23121 #. type: verbatim
23122 #: ../src/guestfs-actions.pod:1067
23123 #, no-wrap
23124 msgid ""
23125 " int\n"
23126 " guestfs_chown (guestfs_h *g,\n"
23127 "                int owner,\n"
23128 "                int group,\n"
23129 "                const char *path);\n"
23130 "\n"
23131 msgstr ""
23132
23133 #. type: =head2
23134 #: ../src/guestfs-actions.pod:1083
23135 msgid "guestfs_command"
23136 msgstr ""
23137
23138 #. type: verbatim
23139 #: ../src/guestfs-actions.pod:1085
23140 #, no-wrap
23141 msgid ""
23142 " char *\n"
23143 " guestfs_command (guestfs_h *g,\n"
23144 "                  char *const *arguments);\n"
23145 "\n"
23146 msgstr ""
23147
23148 #. type: textblock
23149 #: ../src/guestfs-actions.pod:1094
23150 msgid ""
23151 "The single parameter is an argv-style list of arguments.  The first element "
23152 "is the name of the program to run.  Subsequent elements are parameters.  The "
23153 "list must be non-empty (ie. must contain a program name).  Note that the "
23154 "command runs directly, and is I<not> invoked via the shell (see "
23155 "C<guestfs_sh>)."
23156 msgstr ""
23157
23158 #. type: textblock
23159 #: ../src/guestfs-actions.pod:1125 ../src/guestfs-actions.pod:1145
23160 #: ../src/guestfs-actions.pod:1610
23161 msgid "(Added in 0.9.1)"
23162 msgstr ""
23163
23164 #. type: =head2
23165 #: ../src/guestfs-actions.pod:1127
23166 msgid "guestfs_command_lines"
23167 msgstr ""
23168
23169 #. type: verbatim
23170 #: ../src/guestfs-actions.pod:1129
23171 #, no-wrap
23172 msgid ""
23173 " char **\n"
23174 " guestfs_command_lines (guestfs_h *g,\n"
23175 "                        char *const *arguments);\n"
23176 "\n"
23177 msgstr ""
23178
23179 #. type: textblock
23180 #: ../src/guestfs-actions.pod:1133
23181 msgid ""
23182 "This is the same as C<guestfs_command>, but splits the result into a list of "
23183 "lines."
23184 msgstr ""
23185
23186 #. type: textblock
23187 #: ../src/guestfs-actions.pod:1136
23188 msgid "See also: C<guestfs_sh_lines>"
23189 msgstr ""
23190
23191 #. type: =head2
23192 #: ../src/guestfs-actions.pod:1147
23193 msgid "guestfs_config"
23194 msgstr ""
23195
23196 #. type: verbatim
23197 #: ../src/guestfs-actions.pod:1149
23198 #, no-wrap
23199 msgid ""
23200 " int\n"
23201 " guestfs_config (guestfs_h *g,\n"
23202 "                 const char *qemuparam,\n"
23203 "                 const char *qemuvalue);\n"
23204 "\n"
23205 msgstr ""
23206
23207 #. type: =head2
23208 #: ../src/guestfs-actions.pod:1167
23209 msgid "guestfs_copy_size"
23210 msgstr ""
23211
23212 #. type: verbatim
23213 #: ../src/guestfs-actions.pod:1169
23214 #, no-wrap
23215 msgid ""
23216 " int\n"
23217 " guestfs_copy_size (guestfs_h *g,\n"
23218 "                    const char *src,\n"
23219 "                    const char *dest,\n"
23220 "                    int64_t size);\n"
23221 "\n"
23222 msgstr ""
23223
23224 #. type: textblock
23225 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1306
23226 #: ../src/guestfs-actions.pod:1337 ../src/guestfs-actions.pod:1382
23227 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:1781
23228 #: ../src/guestfs-actions.pod:3638 ../src/guestfs-actions.pod:7238
23229 #: ../src/guestfs-actions.pod:7272 ../src/guestfs-actions.pod:7775
23230 #: ../src/guestfs-actions.pod:7794
23231 msgid ""
23232 "This long-running command can generate progress notification messages so "
23233 "that the caller can display a progress bar or indicator.  To receive these "
23234 "messages, the caller must register a progress event callback.  See L<guestfs"
23235 "(3)/GUESTFS_EVENT_PROGRESS>."
23236 msgstr ""
23237
23238 #. type: textblock
23239 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:4362
23240 #: ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:7473
23241 #: ../src/guestfs-actions.pod:7493 ../src/guestfs-actions.pod:7579
23242 msgid "(Added in 1.0.87)"
23243 msgstr ""
23244
23245 #. type: =head2
23246 #: ../src/guestfs-actions.pod:1190
23247 msgid "guestfs_cp"
23248 msgstr ""
23249
23250 #. type: verbatim
23251 #: ../src/guestfs-actions.pod:1192
23252 #, no-wrap
23253 msgid ""
23254 " int\n"
23255 " guestfs_cp (guestfs_h *g,\n"
23256 "             const char *src,\n"
23257 "             const char *dest);\n"
23258 "\n"
23259 msgstr ""
23260
23261 #. type: textblock
23262 #: ../src/guestfs-actions.pod:1202 ../src/guestfs-actions.pod:1216
23263 #: ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:1362
23264 #: ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:5116
23265 #: ../src/guestfs-actions.pod:5591
23266 msgid "(Added in 1.0.18)"
23267 msgstr ""
23268
23269 #. type: =head2
23270 #: ../src/guestfs-actions.pod:1204
23271 msgid "guestfs_cp_a"
23272 msgstr ""
23273
23274 #. type: verbatim
23275 #: ../src/guestfs-actions.pod:1206
23276 #, no-wrap
23277 msgid ""
23278 " int\n"
23279 " guestfs_cp_a (guestfs_h *g,\n"
23280 "               const char *src,\n"
23281 "               const char *dest);\n"
23282 "\n"
23283 msgstr ""
23284
23285 #. type: =head2
23286 #: ../src/guestfs-actions.pod:1218
23287 msgid "guestfs_dd"
23288 msgstr ""
23289
23290 #. type: verbatim
23291 #: ../src/guestfs-actions.pod:1220
23292 #, no-wrap
23293 msgid ""
23294 " int\n"
23295 " guestfs_dd (guestfs_h *g,\n"
23296 "             const char *src,\n"
23297 "             const char *dest);\n"
23298 "\n"
23299 msgstr ""
23300
23301 #. type: textblock
23302 #: ../src/guestfs-actions.pod:1230
23303 msgid ""
23304 "If the destination is a device, it must be as large or larger than the "
23305 "source file or device, otherwise the copy will fail.  This command cannot do "
23306 "partial copies (see C<guestfs_copy_size>)."
23307 msgstr ""
23308
23309 #. type: =head2
23310 #: ../src/guestfs-actions.pod:1238
23311 msgid "guestfs_df"
23312 msgstr ""
23313
23314 #. type: verbatim
23315 #: ../src/guestfs-actions.pod:1240
23316 #, no-wrap
23317 msgid ""
23318 " char *\n"
23319 " guestfs_df (guestfs_h *g);\n"
23320 "\n"
23321 msgstr ""
23322
23323 #. type: textblock
23324 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1262
23325 msgid ""
23326 "This command is mostly useful for interactive sessions.  It is I<not> "
23327 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
23328 "from programs."
23329 msgstr ""
23330
23331 #. type: textblock
23332 #: ../src/guestfs-actions.pod:1252 ../src/guestfs-actions.pod:1269
23333 #: ../src/guestfs-actions.pod:1387 ../src/guestfs-actions.pod:2361
23334 #: ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:2453
23335 #: ../src/guestfs-actions.pod:4472 ../src/guestfs-actions.pod:5016
23336 #: ../src/guestfs-actions.pod:6976 ../src/guestfs-actions.pod:7000
23337 #: ../src/guestfs-actions.pod:7619 ../src/guestfs-actions.pod:7632
23338 #: ../src/guestfs-actions.pod:7645
23339 msgid "(Added in 1.0.54)"
23340 msgstr ""
23341
23342 #. type: =head2
23343 #: ../src/guestfs-actions.pod:1254
23344 msgid "guestfs_df_h"
23345 msgstr ""
23346
23347 #. type: verbatim
23348 #: ../src/guestfs-actions.pod:1256
23349 #, no-wrap
23350 msgid ""
23351 " char *\n"
23352 " guestfs_df_h (guestfs_h *g);\n"
23353 "\n"
23354 msgstr ""
23355
23356 #. type: =head2
23357 #: ../src/guestfs-actions.pod:1271
23358 msgid "guestfs_dmesg"
23359 msgstr ""
23360
23361 #. type: verbatim
23362 #: ../src/guestfs-actions.pod:1273
23363 #, no-wrap
23364 msgid ""
23365 " char *\n"
23366 " guestfs_dmesg (guestfs_h *g);\n"
23367 "\n"
23368 msgstr ""
23369
23370 #. type: textblock
23371 #: ../src/guestfs-actions.pod:1280
23372 msgid ""
23373 "Another way to get the same information is to enable verbose messages with "
23374 "C<guestfs_set_verbose> or by setting the environment variable "
23375 "C<LIBGUESTFS_DEBUG=1> before running the program."
23376 msgstr ""
23377
23378 #. type: =head2
23379 #: ../src/guestfs-actions.pod:1290
23380 msgid "guestfs_download"
23381 msgstr ""
23382
23383 #. type: verbatim
23384 #: ../src/guestfs-actions.pod:1292
23385 #, no-wrap
23386 msgid ""
23387 " int\n"
23388 " guestfs_download (guestfs_h *g,\n"
23389 "                   const char *remotefilename,\n"
23390 "                   const char *filename);\n"
23391 "\n"
23392 msgstr ""
23393
23394 #. type: textblock
23395 #: ../src/guestfs-actions.pod:1302
23396 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
23397 msgstr ""
23398
23399 #. type: =head2
23400 #: ../src/guestfs-actions.pod:1313
23401 msgid "guestfs_download_offset"
23402 msgstr ""
23403
23404 #. type: verbatim
23405 #: ../src/guestfs-actions.pod:1315
23406 #, no-wrap
23407 msgid ""
23408 " int\n"
23409 " guestfs_download_offset (guestfs_h *g,\n"
23410 "                          const char *remotefilename,\n"
23411 "                          const char *filename,\n"
23412 "                          int64_t offset,\n"
23413 "                          int64_t size);\n"
23414 "\n"
23415 msgstr ""
23416
23417 #. type: textblock
23418 #: ../src/guestfs-actions.pod:1328
23419 msgid ""
23420 "Note that there is no limit on the amount of data that can be downloaded "
23421 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
23422 "full amount unless an error occurs."
23423 msgstr ""
23424
23425 #. type: textblock
23426 #: ../src/guestfs-actions.pod:1333
23427 msgid "See also C<guestfs_download>, C<guestfs_pread>."
23428 msgstr ""
23429
23430 #. type: textblock
23431 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:7277
23432 msgid "(Added in 1.5.17)"
23433 msgstr ""
23434
23435 #. type: =head2
23436 #: ../src/guestfs-actions.pod:1344
23437 msgid "guestfs_drop_caches"
23438 msgstr ""
23439
23440 #. type: verbatim
23441 #: ../src/guestfs-actions.pod:1346
23442 #, no-wrap
23443 msgid ""
23444 " int\n"
23445 " guestfs_drop_caches (guestfs_h *g,\n"
23446 "                      int whattodrop);\n"
23447 "\n"
23448 msgstr ""
23449
23450 #. type: =head2
23451 #: ../src/guestfs-actions.pod:1364
23452 msgid "guestfs_du"
23453 msgstr ""
23454
23455 #. type: verbatim
23456 #: ../src/guestfs-actions.pod:1366
23457 #, no-wrap
23458 msgid ""
23459 " int64_t\n"
23460 " guestfs_du (guestfs_h *g,\n"
23461 "             const char *path);\n"
23462 "\n"
23463 msgstr ""
23464
23465 #. type: =head2
23466 #: ../src/guestfs-actions.pod:1389
23467 msgid "guestfs_e2fsck_f"
23468 msgstr ""
23469
23470 #. type: verbatim
23471 #: ../src/guestfs-actions.pod:1391
23472 #, no-wrap
23473 msgid ""
23474 " int\n"
23475 " guestfs_e2fsck_f (guestfs_h *g,\n"
23476 "                   const char *device);\n"
23477 "\n"
23478 msgstr ""
23479
23480 #. type: textblock
23481 #: ../src/guestfs-actions.pod:1399
23482 msgid ""
23483 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
23484 "Normally you should use C<guestfs_fsck>."
23485 msgstr ""
23486
23487 #. type: textblock
23488 #: ../src/guestfs-actions.pod:1404
23489 msgid "(Added in 1.0.29)"
23490 msgstr ""
23491
23492 #. type: =head2
23493 #: ../src/guestfs-actions.pod:1406
23494 msgid "guestfs_echo_daemon"
23495 msgstr ""
23496
23497 #. type: verbatim
23498 #: ../src/guestfs-actions.pod:1408
23499 #, no-wrap
23500 msgid ""
23501 " char *\n"
23502 " guestfs_echo_daemon (guestfs_h *g,\n"
23503 "                      char *const *words);\n"
23504 "\n"
23505 msgstr ""
23506
23507 #. type: textblock
23508 #: ../src/guestfs-actions.pod:1417
23509 msgid "See also C<guestfs_ping_daemon>."
23510 msgstr ""
23511
23512 #. type: textblock
23513 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:2169
23514 #: ../src/guestfs-actions.pod:6448
23515 msgid "(Added in 1.0.69)"
23516 msgstr ""
23517
23518 #. type: =head2
23519 #: ../src/guestfs-actions.pod:1424
23520 msgid "guestfs_egrep"
23521 msgstr ""
23522
23523 #. type: verbatim
23524 #: ../src/guestfs-actions.pod:1426
23525 #, no-wrap
23526 msgid ""
23527 " char **\n"
23528 " guestfs_egrep (guestfs_h *g,\n"
23529 "                const char *regex,\n"
23530 "                const char *path);\n"
23531 "\n"
23532 msgstr ""
23533
23534 #. type: textblock
23535 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1460
23536 #: ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:1563
23537 #: ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:2299
23538 #: ../src/guestfs-actions.pod:2318 ../src/guestfs-actions.pod:2474
23539 #: ../src/guestfs-actions.pod:2487 ../src/guestfs-actions.pod:2502
23540 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2570
23541 #: ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:3852
23542 #: ../src/guestfs-actions.pod:3866 ../src/guestfs-actions.pod:3879
23543 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:4894
23544 #: ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5974
23545 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6856
23546 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6882
23547 #: ../src/guestfs-actions.pod:6904 ../src/guestfs-actions.pod:6917
23548 #: ../src/guestfs-actions.pod:6930 ../src/guestfs-actions.pod:6943
23549 #: ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:7756
23550 #: ../src/guestfs-actions.pod:7842 ../src/guestfs-actions.pod:7861
23551 #: ../src/guestfs-actions.pod:7907 ../src/guestfs-actions.pod:7926
23552 msgid "(Added in 1.0.66)"
23553 msgstr ""
23554
23555 #. type: =head2
23556 #: ../src/guestfs-actions.pod:1443
23557 msgid "guestfs_egrepi"
23558 msgstr ""
23559
23560 #. type: verbatim
23561 #: ../src/guestfs-actions.pod:1445
23562 #, no-wrap
23563 msgid ""
23564 " char **\n"
23565 " guestfs_egrepi (guestfs_h *g,\n"
23566 "                 const char *regex,\n"
23567 "                 const char *path);\n"
23568 "\n"
23569 msgstr ""
23570
23571 #. type: =head2
23572 #: ../src/guestfs-actions.pod:1462
23573 msgid "guestfs_equal"
23574 msgstr ""
23575
23576 #. type: verbatim
23577 #: ../src/guestfs-actions.pod:1464
23578 #, no-wrap
23579 msgid ""
23580 " int\n"
23581 " guestfs_equal (guestfs_h *g,\n"
23582 "                const char *file1,\n"
23583 "                const char *file2);\n"
23584 "\n"
23585 msgstr ""
23586
23587 #. type: =head2
23588 #: ../src/guestfs-actions.pod:1478
23589 msgid "guestfs_exists"
23590 msgstr ""
23591
23592 #. type: verbatim
23593 #: ../src/guestfs-actions.pod:1480
23594 #, no-wrap
23595 msgid ""
23596 " int\n"
23597 " guestfs_exists (guestfs_h *g,\n"
23598 "                 const char *path);\n"
23599 "\n"
23600 msgstr ""
23601
23602 #. type: textblock
23603 #: ../src/guestfs-actions.pod:1487
23604 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
23605 msgstr ""
23606
23607 #. type: =head2
23608 #: ../src/guestfs-actions.pod:1493
23609 msgid "guestfs_fallocate"
23610 msgstr ""
23611
23612 #. type: verbatim
23613 #: ../src/guestfs-actions.pod:1495
23614 #, no-wrap
23615 msgid ""
23616 " int\n"
23617 " guestfs_fallocate (guestfs_h *g,\n"
23618 "                    const char *path,\n"
23619 "                    int len);\n"
23620 "\n"
23621 msgstr ""
23622
23623 #. type: textblock
23624 #: ../src/guestfs-actions.pod:1510
23625 msgid ""
23626 "This function is deprecated.  In new code, use the L</guestfs_fallocate64> "
23627 "call instead."
23628 msgstr ""
23629
23630 #. type: =head2
23631 #: ../src/guestfs-actions.pod:1519
23632 msgid "guestfs_fallocate64"
23633 msgstr ""
23634
23635 #. type: verbatim
23636 #: ../src/guestfs-actions.pod:1521
23637 #, no-wrap
23638 msgid ""
23639 " int\n"
23640 " guestfs_fallocate64 (guestfs_h *g,\n"
23641 "                      const char *path,\n"
23642 "                      int64_t len);\n"
23643 "\n"
23644 msgstr ""
23645
23646 #. type: textblock
23647 #: ../src/guestfs-actions.pod:1530
23648 msgid ""
23649 "Note that this call allocates disk blocks for the file.  To create a sparse "
23650 "file use C<guestfs_truncate_size> instead."
23651 msgstr ""
23652
23653 #. type: textblock
23654 #: ../src/guestfs-actions.pod:1533
23655 msgid ""
23656 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
23657 "oversight it only allowed 30 bit lengths to be specified, effectively "
23658 "limiting the maximum size of files created through that call to 1GB."
23659 msgstr ""
23660
23661 #. type: textblock
23662 #: ../src/guestfs-actions.pod:1544
23663 msgid "(Added in 1.3.17)"
23664 msgstr ""
23665
23666 #. type: =head2
23667 #: ../src/guestfs-actions.pod:1546
23668 msgid "guestfs_fgrep"
23669 msgstr ""
23670
23671 #. type: verbatim
23672 #: ../src/guestfs-actions.pod:1548
23673 #, no-wrap
23674 msgid ""
23675 " char **\n"
23676 " guestfs_fgrep (guestfs_h *g,\n"
23677 "                const char *pattern,\n"
23678 "                const char *path);\n"
23679 "\n"
23680 msgstr ""
23681
23682 #. type: =head2
23683 #: ../src/guestfs-actions.pod:1565
23684 msgid "guestfs_fgrepi"
23685 msgstr ""
23686
23687 #. type: verbatim
23688 #: ../src/guestfs-actions.pod:1567
23689 #, no-wrap
23690 msgid ""
23691 " char **\n"
23692 " guestfs_fgrepi (guestfs_h *g,\n"
23693 "                 const char *pattern,\n"
23694 "                 const char *path);\n"
23695 "\n"
23696 msgstr ""
23697
23698 #. type: =head2
23699 #: ../src/guestfs-actions.pod:1584
23700 msgid "guestfs_file"
23701 msgstr ""
23702
23703 #. type: verbatim
23704 #: ../src/guestfs-actions.pod:1586
23705 #, no-wrap
23706 msgid ""
23707 " char *\n"
23708 " guestfs_file (guestfs_h *g,\n"
23709 "               const char *path);\n"
23710 "\n"
23711 msgstr ""
23712
23713 #. type: textblock
23714 #: ../src/guestfs-actions.pod:1604
23715 msgid ""
23716 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
23717 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
23718 msgstr ""
23719
23720 #. type: =head2
23721 #: ../src/guestfs-actions.pod:1612
23722 msgid "guestfs_file_architecture"
23723 msgstr ""
23724
23725 #. type: verbatim
23726 #: ../src/guestfs-actions.pod:1614
23727 #, no-wrap
23728 msgid ""
23729 " char *\n"
23730 " guestfs_file_architecture (guestfs_h *g,\n"
23731 "                            const char *filename);\n"
23732 "\n"
23733 msgstr ""
23734
23735 #. type: textblock
23736 #: ../src/guestfs-actions.pod:1722 ../src/guestfs-actions.pod:1885
23737 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:2603
23738 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2759
23739 #: ../src/guestfs-actions.pod:2946 ../src/guestfs-actions.pod:2964
23740 #: ../src/guestfs-actions.pod:3004 ../src/guestfs-actions.pod:3079
23741 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3409
23742 #: ../src/guestfs-actions.pod:3541
23743 msgid "(Added in 1.5.3)"
23744 msgstr ""
23745
23746 #. type: =head2
23747 #: ../src/guestfs-actions.pod:1724
23748 msgid "guestfs_filesize"
23749 msgstr ""
23750
23751 #. type: verbatim
23752 #: ../src/guestfs-actions.pod:1726
23753 #, no-wrap
23754 msgid ""
23755 " int64_t\n"
23756 " guestfs_filesize (guestfs_h *g,\n"
23757 "                   const char *file);\n"
23758 "\n"
23759 msgstr ""
23760
23761 #. type: textblock
23762 #: ../src/guestfs-actions.pod:1732
23763 msgid ""
23764 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
23765 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
23766 "devices, use C<guestfs_blockdev_getsize64>."
23767 msgstr ""
23768
23769 #. type: textblock
23770 #: ../src/guestfs-actions.pod:1738
23771 msgid "(Added in 1.0.82)"
23772 msgstr ""
23773
23774 #. type: =head2
23775 #: ../src/guestfs-actions.pod:1740
23776 msgid "guestfs_fill"
23777 msgstr ""
23778
23779 #. type: verbatim
23780 #: ../src/guestfs-actions.pod:1742
23781 #, no-wrap
23782 msgid ""
23783 " int\n"
23784 " guestfs_fill (guestfs_h *g,\n"
23785 "               int c,\n"
23786 "               int len,\n"
23787 "               const char *path);\n"
23788 "\n"
23789 msgstr ""
23790
23791 #. type: textblock
23792 #: ../src/guestfs-actions.pod:1752
23793 msgid ""
23794 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23795 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
23796 "bytes use C<guestfs_fill_pattern>."
23797 msgstr ""
23798
23799 #. type: textblock
23800 #: ../src/guestfs-actions.pod:1764
23801 msgid "(Added in 1.0.79)"
23802 msgstr ""
23803
23804 #. type: =head2
23805 #: ../src/guestfs-actions.pod:1766
23806 msgid "guestfs_fill_pattern"
23807 msgstr ""
23808
23809 #. type: verbatim
23810 #: ../src/guestfs-actions.pod:1768
23811 #, no-wrap
23812 msgid ""
23813 " int\n"
23814 " guestfs_fill_pattern (guestfs_h *g,\n"
23815 "                       const char *pattern,\n"
23816 "                       int len,\n"
23817 "                       const char *path);\n"
23818 "\n"
23819 msgstr ""
23820
23821 #. type: textblock
23822 #: ../src/guestfs-actions.pod:1774
23823 msgid ""
23824 "This function is like C<guestfs_fill> except that it creates a new file of "
23825 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
23826 "pattern is truncated if necessary to ensure the length of the file is "
23827 "exactly C<len> bytes."
23828 msgstr ""
23829
23830 #. type: textblock
23831 #: ../src/guestfs-actions.pod:1786
23832 msgid "(Added in 1.3.12)"
23833 msgstr ""
23834
23835 #. type: =head2
23836 #: ../src/guestfs-actions.pod:1788
23837 msgid "guestfs_find"
23838 msgstr ""
23839
23840 #. type: verbatim
23841 #: ../src/guestfs-actions.pod:1790
23842 #, no-wrap
23843 msgid ""
23844 " char **\n"
23845 " guestfs_find (guestfs_h *g,\n"
23846 "               const char *directory);\n"
23847 "\n"
23848 msgstr ""
23849
23850 #. type: textblock
23851 #: ../src/guestfs-actions.pod:1806
23852 msgid ""
23853 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
23854 msgstr ""
23855
23856 #. type: textblock
23857 #: ../src/guestfs-actions.pod:1819
23858 msgid "See also C<guestfs_find0>."
23859 msgstr ""
23860
23861 #. type: textblock
23862 #: ../src/guestfs-actions.pod:1828 ../src/guestfs-actions.pod:4299
23863 #: ../src/guestfs-actions.pod:6009
23864 msgid "(Added in 1.0.27)"
23865 msgstr ""
23866
23867 #. type: =head2
23868 #: ../src/guestfs-actions.pod:1830
23869 msgid "guestfs_find0"
23870 msgstr ""
23871
23872 #. type: verbatim
23873 #: ../src/guestfs-actions.pod:1832
23874 #, no-wrap
23875 msgid ""
23876 " int\n"
23877 " guestfs_find0 (guestfs_h *g,\n"
23878 "                const char *directory,\n"
23879 "                const char *files);\n"
23880 "\n"
23881 msgstr ""
23882
23883 #. type: textblock
23884 #: ../src/guestfs-actions.pod:1841
23885 msgid ""
23886 "This command works the same way as C<guestfs_find> with the following "
23887 "exceptions:"
23888 msgstr ""
23889
23890 #. type: textblock
23891 #: ../src/guestfs-actions.pod:1868
23892 msgid "(Added in 1.0.74)"
23893 msgstr ""
23894
23895 #. type: =head2
23896 #: ../src/guestfs-actions.pod:1870
23897 msgid "guestfs_findfs_label"
23898 msgstr ""
23899
23900 #. type: verbatim
23901 #: ../src/guestfs-actions.pod:1872
23902 #, no-wrap
23903 msgid ""
23904 " char *\n"
23905 " guestfs_findfs_label (guestfs_h *g,\n"
23906 "                       const char *label);\n"
23907 "\n"
23908 msgstr ""
23909
23910 #. type: textblock
23911 #: ../src/guestfs-actions.pod:1880
23912 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
23913 msgstr ""
23914
23915 #. type: =head2
23916 #: ../src/guestfs-actions.pod:1887
23917 msgid "guestfs_findfs_uuid"
23918 msgstr ""
23919
23920 #. type: verbatim
23921 #: ../src/guestfs-actions.pod:1889
23922 #, no-wrap
23923 msgid ""
23924 " char *\n"
23925 " guestfs_findfs_uuid (guestfs_h *g,\n"
23926 "                      const char *uuid);\n"
23927 "\n"
23928 msgstr ""
23929
23930 #. type: textblock
23931 #: ../src/guestfs-actions.pod:1897
23932 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
23933 msgstr ""
23934
23935 #. type: =head2
23936 #: ../src/guestfs-actions.pod:1904
23937 msgid "guestfs_fsck"
23938 msgstr ""
23939
23940 #. type: verbatim
23941 #: ../src/guestfs-actions.pod:1906
23942 #, no-wrap
23943 msgid ""
23944 " int\n"
23945 " guestfs_fsck (guestfs_h *g,\n"
23946 "               const char *fstype,\n"
23947 "               const char *device);\n"
23948 "\n"
23949 msgstr ""
23950
23951 #. type: textblock
23952 #: ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:7780
23953 msgid "(Added in 1.0.16)"
23954 msgstr ""
23955
23956 #. type: =head2
23957 #: ../src/guestfs-actions.pod:1943
23958 msgid "guestfs_get_append"
23959 msgstr ""
23960
23961 #. type: verbatim
23962 #: ../src/guestfs-actions.pod:1945
23963 #, no-wrap
23964 msgid ""
23965 " const char *\n"
23966 " guestfs_get_append (guestfs_h *g);\n"
23967 "\n"
23968 msgstr ""
23969
23970 #. type: textblock
23971 #: ../src/guestfs-actions.pod:1953
23972 msgid ""
23973 "This function returns a string which may be NULL.  There is no way to return "
23974 "an error from this function.  The string is owned by the guest handle and "
23975 "must I<not> be freed."
23976 msgstr ""
23977
23978 #. type: textblock
23979 #: ../src/guestfs-actions.pod:1957 ../src/guestfs-actions.pod:5687
23980 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6611
23981 #: ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:6646
23982 #: ../src/guestfs-actions.pod:6670 ../src/guestfs-actions.pod:7424
23983 #: ../src/guestfs-actions.pod:7439 ../src/guestfs-actions.pod:7823
23984 msgid "(Added in 1.0.26)"
23985 msgstr ""
23986
23987 #. type: =head2
23988 #: ../src/guestfs-actions.pod:1959
23989 msgid "guestfs_get_attach_method"
23990 msgstr ""
23991
23992 #. type: verbatim
23993 #: ../src/guestfs-actions.pod:1961
23994 #, no-wrap
23995 msgid ""
23996 " char *\n"
23997 " guestfs_get_attach_method (guestfs_h *g);\n"
23998 "\n"
23999 msgstr ""
24000
24001 #. type: textblock
24002 #: ../src/guestfs-actions.pod:1964
24003 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
24004 msgstr ""
24005
24006 #. type: textblock
24007 #: ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:6199
24008 msgid "(Added in 1.9.8)"
24009 msgstr ""
24010
24011 #. type: =head2
24012 #: ../src/guestfs-actions.pod:1971
24013 msgid "guestfs_get_autosync"
24014 msgstr ""
24015
24016 #. type: verbatim
24017 #: ../src/guestfs-actions.pod:1973
24018 #, no-wrap
24019 msgid ""
24020 " int\n"
24021 " guestfs_get_autosync (guestfs_h *g);\n"
24022 "\n"
24023 msgstr ""
24024
24025 #. type: =head2
24026 #: ../src/guestfs-actions.pod:1982
24027 msgid "guestfs_get_direct"
24028 msgstr ""
24029
24030 #. type: verbatim
24031 #: ../src/guestfs-actions.pod:1984
24032 #, no-wrap
24033 msgid ""
24034 " int\n"
24035 " guestfs_get_direct (guestfs_h *g);\n"
24036 "\n"
24037 msgstr ""
24038
24039 #. type: textblock
24040 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:6240
24041 msgid "(Added in 1.0.72)"
24042 msgstr ""
24043
24044 #. type: =head2
24045 #: ../src/guestfs-actions.pod:1993
24046 msgid "guestfs_get_e2label"
24047 msgstr ""
24048
24049 #. type: verbatim
24050 #: ../src/guestfs-actions.pod:1995
24051 #, no-wrap
24052 msgid ""
24053 " char *\n"
24054 " guestfs_get_e2label (guestfs_h *g,\n"
24055 "                      const char *device);\n"
24056 "\n"
24057 msgstr ""
24058
24059 #. type: textblock
24060 #: ../src/guestfs-actions.pod:2005
24061 msgid ""
24062 "This function is deprecated.  In new code, use the L</guestfs_vfs_label> "
24063 "call instead."
24064 msgstr ""
24065
24066 #. type: textblock
24067 #: ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2033
24068 #: ../src/guestfs-actions.pod:6258 ../src/guestfs-actions.pod:6277
24069 msgid "(Added in 1.0.15)"
24070 msgstr ""
24071
24072 #. type: =head2
24073 #: ../src/guestfs-actions.pod:2014
24074 msgid "guestfs_get_e2uuid"
24075 msgstr ""
24076
24077 #. type: verbatim
24078 #: ../src/guestfs-actions.pod:2016
24079 #, no-wrap
24080 msgid ""
24081 " char *\n"
24082 " guestfs_get_e2uuid (guestfs_h *g,\n"
24083 "                     const char *device);\n"
24084 "\n"
24085 msgstr ""
24086
24087 #. type: textblock
24088 #: ../src/guestfs-actions.pod:2026
24089 msgid ""
24090 "This function is deprecated.  In new code, use the L</guestfs_vfs_uuid> call "
24091 "instead."
24092 msgstr ""
24093
24094 #. type: =head2
24095 #: ../src/guestfs-actions.pod:2035
24096 msgid "guestfs_get_memsize"
24097 msgstr ""
24098
24099 #. type: verbatim
24100 #: ../src/guestfs-actions.pod:2037
24101 #, no-wrap
24102 msgid ""
24103 " int\n"
24104 " guestfs_get_memsize (guestfs_h *g);\n"
24105 "\n"
24106 msgstr ""
24107
24108 #. type: textblock
24109 #: ../src/guestfs-actions.pod:2043
24110 msgid ""
24111 "If C<guestfs_set_memsize> was not called on this handle, and if "
24112 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
24113 "value for memsize."
24114 msgstr ""
24115
24116 #. type: textblock
24117 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:4590
24118 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4818
24119 #: ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:4849
24120 #: ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4879
24121 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:6298
24122 #: ../src/guestfs-actions.pod:6578 ../src/guestfs-actions.pod:7193
24123 msgid "(Added in 1.0.55)"
24124 msgstr ""
24125
24126 #. type: =head2
24127 #: ../src/guestfs-actions.pod:2054
24128 msgid "guestfs_get_network"
24129 msgstr ""
24130
24131 #. type: verbatim
24132 #: ../src/guestfs-actions.pod:2056
24133 #, no-wrap
24134 msgid ""
24135 " int\n"
24136 " guestfs_get_network (guestfs_h *g);\n"
24137 "\n"
24138 msgstr ""
24139
24140 #. type: textblock
24141 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:6317
24142 msgid "(Added in 1.5.4)"
24143 msgstr ""
24144
24145 #. type: =head2
24146 #: ../src/guestfs-actions.pod:2065
24147 msgid "guestfs_get_path"
24148 msgstr ""
24149
24150 #. type: verbatim
24151 #: ../src/guestfs-actions.pod:2067
24152 #, no-wrap
24153 msgid ""
24154 " const char *\n"
24155 " guestfs_get_path (guestfs_h *g);\n"
24156 "\n"
24157 msgstr ""
24158
24159 #. type: textblock
24160 #: ../src/guestfs-actions.pod:2075 ../src/guestfs-actions.pod:2115
24161 msgid ""
24162 "This function returns a string, or NULL on error.  The string is owned by "
24163 "the guest handle and must I<not> be freed."
24164 msgstr ""
24165
24166 #. type: =head2
24167 #: ../src/guestfs-actions.pod:2080
24168 msgid "guestfs_get_pgroup"
24169 msgstr ""
24170
24171 #. type: verbatim
24172 #: ../src/guestfs-actions.pod:2082
24173 #, no-wrap
24174 msgid ""
24175 " int\n"
24176 " guestfs_get_pgroup (guestfs_h *g);\n"
24177 "\n"
24178 msgstr ""
24179
24180 #. type: textblock
24181 #: ../src/guestfs-actions.pod:2089 ../src/guestfs-actions.pod:6353
24182 #: ../src/guestfs-actions.pod:7685
24183 msgid "(Added in 1.11.18)"
24184 msgstr ""
24185
24186 #. type: =head2
24187 #: ../src/guestfs-actions.pod:2091
24188 msgid "guestfs_get_pid"
24189 msgstr ""
24190
24191 #. type: verbatim
24192 #: ../src/guestfs-actions.pod:2093
24193 #, no-wrap
24194 msgid ""
24195 " int\n"
24196 " guestfs_get_pid (guestfs_h *g);\n"
24197 "\n"
24198 msgstr ""
24199
24200 #. type: textblock
24201 #: ../src/guestfs-actions.pod:2103
24202 msgid "(Added in 1.0.56)"
24203 msgstr ""
24204
24205 #. type: =head2
24206 #: ../src/guestfs-actions.pod:2105
24207 msgid "guestfs_get_qemu"
24208 msgstr ""
24209
24210 #. type: verbatim
24211 #: ../src/guestfs-actions.pod:2107
24212 #, no-wrap
24213 msgid ""
24214 " const char *\n"
24215 " guestfs_get_qemu (guestfs_h *g);\n"
24216 "\n"
24217 msgstr ""
24218
24219 #. type: textblock
24220 #: ../src/guestfs-actions.pod:2118 ../src/guestfs-actions.pod:6381
24221 msgid "(Added in 1.0.6)"
24222 msgstr ""
24223
24224 #. type: =head2
24225 #: ../src/guestfs-actions.pod:2120
24226 msgid "guestfs_get_recovery_proc"
24227 msgstr ""
24228
24229 #. type: verbatim
24230 #: ../src/guestfs-actions.pod:2122
24231 #, no-wrap
24232 msgid ""
24233 " int\n"
24234 " guestfs_get_recovery_proc (guestfs_h *g);\n"
24235 "\n"
24236 msgstr ""
24237
24238 #. type: textblock
24239 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3663
24240 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4397
24241 #: ../src/guestfs-actions.pod:4429 ../src/guestfs-actions.pod:5617
24242 #: ../src/guestfs-actions.pod:5960 ../src/guestfs-actions.pod:6405
24243 #: ../src/guestfs-actions.pod:7096 ../src/guestfs-actions.pod:7116
24244 #: ../src/guestfs-actions.pod:7308
24245 msgid "(Added in 1.0.77)"
24246 msgstr ""
24247
24248 #. type: =head2
24249 #: ../src/guestfs-actions.pod:2131
24250 msgid "guestfs_get_selinux"
24251 msgstr ""
24252
24253 #. type: verbatim
24254 #: ../src/guestfs-actions.pod:2133
24255 #, no-wrap
24256 msgid ""
24257 " int\n"
24258 " guestfs_get_selinux (guestfs_h *g);\n"
24259 "\n"
24260 msgstr ""
24261
24262 #. type: textblock
24263 #: ../src/guestfs-actions.pod:2136
24264 msgid ""
24265 "This returns the current setting of the selinux flag which is passed to the "
24266 "appliance at boot time.  See C<guestfs_set_selinux>."
24267 msgstr ""
24268
24269 #. type: textblock
24270 #: ../src/guestfs-actions.pod:2144 ../src/guestfs-actions.pod:2207
24271 #: ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6482
24272 msgid "(Added in 1.0.67)"
24273 msgstr ""
24274
24275 #. type: =head2
24276 #: ../src/guestfs-actions.pod:2146
24277 msgid "guestfs_get_state"
24278 msgstr ""
24279
24280 #. type: verbatim
24281 #: ../src/guestfs-actions.pod:2148
24282 #, no-wrap
24283 msgid ""
24284 " int\n"
24285 " guestfs_get_state (guestfs_h *g);\n"
24286 "\n"
24287 msgstr ""
24288
24289 #. type: =head2
24290 #: ../src/guestfs-actions.pod:2160
24291 msgid "guestfs_get_trace"
24292 msgstr ""
24293
24294 #. type: verbatim
24295 #: ../src/guestfs-actions.pod:2162
24296 #, no-wrap
24297 msgid ""
24298 " int\n"
24299 " guestfs_get_trace (guestfs_h *g);\n"
24300 "\n"
24301 msgstr ""
24302
24303 #. type: =head2
24304 #: ../src/guestfs-actions.pod:2171
24305 msgid "guestfs_get_umask"
24306 msgstr ""
24307
24308 #. type: verbatim
24309 #: ../src/guestfs-actions.pod:2173
24310 #, no-wrap
24311 msgid ""
24312 " int\n"
24313 " guestfs_get_umask (guestfs_h *g);\n"
24314 "\n"
24315 msgstr ""
24316
24317 #. type: textblock
24318 #: ../src/guestfs-actions.pod:2176
24319 msgid ""
24320 "Return the current umask.  By default the umask is C<022> unless it has been "
24321 "set by calling C<guestfs_umask>."
24322 msgstr ""
24323
24324 #. type: =head2
24325 #: ../src/guestfs-actions.pod:2183
24326 msgid "guestfs_get_verbose"
24327 msgstr ""
24328
24329 #. type: verbatim
24330 #: ../src/guestfs-actions.pod:2185
24331 #, no-wrap
24332 msgid ""
24333 " int\n"
24334 " guestfs_get_verbose (guestfs_h *g);\n"
24335 "\n"
24336 msgstr ""
24337
24338 #. type: =head2
24339 #: ../src/guestfs-actions.pod:2194
24340 msgid "guestfs_getcon"
24341 msgstr ""
24342
24343 #. type: verbatim
24344 #: ../src/guestfs-actions.pod:2196
24345 #, no-wrap
24346 msgid ""
24347 " char *\n"
24348 " guestfs_getcon (guestfs_h *g);\n"
24349 "\n"
24350 msgstr ""
24351
24352 #. type: textblock
24353 #: ../src/guestfs-actions.pod:2201
24354 msgid ""
24355 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
24356 msgstr ""
24357
24358 #. type: =head2
24359 #: ../src/guestfs-actions.pod:2209
24360 msgid "guestfs_getxattr"
24361 msgstr ""
24362
24363 #. type: verbatim
24364 #: ../src/guestfs-actions.pod:2211
24365 #, no-wrap
24366 msgid ""
24367 " char *\n"
24368 " guestfs_getxattr (guestfs_h *g,\n"
24369 "                   const char *path,\n"
24370 "                   const char *name,\n"
24371 "                   size_t *size_r);\n"
24372 "\n"
24373 msgstr ""
24374
24375 #. type: textblock
24376 #: ../src/guestfs-actions.pod:2217
24377 msgid ""
24378 "Get a single extended attribute from file C<path> named C<name>.  This call "
24379 "follows symlinks.  If you want to lookup an extended attribute for the "
24380 "symlink itself, use C<guestfs_lgetxattr>."
24381 msgstr ""
24382
24383 #. type: textblock
24384 #: ../src/guestfs-actions.pod:2221 ../src/guestfs-actions.pod:3677
24385 msgid ""
24386 "Normally it is better to get all extended attributes from a file in one go "
24387 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
24388 "implementations are buggy and do not provide a way to list out attributes.  "
24389 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
24390 "extended attributes you want in advance and call this function."
24391 msgstr ""
24392
24393 #. type: textblock
24394 #: ../src/guestfs-actions.pod:2231
24395 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
24396 msgstr ""
24397
24398 #. type: textblock
24399 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:2424
24400 #: ../src/guestfs-actions.pod:2894 ../src/guestfs-actions.pod:3689
24401 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
24402 #: ../src/guestfs-actions.pod:5817
24403 msgid ""
24404 "This function returns a buffer, or NULL on error.  The size of the returned "
24405 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
24406 "after use>."
24407 msgstr ""
24408
24409 #. type: textblock
24410 #: ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:3693
24411 msgid "(Added in 1.7.24)"
24412 msgstr ""
24413
24414 #. type: =head2
24415 #: ../src/guestfs-actions.pod:2239
24416 msgid "guestfs_getxattrs"
24417 msgstr ""
24418
24419 #. type: verbatim
24420 #: ../src/guestfs-actions.pod:2241
24421 #, no-wrap
24422 msgid ""
24423 " struct guestfs_xattr_list *\n"
24424 " guestfs_getxattrs (guestfs_h *g,\n"
24425 "                    const char *path);\n"
24426 "\n"
24427 msgstr ""
24428
24429 #. type: textblock
24430 #: ../src/guestfs-actions.pod:2251
24431 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
24432 msgstr ""
24433
24434 #. type: textblock
24435 #: ../src/guestfs-actions.pod:2253 ../src/guestfs-actions.pod:3705
24436 #: ../src/guestfs-actions.pod:4393
24437 msgid ""
24438 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
24439 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
24440 msgstr ""
24441
24442 #. type: textblock
24443 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:3709
24444 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3944
24445 #: ../src/guestfs-actions.pod:5990 ../src/guestfs-actions.pod:6501
24446 #: ../src/guestfs-actions.pod:7888
24447 msgid "(Added in 1.0.59)"
24448 msgstr ""
24449
24450 #. type: =head2
24451 #: ../src/guestfs-actions.pod:2259
24452 msgid "guestfs_glob_expand"
24453 msgstr ""
24454
24455 #. type: verbatim
24456 #: ../src/guestfs-actions.pod:2261
24457 #, no-wrap
24458 msgid ""
24459 " char **\n"
24460 " guestfs_glob_expand (guestfs_h *g,\n"
24461 "                      const char *pattern);\n"
24462 "\n"
24463 msgstr ""
24464
24465 #. type: textblock
24466 #: ../src/guestfs-actions.pod:2280 ../src/guestfs-actions.pod:6694
24467 #: ../src/guestfs-actions.pod:6711
24468 msgid "(Added in 1.0.50)"
24469 msgstr ""
24470
24471 #. type: =head2
24472 #: ../src/guestfs-actions.pod:2282
24473 msgid "guestfs_grep"
24474 msgstr ""
24475
24476 #. type: verbatim
24477 #: ../src/guestfs-actions.pod:2284
24478 #, no-wrap
24479 msgid ""
24480 " char **\n"
24481 " guestfs_grep (guestfs_h *g,\n"
24482 "               const char *regex,\n"
24483 "               const char *path);\n"
24484 "\n"
24485 msgstr ""
24486
24487 #. type: =head2
24488 #: ../src/guestfs-actions.pod:2301
24489 msgid "guestfs_grepi"
24490 msgstr ""
24491
24492 #. type: verbatim
24493 #: ../src/guestfs-actions.pod:2303
24494 #, no-wrap
24495 msgid ""
24496 " char **\n"
24497 " guestfs_grepi (guestfs_h *g,\n"
24498 "                const char *regex,\n"
24499 "                const char *path);\n"
24500 "\n"
24501 msgstr ""
24502
24503 #. type: =head2
24504 #: ../src/guestfs-actions.pod:2320
24505 msgid "guestfs_grub_install"
24506 msgstr ""
24507
24508 #. type: verbatim
24509 #: ../src/guestfs-actions.pod:2322
24510 #, no-wrap
24511 msgid ""
24512 " int\n"
24513 " guestfs_grub_install (guestfs_h *g,\n"
24514 "                       const char *root,\n"
24515 "                       const char *device);\n"
24516 "\n"
24517 msgstr ""
24518
24519 #. type: textblock
24520 #: ../src/guestfs-actions.pod:2343
24521 msgid "(Added in 1.0.17)"
24522 msgstr ""
24523
24524 #. type: =head2
24525 #: ../src/guestfs-actions.pod:2345
24526 msgid "guestfs_head"
24527 msgstr ""
24528
24529 #. type: verbatim
24530 #: ../src/guestfs-actions.pod:2347
24531 #, no-wrap
24532 msgid ""
24533 " char **\n"
24534 " guestfs_head (guestfs_h *g,\n"
24535 "               const char *path);\n"
24536 "\n"
24537 msgstr ""
24538
24539 #. type: =head2
24540 #: ../src/guestfs-actions.pod:2363
24541 msgid "guestfs_head_n"
24542 msgstr ""
24543
24544 #. type: verbatim
24545 #: ../src/guestfs-actions.pod:2365
24546 #, no-wrap
24547 msgid ""
24548 " char **\n"
24549 " guestfs_head_n (guestfs_h *g,\n"
24550 "                 int nrlines,\n"
24551 "                 const char *path);\n"
24552 "\n"
24553 msgstr ""
24554
24555 #. type: =head2
24556 #: ../src/guestfs-actions.pod:2387
24557 msgid "guestfs_hexdump"
24558 msgstr ""
24559
24560 #. type: verbatim
24561 #: ../src/guestfs-actions.pod:2389
24562 #, no-wrap
24563 msgid ""
24564 " char *\n"
24565 " guestfs_hexdump (guestfs_h *g,\n"
24566 "                  const char *path);\n"
24567 "\n"
24568 msgstr ""
24569
24570 #. type: textblock
24571 #: ../src/guestfs-actions.pod:2402 ../src/guestfs-actions.pod:6775
24572 #: ../src/guestfs-actions.pod:6830
24573 msgid "(Added in 1.0.22)"
24574 msgstr ""
24575
24576 #. type: =head2
24577 #: ../src/guestfs-actions.pod:2404
24578 msgid "guestfs_initrd_cat"
24579 msgstr ""
24580
24581 #. type: verbatim
24582 #: ../src/guestfs-actions.pod:2406
24583 #, no-wrap
24584 msgid ""
24585 " char *\n"
24586 " guestfs_initrd_cat (guestfs_h *g,\n"
24587 "                     const char *initrdpath,\n"
24588 "                     const char *filename,\n"
24589 "                     size_t *size_r);\n"
24590 "\n"
24591 msgstr ""
24592
24593 #. type: textblock
24594 #: ../src/guestfs-actions.pod:2422
24595 msgid "See also C<guestfs_initrd_list>."
24596 msgstr ""
24597
24598 #. type: =head2
24599 #: ../src/guestfs-actions.pod:2433
24600 msgid "guestfs_initrd_list"
24601 msgstr ""
24602
24603 #. type: verbatim
24604 #: ../src/guestfs-actions.pod:2435
24605 #, no-wrap
24606 msgid ""
24607 " char **\n"
24608 " guestfs_initrd_list (guestfs_h *g,\n"
24609 "                      const char *path);\n"
24610 "\n"
24611 msgstr ""
24612
24613 #. type: =head2
24614 #: ../src/guestfs-actions.pod:2455
24615 msgid "guestfs_inotify_add_watch"
24616 msgstr ""
24617
24618 #. type: verbatim
24619 #: ../src/guestfs-actions.pod:2457
24620 #, no-wrap
24621 msgid ""
24622 " int64_t\n"
24623 " guestfs_inotify_add_watch (guestfs_h *g,\n"
24624 "                            const char *path,\n"
24625 "                            int mask);\n"
24626 "\n"
24627 msgstr ""
24628
24629 #. type: =head2
24630 #: ../src/guestfs-actions.pod:2476
24631 msgid "guestfs_inotify_close"
24632 msgstr ""
24633
24634 #. type: verbatim
24635 #: ../src/guestfs-actions.pod:2478
24636 #, no-wrap
24637 msgid ""
24638 " int\n"
24639 " guestfs_inotify_close (guestfs_h *g);\n"
24640 "\n"
24641 msgstr ""
24642
24643 #. type: =head2
24644 #: ../src/guestfs-actions.pod:2489
24645 msgid "guestfs_inotify_files"
24646 msgstr ""
24647
24648 #. type: verbatim
24649 #: ../src/guestfs-actions.pod:2491
24650 #, no-wrap
24651 msgid ""
24652 " char **\n"
24653 " guestfs_inotify_files (guestfs_h *g);\n"
24654 "\n"
24655 msgstr ""
24656
24657 #. type: textblock
24658 #: ../src/guestfs-actions.pod:2494
24659 msgid ""
24660 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
24661 "returns a list of pathnames of objects that were touched.  The returned "
24662 "pathnames are sorted and deduplicated."
24663 msgstr ""
24664
24665 #. type: =head2
24666 #: ../src/guestfs-actions.pod:2504
24667 msgid "guestfs_inotify_init"
24668 msgstr ""
24669
24670 #. type: verbatim
24671 #: ../src/guestfs-actions.pod:2506
24672 #, no-wrap
24673 msgid ""
24674 " int\n"
24675 " guestfs_inotify_init (guestfs_h *g,\n"
24676 "                       int maxevents);\n"
24677 "\n"
24678 msgstr ""
24679
24680 #. type: textblock
24681 #: ../src/guestfs-actions.pod:2514
24682 msgid ""
24683 "C<maxevents> is the maximum number of events which will be queued up between "
24684 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
24685 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
24686 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
24687 "throws away events, but records the fact that it threw them away by setting "
24688 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
24689 "C<guestfs_inotify_read>)."
24690 msgstr ""
24691
24692 #. type: textblock
24693 #: ../src/guestfs-actions.pod:2524
24694 msgid ""
24695 "Before any events are generated, you have to add some watches to the "
24696 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
24697 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
24698 msgstr ""
24699
24700 #. type: textblock
24701 #: ../src/guestfs-actions.pod:2530
24702 msgid ""
24703 "Queued up events should be read periodically by calling "
24704 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
24705 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
24706 "often enough then you risk the internal queue overflowing."
24707 msgstr ""
24708
24709 #. type: textblock
24710 #: ../src/guestfs-actions.pod:2537
24711 msgid ""
24712 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
24713 "This also removes any watches automatically."
24714 msgstr ""
24715
24716 #. type: =head2
24717 #: ../src/guestfs-actions.pod:2550
24718 msgid "guestfs_inotify_read"
24719 msgstr ""
24720
24721 #. type: verbatim
24722 #: ../src/guestfs-actions.pod:2552
24723 #, no-wrap
24724 msgid ""
24725 " struct guestfs_inotify_event_list *\n"
24726 " guestfs_inotify_read (guestfs_h *g);\n"
24727 "\n"
24728 msgstr ""
24729
24730 #. type: textblock
24731 #: ../src/guestfs-actions.pod:2566
24732 msgid ""
24733 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
24734 "there was an error.  I<The caller must call "
24735 "C<guestfs_free_inotify_event_list> after use>."
24736 msgstr ""
24737
24738 #. type: =head2
24739 #: ../src/guestfs-actions.pod:2572
24740 msgid "guestfs_inotify_rm_watch"
24741 msgstr ""
24742
24743 #. type: verbatim
24744 #: ../src/guestfs-actions.pod:2574
24745 #, no-wrap
24746 msgid ""
24747 " int\n"
24748 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
24749 "                           int wd);\n"
24750 "\n"
24751 msgstr ""
24752
24753 #. type: textblock
24754 #: ../src/guestfs-actions.pod:2578
24755 msgid ""
24756 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
24757 msgstr ""
24758
24759 #. type: =head2
24760 #: ../src/guestfs-actions.pod:2585
24761 msgid "guestfs_inspect_get_arch"
24762 msgstr ""
24763
24764 #. type: verbatim
24765 #: ../src/guestfs-actions.pod:2587
24766 #, no-wrap
24767 msgid ""
24768 " char *\n"
24769 " guestfs_inspect_get_arch (guestfs_h *g,\n"
24770 "                           const char *root);\n"
24771 "\n"
24772 msgstr ""
24773
24774 #. type: textblock
24775 #: ../src/guestfs-actions.pod:2591
24776 msgid ""
24777 "This returns the architecture of the inspected operating system.  The "
24778 "possible return values are listed under C<guestfs_file_architecture>."
24779 msgstr ""
24780
24781 #. type: =head2
24782 #: ../src/guestfs-actions.pod:2605
24783 msgid "guestfs_inspect_get_distro"
24784 msgstr ""
24785
24786 #. type: verbatim
24787 #: ../src/guestfs-actions.pod:2607
24788 #, no-wrap
24789 msgid ""
24790 " char *\n"
24791 " guestfs_inspect_get_distro (guestfs_h *g,\n"
24792 "                             const char *root);\n"
24793 "\n"
24794 msgstr ""
24795
24796 #. type: =head2
24797 #: ../src/guestfs-actions.pod:2695
24798 msgid "guestfs_inspect_get_drive_mappings"
24799 msgstr ""
24800
24801 #. type: verbatim
24802 #: ../src/guestfs-actions.pod:2697
24803 #, no-wrap
24804 msgid ""
24805 " char **\n"
24806 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
24807 "                                     const char *root);\n"
24808 "\n"
24809 msgstr ""
24810
24811 #. type: textblock
24812 #: ../src/guestfs-actions.pod:2726
24813 msgid ""
24814 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24815 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
24816 msgstr ""
24817
24818 #. type: textblock
24819 #: ../src/guestfs-actions.pod:2730 ../src/guestfs-actions.pod:2998
24820 #: ../src/guestfs-actions.pod:3796 ../src/guestfs-actions.pod:5078
24821 #: ../src/guestfs-actions.pod:7132
24822 msgid ""
24823 "This function returns a NULL-terminated array of strings, or NULL if there "
24824 "was an error.  The array of strings will always have length C<2n+1>, where "
24825 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
24826 "caller must free the strings and the array after use>."
24827 msgstr ""
24828
24829 #. type: textblock
24830 #: ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:3192
24831 msgid "(Added in 1.9.17)"
24832 msgstr ""
24833
24834 #. type: =head2
24835 #: ../src/guestfs-actions.pod:2738
24836 msgid "guestfs_inspect_get_filesystems"
24837 msgstr ""
24838
24839 #. type: verbatim
24840 #: ../src/guestfs-actions.pod:2740
24841 #, no-wrap
24842 msgid ""
24843 " char **\n"
24844 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
24845 "                                  const char *root);\n"
24846 "\n"
24847 msgstr ""
24848
24849 #. type: textblock
24850 #: ../src/guestfs-actions.pod:2752
24851 msgid ""
24852 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24853 "C<guestfs_inspect_get_mountpoints>."
24854 msgstr ""
24855
24856 #. type: =head2
24857 #: ../src/guestfs-actions.pod:2761
24858 msgid "guestfs_inspect_get_format"
24859 msgstr ""
24860
24861 #. type: verbatim
24862 #: ../src/guestfs-actions.pod:2763
24863 #, no-wrap
24864 msgid ""
24865 " char *\n"
24866 " guestfs_inspect_get_format (guestfs_h *g,\n"
24867 "                             const char *root);\n"
24868 "\n"
24869 msgstr ""
24870
24871 #. type: textblock
24872 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:3228
24873 #: ../src/guestfs-actions.pod:3244 ../src/guestfs-actions.pod:3262
24874 #: ../src/guestfs-actions.pod:6028
24875 msgid "(Added in 1.9.4)"
24876 msgstr ""
24877
24878 #. type: =head2
24879 #: ../src/guestfs-actions.pod:2799
24880 msgid "guestfs_inspect_get_hostname"
24881 msgstr ""
24882
24883 #. type: verbatim
24884 #: ../src/guestfs-actions.pod:2801
24885 #, no-wrap
24886 msgid ""
24887 " char *\n"
24888 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
24889 "                               const char *root);\n"
24890 "\n"
24891 msgstr ""
24892
24893 #. type: textblock
24894 #: ../src/guestfs-actions.pod:2816
24895 msgid "(Added in 1.7.9)"
24896 msgstr ""
24897
24898 #. type: =head2
24899 #: ../src/guestfs-actions.pod:2818
24900 msgid "guestfs_inspect_get_icon"
24901 msgstr ""
24902
24903 #. type: verbatim
24904 #: ../src/guestfs-actions.pod:2820
24905 #, no-wrap
24906 msgid ""
24907 " char *\n"
24908 " guestfs_inspect_get_icon (guestfs_h *g,\n"
24909 "                           const char *root,\n"
24910 "                           size_t *size_r,\n"
24911 "                           ...);\n"
24912 "\n"
24913 msgstr ""
24914
24915 #. type: verbatim
24916 #: ../src/guestfs-actions.pod:2831
24917 #, no-wrap
24918 msgid ""
24919 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
24920 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
24921 "\n"
24922 msgstr ""
24923
24924 #. type: textblock
24925 #: ../src/guestfs-actions.pod:2898 ../src/guestfs-actions.pod:3723
24926 #: ../src/guestfs-actions.pod:4977
24927 msgid "(Added in 1.11.12)"
24928 msgstr ""
24929
24930 #. type: =head2
24931 #: ../src/guestfs-actions.pod:2900
24932 msgid "guestfs_inspect_get_icon_va"
24933 msgstr ""
24934
24935 #. type: verbatim
24936 #: ../src/guestfs-actions.pod:2902
24937 #, no-wrap
24938 msgid ""
24939 " char *\n"
24940 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
24941 "                              const char *root,\n"
24942 "                              size_t *size_r,\n"
24943 "                              va_list args);\n"
24944 "\n"
24945 msgstr ""
24946
24947 #. type: textblock
24948 #: ../src/guestfs-actions.pod:2908
24949 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
24950 msgstr ""
24951
24952 #. type: =head2
24953 #: ../src/guestfs-actions.pod:2912
24954 msgid "guestfs_inspect_get_icon_argv"
24955 msgstr ""
24956
24957 #. type: verbatim
24958 #: ../src/guestfs-actions.pod:2914
24959 #, no-wrap
24960 msgid ""
24961 " char *\n"
24962 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
24963 "                                const char *root,\n"
24964 "                                size_t *size_r,\n"
24965 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
24966 "\n"
24967 msgstr ""
24968
24969 #. type: textblock
24970 #: ../src/guestfs-actions.pod:2920
24971 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
24972 msgstr ""
24973
24974 #. type: =head2
24975 #: ../src/guestfs-actions.pod:2924
24976 msgid "guestfs_inspect_get_major_version"
24977 msgstr ""
24978
24979 #. type: verbatim
24980 #: ../src/guestfs-actions.pod:2926
24981 #, no-wrap
24982 msgid ""
24983 " int\n"
24984 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
24985 "                                    const char *root);\n"
24986 "\n"
24987 msgstr ""
24988
24989 #. type: =head2
24990 #: ../src/guestfs-actions.pod:2948
24991 msgid "guestfs_inspect_get_minor_version"
24992 msgstr ""
24993
24994 #. type: verbatim
24995 #: ../src/guestfs-actions.pod:2950
24996 #, no-wrap
24997 msgid ""
24998 " int\n"
24999 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
25000 "                                    const char *root);\n"
25001 "\n"
25002 msgstr ""
25003
25004 #. type: textblock
25005 #: ../src/guestfs-actions.pod:2959
25006 msgid ""
25007 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25008 "C<guestfs_inspect_get_major_version>."
25009 msgstr ""
25010
25011 #. type: =head2
25012 #: ../src/guestfs-actions.pod:2966
25013 msgid "guestfs_inspect_get_mountpoints"
25014 msgstr ""
25015
25016 #. type: verbatim
25017 #: ../src/guestfs-actions.pod:2968
25018 #, no-wrap
25019 msgid ""
25020 " char **\n"
25021 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
25022 "                                  const char *root);\n"
25023 "\n"
25024 msgstr ""
25025
25026 #. type: textblock
25027 #: ../src/guestfs-actions.pod:2989
25028 msgid ""
25029 "For operating systems like Windows which still use drive letters, this call "
25030 "will only return an entry for the first drive \"mounted on\" C</>.  For "
25031 "information about the mapping of drive letters to partitions, see "
25032 "C<guestfs_inspect_get_drive_mappings>."
25033 msgstr ""
25034
25035 #. type: textblock
25036 #: ../src/guestfs-actions.pod:2995
25037 msgid ""
25038 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25039 "C<guestfs_inspect_get_filesystems>."
25040 msgstr ""
25041
25042 #. type: =head2
25043 #: ../src/guestfs-actions.pod:3006
25044 msgid "guestfs_inspect_get_package_format"
25045 msgstr ""
25046
25047 #. type: verbatim
25048 #: ../src/guestfs-actions.pod:3008
25049 #, no-wrap
25050 msgid ""
25051 " char *\n"
25052 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
25053 "                                     const char *root);\n"
25054 "\n"
25055 msgstr ""
25056
25057 #. type: textblock
25058 #: ../src/guestfs-actions.pod:3012
25059 msgid ""
25060 "This function and C<guestfs_inspect_get_package_management> return the "
25061 "package format and package management tool used by the inspected operating "
25062 "system.  For example for Fedora these functions would return C<rpm> (package "
25063 "format) and C<yum> (package management)."
25064 msgstr ""
25065
25066 #. type: textblock
25067 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
25068 msgid "(Added in 1.7.5)"
25069 msgstr ""
25070
25071 #. type: =head2
25072 #: ../src/guestfs-actions.pod:3032
25073 msgid "guestfs_inspect_get_package_management"
25074 msgstr ""
25075
25076 #. type: verbatim
25077 #: ../src/guestfs-actions.pod:3034
25078 #, no-wrap
25079 msgid ""
25080 " char *\n"
25081 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
25082 "                                         const char *root);\n"
25083 "\n"
25084 msgstr ""
25085
25086 #. type: textblock
25087 #: ../src/guestfs-actions.pod:3038
25088 msgid ""
25089 "C<guestfs_inspect_get_package_format> and this function return the package "
25090 "format and package management tool used by the inspected operating system.  "
25091 "For example for Fedora these functions would return C<rpm> (package format) "
25092 "and C<yum> (package management)."
25093 msgstr ""
25094
25095 #. type: =head2
25096 #: ../src/guestfs-actions.pod:3060
25097 msgid "guestfs_inspect_get_product_name"
25098 msgstr ""
25099
25100 #. type: verbatim
25101 #: ../src/guestfs-actions.pod:3062
25102 #, no-wrap
25103 msgid ""
25104 " char *\n"
25105 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
25106 "                                   const char *root);\n"
25107 "\n"
25108 msgstr ""
25109
25110 #. type: =head2
25111 #: ../src/guestfs-actions.pod:3081
25112 msgid "guestfs_inspect_get_product_variant"
25113 msgstr ""
25114
25115 #. type: verbatim
25116 #: ../src/guestfs-actions.pod:3083
25117 #, no-wrap
25118 msgid ""
25119 " char *\n"
25120 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
25121 "                                      const char *root);\n"
25122 "\n"
25123 msgstr ""
25124
25125 #. type: textblock
25126 #: ../src/guestfs-actions.pod:3106
25127 msgid ""
25128 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25129 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
25130 msgstr ""
25131
25132 #. type: textblock
25133 #: ../src/guestfs-actions.pod:3113
25134 msgid "(Added in 1.9.13)"
25135 msgstr ""
25136
25137 #. type: =head2
25138 #: ../src/guestfs-actions.pod:3115
25139 msgid "guestfs_inspect_get_roots"
25140 msgstr ""
25141
25142 #. type: verbatim
25143 #: ../src/guestfs-actions.pod:3117
25144 #, no-wrap
25145 msgid ""
25146 " char **\n"
25147 " guestfs_inspect_get_roots (guestfs_h *g);\n"
25148 "\n"
25149 msgstr ""
25150
25151 #. type: textblock
25152 #: ../src/guestfs-actions.pod:3120
25153 msgid ""
25154 "This function is a convenient way to get the list of root devices, as "
25155 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
25156 "the whole inspection process."
25157 msgstr ""
25158
25159 #. type: textblock
25160 #: ../src/guestfs-actions.pod:3124
25161 msgid ""
25162 "This returns an empty list if either no root devices were found or the "
25163 "caller has not called C<guestfs_inspect_os>."
25164 msgstr ""
25165
25166 #. type: textblock
25167 #: ../src/guestfs-actions.pod:3133
25168 msgid "(Added in 1.7.3)"
25169 msgstr ""
25170
25171 #. type: =head2
25172 #: ../src/guestfs-actions.pod:3135
25173 msgid "guestfs_inspect_get_type"
25174 msgstr ""
25175
25176 #. type: verbatim
25177 #: ../src/guestfs-actions.pod:3137
25178 #, no-wrap
25179 msgid ""
25180 " char *\n"
25181 " guestfs_inspect_get_type (guestfs_h *g,\n"
25182 "                           const char *root);\n"
25183 "\n"
25184 msgstr ""
25185
25186 #. type: =head2
25187 #: ../src/guestfs-actions.pod:3174
25188 msgid "guestfs_inspect_get_windows_current_control_set"
25189 msgstr ""
25190
25191 #. type: verbatim
25192 #: ../src/guestfs-actions.pod:3176
25193 #, no-wrap
25194 msgid ""
25195 " char *\n"
25196 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
25197 "                                                  const char *root);\n"
25198 "\n"
25199 msgstr ""
25200
25201 #. type: =head2
25202 #: ../src/guestfs-actions.pod:3194
25203 msgid "guestfs_inspect_get_windows_systemroot"
25204 msgstr ""
25205
25206 #. type: verbatim
25207 #: ../src/guestfs-actions.pod:3196
25208 #, no-wrap
25209 msgid ""
25210 " char *\n"
25211 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
25212 "                                         const char *root);\n"
25213 "\n"
25214 msgstr ""
25215
25216 #. type: textblock
25217 #: ../src/guestfs-actions.pod:3212
25218 msgid "(Added in 1.5.25)"
25219 msgstr ""
25220
25221 #. type: =head2
25222 #: ../src/guestfs-actions.pod:3214
25223 msgid "guestfs_inspect_is_live"
25224 msgstr ""
25225
25226 #. type: verbatim
25227 #: ../src/guestfs-actions.pod:3216
25228 #, no-wrap
25229 msgid ""
25230 " int\n"
25231 " guestfs_inspect_is_live (guestfs_h *g,\n"
25232 "                          const char *root);\n"
25233 "\n"
25234 msgstr ""
25235
25236 #. type: textblock
25237 #: ../src/guestfs-actions.pod:3220
25238 msgid ""
25239 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25240 "disk), then this returns true if a live image was detected on the disk."
25241 msgstr ""
25242
25243 #. type: =head2
25244 #: ../src/guestfs-actions.pod:3230
25245 msgid "guestfs_inspect_is_multipart"
25246 msgstr ""
25247
25248 #. type: verbatim
25249 #: ../src/guestfs-actions.pod:3232
25250 #, no-wrap
25251 msgid ""
25252 " int\n"
25253 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
25254 "                               const char *root);\n"
25255 "\n"
25256 msgstr ""
25257
25258 #. type: textblock
25259 #: ../src/guestfs-actions.pod:3236
25260 msgid ""
25261 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25262 "disk), then this returns true if the disk is part of a set."
25263 msgstr ""
25264
25265 #. type: =head2
25266 #: ../src/guestfs-actions.pod:3246
25267 msgid "guestfs_inspect_is_netinst"
25268 msgstr ""
25269
25270 #. type: verbatim
25271 #: ../src/guestfs-actions.pod:3248
25272 #, no-wrap
25273 msgid ""
25274 " int\n"
25275 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
25276 "                             const char *root);\n"
25277 "\n"
25278 msgstr ""
25279
25280 #. type: textblock
25281 #: ../src/guestfs-actions.pod:3252
25282 msgid ""
25283 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25284 "disk), then this returns true if the disk is a network installer, ie. not a "
25285 "self-contained install CD but one which is likely to require network access "
25286 "to complete the install."
25287 msgstr ""
25288
25289 #. type: =head2
25290 #: ../src/guestfs-actions.pod:3264
25291 msgid "guestfs_inspect_list_applications"
25292 msgstr ""
25293
25294 #. type: verbatim
25295 #: ../src/guestfs-actions.pod:3266
25296 #, no-wrap
25297 msgid ""
25298 " struct guestfs_application_list *\n"
25299 " guestfs_inspect_list_applications (guestfs_h *g,\n"
25300 "                                    const char *root);\n"
25301 "\n"
25302 msgstr ""
25303
25304 #. type: textblock
25305 #: ../src/guestfs-actions.pod:3272
25306 msgid ""
25307 "I<Note:> This call works differently from other parts of the inspection "
25308 "API.  You have to call C<guestfs_inspect_os>, then "
25309 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
25310 "this.  Listing applications is a significantly more difficult operation "
25311 "which requires access to the full filesystem.  Also note that unlike the "
25312 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
25313 "the libguestfs handle, this call actually reads parts of the mounted "
25314 "filesystems during the call."
25315 msgstr ""
25316
25317 #. type: textblock
25318 #: ../src/guestfs-actions.pod:3362
25319 msgid ""
25320 "This function returns a C<struct guestfs_application_list *>, or NULL if "
25321 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
25322 "after use>."
25323 msgstr ""
25324
25325 #. type: textblock
25326 #: ../src/guestfs-actions.pod:3366
25327 msgid "(Added in 1.7.8)"
25328 msgstr ""
25329
25330 #. type: =head2
25331 #: ../src/guestfs-actions.pod:3368
25332 msgid "guestfs_inspect_os"
25333 msgstr ""
25334
25335 #. type: verbatim
25336 #: ../src/guestfs-actions.pod:3370
25337 #, no-wrap
25338 msgid ""
25339 " char **\n"
25340 " guestfs_inspect_os (guestfs_h *g);\n"
25341 "\n"
25342 msgstr ""
25343
25344 #. type: textblock
25345 #: ../src/guestfs-actions.pod:3386
25346 msgid ""
25347 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
25348 "functions in order to query further information about each operating system, "
25349 "such as the name and version."
25350 msgstr ""
25351
25352 #. type: textblock
25353 #: ../src/guestfs-actions.pod:3391
25354 msgid ""
25355 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
25356 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
25357 "the contents.  This should be called with no disks currently mounted.  The "
25358 "function may also use Augeas, so any existing Augeas handle will be closed."
25359 msgstr ""
25360
25361 #. type: textblock
25362 #: ../src/guestfs-actions.pod:3403 ../src/guestfs-actions.pod:3734
25363 #: ../src/guestfs-actions.pod:3816
25364 msgid "See also C<guestfs_list_filesystems>."
25365 msgstr ""
25366
25367 #. type: =head2
25368 #: ../src/guestfs-actions.pod:3411
25369 msgid "guestfs_is_blockdev"
25370 msgstr ""
25371
25372 #. type: verbatim
25373 #: ../src/guestfs-actions.pod:3413
25374 #, no-wrap
25375 msgid ""
25376 " int\n"
25377 " guestfs_is_blockdev (guestfs_h *g,\n"
25378 "                      const char *path);\n"
25379 "\n"
25380 msgstr ""
25381
25382 #. type: textblock
25383 #: ../src/guestfs-actions.pod:3420 ../src/guestfs-actions.pod:3449
25384 #: ../src/guestfs-actions.pod:3479 ../src/guestfs-actions.pod:3494
25385 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3566
25386 #: ../src/guestfs-actions.pod:3581
25387 msgid "See also C<guestfs_stat>."
25388 msgstr ""
25389
25390 #. type: textblock
25391 #: ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:3453
25392 #: ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3570
25393 #: ../src/guestfs-actions.pod:3585
25394 msgid "(Added in 1.5.10)"
25395 msgstr ""
25396
25397 #. type: =head2
25398 #: ../src/guestfs-actions.pod:3426
25399 msgid "guestfs_is_busy"
25400 msgstr ""
25401
25402 #. type: verbatim
25403 #: ../src/guestfs-actions.pod:3428
25404 #, no-wrap
25405 msgid ""
25406 " int\n"
25407 " guestfs_is_busy (guestfs_h *g);\n"
25408 "\n"
25409 msgstr ""
25410
25411 #. type: =head2
25412 #: ../src/guestfs-actions.pod:3440
25413 msgid "guestfs_is_chardev"
25414 msgstr ""
25415
25416 #. type: verbatim
25417 #: ../src/guestfs-actions.pod:3442
25418 #, no-wrap
25419 msgid ""
25420 " int\n"
25421 " guestfs_is_chardev (guestfs_h *g,\n"
25422 "                     const char *path);\n"
25423 "\n"
25424 msgstr ""
25425
25426 #. type: =head2
25427 #: ../src/guestfs-actions.pod:3455
25428 msgid "guestfs_is_config"
25429 msgstr ""
25430
25431 #. type: verbatim
25432 #: ../src/guestfs-actions.pod:3457
25433 #, no-wrap
25434 msgid ""
25435 " int\n"
25436 " guestfs_is_config (guestfs_h *g);\n"
25437 "\n"
25438 msgstr ""
25439
25440 #. type: =head2
25441 #: ../src/guestfs-actions.pod:3469
25442 msgid "guestfs_is_dir"
25443 msgstr ""
25444
25445 #. type: verbatim
25446 #: ../src/guestfs-actions.pod:3471
25447 #, no-wrap
25448 msgid ""
25449 " int\n"
25450 " guestfs_is_dir (guestfs_h *g,\n"
25451 "                 const char *path);\n"
25452 "\n"
25453 msgstr ""
25454
25455 #. type: =head2
25456 #: ../src/guestfs-actions.pod:3485
25457 msgid "guestfs_is_fifo"
25458 msgstr ""
25459
25460 #. type: verbatim
25461 #: ../src/guestfs-actions.pod:3487
25462 #, no-wrap
25463 msgid ""
25464 " int\n"
25465 " guestfs_is_fifo (guestfs_h *g,\n"
25466 "                  const char *path);\n"
25467 "\n"
25468 msgstr ""
25469
25470 #. type: =head2
25471 #: ../src/guestfs-actions.pod:3500
25472 msgid "guestfs_is_file"
25473 msgstr ""
25474
25475 #. type: verbatim
25476 #: ../src/guestfs-actions.pod:3502
25477 #, no-wrap
25478 msgid ""
25479 " int\n"
25480 " guestfs_is_file (guestfs_h *g,\n"
25481 "                  const char *path);\n"
25482 "\n"
25483 msgstr ""
25484
25485 #. type: =head2
25486 #: ../src/guestfs-actions.pod:3516
25487 msgid "guestfs_is_launching"
25488 msgstr ""
25489
25490 #. type: verbatim
25491 #: ../src/guestfs-actions.pod:3518
25492 #, no-wrap
25493 msgid ""
25494 " int\n"
25495 " guestfs_is_launching (guestfs_h *g);\n"
25496 "\n"
25497 msgstr ""
25498
25499 #. type: =head2
25500 #: ../src/guestfs-actions.pod:3530
25501 msgid "guestfs_is_lv"
25502 msgstr ""
25503
25504 #. type: verbatim
25505 #: ../src/guestfs-actions.pod:3532
25506 #, no-wrap
25507 msgid ""
25508 " int\n"
25509 " guestfs_is_lv (guestfs_h *g,\n"
25510 "                const char *device);\n"
25511 "\n"
25512 msgstr ""
25513
25514 #. type: =head2
25515 #: ../src/guestfs-actions.pod:3543
25516 msgid "guestfs_is_ready"
25517 msgstr ""
25518
25519 #. type: verbatim
25520 #: ../src/guestfs-actions.pod:3545
25521 #, no-wrap
25522 msgid ""
25523 " int\n"
25524 " guestfs_is_ready (guestfs_h *g);\n"
25525 "\n"
25526 msgstr ""
25527
25528 #. type: =head2
25529 #: ../src/guestfs-actions.pod:3557
25530 msgid "guestfs_is_socket"
25531 msgstr ""
25532
25533 #. type: verbatim
25534 #: ../src/guestfs-actions.pod:3559
25535 #, no-wrap
25536 msgid ""
25537 " int\n"
25538 " guestfs_is_socket (guestfs_h *g,\n"
25539 "                    const char *path);\n"
25540 "\n"
25541 msgstr ""
25542
25543 #. type: =head2
25544 #: ../src/guestfs-actions.pod:3572
25545 msgid "guestfs_is_symlink"
25546 msgstr ""
25547
25548 #. type: verbatim
25549 #: ../src/guestfs-actions.pod:3574
25550 #, no-wrap
25551 msgid ""
25552 " int\n"
25553 " guestfs_is_symlink (guestfs_h *g,\n"
25554 "                     const char *path);\n"
25555 "\n"
25556 msgstr ""
25557
25558 #. type: =head2
25559 #: ../src/guestfs-actions.pod:3587
25560 msgid "guestfs_is_zero"
25561 msgstr ""
25562
25563 #. type: verbatim
25564 #: ../src/guestfs-actions.pod:3589
25565 #, no-wrap
25566 msgid ""
25567 " int\n"
25568 " guestfs_is_zero (guestfs_h *g,\n"
25569 "                  const char *path);\n"
25570 "\n"
25571 msgstr ""
25572
25573 #. type: textblock
25574 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:3612
25575 msgid "(Added in 1.11.8)"
25576 msgstr ""
25577
25578 #. type: =head2
25579 #: ../src/guestfs-actions.pod:3600
25580 msgid "guestfs_is_zero_device"
25581 msgstr ""
25582
25583 #. type: verbatim
25584 #: ../src/guestfs-actions.pod:3602
25585 #, no-wrap
25586 msgid ""
25587 " int\n"
25588 " guestfs_is_zero_device (guestfs_h *g,\n"
25589 "                         const char *device);\n"
25590 "\n"
25591 msgstr ""
25592
25593 #. type: =head2
25594 #: ../src/guestfs-actions.pod:3614
25595 msgid "guestfs_kill_subprocess"
25596 msgstr ""
25597
25598 #. type: verbatim
25599 #: ../src/guestfs-actions.pod:3616
25600 #, no-wrap
25601 msgid ""
25602 " int\n"
25603 " guestfs_kill_subprocess (guestfs_h *g);\n"
25604 "\n"
25605 msgstr ""
25606
25607 #. type: =head2
25608 #: ../src/guestfs-actions.pod:3625
25609 msgid "guestfs_launch"
25610 msgstr ""
25611
25612 #. type: verbatim
25613 #: ../src/guestfs-actions.pod:3627
25614 #, no-wrap
25615 msgid ""
25616 " int\n"
25617 " guestfs_launch (guestfs_h *g);\n"
25618 "\n"
25619 msgstr ""
25620
25621 #. type: =head2
25622 #: ../src/guestfs-actions.pod:3645
25623 msgid "guestfs_lchown"
25624 msgstr ""
25625
25626 #. type: verbatim
25627 #: ../src/guestfs-actions.pod:3647
25628 #, no-wrap
25629 msgid ""
25630 " int\n"
25631 " guestfs_lchown (guestfs_h *g,\n"
25632 "                 int owner,\n"
25633 "                 int group,\n"
25634 "                 const char *path);\n"
25635 "\n"
25636 msgstr ""
25637
25638 #. type: textblock
25639 #: ../src/guestfs-actions.pod:3653
25640 msgid ""
25641 "Change the file owner to C<owner> and group to C<group>.  This is like "
25642 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
25643 "changed, not the target."
25644 msgstr ""
25645
25646 #. type: =head2
25647 #: ../src/guestfs-actions.pod:3665
25648 msgid "guestfs_lgetxattr"
25649 msgstr ""
25650
25651 #. type: verbatim
25652 #: ../src/guestfs-actions.pod:3667
25653 #, no-wrap
25654 msgid ""
25655 " char *\n"
25656 " guestfs_lgetxattr (guestfs_h *g,\n"
25657 "                    const char *path,\n"
25658 "                    const char *name,\n"
25659 "                    size_t *size_r);\n"
25660 "\n"
25661 msgstr ""
25662
25663 #. type: textblock
25664 #: ../src/guestfs-actions.pod:3687
25665 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
25666 msgstr ""
25667
25668 #. type: =head2
25669 #: ../src/guestfs-actions.pod:3695
25670 msgid "guestfs_lgetxattrs"
25671 msgstr ""
25672
25673 #. type: verbatim
25674 #: ../src/guestfs-actions.pod:3697
25675 #, no-wrap
25676 msgid ""
25677 " struct guestfs_xattr_list *\n"
25678 " guestfs_lgetxattrs (guestfs_h *g,\n"
25679 "                     const char *path);\n"
25680 "\n"
25681 msgstr ""
25682
25683 #. type: textblock
25684 #: ../src/guestfs-actions.pod:3701
25685 msgid ""
25686 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
25687 "then it returns the extended attributes of the link itself."
25688 msgstr ""
25689
25690 #. type: =head2
25691 #: ../src/guestfs-actions.pod:3711
25692 msgid "guestfs_list_9p"
25693 msgstr ""
25694
25695 #. type: verbatim
25696 #: ../src/guestfs-actions.pod:3713
25697 #, no-wrap
25698 msgid ""
25699 " char **\n"
25700 " guestfs_list_9p (guestfs_h *g);\n"
25701 "\n"
25702 msgstr ""
25703
25704 #. type: =head2
25705 #: ../src/guestfs-actions.pod:3725
25706 msgid "guestfs_list_devices"
25707 msgstr ""
25708
25709 #. type: verbatim
25710 #: ../src/guestfs-actions.pod:3727
25711 #, no-wrap
25712 msgid ""
25713 " char **\n"
25714 " guestfs_list_devices (guestfs_h *g);\n"
25715 "\n"
25716 msgstr ""
25717
25718 #. type: =head2
25719 #: ../src/guestfs-actions.pod:3742
25720 msgid "guestfs_list_dm_devices"
25721 msgstr ""
25722
25723 #. type: verbatim
25724 #: ../src/guestfs-actions.pod:3744
25725 #, no-wrap
25726 msgid ""
25727 " char **\n"
25728 " guestfs_list_dm_devices (guestfs_h *g);\n"
25729 "\n"
25730 msgstr ""
25731
25732 #. type: textblock
25733 #: ../src/guestfs-actions.pod:3749
25734 msgid ""
25735 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
25736 "previous call to C<guestfs_luks_open>."
25737 msgstr ""
25738
25739 #. type: textblock
25740 #: ../src/guestfs-actions.pod:3752
25741 msgid ""
25742 "Device mapper devices which correspond to logical volumes are I<not> "
25743 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
25744 "volumes."
25745 msgstr ""
25746
25747 #. type: textblock
25748 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:5216
25749 msgid "(Added in 1.11.15)"
25750 msgstr ""
25751
25752 #. type: =head2
25753 #: ../src/guestfs-actions.pod:3762
25754 msgid "guestfs_list_filesystems"
25755 msgstr ""
25756
25757 #. type: verbatim
25758 #: ../src/guestfs-actions.pod:3764
25759 #, no-wrap
25760 msgid ""
25761 " char **\n"
25762 " guestfs_list_filesystems (guestfs_h *g);\n"
25763 "\n"
25764 msgstr ""
25765
25766 #. type: textblock
25767 #: ../src/guestfs-actions.pod:3784
25768 msgid ""
25769 "This command runs other libguestfs commands, which might include "
25770 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
25771 "soon after launch and only when nothing is mounted."
25772 msgstr ""
25773
25774 #. type: textblock
25775 #: ../src/guestfs-actions.pod:3788
25776 msgid ""
25777 "Not all of the filesystems returned will be mountable.  In particular, swap "
25778 "partitions are returned in the list.  Also this command does not check that "
25779 "each filesystem found is valid and mountable, and some filesystems might be "
25780 "mountable but require special options.  Filesystems may not all belong to a "
25781 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
25782 msgstr ""
25783
25784 #. type: textblock
25785 #: ../src/guestfs-actions.pod:3802 ../src/guestfs-actions.pod:5577
25786 msgid "(Added in 1.5.15)"
25787 msgstr ""
25788
25789 #. type: =head2
25790 #: ../src/guestfs-actions.pod:3804
25791 msgid "guestfs_list_partitions"
25792 msgstr ""
25793
25794 #. type: verbatim
25795 #: ../src/guestfs-actions.pod:3806
25796 #, no-wrap
25797 msgid ""
25798 " char **\n"
25799 " guestfs_list_partitions (guestfs_h *g);\n"
25800 "\n"
25801 msgstr ""
25802
25803 #. type: textblock
25804 #: ../src/guestfs-actions.pod:3813
25805 msgid ""
25806 "This does not return logical volumes.  For that you will need to call "
25807 "C<guestfs_lvs>."
25808 msgstr ""
25809
25810 #. type: =head2
25811 #: ../src/guestfs-actions.pod:3824
25812 msgid "guestfs_ll"
25813 msgstr ""
25814
25815 #. type: verbatim
25816 #: ../src/guestfs-actions.pod:3826
25817 #, no-wrap
25818 msgid ""
25819 " char *\n"
25820 " guestfs_ll (guestfs_h *g,\n"
25821 "             const char *directory);\n"
25822 "\n"
25823 msgstr ""
25824
25825 #. type: =head2
25826 #: ../src/guestfs-actions.pod:3841
25827 msgid "guestfs_ln"
25828 msgstr ""
25829
25830 #. type: verbatim
25831 #: ../src/guestfs-actions.pod:3843
25832 #, no-wrap
25833 msgid ""
25834 " int\n"
25835 " guestfs_ln (guestfs_h *g,\n"
25836 "             const char *target,\n"
25837 "             const char *linkname);\n"
25838 "\n"
25839 msgstr ""
25840
25841 #. type: =head2
25842 #: ../src/guestfs-actions.pod:3854
25843 msgid "guestfs_ln_f"
25844 msgstr ""
25845
25846 #. type: verbatim
25847 #: ../src/guestfs-actions.pod:3856
25848 #, no-wrap
25849 msgid ""
25850 " int\n"
25851 " guestfs_ln_f (guestfs_h *g,\n"
25852 "               const char *target,\n"
25853 "               const char *linkname);\n"
25854 "\n"
25855 msgstr ""
25856
25857 #. type: =head2
25858 #: ../src/guestfs-actions.pod:3868
25859 msgid "guestfs_ln_s"
25860 msgstr ""
25861
25862 #. type: verbatim
25863 #: ../src/guestfs-actions.pod:3870
25864 #, no-wrap
25865 msgid ""
25866 " int\n"
25867 " guestfs_ln_s (guestfs_h *g,\n"
25868 "               const char *target,\n"
25869 "               const char *linkname);\n"
25870 "\n"
25871 msgstr ""
25872
25873 #. type: =head2
25874 #: ../src/guestfs-actions.pod:3881
25875 msgid "guestfs_ln_sf"
25876 msgstr ""
25877
25878 #. type: verbatim
25879 #: ../src/guestfs-actions.pod:3883
25880 #, no-wrap
25881 msgid ""
25882 " int\n"
25883 " guestfs_ln_sf (guestfs_h *g,\n"
25884 "                const char *target,\n"
25885 "                const char *linkname);\n"
25886 "\n"
25887 msgstr ""
25888
25889 #. type: =head2
25890 #: ../src/guestfs-actions.pod:3895
25891 msgid "guestfs_lremovexattr"
25892 msgstr ""
25893
25894 #. type: verbatim
25895 #: ../src/guestfs-actions.pod:3897
25896 #, no-wrap
25897 msgid ""
25898 " int\n"
25899 " guestfs_lremovexattr (guestfs_h *g,\n"
25900 "                       const char *xattr,\n"
25901 "                       const char *path);\n"
25902 "\n"
25903 msgstr ""
25904
25905 #. type: textblock
25906 #: ../src/guestfs-actions.pod:3902
25907 msgid ""
25908 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
25909 "link, then it removes an extended attribute of the link itself."
25910 msgstr ""
25911
25912 #. type: =head2
25913 #: ../src/guestfs-actions.pod:3910
25914 msgid "guestfs_ls"
25915 msgstr ""
25916
25917 #. type: verbatim
25918 #: ../src/guestfs-actions.pod:3912
25919 #, no-wrap
25920 msgid ""
25921 " char **\n"
25922 " guestfs_ls (guestfs_h *g,\n"
25923 "             const char *directory);\n"
25924 "\n"
25925 msgstr ""
25926
25927 #. type: textblock
25928 #: ../src/guestfs-actions.pod:3920
25929 msgid ""
25930 "This command is mostly useful for interactive sessions.  Programs should "
25931 "probably use C<guestfs_readdir> instead."
25932 msgstr ""
25933
25934 #. type: =head2
25935 #: ../src/guestfs-actions.pod:3929
25936 msgid "guestfs_lsetxattr"
25937 msgstr ""
25938
25939 #. type: verbatim
25940 #: ../src/guestfs-actions.pod:3931
25941 #, no-wrap
25942 msgid ""
25943 " int\n"
25944 " guestfs_lsetxattr (guestfs_h *g,\n"
25945 "                    const char *xattr,\n"
25946 "                    const char *val,\n"
25947 "                    int vallen,\n"
25948 "                    const char *path);\n"
25949 "\n"
25950 msgstr ""
25951
25952 #. type: textblock
25953 #: ../src/guestfs-actions.pod:3938
25954 msgid ""
25955 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
25956 "then it sets an extended attribute of the link itself."
25957 msgstr ""
25958
25959 #. type: =head2
25960 #: ../src/guestfs-actions.pod:3946
25961 msgid "guestfs_lstat"
25962 msgstr ""
25963
25964 #. type: verbatim
25965 #: ../src/guestfs-actions.pod:3948
25966 #, no-wrap
25967 msgid ""
25968 " struct guestfs_stat *\n"
25969 " guestfs_lstat (guestfs_h *g,\n"
25970 "                const char *path);\n"
25971 "\n"
25972 msgstr ""
25973
25974 #. type: textblock
25975 #: ../src/guestfs-actions.pod:3954
25976 msgid ""
25977 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
25978 "link, then the link is stat-ed, not the file it refers to."
25979 msgstr ""
25980
25981 #. type: textblock
25982 #: ../src/guestfs-actions.pod:3960 ../src/guestfs-actions.pod:6735
25983 msgid ""
25984 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
25985 "error.  I<The caller must call C<guestfs_free_stat> after use>."
25986 msgstr ""
25987
25988 #. type: textblock
25989 #: ../src/guestfs-actions.pod:3964 ../src/guestfs-actions.pod:6739
25990 #: ../src/guestfs-actions.pod:6757 ../src/guestfs-actions.pod:7138
25991 msgid "(Added in 0.9.2)"
25992 msgstr ""
25993
25994 #. type: =head2
25995 #: ../src/guestfs-actions.pod:3966
25996 msgid "guestfs_lstatlist"
25997 msgstr ""
25998
25999 #. type: verbatim
26000 #: ../src/guestfs-actions.pod:3968
26001 #, no-wrap
26002 msgid ""
26003 " struct guestfs_stat_list *\n"
26004 " guestfs_lstatlist (guestfs_h *g,\n"
26005 "                    const char *path,\n"
26006 "                    char *const *names);\n"
26007 "\n"
26008 msgstr ""
26009
26010 #. type: textblock
26011 #: ../src/guestfs-actions.pod:3973
26012 msgid ""
26013 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
26014 "files, where all files are in the directory C<path>.  C<names> is the list "
26015 "of files from this directory."
26016 msgstr ""
26017
26018 #. type: textblock
26019 #: ../src/guestfs-actions.pod:3982
26020 msgid ""
26021 "This call is intended for programs that want to efficiently list a directory "
26022 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
26023 "for a similarly efficient call for getting extended attributes.  Very long "
26024 "directory listings might cause the protocol message size to be exceeded, "
26025 "causing this call to fail.  The caller must split up such requests into "
26026 "smaller groups of names."
26027 msgstr ""
26028
26029 #. type: textblock
26030 #: ../src/guestfs-actions.pod:3990
26031 msgid ""
26032 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
26033 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
26034 msgstr ""
26035
26036 #. type: =head2
26037 #: ../src/guestfs-actions.pod:3996
26038 msgid "guestfs_luks_add_key"
26039 msgstr ""
26040
26041 #. type: verbatim
26042 #: ../src/guestfs-actions.pod:3998
26043 #, no-wrap
26044 msgid ""
26045 " int\n"
26046 " guestfs_luks_add_key (guestfs_h *g,\n"
26047 "                       const char *device,\n"
26048 "                       const char *key,\n"
26049 "                       const char *newkey,\n"
26050 "                       int keyslot);\n"
26051 "\n"
26052 msgstr ""
26053
26054 #. type: textblock
26055 #: ../src/guestfs-actions.pod:4010
26056 msgid ""
26057 "Note that if C<keyslot> already contains a key, then this command will "
26058 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
26059 msgstr ""
26060
26061 #. type: textblock
26062 #: ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4056
26063 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4099
26064 #: ../src/guestfs-actions.pod:4134 ../src/guestfs-actions.pod:4153
26065 msgid ""
26066 "This function takes a key or passphrase parameter which could contain "
26067 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
26068 "information."
26069 msgstr ""
26070
26071 #. type: textblock
26072 #: ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4060
26073 #: ../src/guestfs-actions.pod:4083 ../src/guestfs-actions.pod:4103
26074 msgid "(Added in 1.5.2)"
26075 msgstr ""
26076
26077 #. type: =head2
26078 #: ../src/guestfs-actions.pod:4022
26079 msgid "guestfs_luks_close"
26080 msgstr ""
26081
26082 #. type: verbatim
26083 #: ../src/guestfs-actions.pod:4024
26084 #, no-wrap
26085 msgid ""
26086 " int\n"
26087 " guestfs_luks_close (guestfs_h *g,\n"
26088 "                     const char *device);\n"
26089 "\n"
26090 msgstr ""
26091
26092 #. type: textblock
26093 #: ../src/guestfs-actions.pod:4028
26094 msgid ""
26095 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
26096 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
26097 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
26098 "underlying block device."
26099 msgstr ""
26100
26101 #. type: textblock
26102 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4138
26103 #: ../src/guestfs-actions.pod:4157 ../src/guestfs-actions.pod:4207
26104 #: ../src/guestfs-actions.pod:4255
26105 msgid "(Added in 1.5.1)"
26106 msgstr ""
26107
26108 #. type: =head2
26109 #: ../src/guestfs-actions.pod:4038
26110 msgid "guestfs_luks_format"
26111 msgstr ""
26112
26113 #. type: verbatim
26114 #: ../src/guestfs-actions.pod:4040
26115 #, no-wrap
26116 msgid ""
26117 " int\n"
26118 " guestfs_luks_format (guestfs_h *g,\n"
26119 "                      const char *device,\n"
26120 "                      const char *key,\n"
26121 "                      int keyslot);\n"
26122 "\n"
26123 msgstr ""
26124
26125 #. type: =head2
26126 #: ../src/guestfs-actions.pod:4062
26127 msgid "guestfs_luks_format_cipher"
26128 msgstr ""
26129
26130 #. type: verbatim
26131 #: ../src/guestfs-actions.pod:4064
26132 #, no-wrap
26133 msgid ""
26134 " int\n"
26135 " guestfs_luks_format_cipher (guestfs_h *g,\n"
26136 "                             const char *device,\n"
26137 "                             const char *key,\n"
26138 "                             int keyslot,\n"
26139 "                             const char *cipher);\n"
26140 "\n"
26141 msgstr ""
26142
26143 #. type: textblock
26144 #: ../src/guestfs-actions.pod:4071
26145 msgid ""
26146 "This command is the same as C<guestfs_luks_format> but it also allows you to "
26147 "set the C<cipher> used."
26148 msgstr ""
26149
26150 #. type: =head2
26151 #: ../src/guestfs-actions.pod:4085
26152 msgid "guestfs_luks_kill_slot"
26153 msgstr ""
26154
26155 #. type: verbatim
26156 #: ../src/guestfs-actions.pod:4087
26157 #, no-wrap
26158 msgid ""
26159 " int\n"
26160 " guestfs_luks_kill_slot (guestfs_h *g,\n"
26161 "                         const char *device,\n"
26162 "                         const char *key,\n"
26163 "                         int keyslot);\n"
26164 "\n"
26165 msgstr ""
26166
26167 #. type: =head2
26168 #: ../src/guestfs-actions.pod:4105
26169 msgid "guestfs_luks_open"
26170 msgstr ""
26171
26172 #. type: verbatim
26173 #: ../src/guestfs-actions.pod:4107
26174 #, no-wrap
26175 msgid ""
26176 " int\n"
26177 " guestfs_luks_open (guestfs_h *g,\n"
26178 "                    const char *device,\n"
26179 "                    const char *key,\n"
26180 "                    const char *mapname);\n"
26181 "\n"
26182 msgstr ""
26183
26184 #. type: textblock
26185 #: ../src/guestfs-actions.pod:4125
26186 msgid ""
26187 "If this block device contains LVM volume groups, then calling "
26188 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
26189 "visible."
26190 msgstr ""
26191
26192 #. type: textblock
26193 #: ../src/guestfs-actions.pod:4129
26194 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
26195 msgstr ""
26196
26197 #. type: =head2
26198 #: ../src/guestfs-actions.pod:4140
26199 msgid "guestfs_luks_open_ro"
26200 msgstr ""
26201
26202 #. type: verbatim
26203 #: ../src/guestfs-actions.pod:4142
26204 #, no-wrap
26205 msgid ""
26206 " int\n"
26207 " guestfs_luks_open_ro (guestfs_h *g,\n"
26208 "                       const char *device,\n"
26209 "                       const char *key,\n"
26210 "                       const char *mapname);\n"
26211 "\n"
26212 msgstr ""
26213
26214 #. type: textblock
26215 #: ../src/guestfs-actions.pod:4148
26216 msgid ""
26217 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
26218 "created."
26219 msgstr ""
26220
26221 #. type: =head2
26222 #: ../src/guestfs-actions.pod:4159
26223 msgid "guestfs_lvcreate"
26224 msgstr ""
26225
26226 #. type: verbatim
26227 #: ../src/guestfs-actions.pod:4161
26228 #, no-wrap
26229 msgid ""
26230 " int\n"
26231 " guestfs_lvcreate (guestfs_h *g,\n"
26232 "                   const char *logvol,\n"
26233 "                   const char *volgroup,\n"
26234 "                   int mbytes);\n"
26235 "\n"
26236 msgstr ""
26237
26238 #. type: =head2
26239 #: ../src/guestfs-actions.pod:4174
26240 msgid "guestfs_lvm_canonical_lv_name"
26241 msgstr ""
26242
26243 #. type: verbatim
26244 #: ../src/guestfs-actions.pod:4176
26245 #, no-wrap
26246 msgid ""
26247 " char *\n"
26248 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
26249 "                                const char *lvname);\n"
26250 "\n"
26251 msgstr ""
26252
26253 #. type: textblock
26254 #: ../src/guestfs-actions.pod:4187
26255 msgid "See also C<guestfs_is_lv>."
26256 msgstr ""
26257
26258 #. type: textblock
26259 #: ../src/guestfs-actions.pod:4192
26260 msgid "(Added in 1.5.24)"
26261 msgstr ""
26262
26263 #. type: =head2
26264 #: ../src/guestfs-actions.pod:4194
26265 msgid "guestfs_lvm_clear_filter"
26266 msgstr ""
26267
26268 #. type: verbatim
26269 #: ../src/guestfs-actions.pod:4196
26270 #, no-wrap
26271 msgid ""
26272 " int\n"
26273 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
26274 "\n"
26275 msgstr ""
26276
26277 #. type: textblock
26278 #: ../src/guestfs-actions.pod:4199
26279 msgid ""
26280 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
26281 "see every block device."
26282 msgstr ""
26283
26284 #. type: =head2
26285 #: ../src/guestfs-actions.pod:4209
26286 msgid "guestfs_lvm_remove_all"
26287 msgstr ""
26288
26289 #. type: verbatim
26290 #: ../src/guestfs-actions.pod:4211
26291 #, no-wrap
26292 msgid ""
26293 " int\n"
26294 " guestfs_lvm_remove_all (guestfs_h *g);\n"
26295 "\n"
26296 msgstr ""
26297
26298 #. type: =head2
26299 #: ../src/guestfs-actions.pod:4224
26300 msgid "guestfs_lvm_set_filter"
26301 msgstr ""
26302
26303 #. type: verbatim
26304 #: ../src/guestfs-actions.pod:4226
26305 #, no-wrap
26306 msgid ""
26307 " int\n"
26308 " guestfs_lvm_set_filter (guestfs_h *g,\n"
26309 "                         char *const *devices);\n"
26310 "\n"
26311 msgstr ""
26312
26313 #. type: =head2
26314 #: ../src/guestfs-actions.pod:4257
26315 msgid "guestfs_lvremove"
26316 msgstr ""
26317
26318 #. type: verbatim
26319 #: ../src/guestfs-actions.pod:4259
26320 #, no-wrap
26321 msgid ""
26322 " int\n"
26323 " guestfs_lvremove (guestfs_h *g,\n"
26324 "                   const char *device);\n"
26325 "\n"
26326 msgstr ""
26327
26328 #. type: textblock
26329 #: ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:5674
26330 #: ../src/guestfs-actions.pod:7508
26331 msgid "(Added in 1.0.13)"
26332 msgstr ""
26333
26334 #. type: =head2
26335 #: ../src/guestfs-actions.pod:4273
26336 msgid "guestfs_lvrename"
26337 msgstr ""
26338
26339 #. type: verbatim
26340 #: ../src/guestfs-actions.pod:4275
26341 #, no-wrap
26342 msgid ""
26343 " int\n"
26344 " guestfs_lvrename (guestfs_h *g,\n"
26345 "                   const char *logvol,\n"
26346 "                   const char *newlogvol);\n"
26347 "\n"
26348 msgstr ""
26349
26350 #. type: textblock
26351 #: ../src/guestfs-actions.pod:4284 ../src/guestfs-actions.pod:7521
26352 msgid "(Added in 1.0.83)"
26353 msgstr ""
26354
26355 #. type: =head2
26356 #: ../src/guestfs-actions.pod:4286
26357 msgid "guestfs_lvresize"
26358 msgstr ""
26359
26360 #. type: verbatim
26361 #: ../src/guestfs-actions.pod:4288
26362 #, no-wrap
26363 msgid ""
26364 " int\n"
26365 " guestfs_lvresize (guestfs_h *g,\n"
26366 "                   const char *device,\n"
26367 "                   int mbytes);\n"
26368 "\n"
26369 msgstr ""
26370
26371 #. type: =head2
26372 #: ../src/guestfs-actions.pod:4301
26373 msgid "guestfs_lvresize_free"
26374 msgstr ""
26375
26376 #. type: verbatim
26377 #: ../src/guestfs-actions.pod:4303
26378 #, no-wrap
26379 msgid ""
26380 " int\n"
26381 " guestfs_lvresize_free (guestfs_h *g,\n"
26382 "                        const char *lv,\n"
26383 "                        int percent);\n"
26384 "\n"
26385 msgstr ""
26386
26387 #. type: textblock
26388 #: ../src/guestfs-actions.pod:4316
26389 msgid "(Added in 1.3.3)"
26390 msgstr ""
26391
26392 #. type: =head2
26393 #: ../src/guestfs-actions.pod:4318
26394 msgid "guestfs_lvs"
26395 msgstr ""
26396
26397 #. type: verbatim
26398 #: ../src/guestfs-actions.pod:4320
26399 #, no-wrap
26400 msgid ""
26401 " char **\n"
26402 " guestfs_lvs (guestfs_h *g);\n"
26403 "\n"
26404 msgstr ""
26405
26406 #. type: textblock
26407 #: ../src/guestfs-actions.pod:4329
26408 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
26409 msgstr ""
26410
26411 #. type: =head2
26412 #: ../src/guestfs-actions.pod:4337
26413 msgid "guestfs_lvs_full"
26414 msgstr ""
26415
26416 #. type: verbatim
26417 #: ../src/guestfs-actions.pod:4339
26418 #, no-wrap
26419 msgid ""
26420 " struct guestfs_lvm_lv_list *\n"
26421 " guestfs_lvs_full (guestfs_h *g);\n"
26422 "\n"
26423 msgstr ""
26424
26425 #. type: textblock
26426 #: ../src/guestfs-actions.pod:4345
26427 msgid ""
26428 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
26429 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
26430 msgstr ""
26431
26432 #. type: =head2
26433 #: ../src/guestfs-actions.pod:4351
26434 msgid "guestfs_lvuuid"
26435 msgstr ""
26436
26437 #. type: verbatim
26438 #: ../src/guestfs-actions.pod:4353
26439 #, no-wrap
26440 msgid ""
26441 " char *\n"
26442 " guestfs_lvuuid (guestfs_h *g,\n"
26443 "                 const char *device);\n"
26444 "\n"
26445 msgstr ""
26446
26447 #. type: =head2
26448 #: ../src/guestfs-actions.pod:4364
26449 msgid "guestfs_lxattrlist"
26450 msgstr ""
26451
26452 #. type: verbatim
26453 #: ../src/guestfs-actions.pod:4366
26454 #, no-wrap
26455 msgid ""
26456 " struct guestfs_xattr_list *\n"
26457 " guestfs_lxattrlist (guestfs_h *g,\n"
26458 "                     const char *path,\n"
26459 "                     char *const *names);\n"
26460 "\n"
26461 msgstr ""
26462
26463 #. type: textblock
26464 #: ../src/guestfs-actions.pod:4385
26465 msgid ""
26466 "This call is intended for programs that want to efficiently list a directory "
26467 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
26468 "a similarly efficient call for getting standard stats.  Very long directory "
26469 "listings might cause the protocol message size to be exceeded, causing this "
26470 "call to fail.  The caller must split up such requests into smaller groups of "
26471 "names."
26472 msgstr ""
26473
26474 #. type: =head2
26475 #: ../src/guestfs-actions.pod:4399
26476 msgid "guestfs_mkdir"
26477 msgstr ""
26478
26479 #. type: verbatim
26480 #: ../src/guestfs-actions.pod:4401
26481 #, no-wrap
26482 msgid ""
26483 " int\n"
26484 " guestfs_mkdir (guestfs_h *g,\n"
26485 "                const char *path);\n"
26486 "\n"
26487 msgstr ""
26488
26489 #. type: =head2
26490 #: ../src/guestfs-actions.pod:4411
26491 msgid "guestfs_mkdir_mode"
26492 msgstr ""
26493
26494 #. type: verbatim
26495 #: ../src/guestfs-actions.pod:4413
26496 #, no-wrap
26497 msgid ""
26498 " int\n"
26499 " guestfs_mkdir_mode (guestfs_h *g,\n"
26500 "                     const char *path,\n"
26501 "                     int mode);\n"
26502 "\n"
26503 msgstr ""
26504
26505 #. type: textblock
26506 #: ../src/guestfs-actions.pod:4425
26507 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
26508 msgstr ""
26509
26510 #. type: =head2
26511 #: ../src/guestfs-actions.pod:4431
26512 msgid "guestfs_mkdir_p"
26513 msgstr ""
26514
26515 #. type: verbatim
26516 #: ../src/guestfs-actions.pod:4433
26517 #, no-wrap
26518 msgid ""
26519 " int\n"
26520 " guestfs_mkdir_p (guestfs_h *g,\n"
26521 "                  const char *path);\n"
26522 "\n"
26523 msgstr ""
26524
26525 #. type: =head2
26526 #: ../src/guestfs-actions.pod:4444
26527 msgid "guestfs_mkdtemp"
26528 msgstr ""
26529
26530 #. type: verbatim
26531 #: ../src/guestfs-actions.pod:4446
26532 #, no-wrap
26533 msgid ""
26534 " char *\n"
26535 " guestfs_mkdtemp (guestfs_h *g,\n"
26536 "                  const char *template);\n"
26537 "\n"
26538 msgstr ""
26539
26540 #. type: =head2
26541 #: ../src/guestfs-actions.pod:4474
26542 msgid "guestfs_mke2fs_J"
26543 msgstr ""
26544
26545 #. type: verbatim
26546 #: ../src/guestfs-actions.pod:4476
26547 #, no-wrap
26548 msgid ""
26549 " int\n"
26550 " guestfs_mke2fs_J (guestfs_h *g,\n"
26551 "                   const char *fstype,\n"
26552 "                   int blocksize,\n"
26553 "                   const char *device,\n"
26554 "                   const char *journal);\n"
26555 "\n"
26556 msgstr ""
26557
26558 #. type: textblock
26559 #: ../src/guestfs-actions.pod:4489
26560 msgid "See also C<guestfs_mke2journal>."
26561 msgstr ""
26562
26563 #. type: textblock
26564 #: ../src/guestfs-actions.pod:4493 ../src/guestfs-actions.pod:4511
26565 #: ../src/guestfs-actions.pod:4529 ../src/guestfs-actions.pod:4545
26566 #: ../src/guestfs-actions.pod:4559 ../src/guestfs-actions.pod:4573
26567 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4909
26568 msgid "(Added in 1.0.68)"
26569 msgstr ""
26570
26571 #. type: =head2
26572 #: ../src/guestfs-actions.pod:4495
26573 msgid "guestfs_mke2fs_JL"
26574 msgstr ""
26575
26576 #. type: verbatim
26577 #: ../src/guestfs-actions.pod:4497
26578 #, no-wrap
26579 msgid ""
26580 " int\n"
26581 " guestfs_mke2fs_JL (guestfs_h *g,\n"
26582 "                    const char *fstype,\n"
26583 "                    int blocksize,\n"
26584 "                    const char *device,\n"
26585 "                    const char *label);\n"
26586 "\n"
26587 msgstr ""
26588
26589 #. type: textblock
26590 #: ../src/guestfs-actions.pod:4507
26591 msgid "See also C<guestfs_mke2journal_L>."
26592 msgstr ""
26593
26594 #. type: =head2
26595 #: ../src/guestfs-actions.pod:4513
26596 msgid "guestfs_mke2fs_JU"
26597 msgstr ""
26598
26599 #. type: verbatim
26600 #: ../src/guestfs-actions.pod:4515
26601 #, no-wrap
26602 msgid ""
26603 " int\n"
26604 " guestfs_mke2fs_JU (guestfs_h *g,\n"
26605 "                    const char *fstype,\n"
26606 "                    int blocksize,\n"
26607 "                    const char *device,\n"
26608 "                    const char *uuid);\n"
26609 "\n"
26610 msgstr ""
26611
26612 #. type: textblock
26613 #: ../src/guestfs-actions.pod:4525
26614 msgid "See also C<guestfs_mke2journal_U>."
26615 msgstr ""
26616
26617 #. type: =head2
26618 #: ../src/guestfs-actions.pod:4531
26619 msgid "guestfs_mke2journal"
26620 msgstr ""
26621
26622 #. type: verbatim
26623 #: ../src/guestfs-actions.pod:4533
26624 #, no-wrap
26625 msgid ""
26626 " int\n"
26627 " guestfs_mke2journal (guestfs_h *g,\n"
26628 "                      int blocksize,\n"
26629 "                      const char *device);\n"
26630 "\n"
26631 msgstr ""
26632
26633 #. type: =head2
26634 #: ../src/guestfs-actions.pod:4547
26635 msgid "guestfs_mke2journal_L"
26636 msgstr ""
26637
26638 #. type: verbatim
26639 #: ../src/guestfs-actions.pod:4549
26640 #, no-wrap
26641 msgid ""
26642 " int\n"
26643 " guestfs_mke2journal_L (guestfs_h *g,\n"
26644 "                        int blocksize,\n"
26645 "                        const char *label,\n"
26646 "                        const char *device);\n"
26647 "\n"
26648 msgstr ""
26649
26650 #. type: =head2
26651 #: ../src/guestfs-actions.pod:4561
26652 msgid "guestfs_mke2journal_U"
26653 msgstr ""
26654
26655 #. type: verbatim
26656 #: ../src/guestfs-actions.pod:4563
26657 #, no-wrap
26658 msgid ""
26659 " int\n"
26660 " guestfs_mke2journal_U (guestfs_h *g,\n"
26661 "                        int blocksize,\n"
26662 "                        const char *uuid,\n"
26663 "                        const char *device);\n"
26664 "\n"
26665 msgstr ""
26666
26667 #. type: =head2
26668 #: ../src/guestfs-actions.pod:4575
26669 msgid "guestfs_mkfifo"
26670 msgstr ""
26671
26672 #. type: verbatim
26673 #: ../src/guestfs-actions.pod:4577
26674 #, no-wrap
26675 msgid ""
26676 " int\n"
26677 " guestfs_mkfifo (guestfs_h *g,\n"
26678 "                 int mode,\n"
26679 "                 const char *path);\n"
26680 "\n"
26681 msgstr ""
26682
26683 #. type: textblock
26684 #: ../src/guestfs-actions.pod:4582
26685 msgid ""
26686 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
26687 "is just a convenient wrapper around C<guestfs_mknod>."
26688 msgstr ""
26689
26690 #. type: =head2
26691 #: ../src/guestfs-actions.pod:4592
26692 msgid "guestfs_mkfs"
26693 msgstr ""
26694
26695 #. type: verbatim
26696 #: ../src/guestfs-actions.pod:4594
26697 #, no-wrap
26698 msgid ""
26699 " int\n"
26700 " guestfs_mkfs (guestfs_h *g,\n"
26701 "               const char *fstype,\n"
26702 "               const char *device);\n"
26703 "\n"
26704 msgstr ""
26705
26706 #. type: =head2
26707 #: ../src/guestfs-actions.pod:4607
26708 msgid "guestfs_mkfs_b"
26709 msgstr ""
26710
26711 #. type: verbatim
26712 #: ../src/guestfs-actions.pod:4609
26713 #, no-wrap
26714 msgid ""
26715 " int\n"
26716 " guestfs_mkfs_b (guestfs_h *g,\n"
26717 "                 const char *fstype,\n"
26718 "                 int blocksize,\n"
26719 "                 const char *device);\n"
26720 "\n"
26721 msgstr ""
26722
26723 #. type: textblock
26724 #: ../src/guestfs-actions.pod:4615
26725 msgid ""
26726 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
26727 "block size of the resulting filesystem.  Supported block sizes depend on the "
26728 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
26729 msgstr ""
26730
26731 #. type: textblock
26732 #: ../src/guestfs-actions.pod:4625
26733 msgid ""
26734 "This function is deprecated.  In new code, use the L</guestfs_mkfs_opts> "
26735 "call instead."
26736 msgstr ""
26737
26738 #. type: =head2
26739 #: ../src/guestfs-actions.pod:4634
26740 msgid "guestfs_mkfs_opts"
26741 msgstr ""
26742
26743 #. type: verbatim
26744 #: ../src/guestfs-actions.pod:4636
26745 #, no-wrap
26746 msgid ""
26747 " int\n"
26748 " guestfs_mkfs_opts (guestfs_h *g,\n"
26749 "                    const char *fstype,\n"
26750 "                    const char *device,\n"
26751 "                    ...);\n"
26752 "\n"
26753 msgstr ""
26754
26755 #. type: verbatim
26756 #: ../src/guestfs-actions.pod:4647
26757 #, no-wrap
26758 msgid ""
26759 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
26760 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
26761 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
26762 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
26763 "\n"
26764 msgstr ""
26765
26766 #. type: textblock
26767 #: ../src/guestfs-actions.pod:4695
26768 msgid "(Added in 1.7.19)"
26769 msgstr ""
26770
26771 #. type: =head2
26772 #: ../src/guestfs-actions.pod:4697
26773 msgid "guestfs_mkfs_opts_va"
26774 msgstr ""
26775
26776 #. type: verbatim
26777 #: ../src/guestfs-actions.pod:4699
26778 #, no-wrap
26779 msgid ""
26780 " int\n"
26781 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
26782 "                       const char *fstype,\n"
26783 "                       const char *device,\n"
26784 "                       va_list args);\n"
26785 "\n"
26786 msgstr ""
26787
26788 #. type: textblock
26789 #: ../src/guestfs-actions.pod:4705
26790 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
26791 msgstr ""
26792
26793 #. type: =head2
26794 #: ../src/guestfs-actions.pod:4709
26795 msgid "guestfs_mkfs_opts_argv"
26796 msgstr ""
26797
26798 #. type: verbatim
26799 #: ../src/guestfs-actions.pod:4711
26800 #, no-wrap
26801 msgid ""
26802 " int\n"
26803 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26804 "                         const char *fstype,\n"
26805 "                         const char *device,\n"
26806 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
26807 "\n"
26808 msgstr ""
26809
26810 #. type: textblock
26811 #: ../src/guestfs-actions.pod:4717
26812 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
26813 msgstr ""
26814
26815 #. type: =head2
26816 #: ../src/guestfs-actions.pod:4721
26817 msgid "guestfs_mkmountpoint"
26818 msgstr ""
26819
26820 #. type: verbatim
26821 #: ../src/guestfs-actions.pod:4723
26822 #, no-wrap
26823 msgid ""
26824 " int\n"
26825 " guestfs_mkmountpoint (guestfs_h *g,\n"
26826 "                       const char *exemptpath);\n"
26827 "\n"
26828 msgstr ""
26829
26830 #. type: textblock
26831 #: ../src/guestfs-actions.pod:4727
26832 msgid ""
26833 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
26834 "that can be used to create extra mountpoints before mounting the first "
26835 "filesystem."
26836 msgstr ""
26837
26838 #. type: textblock
26839 #: ../src/guestfs-actions.pod:4751
26840 msgid ""
26841 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
26842 "may get unexpected errors if you try to mix these calls.  It is safest to "
26843 "manually unmount filesystems and remove mountpoints after use."
26844 msgstr ""
26845
26846 #. type: textblock
26847 #: ../src/guestfs-actions.pod:4755
26848 msgid ""
26849 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
26850 "first, so for this to work for manual mountpoints, you must ensure that the "
26851 "innermost mountpoints have the longest pathnames, as in the example code "
26852 "above."
26853 msgstr ""
26854
26855 #. type: textblock
26856 #: ../src/guestfs-actions.pod:4762
26857 msgid ""
26858 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
26859 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
26860 "can also trigger these issues."
26861 msgstr ""
26862
26863 #. type: textblock
26864 #: ../src/guestfs-actions.pod:4768 ../src/guestfs-actions.pod:5084
26865 #: ../src/guestfs-actions.pod:6094
26866 msgid "(Added in 1.0.62)"
26867 msgstr ""
26868
26869 #. type: =head2
26870 #: ../src/guestfs-actions.pod:4770
26871 msgid "guestfs_mknod"
26872 msgstr ""
26873
26874 #. type: verbatim
26875 #: ../src/guestfs-actions.pod:4772
26876 #, no-wrap
26877 msgid ""
26878 " int\n"
26879 " guestfs_mknod (guestfs_h *g,\n"
26880 "                int mode,\n"
26881 "                int devmajor,\n"
26882 "                int devminor,\n"
26883 "                const char *path);\n"
26884 "\n"
26885 msgstr ""
26886
26887 #. type: textblock
26888 #: ../src/guestfs-actions.pod:4787
26889 msgid ""
26890 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
26891 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
26892 "regular file).  These constants are available in the standard Linux header "
26893 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
26894 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
26895 "the appropriate constant for you."
26896 msgstr ""
26897
26898 #. type: =head2
26899 #: ../src/guestfs-actions.pod:4801
26900 msgid "guestfs_mknod_b"
26901 msgstr ""
26902
26903 #. type: verbatim
26904 #: ../src/guestfs-actions.pod:4803
26905 #, no-wrap
26906 msgid ""
26907 " int\n"
26908 " guestfs_mknod_b (guestfs_h *g,\n"
26909 "                  int mode,\n"
26910 "                  int devmajor,\n"
26911 "                  int devminor,\n"
26912 "                  const char *path);\n"
26913 "\n"
26914 msgstr ""
26915
26916 #. type: textblock
26917 #: ../src/guestfs-actions.pod:4810
26918 msgid ""
26919 "This call creates a block device node called C<path> with mode C<mode> and "
26920 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26921 "wrapper around C<guestfs_mknod>."
26922 msgstr ""
26923
26924 #. type: =head2
26925 #: ../src/guestfs-actions.pod:4820
26926 msgid "guestfs_mknod_c"
26927 msgstr ""
26928
26929 #. type: verbatim
26930 #: ../src/guestfs-actions.pod:4822
26931 #, no-wrap
26932 msgid ""
26933 " int\n"
26934 " guestfs_mknod_c (guestfs_h *g,\n"
26935 "                  int mode,\n"
26936 "                  int devmajor,\n"
26937 "                  int devminor,\n"
26938 "                  const char *path);\n"
26939 "\n"
26940 msgstr ""
26941
26942 #. type: textblock
26943 #: ../src/guestfs-actions.pod:4829
26944 msgid ""
26945 "This call creates a char device node called C<path> with mode C<mode> and "
26946 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26947 "wrapper around C<guestfs_mknod>."
26948 msgstr ""
26949
26950 #. type: =head2
26951 #: ../src/guestfs-actions.pod:4839
26952 msgid "guestfs_mkswap"
26953 msgstr ""
26954
26955 #. type: verbatim
26956 #: ../src/guestfs-actions.pod:4841
26957 #, no-wrap
26958 msgid ""
26959 " int\n"
26960 " guestfs_mkswap (guestfs_h *g,\n"
26961 "                 const char *device);\n"
26962 "\n"
26963 msgstr ""
26964
26965 #. type: =head2
26966 #: ../src/guestfs-actions.pod:4851
26967 msgid "guestfs_mkswap_L"
26968 msgstr ""
26969
26970 #. type: verbatim
26971 #: ../src/guestfs-actions.pod:4853
26972 #, no-wrap
26973 msgid ""
26974 " int\n"
26975 " guestfs_mkswap_L (guestfs_h *g,\n"
26976 "                   const char *label,\n"
26977 "                   const char *device);\n"
26978 "\n"
26979 msgstr ""
26980
26981 #. type: =head2
26982 #: ../src/guestfs-actions.pod:4868
26983 msgid "guestfs_mkswap_U"
26984 msgstr ""
26985
26986 #. type: verbatim
26987 #: ../src/guestfs-actions.pod:4870
26988 #, no-wrap
26989 msgid ""
26990 " int\n"
26991 " guestfs_mkswap_U (guestfs_h *g,\n"
26992 "                   const char *uuid,\n"
26993 "                   const char *device);\n"
26994 "\n"
26995 msgstr ""
26996
26997 #. type: =head2
26998 #: ../src/guestfs-actions.pod:4881
26999 msgid "guestfs_mkswap_file"
27000 msgstr ""
27001
27002 #. type: verbatim
27003 #: ../src/guestfs-actions.pod:4883
27004 #, no-wrap
27005 msgid ""
27006 " int\n"
27007 " guestfs_mkswap_file (guestfs_h *g,\n"
27008 "                      const char *path);\n"
27009 "\n"
27010 msgstr ""
27011
27012 #. type: textblock
27013 #: ../src/guestfs-actions.pod:4889
27014 msgid ""
27015 "This command just writes a swap file signature to an existing file.  To "
27016 "create the file itself, use something like C<guestfs_fallocate>."
27017 msgstr ""
27018
27019 #. type: =head2
27020 #: ../src/guestfs-actions.pod:4896
27021 msgid "guestfs_modprobe"
27022 msgstr ""
27023
27024 #. type: verbatim
27025 #: ../src/guestfs-actions.pod:4898
27026 #, no-wrap
27027 msgid ""
27028 " int\n"
27029 " guestfs_modprobe (guestfs_h *g,\n"
27030 "                   const char *modulename);\n"
27031 "\n"
27032 msgstr ""
27033
27034 #. type: =head2
27035 #: ../src/guestfs-actions.pod:4911
27036 msgid "guestfs_mount"
27037 msgstr ""
27038
27039 #. type: verbatim
27040 #: ../src/guestfs-actions.pod:4913
27041 #, no-wrap
27042 msgid ""
27043 " int\n"
27044 " guestfs_mount (guestfs_h *g,\n"
27045 "                const char *device,\n"
27046 "                const char *mountpoint);\n"
27047 "\n"
27048 msgstr ""
27049
27050 #. type: textblock
27051 #: ../src/guestfs-actions.pod:4932
27052 msgid ""
27053 "B<Important note:> When you use this call, the filesystem options C<sync> "
27054 "and C<noatime> are set implicitly.  This was originally done because we "
27055 "thought it would improve reliability, but it turns out that I<-o sync> has a "
27056 "very large negative performance impact and negligible effect on "
27057 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
27058 "in any code that needs performance, and instead use C<guestfs_mount_options> "
27059 "(use an empty string for the first parameter if you don't want any options)."
27060 msgstr ""
27061
27062 #. type: textblock
27063 #: ../src/guestfs-actions.pod:4944
27064 msgid ""
27065 "This function is deprecated.  In new code, use the L</guestfs_mount_options> "
27066 "call instead."
27067 msgstr ""
27068
27069 #. type: =head2
27070 #: ../src/guestfs-actions.pod:4953
27071 msgid "guestfs_mount_9p"
27072 msgstr ""
27073
27074 #. type: verbatim
27075 #: ../src/guestfs-actions.pod:4955
27076 #, no-wrap
27077 msgid ""
27078 " int\n"
27079 " guestfs_mount_9p (guestfs_h *g,\n"
27080 "                   const char *mounttag,\n"
27081 "                   const char *mountpoint,\n"
27082 "                   ...);\n"
27083 "\n"
27084 msgstr ""
27085
27086 #. type: verbatim
27087 #: ../src/guestfs-actions.pod:4966
27088 #, no-wrap
27089 msgid ""
27090 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
27091 "\n"
27092 msgstr ""
27093
27094 #. type: =head2
27095 #: ../src/guestfs-actions.pod:4979
27096 msgid "guestfs_mount_9p_va"
27097 msgstr ""
27098
27099 #. type: verbatim
27100 #: ../src/guestfs-actions.pod:4981
27101 #, no-wrap
27102 msgid ""
27103 " int\n"
27104 " guestfs_mount_9p_va (guestfs_h *g,\n"
27105 "                      const char *mounttag,\n"
27106 "                      const char *mountpoint,\n"
27107 "                      va_list args);\n"
27108 "\n"
27109 msgstr ""
27110
27111 #. type: textblock
27112 #: ../src/guestfs-actions.pod:4987
27113 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
27114 msgstr ""
27115
27116 #. type: =head2
27117 #: ../src/guestfs-actions.pod:4991
27118 msgid "guestfs_mount_9p_argv"
27119 msgstr ""
27120
27121 #. type: verbatim
27122 #: ../src/guestfs-actions.pod:4993
27123 #, no-wrap
27124 msgid ""
27125 " int\n"
27126 " guestfs_mount_9p_argv (guestfs_h *g,\n"
27127 "                        const char *mounttag,\n"
27128 "                        const char *mountpoint,\n"
27129 "                        const struct guestfs_mount_9p_argv *optargs);\n"
27130 "\n"
27131 msgstr ""
27132
27133 #. type: textblock
27134 #: ../src/guestfs-actions.pod:4999
27135 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
27136 msgstr ""
27137
27138 #. type: =head2
27139 #: ../src/guestfs-actions.pod:5003
27140 msgid "guestfs_mount_loop"
27141 msgstr ""
27142
27143 #. type: verbatim
27144 #: ../src/guestfs-actions.pod:5005
27145 #, no-wrap
27146 msgid ""
27147 " int\n"
27148 " guestfs_mount_loop (guestfs_h *g,\n"
27149 "                     const char *file,\n"
27150 "                     const char *mountpoint);\n"
27151 "\n"
27152 msgstr ""
27153
27154 #. type: =head2
27155 #: ../src/guestfs-actions.pod:5018
27156 msgid "guestfs_mount_options"
27157 msgstr ""
27158
27159 #. type: verbatim
27160 #: ../src/guestfs-actions.pod:5020
27161 #, no-wrap
27162 msgid ""
27163 " int\n"
27164 " guestfs_mount_options (guestfs_h *g,\n"
27165 "                        const char *options,\n"
27166 "                        const char *device,\n"
27167 "                        const char *mountpoint);\n"
27168 "\n"
27169 msgstr ""
27170
27171 #. type: textblock
27172 #: ../src/guestfs-actions.pod:5026
27173 msgid ""
27174 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27175 "the mount options as for the L<mount(8)> I<-o> flag."
27176 msgstr ""
27177
27178 #. type: textblock
27179 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5050
27180 #: ../src/guestfs-actions.pod:5067
27181 msgid "(Added in 1.0.10)"
27182 msgstr ""
27183
27184 #. type: =head2
27185 #: ../src/guestfs-actions.pod:5038
27186 msgid "guestfs_mount_ro"
27187 msgstr ""
27188
27189 #. type: verbatim
27190 #: ../src/guestfs-actions.pod:5040
27191 #, no-wrap
27192 msgid ""
27193 " int\n"
27194 " guestfs_mount_ro (guestfs_h *g,\n"
27195 "                   const char *device,\n"
27196 "                   const char *mountpoint);\n"
27197 "\n"
27198 msgstr ""
27199
27200 #. type: textblock
27201 #: ../src/guestfs-actions.pod:5045
27202 msgid ""
27203 "This is the same as the C<guestfs_mount> command, but it mounts the "
27204 "filesystem with the read-only (I<-o ro>) flag."
27205 msgstr ""
27206
27207 #. type: =head2
27208 #: ../src/guestfs-actions.pod:5052
27209 msgid "guestfs_mount_vfs"
27210 msgstr ""
27211
27212 #. type: verbatim
27213 #: ../src/guestfs-actions.pod:5054
27214 #, no-wrap
27215 msgid ""
27216 " int\n"
27217 " guestfs_mount_vfs (guestfs_h *g,\n"
27218 "                    const char *options,\n"
27219 "                    const char *vfstype,\n"
27220 "                    const char *device,\n"
27221 "                    const char *mountpoint);\n"
27222 "\n"
27223 msgstr ""
27224
27225 #. type: textblock
27226 #: ../src/guestfs-actions.pod:5061
27227 msgid ""
27228 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27229 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
27230 "t> flags."
27231 msgstr ""
27232
27233 #. type: =head2
27234 #: ../src/guestfs-actions.pod:5069
27235 msgid "guestfs_mountpoints"
27236 msgstr ""
27237
27238 #. type: verbatim
27239 #: ../src/guestfs-actions.pod:5071
27240 #, no-wrap
27241 msgid ""
27242 " char **\n"
27243 " guestfs_mountpoints (guestfs_h *g);\n"
27244 "\n"
27245 msgstr ""
27246
27247 #. type: textblock
27248 #: ../src/guestfs-actions.pod:5074
27249 msgid ""
27250 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
27251 "devices.  This one returns a hash table (map) of device name to directory "
27252 "where the device is mounted."
27253 msgstr ""
27254
27255 #. type: =head2
27256 #: ../src/guestfs-actions.pod:5086
27257 msgid "guestfs_mounts"
27258 msgstr ""
27259
27260 #. type: verbatim
27261 #: ../src/guestfs-actions.pod:5088
27262 #, no-wrap
27263 msgid ""
27264 " char **\n"
27265 " guestfs_mounts (guestfs_h *g);\n"
27266 "\n"
27267 msgstr ""
27268
27269 #. type: textblock
27270 #: ../src/guestfs-actions.pod:5096
27271 msgid "See also: C<guestfs_mountpoints>"
27272 msgstr ""
27273
27274 #. type: =head2
27275 #: ../src/guestfs-actions.pod:5104
27276 msgid "guestfs_mv"
27277 msgstr ""
27278
27279 #. type: verbatim
27280 #: ../src/guestfs-actions.pod:5106
27281 #, no-wrap
27282 msgid ""
27283 " int\n"
27284 " guestfs_mv (guestfs_h *g,\n"
27285 "             const char *src,\n"
27286 "             const char *dest);\n"
27287 "\n"
27288 msgstr ""
27289
27290 #. type: =head2
27291 #: ../src/guestfs-actions.pod:5118
27292 msgid "guestfs_ntfs_3g_probe"
27293 msgstr ""
27294
27295 #. type: verbatim
27296 #: ../src/guestfs-actions.pod:5120
27297 #, no-wrap
27298 msgid ""
27299 " int\n"
27300 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
27301 "                        int rw,\n"
27302 "                        const char *device);\n"
27303 "\n"
27304 msgstr ""
27305
27306 #. type: textblock
27307 #: ../src/guestfs-actions.pod:5139
27308 msgid "(Added in 1.0.43)"
27309 msgstr ""
27310
27311 #. type: =head2
27312 #: ../src/guestfs-actions.pod:5141
27313 msgid "guestfs_ntfsresize"
27314 msgstr ""
27315
27316 #. type: verbatim
27317 #: ../src/guestfs-actions.pod:5143
27318 #, no-wrap
27319 msgid ""
27320 " int\n"
27321 " guestfs_ntfsresize (guestfs_h *g,\n"
27322 "                     const char *device);\n"
27323 "\n"
27324 msgstr ""
27325
27326 #. type: textblock
27327 #: ../src/guestfs-actions.pod:5162 ../src/guestfs-actions.pod:5252
27328 msgid ""
27329 "This function is deprecated.  In new code, use the L</"
27330 "guestfs_ntfsresize_opts> call instead."
27331 msgstr ""
27332
27333 #. type: =head2
27334 #: ../src/guestfs-actions.pod:5171
27335 msgid "guestfs_ntfsresize_opts"
27336 msgstr ""
27337
27338 #. type: verbatim
27339 #: ../src/guestfs-actions.pod:5173
27340 #, no-wrap
27341 msgid ""
27342 " int\n"
27343 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
27344 "                          const char *device,\n"
27345 "                          ...);\n"
27346 "\n"
27347 msgstr ""
27348
27349 #. type: verbatim
27350 #: ../src/guestfs-actions.pod:5183
27351 #, no-wrap
27352 msgid ""
27353 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
27354 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
27355 "\n"
27356 msgstr ""
27357
27358 #. type: textblock
27359 #: ../src/guestfs-actions.pod:5203
27360 msgid ""
27361 "After the resize operation, the filesystem is always marked as requiring a "
27362 "consistency check (for safety).  You have to boot into Windows to perform "
27363 "this check and clear this condition.  If you I<don't> set the C<force> "
27364 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
27365 "times on a single filesystem without booting into Windows between each "
27366 "resize."
27367 msgstr ""
27368
27369 #. type: =head2
27370 #: ../src/guestfs-actions.pod:5218
27371 msgid "guestfs_ntfsresize_opts_va"
27372 msgstr ""
27373
27374 #. type: verbatim
27375 #: ../src/guestfs-actions.pod:5220
27376 #, no-wrap
27377 msgid ""
27378 " int\n"
27379 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
27380 "                             const char *device,\n"
27381 "                             va_list args);\n"
27382 "\n"
27383 msgstr ""
27384
27385 #. type: textblock
27386 #: ../src/guestfs-actions.pod:5225
27387 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
27388 msgstr ""
27389
27390 #. type: =head2
27391 #: ../src/guestfs-actions.pod:5229
27392 msgid "guestfs_ntfsresize_opts_argv"
27393 msgstr ""
27394
27395 #. type: verbatim
27396 #: ../src/guestfs-actions.pod:5231
27397 #, no-wrap
27398 msgid ""
27399 " int\n"
27400 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
27401 "                               const char *device,\n"
27402 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
27403 "\n"
27404 msgstr ""
27405
27406 #. type: textblock
27407 #: ../src/guestfs-actions.pod:5236
27408 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
27409 msgstr ""
27410
27411 #. type: =head2
27412 #: ../src/guestfs-actions.pod:5240
27413 msgid "guestfs_ntfsresize_size"
27414 msgstr ""
27415
27416 #. type: verbatim
27417 #: ../src/guestfs-actions.pod:5242
27418 #, no-wrap
27419 msgid ""
27420 " int\n"
27421 " guestfs_ntfsresize_size (guestfs_h *g,\n"
27422 "                          const char *device,\n"
27423 "                          int64_t size);\n"
27424 "\n"
27425 msgstr ""
27426
27427 #. type: textblock
27428 #: ../src/guestfs-actions.pod:5247
27429 msgid ""
27430 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
27431 "to specify the new size (in bytes) explicitly."
27432 msgstr ""
27433
27434 #. type: textblock
27435 #: ../src/guestfs-actions.pod:5259 ../src/guestfs-actions.pod:5701
27436 #: ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:6042
27437 #: ../src/guestfs-actions.pod:7665
27438 msgid "(Added in 1.3.14)"
27439 msgstr ""
27440
27441 #. type: =head2
27442 #: ../src/guestfs-actions.pod:5261
27443 msgid "guestfs_part_add"
27444 msgstr ""
27445
27446 #. type: verbatim
27447 #: ../src/guestfs-actions.pod:5263
27448 #, no-wrap
27449 msgid ""
27450 " int\n"
27451 " guestfs_part_add (guestfs_h *g,\n"
27452 "                   const char *device,\n"
27453 "                   const char *prlogex,\n"
27454 "                   int64_t startsect,\n"
27455 "                   int64_t endsect);\n"
27456 "\n"
27457 msgstr ""
27458
27459 #. type: textblock
27460 #: ../src/guestfs-actions.pod:5270
27461 msgid ""
27462 "This command adds a partition to C<device>.  If there is no partition table "
27463 "on the device, call C<guestfs_part_init> first."
27464 msgstr ""
27465
27466 #. type: textblock
27467 #: ../src/guestfs-actions.pod:5282
27468 msgid ""
27469 "Creating a partition which covers the whole disk is not so easy.  Use "
27470 "C<guestfs_part_disk> to do that."
27471 msgstr ""
27472
27473 #. type: textblock
27474 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5325
27475 #: ../src/guestfs-actions.pod:5378 ../src/guestfs-actions.pod:5462
27476 #: ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5519
27477 #: ../src/guestfs-actions.pod:5559
27478 msgid "(Added in 1.0.78)"
27479 msgstr ""
27480
27481 #. type: =head2
27482 #: ../src/guestfs-actions.pod:5289
27483 msgid "guestfs_part_del"
27484 msgstr ""
27485
27486 #. type: verbatim
27487 #: ../src/guestfs-actions.pod:5291
27488 #, no-wrap
27489 msgid ""
27490 " int\n"
27491 " guestfs_part_del (guestfs_h *g,\n"
27492 "                   const char *device,\n"
27493 "                   int partnum);\n"
27494 "\n"
27495 msgstr ""
27496
27497 #. type: =head2
27498 #: ../src/guestfs-actions.pod:5306
27499 msgid "guestfs_part_disk"
27500 msgstr ""
27501
27502 #. type: verbatim
27503 #: ../src/guestfs-actions.pod:5308
27504 #, no-wrap
27505 msgid ""
27506 " int\n"
27507 " guestfs_part_disk (guestfs_h *g,\n"
27508 "                    const char *device,\n"
27509 "                    const char *parttype);\n"
27510 "\n"
27511 msgstr ""
27512
27513 #. type: textblock
27514 #: ../src/guestfs-actions.pod:5313
27515 msgid ""
27516 "This command is simply a combination of C<guestfs_part_init> followed by "
27517 "C<guestfs_part_add> to create a single primary partition covering the whole "
27518 "disk."
27519 msgstr ""
27520
27521 #. type: textblock
27522 #: ../src/guestfs-actions.pod:5317
27523 msgid ""
27524 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27525 "possible values are described in C<guestfs_part_init>."
27526 msgstr ""
27527
27528 #. type: =head2
27529 #: ../src/guestfs-actions.pod:5327
27530 msgid "guestfs_part_get_bootable"
27531 msgstr ""
27532
27533 #. type: verbatim
27534 #: ../src/guestfs-actions.pod:5329
27535 #, no-wrap
27536 msgid ""
27537 " int\n"
27538 " guestfs_part_get_bootable (guestfs_h *g,\n"
27539 "                            const char *device,\n"
27540 "                            int partnum);\n"
27541 "\n"
27542 msgstr ""
27543
27544 #. type: textblock
27545 #: ../src/guestfs-actions.pod:5337
27546 msgid "See also C<guestfs_part_set_bootable>."
27547 msgstr ""
27548
27549 #. type: =head2
27550 #: ../src/guestfs-actions.pod:5343
27551 msgid "guestfs_part_get_mbr_id"
27552 msgstr ""
27553
27554 #. type: verbatim
27555 #: ../src/guestfs-actions.pod:5345
27556 #, no-wrap
27557 msgid ""
27558 " int\n"
27559 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
27560 "                          const char *device,\n"
27561 "                          int partnum);\n"
27562 "\n"
27563 msgstr ""
27564
27565 #. type: textblock
27566 #: ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:5535
27567 msgid ""
27568 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27569 "undefined results for other partition table types (see "
27570 "C<guestfs_part_get_parttype>)."
27571 msgstr ""
27572
27573 #. type: =head2
27574 #: ../src/guestfs-actions.pod:5361
27575 msgid "guestfs_part_get_parttype"
27576 msgstr ""
27577
27578 #. type: verbatim
27579 #: ../src/guestfs-actions.pod:5363
27580 #, no-wrap
27581 msgid ""
27582 " char *\n"
27583 " guestfs_part_get_parttype (guestfs_h *g,\n"
27584 "                            const char *device);\n"
27585 "\n"
27586 msgstr ""
27587
27588 #. type: textblock
27589 #: ../src/guestfs-actions.pod:5370
27590 msgid ""
27591 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27592 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27593 "possible, although unusual.  See C<guestfs_part_init> for a full list."
27594 msgstr ""
27595
27596 #. type: =head2
27597 #: ../src/guestfs-actions.pod:5380
27598 msgid "guestfs_part_init"
27599 msgstr ""
27600
27601 #. type: verbatim
27602 #: ../src/guestfs-actions.pod:5382
27603 #, no-wrap
27604 msgid ""
27605 " int\n"
27606 " guestfs_part_init (guestfs_h *g,\n"
27607 "                    const char *device,\n"
27608 "                    const char *parttype);\n"
27609 "\n"
27610 msgstr ""
27611
27612 #. type: textblock
27613 #: ../src/guestfs-actions.pod:5391
27614 msgid ""
27615 "Initially there are no partitions.  Following this, you should call "
27616 "C<guestfs_part_add> for each partition required."
27617 msgstr ""
27618
27619 #. type: =head2
27620 #: ../src/guestfs-actions.pod:5464
27621 msgid "guestfs_part_list"
27622 msgstr ""
27623
27624 #. type: verbatim
27625 #: ../src/guestfs-actions.pod:5466
27626 #, no-wrap
27627 msgid ""
27628 " struct guestfs_partition_list *\n"
27629 " guestfs_part_list (guestfs_h *g,\n"
27630 "                    const char *device);\n"
27631 "\n"
27632 msgstr ""
27633
27634 #. type: textblock
27635 #: ../src/guestfs-actions.pod:5483
27636 msgid ""
27637 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27638 "the device's sector size, see C<guestfs_blockdev_getss>."
27639 msgstr ""
27640
27641 #. type: textblock
27642 #: ../src/guestfs-actions.pod:5496
27643 msgid ""
27644 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
27645 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
27646 "use>."
27647 msgstr ""
27648
27649 #. type: =head2
27650 #: ../src/guestfs-actions.pod:5502
27651 msgid "guestfs_part_set_bootable"
27652 msgstr ""
27653
27654 #. type: verbatim
27655 #: ../src/guestfs-actions.pod:5504
27656 #, no-wrap
27657 msgid ""
27658 " int\n"
27659 " guestfs_part_set_bootable (guestfs_h *g,\n"
27660 "                            const char *device,\n"
27661 "                            int partnum,\n"
27662 "                            int bootable);\n"
27663 "\n"
27664 msgstr ""
27665
27666 #. type: =head2
27667 #: ../src/guestfs-actions.pod:5521
27668 msgid "guestfs_part_set_mbr_id"
27669 msgstr ""
27670
27671 #. type: verbatim
27672 #: ../src/guestfs-actions.pod:5523
27673 #, no-wrap
27674 msgid ""
27675 " int\n"
27676 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
27677 "                          const char *device,\n"
27678 "                          int partnum,\n"
27679 "                          int idbyte);\n"
27680 "\n"
27681 msgstr ""
27682
27683 #. type: =head2
27684 #: ../src/guestfs-actions.pod:5543
27685 msgid "guestfs_part_set_name"
27686 msgstr ""
27687
27688 #. type: verbatim
27689 #: ../src/guestfs-actions.pod:5545
27690 #, no-wrap
27691 msgid ""
27692 " int\n"
27693 " guestfs_part_set_name (guestfs_h *g,\n"
27694 "                        const char *device,\n"
27695 "                        int partnum,\n"
27696 "                        const char *name);\n"
27697 "\n"
27698 msgstr ""
27699
27700 #. type: =head2
27701 #: ../src/guestfs-actions.pod:5561
27702 msgid "guestfs_part_to_dev"
27703 msgstr ""
27704
27705 #. type: verbatim
27706 #: ../src/guestfs-actions.pod:5563
27707 #, no-wrap
27708 msgid ""
27709 " char *\n"
27710 " guestfs_part_to_dev (guestfs_h *g,\n"
27711 "                      const char *partition);\n"
27712 "\n"
27713 msgstr ""
27714
27715 #. type: textblock
27716 #: ../src/guestfs-actions.pod:5571
27717 msgid ""
27718 "The named partition must exist, for example as a string returned from "
27719 "C<guestfs_list_partitions>."
27720 msgstr ""
27721
27722 #. type: =head2
27723 #: ../src/guestfs-actions.pod:5579
27724 msgid "guestfs_ping_daemon"
27725 msgstr ""
27726
27727 #. type: verbatim
27728 #: ../src/guestfs-actions.pod:5581
27729 #, no-wrap
27730 msgid ""
27731 " int\n"
27732 " guestfs_ping_daemon (guestfs_h *g);\n"
27733 "\n"
27734 msgstr ""
27735
27736 #. type: =head2
27737 #: ../src/guestfs-actions.pod:5593
27738 msgid "guestfs_pread"
27739 msgstr ""
27740
27741 #. type: verbatim
27742 #: ../src/guestfs-actions.pod:5595
27743 #, no-wrap
27744 msgid ""
27745 " char *\n"
27746 " guestfs_pread (guestfs_h *g,\n"
27747 "                const char *path,\n"
27748 "                int count,\n"
27749 "                int64_t offset,\n"
27750 "                size_t *size_r);\n"
27751 "\n"
27752 msgstr ""
27753
27754 #. type: textblock
27755 #: ../src/guestfs-actions.pod:5608
27756 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
27757 msgstr ""
27758
27759 #. type: =head2
27760 #: ../src/guestfs-actions.pod:5619
27761 msgid "guestfs_pread_device"
27762 msgstr ""
27763
27764 #. type: verbatim
27765 #: ../src/guestfs-actions.pod:5621
27766 #, no-wrap
27767 msgid ""
27768 " char *\n"
27769 " guestfs_pread_device (guestfs_h *g,\n"
27770 "                       const char *device,\n"
27771 "                       int count,\n"
27772 "                       int64_t offset,\n"
27773 "                       size_t *size_r);\n"
27774 "\n"
27775 msgstr ""
27776
27777 #. type: textblock
27778 #: ../src/guestfs-actions.pod:5634
27779 msgid "See also C<guestfs_pread>."
27780 msgstr ""
27781
27782 #. type: textblock
27783 #: ../src/guestfs-actions.pod:5643
27784 msgid "(Added in 1.5.21)"
27785 msgstr ""
27786
27787 #. type: =head2
27788 #: ../src/guestfs-actions.pod:5645
27789 msgid "guestfs_pvcreate"
27790 msgstr ""
27791
27792 #. type: verbatim
27793 #: ../src/guestfs-actions.pod:5647
27794 #, no-wrap
27795 msgid ""
27796 " int\n"
27797 " guestfs_pvcreate (guestfs_h *g,\n"
27798 "                   const char *device);\n"
27799 "\n"
27800 msgstr ""
27801
27802 #. type: =head2
27803 #: ../src/guestfs-actions.pod:5659
27804 msgid "guestfs_pvremove"
27805 msgstr ""
27806
27807 #. type: verbatim
27808 #: ../src/guestfs-actions.pod:5661
27809 #, no-wrap
27810 msgid ""
27811 " int\n"
27812 " guestfs_pvremove (guestfs_h *g,\n"
27813 "                   const char *device);\n"
27814 "\n"
27815 msgstr ""
27816
27817 #. type: =head2
27818 #: ../src/guestfs-actions.pod:5676
27819 msgid "guestfs_pvresize"
27820 msgstr ""
27821
27822 #. type: verbatim
27823 #: ../src/guestfs-actions.pod:5678
27824 #, no-wrap
27825 msgid ""
27826 " int\n"
27827 " guestfs_pvresize (guestfs_h *g,\n"
27828 "                   const char *device);\n"
27829 "\n"
27830 msgstr ""
27831
27832 #. type: =head2
27833 #: ../src/guestfs-actions.pod:5689
27834 msgid "guestfs_pvresize_size"
27835 msgstr ""
27836
27837 #. type: verbatim
27838 #: ../src/guestfs-actions.pod:5691
27839 #, no-wrap
27840 msgid ""
27841 " int\n"
27842 " guestfs_pvresize_size (guestfs_h *g,\n"
27843 "                        const char *device,\n"
27844 "                        int64_t size);\n"
27845 "\n"
27846 msgstr ""
27847
27848 #. type: textblock
27849 #: ../src/guestfs-actions.pod:5696
27850 msgid ""
27851 "This command is the same as C<guestfs_pvresize> except that it allows you to "
27852 "specify the new size (in bytes) explicitly."
27853 msgstr ""
27854
27855 #. type: =head2
27856 #: ../src/guestfs-actions.pod:5703
27857 msgid "guestfs_pvs"
27858 msgstr ""
27859
27860 #. type: verbatim
27861 #: ../src/guestfs-actions.pod:5705
27862 #, no-wrap
27863 msgid ""
27864 " char **\n"
27865 " guestfs_pvs (guestfs_h *g);\n"
27866 "\n"
27867 msgstr ""
27868
27869 #. type: textblock
27870 #: ../src/guestfs-actions.pod:5714
27871 msgid "See also C<guestfs_pvs_full>."
27872 msgstr ""
27873
27874 #. type: =head2
27875 #: ../src/guestfs-actions.pod:5722
27876 msgid "guestfs_pvs_full"
27877 msgstr ""
27878
27879 #. type: verbatim
27880 #: ../src/guestfs-actions.pod:5724
27881 #, no-wrap
27882 msgid ""
27883 " struct guestfs_lvm_pv_list *\n"
27884 " guestfs_pvs_full (guestfs_h *g);\n"
27885 "\n"
27886 msgstr ""
27887
27888 #. type: textblock
27889 #: ../src/guestfs-actions.pod:5730
27890 msgid ""
27891 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
27892 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
27893 msgstr ""
27894
27895 #. type: =head2
27896 #: ../src/guestfs-actions.pod:5736
27897 msgid "guestfs_pvuuid"
27898 msgstr ""
27899
27900 #. type: verbatim
27901 #: ../src/guestfs-actions.pod:5738
27902 #, no-wrap
27903 msgid ""
27904 " char *\n"
27905 " guestfs_pvuuid (guestfs_h *g,\n"
27906 "                 const char *device);\n"
27907 "\n"
27908 msgstr ""
27909
27910 #. type: =head2
27911 #: ../src/guestfs-actions.pod:5749
27912 msgid "guestfs_pwrite"
27913 msgstr ""
27914
27915 #. type: verbatim
27916 #: ../src/guestfs-actions.pod:5751
27917 #, no-wrap
27918 msgid ""
27919 " int\n"
27920 " guestfs_pwrite (guestfs_h *g,\n"
27921 "                 const char *path,\n"
27922 "                 const char *content,\n"
27923 "                 size_t content_size,\n"
27924 "                 int64_t offset);\n"
27925 "\n"
27926 msgstr ""
27927
27928 #. type: textblock
27929 #: ../src/guestfs-actions.pod:5767
27930 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
27931 msgstr ""
27932
27933 #. type: =head2
27934 #: ../src/guestfs-actions.pod:5776
27935 msgid "guestfs_pwrite_device"
27936 msgstr ""
27937
27938 #. type: verbatim
27939 #: ../src/guestfs-actions.pod:5778
27940 #, no-wrap
27941 msgid ""
27942 " int\n"
27943 " guestfs_pwrite_device (guestfs_h *g,\n"
27944 "                        const char *device,\n"
27945 "                        const char *content,\n"
27946 "                        size_t content_size,\n"
27947 "                        int64_t offset);\n"
27948 "\n"
27949 msgstr ""
27950
27951 #. type: textblock
27952 #: ../src/guestfs-actions.pod:5793
27953 msgid "See also C<guestfs_pwrite>."
27954 msgstr ""
27955
27956 #. type: textblock
27957 #: ../src/guestfs-actions.pod:5800
27958 msgid "(Added in 1.5.20)"
27959 msgstr ""
27960
27961 #. type: =head2
27962 #: ../src/guestfs-actions.pod:5802
27963 msgid "guestfs_read_file"
27964 msgstr ""
27965
27966 #. type: verbatim
27967 #: ../src/guestfs-actions.pod:5804
27968 #, no-wrap
27969 msgid ""
27970 " char *\n"
27971 " guestfs_read_file (guestfs_h *g,\n"
27972 "                    const char *path,\n"
27973 "                    size_t *size_r);\n"
27974 "\n"
27975 msgstr ""
27976
27977 #. type: textblock
27978 #: ../src/guestfs-actions.pod:5812
27979 msgid ""
27980 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
27981 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
27982 "function is limited in the total size of file that can be handled."
27983 msgstr ""
27984
27985 #. type: textblock
27986 #: ../src/guestfs-actions.pod:5824
27987 msgid "(Added in 1.0.63)"
27988 msgstr ""
27989
27990 #. type: =head2
27991 #: ../src/guestfs-actions.pod:5826
27992 msgid "guestfs_read_lines"
27993 msgstr ""
27994
27995 #. type: verbatim
27996 #: ../src/guestfs-actions.pod:5828
27997 #, no-wrap
27998 msgid ""
27999 " char **\n"
28000 " guestfs_read_lines (guestfs_h *g,\n"
28001 "                     const char *path);\n"
28002 "\n"
28003 msgstr ""
28004
28005 #. type: textblock
28006 #: ../src/guestfs-actions.pod:5837
28007 msgid ""
28008 "Note that this function cannot correctly handle binary files (specifically, "
28009 "files containing C<\\0> character which is treated as end of line).  For "
28010 "those you need to use the C<guestfs_read_file> function which has a more "
28011 "complex interface."
28012 msgstr ""
28013
28014 #. type: =head2
28015 #: ../src/guestfs-actions.pod:5848
28016 msgid "guestfs_readdir"
28017 msgstr ""
28018
28019 #. type: verbatim
28020 #: ../src/guestfs-actions.pod:5850
28021 #, no-wrap
28022 msgid ""
28023 " struct guestfs_dirent_list *\n"
28024 " guestfs_readdir (guestfs_h *g,\n"
28025 "                  const char *dir);\n"
28026 "\n"
28027 msgstr ""
28028
28029 #. type: textblock
28030 #: ../src/guestfs-actions.pod:5904
28031 msgid ""
28032 "This function is primarily intended for use by programs.  To get a simple "
28033 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
28034 "consumption, use C<guestfs_ll>."
28035 msgstr ""
28036
28037 #. type: textblock
28038 #: ../src/guestfs-actions.pod:5908
28039 msgid ""
28040 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
28041 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
28042 msgstr ""
28043
28044 #. type: =head2
28045 #: ../src/guestfs-actions.pod:5914
28046 msgid "guestfs_readlink"
28047 msgstr ""
28048
28049 #. type: verbatim
28050 #: ../src/guestfs-actions.pod:5916
28051 #, no-wrap
28052 msgid ""
28053 " char *\n"
28054 " guestfs_readlink (guestfs_h *g,\n"
28055 "                   const char *path);\n"
28056 "\n"
28057 msgstr ""
28058
28059 #. type: =head2
28060 #: ../src/guestfs-actions.pod:5927
28061 msgid "guestfs_readlinklist"
28062 msgstr ""
28063
28064 #. type: verbatim
28065 #: ../src/guestfs-actions.pod:5929
28066 #, no-wrap
28067 msgid ""
28068 " char **\n"
28069 " guestfs_readlinklist (guestfs_h *g,\n"
28070 "                       const char *path,\n"
28071 "                       char *const *names);\n"
28072 "\n"
28073 msgstr ""
28074
28075 #. type: =head2
28076 #: ../src/guestfs-actions.pod:5962
28077 msgid "guestfs_realpath"
28078 msgstr ""
28079
28080 #. type: verbatim
28081 #: ../src/guestfs-actions.pod:5964
28082 #, no-wrap
28083 msgid ""
28084 " char *\n"
28085 " guestfs_realpath (guestfs_h *g,\n"
28086 "                   const char *path);\n"
28087 "\n"
28088 msgstr ""
28089
28090 #. type: =head2
28091 #: ../src/guestfs-actions.pod:5976
28092 msgid "guestfs_removexattr"
28093 msgstr ""
28094
28095 #. type: verbatim
28096 #: ../src/guestfs-actions.pod:5978
28097 #, no-wrap
28098 msgid ""
28099 " int\n"
28100 " guestfs_removexattr (guestfs_h *g,\n"
28101 "                      const char *xattr,\n"
28102 "                      const char *path);\n"
28103 "\n"
28104 msgstr ""
28105
28106 #. type: textblock
28107 #: ../src/guestfs-actions.pod:5986
28108 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
28109 msgstr ""
28110
28111 #. type: =head2
28112 #: ../src/guestfs-actions.pod:5992
28113 msgid "guestfs_resize2fs"
28114 msgstr ""
28115
28116 #. type: verbatim
28117 #: ../src/guestfs-actions.pod:5994
28118 #, no-wrap
28119 msgid ""
28120 " int\n"
28121 " guestfs_resize2fs (guestfs_h *g,\n"
28122 "                    const char *device);\n"
28123 "\n"
28124 msgstr ""
28125
28126 #. type: textblock
28127 #: ../src/guestfs-actions.pod:6001
28128 msgid ""
28129 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
28130 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
28131 "sometimes gives an error about this and sometimes not.  In any case, it is "
28132 "always safe to call C<guestfs_e2fsck_f> before calling this function."
28133 msgstr ""
28134
28135 #. type: =head2
28136 #: ../src/guestfs-actions.pod:6011
28137 msgid "guestfs_resize2fs_M"
28138 msgstr ""
28139
28140 #. type: verbatim
28141 #: ../src/guestfs-actions.pod:6013
28142 #, no-wrap
28143 msgid ""
28144 " int\n"
28145 " guestfs_resize2fs_M (guestfs_h *g,\n"
28146 "                      const char *device);\n"
28147 "\n"
28148 msgstr ""
28149
28150 #. type: textblock
28151 #: ../src/guestfs-actions.pod:6017
28152 msgid ""
28153 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
28154 "resized to its minimum size.  This works like the I<-M> option to the "
28155 "C<resize2fs> command."
28156 msgstr ""
28157
28158 #. type: textblock
28159 #: ../src/guestfs-actions.pod:6021
28160 msgid ""
28161 "To get the resulting size of the filesystem you should call "
28162 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
28163 "These two numbers, multiplied together, give the resulting size of the "
28164 "minimal filesystem in bytes."
28165 msgstr ""
28166
28167 #. type: =head2
28168 #: ../src/guestfs-actions.pod:6030
28169 msgid "guestfs_resize2fs_size"
28170 msgstr ""
28171
28172 #. type: verbatim
28173 #: ../src/guestfs-actions.pod:6032
28174 #, no-wrap
28175 msgid ""
28176 " int\n"
28177 " guestfs_resize2fs_size (guestfs_h *g,\n"
28178 "                         const char *device,\n"
28179 "                         int64_t size);\n"
28180 "\n"
28181 msgstr ""
28182
28183 #. type: textblock
28184 #: ../src/guestfs-actions.pod:6037
28185 msgid ""
28186 "This command is the same as C<guestfs_resize2fs> except that it allows you "
28187 "to specify the new size (in bytes) explicitly."
28188 msgstr ""
28189
28190 #. type: =head2
28191 #: ../src/guestfs-actions.pod:6044
28192 msgid "guestfs_rm"
28193 msgstr ""
28194
28195 #. type: verbatim
28196 #: ../src/guestfs-actions.pod:6046
28197 #, no-wrap
28198 msgid ""
28199 " int\n"
28200 " guestfs_rm (guestfs_h *g,\n"
28201 "             const char *path);\n"
28202 "\n"
28203 msgstr ""
28204
28205 #. type: =head2
28206 #: ../src/guestfs-actions.pod:6056
28207 msgid "guestfs_rm_rf"
28208 msgstr ""
28209
28210 #. type: verbatim
28211 #: ../src/guestfs-actions.pod:6058
28212 #, no-wrap
28213 msgid ""
28214 " int\n"
28215 " guestfs_rm_rf (guestfs_h *g,\n"
28216 "                const char *path);\n"
28217 "\n"
28218 msgstr ""
28219
28220 #. type: =head2
28221 #: ../src/guestfs-actions.pod:6070
28222 msgid "guestfs_rmdir"
28223 msgstr ""
28224
28225 #. type: verbatim
28226 #: ../src/guestfs-actions.pod:6072
28227 #, no-wrap
28228 msgid ""
28229 " int\n"
28230 " guestfs_rmdir (guestfs_h *g,\n"
28231 "                const char *path);\n"
28232 "\n"
28233 msgstr ""
28234
28235 #. type: =head2
28236 #: ../src/guestfs-actions.pod:6082
28237 msgid "guestfs_rmmountpoint"
28238 msgstr ""
28239
28240 #. type: verbatim
28241 #: ../src/guestfs-actions.pod:6084
28242 #, no-wrap
28243 msgid ""
28244 " int\n"
28245 " guestfs_rmmountpoint (guestfs_h *g,\n"
28246 "                       const char *exemptpath);\n"
28247 "\n"
28248 msgstr ""
28249
28250 #. type: textblock
28251 #: ../src/guestfs-actions.pod:6088
28252 msgid ""
28253 "This calls removes a mountpoint that was previously created with "
28254 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
28255 msgstr ""
28256
28257 #. type: =head2
28258 #: ../src/guestfs-actions.pod:6096
28259 msgid "guestfs_scrub_device"
28260 msgstr ""
28261
28262 #. type: verbatim
28263 #: ../src/guestfs-actions.pod:6098
28264 #, no-wrap
28265 msgid ""
28266 " int\n"
28267 " guestfs_scrub_device (guestfs_h *g,\n"
28268 "                       const char *device);\n"
28269 "\n"
28270 msgstr ""
28271
28272 #. type: textblock
28273 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6131
28274 #: ../src/guestfs-actions.pod:6150
28275 msgid "(Added in 1.0.52)"
28276 msgstr ""
28277
28278 #. type: =head2
28279 #: ../src/guestfs-actions.pod:6115
28280 msgid "guestfs_scrub_file"
28281 msgstr ""
28282
28283 #. type: verbatim
28284 #: ../src/guestfs-actions.pod:6117
28285 #, no-wrap
28286 msgid ""
28287 " int\n"
28288 " guestfs_scrub_file (guestfs_h *g,\n"
28289 "                     const char *file);\n"
28290 "\n"
28291 msgstr ""
28292
28293 #. type: =head2
28294 #: ../src/guestfs-actions.pod:6133
28295 msgid "guestfs_scrub_freespace"
28296 msgstr ""
28297
28298 #. type: verbatim
28299 #: ../src/guestfs-actions.pod:6135
28300 #, no-wrap
28301 msgid ""
28302 " int\n"
28303 " guestfs_scrub_freespace (guestfs_h *g,\n"
28304 "                          const char *dir);\n"
28305 "\n"
28306 msgstr ""
28307
28308 #. type: textblock
28309 #: ../src/guestfs-actions.pod:6139
28310 msgid ""
28311 "This command creates the directory C<dir> and then fills it with files until "
28312 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
28313 "and deletes them.  The intention is to scrub any free space on the partition "
28314 "containing C<dir>."
28315 msgstr ""
28316
28317 #. type: =head2
28318 #: ../src/guestfs-actions.pod:6152
28319 msgid "guestfs_set_append"
28320 msgstr ""
28321
28322 #. type: verbatim
28323 #: ../src/guestfs-actions.pod:6154
28324 #, no-wrap
28325 msgid ""
28326 " int\n"
28327 " guestfs_set_append (guestfs_h *g,\n"
28328 "                     const char *append);\n"
28329 "\n"
28330 msgstr ""
28331
28332 #. type: =head2
28333 #: ../src/guestfs-actions.pod:6171
28334 msgid "guestfs_set_attach_method"
28335 msgstr ""
28336
28337 #. type: verbatim
28338 #: ../src/guestfs-actions.pod:6173
28339 #, no-wrap
28340 msgid ""
28341 " int\n"
28342 " guestfs_set_attach_method (guestfs_h *g,\n"
28343 "                            const char *attachmethod);\n"
28344 "\n"
28345 msgstr ""
28346
28347 #. type: =head2
28348 #: ../src/guestfs-actions.pod:6201
28349 msgid "guestfs_set_autosync"
28350 msgstr ""
28351
28352 #. type: verbatim
28353 #: ../src/guestfs-actions.pod:6203
28354 #, no-wrap
28355 msgid ""
28356 " int\n"
28357 " guestfs_set_autosync (guestfs_h *g,\n"
28358 "                       int autosync);\n"
28359 "\n"
28360 msgstr ""
28361
28362 #. type: =head2
28363 #: ../src/guestfs-actions.pod:6219
28364 msgid "guestfs_set_direct"
28365 msgstr ""
28366
28367 #. type: verbatim
28368 #: ../src/guestfs-actions.pod:6221
28369 #, no-wrap
28370 msgid ""
28371 " int\n"
28372 " guestfs_set_direct (guestfs_h *g,\n"
28373 "                     int direct);\n"
28374 "\n"
28375 msgstr ""
28376
28377 #. type: textblock
28378 #: ../src/guestfs-actions.pod:6229
28379 msgid ""
28380 "One consequence of this is that log messages aren't caught by the library "
28381 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
28382 "stdout."
28383 msgstr ""
28384
28385 #. type: =head2
28386 #: ../src/guestfs-actions.pod:6242
28387 msgid "guestfs_set_e2label"
28388 msgstr ""
28389
28390 #. type: verbatim
28391 #: ../src/guestfs-actions.pod:6244
28392 #, no-wrap
28393 msgid ""
28394 " int\n"
28395 " guestfs_set_e2label (guestfs_h *g,\n"
28396 "                      const char *device,\n"
28397 "                      const char *label);\n"
28398 "\n"
28399 msgstr ""
28400
28401 #. type: textblock
28402 #: ../src/guestfs-actions.pod:6253
28403 msgid ""
28404 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
28405 "the existing label on a filesystem."
28406 msgstr ""
28407
28408 #. type: =head2
28409 #: ../src/guestfs-actions.pod:6260
28410 msgid "guestfs_set_e2uuid"
28411 msgstr ""
28412
28413 #. type: verbatim
28414 #: ../src/guestfs-actions.pod:6262
28415 #, no-wrap
28416 msgid ""
28417 " int\n"
28418 " guestfs_set_e2uuid (guestfs_h *g,\n"
28419 "                     const char *device,\n"
28420 "                     const char *uuid);\n"
28421 "\n"
28422 msgstr ""
28423
28424 #. type: textblock
28425 #: ../src/guestfs-actions.pod:6272
28426 msgid ""
28427 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
28428 "the existing UUID of a filesystem."
28429 msgstr ""
28430
28431 #. type: =head2
28432 #: ../src/guestfs-actions.pod:6279
28433 msgid "guestfs_set_memsize"
28434 msgstr ""
28435
28436 #. type: verbatim
28437 #: ../src/guestfs-actions.pod:6281
28438 #, no-wrap
28439 msgid ""
28440 " int\n"
28441 " guestfs_set_memsize (guestfs_h *g,\n"
28442 "                      int memsize);\n"
28443 "\n"
28444 msgstr ""
28445
28446 #. type: textblock
28447 #: ../src/guestfs-actions.pod:6285
28448 msgid ""
28449 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28450 "This only has any effect if called before C<guestfs_launch>."
28451 msgstr ""
28452
28453 #. type: =head2
28454 #: ../src/guestfs-actions.pod:6300
28455 msgid "guestfs_set_network"
28456 msgstr ""
28457
28458 #. type: verbatim
28459 #: ../src/guestfs-actions.pod:6302
28460 #, no-wrap
28461 msgid ""
28462 " int\n"
28463 " guestfs_set_network (guestfs_h *g,\n"
28464 "                      int network);\n"
28465 "\n"
28466 msgstr ""
28467
28468 #. type: textblock
28469 #: ../src/guestfs-actions.pod:6312
28470 msgid ""
28471 "You must call this before calling C<guestfs_launch>, otherwise it has no "
28472 "effect."
28473 msgstr ""
28474
28475 #. type: =head2
28476 #: ../src/guestfs-actions.pod:6319
28477 msgid "guestfs_set_path"
28478 msgstr ""
28479
28480 #. type: verbatim
28481 #: ../src/guestfs-actions.pod:6321
28482 #, no-wrap
28483 msgid ""
28484 " int\n"
28485 " guestfs_set_path (guestfs_h *g,\n"
28486 "                   const char *searchpath);\n"
28487 "\n"
28488 msgstr ""
28489
28490 #. type: =head2
28491 #: ../src/guestfs-actions.pod:6336
28492 msgid "guestfs_set_pgroup"
28493 msgstr ""
28494
28495 #. type: verbatim
28496 #: ../src/guestfs-actions.pod:6338
28497 #, no-wrap
28498 msgid ""
28499 " int\n"
28500 " guestfs_set_pgroup (guestfs_h *g,\n"
28501 "                     int pgroup);\n"
28502 "\n"
28503 msgstr ""
28504
28505 #. type: =head2
28506 #: ../src/guestfs-actions.pod:6355
28507 msgid "guestfs_set_qemu"
28508 msgstr ""
28509
28510 #. type: verbatim
28511 #: ../src/guestfs-actions.pod:6357
28512 #, no-wrap
28513 msgid ""
28514 " int\n"
28515 " guestfs_set_qemu (guestfs_h *g,\n"
28516 "                   const char *qemu);\n"
28517 "\n"
28518 msgstr ""
28519
28520 #. type: =head2
28521 #: ../src/guestfs-actions.pod:6383
28522 msgid "guestfs_set_recovery_proc"
28523 msgstr ""
28524
28525 #. type: verbatim
28526 #: ../src/guestfs-actions.pod:6385
28527 #, no-wrap
28528 msgid ""
28529 " int\n"
28530 " guestfs_set_recovery_proc (guestfs_h *g,\n"
28531 "                            int recoveryproc);\n"
28532 "\n"
28533 msgstr ""
28534
28535 #. type: textblock
28536 #: ../src/guestfs-actions.pod:6389
28537 msgid ""
28538 "If this is called with the parameter C<false> then C<guestfs_launch> does "
28539 "not create a recovery process.  The purpose of the recovery process is to "
28540 "stop runaway qemu processes in the case where the main program aborts "
28541 "abruptly."
28542 msgstr ""
28543
28544 #. type: textblock
28545 #: ../src/guestfs-actions.pod:6394
28546 msgid ""
28547 "This only has any effect if called before C<guestfs_launch>, and the default "
28548 "is true."
28549 msgstr ""
28550
28551 #. type: =head2
28552 #: ../src/guestfs-actions.pod:6407
28553 msgid "guestfs_set_selinux"
28554 msgstr ""
28555
28556 #. type: verbatim
28557 #: ../src/guestfs-actions.pod:6409
28558 #, no-wrap
28559 msgid ""
28560 " int\n"
28561 " guestfs_set_selinux (guestfs_h *g,\n"
28562 "                      int selinux);\n"
28563 "\n"
28564 msgstr ""
28565
28566 #. type: =head2
28567 #: ../src/guestfs-actions.pod:6426
28568 msgid "guestfs_set_trace"
28569 msgstr ""
28570
28571 #. type: verbatim
28572 #: ../src/guestfs-actions.pod:6428
28573 #, no-wrap
28574 msgid ""
28575 " int\n"
28576 " guestfs_set_trace (guestfs_h *g,\n"
28577 "                    int trace);\n"
28578 "\n"
28579 msgstr ""
28580
28581 #. type: textblock
28582 #: ../src/guestfs-actions.pod:6442
28583 msgid ""
28584 "Trace messages are normally sent to C<stderr>, unless you register a "
28585 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28586 msgstr ""
28587
28588 #. type: =head2
28589 #: ../src/guestfs-actions.pod:6450
28590 msgid "guestfs_set_verbose"
28591 msgstr ""
28592
28593 #. type: verbatim
28594 #: ../src/guestfs-actions.pod:6452
28595 #, no-wrap
28596 msgid ""
28597 " int\n"
28598 " guestfs_set_verbose (guestfs_h *g,\n"
28599 "                      int verbose);\n"
28600 "\n"
28601 msgstr ""
28602
28603 #. type: textblock
28604 #: ../src/guestfs-actions.pod:6461
28605 msgid ""
28606 "Verbose messages are normally sent to C<stderr>, unless you register a "
28607 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28608 msgstr ""
28609
28610 #. type: =head2
28611 #: ../src/guestfs-actions.pod:6469
28612 msgid "guestfs_setcon"
28613 msgstr ""
28614
28615 #. type: verbatim
28616 #: ../src/guestfs-actions.pod:6471
28617 #, no-wrap
28618 msgid ""
28619 " int\n"
28620 " guestfs_setcon (guestfs_h *g,\n"
28621 "                 const char *context);\n"
28622 "\n"
28623 msgstr ""
28624
28625 #. type: =head2
28626 #: ../src/guestfs-actions.pod:6484
28627 msgid "guestfs_setxattr"
28628 msgstr ""
28629
28630 #. type: verbatim
28631 #: ../src/guestfs-actions.pod:6486
28632 #, no-wrap
28633 msgid ""
28634 " int\n"
28635 " guestfs_setxattr (guestfs_h *g,\n"
28636 "                   const char *xattr,\n"
28637 "                   const char *val,\n"
28638 "                   int vallen,\n"
28639 "                   const char *path);\n"
28640 "\n"
28641 msgstr ""
28642
28643 #. type: textblock
28644 #: ../src/guestfs-actions.pod:6497
28645 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
28646 msgstr ""
28647
28648 #. type: =head2
28649 #: ../src/guestfs-actions.pod:6503
28650 msgid "guestfs_sfdisk"
28651 msgstr ""
28652
28653 #. type: verbatim
28654 #: ../src/guestfs-actions.pod:6505
28655 #, no-wrap
28656 msgid ""
28657 " int\n"
28658 " guestfs_sfdisk (guestfs_h *g,\n"
28659 "                 const char *device,\n"
28660 "                 int cyls,\n"
28661 "                 int heads,\n"
28662 "                 int sectors,\n"
28663 "                 char *const *lines);\n"
28664 "\n"
28665 msgstr ""
28666
28667 #. type: textblock
28668 #: ../src/guestfs-actions.pod:6533
28669 msgid ""
28670 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
28671 msgstr ""
28672
28673 #. type: textblock
28674 #: ../src/guestfs-actions.pod:6541 ../src/guestfs-actions.pod:6571
28675 #: ../src/guestfs-actions.pod:6604
28676 msgid ""
28677 "This function is deprecated.  In new code, use the L</guestfs_part_add> call "
28678 "instead."
28679 msgstr ""
28680
28681 #. type: =head2
28682 #: ../src/guestfs-actions.pod:6550
28683 msgid "guestfs_sfdiskM"
28684 msgstr ""
28685
28686 #. type: verbatim
28687 #: ../src/guestfs-actions.pod:6552
28688 #, no-wrap
28689 msgid ""
28690 " int\n"
28691 " guestfs_sfdiskM (guestfs_h *g,\n"
28692 "                  const char *device,\n"
28693 "                  char *const *lines);\n"
28694 "\n"
28695 msgstr ""
28696
28697 #. type: textblock
28698 #: ../src/guestfs-actions.pod:6557
28699 msgid ""
28700 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
28701 "partition sizes are specified in megabytes only (rounded to the nearest "
28702 "cylinder) and you don't need to specify the cyls, heads and sectors "
28703 "parameters which were rarely if ever used anyway."
28704 msgstr ""
28705
28706 #. type: textblock
28707 #: ../src/guestfs-actions.pod:6563
28708 msgid ""
28709 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
28710 "C<guestfs_part_disk>"
28711 msgstr ""
28712
28713 #. type: =head2
28714 #: ../src/guestfs-actions.pod:6580
28715 msgid "guestfs_sfdisk_N"
28716 msgstr ""
28717
28718 #. type: verbatim
28719 #: ../src/guestfs-actions.pod:6582
28720 #, no-wrap
28721 msgid ""
28722 " int\n"
28723 " guestfs_sfdisk_N (guestfs_h *g,\n"
28724 "                   const char *device,\n"
28725 "                   int partnum,\n"
28726 "                   int cyls,\n"
28727 "                   int heads,\n"
28728 "                   int sectors,\n"
28729 "                   const char *line);\n"
28730 "\n"
28731 msgstr ""
28732
28733 #. type: textblock
28734 #: ../src/guestfs-actions.pod:6594
28735 msgid ""
28736 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
28737 "for the cyls/heads/sectors parameters."
28738 msgstr ""
28739
28740 #. type: textblock
28741 #: ../src/guestfs-actions.pod:6597
28742 msgid "See also: C<guestfs_part_add>"
28743 msgstr ""
28744
28745 #. type: =head2
28746 #: ../src/guestfs-actions.pod:6613
28747 msgid "guestfs_sfdisk_disk_geometry"
28748 msgstr ""
28749
28750 #. type: verbatim
28751 #: ../src/guestfs-actions.pod:6615
28752 #, no-wrap
28753 msgid ""
28754 " char *\n"
28755 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
28756 "                               const char *device);\n"
28757 "\n"
28758 msgstr ""
28759
28760 #. type: textblock
28761 #: ../src/guestfs-actions.pod:6619
28762 msgid ""
28763 "This displays the disk geometry of C<device> read from the partition table.  "
28764 "Especially in the case where the underlying block device has been resized, "
28765 "this can be different from the kernel's idea of the geometry (see "
28766 "C<guestfs_sfdisk_kernel_geometry>)."
28767 msgstr ""
28768
28769 #. type: =head2
28770 #: ../src/guestfs-actions.pod:6632
28771 msgid "guestfs_sfdisk_kernel_geometry"
28772 msgstr ""
28773
28774 #. type: verbatim
28775 #: ../src/guestfs-actions.pod:6634
28776 #, no-wrap
28777 msgid ""
28778 " char *\n"
28779 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
28780 "                                 const char *device);\n"
28781 "\n"
28782 msgstr ""
28783
28784 #. type: =head2
28785 #: ../src/guestfs-actions.pod:6648
28786 msgid "guestfs_sfdisk_l"
28787 msgstr ""
28788
28789 #. type: verbatim
28790 #: ../src/guestfs-actions.pod:6650
28791 #, no-wrap
28792 msgid ""
28793 " char *\n"
28794 " guestfs_sfdisk_l (guestfs_h *g,\n"
28795 "                   const char *device);\n"
28796 "\n"
28797 msgstr ""
28798
28799 #. type: textblock
28800 #: ../src/guestfs-actions.pod:6658
28801 msgid "See also: C<guestfs_part_list>"
28802 msgstr ""
28803
28804 #. type: textblock
28805 #: ../src/guestfs-actions.pod:6663
28806 msgid ""
28807 "This function is deprecated.  In new code, use the L</guestfs_part_list> "
28808 "call instead."
28809 msgstr ""
28810
28811 #. type: =head2
28812 #: ../src/guestfs-actions.pod:6672
28813 msgid "guestfs_sh"
28814 msgstr ""
28815
28816 #. type: verbatim
28817 #: ../src/guestfs-actions.pod:6674
28818 #, no-wrap
28819 msgid ""
28820 " char *\n"
28821 " guestfs_sh (guestfs_h *g,\n"
28822 "             const char *command);\n"
28823 "\n"
28824 msgstr ""
28825
28826 #. type: textblock
28827 #: ../src/guestfs-actions.pod:6681
28828 msgid "This is like C<guestfs_command>, but passes the command to:"
28829 msgstr ""
28830
28831 #. type: textblock
28832 #: ../src/guestfs-actions.pod:6689
28833 msgid "All the provisos about C<guestfs_command> apply to this call."
28834 msgstr ""
28835
28836 #. type: =head2
28837 #: ../src/guestfs-actions.pod:6696
28838 msgid "guestfs_sh_lines"
28839 msgstr ""
28840
28841 #. type: verbatim
28842 #: ../src/guestfs-actions.pod:6698
28843 #, no-wrap
28844 msgid ""
28845 " char **\n"
28846 " guestfs_sh_lines (guestfs_h *g,\n"
28847 "                   const char *command);\n"
28848 "\n"
28849 msgstr ""
28850
28851 #. type: textblock
28852 #: ../src/guestfs-actions.pod:6702
28853 msgid ""
28854 "This is the same as C<guestfs_sh>, but splits the result into a list of "
28855 "lines."
28856 msgstr ""
28857
28858 #. type: textblock
28859 #: ../src/guestfs-actions.pod:6705
28860 msgid "See also: C<guestfs_command_lines>"
28861 msgstr ""
28862
28863 #. type: =head2
28864 #: ../src/guestfs-actions.pod:6713
28865 msgid "guestfs_sleep"
28866 msgstr ""
28867
28868 #. type: verbatim
28869 #: ../src/guestfs-actions.pod:6715
28870 #, no-wrap
28871 msgid ""
28872 " int\n"
28873 " guestfs_sleep (guestfs_h *g,\n"
28874 "                int secs);\n"
28875 "\n"
28876 msgstr ""
28877
28878 #. type: textblock
28879 #: ../src/guestfs-actions.pod:6723
28880 msgid "(Added in 1.0.41)"
28881 msgstr ""
28882
28883 #. type: =head2
28884 #: ../src/guestfs-actions.pod:6725 ../src/guestfs-structs.pod:109
28885 msgid "guestfs_stat"
28886 msgstr ""
28887
28888 #. type: verbatim
28889 #: ../src/guestfs-actions.pod:6727
28890 #, no-wrap
28891 msgid ""
28892 " struct guestfs_stat *\n"
28893 " guestfs_stat (guestfs_h *g,\n"
28894 "               const char *path);\n"
28895 "\n"
28896 msgstr ""
28897
28898 #. type: =head2
28899 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-structs.pod:135
28900 msgid "guestfs_statvfs"
28901 msgstr ""
28902
28903 #. type: verbatim
28904 #: ../src/guestfs-actions.pod:6743
28905 #, no-wrap
28906 msgid ""
28907 " struct guestfs_statvfs *\n"
28908 " guestfs_statvfs (guestfs_h *g,\n"
28909 "                  const char *path);\n"
28910 "\n"
28911 msgstr ""
28912
28913 #. type: textblock
28914 #: ../src/guestfs-actions.pod:6753
28915 msgid ""
28916 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
28917 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
28918 msgstr ""
28919
28920 #. type: =head2
28921 #: ../src/guestfs-actions.pod:6759
28922 msgid "guestfs_strings"
28923 msgstr ""
28924
28925 #. type: verbatim
28926 #: ../src/guestfs-actions.pod:6761
28927 #, no-wrap
28928 msgid ""
28929 " char **\n"
28930 " guestfs_strings (guestfs_h *g,\n"
28931 "                  const char *path);\n"
28932 "\n"
28933 msgstr ""
28934
28935 #. type: =head2
28936 #: ../src/guestfs-actions.pod:6777
28937 msgid "guestfs_strings_e"
28938 msgstr ""
28939
28940 #. type: verbatim
28941 #: ../src/guestfs-actions.pod:6779
28942 #, no-wrap
28943 msgid ""
28944 " char **\n"
28945 " guestfs_strings_e (guestfs_h *g,\n"
28946 "                    const char *encoding,\n"
28947 "                    const char *path);\n"
28948 "\n"
28949 msgstr ""
28950
28951 #. type: textblock
28952 #: ../src/guestfs-actions.pod:6784
28953 msgid ""
28954 "This is like the C<guestfs_strings> command, but allows you to specify the "
28955 "encoding of strings that are looked for in the source file C<path>."
28956 msgstr ""
28957
28958 #. type: textblock
28959 #: ../src/guestfs-actions.pod:6794
28960 msgid ""
28961 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
28962 "ISO-8859-X (this is what C<guestfs_strings> uses)."
28963 msgstr ""
28964
28965 #. type: =head2
28966 #: ../src/guestfs-actions.pod:6832
28967 msgid "guestfs_swapoff_device"
28968 msgstr ""
28969
28970 #. type: verbatim
28971 #: ../src/guestfs-actions.pod:6834
28972 #, no-wrap
28973 msgid ""
28974 " int\n"
28975 " guestfs_swapoff_device (guestfs_h *g,\n"
28976 "                         const char *device);\n"
28977 "\n"
28978 msgstr ""
28979
28980 #. type: textblock
28981 #: ../src/guestfs-actions.pod:6838
28982 msgid ""
28983 "This command disables the libguestfs appliance swap device or partition "
28984 "named C<device>.  See C<guestfs_swapon_device>."
28985 msgstr ""
28986
28987 #. type: =head2
28988 #: ../src/guestfs-actions.pod:6846
28989 msgid "guestfs_swapoff_file"
28990 msgstr ""
28991
28992 #. type: verbatim
28993 #: ../src/guestfs-actions.pod:6848
28994 #, no-wrap
28995 msgid ""
28996 " int\n"
28997 " guestfs_swapoff_file (guestfs_h *g,\n"
28998 "                       const char *file);\n"
28999 "\n"
29000 msgstr ""
29001
29002 #. type: =head2
29003 #: ../src/guestfs-actions.pod:6858
29004 msgid "guestfs_swapoff_label"
29005 msgstr ""
29006
29007 #. type: verbatim
29008 #: ../src/guestfs-actions.pod:6860
29009 #, no-wrap
29010 msgid ""
29011 " int\n"
29012 " guestfs_swapoff_label (guestfs_h *g,\n"
29013 "                        const char *label);\n"
29014 "\n"
29015 msgstr ""
29016
29017 #. type: =head2
29018 #: ../src/guestfs-actions.pod:6871
29019 msgid "guestfs_swapoff_uuid"
29020 msgstr ""
29021
29022 #. type: verbatim
29023 #: ../src/guestfs-actions.pod:6873
29024 #, no-wrap
29025 msgid ""
29026 " int\n"
29027 " guestfs_swapoff_uuid (guestfs_h *g,\n"
29028 "                       const char *uuid);\n"
29029 "\n"
29030 msgstr ""
29031
29032 #. type: =head2
29033 #: ../src/guestfs-actions.pod:6884
29034 msgid "guestfs_swapon_device"
29035 msgstr ""
29036
29037 #. type: verbatim
29038 #: ../src/guestfs-actions.pod:6886
29039 #, no-wrap
29040 msgid ""
29041 " int\n"
29042 " guestfs_swapon_device (guestfs_h *g,\n"
29043 "                        const char *device);\n"
29044 "\n"
29045 msgstr ""
29046
29047 #. type: textblock
29048 #: ../src/guestfs-actions.pod:6890
29049 msgid ""
29050 "This command enables the libguestfs appliance to use the swap device or "
29051 "partition named C<device>.  The increased memory is made available for all "
29052 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
29053 msgstr ""
29054
29055 #. type: =head2
29056 #: ../src/guestfs-actions.pod:6906
29057 msgid "guestfs_swapon_file"
29058 msgstr ""
29059
29060 #. type: verbatim
29061 #: ../src/guestfs-actions.pod:6908
29062 #, no-wrap
29063 msgid ""
29064 " int\n"
29065 " guestfs_swapon_file (guestfs_h *g,\n"
29066 "                      const char *file);\n"
29067 "\n"
29068 msgstr ""
29069
29070 #. type: textblock
29071 #: ../src/guestfs-actions.pod:6912
29072 msgid ""
29073 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
29074 "notes."
29075 msgstr ""
29076
29077 #. type: =head2
29078 #: ../src/guestfs-actions.pod:6919
29079 msgid "guestfs_swapon_label"
29080 msgstr ""
29081
29082 #. type: verbatim
29083 #: ../src/guestfs-actions.pod:6921
29084 #, no-wrap
29085 msgid ""
29086 " int\n"
29087 " guestfs_swapon_label (guestfs_h *g,\n"
29088 "                       const char *label);\n"
29089 "\n"
29090 msgstr ""
29091
29092 #. type: textblock
29093 #: ../src/guestfs-actions.pod:6925
29094 msgid ""
29095 "This command enables swap to a labeled swap partition.  See "
29096 "C<guestfs_swapon_device> for other notes."
29097 msgstr ""
29098
29099 #. type: =head2
29100 #: ../src/guestfs-actions.pod:6932
29101 msgid "guestfs_swapon_uuid"
29102 msgstr ""
29103
29104 #. type: verbatim
29105 #: ../src/guestfs-actions.pod:6934
29106 #, no-wrap
29107 msgid ""
29108 " int\n"
29109 " guestfs_swapon_uuid (guestfs_h *g,\n"
29110 "                      const char *uuid);\n"
29111 "\n"
29112 msgstr ""
29113
29114 #. type: textblock
29115 #: ../src/guestfs-actions.pod:6938
29116 msgid ""
29117 "This command enables swap to a swap partition with the given UUID.  See "
29118 "C<guestfs_swapon_device> for other notes."
29119 msgstr ""
29120
29121 #. type: =head2
29122 #: ../src/guestfs-actions.pod:6945
29123 msgid "guestfs_sync"
29124 msgstr ""
29125
29126 #. type: verbatim
29127 #: ../src/guestfs-actions.pod:6947
29128 #, no-wrap
29129 msgid ""
29130 " int\n"
29131 " guestfs_sync (guestfs_h *g);\n"
29132 "\n"
29133 msgstr ""
29134
29135 #. type: =head2
29136 #: ../src/guestfs-actions.pod:6960
29137 msgid "guestfs_tail"
29138 msgstr ""
29139
29140 #. type: verbatim
29141 #: ../src/guestfs-actions.pod:6962
29142 #, no-wrap
29143 msgid ""
29144 " char **\n"
29145 " guestfs_tail (guestfs_h *g,\n"
29146 "               const char *path);\n"
29147 "\n"
29148 msgstr ""
29149
29150 #. type: =head2
29151 #: ../src/guestfs-actions.pod:6978
29152 msgid "guestfs_tail_n"
29153 msgstr ""
29154
29155 #. type: verbatim
29156 #: ../src/guestfs-actions.pod:6980
29157 #, no-wrap
29158 msgid ""
29159 " char **\n"
29160 " guestfs_tail_n (guestfs_h *g,\n"
29161 "                 int nrlines,\n"
29162 "                 const char *path);\n"
29163 "\n"
29164 msgstr ""
29165
29166 #. type: =head2
29167 #: ../src/guestfs-actions.pod:7002
29168 msgid "guestfs_tar_in"
29169 msgstr ""
29170
29171 #. type: verbatim
29172 #: ../src/guestfs-actions.pod:7004
29173 #, no-wrap
29174 msgid ""
29175 " int\n"
29176 " guestfs_tar_in (guestfs_h *g,\n"
29177 "                 const char *tarfile,\n"
29178 "                 const char *directory);\n"
29179 "\n"
29180 msgstr ""
29181
29182 #. type: textblock
29183 #: ../src/guestfs-actions.pod:7012
29184 msgid ""
29185 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
29186 msgstr ""
29187
29188 #. type: textblock
29189 #: ../src/guestfs-actions.pod:7017 ../src/guestfs-actions.pod:7034
29190 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7066
29191 msgid "(Added in 1.0.3)"
29192 msgstr ""
29193
29194 #. type: =head2
29195 #: ../src/guestfs-actions.pod:7019
29196 msgid "guestfs_tar_out"
29197 msgstr ""
29198
29199 #. type: verbatim
29200 #: ../src/guestfs-actions.pod:7021
29201 #, no-wrap
29202 msgid ""
29203 " int\n"
29204 " guestfs_tar_out (guestfs_h *g,\n"
29205 "                  const char *directory,\n"
29206 "                  const char *tarfile);\n"
29207 "\n"
29208 msgstr ""
29209
29210 #. type: textblock
29211 #: ../src/guestfs-actions.pod:7029
29212 msgid ""
29213 "To download a compressed tarball, use C<guestfs_tgz_out> or "
29214 "C<guestfs_txz_out>."
29215 msgstr ""
29216
29217 #. type: =head2
29218 #: ../src/guestfs-actions.pod:7036
29219 msgid "guestfs_tgz_in"
29220 msgstr ""
29221
29222 #. type: verbatim
29223 #: ../src/guestfs-actions.pod:7038
29224 #, no-wrap
29225 msgid ""
29226 " int\n"
29227 " guestfs_tgz_in (guestfs_h *g,\n"
29228 "                 const char *tarball,\n"
29229 "                 const char *directory);\n"
29230 "\n"
29231 msgstr ""
29232
29233 #. type: textblock
29234 #: ../src/guestfs-actions.pod:7046
29235 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
29236 msgstr ""
29237
29238 #. type: =head2
29239 #: ../src/guestfs-actions.pod:7052
29240 msgid "guestfs_tgz_out"
29241 msgstr ""
29242
29243 #. type: verbatim
29244 #: ../src/guestfs-actions.pod:7054
29245 #, no-wrap
29246 msgid ""
29247 " int\n"
29248 " guestfs_tgz_out (guestfs_h *g,\n"
29249 "                  const char *directory,\n"
29250 "                  const char *tarball);\n"
29251 "\n"
29252 msgstr ""
29253
29254 #. type: textblock
29255 #: ../src/guestfs-actions.pod:7062
29256 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
29257 msgstr ""
29258
29259 #. type: =head2
29260 #: ../src/guestfs-actions.pod:7068
29261 msgid "guestfs_touch"
29262 msgstr ""
29263
29264 #. type: verbatim
29265 #: ../src/guestfs-actions.pod:7070
29266 #, no-wrap
29267 msgid ""
29268 " int\n"
29269 " guestfs_touch (guestfs_h *g,\n"
29270 "                const char *path);\n"
29271 "\n"
29272 msgstr ""
29273
29274 #. type: =head2
29275 #: ../src/guestfs-actions.pod:7085
29276 msgid "guestfs_truncate"
29277 msgstr ""
29278
29279 #. type: verbatim
29280 #: ../src/guestfs-actions.pod:7087
29281 #, no-wrap
29282 msgid ""
29283 " int\n"
29284 " guestfs_truncate (guestfs_h *g,\n"
29285 "                   const char *path);\n"
29286 "\n"
29287 msgstr ""
29288
29289 #. type: =head2
29290 #: ../src/guestfs-actions.pod:7098
29291 msgid "guestfs_truncate_size"
29292 msgstr ""
29293
29294 #. type: verbatim
29295 #: ../src/guestfs-actions.pod:7100
29296 #, no-wrap
29297 msgid ""
29298 " int\n"
29299 " guestfs_truncate_size (guestfs_h *g,\n"
29300 "                        const char *path,\n"
29301 "                        int64_t size);\n"
29302 "\n"
29303 msgstr ""
29304
29305 #. type: textblock
29306 #: ../src/guestfs-actions.pod:7108
29307 msgid ""
29308 "If the current file size is less than C<size> then the file is extended to "
29309 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29310 "blocks are not allocated for the file until you write to it).  To create a "
29311 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
29312 msgstr ""
29313
29314 #. type: =head2
29315 #: ../src/guestfs-actions.pod:7118
29316 msgid "guestfs_tune2fs_l"
29317 msgstr ""
29318
29319 #. type: verbatim
29320 #: ../src/guestfs-actions.pod:7120
29321 #, no-wrap
29322 msgid ""
29323 " char **\n"
29324 " guestfs_tune2fs_l (guestfs_h *g,\n"
29325 "                    const char *device);\n"
29326 "\n"
29327 msgstr ""
29328
29329 #. type: =head2
29330 #: ../src/guestfs-actions.pod:7140
29331 msgid "guestfs_txz_in"
29332 msgstr ""
29333
29334 #. type: verbatim
29335 #: ../src/guestfs-actions.pod:7142
29336 #, no-wrap
29337 msgid ""
29338 " int\n"
29339 " guestfs_txz_in (guestfs_h *g,\n"
29340 "                 const char *tarball,\n"
29341 "                 const char *directory);\n"
29342 "\n"
29343 msgstr ""
29344
29345 #. type: =head2
29346 #: ../src/guestfs-actions.pod:7154
29347 msgid "guestfs_txz_out"
29348 msgstr ""
29349
29350 #. type: verbatim
29351 #: ../src/guestfs-actions.pod:7156
29352 #, no-wrap
29353 msgid ""
29354 " int\n"
29355 " guestfs_txz_out (guestfs_h *g,\n"
29356 "                  const char *directory,\n"
29357 "                  const char *tarball);\n"
29358 "\n"
29359 msgstr ""
29360
29361 #. type: =head2
29362 #: ../src/guestfs-actions.pod:7168
29363 msgid "guestfs_umask"
29364 msgstr ""
29365
29366 #. type: verbatim
29367 #: ../src/guestfs-actions.pod:7170
29368 #, no-wrap
29369 msgid ""
29370 " int\n"
29371 " guestfs_umask (guestfs_h *g,\n"
29372 "                int mask);\n"
29373 "\n"
29374 msgstr ""
29375
29376 #. type: textblock
29377 #: ../src/guestfs-actions.pod:7186
29378 msgid ""
29379 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
29380 "C<guestfs_mkdir>."
29381 msgstr ""
29382
29383 #. type: =head2
29384 #: ../src/guestfs-actions.pod:7195
29385 msgid "guestfs_umount"
29386 msgstr ""
29387
29388 #. type: verbatim
29389 #: ../src/guestfs-actions.pod:7197
29390 #, no-wrap
29391 msgid ""
29392 " int\n"
29393 " guestfs_umount (guestfs_h *g,\n"
29394 "                 const char *pathordevice);\n"
29395 "\n"
29396 msgstr ""
29397
29398 #. type: =head2
29399 #: ../src/guestfs-actions.pod:7209
29400 msgid "guestfs_umount_all"
29401 msgstr ""
29402
29403 #. type: verbatim
29404 #: ../src/guestfs-actions.pod:7211
29405 #, no-wrap
29406 msgid ""
29407 " int\n"
29408 " guestfs_umount_all (guestfs_h *g);\n"
29409 "\n"
29410 msgstr ""
29411
29412 #. type: =head2
29413 #: ../src/guestfs-actions.pod:7222
29414 msgid "guestfs_upload"
29415 msgstr ""
29416
29417 #. type: verbatim
29418 #: ../src/guestfs-actions.pod:7224
29419 #, no-wrap
29420 msgid ""
29421 " int\n"
29422 " guestfs_upload (guestfs_h *g,\n"
29423 "                 const char *filename,\n"
29424 "                 const char *remotefilename);\n"
29425 "\n"
29426 msgstr ""
29427
29428 #. type: textblock
29429 #: ../src/guestfs-actions.pod:7234
29430 msgid "See also C<guestfs_download>."
29431 msgstr ""
29432
29433 #. type: =head2
29434 #: ../src/guestfs-actions.pod:7245
29435 msgid "guestfs_upload_offset"
29436 msgstr ""
29437
29438 #. type: verbatim
29439 #: ../src/guestfs-actions.pod:7247
29440 #, no-wrap
29441 msgid ""
29442 " int\n"
29443 " guestfs_upload_offset (guestfs_h *g,\n"
29444 "                        const char *filename,\n"
29445 "                        const char *remotefilename,\n"
29446 "                        int64_t offset);\n"
29447 "\n"
29448 msgstr ""
29449
29450 #. type: textblock
29451 #: ../src/guestfs-actions.pod:7263
29452 msgid ""
29453 "Note that there is no limit on the amount of data that can be uploaded with "
29454 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
29455 "full amount unless an error occurs."
29456 msgstr ""
29457
29458 #. type: textblock
29459 #: ../src/guestfs-actions.pod:7268
29460 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
29461 msgstr ""
29462
29463 #. type: =head2
29464 #: ../src/guestfs-actions.pod:7279
29465 msgid "guestfs_utimens"
29466 msgstr ""
29467
29468 #. type: verbatim
29469 #: ../src/guestfs-actions.pod:7281
29470 #, no-wrap
29471 msgid ""
29472 " int\n"
29473 " guestfs_utimens (guestfs_h *g,\n"
29474 "                  const char *path,\n"
29475 "                  int64_t atsecs,\n"
29476 "                  int64_t atnsecs,\n"
29477 "                  int64_t mtsecs,\n"
29478 "                  int64_t mtnsecs);\n"
29479 "\n"
29480 msgstr ""
29481
29482 #. type: =head2
29483 #: ../src/guestfs-actions.pod:7310 ../src/guestfs-structs.pod:175
29484 msgid "guestfs_version"
29485 msgstr ""
29486
29487 #. type: verbatim
29488 #: ../src/guestfs-actions.pod:7312
29489 #, no-wrap
29490 msgid ""
29491 " struct guestfs_version *\n"
29492 " guestfs_version (guestfs_h *g);\n"
29493 "\n"
29494 msgstr ""
29495
29496 #. type: textblock
29497 #: ../src/guestfs-actions.pod:7340
29498 msgid ""
29499 "I<Note:> Don't use this call to test for availability of features.  In "
29500 "enterprise distributions we backport features from later versions into "
29501 "earlier versions, making this an unreliable way to test for features.  Use "
29502 "C<guestfs_available> instead."
29503 msgstr ""
29504
29505 #. type: textblock
29506 #: ../src/guestfs-actions.pod:7346
29507 msgid ""
29508 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
29509 "error.  I<The caller must call C<guestfs_free_version> after use>."
29510 msgstr ""
29511
29512 #. type: textblock
29513 #: ../src/guestfs-actions.pod:7350
29514 msgid "(Added in 1.0.58)"
29515 msgstr ""
29516
29517 #. type: =head2
29518 #: ../src/guestfs-actions.pod:7352
29519 msgid "guestfs_vfs_label"
29520 msgstr ""
29521
29522 #. type: verbatim
29523 #: ../src/guestfs-actions.pod:7354
29524 #, no-wrap
29525 msgid ""
29526 " char *\n"
29527 " guestfs_vfs_label (guestfs_h *g,\n"
29528 "                    const char *device);\n"
29529 "\n"
29530 msgstr ""
29531
29532 #. type: textblock
29533 #: ../src/guestfs-actions.pod:7363
29534 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
29535 msgstr ""
29536
29537 #. type: textblock
29538 #: ../src/guestfs-actions.pod:7368 ../src/guestfs-actions.pod:7405
29539 msgid "(Added in 1.3.18)"
29540 msgstr ""
29541
29542 #. type: =head2
29543 #: ../src/guestfs-actions.pod:7370
29544 msgid "guestfs_vfs_type"
29545 msgstr ""
29546
29547 #. type: verbatim
29548 #: ../src/guestfs-actions.pod:7372
29549 #, no-wrap
29550 msgid ""
29551 " char *\n"
29552 " guestfs_vfs_type (guestfs_h *g,\n"
29553 "                   const char *device);\n"
29554 "\n"
29555 msgstr ""
29556
29557 #. type: =head2
29558 #: ../src/guestfs-actions.pod:7389
29559 msgid "guestfs_vfs_uuid"
29560 msgstr ""
29561
29562 #. type: verbatim
29563 #: ../src/guestfs-actions.pod:7391
29564 #, no-wrap
29565 msgid ""
29566 " char *\n"
29567 " guestfs_vfs_uuid (guestfs_h *g,\n"
29568 "                   const char *device);\n"
29569 "\n"
29570 msgstr ""
29571
29572 #. type: textblock
29573 #: ../src/guestfs-actions.pod:7400
29574 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
29575 msgstr ""
29576
29577 #. type: =head2
29578 #: ../src/guestfs-actions.pod:7407
29579 msgid "guestfs_vg_activate"
29580 msgstr ""
29581
29582 #. type: verbatim
29583 #: ../src/guestfs-actions.pod:7409
29584 #, no-wrap
29585 msgid ""
29586 " int\n"
29587 " guestfs_vg_activate (guestfs_h *g,\n"
29588 "                      int activate,\n"
29589 "                      char *const *volgroups);\n"
29590 "\n"
29591 msgstr ""
29592
29593 #. type: =head2
29594 #: ../src/guestfs-actions.pod:7426
29595 msgid "guestfs_vg_activate_all"
29596 msgstr ""
29597
29598 #. type: verbatim
29599 #: ../src/guestfs-actions.pod:7428
29600 #, no-wrap
29601 msgid ""
29602 " int\n"
29603 " guestfs_vg_activate_all (guestfs_h *g,\n"
29604 "                          int activate);\n"
29605 "\n"
29606 msgstr ""
29607
29608 #. type: =head2
29609 #: ../src/guestfs-actions.pod:7441
29610 msgid "guestfs_vgcreate"
29611 msgstr ""
29612
29613 #. type: verbatim
29614 #: ../src/guestfs-actions.pod:7443
29615 #, no-wrap
29616 msgid ""
29617 " int\n"
29618 " guestfs_vgcreate (guestfs_h *g,\n"
29619 "                   const char *volgroup,\n"
29620 "                   char *const *physvols);\n"
29621 "\n"
29622 msgstr ""
29623
29624 #. type: =head2
29625 #: ../src/guestfs-actions.pod:7455
29626 msgid "guestfs_vglvuuids"
29627 msgstr ""
29628
29629 #. type: verbatim
29630 #: ../src/guestfs-actions.pod:7457
29631 #, no-wrap
29632 msgid ""
29633 " char **\n"
29634 " guestfs_vglvuuids (guestfs_h *g,\n"
29635 "                    const char *vgname);\n"
29636 "\n"
29637 msgstr ""
29638
29639 #. type: textblock
29640 #: ../src/guestfs-actions.pod:7464
29641 msgid ""
29642 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
29643 "associate logical volumes and volume groups."
29644 msgstr ""
29645
29646 #. type: textblock
29647 #: ../src/guestfs-actions.pod:7467
29648 msgid "See also C<guestfs_vgpvuuids>."
29649 msgstr ""
29650
29651 #. type: =head2
29652 #: ../src/guestfs-actions.pod:7475
29653 msgid "guestfs_vgpvuuids"
29654 msgstr ""
29655
29656 #. type: verbatim
29657 #: ../src/guestfs-actions.pod:7477
29658 #, no-wrap
29659 msgid ""
29660 " char **\n"
29661 " guestfs_vgpvuuids (guestfs_h *g,\n"
29662 "                    const char *vgname);\n"
29663 "\n"
29664 msgstr ""
29665
29666 #. type: textblock
29667 #: ../src/guestfs-actions.pod:7484
29668 msgid ""
29669 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
29670 "associate physical volumes and volume groups."
29671 msgstr ""
29672
29673 #. type: textblock
29674 #: ../src/guestfs-actions.pod:7487
29675 msgid "See also C<guestfs_vglvuuids>."
29676 msgstr ""
29677
29678 #. type: =head2
29679 #: ../src/guestfs-actions.pod:7495
29680 msgid "guestfs_vgremove"
29681 msgstr ""
29682
29683 #. type: verbatim
29684 #: ../src/guestfs-actions.pod:7497
29685 #, no-wrap
29686 msgid ""
29687 " int\n"
29688 " guestfs_vgremove (guestfs_h *g,\n"
29689 "                   const char *vgname);\n"
29690 "\n"
29691 msgstr ""
29692
29693 #. type: =head2
29694 #: ../src/guestfs-actions.pod:7510
29695 msgid "guestfs_vgrename"
29696 msgstr ""
29697
29698 #. type: verbatim
29699 #: ../src/guestfs-actions.pod:7512
29700 #, no-wrap
29701 msgid ""
29702 " int\n"
29703 " guestfs_vgrename (guestfs_h *g,\n"
29704 "                   const char *volgroup,\n"
29705 "                   const char *newvolgroup);\n"
29706 "\n"
29707 msgstr ""
29708
29709 #. type: =head2
29710 #: ../src/guestfs-actions.pod:7523
29711 msgid "guestfs_vgs"
29712 msgstr ""
29713
29714 #. type: verbatim
29715 #: ../src/guestfs-actions.pod:7525
29716 #, no-wrap
29717 msgid ""
29718 " char **\n"
29719 " guestfs_vgs (guestfs_h *g);\n"
29720 "\n"
29721 msgstr ""
29722
29723 #. type: textblock
29724 #: ../src/guestfs-actions.pod:7534
29725 msgid "See also C<guestfs_vgs_full>."
29726 msgstr ""
29727
29728 #. type: =head2
29729 #: ../src/guestfs-actions.pod:7542
29730 msgid "guestfs_vgs_full"
29731 msgstr ""
29732
29733 #. type: verbatim
29734 #: ../src/guestfs-actions.pod:7544
29735 #, no-wrap
29736 msgid ""
29737 " struct guestfs_lvm_vg_list *\n"
29738 " guestfs_vgs_full (guestfs_h *g);\n"
29739 "\n"
29740 msgstr ""
29741
29742 #. type: textblock
29743 #: ../src/guestfs-actions.pod:7550
29744 msgid ""
29745 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
29746 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
29747 msgstr ""
29748
29749 #. type: =head2
29750 #: ../src/guestfs-actions.pod:7556
29751 msgid "guestfs_vgscan"
29752 msgstr ""
29753
29754 #. type: verbatim
29755 #: ../src/guestfs-actions.pod:7558
29756 #, no-wrap
29757 msgid ""
29758 " int\n"
29759 " guestfs_vgscan (guestfs_h *g);\n"
29760 "\n"
29761 msgstr ""
29762
29763 #. type: =head2
29764 #: ../src/guestfs-actions.pod:7568
29765 msgid "guestfs_vguuid"
29766 msgstr ""
29767
29768 #. type: verbatim
29769 #: ../src/guestfs-actions.pod:7570
29770 #, no-wrap
29771 msgid ""
29772 " char *\n"
29773 " guestfs_vguuid (guestfs_h *g,\n"
29774 "                 const char *vgname);\n"
29775 "\n"
29776 msgstr ""
29777
29778 #. type: =head2
29779 #: ../src/guestfs-actions.pod:7581
29780 msgid "guestfs_wait_ready"
29781 msgstr ""
29782
29783 #. type: verbatim
29784 #: ../src/guestfs-actions.pod:7583
29785 #, no-wrap
29786 msgid ""
29787 " int\n"
29788 " guestfs_wait_ready (guestfs_h *g);\n"
29789 "\n"
29790 msgstr ""
29791
29792 #. type: textblock
29793 #: ../src/guestfs-actions.pod:7586
29794 msgid "This function is a no op."
29795 msgstr ""
29796
29797 #. type: textblock
29798 #: ../src/guestfs-actions.pod:7588
29799 msgid ""
29800 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
29801 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
29802 "is no longer necessary because C<guestfs_launch> now does the waiting."
29803 msgstr ""
29804
29805 #. type: textblock
29806 #: ../src/guestfs-actions.pod:7593
29807 msgid ""
29808 "If you see any calls to this function in code then you can just remove them, "
29809 "unless you want to retain compatibility with older versions of the API."
29810 msgstr ""
29811
29812 #. type: textblock
29813 #: ../src/guestfs-actions.pod:7599
29814 msgid ""
29815 "This function is deprecated.  In new code, use the L</guestfs_launch> call "
29816 "instead."
29817 msgstr ""
29818
29819 #. type: =head2
29820 #: ../src/guestfs-actions.pod:7608
29821 msgid "guestfs_wc_c"
29822 msgstr ""
29823
29824 #. type: verbatim
29825 #: ../src/guestfs-actions.pod:7610
29826 #, no-wrap
29827 msgid ""
29828 " int\n"
29829 " guestfs_wc_c (guestfs_h *g,\n"
29830 "               const char *path);\n"
29831 "\n"
29832 msgstr ""
29833
29834 #. type: =head2
29835 #: ../src/guestfs-actions.pod:7621
29836 msgid "guestfs_wc_l"
29837 msgstr ""
29838
29839 #. type: verbatim
29840 #: ../src/guestfs-actions.pod:7623
29841 #, no-wrap
29842 msgid ""
29843 " int\n"
29844 " guestfs_wc_l (guestfs_h *g,\n"
29845 "               const char *path);\n"
29846 "\n"
29847 msgstr ""
29848
29849 #. type: =head2
29850 #: ../src/guestfs-actions.pod:7634
29851 msgid "guestfs_wc_w"
29852 msgstr ""
29853
29854 #. type: verbatim
29855 #: ../src/guestfs-actions.pod:7636
29856 #, no-wrap
29857 msgid ""
29858 " int\n"
29859 " guestfs_wc_w (guestfs_h *g,\n"
29860 "               const char *path);\n"
29861 "\n"
29862 msgstr ""
29863
29864 #. type: =head2
29865 #: ../src/guestfs-actions.pod:7647
29866 msgid "guestfs_write"
29867 msgstr ""
29868
29869 #. type: verbatim
29870 #: ../src/guestfs-actions.pod:7649
29871 #, no-wrap
29872 msgid ""
29873 " int\n"
29874 " guestfs_write (guestfs_h *g,\n"
29875 "                const char *path,\n"
29876 "                const char *content,\n"
29877 "                size_t content_size);\n"
29878 "\n"
29879 msgstr ""
29880
29881 #. type: textblock
29882 #: ../src/guestfs-actions.pod:7658
29883 msgid "See also C<guestfs_write_append>."
29884 msgstr ""
29885
29886 #. type: =head2
29887 #: ../src/guestfs-actions.pod:7667
29888 msgid "guestfs_write_append"
29889 msgstr ""
29890
29891 #. type: verbatim
29892 #: ../src/guestfs-actions.pod:7669
29893 #, no-wrap
29894 msgid ""
29895 " int\n"
29896 " guestfs_write_append (guestfs_h *g,\n"
29897 "                       const char *path,\n"
29898 "                       const char *content,\n"
29899 "                       size_t content_size);\n"
29900 "\n"
29901 msgstr ""
29902
29903 #. type: textblock
29904 #: ../src/guestfs-actions.pod:7678
29905 msgid "See also C<guestfs_write>."
29906 msgstr ""
29907
29908 #. type: =head2
29909 #: ../src/guestfs-actions.pod:7687
29910 msgid "guestfs_write_file"
29911 msgstr ""
29912
29913 #. type: verbatim
29914 #: ../src/guestfs-actions.pod:7689
29915 #, no-wrap
29916 msgid ""
29917 " int\n"
29918 " guestfs_write_file (guestfs_h *g,\n"
29919 "                     const char *path,\n"
29920 "                     const char *content,\n"
29921 "                     int size);\n"
29922 "\n"
29923 msgstr ""
29924
29925 #. type: textblock
29926 #: ../src/guestfs-actions.pod:7711
29927 msgid ""
29928 "This function is deprecated.  In new code, use the L</guestfs_write> call "
29929 "instead."
29930 msgstr ""
29931
29932 #. type: =head2
29933 #: ../src/guestfs-actions.pod:7720
29934 msgid "guestfs_zegrep"
29935 msgstr ""
29936
29937 #. type: verbatim
29938 #: ../src/guestfs-actions.pod:7722
29939 #, no-wrap
29940 msgid ""
29941 " char **\n"
29942 " guestfs_zegrep (guestfs_h *g,\n"
29943 "                 const char *regex,\n"
29944 "                 const char *path);\n"
29945 "\n"
29946 msgstr ""
29947
29948 #. type: =head2
29949 #: ../src/guestfs-actions.pod:7739
29950 msgid "guestfs_zegrepi"
29951 msgstr ""
29952
29953 #. type: verbatim
29954 #: ../src/guestfs-actions.pod:7741
29955 #, no-wrap
29956 msgid ""
29957 " char **\n"
29958 " guestfs_zegrepi (guestfs_h *g,\n"
29959 "                  const char *regex,\n"
29960 "                  const char *path);\n"
29961 "\n"
29962 msgstr ""
29963
29964 #. type: =head2
29965 #: ../src/guestfs-actions.pod:7758
29966 msgid "guestfs_zero"
29967 msgstr ""
29968
29969 #. type: verbatim
29970 #: ../src/guestfs-actions.pod:7760
29971 #, no-wrap
29972 msgid ""
29973 " int\n"
29974 " guestfs_zero (guestfs_h *g,\n"
29975 "               const char *device);\n"
29976 "\n"
29977 msgstr ""
29978
29979 #. type: textblock
29980 #: ../src/guestfs-actions.pod:7770
29981 msgid ""
29982 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
29983 "C<guestfs_is_zero_device>"
29984 msgstr ""
29985
29986 #. type: =head2
29987 #: ../src/guestfs-actions.pod:7782
29988 msgid "guestfs_zero_device"
29989 msgstr ""
29990
29991 #. type: verbatim
29992 #: ../src/guestfs-actions.pod:7784
29993 #, no-wrap
29994 msgid ""
29995 " int\n"
29996 " guestfs_zero_device (guestfs_h *g,\n"
29997 "                      const char *device);\n"
29998 "\n"
29999 msgstr ""
30000
30001 #. type: textblock
30002 #: ../src/guestfs-actions.pod:7788
30003 msgid ""
30004 "This command writes zeroes over the entire C<device>.  Compare with "
30005 "C<guestfs_zero> which just zeroes the first few blocks of a device."
30006 msgstr ""
30007
30008 #. type: textblock
30009 #: ../src/guestfs-actions.pod:7802
30010 msgid "(Added in 1.3.1)"
30011 msgstr ""
30012
30013 #. type: =head2
30014 #: ../src/guestfs-actions.pod:7804
30015 msgid "guestfs_zerofree"
30016 msgstr ""
30017
30018 #. type: verbatim
30019 #: ../src/guestfs-actions.pod:7806
30020 #, no-wrap
30021 msgid ""
30022 " int\n"
30023 " guestfs_zerofree (guestfs_h *g,\n"
30024 "                   const char *device);\n"
30025 "\n"
30026 msgstr ""
30027
30028 #. type: =head2
30029 #: ../src/guestfs-actions.pod:7825
30030 msgid "guestfs_zfgrep"
30031 msgstr ""
30032
30033 #. type: verbatim
30034 #: ../src/guestfs-actions.pod:7827
30035 #, no-wrap
30036 msgid ""
30037 " char **\n"
30038 " guestfs_zfgrep (guestfs_h *g,\n"
30039 "                 const char *pattern,\n"
30040 "                 const char *path);\n"
30041 "\n"
30042 msgstr ""
30043
30044 #. type: =head2
30045 #: ../src/guestfs-actions.pod:7844
30046 msgid "guestfs_zfgrepi"
30047 msgstr ""
30048
30049 #. type: verbatim
30050 #: ../src/guestfs-actions.pod:7846
30051 #, no-wrap
30052 msgid ""
30053 " char **\n"
30054 " guestfs_zfgrepi (guestfs_h *g,\n"
30055 "                  const char *pattern,\n"
30056 "                  const char *path);\n"
30057 "\n"
30058 msgstr ""
30059
30060 #. type: =head2
30061 #: ../src/guestfs-actions.pod:7863
30062 msgid "guestfs_zfile"
30063 msgstr ""
30064
30065 #. type: verbatim
30066 #: ../src/guestfs-actions.pod:7865
30067 #, no-wrap
30068 msgid ""
30069 " char *\n"
30070 " guestfs_zfile (guestfs_h *g,\n"
30071 "                const char *meth,\n"
30072 "                const char *path);\n"
30073 "\n"
30074 msgstr ""
30075
30076 #. type: textblock
30077 #: ../src/guestfs-actions.pod:7875
30078 msgid ""
30079 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
30080 "files."
30081 msgstr ""
30082
30083 #. type: textblock
30084 #: ../src/guestfs-actions.pod:7881
30085 msgid ""
30086 "This function is deprecated.  In new code, use the L</guestfs_file> call "
30087 "instead."
30088 msgstr ""
30089
30090 #. type: =head2
30091 #: ../src/guestfs-actions.pod:7890
30092 msgid "guestfs_zgrep"
30093 msgstr ""
30094
30095 #. type: verbatim
30096 #: ../src/guestfs-actions.pod:7892
30097 #, no-wrap
30098 msgid ""
30099 " char **\n"
30100 " guestfs_zgrep (guestfs_h *g,\n"
30101 "                const char *regex,\n"
30102 "                const char *path);\n"
30103 "\n"
30104 msgstr ""
30105
30106 #. type: =head2
30107 #: ../src/guestfs-actions.pod:7909
30108 msgid "guestfs_zgrepi"
30109 msgstr ""
30110
30111 #. type: verbatim
30112 #: ../src/guestfs-actions.pod:7911
30113 #, no-wrap
30114 msgid ""
30115 " char **\n"
30116 " guestfs_zgrepi (guestfs_h *g,\n"
30117 "                 const char *regex,\n"
30118 "                 const char *path);\n"
30119 "\n"
30120 msgstr ""
30121
30122 #. type: =item
30123 #: ../src/guestfs-availability.pod:3
30124 msgid "B<augeas>"
30125 msgstr ""
30126
30127 #. type: textblock
30128 #: ../src/guestfs-availability.pod:5
30129 msgid ""
30130 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
30131 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
30132 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
30133 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
30134 "L</guestfs_aug_save> L</guestfs_aug_set>"
30135 msgstr ""
30136
30137 #. type: =item
30138 #: ../src/guestfs-availability.pod:21
30139 msgid "B<btrfs>"
30140 msgstr ""
30141
30142 #. type: textblock
30143 #: ../src/guestfs-availability.pod:23
30144 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
30145 msgstr ""
30146
30147 #. type: =item
30148 #: ../src/guestfs-availability.pod:26
30149 msgid "B<inotify>"
30150 msgstr ""
30151
30152 #. type: textblock
30153 #: ../src/guestfs-availability.pod:28
30154 msgid ""
30155 "The following functions: L</guestfs_inotify_add_watch> L</"
30156 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
30157 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
30158 msgstr ""
30159
30160 #. type: =item
30161 #: ../src/guestfs-availability.pod:36
30162 msgid "B<linuxfsuuid>"
30163 msgstr ""
30164
30165 #. type: textblock
30166 #: ../src/guestfs-availability.pod:38
30167 msgid ""
30168 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
30169 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
30170 msgstr ""
30171
30172 #. type: =item
30173 #: ../src/guestfs-availability.pod:45
30174 msgid "B<linuxmodules>"
30175 msgstr ""
30176
30177 #. type: textblock
30178 #: ../src/guestfs-availability.pod:47
30179 msgid "The following functions: L</guestfs_modprobe>"
30180 msgstr ""
30181
30182 #. type: =item
30183 #: ../src/guestfs-availability.pod:50
30184 msgid "B<linuxxattrs>"
30185 msgstr ""
30186
30187 #. type: textblock
30188 #: ../src/guestfs-availability.pod:52
30189 msgid ""
30190 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
30191 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
30192 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
30193 "guestfs_setxattr>"
30194 msgstr ""
30195
30196 #. type: =item
30197 #: ../src/guestfs-availability.pod:63
30198 msgid "B<luks>"
30199 msgstr ""
30200
30201 #. type: textblock
30202 #: ../src/guestfs-availability.pod:65
30203 msgid ""
30204 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
30205 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
30206 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
30207 msgstr ""
30208
30209 #. type: =item
30210 #: ../src/guestfs-availability.pod:74
30211 msgid "B<lvm2>"
30212 msgstr ""
30213
30214 #. type: textblock
30215 #: ../src/guestfs-availability.pod:76
30216 msgid ""
30217 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
30218 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
30219 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
30220 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
30221 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
30222 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
30223 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
30224 msgstr ""
30225
30226 #. type: =item
30227 #: ../src/guestfs-availability.pod:99
30228 msgid "B<mknod>"
30229 msgstr ""
30230
30231 #. type: textblock
30232 #: ../src/guestfs-availability.pod:101
30233 msgid ""
30234 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
30235 "guestfs_mknod_b> L</guestfs_mknod_c>"
30236 msgstr ""
30237
30238 #. type: =item
30239 #: ../src/guestfs-availability.pod:107
30240 msgid "B<ntfs3g>"
30241 msgstr ""
30242
30243 #. type: textblock
30244 #: ../src/guestfs-availability.pod:109
30245 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
30246 msgstr ""
30247
30248 #. type: =item
30249 #: ../src/guestfs-availability.pod:112
30250 msgid "B<ntfsprogs>"
30251 msgstr ""
30252
30253 #. type: textblock
30254 #: ../src/guestfs-availability.pod:114
30255 msgid ""
30256 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
30257 "L</guestfs_ntfsresize_size>"
30258 msgstr ""
30259
30260 #. type: =item
30261 #: ../src/guestfs-availability.pod:119
30262 msgid "B<realpath>"
30263 msgstr ""
30264
30265 #. type: textblock
30266 #: ../src/guestfs-availability.pod:121
30267 msgid "The following functions: L</guestfs_realpath>"
30268 msgstr ""
30269
30270 #. type: =item
30271 #: ../src/guestfs-availability.pod:124
30272 msgid "B<scrub>"
30273 msgstr ""
30274
30275 #. type: textblock
30276 #: ../src/guestfs-availability.pod:126
30277 msgid ""
30278 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
30279 "guestfs_scrub_freespace>"
30280 msgstr ""
30281
30282 #. type: =item
30283 #: ../src/guestfs-availability.pod:131
30284 msgid "B<selinux>"
30285 msgstr ""
30286
30287 #. type: textblock
30288 #: ../src/guestfs-availability.pod:133
30289 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
30290 msgstr ""
30291
30292 #. type: =item
30293 #: ../src/guestfs-availability.pod:137
30294 msgid "B<xz>"
30295 msgstr ""
30296
30297 #. type: textblock
30298 #: ../src/guestfs-availability.pod:139
30299 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
30300 msgstr ""
30301
30302 #. type: =item
30303 #: ../src/guestfs-availability.pod:143
30304 msgid "B<zerofree>"
30305 msgstr ""
30306
30307 #. type: textblock
30308 #: ../src/guestfs-availability.pod:145
30309 msgid "The following functions: L</guestfs_zerofree>"
30310 msgstr ""
30311
30312 #. type: =head2
30313 #: ../src/guestfs-structs.pod:1
30314 msgid "guestfs_int_bool"
30315 msgstr ""
30316
30317 #. type: verbatim
30318 #: ../src/guestfs-structs.pod:3
30319 #, no-wrap
30320 msgid ""
30321 " struct guestfs_int_bool {\n"
30322 "   int32_t i;\n"
30323 "   int32_t b;\n"
30324 " };\n"
30325 " \n"
30326 msgstr ""
30327
30328 #. type: verbatim
30329 #: ../src/guestfs-structs.pod:8
30330 #, no-wrap
30331 msgid ""
30332 " struct guestfs_int_bool_list {\n"
30333 "   uint32_t len; /* Number of elements in list. */\n"
30334 "   struct guestfs_int_bool *val; /* Elements. */\n"
30335 " };\n"
30336 " \n"
30337 msgstr ""
30338
30339 #. type: verbatim
30340 #: ../src/guestfs-structs.pod:13
30341 #, no-wrap
30342 msgid ""
30343 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
30344 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
30345 "\n"
30346 msgstr ""
30347
30348 #. type: =head2
30349 #: ../src/guestfs-structs.pod:16
30350 msgid "guestfs_lvm_pv"
30351 msgstr ""
30352
30353 #. type: verbatim
30354 #: ../src/guestfs-structs.pod:18
30355 #, no-wrap
30356 msgid ""
30357 " struct guestfs_lvm_pv {\n"
30358 "   char *pv_name;\n"
30359 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30360 "   char pv_uuid[32];\n"
30361 "   char *pv_fmt;\n"
30362 "   uint64_t pv_size;\n"
30363 "   uint64_t dev_size;\n"
30364 "   uint64_t pv_free;\n"
30365 "   uint64_t pv_used;\n"
30366 "   char *pv_attr;\n"
30367 "   int64_t pv_pe_count;\n"
30368 "   int64_t pv_pe_alloc_count;\n"
30369 "   char *pv_tags;\n"
30370 "   uint64_t pe_start;\n"
30371 "   int64_t pv_mda_count;\n"
30372 "   uint64_t pv_mda_free;\n"
30373 " };\n"
30374 " \n"
30375 msgstr ""
30376
30377 #. type: verbatim
30378 #: ../src/guestfs-structs.pod:36
30379 #, no-wrap
30380 msgid ""
30381 " struct guestfs_lvm_pv_list {\n"
30382 "   uint32_t len; /* Number of elements in list. */\n"
30383 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
30384 " };\n"
30385 " \n"
30386 msgstr ""
30387
30388 #. type: verbatim
30389 #: ../src/guestfs-structs.pod:41
30390 #, no-wrap
30391 msgid ""
30392 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
30393 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
30394 "\n"
30395 msgstr ""
30396
30397 #. type: =head2
30398 #: ../src/guestfs-structs.pod:44
30399 msgid "guestfs_lvm_vg"
30400 msgstr ""
30401
30402 #. type: verbatim
30403 #: ../src/guestfs-structs.pod:46
30404 #, no-wrap
30405 msgid ""
30406 " struct guestfs_lvm_vg {\n"
30407 "   char *vg_name;\n"
30408 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30409 "   char vg_uuid[32];\n"
30410 "   char *vg_fmt;\n"
30411 "   char *vg_attr;\n"
30412 "   uint64_t vg_size;\n"
30413 "   uint64_t vg_free;\n"
30414 "   char *vg_sysid;\n"
30415 "   uint64_t vg_extent_size;\n"
30416 "   int64_t vg_extent_count;\n"
30417 "   int64_t vg_free_count;\n"
30418 "   int64_t max_lv;\n"
30419 "   int64_t max_pv;\n"
30420 "   int64_t pv_count;\n"
30421 "   int64_t lv_count;\n"
30422 "   int64_t snap_count;\n"
30423 "   int64_t vg_seqno;\n"
30424 "   char *vg_tags;\n"
30425 "   int64_t vg_mda_count;\n"
30426 "   uint64_t vg_mda_free;\n"
30427 " };\n"
30428 " \n"
30429 msgstr ""
30430
30431 #. type: verbatim
30432 #: ../src/guestfs-structs.pod:69
30433 #, no-wrap
30434 msgid ""
30435 " struct guestfs_lvm_vg_list {\n"
30436 "   uint32_t len; /* Number of elements in list. */\n"
30437 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
30438 " };\n"
30439 " \n"
30440 msgstr ""
30441
30442 #. type: verbatim
30443 #: ../src/guestfs-structs.pod:74
30444 #, no-wrap
30445 msgid ""
30446 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
30447 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
30448 "\n"
30449 msgstr ""
30450
30451 #. type: =head2
30452 #: ../src/guestfs-structs.pod:77
30453 msgid "guestfs_lvm_lv"
30454 msgstr ""
30455
30456 #. type: verbatim
30457 #: ../src/guestfs-structs.pod:79
30458 #, no-wrap
30459 msgid ""
30460 " struct guestfs_lvm_lv {\n"
30461 "   char *lv_name;\n"
30462 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
30463 "   char lv_uuid[32];\n"
30464 "   char *lv_attr;\n"
30465 "   int64_t lv_major;\n"
30466 "   int64_t lv_minor;\n"
30467 "   int64_t lv_kernel_major;\n"
30468 "   int64_t lv_kernel_minor;\n"
30469 "   uint64_t lv_size;\n"
30470 "   int64_t seg_count;\n"
30471 "   char *origin;\n"
30472 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30473 "   float snap_percent;\n"
30474 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30475 "   float copy_percent;\n"
30476 "   char *move_pv;\n"
30477 "   char *lv_tags;\n"
30478 "   char *mirror_log;\n"
30479 "   char *modules;\n"
30480 " };\n"
30481 " \n"
30482 msgstr ""
30483
30484 #. type: verbatim
30485 #: ../src/guestfs-structs.pod:101
30486 #, no-wrap
30487 msgid ""
30488 " struct guestfs_lvm_lv_list {\n"
30489 "   uint32_t len; /* Number of elements in list. */\n"
30490 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
30491 " };\n"
30492 " \n"
30493 msgstr ""
30494
30495 #. type: verbatim
30496 #: ../src/guestfs-structs.pod:106
30497 #, no-wrap
30498 msgid ""
30499 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
30500 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
30501 "\n"
30502 msgstr ""
30503
30504 #. type: verbatim
30505 #: ../src/guestfs-structs.pod:111
30506 #, no-wrap
30507 msgid ""
30508 " struct guestfs_stat {\n"
30509 "   int64_t dev;\n"
30510 "   int64_t ino;\n"
30511 "   int64_t mode;\n"
30512 "   int64_t nlink;\n"
30513 "   int64_t uid;\n"
30514 "   int64_t gid;\n"
30515 "   int64_t rdev;\n"
30516 "   int64_t size;\n"
30517 "   int64_t blksize;\n"
30518 "   int64_t blocks;\n"
30519 "   int64_t atime;\n"
30520 "   int64_t mtime;\n"
30521 "   int64_t ctime;\n"
30522 " };\n"
30523 " \n"
30524 msgstr ""
30525
30526 #. type: verbatim
30527 #: ../src/guestfs-structs.pod:127
30528 #, no-wrap
30529 msgid ""
30530 " struct guestfs_stat_list {\n"
30531 "   uint32_t len; /* Number of elements in list. */\n"
30532 "   struct guestfs_stat *val; /* Elements. */\n"
30533 " };\n"
30534 " \n"
30535 msgstr ""
30536
30537 #. type: verbatim
30538 #: ../src/guestfs-structs.pod:132
30539 #, no-wrap
30540 msgid ""
30541 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
30542 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
30543 "\n"
30544 msgstr ""
30545
30546 #. type: verbatim
30547 #: ../src/guestfs-structs.pod:137
30548 #, no-wrap
30549 msgid ""
30550 " struct guestfs_statvfs {\n"
30551 "   int64_t bsize;\n"
30552 "   int64_t frsize;\n"
30553 "   int64_t blocks;\n"
30554 "   int64_t bfree;\n"
30555 "   int64_t bavail;\n"
30556 "   int64_t files;\n"
30557 "   int64_t ffree;\n"
30558 "   int64_t favail;\n"
30559 "   int64_t fsid;\n"
30560 "   int64_t flag;\n"
30561 "   int64_t namemax;\n"
30562 " };\n"
30563 " \n"
30564 msgstr ""
30565
30566 #. type: verbatim
30567 #: ../src/guestfs-structs.pod:151
30568 #, no-wrap
30569 msgid ""
30570 " struct guestfs_statvfs_list {\n"
30571 "   uint32_t len; /* Number of elements in list. */\n"
30572 "   struct guestfs_statvfs *val; /* Elements. */\n"
30573 " };\n"
30574 " \n"
30575 msgstr ""
30576
30577 #. type: verbatim
30578 #: ../src/guestfs-structs.pod:156
30579 #, no-wrap
30580 msgid ""
30581 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
30582 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
30583 "\n"
30584 msgstr ""
30585
30586 #. type: =head2
30587 #: ../src/guestfs-structs.pod:159
30588 msgid "guestfs_dirent"
30589 msgstr ""
30590
30591 #. type: verbatim
30592 #: ../src/guestfs-structs.pod:161
30593 #, no-wrap
30594 msgid ""
30595 " struct guestfs_dirent {\n"
30596 "   int64_t ino;\n"
30597 "   char ftyp;\n"
30598 "   char *name;\n"
30599 " };\n"
30600 " \n"
30601 msgstr ""
30602
30603 #. type: verbatim
30604 #: ../src/guestfs-structs.pod:167
30605 #, no-wrap
30606 msgid ""
30607 " struct guestfs_dirent_list {\n"
30608 "   uint32_t len; /* Number of elements in list. */\n"
30609 "   struct guestfs_dirent *val; /* Elements. */\n"
30610 " };\n"
30611 " \n"
30612 msgstr ""
30613
30614 #. type: verbatim
30615 #: ../src/guestfs-structs.pod:172
30616 #, no-wrap
30617 msgid ""
30618 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
30619 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
30620 "\n"
30621 msgstr ""
30622
30623 #. type: verbatim
30624 #: ../src/guestfs-structs.pod:177
30625 #, no-wrap
30626 msgid ""
30627 " struct guestfs_version {\n"
30628 "   int64_t major;\n"
30629 "   int64_t minor;\n"
30630 "   int64_t release;\n"
30631 "   char *extra;\n"
30632 " };\n"
30633 " \n"
30634 msgstr ""
30635
30636 #. type: verbatim
30637 #: ../src/guestfs-structs.pod:184
30638 #, no-wrap
30639 msgid ""
30640 " struct guestfs_version_list {\n"
30641 "   uint32_t len; /* Number of elements in list. */\n"
30642 "   struct guestfs_version *val; /* Elements. */\n"
30643 " };\n"
30644 " \n"
30645 msgstr ""
30646
30647 #. type: verbatim
30648 #: ../src/guestfs-structs.pod:189
30649 #, no-wrap
30650 msgid ""
30651 " void guestfs_free_version (struct guestfs_free_version *);\n"
30652 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
30653 "\n"
30654 msgstr ""
30655
30656 #. type: =head2
30657 #: ../src/guestfs-structs.pod:192
30658 msgid "guestfs_xattr"
30659 msgstr ""
30660
30661 #. type: verbatim
30662 #: ../src/guestfs-structs.pod:194
30663 #, no-wrap
30664 msgid ""
30665 " struct guestfs_xattr {\n"
30666 "   char *attrname;\n"
30667 "   /* The next two fields describe a byte array. */\n"
30668 "   uint32_t attrval_len;\n"
30669 "   char *attrval;\n"
30670 " };\n"
30671 " \n"
30672 msgstr ""
30673
30674 #. type: verbatim
30675 #: ../src/guestfs-structs.pod:201
30676 #, no-wrap
30677 msgid ""
30678 " struct guestfs_xattr_list {\n"
30679 "   uint32_t len; /* Number of elements in list. */\n"
30680 "   struct guestfs_xattr *val; /* Elements. */\n"
30681 " };\n"
30682 " \n"
30683 msgstr ""
30684
30685 #. type: verbatim
30686 #: ../src/guestfs-structs.pod:206
30687 #, no-wrap
30688 msgid ""
30689 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
30690 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
30691 "\n"
30692 msgstr ""
30693
30694 #. type: =head2
30695 #: ../src/guestfs-structs.pod:209
30696 msgid "guestfs_inotify_event"
30697 msgstr ""
30698
30699 #. type: verbatim
30700 #: ../src/guestfs-structs.pod:211
30701 #, no-wrap
30702 msgid ""
30703 " struct guestfs_inotify_event {\n"
30704 "   int64_t in_wd;\n"
30705 "   uint32_t in_mask;\n"
30706 "   uint32_t in_cookie;\n"
30707 "   char *in_name;\n"
30708 " };\n"
30709 " \n"
30710 msgstr ""
30711
30712 #. type: verbatim
30713 #: ../src/guestfs-structs.pod:218
30714 #, no-wrap
30715 msgid ""
30716 " struct guestfs_inotify_event_list {\n"
30717 "   uint32_t len; /* Number of elements in list. */\n"
30718 "   struct guestfs_inotify_event *val; /* Elements. */\n"
30719 " };\n"
30720 " \n"
30721 msgstr ""
30722
30723 #. type: verbatim
30724 #: ../src/guestfs-structs.pod:223
30725 #, no-wrap
30726 msgid ""
30727 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
30728 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
30729 "\n"
30730 msgstr ""
30731
30732 #. type: =head2
30733 #: ../src/guestfs-structs.pod:226
30734 msgid "guestfs_partition"
30735 msgstr ""
30736
30737 #. type: verbatim
30738 #: ../src/guestfs-structs.pod:228
30739 #, no-wrap
30740 msgid ""
30741 " struct guestfs_partition {\n"
30742 "   int32_t part_num;\n"
30743 "   uint64_t part_start;\n"
30744 "   uint64_t part_end;\n"
30745 "   uint64_t part_size;\n"
30746 " };\n"
30747 " \n"
30748 msgstr ""
30749
30750 #. type: verbatim
30751 #: ../src/guestfs-structs.pod:235
30752 #, no-wrap
30753 msgid ""
30754 " struct guestfs_partition_list {\n"
30755 "   uint32_t len; /* Number of elements in list. */\n"
30756 "   struct guestfs_partition *val; /* Elements. */\n"
30757 " };\n"
30758 " \n"
30759 msgstr ""
30760
30761 #. type: verbatim
30762 #: ../src/guestfs-structs.pod:240
30763 #, no-wrap
30764 msgid ""
30765 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
30766 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
30767 "\n"
30768 msgstr ""
30769
30770 #. type: =head2
30771 #: ../src/guestfs-structs.pod:243
30772 msgid "guestfs_application"
30773 msgstr ""
30774
30775 #. type: verbatim
30776 #: ../src/guestfs-structs.pod:245
30777 #, no-wrap
30778 msgid ""
30779 " struct guestfs_application {\n"
30780 "   char *app_name;\n"
30781 "   char *app_display_name;\n"
30782 "   int32_t app_epoch;\n"
30783 "   char *app_version;\n"
30784 "   char *app_release;\n"
30785 "   char *app_install_path;\n"
30786 "   char *app_trans_path;\n"
30787 "   char *app_publisher;\n"
30788 "   char *app_url;\n"
30789 "   char *app_source_package;\n"
30790 "   char *app_summary;\n"
30791 "   char *app_description;\n"
30792 " };\n"
30793 " \n"
30794 msgstr ""
30795
30796 #. type: verbatim
30797 #: ../src/guestfs-structs.pod:260
30798 #, no-wrap
30799 msgid ""
30800 " struct guestfs_application_list {\n"
30801 "   uint32_t len; /* Number of elements in list. */\n"
30802 "   struct guestfs_application *val; /* Elements. */\n"
30803 " };\n"
30804 " \n"
30805 msgstr ""
30806
30807 #. type: verbatim
30808 #: ../src/guestfs-structs.pod:265
30809 #, no-wrap
30810 msgid ""
30811 " void guestfs_free_application (struct guestfs_free_application *);\n"
30812 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
30813 "\n"
30814 msgstr ""
30815
30816 #. type: textblock
30817 #: ../src/guestfs.pod:5
30818 msgid "guestfs - Library for accessing and modifying virtual machine images"
30819 msgstr ""
30820
30821 #. type: verbatim
30822 #: ../src/guestfs.pod:11
30823 #, no-wrap
30824 msgid ""
30825 " guestfs_h *g = guestfs_create ();\n"
30826 " guestfs_add_drive (g, \"guest.img\");\n"
30827 " guestfs_launch (g);\n"
30828 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30829 " guestfs_touch (g, \"/hello\");\n"
30830 " guestfs_umount (g, \"/\");\n"
30831 " guestfs_close (g);\n"
30832 "\n"
30833 msgstr ""
30834
30835 #. type: textblock
30836 #: ../src/guestfs.pod:25
30837 msgid ""
30838 "Libguestfs is a library for accessing and modifying guest disk images.  "
30839 "Amongst the things this is good for: making batch configuration changes to "
30840 "guests, getting disk used/free statistics (see also: virt-df), migrating "
30841 "between virtualization systems (see also: virt-p2v), performing partial "
30842 "backups, performing partial guest clones, cloning guests and changing "
30843 "registry/UUID/hostname info, and much else besides."
30844 msgstr ""
30845
30846 #. type: textblock
30847 #: ../src/guestfs.pod:33
30848 msgid ""
30849 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
30850 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
30851 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
30852 "qcow2, vmdk."
30853 msgstr ""
30854
30855 #. type: textblock
30856 #: ../src/guestfs.pod:38
30857 msgid ""
30858 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
30859 "what filesystem is in each LV, etc.).  It can also run commands in the "
30860 "context of the guest.  Also you can access filesystems over FUSE."
30861 msgstr ""
30862
30863 #. type: textblock
30864 #: ../src/guestfs.pod:43
30865 msgid ""
30866 "Libguestfs is a library that can be linked with C and C++ management "
30867 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
30868 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
30869 "line."
30870 msgstr ""
30871
30872 #. type: textblock
30873 #: ../src/guestfs.pod:48
30874 msgid ""
30875 "You don't need to be root to use libguestfs, although obviously you do need "
30876 "enough permissions to access the disk images."
30877 msgstr ""
30878
30879 #. type: textblock
30880 #: ../src/guestfs.pod:51
30881 msgid ""
30882 "Libguestfs is a large API because it can do many things.  For a gentle "
30883 "introduction, please read the L</API OVERVIEW> section next."
30884 msgstr ""
30885
30886 #. type: textblock
30887 #: ../src/guestfs.pod:54
30888 msgid ""
30889 "There are also some example programs in the L<guestfs-examples(3)> manual "
30890 "page."
30891 msgstr ""
30892
30893 #. type: =head1
30894 #: ../src/guestfs.pod:57
30895 msgid "API OVERVIEW"
30896 msgstr ""
30897
30898 #. type: textblock
30899 #: ../src/guestfs.pod:59
30900 msgid ""
30901 "This section provides a gentler overview of the libguestfs API.  We also try "
30902 "to group API calls together, where that may not be obvious from reading "
30903 "about the individual calls in the main section of this manual."
30904 msgstr ""
30905
30906 #. type: =head2
30907 #: ../src/guestfs.pod:64
30908 msgid "HANDLES"
30909 msgstr ""
30910
30911 #. type: textblock
30912 #: ../src/guestfs.pod:66
30913 msgid ""
30914 "Before you can use libguestfs calls, you have to create a handle.  Then you "
30915 "must add at least one disk image to the handle, followed by launching the "
30916 "handle, then performing whatever operations you want, and finally closing "
30917 "the handle.  By convention we use the single letter C<g> for the name of the "
30918 "handle variable, although of course you can use any name you want."
30919 msgstr ""
30920
30921 #. type: textblock
30922 #: ../src/guestfs.pod:73
30923 msgid "The general structure of all libguestfs-using programs looks like this:"
30924 msgstr ""
30925
30926 #. type: verbatim
30927 #: ../src/guestfs.pod:76
30928 #, no-wrap
30929 msgid ""
30930 " guestfs_h *g = guestfs_create ();\n"
30931 " \n"
30932 msgstr ""
30933
30934 #. type: verbatim
30935 #: ../src/guestfs.pod:78
30936 #, no-wrap
30937 msgid ""
30938 " /* Call guestfs_add_drive additional times if there are\n"
30939 "  * multiple disk images.\n"
30940 "  */\n"
30941 " guestfs_add_drive (g, \"guest.img\");\n"
30942 " \n"
30943 msgstr ""
30944
30945 #. type: verbatim
30946 #: ../src/guestfs.pod:83
30947 #, no-wrap
30948 msgid ""
30949 " /* Most manipulation calls won't work until you've launched\n"
30950 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
30951 "  * and _before_ other commands.\n"
30952 "  */\n"
30953 " guestfs_launch (g);\n"
30954 " \n"
30955 msgstr ""
30956
30957 #. type: verbatim
30958 #: ../src/guestfs.pod:89
30959 #, no-wrap
30960 msgid ""
30961 " /* Now you can examine what partitions, LVs etc are available.\n"
30962 "  */\n"
30963 " char **partitions = guestfs_list_partitions (g);\n"
30964 " char **logvols = guestfs_lvs (g);\n"
30965 " \n"
30966 msgstr ""
30967
30968 #. type: verbatim
30969 #: ../src/guestfs.pod:94
30970 #, no-wrap
30971 msgid ""
30972 " /* To access a filesystem in the image, you must mount it.\n"
30973 "  */\n"
30974 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30975 " \n"
30976 msgstr ""
30977
30978 #. type: verbatim
30979 #: ../src/guestfs.pod:98
30980 #, no-wrap
30981 msgid ""
30982 " /* Now you can perform filesystem actions on the guest\n"
30983 "  * disk image.\n"
30984 "  */\n"
30985 " guestfs_touch (g, \"/hello\");\n"
30986 " \n"
30987 msgstr ""
30988
30989 #. type: verbatim
30990 #: ../src/guestfs.pod:103
30991 #, no-wrap
30992 msgid ""
30993 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
30994 "  * it is done automatically when you close the handle.  See\n"
30995 "  * discussion of autosync in this page.\n"
30996 "  */\n"
30997 " guestfs_sync (g);\n"
30998 " \n"
30999 msgstr ""
31000
31001 #. type: verbatim
31002 #: ../src/guestfs.pod:109
31003 #, no-wrap
31004 msgid ""
31005 " /* Close the handle 'g'. */\n"
31006 " guestfs_close (g);\n"
31007 "\n"
31008 msgstr ""
31009
31010 #. type: textblock
31011 #: ../src/guestfs.pod:112
31012 msgid ""
31013 "The code above doesn't include any error checking.  In real code you should "
31014 "check return values carefully for errors.  In general all functions that "
31015 "return integers return C<-1> on error, and all functions that return "
31016 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
31017 "how to handle errors, and consult the documentation for each function call "
31018 "below to see precisely how they return error indications.  See L<guestfs-"
31019 "examples(3)> for fully worked examples."
31020 msgstr ""
31021
31022 #. type: =head2
31023 #: ../src/guestfs.pod:121
31024 msgid "DISK IMAGES"
31025 msgstr ""
31026
31027 #. type: textblock
31028 #: ../src/guestfs.pod:123
31029 msgid ""
31030 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
31031 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
31032 "actual block device, or simply an empty file of zeroes that you have created "
31033 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
31034 "of these."
31035 msgstr ""
31036
31037 #. type: textblock
31038 #: ../src/guestfs.pod:129
31039 msgid ""
31040 "The call you should use in modern code for adding drives is L</"
31041 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
31042 "specifying that the format is raw, do:"
31043 msgstr ""
31044
31045 #. type: verbatim
31046 #: ../src/guestfs.pod:133
31047 #, no-wrap
31048 msgid ""
31049 " guestfs_add_drive_opts (g, filename,\n"
31050 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31051 "                         -1);\n"
31052 "\n"
31053 msgstr ""
31054
31055 #. type: textblock
31056 #: ../src/guestfs.pod:137
31057 msgid "You can add a disk read-only using:"
31058 msgstr ""
31059
31060 #. type: verbatim
31061 #: ../src/guestfs.pod:139
31062 #, no-wrap
31063 msgid ""
31064 " guestfs_add_drive_opts (g, filename,\n"
31065 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
31066 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
31067 "                         -1);\n"
31068 "\n"
31069 msgstr ""
31070
31071 #. type: textblock
31072 #: ../src/guestfs.pod:144
31073 msgid ""
31074 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
31075 "libguestfs won't modify the file."
31076 msgstr ""
31077
31078 #. type: textblock
31079 #: ../src/guestfs.pod:147
31080 msgid ""
31081 "Be extremely cautious if the disk image is in use, eg. if it is being used "
31082 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
31083 "corruption, but adding it read-only is safe."
31084 msgstr ""
31085
31086 #. type: textblock
31087 #: ../src/guestfs.pod:151
31088 msgid ""
31089 "You must add at least one disk image, and you may add multiple disk images.  "
31090 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
31091 "first one you added), C</dev/sdb> (for the second one you added), etc."
31092 msgstr ""
31093
31094 #. type: textblock
31095 #: ../src/guestfs.pod:156
31096 msgid ""
31097 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
31098 "can call L</guestfs_list_devices> to get a list of the device names, in the "
31099 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
31100 msgstr ""
31101
31102 #. type: =head2
31103 #: ../src/guestfs.pod:161
31104 msgid "MOUNTING"
31105 msgstr ""
31106
31107 #. type: textblock
31108 #: ../src/guestfs.pod:163
31109 msgid ""
31110 "Before you can read or write files, create directories and so on in a disk "
31111 "image that contains filesystems, you have to mount those filesystems using "
31112 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
31113 "a disk image contains (for example) one partition with a filesystem on that "
31114 "partition, then you can mount it directly:"
31115 msgstr ""
31116
31117 #. type: verbatim
31118 #: ../src/guestfs.pod:170
31119 #, no-wrap
31120 msgid ""
31121 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
31122 "\n"
31123 msgstr ""
31124
31125 #. type: textblock
31126 #: ../src/guestfs.pod:172
31127 msgid ""
31128 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
31129 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
31130 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
31131 "that these are libguestfs virtual devices, and are nothing to do with host "
31132 "devices."
31133 msgstr ""
31134
31135 #. type: textblock
31136 #: ../src/guestfs.pod:178
31137 msgid ""
31138 "If you are given a disk image and you don't know what it contains then you "
31139 "have to find out.  Libguestfs can do that too: use L</"
31140 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
31141 "LVs, and either try mounting each to see what is mountable, or else examine "
31142 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
31143 "filesystems, use L</guestfs_list_filesystems>."
31144 msgstr ""
31145
31146 #. type: textblock
31147 #: ../src/guestfs.pod:186
31148 msgid ""
31149 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
31150 "L</INSPECTION> below).  But you might find it easier to look at higher level "
31151 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
31152 msgstr ""
31153
31154 #. type: textblock
31155 #: ../src/guestfs.pod:191
31156 msgid ""
31157 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
31158 "several other variations of the C<guestfs_mount_*> call."
31159 msgstr ""
31160
31161 #. type: =head2
31162 #: ../src/guestfs.pod:194
31163 msgid "FILESYSTEM ACCESS AND MODIFICATION"
31164 msgstr ""
31165
31166 #. type: textblock
31167 #: ../src/guestfs.pod:196
31168 msgid ""
31169 "The majority of the libguestfs API consists of fairly low-level calls for "
31170 "accessing and modifying the files, directories, symlinks etc on mounted "
31171 "filesystems.  There are over a hundred such calls which you can find listed "
31172 "in detail below in this man page, and we don't even pretend to cover them "
31173 "all in this overview."
31174 msgstr ""
31175
31176 #. type: textblock
31177 #: ../src/guestfs.pod:202
31178 msgid ""
31179 "Specify filenames as full paths, starting with C<\"/\"> and including the "
31180 "mount point."
31181 msgstr ""
31182
31183 #. type: textblock
31184 #: ../src/guestfs.pod:205
31185 msgid ""
31186 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
31187 "the file called C<\"etc/passwd\"> then you could do:"
31188 msgstr ""
31189
31190 #. type: verbatim
31191 #: ../src/guestfs.pod:208
31192 #, no-wrap
31193 msgid ""
31194 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
31195 "\n"
31196 msgstr ""
31197
31198 #. type: textblock
31199 #: ../src/guestfs.pod:210
31200 msgid ""
31201 "This would return C<data> as a newly allocated buffer containing the full "
31202 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
31203 "or C<NULL> if there was an error."
31204 msgstr ""
31205
31206 #. type: textblock
31207 #: ../src/guestfs.pod:214
31208 msgid ""
31209 "As another example, to create a top-level directory on that filesystem "
31210 "called C<\"var\"> you would do:"
31211 msgstr ""
31212
31213 #. type: verbatim
31214 #: ../src/guestfs.pod:217
31215 #, no-wrap
31216 msgid ""
31217 " guestfs_mkdir (g, \"/var\");\n"
31218 "\n"
31219 msgstr ""
31220
31221 #. type: textblock
31222 #: ../src/guestfs.pod:219
31223 msgid "To create a symlink you could do:"
31224 msgstr ""
31225
31226 #. type: verbatim
31227 #: ../src/guestfs.pod:221
31228 #, no-wrap
31229 msgid ""
31230 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
31231 "               \"/etc/rc3.d/S30portmap\");\n"
31232 "\n"
31233 msgstr ""
31234
31235 #. type: textblock
31236 #: ../src/guestfs.pod:224
31237 msgid ""
31238 "Libguestfs will reject attempts to use relative paths and there is no "
31239 "concept of a current working directory."
31240 msgstr ""
31241
31242 #. type: textblock
31243 #: ../src/guestfs.pod:227
31244 msgid ""
31245 "Libguestfs can return errors in many situations: for example if the "
31246 "filesystem isn't writable, or if a file or directory that you requested "
31247 "doesn't exist.  If you are using the C API (documented here)  you have to "
31248 "check for those error conditions after each call.  (Other language bindings "
31249 "turn these errors into exceptions)."
31250 msgstr ""
31251
31252 #. type: textblock
31253 #: ../src/guestfs.pod:233
31254 msgid ""
31255 "File writes are affected by the per-handle umask, set by calling L</"
31256 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
31257 msgstr ""
31258
31259 #. type: =head2
31260 #: ../src/guestfs.pod:236
31261 msgid "PARTITIONING"
31262 msgstr ""
31263
31264 #. type: textblock
31265 #: ../src/guestfs.pod:238
31266 msgid ""
31267 "Libguestfs contains API calls to read, create and modify partition tables on "
31268 "disk images."
31269 msgstr ""
31270
31271 #. type: textblock
31272 #: ../src/guestfs.pod:241
31273 msgid ""
31274 "In the common case where you want to create a single partition covering the "
31275 "whole disk, you should use the L</guestfs_part_disk> call:"
31276 msgstr ""
31277
31278 #. type: verbatim
31279 #: ../src/guestfs.pod:245
31280 #, no-wrap
31281 msgid ""
31282 " const char *parttype = \"mbr\";\n"
31283 " if (disk_is_larger_than_2TB)\n"
31284 "   parttype = \"gpt\";\n"
31285 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
31286 "\n"
31287 msgstr ""
31288
31289 #. type: textblock
31290 #: ../src/guestfs.pod:250
31291 msgid ""
31292 "Obviously this effectively wipes anything that was on that disk image before."
31293 msgstr ""
31294
31295 #. type: =head2
31296 #: ../src/guestfs.pod:253
31297 msgid "LVM2"
31298 msgstr ""
31299
31300 #. type: textblock
31301 #: ../src/guestfs.pod:255
31302 msgid ""
31303 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
31304 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
31305 "you familiarize yourself with the concepts of physical volumes, volume "
31306 "groups and logical volumes."
31307 msgstr ""
31308
31309 #. type: textblock
31310 #: ../src/guestfs.pod:260
31311 msgid ""
31312 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
31313 "tldp.org/HOWTO/LVM-HOWTO/>."
31314 msgstr ""
31315
31316 #. type: =head2
31317 #: ../src/guestfs.pod:263
31318 msgid "DOWNLOADING"
31319 msgstr ""
31320
31321 #. type: textblock
31322 #: ../src/guestfs.pod:265
31323 msgid ""
31324 "Use L</guestfs_cat> to download small, text only files.  This call is "
31325 "limited to files which are less than 2 MB and which cannot contain any ASCII "
31326 "NUL (C<\\0>) characters.  However the API is very simple to use."
31327 msgstr ""
31328
31329 #. type: textblock
31330 #: ../src/guestfs.pod:269
31331 msgid ""
31332 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
31333 "bit data, since it returns a (pointer, size) pair.  However it is still "
31334 "limited to \"small\" files, less than 2 MB."
31335 msgstr ""
31336
31337 #. type: textblock
31338 #: ../src/guestfs.pod:273
31339 msgid ""
31340 "L</guestfs_download> can be used to download any file, with no limits on "
31341 "content or size (even files larger than 4 GB)."
31342 msgstr ""
31343
31344 #. type: textblock
31345 #: ../src/guestfs.pod:276
31346 msgid ""
31347 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
31348 msgstr ""
31349
31350 #. type: =head2
31351 #: ../src/guestfs.pod:279
31352 msgid "UPLOADING"
31353 msgstr ""
31354
31355 #. type: textblock
31356 #: ../src/guestfs.pod:281
31357 msgid ""
31358 "It's often the case that you want to write a file or files to the disk image."
31359 msgstr ""
31360
31361 #. type: textblock
31362 #: ../src/guestfs.pod:284
31363 msgid ""
31364 "To write a small file with fixed content, use L</guestfs_write>.  To create "
31365 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
31366 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
31367 "of other functions for creating test files, for example L</guestfs_fill> and "
31368 "L</guestfs_fill_pattern>."
31369 msgstr ""
31370
31371 #. type: textblock
31372 #: ../src/guestfs.pod:290
31373 msgid ""
31374 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
31375 "file content or size (even files larger than 4 GB)."
31376 msgstr ""
31377
31378 #. type: textblock
31379 #: ../src/guestfs.pod:293
31380 msgid ""
31381 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
31382 msgstr ""
31383
31384 #. type: textblock
31385 #: ../src/guestfs.pod:295
31386 msgid ""
31387 "However the fastest way to upload I<large numbers of arbitrary files> is to "
31388 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
31389 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
31390 "in a predictable way (eg. adding it last after all other drives) then you "
31391 "can get the device name from L</guestfs_list_devices> and mount it directly "
31392 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
31393 "portable between kernel versions, and they don't support labels or UUIDs.  "
31394 "If you want to pre-build an image or you need to mount it using a label or "
31395 "UUID, use an ISO image instead."
31396 msgstr ""
31397
31398 #. type: =head2
31399 #: ../src/guestfs.pod:306
31400 msgid "COPYING"
31401 msgstr ""
31402
31403 #. type: textblock
31404 #: ../src/guestfs.pod:308
31405 msgid ""
31406 "There are various different commands for copying between files and devices "
31407 "and in and out of the guest filesystem.  These are summarised in the table "
31408 "below."
31409 msgstr ""
31410
31411 #. type: =item
31412 #: ../src/guestfs.pod:314
31413 msgid "B<file> to B<file>"
31414 msgstr ""
31415
31416 #. type: textblock
31417 #: ../src/guestfs.pod:316
31418 msgid ""
31419 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
31420 "directories recursively."
31421 msgstr ""
31422
31423 #. type: =item
31424 #: ../src/guestfs.pod:319
31425 msgid "B<file or device> to B<file or device>"
31426 msgstr ""
31427
31428 #. type: textblock
31429 #: ../src/guestfs.pod:321
31430 msgid ""
31431 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
31432 "devices in the guest."
31433 msgstr ""
31434
31435 #. type: textblock
31436 #: ../src/guestfs.pod:324
31437 msgid "Example: duplicate the contents of an LV:"
31438 msgstr ""
31439
31440 #. type: verbatim
31441 #: ../src/guestfs.pod:326
31442 #, no-wrap
31443 msgid ""
31444 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
31445 "\n"
31446 msgstr ""
31447
31448 #. type: textblock
31449 #: ../src/guestfs.pod:328
31450 msgid ""
31451 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
31452 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
31453 "guestfs_copy_size>."
31454 msgstr ""
31455
31456 #. type: =item
31457 #: ../src/guestfs.pod:332
31458 msgid "B<file on the host> to B<file or device>"
31459 msgstr ""
31460
31461 #. type: textblock
31462 #: ../src/guestfs.pod:334
31463 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
31464 msgstr ""
31465
31466 #. type: =item
31467 #: ../src/guestfs.pod:336
31468 msgid "B<file or device> to B<file on the host>"
31469 msgstr ""
31470
31471 #. type: textblock
31472 #: ../src/guestfs.pod:338
31473 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
31474 msgstr ""
31475
31476 #. type: =head2
31477 #: ../src/guestfs.pod:342
31478 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
31479 msgstr ""
31480
31481 #. type: textblock
31482 #: ../src/guestfs.pod:344
31483 msgid ""
31484 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
31485 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
31486 "appears you can only upload and download to files.  However many Un*x-like "
31487 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
31488 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
31489 "and arbitrary file descriptor N."
31490 msgstr ""
31491
31492 #. type: textblock
31493 #: ../src/guestfs.pod:352
31494 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
31495 msgstr ""
31496
31497 #. type: verbatim
31498 #: ../src/guestfs.pod:355
31499 #, no-wrap
31500 msgid ""
31501 " guestfs_download (g, filename, \"/dev/stdout\");\n"
31502 "\n"
31503 msgstr ""
31504
31505 #. type: textblock
31506 #: ../src/guestfs.pod:357
31507 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
31508 msgstr ""
31509
31510 #. type: verbatim
31511 #: ../src/guestfs.pod:359
31512 #, no-wrap
31513 msgid ""
31514 " char devfd[64];\n"
31515 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
31516 " guestfs_tar_out (g, \"/\", devfd);\n"
31517 "\n"
31518 msgstr ""
31519
31520 #. type: =head2
31521 #: ../src/guestfs.pod:363
31522 msgid "LISTING FILES"
31523 msgstr ""
31524
31525 #. type: textblock
31526 #: ../src/guestfs.pod:365
31527 msgid ""
31528 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
31529 "L<guestfish(1)>-equivalent command C<ll>)."
31530 msgstr ""
31531
31532 #. type: textblock
31533 #: ../src/guestfs.pod:368
31534 msgid ""
31535 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
31536 "programs, as a flat list of strings."
31537 msgstr ""
31538
31539 #. type: textblock
31540 #: ../src/guestfs.pod:371
31541 msgid ""
31542 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
31543 "directory, plus additional information about each one.  It is more "
31544 "equivalent to using the L<readdir(3)> call on a local filesystem."
31545 msgstr ""
31546
31547 #. type: textblock
31548 #: ../src/guestfs.pod:375
31549 msgid ""
31550 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
31551 msgstr ""
31552
31553 #. type: =head2
31554 #: ../src/guestfs.pod:378
31555 msgid "RUNNING COMMANDS"
31556 msgstr ""
31557
31558 #. type: textblock
31559 #: ../src/guestfs.pod:380
31560 msgid ""
31561 "Although libguestfs is primarily an API for manipulating files inside guest "
31562 "images, we also provide some limited facilities for running commands inside "
31563 "guests."
31564 msgstr ""
31565
31566 #. type: textblock
31567 #: ../src/guestfs.pod:384
31568 msgid "There are many limitations to this:"
31569 msgstr ""
31570
31571 #. type: textblock
31572 #: ../src/guestfs.pod:390
31573 msgid ""
31574 "The kernel version that the command runs under will be different from what "
31575 "it expects."
31576 msgstr ""
31577
31578 #. type: textblock
31579 #: ../src/guestfs.pod:395
31580 msgid ""
31581 "If the command needs to communicate with daemons, then most likely they "
31582 "won't be running."
31583 msgstr ""
31584
31585 #. type: textblock
31586 #: ../src/guestfs.pod:400
31587 msgid "The command will be running in limited memory."
31588 msgstr ""
31589
31590 #. type: textblock
31591 #: ../src/guestfs.pod:404
31592 msgid ""
31593 "The network may not be available unless you enable it (see L</"
31594 "guestfs_set_network>)."
31595 msgstr ""
31596
31597 #. type: textblock
31598 #: ../src/guestfs.pod:409
31599 msgid "Only supports Linux guests (not Windows, BSD, etc)."
31600 msgstr ""
31601
31602 #. type: textblock
31603 #: ../src/guestfs.pod:413
31604 msgid ""
31605 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
31606 msgstr ""
31607
31608 #. type: textblock
31609 #: ../src/guestfs.pod:418
31610 msgid ""
31611 "For SELinux guests, you may need to enable SELinux and load policy first.  "
31612 "See L</SELINUX> in this manpage."
31613 msgstr ""
31614
31615 #. type: textblock
31616 #: ../src/guestfs.pod:423
31617 msgid ""
31618 "I<Security:> It is not safe to run commands from untrusted, possibly "
31619 "malicious guests.  These commands may attempt to exploit your program by "
31620 "sending unexpected output.  They could also try to exploit the Linux kernel "
31621 "or qemu provided by the libguestfs appliance.  They could use the network "
31622 "provided by the libguestfs appliance to bypass ordinary network partitions "
31623 "and firewalls.  They could use the elevated privileges or different SELinux "
31624 "context of your program to their advantage."
31625 msgstr ""
31626
31627 #. type: textblock
31628 #: ../src/guestfs.pod:432
31629 msgid ""
31630 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
31631 "(a script which runs when the guest next boots normally), and to have this "
31632 "script run the commands you want in the normal context of the running guest, "
31633 "network security and so on.  For information about other security issues, "
31634 "see L</SECURITY>."
31635 msgstr ""
31636
31637 #. type: textblock
31638 #: ../src/guestfs.pod:440
31639 msgid ""
31640 "The two main API calls to run commands are L</guestfs_command> and L</"
31641 "guestfs_sh> (there are also variations)."
31642 msgstr ""
31643
31644 #. type: textblock
31645 #: ../src/guestfs.pod:443
31646 msgid ""
31647 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
31648 "shell globs, redirections, etc will work."
31649 msgstr ""
31650
31651 #. type: =head2
31652 #: ../src/guestfs.pod:446
31653 msgid "CONFIGURATION FILES"
31654 msgstr ""
31655
31656 #. type: textblock
31657 #: ../src/guestfs.pod:448
31658 msgid ""
31659 "To read and write configuration files in Linux guest filesystems, we "
31660 "strongly recommend using Augeas.  For example, Augeas understands how to "
31661 "read and write, say, a Linux shadow password file or X.org configuration "
31662 "file, and so avoids you having to write that code."
31663 msgstr ""
31664
31665 #. type: textblock
31666 #: ../src/guestfs.pod:453
31667 msgid ""
31668 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
31669 "document Augeas itself here because there is excellent documentation on the "
31670 "L<http://augeas.net/> website."
31671 msgstr ""
31672
31673 #. type: textblock
31674 #: ../src/guestfs.pod:457
31675 msgid ""
31676 "If you don't want to use Augeas (you fool!) then try calling L</"
31677 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
31678 "over."
31679 msgstr ""
31680
31681 #. type: =head2
31682 #: ../src/guestfs.pod:461
31683 msgid "SELINUX"
31684 msgstr ""
31685
31686 #. type: textblock
31687 #: ../src/guestfs.pod:463
31688 msgid ""
31689 "We support SELinux guests.  To ensure that labeling happens correctly in "
31690 "SELinux guests, you need to enable SELinux and load the guest's policy:"
31691 msgstr ""
31692
31693 #. type: textblock
31694 #: ../src/guestfs.pod:471
31695 msgid "Before launching, do:"
31696 msgstr ""
31697
31698 #. type: verbatim
31699 #: ../src/guestfs.pod:473
31700 #, no-wrap
31701 msgid ""
31702 " guestfs_set_selinux (g, 1);\n"
31703 "\n"
31704 msgstr ""
31705
31706 #. type: textblock
31707 #: ../src/guestfs.pod:477
31708 msgid ""
31709 "After mounting the guest's filesystem(s), load the policy.  This is best "
31710 "done by running the L<load_policy(8)> command in the guest itself:"
31711 msgstr ""
31712
31713 #. type: verbatim
31714 #: ../src/guestfs.pod:481
31715 #, no-wrap
31716 msgid ""
31717 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
31718 "\n"
31719 msgstr ""
31720
31721 #. type: textblock
31722 #: ../src/guestfs.pod:483
31723 msgid ""
31724 "(Older versions of C<load_policy> require you to specify the name of the "
31725 "policy file)."
31726 msgstr ""
31727
31728 #. type: textblock
31729 #: ../src/guestfs.pod:488
31730 msgid ""
31731 "Optionally, set the security context for the API.  The correct security "
31732 "context to use can only be known by inspecting the guest.  As an example:"
31733 msgstr ""
31734
31735 #. type: verbatim
31736 #: ../src/guestfs.pod:492
31737 #, no-wrap
31738 msgid ""
31739 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
31740 "\n"
31741 msgstr ""
31742
31743 #. type: textblock
31744 #: ../src/guestfs.pod:496
31745 msgid "This will work for running commands and editing existing files."
31746 msgstr ""
31747
31748 #. type: textblock
31749 #: ../src/guestfs.pod:498
31750 msgid ""
31751 "When new files are created, you may need to label them explicitly, for "
31752 "example by running the external command C<restorecon pathname>."
31753 msgstr ""
31754
31755 #. type: =head2
31756 #: ../src/guestfs.pod:502
31757 msgid "UMASK"
31758 msgstr ""
31759
31760 #. type: textblock
31761 #: ../src/guestfs.pod:504
31762 msgid ""
31763 "Certain calls are affected by the current file mode creation mask (the "
31764 "\"umask\").  In particular ones which create files or directories, such as "
31765 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
31766 "either the default mode that the file is created with or modifies the mode "
31767 "that you supply."
31768 msgstr ""
31769
31770 #. type: textblock
31771 #: ../src/guestfs.pod:510
31772 msgid ""
31773 "The default umask is C<022>, so files are created with modes such as C<0644> "
31774 "and directories with C<0755>."
31775 msgstr ""
31776
31777 #. type: textblock
31778 #: ../src/guestfs.pod:513
31779 msgid ""
31780 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
31781 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
31782 "guestfs_chmod> after creating each file or directory."
31783 msgstr ""
31784
31785 #. type: textblock
31786 #: ../src/guestfs.pod:517
31787 msgid "For more information about umask, see L<umask(2)>."
31788 msgstr ""
31789
31790 #. type: textblock
31791 #: ../src/guestfs.pod:521
31792 msgid ""
31793 "Libguestfs allows you to access Linux guests which have been encrypted using "
31794 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
31795 "standard.  This includes nearly all whole disk encryption systems used by "
31796 "modern Linux guests."
31797 msgstr ""
31798
31799 #. type: textblock
31800 #: ../src/guestfs.pod:527
31801 msgid ""
31802 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
31803 "returns the string C<crypto_LUKS>)."
31804 msgstr ""
31805
31806 #. type: textblock
31807 #: ../src/guestfs.pod:530
31808 msgid ""
31809 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
31810 "will require the passphrase!"
31811 msgstr ""
31812
31813 #. type: textblock
31814 #: ../src/guestfs.pod:533
31815 msgid ""
31816 "Opening a LUKS device creates a new device mapper device called C</dev/"
31817 "mapper/mapname> (where C<mapname> is the string you supply to L</"
31818 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
31819 "from and encrypted to the underlying block device respectively."
31820 msgstr ""
31821
31822 #. type: textblock
31823 #: ../src/guestfs.pod:539
31824 msgid ""
31825 "LVM volume groups on the device can be made visible by calling L</"
31826 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
31827 "(s) can now be mounted in the usual way."
31828 msgstr ""
31829
31830 #. type: textblock
31831 #: ../src/guestfs.pod:543
31832 msgid ""
31833 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
31834 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
31835 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
31836 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
31837 "underlying encrypted block device)."
31838 msgstr ""
31839
31840 #. type: =head2
31841 #: ../src/guestfs.pod:550
31842 msgid "INSPECTION"
31843 msgstr ""
31844
31845 #. type: textblock
31846 #: ../src/guestfs.pod:552
31847 msgid ""
31848 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
31849 "contains operating systems, an install CD or a live CD.  (These APIs used to "
31850 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
31851 "version 1.5.3 the most frequently used part of this library has been "
31852 "rewritten in C and moved into the core code)."
31853 msgstr ""
31854
31855 #. type: textblock
31856 #: ../src/guestfs.pod:559
31857 msgid ""
31858 "Add all disks belonging to the unknown virtual machine and call L</"
31859 "guestfs_launch> in the usual way."
31860 msgstr ""
31861
31862 #. type: textblock
31863 #: ../src/guestfs.pod:562
31864 msgid ""
31865 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
31866 "and certain heuristics, and returns a list of operating systems that were "
31867 "found.  An empty list means none were found.  A single element is the root "
31868 "filesystem of the operating system.  For dual- or multi-boot guests, "
31869 "multiple roots can be returned, each one corresponding to a separate "
31870 "operating system.  (Multi-boot virtual machines are extremely rare in the "
31871 "world of virtualization, but since this scenario can happen, we have built "
31872 "libguestfs to deal with it.)"
31873 msgstr ""
31874
31875 #. type: textblock
31876 #: ../src/guestfs.pod:571
31877 msgid ""
31878 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
31879 "to get additional details about that operating system.  For example, call L</"
31880 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
31881 "Windows and Linux-based operating systems respectively."
31882 msgstr ""
31883
31884 #. type: textblock
31885 #: ../src/guestfs.pod:577
31886 msgid ""
31887 "Un*x-like and Linux-based operating systems usually consist of several "
31888 "filesystems which are mounted at boot time (for example, a separate boot "
31889 "partition mounted on C</boot>).  The inspection rules are able to detect how "
31890 "filesystems correspond to mount points.  Call "
31891 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
31892 "hash table like this example:"
31893 msgstr ""
31894
31895 #. type: verbatim
31896 #: ../src/guestfs.pod:584
31897 #, no-wrap
31898 msgid ""
31899 " /boot => /dev/sda1\n"
31900 " /     => /dev/vg_guest/lv_root\n"
31901 " /usr  => /dev/vg_guest/lv_usr\n"
31902 "\n"
31903 msgstr ""
31904
31905 #. type: textblock
31906 #: ../src/guestfs.pod:588
31907 msgid ""
31908 "The caller can then make calls to L</guestfs_mount_options> to mount the "
31909 "filesystems as suggested."
31910 msgstr ""
31911
31912 #. type: textblock
31913 #: ../src/guestfs.pod:591
31914 msgid ""
31915 "Be careful to mount filesystems in the right order (eg. C</> before C</"
31916 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
31917 msgstr ""
31918
31919 #. type: textblock
31920 #: ../src/guestfs.pod:595
31921 msgid ""
31922 "Inspection currently only works for some common operating systems.  "
31923 "Contributors are welcome to send patches for other operating systems that we "
31924 "currently cannot detect."
31925 msgstr ""
31926
31927 #. type: textblock
31928 #: ../src/guestfs.pod:599
31929 msgid ""
31930 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
31931 "for more details.  The L</guestfs_inspect_os> function just ignores any "
31932 "encrypted devices."
31933 msgstr ""
31934
31935 #. type: textblock
31936 #: ../src/guestfs.pod:603
31937 msgid ""
31938 "A note on the implementation: The call L</guestfs_inspect_os> performs "
31939 "inspection and caches the results in the guest handle.  Subsequent calls to "
31940 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
31941 "read the disks.  If you change the content of the guest disks, you can redo "
31942 "inspection by calling L</guestfs_inspect_os> again.  (L</"
31943 "guestfs_inspect_list_applications> works a little differently from the other "
31944 "calls and does read the disks.  See documentation for that function for "
31945 "details)."
31946 msgstr ""
31947
31948 #. type: =head3
31949 #: ../src/guestfs.pod:612
31950 msgid "INSPECTING INSTALL DISKS"
31951 msgstr ""
31952
31953 #. type: textblock
31954 #: ../src/guestfs.pod:614
31955 msgid ""
31956 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
31957 "CDs and more."
31958 msgstr ""
31959
31960 #. type: textblock
31961 #: ../src/guestfs.pod:617
31962 msgid ""
31963 "Call L</guestfs_inspect_get_format> to return the format of the operating "
31964 "system, which currently can be C<installed> (a regular operating system) or "
31965 "C<installer> (some sort of install disk)."
31966 msgstr ""
31967
31968 #. type: textblock
31969 #: ../src/guestfs.pod:621
31970 msgid ""
31971 "Further information is available about the operating system that can be "
31972 "installed using the regular inspection APIs like L</"
31973 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
31974 msgstr ""
31975
31976 #. type: textblock
31977 #: ../src/guestfs.pod:626
31978 msgid ""
31979 "Some additional information specific to installer disks is also available "
31980 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
31981 "guestfs_inspect_is_multipart> calls."
31982 msgstr ""
31983
31984 #. type: =head2
31985 #: ../src/guestfs.pod:631
31986 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
31987 msgstr ""
31988
31989 #. type: textblock
31990 #: ../src/guestfs.pod:633
31991 msgid ""
31992 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
31993 "ntfs-3g.org/> driver."
31994 msgstr ""
31995
31996 #. type: =head3
31997 #: ../src/guestfs.pod:636
31998 msgid "DRIVE LETTERS AND PATHS"
31999 msgstr ""
32000
32001 #. type: textblock
32002 #: ../src/guestfs.pod:638
32003 msgid ""
32004 "DOS and Windows still use drive letters, and the filesystems are always "
32005 "treated as case insensitive by Windows itself, and therefore you might find "
32006 "a Windows configuration file referring to a path like C<c:\\windows"
32007 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
32008 "might be referred to as C</WINDOWS/System32>."
32009 msgstr ""
32010
32011 #. type: textblock
32012 #: ../src/guestfs.pod:644
32013 msgid ""
32014 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
32015 "L</guestfs_inspect_get_drive_mappings>)"
32016 msgstr ""
32017
32018 #. type: textblock
32019 #: ../src/guestfs.pod:647
32020 msgid ""
32021 "Dealing with separator characters (backslash vs forward slash) is outside "
32022 "the scope of libguestfs, but usually a simple character replacement will "
32023 "work."
32024 msgstr ""
32025
32026 #. type: textblock
32027 #: ../src/guestfs.pod:651
32028 msgid ""
32029 "To resolve the case insensitivity of paths, call L</"
32030 "guestfs_case_sensitive_path>."
32031 msgstr ""
32032
32033 #. type: =head3
32034 #: ../src/guestfs.pod:654
32035 msgid "ACCESSING THE WINDOWS REGISTRY"
32036 msgstr ""
32037
32038 #. type: textblock
32039 #: ../src/guestfs.pod:656
32040 msgid ""
32041 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
32042 "files, through the library C<hivex> which is part of the libguestfs project "
32043 "although ships as a separate tarball.  You have to locate and download the "
32044 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
32045 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
32046 "reg(1)> for more help on this issue."
32047 msgstr ""
32048
32049 #. type: =head3
32050 #: ../src/guestfs.pod:664
32051 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
32052 msgstr ""
32053
32054 #. type: textblock
32055 #: ../src/guestfs.pod:666
32056 msgid ""
32057 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
32058 "provide something which looks like a Linux symlink.  The way it tries to do "
32059 "the rewriting is described here:"
32060 msgstr ""
32061
32062 #. type: textblock
32063 #: ../src/guestfs.pod:670
32064 msgid ""
32065 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
32066 "symbolic-links/>"
32067 msgstr ""
32068
32069 #. type: textblock
32070 #: ../src/guestfs.pod:672
32071 msgid ""
32072 "The essential problem is that ntfs-3g simply does not have enough "
32073 "information to do a correct job.  NTFS links can contain drive letters and "
32074 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
32075 "It is almost certainly the case that libguestfs callers should ignore what "
32076 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
32077 msgstr ""
32078
32079 #. type: textblock
32080 #: ../src/guestfs.pod:679
32081 msgid ""
32082 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
32083 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
32084 "attribute, and read the raw reparse data from that (you can find the format "
32085 "documented in various places around the web)."
32086 msgstr ""
32087
32088 #. type: =head3
32089 #: ../src/guestfs.pod:684
32090 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
32091 msgstr ""
32092
32093 #. type: textblock
32094 #: ../src/guestfs.pod:686
32095 msgid ""
32096 "There are other useful extended attributes that can be read from ntfs-3g "
32097 "filesystems (using L</guestfs_getxattr>).  See:"
32098 msgstr ""
32099
32100 #. type: textblock
32101 #: ../src/guestfs.pod:689
32102 msgid ""
32103 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
32104 msgstr ""
32105
32106 #. type: =head2
32107 #: ../src/guestfs.pod:691
32108 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
32109 msgstr ""
32110
32111 #. type: textblock
32112 #: ../src/guestfs.pod:693
32113 msgid ""
32114 "Although we don't want to discourage you from using the C API, we will "
32115 "mention here that the same API is also available in other languages."
32116 msgstr ""
32117
32118 #. type: textblock
32119 #: ../src/guestfs.pod:696
32120 msgid ""
32121 "The API is broadly identical in all supported languages.  This means that "
32122 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
32123 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
32124 "OCaml.  In other words, a straightforward, predictable isomorphism between "
32125 "each language."
32126 msgstr ""
32127
32128 #. type: textblock
32129 #: ../src/guestfs.pod:702
32130 msgid ""
32131 "Error messages are automatically transformed into exceptions if the language "
32132 "supports it."
32133 msgstr ""
32134
32135 #. type: textblock
32136 #: ../src/guestfs.pod:705
32137 msgid ""
32138 "We don't try to \"object orientify\" parts of the API in OO languages, "
32139 "although contributors are welcome to write higher level APIs above what we "
32140 "provide in their favourite languages if they wish."
32141 msgstr ""
32142
32143 #. type: =item
32144 #: ../src/guestfs.pod:711
32145 msgid "B<C++>"
32146 msgstr ""
32147
32148 #. type: textblock
32149 #: ../src/guestfs.pod:713
32150 msgid ""
32151 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
32152 "identical to the C API.  C++ classes and exceptions are not used."
32153 msgstr ""
32154
32155 #. type: =item
32156 #: ../src/guestfs.pod:717
32157 msgid "B<C#>"
32158 msgstr ""
32159
32160 #. type: textblock
32161 #: ../src/guestfs.pod:719
32162 msgid ""
32163 "The C# bindings are highly experimental.  Please read the warnings at the "
32164 "top of C<csharp/Libguestfs.cs>."
32165 msgstr ""
32166
32167 #. type: =item
32168 #: ../src/guestfs.pod:722
32169 msgid "B<Haskell>"
32170 msgstr ""
32171
32172 #. type: textblock
32173 #: ../src/guestfs.pod:724
32174 msgid ""
32175 "This is the only language binding that is working but incomplete.  Only "
32176 "calls which return simple integers have been bound in Haskell, and we are "
32177 "looking for help to complete this binding."
32178 msgstr ""
32179
32180 #. type: =item
32181 #: ../src/guestfs.pod:728
32182 msgid "B<Java>"
32183 msgstr ""
32184
32185 #. type: textblock
32186 #: ../src/guestfs.pod:730
32187 msgid ""
32188 "Full documentation is contained in the Javadoc which is distributed with "
32189 "libguestfs.  For examples, see L<guestfs-java(3)>."
32190 msgstr ""
32191
32192 #. type: =item
32193 #: ../src/guestfs.pod:733
32194 msgid "B<OCaml>"
32195 msgstr ""
32196
32197 #. type: textblock
32198 #: ../src/guestfs.pod:735
32199 msgid "See L<guestfs-ocaml(3)>."
32200 msgstr ""
32201
32202 #. type: =item
32203 #: ../src/guestfs.pod:737
32204 msgid "B<Perl>"
32205 msgstr ""
32206
32207 #. type: textblock
32208 #: ../src/guestfs.pod:739
32209 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
32210 msgstr ""
32211
32212 #. type: =item
32213 #: ../src/guestfs.pod:741
32214 msgid "B<PHP>"
32215 msgstr ""
32216
32217 #. type: textblock
32218 #: ../src/guestfs.pod:743
32219 msgid ""
32220 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
32221 "the php-libguestfs package for your distribution."
32222 msgstr ""
32223
32224 #. type: textblock
32225 #: ../src/guestfs.pod:746
32226 msgid "The PHP binding only works correctly on 64 bit machines."
32227 msgstr ""
32228
32229 #. type: =item
32230 #: ../src/guestfs.pod:748
32231 msgid "B<Python>"
32232 msgstr ""
32233
32234 #. type: textblock
32235 #: ../src/guestfs.pod:750
32236 msgid "See L<guestfs-python(3)>."
32237 msgstr ""
32238
32239 #. type: =item
32240 #: ../src/guestfs.pod:752
32241 msgid "B<Ruby>"
32242 msgstr ""
32243
32244 #. type: textblock
32245 #: ../src/guestfs.pod:754
32246 msgid "See L<guestfs-ruby(3)>."
32247 msgstr ""
32248
32249 #. type: =item
32250 #: ../src/guestfs.pod:756
32251 msgid "B<shell scripts>"
32252 msgstr ""
32253
32254 #. type: textblock
32255 #: ../src/guestfs.pod:758
32256 msgid "See L<guestfish(1)>."
32257 msgstr ""
32258
32259 #. type: =head2
32260 #: ../src/guestfs.pod:762
32261 msgid "LIBGUESTFS GOTCHAS"
32262 msgstr ""
32263
32264 #. type: textblock
32265 #: ../src/guestfs.pod:764
32266 msgid ""
32267 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
32268 "system [...] that works in the way it is documented but is counterintuitive "
32269 "and almost invites mistakes.\""
32270 msgstr ""
32271
32272 #. type: textblock
32273 #: ../src/guestfs.pod:768
32274 msgid ""
32275 "Since we developed libguestfs and the associated tools, there are several "
32276 "things we would have designed differently, but are now stuck with for "
32277 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
32278 "release, you can expect these to change.  Beware of them."
32279 msgstr ""
32280
32281 #. type: =item
32282 #: ../src/guestfs.pod:776
32283 msgid "Autosync / forgetting to sync."
32284 msgstr ""
32285
32286 #. type: textblock
32287 #: ../src/guestfs.pod:778
32288 msgid ""
32289 "I<Update:> Autosync is enabled by default for all API users starting from "
32290 "libguestfs 1.5.24.  This section only applies to older versions."
32291 msgstr ""
32292
32293 #. type: textblock
32294 #: ../src/guestfs.pod:781
32295 msgid ""
32296 "When modifying a filesystem from C or another language, you B<must> unmount "
32297 "all filesystems and call L</guestfs_sync> explicitly before you close the "
32298 "libguestfs handle.  You can also call:"
32299 msgstr ""
32300
32301 #. type: verbatim
32302 #: ../src/guestfs.pod:785
32303 #, no-wrap
32304 msgid ""
32305 " guestfs_set_autosync (g, 1);\n"
32306 "\n"
32307 msgstr ""
32308
32309 #. type: textblock
32310 #: ../src/guestfs.pod:787
32311 msgid ""
32312 "to have the unmount/sync done automatically for you when the handle 'g' is "
32313 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
32314 msgstr ""
32315
32316 #. type: textblock
32317 #: ../src/guestfs.pod:791
32318 msgid ""
32319 "If you forget to do this, then it is entirely possible that your changes "
32320 "won't be written out, or will be partially written, or (very rarely) that "
32321 "you'll get disk corruption."
32322 msgstr ""
32323
32324 #. type: textblock
32325 #: ../src/guestfs.pod:795
32326 msgid ""
32327 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
32328 "guestfish scripts that forget to sync will work just fine, which can make "
32329 "this very puzzling if you are trying to debug a problem."
32330 msgstr ""
32331
32332 #. type: =item
32333 #: ../src/guestfs.pod:799
32334 msgid "Mount option C<-o sync> should not be the default."
32335 msgstr ""
32336
32337 #. type: textblock
32338 #: ../src/guestfs.pod:801
32339 msgid ""
32340 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
32341 "However C<-o sync> does not add any reliability benefit, but does have a "
32342 "very large performance impact."
32343 msgstr ""
32344
32345 #. type: textblock
32346 #: ../src/guestfs.pod:805
32347 msgid ""
32348 "The work around is to use L</guestfs_mount_options> and set the mount "
32349 "options that you actually want to use."
32350 msgstr ""
32351
32352 #. type: =item
32353 #: ../src/guestfs.pod:808
32354 msgid "Read-only should be the default."
32355 msgstr ""
32356
32357 #. type: textblock
32358 #: ../src/guestfs.pod:810
32359 msgid ""
32360 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
32361 "specify I<--rw> if you want to make changes to the image."
32362 msgstr ""
32363
32364 #. type: textblock
32365 #: ../src/guestfs.pod:813
32366 msgid "This would reduce the potential to corrupt live VM images."
32367 msgstr ""
32368
32369 #. type: textblock
32370 #: ../src/guestfs.pod:815
32371 msgid ""
32372 "Note that many filesystems change the disk when you just mount and unmount, "
32373 "even if you didn't perform any writes.  You need to use L</"
32374 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
32375 msgstr ""
32376
32377 #. type: =item
32378 #: ../src/guestfs.pod:819
32379 msgid "guestfish command line is hard to use."
32380 msgstr ""
32381
32382 #. type: textblock
32383 #: ../src/guestfs.pod:821
32384 msgid ""
32385 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
32386 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
32387 "exist, so it fails.  In earlier versions of guestfish the error message was "
32388 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
32389 "we should have used C<guestfish -c command> to run commands."
32390 msgstr ""
32391
32392 #. type: =item
32393 #: ../src/guestfs.pod:828
32394 msgid "guestfish megabyte modifiers don't work right on all commands"
32395 msgstr ""
32396
32397 #. type: textblock
32398 #: ../src/guestfs.pod:830
32399 msgid ""
32400 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
32401 "other modifiers).  What guestfish actually does is to multiply the number "
32402 "part by the modifier part and pass the result to the C API.  However this "
32403 "doesn't work for a few APIs which aren't expecting bytes, but are already "
32404 "expecting some other unit (eg. megabytes)."
32405 msgstr ""
32406
32407 #. type: textblock
32408 #: ../src/guestfs.pod:837
32409 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
32410 msgstr ""
32411
32412 #. type: verbatim
32413 #: ../src/guestfs.pod:839
32414 #, no-wrap
32415 msgid ""
32416 " lvcreate LV VG 100M\n"
32417 "\n"
32418 msgstr ""
32419
32420 #. type: textblock
32421 #: ../src/guestfs.pod:841
32422 msgid ""
32423 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
32424 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
32425 "megabytes * megabytes) logical volume.  The error message you get from this "
32426 "is also a little obscure."
32427 msgstr ""
32428
32429 #. type: textblock
32430 #: ../src/guestfs.pod:846
32431 msgid ""
32432 "This could be fixed in the generator by specially marking parameters and "
32433 "return values which take bytes or other units."
32434 msgstr ""
32435
32436 #. type: =item
32437 #: ../src/guestfs.pod:849
32438 msgid "Ambiguity between devices and paths"
32439 msgstr ""
32440
32441 #. type: textblock
32442 #: ../src/guestfs.pod:851
32443 msgid ""
32444 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
32445 "sdb2>) and a similar pathname.  A file might just happen to be called "
32446 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
32447 msgstr ""
32448
32449 #. type: textblock
32450 #: ../src/guestfs.pod:856
32451 msgid ""
32452 "In the current API we usually resolve this ambiguity by having two separate "
32453 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
32454 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
32455 "detecting if the path supplied begins with C</dev/>."
32456 msgstr ""
32457
32458 #. type: textblock
32459 #: ../src/guestfs.pod:862
32460 msgid ""
32461 "To avoid both the ambiguity and the need to duplicate some calls, we could "
32462 "make paths/devices into structured names.  One way to do this would be to "
32463 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
32464 "aspect of grub.  Another way would be to use a structured type, equivalent "
32465 "to this OCaml type:"
32466 msgstr ""
32467
32468 #. type: verbatim
32469 #: ../src/guestfs.pod:868
32470 #, no-wrap
32471 msgid ""
32472 " type path = Path of string | Device of int | Partition of int * int\n"
32473 "\n"
32474 msgstr ""
32475
32476 #. type: textblock
32477 #: ../src/guestfs.pod:870
32478 msgid "which would allow you to pass arguments like:"
32479 msgstr ""
32480
32481 #. type: verbatim
32482 #: ../src/guestfs.pod:872
32483 #, no-wrap
32484 msgid ""
32485 " Path \"/foo/bar\"\n"
32486 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
32487 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
32488 " Path \"/dev/sdb2\"    (* not a device *)\n"
32489 "\n"
32490 msgstr ""
32491
32492 #. type: textblock
32493 #: ../src/guestfs.pod:877
32494 msgid ""
32495 "As you can see there are still problems to resolve even with this "
32496 "representation.  Also consider how it might work in guestfish."
32497 msgstr ""
32498
32499 #. type: =head2
32500 #: ../src/guestfs.pod:882
32501 msgid "KEYS AND PASSPHRASES"
32502 msgstr ""
32503
32504 #. type: textblock
32505 #: ../src/guestfs.pod:884
32506 msgid ""
32507 "Certain libguestfs calls take a parameter that contains sensitive key "
32508 "material, passed in as a C string."
32509 msgstr ""
32510
32511 #. type: textblock
32512 #: ../src/guestfs.pod:887
32513 msgid ""
32514 "In the future we would hope to change the libguestfs implementation so that "
32515 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
32516 "swap.  However this is I<not> done at the moment, because of the complexity "
32517 "of such an implementation."
32518 msgstr ""
32519
32520 #. type: textblock
32521 #: ../src/guestfs.pod:892
32522 msgid ""
32523 "Therefore you should be aware that any key parameter you pass to libguestfs "
32524 "might end up being written out to the swap partition.  If this is a concern, "
32525 "scrub the swap partition or don't use libguestfs on encrypted devices."
32526 msgstr ""
32527
32528 #. type: =head2
32529 #: ../src/guestfs.pod:897
32530 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
32531 msgstr ""
32532
32533 #. type: textblock
32534 #: ../src/guestfs.pod:899
32535 msgid ""
32536 "All high-level libguestfs actions are synchronous.  If you want to use "
32537 "libguestfs asynchronously then you must create a thread."
32538 msgstr ""
32539
32540 #. type: textblock
32541 #: ../src/guestfs.pod:902
32542 msgid ""
32543 "Only use the handle from a single thread.  Either use the handle exclusively "
32544 "from one thread, or provide your own mutex so that two threads cannot issue "
32545 "calls on the same handle at the same time."
32546 msgstr ""
32547
32548 #. type: textblock
32549 #: ../src/guestfs.pod:906
32550 msgid ""
32551 "See the graphical program guestfs-browser for one possible architecture for "
32552 "multithreaded programs using libvirt and libguestfs."
32553 msgstr ""
32554
32555 #. type: =head2
32556 #: ../src/guestfs.pod:909
32557 msgid "PATH"
32558 msgstr ""
32559
32560 #. type: textblock
32561 #: ../src/guestfs.pod:911
32562 msgid ""
32563 "Libguestfs needs a supermin appliance, which it finds by looking along an "
32564 "internal path."
32565 msgstr ""
32566
32567 #. type: textblock
32568 #: ../src/guestfs.pod:914
32569 msgid ""
32570 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
32571 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
32572 msgstr ""
32573
32574 #. type: textblock
32575 #: ../src/guestfs.pod:917
32576 msgid ""
32577 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
32578 "to change the directories that libguestfs will search in.  The value is a "
32579 "colon-separated list of paths.  The current directory is I<not> searched "
32580 "unless the path contains an empty element or C<.>.  For example "
32581 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
32582 "then C</usr/lib/guestfs>."
32583 msgstr ""
32584
32585 #. type: =head2
32586 #: ../src/guestfs.pod:924
32587 msgid "QEMU WRAPPERS"
32588 msgstr ""
32589
32590 #. type: textblock
32591 #: ../src/guestfs.pod:926
32592 msgid ""
32593 "If you want to compile your own qemu, run qemu from a non-standard location, "
32594 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
32595 "around qemu."
32596 msgstr ""
32597
32598 #. type: textblock
32599 #: ../src/guestfs.pod:930
32600 msgid ""
32601 "There is one important rule to remember: you I<must C<exec qemu>> as the "
32602 "last command in the shell script (so that qemu replaces the shell and "
32603 "becomes the direct child of the libguestfs-using program).  If you don't do "
32604 "this, then the qemu process won't be cleaned up correctly."
32605 msgstr ""
32606
32607 #. type: textblock
32608 #: ../src/guestfs.pod:935
32609 msgid ""
32610 "Here is an example of a wrapper, where I have built my own copy of qemu from "
32611 "source:"
32612 msgstr ""
32613
32614 #. type: verbatim
32615 #: ../src/guestfs.pod:938
32616 #, no-wrap
32617 msgid ""
32618 " #!/bin/sh -\n"
32619 " qemudir=/home/rjones/d/qemu\n"
32620 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
32621 "\n"
32622 msgstr ""
32623
32624 #. type: textblock
32625 #: ../src/guestfs.pod:942
32626 msgid ""
32627 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
32628 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
32629 "example:"
32630 msgstr ""
32631
32632 #. type: verbatim
32633 #: ../src/guestfs.pod:946
32634 #, no-wrap
32635 msgid ""
32636 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
32637 "\n"
32638 msgstr ""
32639
32640 #. type: textblock
32641 #: ../src/guestfs.pod:948
32642 msgid ""
32643 "Note that libguestfs also calls qemu with the -help and -version options in "
32644 "order to determine features."
32645 msgstr ""
32646
32647 #. type: =head2
32648 #: ../src/guestfs.pod:951
32649 msgid "ATTACHING TO RUNNING DAEMONS"
32650 msgstr ""
32651
32652 #. type: textblock
32653 #: ../src/guestfs.pod:953
32654 msgid ""
32655 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
32656 "babies.  Use with caution."
32657 msgstr ""
32658
32659 #. type: textblock
32660 #: ../src/guestfs.pod:956
32661 msgid ""
32662 "I<Note (2):> This section explains how to attach to a running daemon from a "
32663 "low level perspective.  For most users, simply using virt tools such as "
32664 "L<guestfish(1)> with the I<--live> option will \"just work\"."
32665 msgstr ""
32666
32667 #. type: =head3
32668 #: ../src/guestfs.pod:960
32669 msgid "Using guestfs_set_attach_method"
32670 msgstr ""
32671
32672 #. type: textblock
32673 #: ../src/guestfs.pod:962
32674 msgid ""
32675 "By calling L</guestfs_set_attach_method> you can change how the library "
32676 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
32677 "ARCHITECTURE> for some background)."
32678 msgstr ""
32679
32680 #. type: textblock
32681 #: ../src/guestfs.pod:966
32682 msgid ""
32683 "The normal attach method is C<appliance>, where a small appliance is created "
32684 "containing the daemon, and then the library connects to this."
32685 msgstr ""
32686
32687 #. type: textblock
32688 #: ../src/guestfs.pod:969
32689 msgid ""
32690 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
32691 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
32692 "daemon over the Unix domain socket."
32693 msgstr ""
32694
32695 #. type: textblock
32696 #: ../src/guestfs.pod:973
32697 msgid ""
32698 "The normal use for this is to connect to a running virtual machine that "
32699 "contains a C<guestfsd> daemon, and send commands so you can read and write "
32700 "files inside the live virtual machine."
32701 msgstr ""
32702
32703 #. type: =head3
32704 #: ../src/guestfs.pod:977
32705 msgid "Using guestfs_add_domain with live flag"
32706 msgstr ""
32707
32708 #. type: textblock
32709 #: ../src/guestfs.pod:979
32710 msgid ""
32711 "L</guestfs_add_domain> provides some help for getting the correct attach "
32712 "method.  If you pass the C<live> option to this function, then (if the "
32713 "virtual machine is running) it will examine the libvirt XML looking for a "
32714 "virtio-serial channel to connect to:"
32715 msgstr ""
32716
32717 #. type: verbatim
32718 #: ../src/guestfs.pod:985
32719 #, no-wrap
32720 msgid ""
32721 " <domain>\n"
32722 "   ...\n"
32723 "   <devices>\n"
32724 "     ...\n"
32725 "     <channel type='unix'>\n"
32726 "       <source mode='bind' path='/path/to/socket'/>\n"
32727 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
32728 "     </channel>\n"
32729 "     ...\n"
32730 "   </devices>\n"
32731 " </domain>\n"
32732 "\n"
32733 msgstr ""
32734
32735 #. type: textblock
32736 #: ../src/guestfs.pod:997
32737 msgid ""
32738 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
32739 "method to C<unix:/path/to/socket>."
32740 msgstr ""
32741
32742 #. type: textblock
32743 #: ../src/guestfs.pod:1000
32744 msgid ""
32745 "Some of the libguestfs tools (including guestfish) support a I<--live> "
32746 "option which is passed through to L</guestfs_add_domain> thus allowing you "
32747 "to attach to and modify live virtual machines."
32748 msgstr ""
32749
32750 #. type: textblock
32751 #: ../src/guestfs.pod:1004
32752 msgid ""
32753 "The virtual machine needs to have been set up beforehand so that it has the "
32754 "virtio-serial channel and so that guestfsd is running inside it."
32755 msgstr ""
32756
32757 #. type: =head2
32758 #: ../src/guestfs.pod:1008
32759 msgid "ABI GUARANTEE"
32760 msgstr ""
32761
32762 #. type: textblock
32763 #: ../src/guestfs.pod:1010
32764 msgid ""
32765 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
32766 "actions as outlined in this section.  Although we will deprecate some "
32767 "actions, for example if they get replaced by newer calls, we will keep the "
32768 "old actions forever.  This allows you the developer to program in confidence "
32769 "against the libguestfs API."
32770 msgstr ""
32771
32772 #. type: =head2
32773 #: ../src/guestfs.pod:1016
32774 msgid "BLOCK DEVICE NAMING"
32775 msgstr ""
32776
32777 #. type: textblock
32778 #: ../src/guestfs.pod:1018
32779 msgid ""
32780 "In the kernel there is now quite a profusion of schemata for naming block "
32781 "devices (in this context, by I<block device> I mean a physical or virtual "
32782 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
32783 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
32784 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
32785 "for the old IDE driver (particularly for SATA devices) those devices also "
32786 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
32787 "paravirtualized drivers.  This has created several different naming systems, "
32788 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
32789 msgstr ""
32790
32791 #. type: textblock
32792 #: ../src/guestfs.pod:1030
32793 msgid ""
32794 "As discussed above, libguestfs uses a qemu appliance running an embedded "
32795 "Linux kernel to access block devices.  We can run a variety of appliances "
32796 "based on a variety of Linux kernels."
32797 msgstr ""
32798
32799 #. type: textblock
32800 #: ../src/guestfs.pod:1034
32801 msgid ""
32802 "This causes a problem for libguestfs because many API calls use device or "
32803 "partition names.  Working scripts and the recipe (example) scripts that we "
32804 "make available over the internet could fail if the naming scheme changes."
32805 msgstr ""
32806
32807 #. type: textblock
32808 #: ../src/guestfs.pod:1039
32809 msgid ""
32810 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
32811 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
32812 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
32813 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
32814 msgstr ""
32815
32816 #. type: textblock
32817 #: ../src/guestfs.pod:1045
32818 msgid ""
32819 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
32820 "L</guestfs_list_partitions> and similar calls return the true names of the "
32821 "devices and partitions as known to the appliance."
32822 msgstr ""
32823
32824 #. type: =head3
32825 #: ../src/guestfs.pod:1050
32826 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
32827 msgstr ""
32828
32829 #. type: textblock
32830 #: ../src/guestfs.pod:1052
32831 msgid ""
32832 "Usually this translation is transparent.  However in some (very rare)  cases "
32833 "you may need to know the exact algorithm.  Such cases include where you use "
32834 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
32835 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
32836 msgstr ""
32837
32838 #. type: textblock
32839 #: ../src/guestfs.pod:1058
32840 msgid ""
32841 "The algorithm is applied only to I<parameters> which are known to be either "
32842 "device or partition names.  Return values from functions such as L</"
32843 "guestfs_list_devices> are never changed."
32844 msgstr ""
32845
32846 #. type: textblock
32847 #: ../src/guestfs.pod:1066
32848 msgid "Is the string a parameter which is a device or partition name?"
32849 msgstr ""
32850
32851 #. type: textblock
32852 #: ../src/guestfs.pod:1070
32853 msgid "Does the string begin with C</dev/sd>?"
32854 msgstr ""
32855
32856 #. type: textblock
32857 #: ../src/guestfs.pod:1074
32858 msgid ""
32859 "Does the named device exist? If so, we use that device.  However if I<not> "
32860 "then we continue with this algorithm."
32861 msgstr ""
32862
32863 #. type: textblock
32864 #: ../src/guestfs.pod:1079
32865 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
32866 msgstr ""
32867
32868 #. type: textblock
32869 #: ../src/guestfs.pod:1081
32870 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
32871 msgstr ""
32872
32873 #. type: textblock
32874 #: ../src/guestfs.pod:1083
32875 msgid "If that named device exists, use it.  If not, continue."
32876 msgstr ""
32877
32878 #. type: textblock
32879 #: ../src/guestfs.pod:1087
32880 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
32881 msgstr ""
32882
32883 #. type: textblock
32884 #: ../src/guestfs.pod:1089
32885 msgid "If that named device exists, use it.  If not, return an error."
32886 msgstr ""
32887
32888 #. type: =head3
32889 #: ../src/guestfs.pod:1093
32890 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
32891 msgstr ""
32892
32893 #. type: textblock
32894 #: ../src/guestfs.pod:1095
32895 msgid ""
32896 "Although the standard naming scheme and automatic translation is useful for "
32897 "simple programs and guestfish scripts, for larger programs it is best not to "
32898 "rely on this mechanism."
32899 msgstr ""
32900
32901 #. type: textblock
32902 #: ../src/guestfs.pod:1099
32903 msgid ""
32904 "Where possible for maximum future portability programs using libguestfs "
32905 "should use these future-proof techniques:"
32906 msgstr ""
32907
32908 #. type: textblock
32909 #: ../src/guestfs.pod:1106
32910 msgid ""
32911 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
32912 "device names, and then use those names directly."
32913 msgstr ""
32914
32915 #. type: textblock
32916 #: ../src/guestfs.pod:1109
32917 msgid ""
32918 "Since those device names exist by definition, they will never be translated."
32919 msgstr ""
32920
32921 #. type: textblock
32922 #: ../src/guestfs.pod:1114
32923 msgid ""
32924 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
32925 "filesystem labels."
32926 msgstr ""
32927
32928 #. type: =head1
32929 #: ../src/guestfs.pod:1119
32930 msgid "SECURITY"
32931 msgstr ""
32932
32933 #. type: textblock
32934 #: ../src/guestfs.pod:1121
32935 msgid ""
32936 "This section discusses security implications of using libguestfs, "
32937 "particularly with untrusted or malicious guests or disk images."
32938 msgstr ""
32939
32940 #. type: =head2
32941 #: ../src/guestfs.pod:1124
32942 msgid "GENERAL SECURITY CONSIDERATIONS"
32943 msgstr ""
32944
32945 #. type: textblock
32946 #: ../src/guestfs.pod:1126
32947 msgid ""
32948 "Be careful with any files or data that you download from a guest (by "
32949 "\"download\" we mean not just the L</guestfs_download> command but any "
32950 "command that reads files, filenames, directories or anything else from a "
32951 "disk image).  An attacker could manipulate the data to fool your program "
32952 "into doing the wrong thing.  Consider cases such as:"
32953 msgstr ""
32954
32955 #. type: textblock
32956 #: ../src/guestfs.pod:1136
32957 msgid "the data (file etc) not being present"
32958 msgstr ""
32959
32960 #. type: textblock
32961 #: ../src/guestfs.pod:1140
32962 msgid "being present but empty"
32963 msgstr ""
32964
32965 #. type: textblock
32966 #: ../src/guestfs.pod:1144
32967 msgid "being much larger than normal"
32968 msgstr ""
32969
32970 #. type: textblock
32971 #: ../src/guestfs.pod:1148
32972 msgid "containing arbitrary 8 bit data"
32973 msgstr ""
32974
32975 #. type: textblock
32976 #: ../src/guestfs.pod:1152
32977 msgid "being in an unexpected character encoding"
32978 msgstr ""
32979
32980 #. type: textblock
32981 #: ../src/guestfs.pod:1156
32982 msgid "containing homoglyphs."
32983 msgstr ""
32984
32985 #. type: =head2
32986 #: ../src/guestfs.pod:1160
32987 msgid "SECURITY OF MOUNTING FILESYSTEMS"
32988 msgstr ""
32989
32990 #. type: textblock
32991 #: ../src/guestfs.pod:1162
32992 msgid ""
32993 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
32994 "(VFS) module can sometimes be escalated into exploits by deliberately "
32995 "creating a malicious, malformed filesystem.  These exploits are very severe "
32996 "for two reasons.  Firstly there are very many filesystem drivers in the "
32997 "kernel, and many of them are infrequently used and not much developer "
32998 "attention has been paid to the code.  Linux userspace helps potential "
32999 "crackers by detecting the filesystem type and automatically choosing the "
33000 "right VFS driver, even if that filesystem type is obscure or unexpected for "
33001 "the administrator.  Secondly, a kernel-level exploit is like a local root "
33002 "exploit (worse in some ways), giving immediate and total access to the "
33003 "system right down to the hardware level."
33004 msgstr ""
33005
33006 #. type: textblock
33007 #: ../src/guestfs.pod:1175
33008 msgid ""
33009 "That explains why you should never mount a filesystem from an untrusted "
33010 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
33011 "inside a qemu virtual machine, usually running as a non-root user.  The "
33012 "attacker would need to write a filesystem which first exploited the kernel, "
33013 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
33014 "the libguestfs protocol, and finally to be as serious as the host kernel "
33015 "exploit it would need to escalate its privileges to root.  This multi-step "
33016 "escalation, performed by a static piece of data, is thought to be extremely "
33017 "hard to do, although we never say 'never' about security issues."
33018 msgstr ""
33019
33020 #. type: textblock
33021 #: ../src/guestfs.pod:1186
33022 msgid ""
33023 "In any case callers can reduce the attack surface by forcing the filesystem "
33024 "type when mounting (use L</guestfs_mount_vfs>)."
33025 msgstr ""
33026
33027 #. type: =head2
33028 #: ../src/guestfs.pod:1189
33029 msgid "PROTOCOL SECURITY"
33030 msgstr ""
33031
33032 #. type: textblock
33033 #: ../src/guestfs.pod:1191
33034 msgid ""
33035 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
33036 "defined upper message size.  However a program that uses libguestfs must "
33037 "also take care - for example you can write a program that downloads a binary "
33038 "from a disk image and executes it locally, and no amount of protocol "
33039 "security will save you from the consequences."
33040 msgstr ""
33041
33042 #. type: =head2
33043 #: ../src/guestfs.pod:1197
33044 msgid "INSPECTION SECURITY"
33045 msgstr ""
33046
33047 #. type: textblock
33048 #: ../src/guestfs.pod:1199
33049 msgid ""
33050 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
33051 "directly from the guest, and these could contain any 8 bit data.  Callers "
33052 "should be careful to escape these before printing them to a structured file "
33053 "(for example, use HTML escaping if creating a web page)."
33054 msgstr ""
33055
33056 #. type: textblock
33057 #: ../src/guestfs.pod:1205
33058 msgid ""
33059 "Guest configuration may be altered in unusual ways by the administrator of "
33060 "the virtual machine, and may not reflect reality (particularly for untrusted "
33061 "or actively malicious guests).  For example we parse the hostname from "
33062 "configuration files like C</etc/sysconfig/network> that we find in the "
33063 "guest, but the guest administrator can easily manipulate these files to "
33064 "provide the wrong hostname."
33065 msgstr ""
33066
33067 #. type: textblock
33068 #: ../src/guestfs.pod:1213
33069 msgid ""
33070 "The inspection API parses guest configuration using two external libraries: "
33071 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
33072 "designed to be robust in the face of malicious data, although denial of "
33073 "service attacks are still possible, for example with oversized configuration "
33074 "files."
33075 msgstr ""
33076
33077 #. type: =head2
33078 #: ../src/guestfs.pod:1219
33079 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
33080 msgstr ""
33081
33082 #. type: textblock
33083 #: ../src/guestfs.pod:1221
33084 msgid ""
33085 "Be very cautious about running commands from the guest.  By running a "
33086 "command in the guest, you are giving CPU time to a binary that you do not "
33087 "control, under the same user account as the library, albeit wrapped in qemu "
33088 "virtualization.  More information and alternatives can be found in the "
33089 "section L</RUNNING COMMANDS>."
33090 msgstr ""
33091
33092 #. type: =head2
33093 #: ../src/guestfs.pod:1227
33094 msgid "CVE-2010-3851"
33095 msgstr ""
33096
33097 #. type: textblock
33098 #: ../src/guestfs.pod:1229
33099 msgid "https://bugzilla.redhat.com/642934"
33100 msgstr ""
33101
33102 #. type: textblock
33103 #: ../src/guestfs.pod:1231
33104 msgid ""
33105 "This security bug concerns the automatic disk format detection that qemu "
33106 "does on disk images."
33107 msgstr ""
33108
33109 #. type: textblock
33110 #: ../src/guestfs.pod:1234
33111 msgid ""
33112 "A raw disk image is just the raw bytes, there is no header.  Other disk "
33113 "images like qcow2 contain a special header.  Qemu deals with this by looking "
33114 "for one of the known headers, and if none is found then assuming the disk "
33115 "image must be raw."
33116 msgstr ""
33117
33118 #. type: textblock
33119 #: ../src/guestfs.pod:1239
33120 msgid ""
33121 "This allows a guest which has been given a raw disk image to write some "
33122 "other header.  At next boot (or when the disk image is accessed by "
33123 "libguestfs) qemu would do autodetection and think the disk image format was, "
33124 "say, qcow2 based on the header written by the guest."
33125 msgstr ""
33126
33127 #. type: textblock
33128 #: ../src/guestfs.pod:1244
33129 msgid ""
33130 "This in itself would not be a problem, but qcow2 offers many features, one "
33131 "of which is to allow a disk image to refer to another image (called the "
33132 "\"backing disk\").  It does this by placing the path to the backing disk "
33133 "into the qcow2 header.  This path is not validated and could point to any "
33134 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
33135 "\"holes\" in the qcow2 disk image, which of course is completely under the "
33136 "control of the attacker."
33137 msgstr ""
33138
33139 #. type: textblock
33140 #: ../src/guestfs.pod:1252
33141 msgid ""
33142 "In libguestfs this is rather hard to exploit except under two circumstances:"
33143 msgstr ""
33144
33145 #. type: textblock
33146 #: ../src/guestfs.pod:1259
33147 msgid "You have enabled the network or have opened the disk in write mode."
33148 msgstr ""
33149
33150 #. type: textblock
33151 #: ../src/guestfs.pod:1263
33152 msgid ""
33153 "You are also running untrusted code from the guest (see L</RUNNING "
33154 "COMMANDS>)."
33155 msgstr ""
33156
33157 #. type: textblock
33158 #: ../src/guestfs.pod:1268
33159 msgid ""
33160 "The way to avoid this is to specify the expected disk format when adding "
33161 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
33162 "should always do this if the disk is raw format, and it's a good idea for "
33163 "other cases too."
33164 msgstr ""
33165
33166 #. type: textblock
33167 #: ../src/guestfs.pod:1273
33168 msgid ""
33169 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
33170 "format is fetched from libvirt and passed through."
33171 msgstr ""
33172
33173 #. type: textblock
33174 #: ../src/guestfs.pod:1276
33175 msgid ""
33176 "For libguestfs tools, use the I<--format> command line parameter as "
33177 "appropriate."
33178 msgstr ""
33179
33180 #. type: =head1
33181 #: ../src/guestfs.pod:1279
33182 msgid "CONNECTION MANAGEMENT"
33183 msgstr ""
33184
33185 #. type: =head2
33186 #: ../src/guestfs.pod:1281
33187 msgid "guestfs_h *"
33188 msgstr ""
33189
33190 #. type: textblock
33191 #: ../src/guestfs.pod:1283
33192 msgid ""
33193 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
33194 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
33195 "handle and release all resources used."
33196 msgstr ""
33197
33198 #. type: textblock
33199 #: ../src/guestfs.pod:1287
33200 msgid ""
33201 "For information on using multiple handles and threads, see the section L</"
33202 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
33203 msgstr ""
33204
33205 #. type: =head2
33206 #: ../src/guestfs.pod:1290
33207 msgid "guestfs_create"
33208 msgstr ""
33209
33210 #. type: verbatim
33211 #: ../src/guestfs.pod:1292
33212 #, no-wrap
33213 msgid ""
33214 " guestfs_h *guestfs_create (void);\n"
33215 "\n"
33216 msgstr ""
33217
33218 #. type: textblock
33219 #: ../src/guestfs.pod:1294
33220 msgid "Create a connection handle."
33221 msgstr ""
33222
33223 #. type: textblock
33224 #: ../src/guestfs.pod:1296
33225 msgid ""
33226 "On success this returns a non-NULL pointer to a handle.  On error it returns "
33227 "NULL."
33228 msgstr ""
33229
33230 #. type: textblock
33231 #: ../src/guestfs.pod:1299
33232 msgid ""
33233 "You have to \"configure\" the handle after creating it.  This includes "
33234 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
33235 "handle at least once."
33236 msgstr ""
33237
33238 #. type: textblock
33239 #: ../src/guestfs.pod:1303
33240 msgid "After configuring the handle, you have to call L</guestfs_launch>."
33241 msgstr ""
33242
33243 #. type: textblock
33244 #: ../src/guestfs.pod:1305
33245 msgid ""
33246 "You may also want to configure error handling for the handle.  See the L</"
33247 "ERROR HANDLING> section below."
33248 msgstr ""
33249
33250 #. type: =head2
33251 #: ../src/guestfs.pod:1308
33252 msgid "guestfs_close"
33253 msgstr ""
33254
33255 #. type: verbatim
33256 #: ../src/guestfs.pod:1310
33257 #, no-wrap
33258 msgid ""
33259 " void guestfs_close (guestfs_h *g);\n"
33260 "\n"
33261 msgstr ""
33262
33263 #. type: textblock
33264 #: ../src/guestfs.pod:1312
33265 msgid "This closes the connection handle and frees up all resources used."
33266 msgstr ""
33267
33268 #. type: textblock
33269 #: ../src/guestfs.pod:1314
33270 msgid ""
33271 "If autosync was set on the handle and the handle was launched, then this "
33272 "implicitly calls various functions to unmount filesystems and sync the "
33273 "disk.  See L</guestfs_set_autosync> for more details."
33274 msgstr ""
33275
33276 #. type: textblock
33277 #: ../src/guestfs.pod:1318
33278 msgid "If a close callback was set on the handle, then it is called."
33279 msgstr ""
33280
33281 #. type: =head1
33282 #: ../src/guestfs.pod:1320
33283 msgid "ERROR HANDLING"
33284 msgstr ""
33285
33286 #. type: textblock
33287 #: ../src/guestfs.pod:1322
33288 msgid ""
33289 "API functions can return errors.  For example, almost all functions that "
33290 "return C<int> will return C<-1> to indicate an error."
33291 msgstr ""
33292
33293 #. type: textblock
33294 #: ../src/guestfs.pod:1325
33295 msgid ""
33296 "Additional information is available for errors: an error message string and "
33297 "optionally an error number (errno) if the thing that failed was a system "
33298 "call."
33299 msgstr ""
33300
33301 #. type: textblock
33302 #: ../src/guestfs.pod:1329
33303 msgid ""
33304 "You can get at the additional information about the last error on the handle "
33305 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
33306 "up an error handler with L</guestfs_set_error_handler>."
33307 msgstr ""
33308
33309 #. type: textblock
33310 #: ../src/guestfs.pod:1334
33311 msgid ""
33312 "When the handle is created, a default error handler is installed which "
33313 "prints the error message string to C<stderr>.  For small short-running "
33314 "command line programs it is sufficient to do:"
33315 msgstr ""
33316
33317 #. type: verbatim
33318 #: ../src/guestfs.pod:1338
33319 #, no-wrap
33320 msgid ""
33321 " if (guestfs_launch (g) == -1)\n"
33322 "   exit (EXIT_FAILURE);\n"
33323 "\n"
33324 msgstr ""
33325
33326 #. type: textblock
33327 #: ../src/guestfs.pod:1341
33328 msgid ""
33329 "since the default error handler will ensure that an error message has been "
33330 "printed to C<stderr> before the program exits."
33331 msgstr ""
33332
33333 #. type: textblock
33334 #: ../src/guestfs.pod:1344
33335 msgid ""
33336 "For other programs the caller will almost certainly want to install an "
33337 "alternate error handler or do error handling in-line like this:"
33338 msgstr ""
33339
33340 #. type: verbatim
33341 #: ../src/guestfs.pod:1347
33342 #, no-wrap
33343 msgid ""
33344 " g = guestfs_create ();\n"
33345 " \n"
33346 msgstr ""
33347
33348 #. type: verbatim
33349 #: ../src/guestfs.pod:1349
33350 #, no-wrap
33351 msgid ""
33352 " /* This disables the default behaviour of printing errors\n"
33353 "    on stderr. */\n"
33354 " guestfs_set_error_handler (g, NULL, NULL);\n"
33355 " \n"
33356 msgstr ""
33357
33358 #. type: verbatim
33359 #: ../src/guestfs.pod:1353
33360 #, no-wrap
33361 msgid ""
33362 " if (guestfs_launch (g) == -1) {\n"
33363 "   /* Examine the error message and print it etc. */\n"
33364 "   char *msg = guestfs_last_error (g);\n"
33365 "   int errnum = guestfs_last_errno (g);\n"
33366 "   fprintf (stderr, \"%s\\n\", msg);\n"
33367 "   /* ... */\n"
33368 "  }\n"
33369 "\n"
33370 msgstr ""
33371
33372 #. type: textblock
33373 #: ../src/guestfs.pod:1361
33374 msgid ""
33375 "Out of memory errors are handled differently.  The default action is to call "
33376 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
33377 "guestfs_set_out_of_memory_handler>."
33378 msgstr ""
33379
33380 #. type: textblock
33381 #: ../src/guestfs.pod:1365
33382 msgid ""
33383 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
33384 "because there is no handle if this happens there is no way to get additional "
33385 "error information.  However L</guestfs_create> is supposed to be a "
33386 "lightweight operation which can only fail because of insufficient memory (it "
33387 "returns NULL in this case)."
33388 msgstr ""
33389
33390 #. type: =head2
33391 #: ../src/guestfs.pod:1371
33392 msgid "guestfs_last_error"
33393 msgstr ""
33394
33395 #. type: verbatim
33396 #: ../src/guestfs.pod:1373
33397 #, no-wrap
33398 msgid ""
33399 " const char *guestfs_last_error (guestfs_h *g);\n"
33400 "\n"
33401 msgstr ""
33402
33403 #. type: textblock
33404 #: ../src/guestfs.pod:1375
33405 msgid ""
33406 "This returns the last error message that happened on C<g>.  If there has not "
33407 "been an error since the handle was created, then this returns C<NULL>."
33408 msgstr ""
33409
33410 #. type: textblock
33411 #: ../src/guestfs.pod:1379
33412 msgid ""
33413 "The lifetime of the returned string is until the next error occurs, or L</"
33414 "guestfs_close> is called."
33415 msgstr ""
33416
33417 #. type: =head2
33418 #: ../src/guestfs.pod:1382
33419 msgid "guestfs_last_errno"
33420 msgstr ""
33421
33422 #. type: verbatim
33423 #: ../src/guestfs.pod:1384
33424 #, no-wrap
33425 msgid ""
33426 " int guestfs_last_errno (guestfs_h *g);\n"
33427 "\n"
33428 msgstr ""
33429
33430 #. type: textblock
33431 #: ../src/guestfs.pod:1386
33432 msgid "This returns the last error number (errno) that happened on C<g>."
33433 msgstr ""
33434
33435 #. type: textblock
33436 #: ../src/guestfs.pod:1388
33437 msgid "If successful, an errno integer not equal to zero is returned."
33438 msgstr ""
33439
33440 #. type: textblock
33441 #: ../src/guestfs.pod:1390
33442 msgid ""
33443 "If no error, this returns 0.  This call can return 0 in three situations:"
33444 msgstr ""
33445
33446 #. type: textblock
33447 #: ../src/guestfs.pod:1397
33448 msgid "There has not been any error on the handle."
33449 msgstr ""
33450
33451 #. type: textblock
33452 #: ../src/guestfs.pod:1401
33453 msgid ""
33454 "There has been an error but the errno was meaningless.  This corresponds to "
33455 "the case where the error did not come from a failed system call, but for "
33456 "some other reason."
33457 msgstr ""
33458
33459 #. type: textblock
33460 #: ../src/guestfs.pod:1407
33461 msgid ""
33462 "There was an error from a failed system call, but for some reason the errno "
33463 "was not captured and returned.  This usually indicates a bug in libguestfs."
33464 msgstr ""
33465
33466 #. type: textblock
33467 #: ../src/guestfs.pod:1413
33468 msgid ""
33469 "Libguestfs tries to convert the errno from inside the applicance into a "
33470 "corresponding errno for the caller (not entirely trivial: the appliance "
33471 "might be running a completely different operating system from the library "
33472 "and error numbers are not standardized across Un*xen).  If this could not be "
33473 "done, then the error is translated to C<EINVAL>.  In practice this should "
33474 "only happen in very rare circumstances."
33475 msgstr ""
33476
33477 #. type: =head2
33478 #: ../src/guestfs.pod:1421
33479 msgid "guestfs_set_error_handler"
33480 msgstr ""
33481
33482 #. type: verbatim
33483 #: ../src/guestfs.pod:1423
33484 #, no-wrap
33485 msgid ""
33486 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
33487 "                                           void *opaque,\n"
33488 "                                           const char *msg);\n"
33489 " void guestfs_set_error_handler (guestfs_h *g,\n"
33490 "                                 guestfs_error_handler_cb cb,\n"
33491 "                                 void *opaque);\n"
33492 "\n"
33493 msgstr ""
33494
33495 #. type: textblock
33496 #: ../src/guestfs.pod:1430
33497 msgid ""
33498 "The callback C<cb> will be called if there is an error.  The parameters "
33499 "passed to the callback are an opaque data pointer and the error message "
33500 "string."
33501 msgstr ""
33502
33503 #. type: textblock
33504 #: ../src/guestfs.pod:1434
33505 msgid ""
33506 "C<errno> is not passed to the callback.  To get that the callback must call "
33507 "L</guestfs_last_errno>."
33508 msgstr ""
33509
33510 #. type: textblock
33511 #: ../src/guestfs.pod:1437
33512 msgid ""
33513 "Note that the message string C<msg> is freed as soon as the callback "
33514 "function returns, so if you want to stash it somewhere you must make your "
33515 "own copy."
33516 msgstr ""
33517
33518 #. type: textblock
33519 #: ../src/guestfs.pod:1441
33520 msgid "The default handler prints messages on C<stderr>."
33521 msgstr ""
33522
33523 #. type: textblock
33524 #: ../src/guestfs.pod:1443
33525 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
33526 msgstr ""
33527
33528 #. type: =head2
33529 #: ../src/guestfs.pod:1445
33530 msgid "guestfs_get_error_handler"
33531 msgstr ""
33532
33533 #. type: verbatim
33534 #: ../src/guestfs.pod:1447
33535 #, no-wrap
33536 msgid ""
33537 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
33538 "                                                     void **opaque_rtn);\n"
33539 "\n"
33540 msgstr ""
33541
33542 #. type: textblock
33543 #: ../src/guestfs.pod:1450
33544 msgid "Returns the current error handler callback."
33545 msgstr ""
33546
33547 #. type: =head2
33548 #: ../src/guestfs.pod:1452
33549 msgid "guestfs_set_out_of_memory_handler"
33550 msgstr ""
33551
33552 #. type: verbatim
33553 #: ../src/guestfs.pod:1454
33554 #, no-wrap
33555 msgid ""
33556 " typedef void (*guestfs_abort_cb) (void);\n"
33557 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
33558 "                                         guestfs_abort_cb);\n"
33559 "\n"
33560 msgstr ""
33561
33562 #. type: textblock
33563 #: ../src/guestfs.pod:1458
33564 msgid ""
33565 "The callback C<cb> will be called if there is an out of memory situation.  "
33566 "I<Note this callback must not return>."
33567 msgstr ""
33568
33569 #. type: textblock
33570 #: ../src/guestfs.pod:1461
33571 msgid "The default is to call L<abort(3)>."
33572 msgstr ""
33573
33574 #. type: textblock
33575 #: ../src/guestfs.pod:1463
33576 msgid ""
33577 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
33578 msgstr ""
33579
33580 #. type: =head2
33581 #: ../src/guestfs.pod:1466
33582 msgid "guestfs_get_out_of_memory_handler"
33583 msgstr ""
33584
33585 #. type: verbatim
33586 #: ../src/guestfs.pod:1468
33587 #, no-wrap
33588 msgid ""
33589 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
33590 "\n"
33591 msgstr ""
33592
33593 #. type: textblock
33594 #: ../src/guestfs.pod:1470
33595 msgid "This returns the current out of memory handler."
33596 msgstr ""
33597
33598 #. type: =head1
33599 #: ../src/guestfs.pod:1472
33600 msgid "API CALLS"
33601 msgstr ""
33602
33603 #. type: =head1
33604 #: ../src/guestfs.pod:1476
33605 msgid "STRUCTURES"
33606 msgstr ""
33607
33608 #. type: textblock
33609 #: ../src/guestfs.pod:1478
33610 msgid "@STRUCTS@"
33611 msgstr ""
33612
33613 #. type: =head1
33614 #: ../src/guestfs.pod:1480
33615 msgid "AVAILABILITY"
33616 msgstr ""
33617
33618 #. type: =head2
33619 #: ../src/guestfs.pod:1482
33620 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
33621 msgstr ""
33622
33623 #. type: textblock
33624 #: ../src/guestfs.pod:1484
33625 msgid ""
33626 "Using L</guestfs_available> you can test availability of the following "
33627 "groups of functions.  This test queries the appliance to see if the "
33628 "appliance you are currently using supports the functionality."
33629 msgstr ""
33630
33631 #. type: textblock
33632 #: ../src/guestfs.pod:1489
33633 msgid "@AVAILABILITY@"
33634 msgstr ""
33635
33636 #. type: =head2
33637 #: ../src/guestfs.pod:1491
33638 msgid "GUESTFISH supported COMMAND"
33639 msgstr ""
33640
33641 #. type: textblock
33642 #: ../src/guestfs.pod:1493
33643 msgid ""
33644 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
33645 "prints out the available groups and whether they are supported by this build "
33646 "of libguestfs.  Note however that you have to do C<run> first."
33647 msgstr ""
33648
33649 #. type: =head2
33650 #: ../src/guestfs.pod:1498
33651 msgid "SINGLE CALLS AT COMPILE TIME"
33652 msgstr ""
33653
33654 #. type: textblock
33655 #: ../src/guestfs.pod:1500
33656 msgid ""
33657 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
33658 "function, such as:"
33659 msgstr ""
33660
33661 #. type: verbatim
33662 #: ../src/guestfs.pod:1503
33663 #, no-wrap
33664 msgid ""
33665 " #define LIBGUESTFS_HAVE_DD 1\n"
33666 "\n"
33667 msgstr ""
33668
33669 #. type: textblock
33670 #: ../src/guestfs.pod:1505
33671 msgid "if L</guestfs_dd> is available."
33672 msgstr ""
33673
33674 #. type: textblock
33675 #: ../src/guestfs.pod:1507
33676 msgid ""
33677 "Before version 1.5.8, if you needed to test whether a single libguestfs "
33678 "function is available at compile time, we recommended using build tools such "
33679 "as autoconf or cmake.  For example in autotools you could use:"
33680 msgstr ""
33681
33682 #. type: verbatim
33683 #: ../src/guestfs.pod:1512
33684 #, no-wrap
33685 msgid ""
33686 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
33687 " AC_CHECK_FUNCS([guestfs_dd])\n"
33688 "\n"
33689 msgstr ""
33690
33691 #. type: textblock
33692 #: ../src/guestfs.pod:1515
33693 msgid ""
33694 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
33695 "in your program."
33696 msgstr ""
33697
33698 #. type: =head2
33699 #: ../src/guestfs.pod:1518
33700 msgid "SINGLE CALLS AT RUN TIME"
33701 msgstr ""
33702
33703 #. type: textblock
33704 #: ../src/guestfs.pod:1520
33705 msgid ""
33706 "Testing at compile time doesn't guarantee that a function really exists in "
33707 "the library.  The reason is that you might be dynamically linked against a "
33708 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
33709 "This situation unfortunately results in a segmentation fault, which is a "
33710 "shortcoming of the C dynamic linking system itself."
33711 msgstr ""
33712
33713 #. type: textblock
33714 #: ../src/guestfs.pod:1527
33715 msgid ""
33716 "You can use L<dlopen(3)> to test if a function is available at run time, as "
33717 "in this example program (note that you still need the compile time check as "
33718 "well):"
33719 msgstr ""
33720
33721 #. type: verbatim
33722 #: ../src/guestfs.pod:1531
33723 #, no-wrap
33724 msgid ""
33725 " #include <stdio.h>\n"
33726 " #include <stdlib.h>\n"
33727 " #include <unistd.h>\n"
33728 " #include <dlfcn.h>\n"
33729 " #include <guestfs.h>\n"
33730 " \n"
33731 msgstr ""
33732
33733 #. type: verbatim
33734 #: ../src/guestfs.pod:1537
33735 #, no-wrap
33736 msgid ""
33737 " main ()\n"
33738 " {\n"
33739 " #ifdef LIBGUESTFS_HAVE_DD\n"
33740 "   void *dl;\n"
33741 "   int has_function;\n"
33742 " \n"
33743 msgstr ""
33744
33745 #. type: verbatim
33746 #: ../src/guestfs.pod:1543
33747 #, no-wrap
33748 msgid ""
33749 "   /* Test if the function guestfs_dd is really available. */\n"
33750 "   dl = dlopen (NULL, RTLD_LAZY);\n"
33751 "   if (!dl) {\n"
33752 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
33753 "     exit (EXIT_FAILURE);\n"
33754 "   }\n"
33755 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
33756 "   dlclose (dl);\n"
33757 " \n"
33758 msgstr ""
33759
33760 #. type: verbatim
33761 #: ../src/guestfs.pod:1552
33762 #, no-wrap
33763 msgid ""
33764 "   if (!has_function)\n"
33765 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
33766 "   else {\n"
33767 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
33768 "     /* Now it's safe to call\n"
33769 "     guestfs_dd (g, \"foo\", \"bar\");\n"
33770 "     */\n"
33771 "   }\n"
33772 " #else\n"
33773 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
33774 " #endif\n"
33775 "  }\n"
33776 "\n"
33777 msgstr ""
33778
33779 #. type: textblock
33780 #: ../src/guestfs.pod:1565
33781 msgid ""
33782 "You may think the above is an awful lot of hassle, and it is.  There are "
33783 "other ways outside of the C linking system to ensure that this kind of "
33784 "incompatibility never arises, such as using package versioning:"
33785 msgstr ""
33786
33787 #. type: verbatim
33788 #: ../src/guestfs.pod:1570
33789 #, no-wrap
33790 msgid ""
33791 " Requires: libguestfs >= 1.0.80\n"
33792 "\n"
33793 msgstr ""
33794
33795 #. type: =head1
33796 #: ../src/guestfs.pod:1572
33797 msgid "CALLS WITH OPTIONAL ARGUMENTS"
33798 msgstr ""
33799
33800 #. type: textblock
33801 #: ../src/guestfs.pod:1574
33802 msgid ""
33803 "A recent feature of the API is the introduction of calls which take optional "
33804 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
33805 "takes variable arguments (ie. C<...>), as in this example:"
33806 msgstr ""
33807
33808 #. type: verbatim
33809 #: ../src/guestfs.pod:1579
33810 #, no-wrap
33811 msgid ""
33812 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
33813 "\n"
33814 msgstr ""
33815
33816 #. type: textblock
33817 #: ../src/guestfs.pod:1581
33818 msgid ""
33819 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
33820 "call with no optional arguments specified:"
33821 msgstr ""
33822
33823 #. type: verbatim
33824 #: ../src/guestfs.pod:1584
33825 #, no-wrap
33826 msgid ""
33827 " guestfs_add_drive_opts (g, filename, -1);\n"
33828 "\n"
33829 msgstr ""
33830
33831 #. type: textblock
33832 #: ../src/guestfs.pod:1586
33833 msgid "With a single optional argument:"
33834 msgstr ""
33835
33836 #. type: verbatim
33837 #: ../src/guestfs.pod:1588
33838 #, no-wrap
33839 msgid ""
33840 " guestfs_add_drive_opts (g, filename,\n"
33841 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33842 "                         -1);\n"
33843 "\n"
33844 msgstr ""
33845
33846 #. type: textblock
33847 #: ../src/guestfs.pod:1592
33848 msgid "With two:"
33849 msgstr ""
33850
33851 #. type: verbatim
33852 #: ../src/guestfs.pod:1594
33853 #, no-wrap
33854 msgid ""
33855 " guestfs_add_drive_opts (g, filename,\n"
33856 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33857 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33858 "                         -1);\n"
33859 "\n"
33860 msgstr ""
33861
33862 #. type: textblock
33863 #: ../src/guestfs.pod:1599
33864 msgid ""
33865 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
33866 "happen!"
33867 msgstr ""
33868
33869 #. type: =head2
33870 #: ../src/guestfs.pod:1602
33871 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
33872 msgstr ""
33873
33874 #. type: textblock
33875 #: ../src/guestfs.pod:1604
33876 msgid ""
33877 "The second variant has the same name with the suffix C<_va>, which works the "
33878 "same way but takes a C<va_list>.  See the C manual for details.  For the "
33879 "example function, this is declared:"
33880 msgstr ""
33881
33882 #. type: verbatim
33883 #: ../src/guestfs.pod:1608
33884 #, no-wrap
33885 msgid ""
33886 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
33887 "                                va_list args);\n"
33888 "\n"
33889 msgstr ""
33890
33891 #. type: =head2
33892 #: ../src/guestfs.pod:1611
33893 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
33894 msgstr ""
33895
33896 #. type: textblock
33897 #: ../src/guestfs.pod:1613
33898 msgid ""
33899 "The third variant is useful where you need to construct these calls.  You "
33900 "pass in a structure where you fill in the optional fields.  The structure "
33901 "has a bitmask as the first element which you must set to indicate which "
33902 "fields you have filled in.  For our example function the structure and call "
33903 "are declared:"
33904 msgstr ""
33905
33906 #. type: verbatim
33907 #: ../src/guestfs.pod:1619
33908 #, no-wrap
33909 msgid ""
33910 " struct guestfs_add_drive_opts_argv {\n"
33911 "   uint64_t bitmask;\n"
33912 "   int readonly;\n"
33913 "   const char *format;\n"
33914 "   /* ... */\n"
33915 " };\n"
33916 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
33917 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
33918 "\n"
33919 msgstr ""
33920
33921 #. type: textblock
33922 #: ../src/guestfs.pod:1628
33923 msgid "You could call it like this:"
33924 msgstr ""
33925
33926 #. type: verbatim
33927 #: ../src/guestfs.pod:1630
33928 #, no-wrap
33929 msgid ""
33930 " struct guestfs_add_drive_opts_argv optargs = {\n"
33931 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
33932 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
33933 "   .readonly = 1,\n"
33934 "   .format = \"qcow2\"\n"
33935 " };\n"
33936 " \n"
33937 msgstr ""
33938
33939 #. type: verbatim
33940 #: ../src/guestfs.pod:1637
33941 #, no-wrap
33942 msgid ""
33943 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
33944 "\n"
33945 msgstr ""
33946
33947 #. type: textblock
33948 #: ../src/guestfs.pod:1645
33949 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
33950 msgstr ""
33951
33952 #. type: textblock
33953 #: ../src/guestfs.pod:1650
33954 msgid "You do not need to fill in all fields of the structure."
33955 msgstr ""
33956
33957 #. type: textblock
33958 #: ../src/guestfs.pod:1654
33959 msgid ""
33960 "There must be a one-to-one correspondence between fields of the structure "
33961 "that are filled in, and bits set in the bitmask."
33962 msgstr ""
33963
33964 #. type: =head2
33965 #: ../src/guestfs.pod:1659
33966 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
33967 msgstr ""
33968
33969 #. type: textblock
33970 #: ../src/guestfs.pod:1661
33971 msgid ""
33972 "In other languages, optional arguments are expressed in the way that is "
33973 "natural for that language.  We refer you to the language-specific "
33974 "documentation for more details on that."
33975 msgstr ""
33976
33977 #. type: textblock
33978 #: ../src/guestfs.pod:1665
33979 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
33980 msgstr ""
33981
33982 #. type: =head2
33983 #: ../src/guestfs.pod:1667
33984 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
33985 msgstr ""
33986
33987 #. type: textblock
33988 #: ../src/guestfs.pod:1669
33989 msgid ""
33990 "B<Note:> This section documents the generic event mechanism introduced in "
33991 "libguestfs 1.10, which you should use in new code if possible.  The old "
33992 "functions C<guestfs_set_log_message_callback>, "
33993 "C<guestfs_set_subprocess_quit_callback>, "
33994 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
33995 "C<guestfs_set_progress_callback> are no longer documented in this manual "
33996 "page.  Because of the ABI guarantee, the old functions continue to work."
33997 msgstr ""
33998
33999 #. type: textblock
34000 #: ../src/guestfs.pod:1678
34001 msgid ""
34002 "Handles generate events when certain things happen, such as log messages "
34003 "being generated, progress messages during long-running operations, or the "
34004 "handle being closed.  The API calls described below let you register a "
34005 "callback to be called when events happen.  You can register multiple "
34006 "callbacks (for the same, different or overlapping sets of events), and "
34007 "individually remove callbacks.  If callbacks are not removed, then they "
34008 "remain in force until the handle is closed."
34009 msgstr ""
34010
34011 #. type: textblock
34012 #: ../src/guestfs.pod:1686
34013 msgid ""
34014 "In the current implementation, events are only generated synchronously: that "
34015 "means that events (and hence callbacks) can only happen while you are in the "
34016 "middle of making another libguestfs call.  The callback is called in the "
34017 "same thread."
34018 msgstr ""
34019
34020 #. type: textblock
34021 #: ../src/guestfs.pod:1691
34022 msgid ""
34023 "Events may contain a payload, usually nothing (void), an array of 64 bit "
34024 "unsigned integers, or a message buffer.  Payloads are discussed later on."
34025 msgstr ""
34026
34027 #. type: =head3
34028 #: ../src/guestfs.pod:1695
34029 msgid "CLASSES OF EVENTS"
34030 msgstr ""
34031
34032 #. type: =item
34033 #: ../src/guestfs.pod:1699
34034 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
34035 msgstr ""
34036
34037 #. type: textblock
34038 #: ../src/guestfs.pod:1702
34039 msgid ""
34040 "The callback function will be called while the handle is being closed "
34041 "(synchronously from L</guestfs_close>)."
34042 msgstr ""
34043
34044 #. type: textblock
34045 #: ../src/guestfs.pod:1705
34046 msgid ""
34047 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
34048 "handles that are open when the program exits.  This means that this callback "
34049 "might be called indirectly from L<exit(3)>, which can cause unexpected "
34050 "problems in higher-level languages (eg. if your HLL interpreter has already "
34051 "been cleaned up by the time this is called, and if your callback then jumps "
34052 "into some HLL function)."
34053 msgstr ""
34054
34055 #. type: textblock
34056 #: ../src/guestfs.pod:1712
34057 msgid ""
34058 "If no callback is registered: the handle is closed without any callback "
34059 "being invoked."
34060 msgstr ""
34061
34062 #. type: =item
34063 #: ../src/guestfs.pod:1715
34064 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
34065 msgstr ""
34066
34067 #. type: textblock
34068 #: ../src/guestfs.pod:1718
34069 msgid ""
34070 "The callback function will be called when the child process quits, either "
34071 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
34072 "corresponds to a transition from any state to the CONFIG state)."
34073 msgstr ""
34074
34075 #. type: textblock
34076 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
34077 msgid "If no callback is registered: the event is ignored."
34078 msgstr ""
34079
34080 #. type: =item
34081 #: ../src/guestfs.pod:1724
34082 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
34083 msgstr ""
34084
34085 #. type: textblock
34086 #: ../src/guestfs.pod:1727
34087 msgid ""
34088 "The callback function will be called when the child process becomes ready "
34089 "first time after it has been launched.  (This corresponds to a transition "
34090 "from LAUNCHING to the READY state)."
34091 msgstr ""
34092
34093 #. type: =item
34094 #: ../src/guestfs.pod:1733
34095 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
34096 msgstr ""
34097
34098 #. type: textblock
34099 #: ../src/guestfs.pod:1736
34100 msgid ""
34101 "Some long-running operations can generate progress messages.  If this "
34102 "callback is registered, then it will be called each time a progress message "
34103 "is generated (usually two seconds after the operation started, and three "
34104 "times per second thereafter until it completes, although the frequency may "
34105 "change in future versions)."
34106 msgstr ""
34107
34108 #. type: textblock
34109 #: ../src/guestfs.pod:1742
34110 msgid ""
34111 "The callback receives in the payload four unsigned 64 bit numbers which are "
34112 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
34113 msgstr ""
34114
34115 #. type: textblock
34116 #: ../src/guestfs.pod:1745
34117 msgid ""
34118 "The units of C<total> are not defined, although for some operations C<total> "
34119 "may relate in some way to the amount of data to be transferred (eg. in bytes "
34120 "or megabytes), and C<position> may be the portion which has been transferred."
34121 msgstr ""
34122
34123 #. type: textblock
34124 #: ../src/guestfs.pod:1750
34125 msgid "The only defined and stable parts of the API are:"
34126 msgstr ""
34127
34128 #. type: textblock
34129 #: ../src/guestfs.pod:1756
34130 msgid ""
34131 "The callback can display to the user some type of progress bar or indicator "
34132 "which shows the ratio of C<position>:C<total>."
34133 msgstr ""
34134
34135 #. type: textblock
34136 #: ../src/guestfs.pod:1761
34137 msgid "0 E<lt>= C<position> E<lt>= C<total>"
34138 msgstr ""
34139
34140 #. type: textblock
34141 #: ../src/guestfs.pod:1765
34142 msgid ""
34143 "If any progress notification is sent during a call, then a final progress "
34144 "notification is always sent when C<position> = C<total> (I<unless> the call "
34145 "fails with an error)."
34146 msgstr ""
34147
34148 #. type: textblock
34149 #: ../src/guestfs.pod:1769
34150 msgid ""
34151 "This is to simplify caller code, so callers can easily set the progress "
34152 "indicator to \"100%\" at the end of the operation, without requiring special "
34153 "code to detect this case."
34154 msgstr ""
34155
34156 #. type: textblock
34157 #: ../src/guestfs.pod:1775
34158 msgid ""
34159 "For some calls we are unable to estimate the progress of the call, but we "
34160 "can still generate progress messages to indicate activity.  This is known as "
34161 "\"pulse mode\", and is directly supported by certain progress bar "
34162 "implementations (eg. GtkProgressBar)."
34163 msgstr ""
34164
34165 #. type: textblock
34166 #: ../src/guestfs.pod:1780
34167 msgid ""
34168 "For these calls, zero or more progress messages are generated with "
34169 "C<position = 0> and C<total = 1>, followed by a final message with "
34170 "C<position = total = 1>."
34171 msgstr ""
34172
34173 #. type: textblock
34174 #: ../src/guestfs.pod:1784
34175 msgid ""
34176 "As noted above, if the call fails with an error then the final message may "
34177 "not be generated."
34178 msgstr ""
34179
34180 #. type: textblock
34181 #: ../src/guestfs.pod:1789
34182 msgid ""
34183 "The callback also receives the procedure number (C<proc_nr>) and serial "
34184 "number (C<serial>) of the call.  These are only useful for debugging "
34185 "protocol issues, and the callback can normally ignore them.  The callback "
34186 "may want to print these numbers in error messages or debugging messages."
34187 msgstr ""
34188
34189 #. type: textblock
34190 #: ../src/guestfs.pod:1795
34191 msgid "If no callback is registered: progress messages are discarded."
34192 msgstr ""
34193
34194 #. type: =item
34195 #: ../src/guestfs.pod:1797
34196 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
34197 msgstr ""
34198
34199 #. type: textblock
34200 #: ../src/guestfs.pod:1800
34201 msgid ""
34202 "The callback function is called whenever a log message is generated by qemu, "
34203 "the appliance kernel, guestfsd (daemon), or utility programs."
34204 msgstr ""
34205
34206 #. type: textblock
34207 #: ../src/guestfs.pod:1803
34208 msgid ""
34209 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
34210 "guestfs_launch>) then additional debug messages are generated."
34211 msgstr ""
34212
34213 #. type: textblock
34214 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
34215 msgid ""
34216 "If no callback is registered: the messages are discarded unless the verbose "
34217 "flag is set in which case they are sent to stderr.  You can override the "
34218 "printing of verbose messages to stderr by setting up a callback."
34219 msgstr ""
34220
34221 #. type: =item
34222 #: ../src/guestfs.pod:1811
34223 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
34224 msgstr ""
34225
34226 #. type: textblock
34227 #: ../src/guestfs.pod:1814
34228 msgid ""
34229 "The callback function is called whenever a log message is generated by the "
34230 "library part of libguestfs."
34231 msgstr ""
34232
34233 #. type: textblock
34234 #: ../src/guestfs.pod:1817
34235 msgid ""
34236 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
34237 "messages are generated."
34238 msgstr ""
34239
34240 #. type: =item
34241 #: ../src/guestfs.pod:1825
34242 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
34243 msgstr ""
34244
34245 #. type: textblock
34246 #: ../src/guestfs.pod:1828
34247 msgid ""
34248 "The callback function is called whenever a trace message is generated.  This "
34249 "only applies if the trace flag (L</guestfs_set_trace>) is set."
34250 msgstr ""
34251
34252 #. type: textblock
34253 #: ../src/guestfs.pod:1831
34254 msgid ""
34255 "If no callback is registered: the messages are sent to stderr.  You can "
34256 "override the printing of trace messages to stderr by setting up a callback."
34257 msgstr ""
34258
34259 #. type: =head3
34260 #: ../src/guestfs.pod:1837
34261 msgid "guestfs_set_event_callback"
34262 msgstr ""
34263
34264 #. type: verbatim
34265 #: ../src/guestfs.pod:1839
34266 #, no-wrap
34267 msgid ""
34268 " int guestfs_set_event_callback (guestfs_h *g,\n"
34269 "                                 guestfs_event_callback cb,\n"
34270 "                                 uint64_t event_bitmask,\n"
34271 "                                 int flags,\n"
34272 "                                 void *opaque);\n"
34273 "\n"
34274 msgstr ""
34275
34276 #. type: textblock
34277 #: ../src/guestfs.pod:1845
34278 msgid ""
34279 "This function registers a callback (C<cb>) for all event classes in the "
34280 "C<event_bitmask>."
34281 msgstr ""
34282
34283 #. type: textblock
34284 #: ../src/guestfs.pod:1848
34285 msgid ""
34286 "For example, to register for all log message events, you could call this "
34287 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
34288 "To register a single callback for all possible classes of events, use "
34289 "C<GUESTFS_EVENT_ALL>."
34290 msgstr ""
34291
34292 #. type: textblock
34293 #: ../src/guestfs.pod:1854
34294 msgid "C<flags> should always be passed as 0."
34295 msgstr ""
34296
34297 #. type: textblock
34298 #: ../src/guestfs.pod:1856
34299 msgid ""
34300 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
34301 "it for any purpose."
34302 msgstr ""
34303
34304 #. type: textblock
34305 #: ../src/guestfs.pod:1859
34306 msgid ""
34307 "The return value is the event handle (an integer) which you can use to "
34308 "delete the callback (see below)."
34309 msgstr ""
34310
34311 #. type: textblock
34312 #: ../src/guestfs.pod:1862
34313 msgid ""
34314 "If there is an error, this function returns C<-1>, and sets the error in the "
34315 "handle in the usual way (see L</guestfs_last_error> etc.)"
34316 msgstr ""
34317
34318 #. type: textblock
34319 #: ../src/guestfs.pod:1865
34320 msgid ""
34321 "Callbacks remain in effect until they are deleted, or until the handle is "
34322 "closed."
34323 msgstr ""
34324
34325 #. type: textblock
34326 #: ../src/guestfs.pod:1868
34327 msgid ""
34328 "In the case where multiple callbacks are registered for a particular event "
34329 "class, all of the callbacks are called.  The order in which multiple "
34330 "callbacks are called is not defined."
34331 msgstr ""
34332
34333 #. type: =head3
34334 #: ../src/guestfs.pod:1872
34335 msgid "guestfs_delete_event_callback"
34336 msgstr ""
34337
34338 #. type: verbatim
34339 #: ../src/guestfs.pod:1874
34340 #, no-wrap
34341 msgid ""
34342 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
34343 "\n"
34344 msgstr ""
34345
34346 #. type: textblock
34347 #: ../src/guestfs.pod:1876
34348 msgid ""
34349 "Delete a callback that was previously registered.  C<event_handle> should be "
34350 "the integer that was returned by a previous call to "
34351 "C<guestfs_set_event_callback> on the same handle."
34352 msgstr ""
34353
34354 #. type: =head3
34355 #: ../src/guestfs.pod:1880
34356 msgid "guestfs_event_callback"
34357 msgstr ""
34358
34359 #. type: verbatim
34360 #: ../src/guestfs.pod:1882
34361 #, no-wrap
34362 msgid ""
34363 " typedef void (*guestfs_event_callback) (\n"
34364 "                  guestfs_h *g,\n"
34365 "                  void *opaque,\n"
34366 "                  uint64_t event,\n"
34367 "                  int event_handle,\n"
34368 "                  int flags,\n"
34369 "                  const char *buf, size_t buf_len,\n"
34370 "                  const uint64_t *array, size_t array_len);\n"
34371 "\n"
34372 msgstr ""
34373
34374 #. type: textblock
34375 #: ../src/guestfs.pod:1891
34376 msgid ""
34377 "This is the type of the event callback function that you have to provide."
34378 msgstr ""
34379
34380 #. type: textblock
34381 #: ../src/guestfs.pod:1894
34382 msgid ""
34383 "The basic parameters are: the handle (C<g>), the opaque user pointer "
34384 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
34385 "handle, and C<flags> which in the current API you should ignore."
34386 msgstr ""
34387
34388 #. type: textblock
34389 #: ../src/guestfs.pod:1898
34390 msgid ""
34391 "The remaining parameters contain the event payload (if any).  Each event may "
34392 "contain a payload, which usually relates to the event class, but for future "
34393 "proofing your code should be written to handle any payload for any event "
34394 "class."
34395 msgstr ""
34396
34397 #. type: textblock
34398 #: ../src/guestfs.pod:1903
34399 msgid ""
34400 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
34401 "there is no message buffer).  Note that this message buffer can contain "
34402 "arbitrary 8 bit data, including NUL bytes."
34403 msgstr ""
34404
34405 #. type: textblock
34406 #: ../src/guestfs.pod:1907
34407 msgid ""
34408 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
34409 "moment this is only used for progress messages."
34410 msgstr ""
34411
34412 #. type: =head3
34413 #: ../src/guestfs.pod:1910
34414 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
34415 msgstr ""
34416
34417 #. type: textblock
34418 #: ../src/guestfs.pod:1912
34419 msgid ""
34420 "One motivation for the generic event API was to allow GUI programs to "
34421 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
34422 "unconditionally to C<stderr>."
34423 msgstr ""
34424
34425 #. type: textblock
34426 #: ../src/guestfs.pod:1916
34427 msgid ""
34428 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
34429 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
34430 "messages are not events; you must capture error messages separately)."
34431 msgstr ""
34432
34433 #. type: textblock
34434 #: ../src/guestfs.pod:1921
34435 msgid ""
34436 "Programs have to set up a callback to capture the classes of events of "
34437 "interest:"
34438 msgstr ""
34439
34440 #. type: verbatim
34441 #: ../src/guestfs.pod:1924
34442 #, no-wrap
34443 msgid ""
34444 " int eh =\n"
34445 "   guestfs_set_event_callback\n"
34446 "     (g, message_callback,\n"
34447 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
34448 "      GUESTFS_EVENT_TRACE,\n"
34449 "      0, NULL) == -1)\n"
34450 " if (eh == -1) {\n"
34451 "   // handle error in the usual way\n"
34452 " }\n"
34453 "\n"
34454 msgstr ""
34455
34456 #. type: textblock
34457 #: ../src/guestfs.pod:1934
34458 msgid ""
34459 "The callback can then direct messages to the appropriate place.  In this "
34460 "example, messages are directed to syslog:"
34461 msgstr ""
34462
34463 #. type: verbatim
34464 #: ../src/guestfs.pod:1937
34465 #, no-wrap
34466 msgid ""
34467 " static void\n"
34468 " message_callback (\n"
34469 "         guestfs_h *g,\n"
34470 "         void *opaque,\n"
34471 "         uint64_t event,\n"
34472 "         int event_handle,\n"
34473 "         int flags,\n"
34474 "         const char *buf, size_t buf_len,\n"
34475 "         const uint64_t *array, size_t array_len)\n"
34476 " {\n"
34477 "   const int priority = LOG_USER|LOG_INFO;\n"
34478 "   if (buf_len > 0)\n"
34479 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
34480 " }\n"
34481 "\n"
34482 msgstr ""
34483
34484 #. type: =head1
34485 #: ../src/guestfs.pod:1952
34486 msgid "CANCELLING LONG TRANSFERS"
34487 msgstr ""
34488
34489 #. type: textblock
34490 #: ../src/guestfs.pod:1954
34491 msgid ""
34492 "Some operations can be cancelled by the caller while they are in progress.  "
34493 "Currently only operations that involve uploading or downloading data can be "
34494 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
34495 "parameters in the generator)."
34496 msgstr ""
34497
34498 #. type: =head2
34499 #: ../src/guestfs.pod:1959
34500 msgid "guestfs_user_cancel"
34501 msgstr ""
34502
34503 #. type: verbatim
34504 #: ../src/guestfs.pod:1961
34505 #, no-wrap
34506 msgid ""
34507 " void guestfs_user_cancel (guestfs_h *g);\n"
34508 "\n"
34509 msgstr ""
34510
34511 #. type: textblock
34512 #: ../src/guestfs.pod:1963
34513 msgid ""
34514 "C<guestfs_user_cancel> cancels the current upload or download operation."
34515 msgstr ""
34516
34517 #. type: textblock
34518 #: ../src/guestfs.pod:1966
34519 msgid ""
34520 "Unlike most other libguestfs calls, this function is signal safe and thread "
34521 "safe.  You can call it from a signal handler or from another thread, without "
34522 "needing to do any locking."
34523 msgstr ""
34524
34525 #. type: textblock
34526 #: ../src/guestfs.pod:1970
34527 msgid ""
34528 "The transfer that was in progress (if there is one) will stop shortly "
34529 "afterwards, and will return an error.  The errno (see L</"
34530 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
34531 "out if the operation was cancelled or failed because of another error."
34532 msgstr ""
34533
34534 #. type: textblock
34535 #: ../src/guestfs.pod:1976
34536 msgid ""
34537 "No cleanup is performed: for example, if a file was being uploaded then "
34538 "after cancellation there may be a partially uploaded file.  It is the "
34539 "caller's responsibility to clean up if necessary."
34540 msgstr ""
34541
34542 #. type: textblock
34543 #: ../src/guestfs.pod:1980
34544 msgid "There are two common places that you might call C<guestfs_user_cancel>."
34545 msgstr ""
34546
34547 #. type: textblock
34548 #: ../src/guestfs.pod:1982
34549 msgid ""
34550 "In an interactive text-based program, you might call it from a C<SIGINT> "
34551 "signal handler so that pressing C<^C> cancels the current operation.  (You "
34552 "also need to call L</guestfs_set_pgroup> so that child processes don't "
34553 "receive the C<^C> signal)."
34554 msgstr ""
34555
34556 #. type: textblock
34557 #: ../src/guestfs.pod:1987
34558 msgid ""
34559 "In a graphical program, when the main thread is displaying a progress bar "
34560 "with a cancel button, wire up the cancel button to call this function."
34561 msgstr ""
34562
34563 #. type: =head1
34564 #: ../src/guestfs.pod:1991
34565 msgid "PRIVATE DATA AREA"
34566 msgstr ""
34567
34568 #. type: textblock
34569 #: ../src/guestfs.pod:1993
34570 msgid ""
34571 "You can attach named pieces of private data to the libguestfs handle, fetch "
34572 "them by name, and walk over them, for the lifetime of the handle.  This is "
34573 "called the private data area and is only available from the C API."
34574 msgstr ""
34575
34576 #. type: textblock
34577 #: ../src/guestfs.pod:1998
34578 msgid "To attach a named piece of data, use the following call:"
34579 msgstr ""
34580
34581 #. type: verbatim
34582 #: ../src/guestfs.pod:2000
34583 #, no-wrap
34584 msgid ""
34585 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
34586 "\n"
34587 msgstr ""
34588
34589 #. type: textblock
34590 #: ../src/guestfs.pod:2002
34591 msgid ""
34592 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
34593 "pointer (which can be C<NULL>).  Any previous item with the same key is "
34594 "overwritten."
34595 msgstr ""
34596
34597 #. type: textblock
34598 #: ../src/guestfs.pod:2006
34599 msgid ""
34600 "You can use any C<key> you want, but your key should I<not> start with an "
34601 "underscore character.  Keys beginning with an underscore character are "
34602 "reserved for internal libguestfs purposes (eg. for implementing language "
34603 "bindings).  It is recommended that you prefix the key with some unique "
34604 "string to avoid collisions with other users."
34605 msgstr ""
34606
34607 #. type: textblock
34608 #: ../src/guestfs.pod:2012
34609 msgid "To retrieve the pointer, use:"
34610 msgstr ""
34611
34612 #. type: verbatim
34613 #: ../src/guestfs.pod:2014
34614 #, no-wrap
34615 msgid ""
34616 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
34617 "\n"
34618 msgstr ""
34619
34620 #. type: textblock
34621 #: ../src/guestfs.pod:2016
34622 msgid ""
34623 "This function returns C<NULL> if either no data is found associated with "
34624 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
34625 "C<NULL>."
34626 msgstr ""
34627
34628 #. type: textblock
34629 #: ../src/guestfs.pod:2020
34630 msgid ""
34631 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
34632 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
34633 "all.  In particular, libguestfs does I<not> try to free the data when the "
34634 "handle is closed.  If the data must be freed, then the caller must either "
34635 "free it before calling L</guestfs_close> or must set up a close callback to "
34636 "do it (see L</GUESTFS_EVENT_CLOSE>)."
34637 msgstr ""
34638
34639 #. type: textblock
34640 #: ../src/guestfs.pod:2027
34641 msgid "To walk over all entries, use these two functions:"
34642 msgstr ""
34643
34644 #. type: verbatim
34645 #: ../src/guestfs.pod:2029
34646 #, no-wrap
34647 msgid ""
34648 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
34649 "\n"
34650 msgstr ""
34651
34652 #. type: verbatim
34653 #: ../src/guestfs.pod:2031
34654 #, no-wrap
34655 msgid ""
34656 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
34657 "\n"
34658 msgstr ""
34659
34660 #. type: textblock
34661 #: ../src/guestfs.pod:2033
34662 msgid ""
34663 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
34664 "not have any particular meaning -- keys are not returned in any defined "
34665 "order).  A pointer to the key is returned in C<*key_rtn> and the "
34666 "corresponding data pointer is returned from the function.  C<NULL> is "
34667 "returned if there are no keys stored in the handle."
34668 msgstr ""
34669
34670 #. type: textblock
34671 #: ../src/guestfs.pod:2039
34672 msgid ""
34673 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
34674 "value of this function is also C<NULL> is there are no further entries to "
34675 "return."
34676 msgstr ""
34677
34678 #. type: textblock
34679 #: ../src/guestfs.pod:2043
34680 msgid "Notes about walking over entries:"
34681 msgstr ""
34682
34683 #. type: textblock
34684 #: ../src/guestfs.pod:2049
34685 msgid ""
34686 "You must not call C<guestfs_set_private> while walking over the entries."
34687 msgstr ""
34688
34689 #. type: textblock
34690 #: ../src/guestfs.pod:2054
34691 msgid ""
34692 "The handle maintains an internal iterator which is reset when you call "
34693 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
34694 "call C<guestfs_set_private>."
34695 msgstr ""
34696
34697 #. type: textblock
34698 #: ../src/guestfs.pod:2060
34699 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
34700 msgstr ""
34701
34702 #. type: verbatim
34703 #: ../src/guestfs.pod:2062
34704 #, no-wrap
34705 msgid ""
34706 " guestfs_set_private (g, key, NULL);\n"
34707 "\n"
34708 msgstr ""
34709
34710 #. type: textblock
34711 #: ../src/guestfs.pod:2064
34712 msgid "then that C<key> is not returned when walking."
34713 msgstr ""
34714
34715 #. type: textblock
34716 #: ../src/guestfs.pod:2068
34717 msgid ""
34718 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
34719 "C<guestfs_next_private> or C<guestfs_set_private>."
34720 msgstr ""
34721
34722 #. type: textblock
34723 #: ../src/guestfs.pod:2074
34724 msgid ""
34725 "The following example code shows how to print all keys and data pointers "
34726 "that are associated with the handle C<g>:"
34727 msgstr ""
34728
34729 #. type: verbatim
34730 #: ../src/guestfs.pod:2077
34731 #, no-wrap
34732 msgid ""
34733 " const char *key;\n"
34734 " void *data = guestfs_first_private (g, &key);\n"
34735 " while (data != NULL)\n"
34736 "   {\n"
34737 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
34738 "     data = guestfs_next_private (g, &key);\n"
34739 "   }\n"
34740 "\n"
34741 msgstr ""
34742
34743 #. type: textblock
34744 #: ../src/guestfs.pod:2085
34745 msgid ""
34746 "More commonly you are only interested in keys that begin with an application-"
34747 "specific prefix C<foo_>.  Modify the loop like so:"
34748 msgstr ""
34749
34750 #. type: verbatim
34751 #: ../src/guestfs.pod:2088
34752 #, no-wrap
34753 msgid ""
34754 " const char *key;\n"
34755 " void *data = guestfs_first_private (g, &key);\n"
34756 " while (data != NULL)\n"
34757 "   {\n"
34758 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34759 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
34760 "     data = guestfs_next_private (g, &key);\n"
34761 "   }\n"
34762 "\n"
34763 msgstr ""
34764
34765 #. type: textblock
34766 #: ../src/guestfs.pod:2097
34767 msgid ""
34768 "If you need to modify keys while walking, then you have to jump back to the "
34769 "beginning of the loop.  For example, to delete all keys prefixed with "
34770 "C<foo_>:"
34771 msgstr ""
34772
34773 #. type: verbatim
34774 #: ../src/guestfs.pod:2101
34775 #, no-wrap
34776 msgid ""
34777 "  const char *key;\n"
34778 "  void *data;\n"
34779 " again:\n"
34780 "  data = guestfs_first_private (g, &key);\n"
34781 "  while (data != NULL)\n"
34782 "    {\n"
34783 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34784 "        {\n"
34785 "          guestfs_set_private (g, key, NULL);\n"
34786 "          /* note that 'key' pointer is now invalid, and so is\n"
34787 "             the internal iterator */\n"
34788 "          goto again;\n"
34789 "        }\n"
34790 "      data = guestfs_next_private (g, &key);\n"
34791 "    }\n"
34792 "\n"
34793 msgstr ""
34794
34795 #. type: textblock
34796 #: ../src/guestfs.pod:2117
34797 msgid ""
34798 "Note that the above loop is guaranteed to terminate because the keys are "
34799 "being deleted, but other manipulations of keys within the loop might not "
34800 "terminate unless you also maintain an indication of which keys have been "
34801 "visited."
34802 msgstr ""
34803
34804 #. type: =end
34805 #: ../src/guestfs.pod:2122 ../src/guestfs.pod:2127
34806 msgid "html"
34807 msgstr ""
34808
34809 #. type: textblock
34810 #: ../src/guestfs.pod:2124
34811 msgid ""
34812 "<!-- old anchor for the next section --> <a name="
34813 "\"state_machine_and_low_level_event_api\"/>"
34814 msgstr ""
34815
34816 #. type: =head1
34817 #: ../src/guestfs.pod:2129
34818 msgid "ARCHITECTURE"
34819 msgstr ""
34820
34821 #. type: textblock
34822 #: ../src/guestfs.pod:2131
34823 msgid ""
34824 "Internally, libguestfs is implemented by running an appliance (a special "
34825 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
34826 "process of the main program."
34827 msgstr ""
34828
34829 #. type: verbatim
34830 #: ../src/guestfs.pod:2135
34831 #, no-wrap
34832 msgid ""
34833 "  ___________________\n"
34834 " /                   \\\n"
34835 " | main program      |\n"
34836 " |                   |\n"
34837 " |                   |           child process / appliance\n"
34838 " |                   |           __________________________\n"
34839 " |                   |          / qemu                     \\\n"
34840 " +-------------------+   RPC    |      +-----------------+ |\n"
34841 " | libguestfs     <--------------------> guestfsd        | |\n"
34842 " |                   |          |      +-----------------+ |\n"
34843 " \\___________________/          |      | Linux kernel    | |\n"
34844 "                                |      +--^--------------+ |\n"
34845 "                                \\_________|________________/\n"
34846 "                                          |\n"
34847 "                                   _______v______\n"
34848 "                                  /              \\\n"
34849 "                                  | Device or    |\n"
34850 "                                  | disk image   |\n"
34851 "                                  \\______________/\n"
34852 "\n"
34853 msgstr ""
34854
34855 #. type: textblock
34856 #: ../src/guestfs.pod:2155
34857 msgid ""
34858 "The library, linked to the main program, creates the child process and hence "
34859 "the appliance in the L</guestfs_launch> function."
34860 msgstr ""
34861
34862 #. type: textblock
34863 #: ../src/guestfs.pod:2158
34864 msgid ""
34865 "Inside the appliance is a Linux kernel and a complete stack of userspace "
34866 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
34867 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
34868 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
34869 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
34870 "attached to the qemu process which translates device access by the "
34871 "appliance's Linux kernel into accesses to the image."
34872 msgstr ""
34873
34874 #. type: textblock
34875 #: ../src/guestfs.pod:2167
34876 msgid ""
34877 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
34878 "Although the disk image you are attached to might also be used by some "
34879 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
34880 "care if both libguestfs's qemu process and your virtual machine are trying "
34881 "to update the disk image at the same time, since these usually results in "
34882 "massive disk corruption)."
34883 msgstr ""
34884
34885 #. type: =head1
34886 #: ../src/guestfs.pod:2174
34887 msgid "STATE MACHINE"
34888 msgstr ""
34889
34890 #. type: textblock
34891 #: ../src/guestfs.pod:2176
34892 msgid "libguestfs uses a state machine to model the child process:"
34893 msgstr ""
34894
34895 #. type: verbatim
34896 #: ../src/guestfs.pod:2178
34897 #, no-wrap
34898 msgid ""
34899 "                         |\n"
34900 "                    guestfs_create\n"
34901 "                         |\n"
34902 "                         |\n"
34903 "                     ____V_____\n"
34904 "                    /          \\\n"
34905 "                    |  CONFIG  |\n"
34906 "                    \\__________/\n"
34907 "                     ^ ^   ^  \\\n"
34908 "                    /  |    \\  \\ guestfs_launch\n"
34909 "                   /   |    _\\__V______\n"
34910 "                  /    |   /           \\\n"
34911 "                 /     |   | LAUNCHING |\n"
34912 "                /      |   \\___________/\n"
34913 "               /       |       /\n"
34914 "              /        |  guestfs_launch\n"
34915 "             /         |     /\n"
34916 "    ______  /        __|____V\n"
34917 "   /      \\ ------> /        \\\n"
34918 "   | BUSY |         | READY  |\n"
34919 "   \\______/ <------ \\________/\n"
34920 "\n"
34921 msgstr ""
34922
34923 #. type: textblock
34924 #: ../src/guestfs.pod:2200
34925 msgid ""
34926 "The normal transitions are (1) CONFIG (when the handle is created, but there "
34927 "is no child process), (2) LAUNCHING (when the child process is booting up), "
34928 "(3) alternating between READY and BUSY as commands are issued to, and "
34929 "carried out by, the child process."
34930 msgstr ""
34931
34932 #. type: textblock
34933 #: ../src/guestfs.pod:2205
34934 msgid ""
34935 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
34936 "asynchronously at any time (eg. due to some internal error), and that causes "
34937 "the state to transition back to CONFIG."
34938 msgstr ""
34939
34940 #. type: textblock
34941 #: ../src/guestfs.pod:2209
34942 msgid ""
34943 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
34944 "issued when in the CONFIG state."
34945 msgstr ""
34946
34947 #. type: textblock
34948 #: ../src/guestfs.pod:2212
34949 msgid ""
34950 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
34951 "L</guestfs_launch> blocks until the child process is READY to accept "
34952 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
34953 "moves the state from CONFIG to LAUNCHING while it is running."
34954 msgstr ""
34955
34956 #. type: textblock
34957 #: ../src/guestfs.pod:2218
34958 msgid ""
34959 "API actions such as L</guestfs_mount> can only be issued when in the READY "
34960 "state.  These API calls block waiting for the command to be carried out (ie. "
34961 "the state to transition to BUSY and then back to READY).  There are no non-"
34962 "blocking versions, and no way to issue more than one command per handle at "
34963 "the same time."
34964 msgstr ""
34965
34966 #. type: textblock
34967 #: ../src/guestfs.pod:2224
34968 msgid ""
34969 "Finally, the child process sends asynchronous messages back to the main "
34970 "program, such as kernel log messages.  You can register a callback to "
34971 "receive these messages."
34972 msgstr ""
34973
34974 #. type: =head1
34975 #: ../src/guestfs.pod:2228
34976 msgid "INTERNALS"
34977 msgstr ""
34978
34979 #. type: =head2
34980 #: ../src/guestfs.pod:2230
34981 msgid "COMMUNICATION PROTOCOL"
34982 msgstr ""
34983
34984 #. type: textblock
34985 #: ../src/guestfs.pod:2232
34986 msgid ""
34987 "Don't rely on using this protocol directly.  This section documents how it "
34988 "currently works, but it may change at any time."
34989 msgstr ""
34990
34991 #. type: textblock
34992 #: ../src/guestfs.pod:2235
34993 msgid ""
34994 "The protocol used to talk between the library and the daemon running inside "
34995 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
34996 "1014, RFC 1832, RFC 4506)."
34997 msgstr ""
34998
34999 #. type: textblock
35000 #: ../src/guestfs.pod:2239
35001 msgid ""
35002 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
35003 "this file is automatically generated)."
35004 msgstr ""
35005
35006 #. type: textblock
35007 #: ../src/guestfs.pod:2242
35008 msgid ""
35009 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
35010 "and C<FileOut> parameters, which are handled with very simple request/reply "
35011 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
35012 "parameters, which use the same request and reply messages, but they may also "
35013 "be followed by files sent using a chunked encoding."
35014 msgstr ""
35015
35016 #. type: =head3
35017 #: ../src/guestfs.pod:2249
35018 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
35019 msgstr ""
35020
35021 #. type: textblock
35022 #: ../src/guestfs.pod:2251
35023 msgid "For ordinary functions, the request message is:"
35024 msgstr ""
35025
35026 #. type: verbatim
35027 #: ../src/guestfs.pod:2253
35028 #, no-wrap
35029 msgid ""
35030 " total length (header + arguments,\n"
35031 "      but not including the length word itself)\n"
35032 " struct guestfs_message_header (encoded as XDR)\n"
35033 " struct guestfs_<foo>_args (encoded as XDR)\n"
35034 "\n"
35035 msgstr ""
35036
35037 #. type: textblock
35038 #: ../src/guestfs.pod:2258
35039 msgid ""
35040 "The total length field allows the daemon to allocate a fixed size buffer "
35041 "into which it slurps the rest of the message.  As a result, the total length "
35042 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
35043 "effective size of any request is limited to somewhere under this size."
35044 msgstr ""
35045
35046 #. type: textblock
35047 #: ../src/guestfs.pod:2264
35048 msgid ""
35049 "Note also that many functions don't take any arguments, in which case the "
35050 "C<guestfs_I<foo>_args> is completely omitted."
35051 msgstr ""
35052
35053 #. type: textblock
35054 #: ../src/guestfs.pod:2267
35055 msgid ""
35056 "The header contains the procedure number (C<guestfs_proc>) which is how the "
35057 "receiver knows what type of args structure to expect, or none at all."
35058 msgstr ""
35059
35060 #. type: textblock
35061 #: ../src/guestfs.pod:2271
35062 msgid ""
35063 "For functions that take optional arguments, the optional arguments are "
35064 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
35065 "arguments.  A bitmask in the header indicates which optional arguments are "
35066 "meaningful.  The bitmask is also checked to see if it contains bits set "
35067 "which the daemon does not know about (eg. if more optional arguments were "
35068 "added in a later version of the library), and this causes the call to be "
35069 "rejected."
35070 msgstr ""
35071
35072 #. type: textblock
35073 #: ../src/guestfs.pod:2279
35074 msgid "The reply message for ordinary functions is:"
35075 msgstr ""
35076
35077 #. type: verbatim
35078 #: ../src/guestfs.pod:2281
35079 #, no-wrap
35080 msgid ""
35081 " total length (header + ret,\n"
35082 "      but not including the length word itself)\n"
35083 " struct guestfs_message_header (encoded as XDR)\n"
35084 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35085 "\n"
35086 msgstr ""
35087
35088 #. type: textblock
35089 #: ../src/guestfs.pod:2286
35090 msgid ""
35091 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
35092 "functions that return no formal return values."
35093 msgstr ""
35094
35095 #. type: textblock
35096 #: ../src/guestfs.pod:2289
35097 msgid ""
35098 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
35099 msgstr ""
35100
35101 #. type: textblock
35102 #: ../src/guestfs.pod:2292
35103 msgid ""
35104 "In the case of an error, a flag is set in the header, and the reply message "
35105 "is slightly changed:"
35106 msgstr ""
35107
35108 #. type: verbatim
35109 #: ../src/guestfs.pod:2295
35110 #, no-wrap
35111 msgid ""
35112 " total length (header + error,\n"
35113 "      but not including the length word itself)\n"
35114 " struct guestfs_message_header (encoded as XDR)\n"
35115 " struct guestfs_message_error (encoded as XDR)\n"
35116 "\n"
35117 msgstr ""
35118
35119 #. type: textblock
35120 #: ../src/guestfs.pod:2300
35121 msgid ""
35122 "The C<guestfs_message_error> structure contains the error message as a "
35123 "string."
35124 msgstr ""
35125
35126 #. type: =head3
35127 #: ../src/guestfs.pod:2303
35128 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
35129 msgstr ""
35130
35131 #. type: textblock
35132 #: ../src/guestfs.pod:2305
35133 msgid ""
35134 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
35135 "The normal request message is sent (see above).  However this is followed by "
35136 "a sequence of file chunks."
35137 msgstr ""
35138
35139 #. type: verbatim
35140 #: ../src/guestfs.pod:2309
35141 #, no-wrap
35142 msgid ""
35143 " total length (header + arguments,\n"
35144 "      but not including the length word itself,\n"
35145 "      and not including the chunks)\n"
35146 " struct guestfs_message_header (encoded as XDR)\n"
35147 " struct guestfs_<foo>_args (encoded as XDR)\n"
35148 " sequence of chunks for FileIn param #0\n"
35149 " sequence of chunks for FileIn param #1 etc.\n"
35150 "\n"
35151 msgstr ""
35152
35153 #. type: textblock
35154 #: ../src/guestfs.pod:2317
35155 msgid "The \"sequence of chunks\" is:"
35156 msgstr ""
35157
35158 #. type: verbatim
35159 #: ../src/guestfs.pod:2319
35160 #, no-wrap
35161 msgid ""
35162 " length of chunk (not including length word itself)\n"
35163 " struct guestfs_chunk (encoded as XDR)\n"
35164 " length of chunk\n"
35165 " struct guestfs_chunk (encoded as XDR)\n"
35166 "   ...\n"
35167 " length of chunk\n"
35168 " struct guestfs_chunk (with data.data_len == 0)\n"
35169 "\n"
35170 msgstr ""
35171
35172 #. type: textblock
35173 #: ../src/guestfs.pod:2327
35174 msgid ""
35175 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
35176 "is set in the final chunk to indicate either successful completion or early "
35177 "cancellation."
35178 msgstr ""
35179
35180 #. type: textblock
35181 #: ../src/guestfs.pod:2331
35182 msgid ""
35183 "At time of writing there are no functions that have more than one FileIn "
35184 "parameter.  However this is (theoretically) supported, by sending the "
35185 "sequence of chunks for each FileIn parameter one after another (from left to "
35186 "right)."
35187 msgstr ""
35188
35189 #. type: textblock
35190 #: ../src/guestfs.pod:2336
35191 msgid ""
35192 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
35193 "transfer.  The library does this by sending a chunk with a special flag set "
35194 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
35195 "RPC, does I<not> send any reply, and goes back to reading the next request."
35196 msgstr ""
35197
35198 #. type: textblock
35199 #: ../src/guestfs.pod:2342
35200 msgid ""
35201 "The daemon may also cancel.  It does this by writing a special word "
35202 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
35203 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
35204 "cancel chunk).  The special word is chosen so that even if cancellation "
35205 "happens right at the end of the transfer (after the library has finished "
35206 "writing and has started listening for the reply), the \"spurious\" cancel "
35207 "flag will not be confused with the reply message."
35208 msgstr ""
35209
35210 #. type: textblock
35211 #: ../src/guestfs.pod:2351
35212 msgid ""
35213 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
35214 "limit), and also files where the size is not known in advance (eg. from "
35215 "pipes or sockets).  However the chunks are rather small "
35216 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
35217 "to keep much in memory."
35218 msgstr ""
35219
35220 #. type: =head3
35221 #: ../src/guestfs.pod:2357
35222 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
35223 msgstr ""
35224
35225 #. type: textblock
35226 #: ../src/guestfs.pod:2359
35227 msgid ""
35228 "The protocol for FileOut parameters is exactly the same as for FileIn "
35229 "parameters, but with the roles of daemon and library reversed."
35230 msgstr ""
35231
35232 #. type: verbatim
35233 #: ../src/guestfs.pod:2362
35234 #, no-wrap
35235 msgid ""
35236 " total length (header + ret,\n"
35237 "      but not including the length word itself,\n"
35238 "      and not including the chunks)\n"
35239 " struct guestfs_message_header (encoded as XDR)\n"
35240 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35241 " sequence of chunks for FileOut param #0\n"
35242 " sequence of chunks for FileOut param #1 etc.\n"
35243 "\n"
35244 msgstr ""
35245
35246 #. type: =head3
35247 #: ../src/guestfs.pod:2370
35248 msgid "INITIAL MESSAGE"
35249 msgstr ""
35250
35251 #. type: textblock
35252 #: ../src/guestfs.pod:2372
35253 msgid ""
35254 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
35255 "which indicates that the guest and daemon is alive.  This is what L</"
35256 "guestfs_launch> waits for."
35257 msgstr ""
35258
35259 #. type: =head3
35260 #: ../src/guestfs.pod:2376
35261 msgid "PROGRESS NOTIFICATION MESSAGES"
35262 msgstr ""
35263
35264 #. type: textblock
35265 #: ../src/guestfs.pod:2378
35266 msgid ""
35267 "The daemon may send progress notification messages at any time.  These are "
35268 "distinguished by the normal length word being replaced by "
35269 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
35270 msgstr ""
35271
35272 #. type: textblock
35273 #: ../src/guestfs.pod:2382
35274 msgid ""
35275 "The library turns them into progress callbacks (see L</"
35276 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
35277 "if not."
35278 msgstr ""
35279
35280 #. type: textblock
35281 #: ../src/guestfs.pod:2386
35282 msgid ""
35283 "The daemon self-limits the frequency of progress messages it sends (see "
35284 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
35285 "messages."
35286 msgstr ""
35287
35288 #. type: =head1
35289 #: ../src/guestfs.pod:2390
35290 msgid "LIBGUESTFS VERSION NUMBERS"
35291 msgstr ""
35292
35293 #. type: textblock
35294 #: ../src/guestfs.pod:2392
35295 msgid ""
35296 "Since April 2010, libguestfs has started to make separate development and "
35297 "stable releases, along with corresponding branches in our git repository.  "
35298 "These separate releases can be identified by version number:"
35299 msgstr ""
35300
35301 #. type: verbatim
35302 #: ../src/guestfs.pod:2397
35303 #, no-wrap
35304 msgid ""
35305 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
35306 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
35307 "       |\n"
35308 "       v\n"
35309 " 1  .  3  .  5\n"
35310 " ^           ^\n"
35311 " |           |\n"
35312 " |           `-------- sub-version\n"
35313 " |\n"
35314 " `------ always '1' because we don't change the ABI\n"
35315 "\n"
35316 msgstr ""
35317
35318 #. type: textblock
35319 #: ../src/guestfs.pod:2408
35320 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
35321 msgstr ""
35322
35323 #. type: textblock
35324 #: ../src/guestfs.pod:2410
35325 msgid ""
35326 "As time passes we cherry pick fixes from the development branch and backport "
35327 "those into the stable branch, the effect being that the stable branch should "
35328 "get more stable and less buggy over time.  So the stable releases are ideal "
35329 "for people who don't need new features but would just like the software to "
35330 "work."
35331 msgstr ""
35332
35333 #. type: textblock
35334 #: ../src/guestfs.pod:2416
35335 msgid "Our criteria for backporting changes are:"
35336 msgstr ""
35337
35338 #. type: textblock
35339 #: ../src/guestfs.pod:2422
35340 msgid ""
35341 "Documentation changes which don't affect any code are backported unless the "
35342 "documentation refers to a future feature which is not in stable."
35343 msgstr ""
35344
35345 #. type: textblock
35346 #: ../src/guestfs.pod:2428
35347 msgid ""
35348 "Bug fixes which are not controversial, fix obvious problems, and have been "
35349 "well tested are backported."
35350 msgstr ""
35351
35352 #. type: textblock
35353 #: ../src/guestfs.pod:2433
35354 msgid ""
35355 "Simple rearrangements of code which shouldn't affect how it works get "
35356 "backported.  This is so that the code in the two branches doesn't get too "
35357 "far out of step, allowing us to backport future fixes more easily."
35358 msgstr ""
35359
35360 #. type: textblock
35361 #: ../src/guestfs.pod:2439
35362 msgid ""
35363 "We I<don't> backport new features, new APIs, new tools etc, except in one "
35364 "exceptional case: the new feature is required in order to implement an "
35365 "important bug fix."
35366 msgstr ""
35367
35368 #. type: textblock
35369 #: ../src/guestfs.pod:2445
35370 msgid ""
35371 "A new stable branch starts when we think the new features in development are "
35372 "substantial and compelling enough over the current stable branch to warrant "
35373 "it.  When that happens we create new stable and development versions 1.N.0 "
35374 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
35375 "stable at this point, but by backporting fixes from development, that branch "
35376 "will stabilize over time."
35377 msgstr ""
35378
35379 #. type: =head1
35380 #: ../src/guestfs.pod:2453
35381 msgid "EXTENDING LIBGUESTFS"
35382 msgstr ""
35383
35384 #. type: =head2
35385 #: ../src/guestfs.pod:2455
35386 msgid "ADDING A NEW API ACTION"
35387 msgstr ""
35388
35389 #. type: textblock
35390 #: ../src/guestfs.pod:2457
35391 msgid ""
35392 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
35393 "documentation) are generated, and this makes it easy to extend the "
35394 "libguestfs API."
35395 msgstr ""
35396
35397 #. type: textblock
35398 #: ../src/guestfs.pod:2461
35399 msgid "To add a new API action there are two changes:"
35400 msgstr ""
35401
35402 #. type: textblock
35403 #: ../src/guestfs.pod:2467
35404 msgid ""
35405 "You need to add a description of the call (name, parameters, return type, "
35406 "tests, documentation) to C<generator/generator_actions.ml>."
35407 msgstr ""
35408
35409 #. type: textblock
35410 #: ../src/guestfs.pod:2470
35411 msgid ""
35412 "There are two sorts of API action, depending on whether the call goes "
35413 "through to the daemon in the appliance, or is serviced entirely by the "
35414 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
35415 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
35416 "an example of the latter, since a trace flag is maintained in the handle and "
35417 "all tracing is done on the library side."
35418 msgstr ""
35419
35420 #. type: textblock
35421 #: ../src/guestfs.pod:2478
35422 msgid ""
35423 "Most new actions are of the first type, and get added to the "
35424 "C<daemon_functions> list.  Each function has a unique procedure number used "
35425 "in the RPC protocol which is assigned to that action when we publish "
35426 "libguestfs and cannot be reused.  Take the latest procedure number and "
35427 "increment it."
35428 msgstr ""
35429
35430 #. type: textblock
35431 #: ../src/guestfs.pod:2484
35432 msgid ""
35433 "For library-only actions of the second type, add to the "
35434 "C<non_daemon_functions> list.  Since these functions are serviced by the "
35435 "library and do not travel over the RPC mechanism to the daemon, these "
35436 "functions do not need a procedure number, and so the procedure number is set "
35437 "to C<-1>."
35438 msgstr ""
35439
35440 #. type: textblock
35441 #: ../src/guestfs.pod:2492
35442 msgid "Implement the action (in C):"
35443 msgstr ""
35444
35445 #. type: textblock
35446 #: ../src/guestfs.pod:2494
35447 msgid ""
35448 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
35449 "C<daemon/> directory."
35450 msgstr ""
35451
35452 #. type: textblock
35453 #: ../src/guestfs.pod:2497
35454 msgid ""
35455 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
35456 "(note: double underscore) in the C<src/> directory."
35457 msgstr ""
35458
35459 #. type: textblock
35460 #: ../src/guestfs.pod:2500
35461 msgid "In either case, use another function as an example of what to do."
35462 msgstr ""
35463
35464 #. type: textblock
35465 #: ../src/guestfs.pod:2504
35466 msgid "After making these changes, use C<make> to compile."
35467 msgstr ""
35468
35469 #. type: textblock
35470 #: ../src/guestfs.pod:2506
35471 msgid ""
35472 "Note that you don't need to implement the RPC, language bindings, manual "
35473 "pages or anything else.  It's all automatically generated from the OCaml "
35474 "description."
35475 msgstr ""
35476
35477 #. type: =head2
35478 #: ../src/guestfs.pod:2510
35479 msgid "ADDING TESTS FOR AN API ACTION"
35480 msgstr ""
35481
35482 #. type: textblock
35483 #: ../src/guestfs.pod:2512
35484 msgid ""
35485 "You can supply zero or as many tests as you want per API call.  The tests "
35486 "can either be added as part of the API description (C<generator/"
35487 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
35488 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
35489 "slower, so if possible use the first method."
35490 msgstr ""
35491
35492 #. type: textblock
35493 #: ../src/guestfs.pod:2518
35494 msgid ""
35495 "The following describes the test environment used when you add an API test "
35496 "in C<generator_actions.ml>."
35497 msgstr ""
35498
35499 #. type: textblock
35500 #: ../src/guestfs.pod:2521
35501 msgid "The test environment has 4 block devices:"
35502 msgstr ""
35503
35504 #. type: =item
35505 #: ../src/guestfs.pod:2525
35506 msgid "C</dev/sda> 500MB"
35507 msgstr ""
35508
35509 #. type: textblock
35510 #: ../src/guestfs.pod:2527
35511 msgid "General block device for testing."
35512 msgstr ""
35513
35514 #. type: =item
35515 #: ../src/guestfs.pod:2529
35516 msgid "C</dev/sdb> 50MB"
35517 msgstr ""
35518
35519 #. type: textblock
35520 #: ../src/guestfs.pod:2531
35521 msgid ""
35522 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
35523 "operations."
35524 msgstr ""
35525
35526 #. type: =item
35527 #: ../src/guestfs.pod:2534
35528 msgid "C</dev/sdc> 10MB"
35529 msgstr ""
35530
35531 #. type: textblock
35532 #: ../src/guestfs.pod:2536
35533 msgid "Used in a few tests where two block devices are needed."
35534 msgstr ""
35535
35536 #. type: =item
35537 #: ../src/guestfs.pod:2538
35538 msgid "C</dev/sdd>"
35539 msgstr ""
35540
35541 #. type: textblock
35542 #: ../src/guestfs.pod:2540
35543 msgid "ISO with fixed content (see C<images/test.iso>)."
35544 msgstr ""
35545
35546 #. type: textblock
35547 #: ../src/guestfs.pod:2544
35548 msgid ""
35549 "To be able to run the tests in a reasonable amount of time, the libguestfs "
35550 "appliance and block devices are reused between tests.  So don't try testing "
35551 "L</guestfs_kill_subprocess> :-x"
35552 msgstr ""
35553
35554 #. type: textblock
35555 #: ../src/guestfs.pod:2548
35556 msgid ""
35557 "Each test starts with an initial scenario, selected using one of the "
35558 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
35559 "initialize the disks mentioned above in a particular way as documented in "
35560 "C<generator_types.ml>.  You should not assume anything about the previous "
35561 "contents of other disks that are not initialized."
35562 msgstr ""
35563
35564 #. type: textblock
35565 #: ../src/guestfs.pod:2554
35566 msgid ""
35567 "You can add a prerequisite clause to any individual test.  This is a run-"
35568 "time check, which, if it fails, causes the test to be skipped.  Useful if "
35569 "testing a command which might not work on all variations of libguestfs "
35570 "builds.  A test that has prerequisite of C<Always> means to run "
35571 "unconditionally."
35572 msgstr ""
35573
35574 #. type: textblock
35575 #: ../src/guestfs.pod:2560
35576 msgid ""
35577 "In addition, packagers can skip individual tests by setting environment "
35578 "variables before running C<make check>."
35579 msgstr ""
35580
35581 #. type: verbatim
35582 #: ../src/guestfs.pod:2563
35583 #, no-wrap
35584 msgid ""
35585 " SKIP_TEST_<CMD>_<NUM>=1\n"
35586 "\n"
35587 msgstr ""
35588
35589 #. type: textblock
35590 #: ../src/guestfs.pod:2565
35591 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
35592 msgstr ""
35593
35594 #. type: textblock
35595 #: ../src/guestfs.pod:2567
35596 msgid "or:"
35597 msgstr ""
35598
35599 #. type: verbatim
35600 #: ../src/guestfs.pod:2569
35601 #, no-wrap
35602 msgid ""
35603 " SKIP_TEST_<CMD>=1\n"
35604 "\n"
35605 msgstr ""
35606
35607 #. type: textblock
35608 #: ../src/guestfs.pod:2571
35609 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
35610 msgstr ""
35611
35612 #. type: textblock
35613 #: ../src/guestfs.pod:2573
35614 msgid "Packagers can run only certain tests by setting for example:"
35615 msgstr ""
35616
35617 #. type: verbatim
35618 #: ../src/guestfs.pod:2575
35619 #, no-wrap
35620 msgid ""
35621 " TEST_ONLY=\"vfs_type zerofree\"\n"
35622 "\n"
35623 msgstr ""
35624
35625 #. type: textblock
35626 #: ../src/guestfs.pod:2577
35627 msgid ""
35628 "See C<capitests/tests.c> for more details of how these environment variables "
35629 "work."
35630 msgstr ""
35631
35632 #. type: =head2
35633 #: ../src/guestfs.pod:2580
35634 msgid "DEBUGGING NEW API ACTIONS"
35635 msgstr ""
35636
35637 #. type: textblock
35638 #: ../src/guestfs.pod:2582
35639 msgid "Test new actions work before submitting them."
35640 msgstr ""
35641
35642 #. type: textblock
35643 #: ../src/guestfs.pod:2584
35644 msgid "You can use guestfish to try out new commands."
35645 msgstr ""
35646
35647 #. type: textblock
35648 #: ../src/guestfs.pod:2586
35649 msgid ""
35650 "Debugging the daemon is a problem because it runs inside a minimal "
35651 "environment.  However you can fprintf messages in the daemon to stderr, and "
35652 "they will show up if you use C<guestfish -v>."
35653 msgstr ""
35654
35655 #. type: =head2
35656 #: ../src/guestfs.pod:2590
35657 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
35658 msgstr ""
35659
35660 #. type: textblock
35661 #: ../src/guestfs.pod:2592
35662 msgid ""
35663 "Our C source code generally adheres to some basic code-formatting "
35664 "conventions.  The existing code base is not totally consistent on this "
35665 "front, but we do prefer that contributed code be formatted similarly.  In "
35666 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
35667 "indentation level, and other than that, follow the K&R style."
35668 msgstr ""
35669
35670 #. type: textblock
35671 #: ../src/guestfs.pod:2598
35672 msgid ""
35673 "If you use Emacs, add the following to one of one of your start-up files (e."
35674 "g., ~/.emacs), to help ensure that you get indentation right:"
35675 msgstr ""
35676
35677 #. type: verbatim
35678 #: ../src/guestfs.pod:2601
35679 #, no-wrap
35680 msgid ""
35681 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
35682 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
35683 " (add-hook 'find-file-hook\n"
35684 "     '(lambda () (if (and buffer-file-name\n"
35685 "                          (string-match \"/libguestfs\\\\>\"\n"
35686 "                              (buffer-file-name))\n"
35687 "                          (not (string-equal mode-name \"Change Log\"))\n"
35688 "                          (not (string-equal mode-name \"Makefile\")))\n"
35689 "                     (setq indent-tabs-mode nil))))\n"
35690 " \n"
35691 msgstr ""
35692
35693 #. type: verbatim
35694 #: ../src/guestfs.pod:2611
35695 #, no-wrap
35696 msgid ""
35697 " ;;; When editing C sources in libguestfs, use this style.\n"
35698 " (defun libguestfs-c-mode ()\n"
35699 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
35700 "   (interactive)\n"
35701 "   (c-set-style \"K&R\")\n"
35702 "   (setq c-indent-level 2)\n"
35703 "   (setq c-basic-offset 2))\n"
35704 " (add-hook 'c-mode-hook\n"
35705 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
35706 "                               (buffer-file-name))\n"
35707 "                           (libguestfs-c-mode))))\n"
35708 "\n"
35709 msgstr ""
35710
35711 #. type: textblock
35712 #: ../src/guestfs.pod:2623
35713 msgid "Enable warnings when compiling (and fix any problems this finds):"
35714 msgstr ""
35715
35716 #. type: verbatim
35717 #: ../src/guestfs.pod:2626
35718 #, no-wrap
35719 msgid ""
35720 " ./configure --enable-gcc-warnings\n"
35721 "\n"
35722 msgstr ""
35723
35724 #. type: textblock
35725 #: ../src/guestfs.pod:2628
35726 msgid "Useful targets are:"
35727 msgstr ""
35728
35729 #. type: verbatim
35730 #: ../src/guestfs.pod:2630
35731 #, no-wrap
35732 msgid ""
35733 " make syntax-check  # checks the syntax of the C code\n"
35734 " make check         # runs the test suite\n"
35735 "\n"
35736 msgstr ""
35737
35738 #. type: =head2
35739 #: ../src/guestfs.pod:2633
35740 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
35741 msgstr ""
35742
35743 #. type: textblock
35744 #: ../src/guestfs.pod:2635
35745 msgid ""
35746 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
35747 "which are used to do shell quoting."
35748 msgstr ""
35749
35750 #. type: =item
35751 #: ../src/guestfs.pod:2640
35752 msgid "%Q"
35753 msgstr ""
35754
35755 #. type: textblock
35756 #: ../src/guestfs.pod:2642
35757 msgid ""
35758 "Simple shell quoted string.  Any spaces or other shell characters are "
35759 "escaped for you."
35760 msgstr ""
35761
35762 #. type: =item
35763 #: ../src/guestfs.pod:2645
35764 msgid "%R"
35765 msgstr ""
35766
35767 #. type: textblock
35768 #: ../src/guestfs.pod:2647
35769 msgid ""
35770 "Same as C<%Q> except the string is treated as a path which is prefixed by "
35771 "the sysroot."
35772 msgstr ""
35773
35774 #. type: verbatim
35775 #: ../src/guestfs.pod:2654
35776 #, no-wrap
35777 msgid ""
35778 " asprintf (&cmd, \"cat %R\", path);\n"
35779 "\n"
35780 msgstr ""
35781
35782 #. type: textblock
35783 #: ../src/guestfs.pod:2656
35784 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
35785 msgstr ""
35786
35787 #. type: textblock
35788 #: ../src/guestfs.pod:2658
35789 msgid ""
35790 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
35791 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
35792 "they are not passed via the shell (instead, straight to exec).  You probably "
35793 "want to use the C<sysroot_path()> function however."
35794 msgstr ""
35795
35796 #. type: =head2
35797 #: ../src/guestfs.pod:2664
35798 msgid "SUBMITTING YOUR NEW API ACTIONS"
35799 msgstr ""
35800
35801 #. type: textblock
35802 #: ../src/guestfs.pod:2666
35803 msgid ""
35804 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
35805 "libguestfs> and CC to L<rjones@redhat.com>."
35806 msgstr ""
35807
35808 #. type: =head2
35809 #: ../src/guestfs.pod:2670
35810 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
35811 msgstr ""
35812
35813 #. type: textblock
35814 #: ../src/guestfs.pod:2672
35815 msgid "We support i18n (gettext anyhow) in the library."
35816 msgstr ""
35817
35818 #. type: textblock
35819 #: ../src/guestfs.pod:2674
35820 msgid ""
35821 "However many messages come from the daemon, and we don't translate those at "
35822 "the moment.  One reason is that the appliance generally has all locale files "
35823 "removed from it, because they take up a lot of space.  So we'd have to readd "
35824 "some of those, as well as copying our PO files into the appliance."
35825 msgstr ""
35826
35827 #. type: textblock
35828 #: ../src/guestfs.pod:2680
35829 msgid ""
35830 "Debugging messages are never translated, since they are intended for the "
35831 "programmers."
35832 msgstr ""
35833
35834 #. type: =head2
35835 #: ../src/guestfs.pod:2683
35836 msgid "SOURCE CODE SUBDIRECTORIES"
35837 msgstr ""
35838
35839 #. type: textblock
35840 #: ../src/guestfs.pod:2689
35841 msgid "The libguestfs appliance, build scripts and so on."
35842 msgstr ""
35843
35844 #. type: =item
35845 #: ../src/guestfs.pod:2691
35846 msgid "C<capitests>"
35847 msgstr ""
35848
35849 #. type: textblock
35850 #: ../src/guestfs.pod:2693
35851 msgid "Automated tests of the C API."
35852 msgstr ""
35853
35854 #. type: =item
35855 #: ../src/guestfs.pod:2695
35856 msgid "C<cat>"
35857 msgstr ""
35858
35859 #. type: textblock
35860 #: ../src/guestfs.pod:2697
35861 msgid ""
35862 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
35863 "documentation."
35864 msgstr ""
35865
35866 #. type: =item
35867 #: ../src/guestfs.pod:2700
35868 msgid "C<caution>"
35869 msgstr ""
35870
35871 #. type: textblock
35872 #: ../src/guestfs.pod:2702
35873 msgid ""
35874 "Safety and liveness tests of components that libguestfs depends upon (not of "
35875 "libguestfs itself).  Mainly this is for qemu and the kernel."
35876 msgstr ""
35877
35878 #. type: =item
35879 #: ../src/guestfs.pod:2705
35880 msgid "C<contrib>"
35881 msgstr ""
35882
35883 #. type: textblock
35884 #: ../src/guestfs.pod:2707
35885 msgid "Outside contributions, experimental parts."
35886 msgstr ""
35887
35888 #. type: =item
35889 #: ../src/guestfs.pod:2709
35890 msgid "C<daemon>"
35891 msgstr ""
35892
35893 #. type: textblock
35894 #: ../src/guestfs.pod:2711
35895 msgid ""
35896 "The daemon that runs inside the libguestfs appliance and carries out actions."
35897 msgstr ""
35898
35899 #. type: =item
35900 #: ../src/guestfs.pod:2714
35901 msgid "C<df>"
35902 msgstr ""
35903
35904 #. type: textblock
35905 #: ../src/guestfs.pod:2716
35906 msgid "L<virt-df(1)> command and documentation."
35907 msgstr ""
35908
35909 #. type: =item
35910 #: ../src/guestfs.pod:2718
35911 msgid "C<edit>"
35912 msgstr ""
35913
35914 #. type: textblock
35915 #: ../src/guestfs.pod:2720
35916 msgid "L<virt-edit(1)> command and documentation."
35917 msgstr ""
35918
35919 #. type: =item
35920 #: ../src/guestfs.pod:2722
35921 msgid "C<examples>"
35922 msgstr ""
35923
35924 #. type: textblock
35925 #: ../src/guestfs.pod:2724
35926 msgid "C API example code."
35927 msgstr ""
35928
35929 #. type: =item
35930 #: ../src/guestfs.pod:2726
35931 msgid "C<fish>"
35932 msgstr ""
35933
35934 #. type: textblock
35935 #: ../src/guestfs.pod:2728
35936 msgid ""
35937 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
35938 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
35939 "L<virt-tar-out(1)>."
35940 msgstr ""
35941
35942 #. type: =item
35943 #: ../src/guestfs.pod:2732
35944 msgid "C<fuse>"
35945 msgstr ""
35946
35947 #. type: textblock
35948 #: ../src/guestfs.pod:2734
35949 msgid ""
35950 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
35951 msgstr ""
35952
35953 #. type: =item
35954 #: ../src/guestfs.pod:2736
35955 msgid "C<generator>"
35956 msgstr ""
35957
35958 #. type: textblock
35959 #: ../src/guestfs.pod:2738
35960 msgid ""
35961 "The crucially important generator, used to automatically generate large "
35962 "amounts of boilerplate C code for things like RPC and bindings."
35963 msgstr ""
35964
35965 #. type: =item
35966 #: ../src/guestfs.pod:2741
35967 msgid "C<images>"
35968 msgstr ""
35969
35970 #. type: textblock
35971 #: ../src/guestfs.pod:2743
35972 msgid "Files used by the test suite."
35973 msgstr ""
35974
35975 #. type: textblock
35976 #: ../src/guestfs.pod:2745
35977 msgid "Some \"phony\" guest images which we test against."
35978 msgstr ""
35979
35980 #. type: =item
35981 #: ../src/guestfs.pod:2747
35982 msgid "C<inspector>"
35983 msgstr ""
35984
35985 #. type: textblock
35986 #: ../src/guestfs.pod:2749
35987 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
35988 msgstr ""
35989
35990 #. type: =item
35991 #: ../src/guestfs.pod:2751
35992 msgid "C<logo>"
35993 msgstr ""
35994
35995 #. type: textblock
35996 #: ../src/guestfs.pod:2753
35997 msgid "Logo used on the website.  The fish is called Arthur by the way."
35998 msgstr ""
35999
36000 #. type: =item
36001 #: ../src/guestfs.pod:2755
36002 msgid "C<m4>"
36003 msgstr ""
36004
36005 #. type: textblock
36006 #: ../src/guestfs.pod:2757
36007 msgid "M4 macros used by autoconf."
36008 msgstr ""
36009
36010 #. type: =item
36011 #: ../src/guestfs.pod:2759
36012 msgid "C<po>"
36013 msgstr ""
36014
36015 #. type: textblock
36016 #: ../src/guestfs.pod:2761
36017 msgid "Translations of simple gettext strings."
36018 msgstr ""
36019
36020 #. type: =item
36021 #: ../src/guestfs.pod:2763
36022 msgid "C<po-docs>"
36023 msgstr ""
36024
36025 #. type: textblock
36026 #: ../src/guestfs.pod:2765
36027 msgid ""
36028 "The build infrastructure and PO files for translations of manpages and POD "
36029 "files.  Eventually this will be combined with the C<po> directory, but that "
36030 "is rather complicated."
36031 msgstr ""
36032
36033 #. type: =item
36034 #: ../src/guestfs.pod:2769
36035 msgid "C<regressions>"
36036 msgstr ""
36037
36038 #. type: textblock
36039 #: ../src/guestfs.pod:2771
36040 msgid "Regression tests."
36041 msgstr ""
36042
36043 #. type: =item
36044 #: ../src/guestfs.pod:2773
36045 msgid "C<rescue>"
36046 msgstr ""
36047
36048 #. type: textblock
36049 #: ../src/guestfs.pod:2775
36050 msgid "L<virt-rescue(1)> command and documentation."
36051 msgstr ""
36052
36053 #. type: =item
36054 #: ../src/guestfs.pod:2777
36055 msgid "C<src>"
36056 msgstr ""
36057
36058 #. type: textblock
36059 #: ../src/guestfs.pod:2779
36060 msgid "Source code to the C library."
36061 msgstr ""
36062
36063 #. type: =item
36064 #: ../src/guestfs.pod:2781
36065 msgid "C<tools>"
36066 msgstr ""
36067
36068 #. type: textblock
36069 #: ../src/guestfs.pod:2783
36070 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
36071 msgstr ""
36072
36073 #. type: =item
36074 #: ../src/guestfs.pod:2785
36075 msgid "C<test-tool>"
36076 msgstr ""
36077
36078 #. type: textblock
36079 #: ../src/guestfs.pod:2787
36080 msgid ""
36081 "Test tool for end users to test if their qemu/kernel combination will work "
36082 "with libguestfs."
36083 msgstr ""
36084
36085 #. type: =item
36086 #: ../src/guestfs.pod:2790
36087 msgid "C<csharp>"
36088 msgstr ""
36089
36090 #. type: =item
36091 #: ../src/guestfs.pod:2792
36092 msgid "C<haskell>"
36093 msgstr ""
36094
36095 #. type: =item
36096 #: ../src/guestfs.pod:2794
36097 msgid "C<java>"
36098 msgstr ""
36099
36100 #. type: =item
36101 #: ../src/guestfs.pod:2796
36102 msgid "C<ocaml>"
36103 msgstr ""
36104
36105 #. type: =item
36106 #: ../src/guestfs.pod:2798
36107 msgid "C<php>"
36108 msgstr ""
36109
36110 #. type: =item
36111 #: ../src/guestfs.pod:2800
36112 msgid "C<perl>"
36113 msgstr ""
36114
36115 #. type: =item
36116 #: ../src/guestfs.pod:2802
36117 msgid "C<python>"
36118 msgstr ""
36119
36120 #. type: =item
36121 #: ../src/guestfs.pod:2804
36122 msgid "C<ruby>"
36123 msgstr ""
36124
36125 #. type: textblock
36126 #: ../src/guestfs.pod:2806
36127 msgid "Language bindings."
36128 msgstr ""
36129
36130 #. type: =head2
36131 #: ../src/guestfs.pod:2810
36132 msgid "MAKING A STABLE RELEASE"
36133 msgstr ""
36134
36135 #. type: textblock
36136 #: ../src/guestfs.pod:2812
36137 msgid ""
36138 "When we make a stable release, there are several steps documented here.  See "
36139 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
36140 "branch policy."
36141 msgstr ""
36142
36143 #. type: textblock
36144 #: ../src/guestfs.pod:2820
36145 msgid ""
36146 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
36147 msgstr ""
36148
36149 #. type: textblock
36150 #: ../src/guestfs.pod:2825
36151 msgid "Finalize RELEASE-NOTES."
36152 msgstr ""
36153
36154 #. type: textblock
36155 #: ../src/guestfs.pod:2829
36156 msgid "Update ROADMAP."
36157 msgstr ""
36158
36159 #. type: textblock
36160 #: ../src/guestfs.pod:2833
36161 msgid "Run C<src/api-support/update-from-tarballs.sh>."
36162 msgstr ""
36163
36164 #. type: textblock
36165 #: ../src/guestfs.pod:2837
36166 msgid "Push and pull from Transifex."
36167 msgstr ""
36168
36169 #. type: textblock
36170 #: ../src/guestfs.pod:2839
36171 msgid "Run:"
36172 msgstr ""
36173
36174 #. type: verbatim
36175 #: ../src/guestfs.pod:2841
36176 #, no-wrap
36177 msgid ""
36178 " tx push -s\n"
36179 "\n"
36180 msgstr ""
36181
36182 #. type: textblock
36183 #: ../src/guestfs.pod:2843
36184 msgid "to push the latest POT files to Transifex.  Then run:"
36185 msgstr ""
36186
36187 #. type: verbatim
36188 #: ../src/guestfs.pod:2845
36189 #, no-wrap
36190 msgid ""
36191 " ./tx-pull.sh\n"
36192 "\n"
36193 msgstr ""
36194
36195 #. type: textblock
36196 #: ../src/guestfs.pod:2847
36197 msgid "which is a wrapper to pull the latest translated C<*.po> files."
36198 msgstr ""
36199
36200 #. type: textblock
36201 #: ../src/guestfs.pod:2851
36202 msgid ""
36203 "Create new stable and development directories under L<http://libguestfs.org/"
36204 "download>."
36205 msgstr ""
36206
36207 #. type: textblock
36208 #: ../src/guestfs.pod:2856
36209 msgid "Create the branch in git:"
36210 msgstr ""
36211
36212 #. type: verbatim
36213 #: ../src/guestfs.pod:2858
36214 #, no-wrap
36215 msgid ""
36216 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
36217 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
36218 " git branch stable-1.XX\n"
36219 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
36220 "\n"
36221 msgstr ""
36222
36223 #. type: =head1
36224 #: ../src/guestfs.pod:2865
36225 msgid "LIMITS"
36226 msgstr ""
36227
36228 #. type: =head2
36229 #: ../src/guestfs.pod:2867
36230 msgid "PROTOCOL LIMITS"
36231 msgstr ""
36232
36233 #. type: textblock
36234 #: ../src/guestfs.pod:2869
36235 msgid ""
36236 "Internally libguestfs uses a message-based protocol to pass API calls and "
36237 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
36238 "plenty more detail about this).  The maximum message size used by the "
36239 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
36240 "aware of this limit.  The API calls which may be affected are individually "
36241 "documented, with a link back to this section of the documentation."
36242 msgstr ""
36243
36244 #. type: textblock
36245 #: ../src/guestfs.pod:2877
36246 msgid ""
36247 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
36248 "a simple string.  Because this string is at some point internally encoded as "
36249 "a message, the maximum size that it can return is slightly under 4 MB.  If "
36250 "the requested file is larger than this then you will get an error."
36251 msgstr ""
36252
36253 #. type: textblock
36254 #: ../src/guestfs.pod:2883
36255 msgid ""
36256 "In order to transfer large files into and out of the guest filesystem, you "
36257 "need to use particular calls that support this.  The sections L</UPLOADING> "
36258 "and L</DOWNLOADING> document how to do this."
36259 msgstr ""
36260
36261 #. type: textblock
36262 #: ../src/guestfs.pod:2887
36263 msgid ""
36264 "You might also consider mounting the disk image using our FUSE filesystem "
36265 "support (L<guestmount(1)>)."
36266 msgstr ""
36267
36268 #. type: =head2
36269 #: ../src/guestfs.pod:2890
36270 msgid "MAXIMUM NUMBER OF DISKS"
36271 msgstr ""
36272
36273 #. type: textblock
36274 #: ../src/guestfs.pod:2892
36275 msgid "When using virtio disks (the default) the current limit is B<25> disks."
36276 msgstr ""
36277
36278 #. type: textblock
36279 #: ../src/guestfs.pod:2895
36280 msgid ""
36281 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
36282 "slots.  However febootstrap only understands disks with names C</dev/vda> "
36283 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
36284 "purposes."
36285 msgstr ""
36286
36287 #. type: textblock
36288 #: ../src/guestfs.pod:2900
36289 msgid ""
36290 "We are working to substantially raise this limit in future versions but it "
36291 "requires complex changes to qemu."
36292 msgstr ""
36293
36294 #. type: textblock
36295 #: ../src/guestfs.pod:2903
36296 msgid ""
36297 "In future versions of libguestfs it should also be possible to \"hot plug\" "
36298 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
36299 "requires changes to qemu."
36300 msgstr ""
36301
36302 #. type: =head2
36303 #: ../src/guestfs.pod:2907
36304 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
36305 msgstr ""
36306
36307 #. type: textblock
36308 #: ../src/guestfs.pod:2909
36309 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
36310 msgstr ""
36311
36312 #. type: textblock
36313 #: ../src/guestfs.pod:2911
36314 msgid ""
36315 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
36316 "vda>, and C</dev/vda1> through C</dev/vda15>)."
36317 msgstr ""
36318
36319 #. type: textblock
36320 #: ../src/guestfs.pod:2914
36321 msgid ""
36322 "If you attach a disk with more than 15 partitions, the extra partitions are "
36323 "ignored by libguestfs."
36324 msgstr ""
36325
36326 #. type: =head2
36327 #: ../src/guestfs.pod:2917
36328 msgid "MAXIMUM SIZE OF A DISK"
36329 msgstr ""
36330
36331 #. type: textblock
36332 #: ../src/guestfs.pod:2919
36333 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
36334 msgstr ""
36335
36336 #. type: textblock
36337 #: ../src/guestfs.pod:2921
36338 msgid ""
36339 "We have tested block devices up to 1 exabyte (2**60 or "
36340 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
36341 "filesystem."
36342 msgstr ""
36343
36344 #. type: textblock
36345 #: ../src/guestfs.pod:2925
36346 msgid ""
36347 "Although libguestfs probably does not impose any limit, the underlying host "
36348 "storage will.  If you store disk images on a host ext4 filesystem, then the "
36349 "maximum size will be limited by the maximum ext4 file size (currently 16 "
36350 "TB).  If you store disk images as host logical volumes then you are limited "
36351 "by the maximum size of an LV."
36352 msgstr ""
36353
36354 #. type: textblock
36355 #: ../src/guestfs.pod:2931
36356 msgid ""
36357 "For the hugest disk image files, we recommend using XFS on the host for "
36358 "storage."
36359 msgstr ""
36360
36361 #. type: =head2
36362 #: ../src/guestfs.pod:2934
36363 msgid "MAXIMUM SIZE OF A PARTITION"
36364 msgstr ""
36365
36366 #. type: textblock
36367 #: ../src/guestfs.pod:2936
36368 msgid ""
36369 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
36370 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
36371 "address a partition located beyond 2 TB on the disk."
36372 msgstr ""
36373
36374 #. type: textblock
36375 #: ../src/guestfs.pod:2940
36376 msgid ""
36377 "It is recommended that you use GPT partitions on disks which are larger than "
36378 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
36379 "which are theoretically larger than the largest disk we could support."
36380 msgstr ""
36381
36382 #. type: =head2
36383 #: ../src/guestfs.pod:2945
36384 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
36385 msgstr ""
36386
36387 #. type: textblock
36388 #: ../src/guestfs.pod:2947
36389 msgid ""
36390 "This depends on the filesystem type.  libguestfs itself does not impose any "
36391 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
36392 "what these limits are."
36393 msgstr ""
36394
36395 #. type: =head2
36396 #: ../src/guestfs.pod:2951
36397 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
36398 msgstr ""
36399
36400 #. type: textblock
36401 #: ../src/guestfs.pod:2953
36402 msgid ""
36403 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
36404 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
36405 "uploads and downloads."
36406 msgstr ""
36407
36408 #. type: =head2
36409 #: ../src/guestfs.pod:2957
36410 msgid "INSPECTION LIMITS"
36411 msgstr ""
36412
36413 #. type: textblock
36414 #: ../src/guestfs.pod:2959
36415 msgid ""
36416 "The inspection code has several arbitrary limits on things like the size of "
36417 "Windows Registry hive it will read, and the length of product name.  These "
36418 "are intended to stop a malicious guest from consuming arbitrary amounts of "
36419 "memory and disk space on the host, and should not be reached in practice.  "
36420 "See the source code for more information."
36421 msgstr ""
36422
36423 #. type: textblock
36424 #: ../src/guestfs.pod:2985
36425 msgid ""
36426 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
36427 "effect as calling C<guestfs_set_verbose (g, 1)>."
36428 msgstr ""
36429
36430 #. type: textblock
36431 #: ../src/guestfs.pod:2997
36432 msgid ""
36433 "Set the path that libguestfs uses to search for a supermin appliance.  See "
36434 "the discussion of paths in section L</PATH> above."
36435 msgstr ""
36436
36437 #. type: textblock
36438 #: ../src/guestfs.pod:3006
36439 msgid "See also L</QEMU WRAPPERS> above."
36440 msgstr ""
36441
36442 #. type: textblock
36443 #: ../src/guestfs.pod:3010
36444 msgid ""
36445 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
36446 "effect as calling C<guestfs_set_trace (g, 1)>."
36447 msgstr ""
36448
36449 #. type: textblock
36450 #: ../src/guestfs.pod:3028
36451 msgid ""
36452 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
36453 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
36454 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
36455 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
36456 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
36457 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
36458 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
36459 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
36460 msgstr ""
36461
36462 #. type: textblock
36463 #: ../src/guestfs.pod:3058
36464 msgid ""
36465 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
36466 "(8)>, L<disktype(1)>."
36467 msgstr ""
36468
36469 #. type: =head1
36470 #: ../src/guestfs.pod:3065 ../tools/virt-make-fs.pl:553
36471 #: ../tools/virt-win-reg.pl:761
36472 msgid "BUGS"
36473 msgstr ""
36474
36475 #. type: textblock
36476 #: ../src/guestfs.pod:3067
36477 msgid "To get a list of bugs against libguestfs use this link:"
36478 msgstr ""
36479
36480 #. type: textblock
36481 #: ../src/guestfs.pod:3069
36482 msgid ""
36483 "L<https://bugzilla.redhat.com/buglist.cgi?"
36484 "component=libguestfs&product=Virtualization+Tools>"
36485 msgstr ""
36486
36487 #. type: textblock
36488 #: ../src/guestfs.pod:3071
36489 msgid "To report a new bug against libguestfs use this link:"
36490 msgstr ""
36491
36492 #. type: textblock
36493 #: ../src/guestfs.pod:3073
36494 msgid ""
36495 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
36496 "component=libguestfs&product=Virtualization+Tools>"
36497 msgstr ""
36498
36499 #. type: textblock
36500 #: ../src/guestfs.pod:3075
36501 msgid "When reporting a bug, please check:"
36502 msgstr ""
36503
36504 #. type: textblock
36505 #: ../src/guestfs.pod:3081
36506 msgid "That the bug hasn't been reported already."
36507 msgstr ""
36508
36509 #. type: textblock
36510 #: ../src/guestfs.pod:3085
36511 msgid "That you are testing a recent version."
36512 msgstr ""
36513
36514 #. type: textblock
36515 #: ../src/guestfs.pod:3089
36516 msgid "Describe the bug accurately, and give a way to reproduce it."
36517 msgstr ""
36518
36519 #. type: textblock
36520 #: ../src/guestfs.pod:3093
36521 msgid ""
36522 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
36523 "bug report."
36524 msgstr ""
36525
36526 #. type: textblock
36527 #: ../test-tool/libguestfs-test-tool.pod:5
36528 msgid "libguestfs-test-tool - End user tests for libguestfs"
36529 msgstr ""
36530
36531 #. type: verbatim
36532 #: ../test-tool/libguestfs-test-tool.pod:9
36533 #, no-wrap
36534 msgid ""
36535 " libguestfs-test-tool [--options]\n"
36536 "\n"
36537 msgstr ""
36538
36539 #. type: textblock
36540 #: ../test-tool/libguestfs-test-tool.pod:13
36541 msgid ""
36542 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
36543 "and developers, to allow them to check basic libguestfs functionality is "
36544 "working.  This is needed because libguestfs occasionally breaks for reasons "
36545 "beyond our control: usually because of changes in the underlying qemu or "
36546 "kernel packages, or the host environment."
36547 msgstr ""
36548
36549 #. type: textblock
36550 #: ../test-tool/libguestfs-test-tool.pod:20
36551 msgid "If you suspect a problem in libguestfs, then just run:"
36552 msgstr ""
36553
36554 #. type: verbatim
36555 #: ../test-tool/libguestfs-test-tool.pod:22
36556 #, no-wrap
36557 msgid ""
36558 " libguestfs-test-tool\n"
36559 "\n"
36560 msgstr ""
36561
36562 #. type: textblock
36563 #: ../test-tool/libguestfs-test-tool.pod:24
36564 msgid "It will print lots of diagnostic messages."
36565 msgstr ""
36566
36567 #. type: textblock
36568 #: ../test-tool/libguestfs-test-tool.pod:26
36569 msgid "If it runs to completion successfully, you will see this near the end:"
36570 msgstr ""
36571
36572 #. type: verbatim
36573 #: ../test-tool/libguestfs-test-tool.pod:28
36574 #, no-wrap
36575 msgid ""
36576 " ===== TEST FINISHED OK =====\n"
36577 "\n"
36578 msgstr ""
36579
36580 #. type: textblock
36581 #: ../test-tool/libguestfs-test-tool.pod:30
36582 msgid "and the test tool will exit with code 0."
36583 msgstr ""
36584
36585 #. type: textblock
36586 #: ../test-tool/libguestfs-test-tool.pod:32
36587 msgid ""
36588 "If it fails (and/or exits with non-zero error code), please paste the "
36589 "B<complete, unedited> output of the test tool into a bug report.  More "
36590 "information about reporting bugs can be found on the L<http://libguestfs.org/"
36591 "> website."
36592 msgstr ""
36593
36594 #. type: =item
36595 #: ../test-tool/libguestfs-test-tool.pod:41
36596 msgid "I<--help>"
36597 msgstr ""
36598
36599 #. type: textblock
36600 #: ../test-tool/libguestfs-test-tool.pod:43
36601 msgid "Display short usage information and exit."
36602 msgstr ""
36603
36604 #. type: =item
36605 #: ../test-tool/libguestfs-test-tool.pod:45
36606 msgid "I<--qemu qemu_binary>"
36607 msgstr ""
36608
36609 #. type: textblock
36610 #: ../test-tool/libguestfs-test-tool.pod:47
36611 msgid ""
36612 "If you have downloaded another qemu binary, point this option at the full "
36613 "path of the binary to try it."
36614 msgstr ""
36615
36616 #. type: =item
36617 #: ../test-tool/libguestfs-test-tool.pod:50
36618 msgid "I<--qemudir qemu_source_dir>"
36619 msgstr ""
36620
36621 #. type: textblock
36622 #: ../test-tool/libguestfs-test-tool.pod:52
36623 msgid ""
36624 "If you have compiled qemu from source, point this option at the source "
36625 "directory to try it."
36626 msgstr ""
36627
36628 #. type: =item
36629 #: ../test-tool/libguestfs-test-tool.pod:55
36630 msgid "I<--timeout N>"
36631 msgstr ""
36632
36633 #. type: textblock
36634 #: ../test-tool/libguestfs-test-tool.pod:57
36635 msgid ""
36636 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
36637 "does not usually need to be adjusted unless your machine is very slow."
36638 msgstr ""
36639
36640 #. type: =head1
36641 #: ../test-tool/libguestfs-test-tool.pod:63
36642 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
36643 msgstr ""
36644
36645 #. type: textblock
36646 #: ../test-tool/libguestfs-test-tool.pod:65
36647 msgid ""
36648 "If you have compiled another version of qemu from source and would like to "
36649 "try that, then you can use the I<--qemudir> option to point to the qemu "
36650 "source directory."
36651 msgstr ""
36652
36653 #. type: textblock
36654 #: ../test-tool/libguestfs-test-tool.pod:69
36655 msgid ""
36656 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
36657 "option to point to the binary."
36658 msgstr ""
36659
36660 #. type: textblock
36661 #: ../test-tool/libguestfs-test-tool.pod:72
36662 msgid ""
36663 "When using an alternate qemu with libguestfs, usually you would need to "
36664 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
36665 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
36666 "use either of the I<--qemudir> or I<--qemu> options."
36667 msgstr ""
36668
36669 #. type: textblock
36670 #: ../test-tool/libguestfs-test-tool.pod:79
36671 msgid ""
36672 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
36673 "I<1> if there was an error."
36674 msgstr ""
36675
36676 #. type: textblock
36677 #: ../test-tool/libguestfs-test-tool.pod:84
36678 msgid ""
36679 "For the full list of environment variables which may affect libguestfs, "
36680 "please see the L<guestfs(3)> manual page."
36681 msgstr ""
36682
36683 #. type: textblock
36684 #: ../test-tool/libguestfs-test-tool.pod:89
36685 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
36686 msgstr ""
36687
36688 #. type: textblock
36689 #: ../tools/virt-list-filesystems.pl:32
36690 msgid ""
36691 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
36692 msgstr ""
36693
36694 #. type: verbatim
36695 #: ../tools/virt-list-filesystems.pl:36
36696 #, no-wrap
36697 msgid ""
36698 " virt-list-filesystems [--options] domname\n"
36699 "\n"
36700 msgstr ""
36701
36702 #. type: verbatim
36703 #: ../tools/virt-list-filesystems.pl:38
36704 #, no-wrap
36705 msgid ""
36706 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
36707 "\n"
36708 msgstr ""
36709
36710 #. type: textblock
36711 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
36712 msgid ""
36713 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
36714 "replacement."
36715 msgstr ""
36716
36717 #. type: textblock
36718 #: ../tools/virt-list-filesystems.pl:45
36719 msgid ""
36720 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
36721 "are contained in a virtual machine or disk image."
36722 msgstr ""
36723
36724 #. type: textblock
36725 #: ../tools/virt-list-filesystems.pl:49
36726 msgid ""
36727 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
36728 "functionality.  For more complex cases you should look at the L<guestfish(1)"
36729 "> tool."
36730 msgstr ""
36731
36732 #. type: textblock
36733 #: ../tools/virt-list-filesystems.pl:112
36734 msgid ""
36735 "With this option, C<virt-list-filesystems> displays the type of each "
36736 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
36737 msgstr ""
36738
36739 #. type: =item
36740 #: ../tools/virt-list-filesystems.pl:119
36741 msgid "B<-a>"
36742 msgstr ""
36743
36744 #. type: textblock
36745 #: ../tools/virt-list-filesystems.pl:123
36746 msgid ""
36747 "Normally we only show mountable filesystems.  If this option is given then "
36748 "swap devices are shown too."
36749 msgstr ""
36750
36751 #. type: textblock
36752 #: ../tools/virt-list-filesystems.pl:197
36753 msgid ""
36754 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
36755 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
36756 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36757 msgstr ""
36758
36759 #. type: textblock
36760 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
36761 msgid "Copyright (C) 2009 Red Hat Inc."
36762 msgstr ""
36763
36764 #. type: textblock
36765 #: ../tools/virt-list-partitions.pl:32
36766 msgid ""
36767 "virt-list-partitions - List partitions in a virtual machine or disk image"
36768 msgstr ""
36769
36770 #. type: verbatim
36771 #: ../tools/virt-list-partitions.pl:36
36772 #, no-wrap
36773 msgid ""
36774 " virt-list-partitions [--options] domname\n"
36775 "\n"
36776 msgstr ""
36777
36778 #. type: verbatim
36779 #: ../tools/virt-list-partitions.pl:38
36780 #, no-wrap
36781 msgid ""
36782 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
36783 "\n"
36784 msgstr ""
36785
36786 #. type: textblock
36787 #: ../tools/virt-list-partitions.pl:45
36788 msgid ""
36789 "C<virt-list-partitions> is a command line tool to list the partitions that "
36790 "are contained in a virtual machine or disk image.  It is mainly useful as a "
36791 "first step to using L<virt-resize(1)>."
36792 msgstr ""
36793
36794 #. type: textblock
36795 #: ../tools/virt-list-partitions.pl:50
36796 msgid ""
36797 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
36798 "functionality.  For more complex cases you should look at the L<guestfish(1)"
36799 "> tool."
36800 msgstr ""
36801
36802 #. type: textblock
36803 #: ../tools/virt-list-partitions.pl:113
36804 msgid "Show sizes in human-readable form (eg. \"1G\")."
36805 msgstr ""
36806
36807 #. type: textblock
36808 #: ../tools/virt-list-partitions.pl:123
36809 msgid ""
36810 "With this option, C<virt-list-partitions> displays the type and size of each "
36811 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
36812 msgstr ""
36813
36814 #. type: =item
36815 #: ../tools/virt-list-partitions.pl:130
36816 msgid "B<-t>"
36817 msgstr ""
36818
36819 #. type: =item
36820 #: ../tools/virt-list-partitions.pl:132
36821 msgid "B<--total>"
36822 msgstr ""
36823
36824 #. type: textblock
36825 #: ../tools/virt-list-partitions.pl:134
36826 msgid ""
36827 "Display the total size of each block device (as a separate row or rows)."
36828 msgstr ""
36829
36830 #. type: textblock
36831 #: ../tools/virt-list-partitions.pl:267
36832 msgid ""
36833 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
36834 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
36835 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36836 msgstr ""
36837
36838 #. type: textblock
36839 #: ../tools/virt-list-partitions.pl:283
36840 msgid "Copyright (C) 2009-2010 Red Hat Inc."
36841 msgstr ""
36842
36843 #. type: textblock
36844 #: ../tools/virt-make-fs.pl:37
36845 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
36846 msgstr ""
36847
36848 #. type: verbatim
36849 #: ../tools/virt-make-fs.pl:41
36850 #, no-wrap
36851 msgid ""
36852 " virt-make-fs [--options] input.tar output.img\n"
36853 "\n"
36854 msgstr ""
36855
36856 #. type: verbatim
36857 #: ../tools/virt-make-fs.pl:43
36858 #, no-wrap
36859 msgid ""
36860 " virt-make-fs [--options] input.tar.gz output.img\n"
36861 "\n"
36862 msgstr ""
36863
36864 #. type: verbatim
36865 #: ../tools/virt-make-fs.pl:45
36866 #, no-wrap
36867 msgid ""
36868 " virt-make-fs [--options] directory output.img\n"
36869 "\n"
36870 msgstr ""
36871
36872 #. type: textblock
36873 #: ../tools/virt-make-fs.pl:49
36874 msgid ""
36875 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
36876 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
36877 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
36878 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
36879 "you want to attach these filesystems to existing virtual machines (eg. to "
36880 "import large amounts of read-only data to a VM)."
36881 msgstr ""
36882
36883 #. type: textblock
36884 #: ../tools/virt-make-fs.pl:57
36885 msgid "Basic usage is:"
36886 msgstr ""
36887
36888 #. type: verbatim
36889 #: ../tools/virt-make-fs.pl:59
36890 #, no-wrap
36891 msgid ""
36892 " virt-make-fs input output\n"
36893 "\n"
36894 msgstr ""
36895
36896 #. type: textblock
36897 #: ../tools/virt-make-fs.pl:61
36898 msgid ""
36899 "where C<input> is either a directory containing files that you want to add, "
36900 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
36901 "C<output> is a disk image.  The input type is detected automatically.  The "
36902 "output disk image defaults to a raw ext2 image unless you specify extra "
36903 "flags (see L</OPTIONS> below)."
36904 msgstr ""
36905
36906 #. type: =head2
36907 #: ../tools/virt-make-fs.pl:67
36908 msgid "EXTRA SPACE"
36909 msgstr ""
36910
36911 #. type: textblock
36912 #: ../tools/virt-make-fs.pl:69
36913 msgid ""
36914 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
36915 "the files that it contains, but might have extra space.  Depending on how "
36916 "you are going to use the output, you might think this extra space is wasted "
36917 "and want to minimize it, or you might want to leave space so that more files "
36918 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
36919 "but you can use the I<--size> flag to leave space in the filesystem if you "
36920 "want it."
36921 msgstr ""
36922
36923 #. type: textblock
36924 #: ../tools/virt-make-fs.pl:77
36925 msgid ""
36926 "An alternative way to leave extra space but not make the output image any "
36927 "bigger is to use an alternative disk image format (instead of the default "
36928 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
36929 "image format (check your hypervisor supports this before using it).  This "
36930 "allows you to choose a large I<--size> but the extra space won't actually be "
36931 "allocated in the image until you try to store something in it."
36932 msgstr ""
36933
36934 #. type: textblock
36935 #: ../tools/virt-make-fs.pl:85
36936 msgid ""
36937 "Don't forget that you can also use local commands including L<resize2fs(8)> "
36938 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
36939 "to build another image from scratch."
36940 msgstr ""
36941
36942 #. type: =head3
36943 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
36944 #: ../tools/virt-make-fs.pl:142
36945 msgid "EXAMPLE"
36946 msgstr ""
36947
36948 #. type: verbatim
36949 #: ../tools/virt-make-fs.pl:91
36950 #, no-wrap
36951 msgid ""
36952 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
36953 "\n"
36954 msgstr ""
36955
36956 #. type: =head2
36957 #: ../tools/virt-make-fs.pl:93
36958 msgid "FILESYSTEM TYPE"
36959 msgstr ""
36960
36961 #. type: textblock
36962 #: ../tools/virt-make-fs.pl:95
36963 msgid ""
36964 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
36965 "libguestfs supports can be used (but I<not> read-only formats like "
36966 "ISO9660).  Here are some of the more common choices:"
36967 msgstr ""
36968
36969 #. type: =item
36970 #: ../tools/virt-make-fs.pl:101
36971 msgid "I<ext3>"
36972 msgstr ""
36973
36974 #. type: textblock
36975 #: ../tools/virt-make-fs.pl:103
36976 msgid ""
36977 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
36978 "you are not going to use the filesystem in a way that requires the journal, "
36979 "then this is just wasted overhead."
36980 msgstr ""
36981
36982 #. type: =item
36983 #: ../tools/virt-make-fs.pl:107
36984 msgid "I<ntfs> or I<vfat>"
36985 msgstr ""
36986
36987 #. type: textblock
36988 #: ../tools/virt-make-fs.pl:109
36989 msgid "Useful if exporting data to a Windows guest."
36990 msgstr ""
36991
36992 #. type: textblock
36993 #: ../tools/virt-make-fs.pl:111
36994 msgid ""
36995 "I<Note for vfat>: The tar archive or local directory must only contain files "
36996 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
36997 "program running within libguestfs is unable to change the ownership of non-"
36998 "root files, since vfat itself does not support this."
36999 msgstr ""
37000
37001 #. type: =item
37002 #: ../tools/virt-make-fs.pl:116
37003 msgid "I<minix>"
37004 msgstr ""
37005
37006 #. type: textblock
37007 #: ../tools/virt-make-fs.pl:118
37008 msgid ""
37009 "Lower overhead than C<ext2>, but certain limitations on filename length and "
37010 "total filesystem size."
37011 msgstr ""
37012
37013 #. type: verbatim
37014 #: ../tools/virt-make-fs.pl:125
37015 #, no-wrap
37016 msgid ""
37017 " virt-make-fs --type=minix input minixfs.img\n"
37018 "\n"
37019 msgstr ""
37020
37021 #. type: =head2
37022 #: ../tools/virt-make-fs.pl:127
37023 msgid "TO PARTITION OR NOT TO PARTITION"
37024 msgstr ""
37025
37026 #. type: textblock
37027 #: ../tools/virt-make-fs.pl:129
37028 msgid "Optionally virt-make-fs can add a partition table to the output disk."
37029 msgstr ""
37030
37031 #. type: textblock
37032 #: ../tools/virt-make-fs.pl:131
37033 msgid ""
37034 "Adding a partition can make the disk image more compatible with certain "
37035 "virtualized operating systems which don't expect to see a filesystem "
37036 "directly located on a block device (Linux doesn't care and will happily "
37037 "handle both types)."
37038 msgstr ""
37039
37040 #. type: textblock
37041 #: ../tools/virt-make-fs.pl:136
37042 msgid ""
37043 "On the other hand, if you have a partition table then the output image is no "
37044 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
37045 "directly on a partitioned disk image.  (However libguestfs tools such as "
37046 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
37047 msgstr ""
37048
37049 #. type: textblock
37050 #: ../tools/virt-make-fs.pl:144
37051 msgid "Add an MBR partition:"
37052 msgstr ""
37053
37054 #. type: verbatim
37055 #: ../tools/virt-make-fs.pl:146
37056 #, no-wrap
37057 msgid ""
37058 " virt-make-fs --partition -- input disk.img\n"
37059 "\n"
37060 msgstr ""
37061
37062 #. type: textblock
37063 #: ../tools/virt-make-fs.pl:148
37064 msgid ""
37065 "If the output disk image could be terabyte-sized or larger, it's better to "
37066 "use an EFI/GPT-compatible partition table:"
37067 msgstr ""
37068
37069 #. type: verbatim
37070 #: ../tools/virt-make-fs.pl:151
37071 #, no-wrap
37072 msgid ""
37073 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
37074 "\n"
37075 msgstr ""
37076
37077 #. type: textblock
37078 #: ../tools/virt-make-fs.pl:179
37079 msgid "Enable debugging information."
37080 msgstr ""
37081
37082 #. type: =item
37083 #: ../tools/virt-make-fs.pl:185
37084 msgid "B<--size=E<lt>NE<gt>>"
37085 msgstr ""
37086
37087 #. type: =item
37088 #: ../tools/virt-make-fs.pl:187
37089 msgid "B<--size=+E<lt>NE<gt>>"
37090 msgstr ""
37091
37092 #. type: =item
37093 #: ../tools/virt-make-fs.pl:189
37094 msgid "B<-s E<lt>NE<gt>>"
37095 msgstr ""
37096
37097 #. type: =item
37098 #: ../tools/virt-make-fs.pl:191
37099 msgid "B<-s +E<lt>NE<gt>>"
37100 msgstr ""
37101
37102 #. type: textblock
37103 #: ../tools/virt-make-fs.pl:193
37104 msgid ""
37105 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
37106 msgstr ""
37107
37108 #. type: textblock
37109 #: ../tools/virt-make-fs.pl:196
37110 msgid ""
37111 "If this option is I<not> given, then the output image will be just large "
37112 "enough to contain all the files, with not much wasted space."
37113 msgstr ""
37114
37115 #. type: textblock
37116 #: ../tools/virt-make-fs.pl:199
37117 msgid ""
37118 "To choose a fixed size output disk, specify an absolute number followed by b/"
37119 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37120 "Petabytes or Exabytes.  This must be large enough to contain all the input "
37121 "files, else you will get an error."
37122 msgstr ""
37123
37124 #. type: textblock
37125 #: ../tools/virt-make-fs.pl:204
37126 msgid ""
37127 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
37128 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37129 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
37130 "the input files, and (approximately) an extra 200 MB free space."
37131 msgstr ""
37132
37133 #. type: textblock
37134 #: ../tools/virt-make-fs.pl:210
37135 msgid ""
37136 "Note that virt-make-fs estimates free space, and therefore will not produce "
37137 "filesystems containing precisely the free space requested.  (It is much more "
37138 "expensive and time-consuming to produce a filesystem which has precisely the "
37139 "desired free space)."
37140 msgstr ""
37141
37142 #. type: =item
37143 #: ../tools/virt-make-fs.pl:219
37144 msgid "B<--format=E<lt>fmtE<gt>>"
37145 msgstr ""
37146
37147 #. type: =item
37148 #: ../tools/virt-make-fs.pl:221
37149 msgid "B<-F E<lt>fmtE<gt>>"
37150 msgstr ""
37151
37152 #. type: textblock
37153 #: ../tools/virt-make-fs.pl:223
37154 msgid "Choose the output disk image format."
37155 msgstr ""
37156
37157 #. type: textblock
37158 #: ../tools/virt-make-fs.pl:225
37159 msgid "The default is C<raw> (raw disk image)."
37160 msgstr ""
37161
37162 #. type: textblock
37163 #: ../tools/virt-make-fs.pl:227
37164 msgid ""
37165 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
37166 "that would really make sense here is C<qcow2>."
37167 msgstr ""
37168
37169 #. type: =item
37170 #: ../tools/virt-make-fs.pl:234
37171 msgid "B<--type=E<lt>fsE<gt>>"
37172 msgstr ""
37173
37174 #. type: =item
37175 #: ../tools/virt-make-fs.pl:236
37176 msgid "B<-t E<lt>fsE<gt>>"
37177 msgstr ""
37178
37179 #. type: textblock
37180 #: ../tools/virt-make-fs.pl:238
37181 msgid "Choose the output filesystem type."
37182 msgstr ""
37183
37184 #. type: textblock
37185 #: ../tools/virt-make-fs.pl:240
37186 msgid "The default is C<ext2>."
37187 msgstr ""
37188
37189 #. type: textblock
37190 #: ../tools/virt-make-fs.pl:242
37191 msgid ""
37192 "Any filesystem which is supported read-write by libguestfs can be used here."
37193 msgstr ""
37194
37195 #. type: =item
37196 #: ../tools/virt-make-fs.pl:249
37197 msgid "B<--partition>"
37198 msgstr ""
37199
37200 #. type: =item
37201 #: ../tools/virt-make-fs.pl:251
37202 msgid "B<--partition=E<lt>parttypeE<gt>>"
37203 msgstr ""
37204
37205 #. type: textblock
37206 #: ../tools/virt-make-fs.pl:253
37207 msgid ""
37208 "If specified, this flag adds an MBR partition table to the output disk image."
37209 msgstr ""
37210
37211 #. type: textblock
37212 #: ../tools/virt-make-fs.pl:256
37213 msgid ""
37214 "You can change the partition table type, eg. I<--partition=gpt> for large "
37215 "disks."
37216 msgstr ""
37217
37218 #. type: textblock
37219 #: ../tools/virt-make-fs.pl:259
37220 msgid ""
37221 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
37222 "might consider the next parameter to be the partition type.  For example:"
37223 msgstr ""
37224
37225 #. type: verbatim
37226 #: ../tools/virt-make-fs.pl:263
37227 #, no-wrap
37228 msgid ""
37229 " virt-make-fs --partition input.tar ...\n"
37230 "\n"
37231 msgstr ""
37232
37233 #. type: textblock
37234 #: ../tools/virt-make-fs.pl:265
37235 msgid ""
37236 "would cause virt-make-fs to think you wanted to use a partition type of "
37237 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
37238 "dash) between options and the input file argument:"
37239 msgstr ""
37240
37241 #. type: verbatim
37242 #: ../tools/virt-make-fs.pl:269
37243 #, no-wrap
37244 msgid ""
37245 " virt-make-fs --partition -- input.tar ...\n"
37246 "\n"
37247 msgstr ""
37248
37249 #. type: textblock
37250 #: ../tools/virt-make-fs.pl:541
37251 msgid ""
37252 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
37253 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
37254 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
37255 msgstr ""
37256
37257 #. type: textblock
37258 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
37259 msgid ""
37260 "When reporting bugs, please enable debugging and capture the I<complete> "
37261 "output:"
37262 msgstr ""
37263
37264 #. type: verbatim
37265 #: ../tools/virt-make-fs.pl:558
37266 #, no-wrap
37267 msgid ""
37268 " export LIBGUESTFS_DEBUG=1\n"
37269 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
37270 "\n"
37271 msgstr ""
37272
37273 #. type: textblock
37274 #: ../tools/virt-make-fs.pl:561
37275 msgid ""
37276 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
37277 "redhat.com/>"
37278 msgstr ""
37279
37280 #. type: textblock
37281 #: ../tools/virt-tar.pl:33
37282 msgid "virt-tar - Extract or upload files to a virtual machine"
37283 msgstr ""
37284
37285 #. type: verbatim
37286 #: ../tools/virt-tar.pl:37
37287 #, no-wrap
37288 msgid ""
37289 " virt-tar [--options] -x domname directory tarball\n"
37290 "\n"
37291 msgstr ""
37292
37293 #. type: verbatim
37294 #: ../tools/virt-tar.pl:39
37295 #, no-wrap
37296 msgid ""
37297 " virt-tar [--options] -u domname tarball directory\n"
37298 "\n"
37299 msgstr ""
37300
37301 #. type: verbatim
37302 #: ../tools/virt-tar.pl:41
37303 #, no-wrap
37304 msgid ""
37305 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
37306 "\n"
37307 msgstr ""
37308
37309 #. type: verbatim
37310 #: ../tools/virt-tar.pl:43
37311 #, no-wrap
37312 msgid ""
37313 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
37314 "\n"
37315 msgstr ""
37316
37317 #. type: =head2
37318 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
37319 msgid "NOTE"
37320 msgstr ""
37321
37322 #. type: textblock
37323 #: ../tools/virt-tar.pl:47
37324 msgid ""
37325 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
37326 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
37327 msgstr ""
37328
37329 #. type: textblock
37330 #: ../tools/virt-tar.pl:52
37331 msgid "Download C</home> from the VM into a local tarball:"
37332 msgstr ""
37333
37334 #. type: verbatim
37335 #: ../tools/virt-tar.pl:54
37336 #, no-wrap
37337 msgid ""
37338 " virt-tar -x domname /home home.tar\n"
37339 "\n"
37340 msgstr ""
37341
37342 #. type: verbatim
37343 #: ../tools/virt-tar.pl:56
37344 #, no-wrap
37345 msgid ""
37346 " virt-tar -zx domname /home home.tar.gz\n"
37347 "\n"
37348 msgstr ""
37349
37350 #. type: textblock
37351 #: ../tools/virt-tar.pl:58
37352 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
37353 msgstr ""
37354
37355 #. type: verbatim
37356 #: ../tools/virt-tar.pl:60
37357 #, no-wrap
37358 msgid ""
37359 " virt-tar -u domname uploadstuff.tar /tmp\n"
37360 "\n"
37361 msgstr ""
37362
37363 #. type: verbatim
37364 #: ../tools/virt-tar.pl:62
37365 #, no-wrap
37366 msgid ""
37367 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
37368 "\n"
37369 msgstr ""
37370
37371 #. type: textblock
37372 #: ../tools/virt-tar.pl:66
37373 msgid ""
37374 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
37375 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
37376 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
37377 msgstr ""
37378
37379 #. type: textblock
37380 #: ../tools/virt-tar.pl:71
37381 msgid ""
37382 "You can use I<-x> (extract) on live virtual machines, but you might get "
37383 "inconsistent results or errors if there is filesystem activity inside the "
37384 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
37385 "work, but the only way to guarantee consistent results is if the virtual "
37386 "machine is shut down."
37387 msgstr ""
37388
37389 #. type: textblock
37390 #: ../tools/virt-tar.pl:79
37391 msgid ""
37392 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
37393 "parts of a guest filesystem.  There are many possibilities: making backups, "
37394 "uploading data files, snooping on guest activity, fixing or customizing "
37395 "guests, etc."
37396 msgstr ""
37397
37398 #. type: textblock
37399 #: ../tools/virt-tar.pl:84
37400 msgid ""
37401 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
37402 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
37403 "should look at the L<guestfish(1)> tool."
37404 msgstr ""
37405
37406 #. type: textblock
37407 #: ../tools/virt-tar.pl:88
37408 msgid ""
37409 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
37410 "its contents (recursively) from the virtual machine into a local tarball.  "
37411 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
37412 "virtual machine.  You cannot use these two options together."
37413 msgstr ""
37414
37415 #. type: textblock
37416 #: ../tools/virt-tar.pl:94
37417 msgid ""
37418 "In addition, you may need to use the I<-z> (gZip) option to enable "
37419 "compression.  When uploading, you have to specify I<-z> if the upload file "
37420 "is compressed because virt-tar won't detect this on its own."
37421 msgstr ""
37422
37423 #. type: textblock
37424 #: ../tools/virt-tar.pl:98
37425 msgid ""
37426 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
37427 "example it cannot do PKZip files or bzip2 compression.  If you want that "
37428 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
37429 "the L<libguestfs(3)> API)."
37430 msgstr ""
37431
37432 #. type: =item
37433 #: ../tools/virt-tar.pl:160
37434 msgid "B<--extract>"
37435 msgstr ""
37436
37437 #. type: =item
37438 #: ../tools/virt-tar.pl:162
37439 msgid "B<--download>"
37440 msgstr ""
37441
37442 #. type: =item
37443 #: ../tools/virt-tar.pl:164
37444 msgid "B<-u>"
37445 msgstr ""
37446
37447 #. type: =item
37448 #: ../tools/virt-tar.pl:166
37449 msgid "B<--upload>"
37450 msgstr ""
37451
37452 #. type: textblock
37453 #: ../tools/virt-tar.pl:168
37454 msgid ""
37455 "Use I<-x> to extract (download) a directory from a virtual machine to a "
37456 "local tarball."
37457 msgstr ""
37458
37459 #. type: textblock
37460 #: ../tools/virt-tar.pl:171
37461 msgid ""
37462 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
37463 "Please read the L</WARNING> section above before using this option."
37464 msgstr ""
37465
37466 #. type: textblock
37467 #: ../tools/virt-tar.pl:175
37468 msgid "You must specify exactly one of these options."
37469 msgstr ""
37470
37471 #. type: =item
37472 #: ../tools/virt-tar.pl:181
37473 msgid "B<-z>"
37474 msgstr ""
37475
37476 #. type: =item
37477 #: ../tools/virt-tar.pl:183
37478 msgid "B<--gzip>"
37479 msgstr ""
37480
37481 #. type: textblock
37482 #: ../tools/virt-tar.pl:185
37483 msgid "Specify that the input or output tarball is gzip-compressed."
37484 msgstr ""
37485
37486 #. type: textblock
37487 #: ../tools/virt-tar.pl:298
37488 msgid ""
37489 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
37490 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
37491 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
37492 "org/>."
37493 msgstr ""
37494
37495 #. type: textblock
37496 #: ../tools/virt-win-reg.pl:37
37497 msgid ""
37498 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
37499 msgstr ""
37500
37501 #. type: verbatim
37502 #: ../tools/virt-win-reg.pl:41
37503 #, no-wrap
37504 msgid ""
37505 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
37506 "\n"
37507 msgstr ""
37508
37509 #. type: verbatim
37510 #: ../tools/virt-win-reg.pl:43
37511 #, no-wrap
37512 msgid ""
37513 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
37514 "\n"
37515 msgstr ""
37516
37517 #. type: verbatim
37518 #: ../tools/virt-win-reg.pl:45
37519 #, no-wrap
37520 msgid ""
37521 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
37522 "\n"
37523 msgstr ""
37524
37525 #. type: verbatim
37526 #: ../tools/virt-win-reg.pl:47
37527 #, no-wrap
37528 msgid ""
37529 " virt-win-reg --merge domname [input.reg ...]\n"
37530 "\n"
37531 msgstr ""
37532
37533 #. type: verbatim
37534 #: ../tools/virt-win-reg.pl:49
37535 #, no-wrap
37536 msgid ""
37537 " virt-win-reg [--options] disk.img ... # instead of domname\n"
37538 "\n"
37539 msgstr ""
37540
37541 #. type: textblock
37542 #: ../tools/virt-win-reg.pl:53
37543 msgid ""
37544 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
37545 "virtual machines.  If you do this, you I<will> get irreversible disk "
37546 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
37547 "but doesn't catch all cases."
37548 msgstr ""
37549
37550 #. type: textblock
37551 #: ../tools/virt-win-reg.pl:58
37552 msgid ""
37553 "Modifying the Windows Registry is an inherently risky operation.  The format "
37554 "is deliberately obscure and undocumented, and Registry changes can leave the "
37555 "system unbootable.  Therefore when using the I<--merge> option, make sure "
37556 "you have a reliable backup first."
37557 msgstr ""
37558
37559 #. type: textblock
37560 #: ../tools/virt-win-reg.pl:65
37561 msgid ""
37562 "This program can export and merge Windows Registry entries from a Windows "
37563 "guest."
37564 msgstr ""
37565
37566 #. type: textblock
37567 #: ../tools/virt-win-reg.pl:68
37568 msgid ""
37569 "The first parameter is the libvirt guest name or the raw disk image of a "
37570 "Windows guest."
37571 msgstr ""
37572
37573 #. type: textblock
37574 #: ../tools/virt-win-reg.pl:71
37575 msgid ""
37576 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
37577 "exported (recursively).  For example:"
37578 msgstr ""
37579
37580 #. type: verbatim
37581 #: ../tools/virt-win-reg.pl:74
37582 #, no-wrap
37583 msgid ""
37584 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
37585 "\n"
37586 msgstr ""
37587
37588 #. type: textblock
37589 #: ../tools/virt-win-reg.pl:76
37590 msgid ""
37591 "You can also display single values from within registry keys, for example:"
37592 msgstr ""
37593
37594 #. type: verbatim
37595 #: ../tools/virt-win-reg.pl:79
37596 #, no-wrap
37597 msgid ""
37598 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
37599 " $ virt-win-reg Windows7 $cvkey ProductName\n"
37600 " Windows 7 Enterprise\n"
37601 "\n"
37602 msgstr ""
37603
37604 #. type: textblock
37605 #: ../tools/virt-win-reg.pl:83
37606 msgid ""
37607 "With I<--merge>, you can merge a textual regedit file into the Windows "
37608 "Registry:"
37609 msgstr ""
37610
37611 #. type: verbatim
37612 #: ../tools/virt-win-reg.pl:86
37613 #, no-wrap
37614 msgid ""
37615 " $ virt-win-reg --merge Windows7 changes.reg\n"
37616 "\n"
37617 msgstr ""
37618
37619 #. type: textblock
37620 #: ../tools/virt-win-reg.pl:90
37621 msgid ""
37622 "This program is only meant for simple access to the registry.  If you want "
37623 "to do complicated things with the registry, we suggest you download the "
37624 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
37625 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
37626 "L<hivexregedit(1)>."
37627 msgstr ""
37628
37629 #. type: =item
37630 #: ../tools/virt-win-reg.pl:159
37631 msgid "B<--merge>"
37632 msgstr ""
37633
37634 #. type: textblock
37635 #: ../tools/virt-win-reg.pl:161
37636 msgid ""
37637 "In merge mode, this merges a textual regedit file into the Windows Registry "
37638 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
37639 "displays or exports Registry entries instead."
37640 msgstr ""
37641
37642 #. type: textblock
37643 #: ../tools/virt-win-reg.pl:165
37644 msgid ""
37645 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
37646 "result in disk corruption.  However exporting (without this flag)  is always "
37647 "safe."
37648 msgstr ""
37649
37650 #. type: =item
37651 #: ../tools/virt-win-reg.pl:173
37652 msgid "B<--encoding> UTF-16LE|ASCII"
37653 msgstr ""
37654
37655 #. type: textblock
37656 #: ../tools/virt-win-reg.pl:175
37657 msgid ""
37658 "When merging (only), you may need to specify the encoding for strings to be "
37659 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
37660 "(3)/ENCODING STRINGS>."
37661 msgstr ""
37662
37663 #. type: textblock
37664 #: ../tools/virt-win-reg.pl:179
37665 msgid ""
37666 "The default is to use UTF-16LE, which should work with recent versions of "
37667 "Windows."
37668 msgstr ""
37669
37670 #. type: =item
37671 #: ../tools/virt-win-reg.pl:186
37672 msgid "B<--unsafe-printable-strings>"
37673 msgstr ""
37674
37675 #. type: textblock
37676 #: ../tools/virt-win-reg.pl:188
37677 msgid ""
37678 "When exporting (only), assume strings are UTF-16LE and print them as strings "
37679 "instead of hex sequences.  Remove the final zero codepoint from strings if "
37680 "present."
37681 msgstr ""
37682
37683 #. type: textblock
37684 #: ../tools/virt-win-reg.pl:192
37685 msgid ""
37686 "This is unsafe and does not preserve the fidelity of strings in the original "
37687 "Registry for various reasons:"
37688 msgstr ""
37689
37690 #. type: textblock
37691 #: ../tools/virt-win-reg.pl:199
37692 msgid ""
37693 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
37694 "other encodings will be corrupted by this transformation."
37695 msgstr ""
37696
37697 #. type: textblock
37698 #: ../tools/virt-win-reg.pl:204
37699 msgid ""
37700 "Assumes that everything which has type 1 or 2 is really a string and that "
37701 "everything else is not a string, but the type field in real Registries is "
37702 "not reliable."
37703 msgstr ""
37704
37705 #. type: textblock
37706 #: ../tools/virt-win-reg.pl:210
37707 msgid ""
37708 "Loses information about whether a zero codepoint followed the string in the "
37709 "Registry or not."
37710 msgstr ""
37711
37712 #. type: textblock
37713 #: ../tools/virt-win-reg.pl:215
37714 msgid ""
37715 "This all happens because the Registry itself contains no information about "
37716 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
37717 msgstr ""
37718
37719 #. type: textblock
37720 #: ../tools/virt-win-reg.pl:219
37721 msgid ""
37722 "You should only use this option for quick hacking and debugging of the "
37723 "Registry contents, and I<never> use it if the output is going to be passed "
37724 "into another program or stored in another Registry."
37725 msgstr ""
37726
37727 #. type: =head1
37728 #: ../tools/virt-win-reg.pl:556
37729 msgid "SUPPORTED SYSTEMS"
37730 msgstr ""
37731
37732 #. type: textblock
37733 #: ../tools/virt-win-reg.pl:558
37734 msgid ""
37735 "The program currently supports Windows NT-derived guests starting with "
37736 "Windows XP through to at least Windows 7."
37737 msgstr ""
37738
37739 #. type: textblock
37740 #: ../tools/virt-win-reg.pl:561
37741 msgid "The following Registry keys are supported:"
37742 msgstr ""
37743
37744 #. type: =item
37745 #: ../tools/virt-win-reg.pl:565
37746 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
37747 msgstr ""
37748
37749 #. type: =item
37750 #: ../tools/virt-win-reg.pl:567
37751 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
37752 msgstr ""
37753
37754 #. type: =item
37755 #: ../tools/virt-win-reg.pl:569
37756 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
37757 msgstr ""
37758
37759 #. type: =item
37760 #: ../tools/virt-win-reg.pl:571
37761 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
37762 msgstr ""
37763
37764 #. type: =item
37765 #: ../tools/virt-win-reg.pl:573
37766 msgid "C<HKEY_USERS\\.DEFAULT>"
37767 msgstr ""
37768
37769 #. type: =item
37770 #: ../tools/virt-win-reg.pl:575
37771 msgid "C<HKEY_USERS\\I<SID>>"
37772 msgstr ""
37773
37774 #. type: textblock
37775 #: ../tools/virt-win-reg.pl:577
37776 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
37777 msgstr ""
37778
37779 #. type: =item
37780 #: ../tools/virt-win-reg.pl:579
37781 msgid "C<HKEY_USERS\\I<username>>"
37782 msgstr ""
37783
37784 #. type: textblock
37785 #: ../tools/virt-win-reg.pl:581
37786 msgid ""
37787 "where I<username> is a local user name (this is a libguestfs extension)."
37788 msgstr ""
37789
37790 #. type: textblock
37791 #: ../tools/virt-win-reg.pl:585
37792 msgid ""
37793 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
37794 "C<HKEY_USERS>."
37795 msgstr ""
37796
37797 #. type: textblock
37798 #: ../tools/virt-win-reg.pl:588
37799 msgid ""
37800 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
37801 "supported (there is no \"current user\")."
37802 msgstr ""
37803
37804 #. type: =head1
37805 #: ../tools/virt-win-reg.pl:591
37806 msgid "ENCODING"
37807 msgstr ""
37808
37809 #. type: textblock
37810 #: ../tools/virt-win-reg.pl:593
37811 msgid ""
37812 "C<virt-win-reg> expects that regedit files have already been reencoded in "
37813 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
37814 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
37815 "Windows-style line endings, you may need to reencode the whole file before "
37816 "or after processing."
37817 msgstr ""
37818
37819 #. type: textblock
37820 #: ../tools/virt-win-reg.pl:599
37821 msgid ""
37822 "To reencode a file from Windows format to Linux (before processing it with "
37823 "the I<--merge> option), you would do something like this:"
37824 msgstr ""
37825
37826 #. type: verbatim
37827 #: ../tools/virt-win-reg.pl:602
37828 #, no-wrap
37829 msgid ""
37830 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
37831 "\n"
37832 msgstr ""
37833
37834 #. type: textblock
37835 #: ../tools/virt-win-reg.pl:604
37836 msgid ""
37837 "To go in the opposite direction, after exporting and before sending the file "
37838 "to a Windows user, do something like this:"
37839 msgstr ""
37840
37841 #. type: verbatim
37842 #: ../tools/virt-win-reg.pl:607
37843 #, no-wrap
37844 msgid ""
37845 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
37846 "\n"
37847 msgstr ""
37848
37849 #. type: textblock
37850 #: ../tools/virt-win-reg.pl:609
37851 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
37852 msgstr ""
37853
37854 #. type: textblock
37855 #: ../tools/virt-win-reg.pl:611
37856 msgid ""
37857 "If you are unsure about the current encoding, use the L<file(1)> command.  "
37858 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
37859 "style (CRLF) line endings, like this:"
37860 msgstr ""
37861
37862 #. type: verbatim
37863 #: ../tools/virt-win-reg.pl:615
37864 #, no-wrap
37865 msgid ""
37866 " $ file software.reg\n"
37867 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
37868 " with CRLF line terminators\n"
37869 "\n"
37870 msgstr ""
37871
37872 #. type: textblock
37873 #: ../tools/virt-win-reg.pl:619
37874 msgid "This file would need conversion before you could I<--merge> it."
37875 msgstr ""
37876
37877 #. type: =head1
37878 #: ../tools/virt-win-reg.pl:621
37879 msgid "CurrentControlSet etc."
37880 msgstr ""
37881
37882 #. type: textblock
37883 #: ../tools/virt-win-reg.pl:623
37884 msgid ""
37885 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
37886 "Registry at the level of the hive file, and therefore you cannot modify "
37887 "these."
37888 msgstr ""
37889
37890 #. type: textblock
37891 #: ../tools/virt-win-reg.pl:627
37892 msgid ""
37893 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
37894 "circumstances it might refer to another control set.  The way to find out is "
37895 "to look at the C<HKLM\\SYSTEM\\Select> key:"
37896 msgstr ""
37897
37898 #. type: verbatim
37899 #: ../tools/virt-win-reg.pl:631
37900 #, no-wrap
37901 msgid ""
37902 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
37903 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
37904 " \"Current\"=dword:00000001\n"
37905 " \"Default\"=dword:00000001\n"
37906 " \"Failed\"=dword:00000000\n"
37907 " \"LastKnownGood\"=dword:00000002\n"
37908 "\n"
37909 msgstr ""
37910
37911 #. type: textblock
37912 #: ../tools/virt-win-reg.pl:638
37913 msgid "\"Current\" is the one which Windows will choose when it boots."
37914 msgstr ""
37915
37916 #. type: textblock
37917 #: ../tools/virt-win-reg.pl:640
37918 msgid ""
37919 "Similarly, other C<Current...> keys in the path may need to be replaced."
37920 msgstr ""
37921
37922 #. type: =head1
37923 #: ../tools/virt-win-reg.pl:643
37924 msgid "WINDOWS TIPS"
37925 msgstr ""
37926
37927 #. type: textblock
37928 #: ../tools/virt-win-reg.pl:645
37929 msgid ""
37930 "Note that some of these tips modify the guest disk image.  The guest I<must> "
37931 "be shut off, else you will get disk corruption."
37932 msgstr ""
37933
37934 #. type: =head2
37935 #: ../tools/virt-win-reg.pl:648
37936 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
37937 msgstr ""
37938
37939 #. type: textblock
37940 #: ../tools/virt-win-reg.pl:650
37941 msgid ""
37942 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
37943 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
37944 "is uploaded into C<C:\\>:"
37945 msgstr ""
37946
37947 #. type: verbatim
37948 #: ../tools/virt-win-reg.pl:654
37949 #, no-wrap
37950 msgid ""
37951 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
37952 "\n"
37953 msgstr ""
37954
37955 #. type: textblock
37956 #: ../tools/virt-win-reg.pl:656
37957 msgid "Prepare a regedit file containing the registry change:"
37958 msgstr ""
37959
37960 #. type: verbatim
37961 #: ../tools/virt-win-reg.pl:658
37962 #, no-wrap
37963 msgid ""
37964 " cat > test.reg <<'EOF'\n"
37965 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
37966 " \"Test\"=\"c:\\\\test.bat\"\n"
37967 " EOF\n"
37968 "\n"
37969 msgstr ""
37970
37971 #. type: textblock
37972 #: ../tools/virt-win-reg.pl:663
37973 msgid ""
37974 "In this example we use the key C<RunOnce> which means that the script will "
37975 "run precisely once when the first user logs in.  If you want it to run every "
37976 "time a user logs in, replace C<RunOnce> with C<Run>."
37977 msgstr ""
37978
37979 #. type: textblock
37980 #: ../tools/virt-win-reg.pl:667
37981 msgid "Now update the registry:"
37982 msgstr ""
37983
37984 #. type: verbatim
37985 #: ../tools/virt-win-reg.pl:669
37986 #, no-wrap
37987 msgid ""
37988 " virt-win-reg --merge WindowsGuest test.reg\n"
37989 "\n"
37990 msgstr ""
37991
37992 #. type: =head2
37993 #: ../tools/virt-win-reg.pl:671
37994 msgid "INSTALLING A SERVICE"
37995 msgstr ""
37996
37997 #. type: textblock
37998 #: ../tools/virt-win-reg.pl:673
37999 msgid ""
38000 "This section assumes you are familiar with Windows services, and you either "
38001 "have a program which handles the Windows Service Control Protocol directly "
38002 "or you want to run any program using a service wrapper like SrvAny or the "
38003 "free RHSrvAny."
38004 msgstr ""
38005
38006 #. type: textblock
38007 #: ../tools/virt-win-reg.pl:678
38008 msgid ""
38009 "First upload the program and optionally the service wrapper.  In this case "
38010 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
38011 msgstr ""
38012
38013 #. type: verbatim
38014 #: ../tools/virt-win-reg.pl:682
38015 #, no-wrap
38016 msgid ""
38017 " guestfish -i -d WindowsGuest <<EOF\n"
38018 "   upload rhsrvany.exe /rhsrvany.exe\n"
38019 "   upload test.exe /test.exe\n"
38020 " EOF\n"
38021 "\n"
38022 msgstr ""
38023
38024 #. type: textblock
38025 #: ../tools/virt-win-reg.pl:687
38026 msgid ""
38027 "Prepare a regedit file containing the registry changes.  In this example, "
38028 "the first registry change is needed for the service itself or the service "
38029 "wrapper (if used).  The second registry change is only needed because I am "
38030 "using the RHSrvAny service wrapper."
38031 msgstr ""
38032
38033 #. type: verbatim
38034 #: ../tools/virt-win-reg.pl:692
38035 #, no-wrap
38036 msgid ""
38037 " cat > service.reg <<'EOF'\n"
38038 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
38039 " \"Type\"=dword:00000010\n"
38040 " \"Start\"=dword:00000002\n"
38041 " \"ErrorControl\"=dword:00000001\n"
38042 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
38043 " \"DisplayName\"=\"RHSrvAny\"\n"
38044 " \"ObjectName\"=\"NetworkService\"\n"
38045 " \n"
38046 msgstr ""
38047
38048 #. type: verbatim
38049 #: ../tools/virt-win-reg.pl:701
38050 #, no-wrap
38051 msgid ""
38052 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
38053 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
38054 " \"PWD\"=\"c:\\\\Temp\"\n"
38055 " EOF\n"
38056 "\n"
38057 msgstr ""
38058
38059 #. type: textblock
38060 #: ../tools/virt-win-reg.pl:712
38061 msgid ""
38062 "For use of C<ControlSet001> see the section above in this manual page.  You "
38063 "may need to adjust this according to the control set that is in use by the "
38064 "guest."
38065 msgstr ""
38066
38067 #. type: textblock
38068 #: ../tools/virt-win-reg.pl:718
38069 msgid ""
38070 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
38071 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
38072 "privileged account."
38073 msgstr ""
38074
38075 #. type: textblock
38076 #: ../tools/virt-win-reg.pl:724
38077 msgid ""
38078 "For the meaning of the magic numbers, see this Microsoft KB article: "
38079 "L<http://support.microsoft.com/kb/103000>."
38080 msgstr ""
38081
38082 #. type: textblock
38083 #: ../tools/virt-win-reg.pl:729
38084 msgid "Update the registry:"
38085 msgstr ""
38086
38087 #. type: verbatim
38088 #: ../tools/virt-win-reg.pl:731
38089 #, no-wrap
38090 msgid ""
38091 " virt-win-reg --merge WindowsGuest service.reg\n"
38092 "\n"
38093 msgstr ""
38094
38095 #. type: textblock
38096 #: ../tools/virt-win-reg.pl:735
38097 msgid ""
38098 "Be careful when passing parameters containing C<\\> (backslash) in the "
38099 "shell.  Usually you will have to use 'single quotes' or double backslashes "
38100 "(but not both) to protect them from the shell."
38101 msgstr ""
38102
38103 #. type: textblock
38104 #: ../tools/virt-win-reg.pl:739
38105 msgid "Paths and value names are case-insensitive."
38106 msgstr ""
38107
38108 #. type: textblock
38109 #: ../tools/virt-win-reg.pl:748
38110 msgid ""
38111 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
38112 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
38113 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38114 msgstr ""
38115
38116 #. type: verbatim
38117 #: ../tools/virt-win-reg.pl:766
38118 #, no-wrap
38119 msgid ""
38120 " export LIBGUESTFS_DEBUG=1\n"
38121 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
38122 "\n"
38123 msgstr ""
38124
38125 #. type: textblock
38126 #: ../tools/virt-win-reg.pl:769
38127 msgid ""
38128 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
38129 "redhat.com/>"
38130 msgstr ""