diff options
Diffstat (limited to 'po-docs/libguestfs-docs.pot')
-rw-r--r-- | po-docs/libguestfs-docs.pot | 2889 |
1 files changed, 1523 insertions, 1366 deletions
diff --git a/po-docs/libguestfs-docs.pot b/po-docs/libguestfs-docs.pot index cb7848aa..60211995 100644 --- a/po-docs/libguestfs-docs.pot +++ b/po-docs/libguestfs-docs.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: libguestfs 1.19.44\n" +"Project-Id-Version: libguestfs 1.19.45\n" "Report-Msgid-Bugs-To: libguestfs@redhat.com\n" -"POT-Creation-Date: 2012-09-24 16:57+0200\n" +"POT-Creation-Date: 2012-09-26 21:19+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -343,7 +343,7 @@ msgid "" msgstr "" #. type: textblock -#: ../align/virt-alignment-scan.pod:146 ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242 ../fish/guestfish.pod:689 ../format/virt-format.pod:96 ../inspector/virt-inspector.pod:350 ../rescue/virt-rescue.pod:164 ../src/guestfs.pod:3160 ../sysprep/virt-sysprep.pod:112 +#: ../align/virt-alignment-scan.pod:146 ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242 ../fish/guestfish.pod:689 ../format/virt-format.pod:96 ../inspector/virt-inspector.pod:350 ../rescue/virt-rescue.pod:164 ../src/guestfs.pod:3162 ../sysprep/virt-sysprep.pod:112 msgid "For example:" msgstr "" @@ -751,7 +751,7 @@ msgid "This program returns:" msgstr "" #. type: =item -#: ../align/virt-alignment-scan.pod:347 ../align/virt-alignment-scan.pod:353 ../align/virt-alignment-scan.pod:359 ../align/virt-alignment-scan.pod:366 ../appliance/libguestfs-make-fixed-appliance.pod:32 ../appliance/libguestfs-make-fixed-appliance.pod:53 ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187 ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202 ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266 ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276 ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291 ../examples/guestfs-faq.pod:150 ../examples/guestfs-faq.pod:156 ../examples/guestfs-faq.pod:195 ../examples/guestfs-faq.pod:201 ../examples/guestfs-performance.pod:107 ../examples/guestfs-performance.pod:113 ../examples/guestfs-performance.pod:118 ../examples/guestfs-performance.pod:253 ../examples/guestfs-performance.pod:258 ../examples/guestfs-performance.pod:263 ../examples/guestfs-recipes.pod:128 ../examples/guestfs-recipes.pod:132 ../examples/guestfs-recipes.pod:136 ../examples/guestfs-recipes.pod:162 ../examples/guestfs-recipes.pod:167 ../examples/guestfs-recipes.pod:257 ../examples/guestfs-recipes.pod:261 ../examples/guestfs-recipes.pod:265 ../examples/guestfs-recipes.pod:269 ../examples/guestfs-recipes.pod:273 ../examples/guestfs-testing.pod:110 ../examples/guestfs-testing.pod:114 ../examples/guestfs-testing.pod:118 ../fish/guestfish-actions.pod:417 ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:432 ../fish/guestfish-actions.pod:439 ../fish/guestfish-actions.pod:1480 ../fish/guestfish-actions.pod:1484 ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:1500 ../fish/guestfish-actions.pod:1504 ../fish/guestfish-actions.pod:1508 ../fish/guestfish-actions.pod:1518 ../fish/guestfish-actions.pod:1522 ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:1637 ../fish/guestfish-actions.pod:1641 ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1688 ../fish/guestfish-actions.pod:1692 ../fish/guestfish-actions.pod:1697 ../fish/guestfish-actions.pod:2143 ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157 ../fish/guestfish-actions.pod:2735 ../fish/guestfish-actions.pod:2741 ../fish/guestfish-actions.pod:2749 ../fish/guestfish-actions.pod:2756 ../fish/guestfish-actions.pod:2763 ../fish/guestfish.pod:461 ../fish/guestfish.pod:465 ../fish/guestfish.pod:469 ../fish/guestfish.pod:473 ../guestfs-release-notes.pod:82 ../guestfs-release-notes.pod:86 ../guestfs-release-notes.pod:90 ../guestfs-release-notes.pod:94 ../guestfs-release-notes.pod:98 ../guestfs-release-notes.pod:102 ../guestfs-release-notes.pod:107 ../guestfs-release-notes.pod:214 ../guestfs-release-notes.pod:218 ../guestfs-release-notes.pod:222 ../guestfs-release-notes.pod:226 ../guestfs-release-notes.pod:230 ../guestfs-release-notes.pod:234 ../guestfs-release-notes.pod:238 ../inspector/virt-inspector.pod:514 ../inspector/virt-inspector.pod:518 ../resize/virt-resize.pod:365 ../resize/virt-resize.pod:369 ../resize/virt-resize.pod:378 ../resize/virt-resize.pod:384 ../sparsify/virt-sparsify.pod:45 ../sparsify/virt-sparsify.pod:52 ../sparsify/virt-sparsify.pod:56 ../sparsify/virt-sparsify.pod:62 ../sparsify/virt-sparsify.pod:67 ../sparsify/virt-sparsify.pod:72 ../src/guestfs-actions.pod:622 ../src/guestfs-actions.pod:630 ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:644 ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2479 ../src/guestfs-actions.pod:2483 ../src/guestfs-actions.pod:2487 ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2499 ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2513 ../src/guestfs-actions.pod:2517 ../src/guestfs-actions.pod:2521 ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2702 ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:2767 ../src/guestfs-actions.pod:2772 ../src/guestfs-actions.pod:3471 ../src/guestfs-actions.pod:3478 ../src/guestfs-actions.pod:3485 ../src/guestfs-actions.pod:4318 ../src/guestfs-actions.pod:4324 ../src/guestfs-actions.pod:4332 ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:4346 ../src/guestfs.pod:392 ../src/guestfs.pod:397 ../src/guestfs.pod:402 ../src/guestfs.pod:406 ../src/guestfs.pod:411 ../src/guestfs.pod:415 ../src/guestfs.pod:420 ../src/guestfs.pod:425 ../src/guestfs.pod:1206 ../src/guestfs.pod:1210 ../src/guestfs.pod:1214 ../src/guestfs.pod:1219 ../src/guestfs.pod:1227 ../src/guestfs.pod:1246 ../src/guestfs.pod:1254 ../src/guestfs.pod:1271 ../src/guestfs.pod:1276 ../src/guestfs.pod:1280 ../src/guestfs.pod:1422 ../src/guestfs.pod:1426 ../src/guestfs.pod:1430 ../src/guestfs.pod:1434 ../src/guestfs.pod:1438 ../src/guestfs.pod:1442 ../src/guestfs.pod:1968 ../src/guestfs.pod:1973 ../src/guestfs.pod:1977 ../src/guestfs.pod:2079 ../src/guestfs.pod:2084 ../src/guestfs.pod:2088 ../src/guestfs.pod:2098 ../src/guestfs.pod:2387 ../src/guestfs.pod:2392 ../src/guestfs.pod:2398 ../src/guestfs.pod:2406 ../src/guestfs.pod:2923 ../src/guestfs.pod:2929 ../src/guestfs.pod:2934 ../src/guestfs.pod:2940 ../src/guestfs.pod:3347 ../src/guestfs.pod:3352 ../src/guestfs.pod:3356 ../src/guestfs.pod:3360 ../src/guestfs.pod:3364 ../src/guestfs.pod:3378 ../src/guestfs.pod:3383 ../sysprep/virt-sysprep.pod:231 ../sysprep/virt-sysprep.pod:235 ../sysprep/virt-sysprep.pod:239 ../sysprep/virt-sysprep.pod:243 ../sysprep/virt-sysprep.pod:258 ../sysprep/virt-sysprep.pod:262 ../sysprep/virt-sysprep.pod:266 ../sysprep/virt-sysprep.pod:270 ../sysprep/virt-sysprep.pod:274 ../sysprep/virt-sysprep.pod:327 ../sysprep/virt-sysprep.pod:339 ../sysprep/virt-sysprep.pod:343 ../sysprep/virt-sysprep.pod:351 ../sysprep/virt-sysprep.pod:357 ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727 ../tools/virt-win-reg.pl:733 +#: ../align/virt-alignment-scan.pod:347 ../align/virt-alignment-scan.pod:353 ../align/virt-alignment-scan.pod:359 ../align/virt-alignment-scan.pod:366 ../appliance/libguestfs-make-fixed-appliance.pod:32 ../appliance/libguestfs-make-fixed-appliance.pod:53 ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187 ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202 ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266 ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276 ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291 ../examples/guestfs-faq.pod:149 ../examples/guestfs-faq.pod:155 ../examples/guestfs-faq.pod:194 ../examples/guestfs-faq.pod:200 ../examples/guestfs-performance.pod:107 ../examples/guestfs-performance.pod:113 ../examples/guestfs-performance.pod:118 ../examples/guestfs-performance.pod:253 ../examples/guestfs-performance.pod:258 ../examples/guestfs-performance.pod:263 ../examples/guestfs-recipes.pod:128 ../examples/guestfs-recipes.pod:132 ../examples/guestfs-recipes.pod:136 ../examples/guestfs-recipes.pod:162 ../examples/guestfs-recipes.pod:167 ../examples/guestfs-recipes.pod:257 ../examples/guestfs-recipes.pod:261 ../examples/guestfs-recipes.pod:265 ../examples/guestfs-recipes.pod:269 ../examples/guestfs-recipes.pod:273 ../examples/guestfs-testing.pod:124 ../examples/guestfs-testing.pod:128 ../examples/guestfs-testing.pod:132 ../fish/guestfish-actions.pod:417 ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:432 ../fish/guestfish-actions.pod:439 ../fish/guestfish-actions.pod:1480 ../fish/guestfish-actions.pod:1484 ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:1500 ../fish/guestfish-actions.pod:1504 ../fish/guestfish-actions.pod:1508 ../fish/guestfish-actions.pod:1518 ../fish/guestfish-actions.pod:1522 ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:1637 ../fish/guestfish-actions.pod:1641 ../fish/guestfish-actions.pod:1646 ../fish/guestfish-actions.pod:1688 ../fish/guestfish-actions.pod:1692 ../fish/guestfish-actions.pod:1697 ../fish/guestfish-actions.pod:2143 ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157 ../fish/guestfish-actions.pod:2735 ../fish/guestfish-actions.pod:2741 ../fish/guestfish-actions.pod:2749 ../fish/guestfish-actions.pod:2756 ../fish/guestfish-actions.pod:2763 ../fish/guestfish.pod:461 ../fish/guestfish.pod:465 ../fish/guestfish.pod:469 ../fish/guestfish.pod:473 ../guestfs-release-notes.pod:82 ../guestfs-release-notes.pod:86 ../guestfs-release-notes.pod:90 ../guestfs-release-notes.pod:94 ../guestfs-release-notes.pod:98 ../guestfs-release-notes.pod:102 ../guestfs-release-notes.pod:107 ../guestfs-release-notes.pod:214 ../guestfs-release-notes.pod:218 ../guestfs-release-notes.pod:222 ../guestfs-release-notes.pod:226 ../guestfs-release-notes.pod:230 ../guestfs-release-notes.pod:234 ../guestfs-release-notes.pod:238 ../inspector/virt-inspector.pod:514 ../inspector/virt-inspector.pod:518 ../resize/virt-resize.pod:365 ../resize/virt-resize.pod:369 ../resize/virt-resize.pod:378 ../resize/virt-resize.pod:384 ../sparsify/virt-sparsify.pod:45 ../sparsify/virt-sparsify.pod:52 ../sparsify/virt-sparsify.pod:56 ../sparsify/virt-sparsify.pod:62 ../sparsify/virt-sparsify.pod:67 ../sparsify/virt-sparsify.pod:72 ../src/guestfs-actions.pod:622 ../src/guestfs-actions.pod:630 ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:644 ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:2479 ../src/guestfs-actions.pod:2483 ../src/guestfs-actions.pod:2487 ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2499 ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2513 ../src/guestfs-actions.pod:2517 ../src/guestfs-actions.pod:2521 ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2702 ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:2767 ../src/guestfs-actions.pod:2772 ../src/guestfs-actions.pod:3471 ../src/guestfs-actions.pod:3478 ../src/guestfs-actions.pod:3485 ../src/guestfs-actions.pod:4318 ../src/guestfs-actions.pod:4324 ../src/guestfs-actions.pod:4332 ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:4346 ../src/guestfs.pod:394 ../src/guestfs.pod:399 ../src/guestfs.pod:404 ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417 ../src/guestfs.pod:422 ../src/guestfs.pod:427 ../src/guestfs.pod:1208 ../src/guestfs.pod:1212 ../src/guestfs.pod:1216 ../src/guestfs.pod:1221 ../src/guestfs.pod:1229 ../src/guestfs.pod:1248 ../src/guestfs.pod:1256 ../src/guestfs.pod:1273 ../src/guestfs.pod:1278 ../src/guestfs.pod:1282 ../src/guestfs.pod:1424 ../src/guestfs.pod:1428 ../src/guestfs.pod:1432 ../src/guestfs.pod:1436 ../src/guestfs.pod:1440 ../src/guestfs.pod:1444 ../src/guestfs.pod:1970 ../src/guestfs.pod:1975 ../src/guestfs.pod:1979 ../src/guestfs.pod:2081 ../src/guestfs.pod:2086 ../src/guestfs.pod:2090 ../src/guestfs.pod:2100 ../src/guestfs.pod:2389 ../src/guestfs.pod:2394 ../src/guestfs.pod:2400 ../src/guestfs.pod:2408 ../src/guestfs.pod:2925 ../src/guestfs.pod:2931 ../src/guestfs.pod:2936 ../src/guestfs.pod:2942 ../src/guestfs.pod:3344 ../src/guestfs.pod:3349 ../src/guestfs.pod:3353 ../src/guestfs.pod:3357 ../src/guestfs.pod:3361 ../src/guestfs.pod:3375 ../src/guestfs.pod:3380 ../sysprep/virt-sysprep.pod:231 ../sysprep/virt-sysprep.pod:235 ../sysprep/virt-sysprep.pod:239 ../sysprep/virt-sysprep.pod:243 ../sysprep/virt-sysprep.pod:258 ../sysprep/virt-sysprep.pod:262 ../sysprep/virt-sysprep.pod:266 ../sysprep/virt-sysprep.pod:270 ../sysprep/virt-sysprep.pod:274 ../sysprep/virt-sysprep.pod:327 ../sysprep/virt-sysprep.pod:339 ../sysprep/virt-sysprep.pod:343 ../sysprep/virt-sysprep.pod:351 ../sysprep/virt-sysprep.pod:357 ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727 ../tools/virt-win-reg.pl:733 msgid "*" msgstr "" @@ -766,7 +766,7 @@ msgid "successful exit, all partitions are aligned E<ge> 64K for best performanc msgstr "" #. type: =item -#: ../align/virt-alignment-scan.pod:355 ../src/guestfs.pod:1615 +#: ../align/virt-alignment-scan.pod:355 ../src/guestfs.pod:1617 msgid "1" msgstr "" @@ -776,7 +776,7 @@ msgid "an error scanning the disk image or guest" msgstr "" #. type: =item -#: ../align/virt-alignment-scan.pod:361 ../src/guestfs.pod:1619 +#: ../align/virt-alignment-scan.pod:361 ../src/guestfs.pod:1621 msgid "2" msgstr "" @@ -788,7 +788,7 @@ msgid "" msgstr "" #. type: =item -#: ../align/virt-alignment-scan.pod:368 ../src/guestfs.pod:1623 +#: ../align/virt-alignment-scan.pod:368 ../src/guestfs.pod:1625 msgid "3" msgstr "" @@ -800,7 +800,7 @@ msgid "" msgstr "" #. type: =head1 -#: ../align/virt-alignment-scan.pod:375 ../appliance/libguestfs-make-fixed-appliance.pod:144 ../cat/virt-cat.pod:243 ../cat/virt-filesystems.pod:389 ../cat/virt-ls.pod:495 ../df/virt-df.pod:253 ../edit/virt-edit.pod:368 ../erlang/examples/guestfs-erlang.pod:97 ../examples/guestfs-examples.pod:33 ../examples/guestfs-faq.pod:723 ../examples/guestfs-performance.pod:429 ../examples/guestfs-recipes.pod:444 ../examples/guestfs-testing.pod:291 ../fish/guestfish.pod:1289 ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41 ../format/virt-format.pod:177 ../fuse/guestmount.pod:398 ../guestfs-release-notes.pod:1711 ../inspector/virt-inspector.pod:501 ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:40 ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:340 ../resize/virt-resize.pod:702 ../ruby/examples/guestfs-ruby.pod:36 ../sparsify/virt-sparsify.pod:299 ../src/guestfs.pod:3583 ../sysprep/virt-sysprep.pod:480 ../test-tool/libguestfs-test-tool.pod:106 ../tools/virt-list-filesystems.pl:197 ../tools/virt-list-partitions.pl:267 ../tools/virt-make-fs.pl:627 ../tools/virt-tar.pl:294 ../tools/virt-win-reg.pl:757 +#: ../align/virt-alignment-scan.pod:375 ../appliance/libguestfs-make-fixed-appliance.pod:144 ../cat/virt-cat.pod:243 ../cat/virt-filesystems.pod:389 ../cat/virt-ls.pod:495 ../df/virt-df.pod:253 ../edit/virt-edit.pod:368 ../erlang/examples/guestfs-erlang.pod:97 ../examples/guestfs-examples.pod:33 ../examples/guestfs-faq.pod:779 ../examples/guestfs-performance.pod:429 ../examples/guestfs-recipes.pod:473 ../examples/guestfs-testing.pod:305 ../fish/guestfish.pod:1289 ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41 ../format/virt-format.pod:177 ../fuse/guestmount.pod:398 ../guestfs-release-notes.pod:1711 ../inspector/virt-inspector.pod:501 ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:40 ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:340 ../resize/virt-resize.pod:702 ../ruby/examples/guestfs-ruby.pod:36 ../sparsify/virt-sparsify.pod:299 ../src/guestfs.pod:3580 ../sysprep/virt-sysprep.pod:480 ../test-tool/libguestfs-test-tool.pod:106 ../tools/virt-list-filesystems.pl:197 ../tools/virt-list-partitions.pl:267 ../tools/virt-make-fs.pl:627 ../tools/virt-tar.pl:294 ../tools/virt-win-reg.pl:757 msgid "SEE ALSO" msgstr "" @@ -822,7 +822,7 @@ msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>" msgstr "" #. type: =head1 -#: ../align/virt-alignment-scan.pod:388 ../appliance/libguestfs-make-fixed-appliance.pod:157 ../cat/virt-cat.pod:256 ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:511 ../df/virt-df.pod:265 ../edit/virt-edit.pod:386 ../erlang/examples/guestfs-erlang.pod:114 ../examples/guestfs-examples.pod:49 ../examples/guestfs-faq.pod:733 ../examples/guestfs-performance.pod:446 ../examples/guestfs-recipes.pod:461 ../examples/guestfs-testing.pod:302 ../fish/guestfish.pod:1321 ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55 ../format/virt-format.pod:191 ../fuse/guestmount.pod:413 ../guestfs-release-notes.pod:1726 ../inspector/virt-inspector.pod:524 ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:57 ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:353 ../resize/virt-resize.pod:729 ../ruby/examples/guestfs-ruby.pod:52 ../sparsify/virt-sparsify.pod:316 ../src/guestfs.pod:3639 ../sysprep/virt-sysprep.pod:501 ../test-tool/libguestfs-test-tool.pod:116 ../tools/virt-list-filesystems.pl:214 ../tools/virt-list-partitions.pl:283 ../tools/virt-make-fs.pl:646 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:776 +#: ../align/virt-alignment-scan.pod:388 ../appliance/libguestfs-make-fixed-appliance.pod:157 ../cat/virt-cat.pod:256 ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:511 ../df/virt-df.pod:265 ../edit/virt-edit.pod:386 ../erlang/examples/guestfs-erlang.pod:114 ../examples/guestfs-examples.pod:49 ../examples/guestfs-faq.pod:789 ../examples/guestfs-performance.pod:446 ../examples/guestfs-recipes.pod:490 ../examples/guestfs-testing.pod:316 ../fish/guestfish.pod:1321 ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55 ../format/virt-format.pod:191 ../fuse/guestmount.pod:413 ../guestfs-release-notes.pod:1726 ../inspector/virt-inspector.pod:524 ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:57 ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:353 ../resize/virt-resize.pod:729 ../ruby/examples/guestfs-ruby.pod:52 ../sparsify/virt-sparsify.pod:316 ../src/guestfs.pod:3636 ../sysprep/virt-sysprep.pod:501 ../test-tool/libguestfs-test-tool.pod:116 ../tools/virt-list-filesystems.pl:214 ../tools/virt-list-partitions.pl:283 ../tools/virt-make-fs.pl:646 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:776 msgid "COPYRIGHT" msgstr "" @@ -1078,7 +1078,7 @@ msgid "" msgstr "" #. type: =head1 -#: ../appliance/libguestfs-make-fixed-appliance.pod:139 ../edit/virt-edit.pod:343 ../fish/guestfish.pod:1135 ../rescue/virt-rescue.pod:313 ../sparsify/virt-sparsify.pod:272 ../src/guestfs.pod:3517 ../test-tool/libguestfs-test-tool.pod:101 +#: ../appliance/libguestfs-make-fixed-appliance.pod:139 ../edit/virt-edit.pod:343 ../fish/guestfish.pod:1135 ../rescue/virt-rescue.pod:313 ../sparsify/virt-sparsify.pod:272 ../src/guestfs.pod:3514 ../test-tool/libguestfs-test-tool.pod:101 msgid "ENVIRONMENT VARIABLES" msgstr "" @@ -1097,17 +1097,17 @@ msgid "" msgstr "" #. type: =head1 -#: ../appliance/libguestfs-make-fixed-appliance.pod:153 ../erlang/examples/guestfs-erlang.pod:110 ../examples/guestfs-examples.pod:45 ../examples/guestfs-faq.pod:729 ../examples/guestfs-performance.pod:442 ../examples/guestfs-recipes.pod:457 ../examples/guestfs-testing.pod:298 ../fish/guestfish.pod:1317 ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:409 ../inspector/virt-inspector.pod:510 ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:53 ../python/examples/guestfs-python.pod:54 ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3635 ../sysprep/virt-sysprep.pod:495 ../test-tool/libguestfs-test-tool.pod:112 +#: ../appliance/libguestfs-make-fixed-appliance.pod:153 ../erlang/examples/guestfs-erlang.pod:110 ../examples/guestfs-examples.pod:45 ../examples/guestfs-faq.pod:785 ../examples/guestfs-performance.pod:442 ../examples/guestfs-recipes.pod:486 ../examples/guestfs-testing.pod:312 ../fish/guestfish.pod:1317 ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:409 ../inspector/virt-inspector.pod:510 ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:53 ../python/examples/guestfs-python.pod:54 ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3632 ../sysprep/virt-sysprep.pod:495 ../test-tool/libguestfs-test-tool.pod:112 msgid "AUTHORS" msgstr "" #. type: textblock -#: ../appliance/libguestfs-make-fixed-appliance.pod:155 ../erlang/examples/guestfs-erlang.pod:112 ../examples/guestfs-examples.pod:47 ../examples/guestfs-faq.pod:731 ../examples/guestfs-performance.pod:444 ../examples/guestfs-recipes.pod:459 ../examples/guestfs-testing.pod:300 ../fish/guestfish.pod:1319 ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:411 ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:55 ../python/examples/guestfs-python.pod:56 ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3637 ../test-tool/libguestfs-test-tool.pod:114 +#: ../appliance/libguestfs-make-fixed-appliance.pod:155 ../erlang/examples/guestfs-erlang.pod:112 ../examples/guestfs-examples.pod:47 ../examples/guestfs-faq.pod:787 ../examples/guestfs-performance.pod:444 ../examples/guestfs-recipes.pod:488 ../examples/guestfs-testing.pod:314 ../fish/guestfish.pod:1319 ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:411 ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:55 ../python/examples/guestfs-python.pod:56 ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3634 ../test-tool/libguestfs-test-tool.pod:114 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)" msgstr "" #. type: textblock -#: ../appliance/libguestfs-make-fixed-appliance.pod:159 ../cat/virt-ls.pod:513 ../df/virt-df.pod:267 ../edit/virt-edit.pod:388 ../examples/guestfs-recipes.pod:463 ../fish/guestfish.pod:1323 ../fuse/guestmount.pod:415 ../guestfs-release-notes.pod:1728 ../rescue/virt-rescue.pod:355 ../src/guestfs.pod:3641 ../test-tool/libguestfs-test-tool.pod:118 ../tools/virt-list-partitions.pl:285 +#: ../appliance/libguestfs-make-fixed-appliance.pod:159 ../cat/virt-ls.pod:513 ../df/virt-df.pod:267 ../edit/virt-edit.pod:388 ../examples/guestfs-recipes.pod:492 ../fish/guestfish.pod:1323 ../fuse/guestmount.pod:415 ../guestfs-release-notes.pod:1728 ../rescue/virt-rescue.pod:355 ../src/guestfs.pod:3638 ../test-tool/libguestfs-test-tool.pod:118 ../tools/virt-list-partitions.pl:285 msgid "Copyright (C) 2009-2012 Red Hat Inc." msgstr "" @@ -2226,7 +2226,7 @@ msgid "" msgstr "" #. type: textblock -#: ../cat/virt-ls.pod:41 ../examples/guestfs-testing.pod:182 +#: ../cat/virt-ls.pod:41 ../examples/guestfs-testing.pod:196 msgid "List all setuid or setgid programs in a Linux virtual machine:" msgstr "" @@ -2239,7 +2239,7 @@ msgid "" msgstr "" #. type: textblock -#: ../cat/virt-ls.pod:45 ../examples/guestfs-testing.pod:186 +#: ../cat/virt-ls.pod:45 ../examples/guestfs-testing.pod:200 msgid "List all public-writable directories in a Linux virtual machine:" msgstr "" @@ -2252,7 +2252,7 @@ msgid "" msgstr "" #. type: textblock -#: ../cat/virt-ls.pod:49 ../examples/guestfs-testing.pod:190 +#: ../cat/virt-ls.pod:49 ../examples/guestfs-testing.pod:204 msgid "List all Unix domain sockets in a Linux virtual machine:" msgstr "" @@ -2265,7 +2265,7 @@ msgid "" msgstr "" #. type: textblock -#: ../cat/virt-ls.pod:53 ../examples/guestfs-testing.pod:194 +#: ../cat/virt-ls.pod:53 ../examples/guestfs-testing.pod:208 msgid "List all regular files with filenames ending in '.png':" msgstr "" @@ -2291,7 +2291,7 @@ msgid "" msgstr "" #. type: textblock -#: ../cat/virt-ls.pod:61 ../examples/guestfs-testing.pod:202 +#: ../cat/virt-ls.pod:61 ../examples/guestfs-testing.pod:216 msgid "Find everything modified in the last 7 days:" msgstr "" @@ -2304,7 +2304,7 @@ msgid "" msgstr "" #. type: textblock -#: ../cat/virt-ls.pod:65 ../examples/guestfs-testing.pod:206 +#: ../cat/virt-ls.pod:65 ../examples/guestfs-testing.pod:220 msgid "Find regular files modified in the last 24 hours:" msgstr "" @@ -3909,7 +3909,7 @@ msgid "" msgstr "" #. type: textblock -#: ../erlang/examples/guestfs-erlang.pod:116 ../examples/guestfs-testing.pod:304 ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57 ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:59 ../sparsify/virt-sparsify.pod:318 ../sysprep/virt-sysprep.pod:503 +#: ../erlang/examples/guestfs-erlang.pod:116 ../examples/guestfs-testing.pod:318 ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57 ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:59 ../sparsify/virt-sparsify.pod:318 ../sysprep/virt-sysprep.pod:503 msgid "Copyright (C) 2011-2012 Red Hat Inc." msgstr "" @@ -3990,23 +3990,23 @@ msgstr "" #: ../examples/guestfs-faq.pod:16 msgid "" "libguestfs is a C library (hence \"lib-\"), and a set of tools built on this " -"library, and a set of bindings in many different programming languages." +"library, and bindings for many common programming languages." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:20 +#: ../examples/guestfs-faq.pod:19 msgid "" "For more information about what libguestfs can do read the introduction on " "the home page (L<http://libguestfs.org>)." msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:23 +#: ../examples/guestfs-faq.pod:22 msgid "What are the virt tools?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:25 +#: ../examples/guestfs-faq.pod:24 msgid "" "Virt tools (website: L<http://virt-tools.org>) are a whole set of " "virtualization management tools aimed at system administrators. Some of " @@ -4017,22 +4017,22 @@ msgid "" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:32 +#: ../examples/guestfs-faq.pod:31 msgid "Does libguestfs need { libvirt / KVM / Red Hat / Fedora }?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:34 +#: ../examples/guestfs-faq.pod:33 msgid "No!" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:36 +#: ../examples/guestfs-faq.pod:35 msgid "libvirt is not a requirement for libguestfs." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:38 +#: ../examples/guestfs-faq.pod:37 msgid "" "libguestfs works with any disk image, including ones created in VMware, KVM, " "qemu, VirtualBox, Xen, and many other hypervisors, and ones which you have " @@ -4040,26 +4040,26 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:42 +#: ../examples/guestfs-faq.pod:41 msgid "" -"Red Hat sponsors (ie. pays for) development of libguestfs and a huge number " -"of other open source projects. But you can run libguestfs and the virt " -"tools on many different Linux distros and Mac OS X. Some virt tools have " -"been ported to Windows." +"S<Red Hat> sponsors (ie. pays for) development of libguestfs and a huge " +"number of other open source projects. But you can run libguestfs and the " +"virt tools on many different Linux distros and Mac OS X. Some virt tools " +"have been ported to Windows." msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:47 +#: ../examples/guestfs-faq.pod:46 msgid "How does libguestfs compare to other tools?" msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:51 +#: ../examples/guestfs-faq.pod:50 msgid "I<vs. kpartx>" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:53 +#: ../examples/guestfs-faq.pod:52 msgid "" "Libguestfs takes a different approach from kpartx. kpartx needs root, and " "mounts filesystems on the host kernel (which can be insecure - see " @@ -4071,12 +4071,12 @@ msgid "" msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:61 +#: ../examples/guestfs-faq.pod:60 msgid "I<vs. vdfuse>" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:63 +#: ../examples/guestfs-faq.pod:62 msgid "" "vdfuse is like kpartx but for VirtualBox images. See the kpartx comparison " "above. You can use libguestfs on the partition files exposed by vdfuse, " @@ -4085,12 +4085,12 @@ msgid "" msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:68 +#: ../examples/guestfs-faq.pod:67 msgid "I<vs. qemu-nbd>" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:70 +#: ../examples/guestfs-faq.pod:69 msgid "" "nbd is like kpartx but for qcow2 images. See the kpartx comparison above. " "You can use libguestfs and qemu-nbd together for access to block devices " @@ -4098,12 +4098,12 @@ msgid "" msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:74 +#: ../examples/guestfs-faq.pod:73 msgid "I<vs. mounting filesystems in the host>" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:76 +#: ../examples/guestfs-faq.pod:75 msgid "" "Mounting guest filesystems in the host is insecure and should be avoided " "completely for untrusted guests. Use libguestfs to provide a layer of " @@ -4111,34 +4111,34 @@ msgid "" msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:81 +#: ../examples/guestfs-faq.pod:80 msgid "I<vs. parted>" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:83 +#: ../examples/guestfs-faq.pod:82 msgid "" "Libguestfs supports LVM. Libguestfs uses parted and provides most parted " "features through the libguestfs API." msgstr "" #. type: =head1 -#: ../examples/guestfs-faq.pod:88 +#: ../examples/guestfs-faq.pod:87 msgid "GETTING HELP AND REPORTING BUGS" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:90 +#: ../examples/guestfs-faq.pod:89 msgid "How do I know what version I'm using?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:92 +#: ../examples/guestfs-faq.pod:91 msgid "The simplest method is:" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:94 +#: ../examples/guestfs-faq.pod:93 #, no-wrap msgid "" " guestfish --version\n" @@ -4146,7 +4146,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:96 +#: ../examples/guestfs-faq.pod:95 msgid "" "Libguestfs development happens along an unstable branch and we periodically " "create a stable branch which we backport stable patches to. To find out " @@ -4154,24 +4154,24 @@ msgid "" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:100 +#: ../examples/guestfs-faq.pod:99 msgid "How can I get help?" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:102 +#: ../examples/guestfs-faq.pod:101 msgid "What mailing lists or chat rooms are available?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:104 +#: ../examples/guestfs-faq.pod:103 msgid "" -"If you are a Red Hat customer using Red Hat Enterprise Linux, please contact " -"Red Hat Support: L<http://redhat.com/support>" +"If you are a S<Red Hat> customer using Red Hat Enterprise Linux, please " +"contact S<Red Hat Support>: L<http://redhat.com/support>" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:107 +#: ../examples/guestfs-faq.pod:106 msgid "" "There is a mailing list, mainly for development, but users are also welcome " "to ask questions about libguestfs and the virt tools: " @@ -4179,7 +4179,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:111 +#: ../examples/guestfs-faq.pod:110 msgid "" "You can also talk to us on IRC channel C<#libguestfs> on FreeNode. We're " "not always around, so please stay in the channel after asking your question " @@ -4187,7 +4187,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:115 +#: ../examples/guestfs-faq.pod:114 msgid "" "For other virt tools (not ones supplied with libguestfs) there is a general " "virt tools mailing list: " @@ -4195,56 +4195,56 @@ msgid "" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:119 +#: ../examples/guestfs-faq.pod:118 msgid "How do I report bugs?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:121 +#: ../examples/guestfs-faq.pod:120 msgid "Please use the following link to enter a bug in Bugzilla:" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:123 +#: ../examples/guestfs-faq.pod:122 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:125 +#: ../examples/guestfs-faq.pod:124 msgid "Include as much detail as you can and a way to reproduce the problem." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:127 +#: ../examples/guestfs-faq.pod:126 msgid "Include the full output of L<libguestfs-test-tool(1)>." msgstr "" #. type: =head1 -#: ../examples/guestfs-faq.pod:129 +#: ../examples/guestfs-faq.pod:128 msgid "COMMON PROBLEMS" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:131 +#: ../examples/guestfs-faq.pod:130 msgid "" "See also L<guestfs(3)/LIBGUESTFS GOTCHAS> for some \"gotchas\" with using " "the libguestfs API." msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:134 +#: ../examples/guestfs-faq.pod:133 msgid "\"child process died unexpectedly\"" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:136 +#: ../examples/guestfs-faq.pod:135 msgid "" "This error indicates that qemu failed or the host kernel could not boot. To " "get further information about the failure, you have to run:" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:139 ../test-tool/libguestfs-test-tool.pod:21 +#: ../examples/guestfs-faq.pod:138 ../examples/guestfs-testing.pod:34 ../test-tool/libguestfs-test-tool.pod:21 #, no-wrap msgid "" " libguestfs-test-tool\n" @@ -4252,24 +4252,24 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:141 +#: ../examples/guestfs-faq.pod:140 msgid "" "If, after using this, you still don't understand the failure, contact us " "(see previous section)." msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:144 +#: ../examples/guestfs-faq.pod:143 msgid "Non-ASCII characters don't appear on VFAT filesystems." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:146 +#: ../examples/guestfs-faq.pod:145 msgid "Typical symptoms of this problem:" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:152 +#: ../examples/guestfs-faq.pod:151 msgid "" "You get an error when you create a file where the filename contains " "non-ASCII characters, particularly non 8-bit characters from Asian languages " @@ -4277,19 +4277,19 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:158 +#: ../examples/guestfs-faq.pod:157 msgid "" "When you list a directory from a VFAT filesystem, filenames appear as " "question marks." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:163 +#: ../examples/guestfs-faq.pod:162 msgid "This is a design flaw of the GNU/Linux system." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:165 +#: ../examples/guestfs-faq.pod:164 msgid "" "VFAT stores long filenames as UTF-16 characters. When opening or returning " "filenames, the Linux kernel has to translate these to some form of 8 bit " @@ -4299,7 +4299,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:171 +#: ../examples/guestfs-faq.pod:170 msgid "" "Therefore you have to tell the kernel what translation you want done when " "you mount the filesystem. The two methods are the C<iocharset> parameter " @@ -4307,14 +4307,14 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:175 +#: ../examples/guestfs-faq.pod:174 msgid "" "So to use a VFAT filesystem you must add the C<utf8> flag when mounting. " "From guestfish, use:" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:178 +#: ../examples/guestfs-faq.pod:177 #, no-wrap msgid "" " ><fs> mount-options utf8 /dev/sda1 /\n" @@ -4322,12 +4322,12 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:180 +#: ../examples/guestfs-faq.pod:179 msgid "or on the guestfish command line:" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:182 +#: ../examples/guestfs-faq.pod:181 #, no-wrap msgid "" " guestfish [...] -m /dev/sda1:/:utf8\n" @@ -4335,12 +4335,12 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:184 +#: ../examples/guestfs-faq.pod:183 msgid "or from the API:" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:186 +#: ../examples/guestfs-faq.pod:185 #, no-wrap msgid "" " guestfs_mount_options (g, \"utf8\", \"/dev/sda1\", \"/\");\n" @@ -4348,19 +4348,19 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:188 +#: ../examples/guestfs-faq.pod:187 msgid "The kernel will then translate filenames to and from UTF-8 strings." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:190 +#: ../examples/guestfs-faq.pod:189 msgid "" "We considered adding this mount option transparently, but unfortunately " "there are several problems with doing that:" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:197 +#: ../examples/guestfs-faq.pod:196 msgid "" "On some Linux systems, the C<utf8> mount option doesn't work. We don't " "precisely understand what systems or why, but this was reliably reported by " @@ -4368,7 +4368,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:203 +#: ../examples/guestfs-faq.pod:202 msgid "" "It would prevent you from using the C<iocharset> parameter because it is " "incompatible with C<utf8>. It is probably not a good idea to use this " @@ -4376,12 +4376,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:209 +#: ../examples/guestfs-faq.pod:208 msgid "Non-ASCII characters appear as underscore (_) on ISO9660 filesystems." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:211 +#: ../examples/guestfs-faq.pod:210 msgid "" "The filesystem was not prepared correctly with mkisofs or genisoimage. Make " "sure the filesystem was created using Joliet and/or Rock Ridge extensions. " @@ -4390,37 +4390,37 @@ msgid "" msgstr "" #. type: =head1 -#: ../examples/guestfs-faq.pod:216 +#: ../examples/guestfs-faq.pod:215 msgid "DOWNLOADING, INSTALLING, COMPILING LIBGUESTFS" msgstr "" #. type: =end -#: ../examples/guestfs-faq.pod:218 ../examples/guestfs-faq.pod:223 ../examples/guestfs-faq.pod:448 ../examples/guestfs-faq.pod:453 ../examples/guestfs-faq.pod:574 ../examples/guestfs-faq.pod:579 ../guestfs-release-notes.pod:14 ../guestfs-release-notes.pod:21 ../src/guestfs.pod:2533 ../src/guestfs.pod:2538 +#: ../examples/guestfs-faq.pod:217 ../examples/guestfs-faq.pod:222 ../examples/guestfs-faq.pod:504 ../examples/guestfs-faq.pod:509 ../examples/guestfs-faq.pod:630 ../examples/guestfs-faq.pod:635 ../guestfs-release-notes.pod:14 ../guestfs-release-notes.pod:21 ../src/guestfs.pod:2535 ../src/guestfs.pod:2540 msgid "html" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:220 +#: ../examples/guestfs-faq.pod:219 msgid "<!-- old anchor for the next section --> <a name=\"binaries\"/>" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:225 +#: ../examples/guestfs-faq.pod:224 msgid "Where can I get the latest binaries for ...?" msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:229 -msgid "Fedora E<ge> 11, RHEL E<ge> 5.3, EPEL 5" +#: ../examples/guestfs-faq.pod:228 +msgid "Fedora E<ge> 11" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:231 +#: ../examples/guestfs-faq.pod:230 msgid "Use:" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:233 +#: ../examples/guestfs-faq.pod:232 #, no-wrap msgid "" " yum install '*guestf*'\n" @@ -4428,53 +4428,88 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:235 +#: ../examples/guestfs-faq.pod:234 msgid "" "For the latest builds, see: " "L<http://koji.fedoraproject.org/koji/packageinfo?packageID=8391>" msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:238 -msgid "Red Hat Enterprise Linux 6" +#: ../examples/guestfs-faq.pod:237 +msgid "Red Hat Enterprise Linux" +msgstr "" + +#. type: =item +#: ../examples/guestfs-faq.pod:241 +msgid "RHEL 5" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-faq.pod:243 +msgid "Use the package from EPEL 5: L<https://fedoraproject.org/wiki/EPEL>" +msgstr "" + +#. type: =item +#: ../examples/guestfs-faq.pod:246 +msgid "RHEL 6.2-6.3" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:240 +#: ../examples/guestfs-faq.pod:248 msgid "" "It is part of the default install. On RHEL 6 (only) you have to install " "C<libguestfs-winsupport> to get Windows guest support." msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:243 +#: ../examples/guestfs-faq.pod:251 msgid "RHEL 6.4" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:245 -msgid "A preview repository will be announced at a later date." +#: ../examples/guestfs-faq.pod:253 +msgid "" +"A preview repository is available. See the announcement here: " +"L<https://www.redhat.com/archives/libguestfs/2012-September/msg00074.html>" +msgstr "" + +#. type: =item +#: ../examples/guestfs-faq.pod:256 +msgid "RHEL 7" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-faq.pod:258 +msgid "" +"It will be part of the default install, and based on libguestfs 1.20. As " +"with RHEL 6 you will need to install C<libguestfs-winsupport> separately to " +"get Windows guest support." +msgstr "" + +#. type: =item +#: ../examples/guestfs-faq.pod:264 +msgid "Debian and Ubuntu" msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:247 +#: ../examples/guestfs-faq.pod:268 msgid "Debian Squeeze (6)" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:249 +#: ../examples/guestfs-faq.pod:270 msgid "" "Use Hilko Bengen's backport repository: " "L<http://people.debian.org/~bengen/libguestfs/>" msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:252 +#: ../examples/guestfs-faq.pod:273 msgid "Debian Wheezy and later (7+)" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:254 +#: ../examples/guestfs-faq.pod:275 msgid "" "Official Debian packages are available: " "L<http://packages.debian.org/search?keywords=libguestfs> (thanks Hilko " @@ -4482,20 +4517,19 @@ msgid "" msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:258 +#: ../examples/guestfs-faq.pod:279 msgid "Ubuntu" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:260 +#: ../examples/guestfs-faq.pod:281 msgid "" -"We don't have an Ubuntu maintainer, and the packages supplied by Canonical " -"(which are outside our control) are often broken. Try compiling from source " -"(next section)." +"We don't have a full time Ubuntu maintainer, and the packages supplied by " +"Canonical (which are outside our control) are sometimes broken." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:264 +#: ../examples/guestfs-faq.pod:284 msgid "" "Canonical decided to change the permissions on the kernel so that it's not " "readable except by root. This is completely stupid, but they won't change " @@ -4504,7 +4538,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:270 ../examples/guestfs-faq.pod:296 +#: ../examples/guestfs-faq.pod:290 ../examples/guestfs-faq.pod:316 #, no-wrap msgid "" " sudo chmod 0644 /boot/vmlinuz*\n" @@ -4512,41 +4546,41 @@ msgid "" msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:272 +#: ../examples/guestfs-faq.pod:292 msgid "Ubuntu 10.04" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:274 +#: ../examples/guestfs-faq.pod:294 msgid "See: L<http://libguestfs.org/download/binaries/ubuntu1004-packages/>" msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:277 +#: ../examples/guestfs-faq.pod:297 msgid "Ubuntu 12.04" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:279 +#: ../examples/guestfs-faq.pod:299 msgid "" "libguestfs in this version of Ubuntu works, but you need to update " "febootstrap and seabios to the latest versions." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:282 +#: ../examples/guestfs-faq.pod:302 msgid "" "You need febootstrap E<ge> 3.14-2 from: " "L<http://packages.ubuntu.com/precise/febootstrap>" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:285 +#: ../examples/guestfs-faq.pod:305 msgid "After installing or updating febootstrap, rebuild the appliance:" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:287 +#: ../examples/guestfs-faq.pod:307 #, no-wrap msgid "" " sudo update-guestfs-appliance\n" @@ -4554,7 +4588,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:289 +#: ../examples/guestfs-faq.pod:309 msgid "" "You need seabios E<ge> 0.6.2-0ubuntu2.1 or E<ge> 0.6.2-0ubuntu3 from: " "L<http://packages.ubuntu.com/precise-updates/seabios> or " @@ -4562,22 +4596,22 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:294 +#: ../examples/guestfs-faq.pod:314 msgid "Also you need to do (see above):" msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:298 +#: ../examples/guestfs-faq.pod:320 msgid "Gentoo" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:300 +#: ../examples/guestfs-faq.pod:322 msgid "Libguestfs was added to Gentoo in 2012-07. Do:" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:302 +#: ../examples/guestfs-faq.pod:324 #, no-wrap msgid "" " emerge libguestfs\n" @@ -4585,68 +4619,68 @@ msgid "" msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:304 +#: ../examples/guestfs-faq.pod:326 msgid "Other Linux distro" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:306 +#: ../examples/guestfs-faq.pod:328 msgid "Compile from source (next section)." msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:308 +#: ../examples/guestfs-faq.pod:330 msgid "Other non-Linux distro" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:310 +#: ../examples/guestfs-faq.pod:332 msgid "You'll have to compile from source, and port it." msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:314 +#: ../examples/guestfs-faq.pod:336 msgid "How can I compile and install libguestfs from source?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:316 +#: ../examples/guestfs-faq.pod:338 msgid "" -"If your Linux distro has a working port of febootstrap (that is, Fedora, Red " -"Hat Enterprise Linux >= 6.3, Debian, Ubuntu and ArchLinux) then you should " -"just be able to compile from source in the usual way. Download the latest " -"tarball from L<http://libguestfs.org/download>, unpack it, and start by " -"reading the README file." +"If your Linux distro has a working port of febootstrap (that is, Fedora, " +"S<Red Hat Enterprise Linux E<ge> 6.3>, Debian, Ubuntu and ArchLinux) then " +"you should just be able to compile from source in the usual way. Download " +"the latest tarball from L<http://libguestfs.org/download>, unpack it, and " +"start by reading the README file." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:322 +#: ../examples/guestfs-faq.pod:344 msgid "" "If you I<don't> have febootstrap, you will need to use the \"fixed appliance " "method\". See: L<http://libguestfs.org/download/binaries/appliance/>" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:326 +#: ../examples/guestfs-faq.pod:348 msgid "Patches to port febootstrap to more Linux distros are welcome." msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:328 +#: ../examples/guestfs-faq.pod:350 msgid "" "Why do I get an error when I try to rebuild from the source RPMs supplied by " "Red Hat / Fedora?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:331 +#: ../examples/guestfs-faq.pod:353 msgid "" "Because of the complexity of building the libguestfs appliance, the source " "RPMs provided cannot be rebuilt directly using C<rpmbuild> or C<mock>." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:335 +#: ../examples/guestfs-faq.pod:357 msgid "" "If you use Koji (which is open source software and may be installed " "locally), then the SRPMs can be rebuilt in Koji. " @@ -4654,7 +4688,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:339 +#: ../examples/guestfs-faq.pod:361 msgid "" "If you don't have or want to use Koji, then you have to give libguestfs " "access to the network so it can download the RPMs for building the " @@ -4663,7 +4697,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:345 +#: ../examples/guestfs-faq.pod:367 #, no-wrap msgid "" " %libguestfs_buildnet 1\n" @@ -4671,12 +4705,12 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:347 +#: ../examples/guestfs-faq.pod:369 msgid "If you are using mock, do:" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:349 +#: ../examples/guestfs-faq.pod:371 #, no-wrap msgid "" " mock -D '%libguestfs_buildnet 1' [etc]\n" @@ -4684,22 +4718,89 @@ msgid "" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:351 +#: ../examples/guestfs-faq.pod:373 +msgid "How can I add support for sVirt?" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-faq.pod:375 +msgid "" +"Note: We are planning to make this configuration the default in S<Fedora " +"18>. If you find any problems, please let us know or file a bug." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-faq.pod:378 +msgid "" +"L<SVirt|http://selinuxproject.org/page/SVirt> provides a hardened appliance " +"using SELinux, making it very hard for a rogue disk image to \"escape\" from " +"the confinement of libguestfs and damage the host (it's fair to say that " +"even in standard libguestfs this would be hard, but sVirt provides an extra " +"layer of protection for the host and more importantly protects virtual " +"machines on the same host from each other)." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-faq.pod:386 +msgid "" +"Currently to enable sVirt you will need the very latest libvirt (from git), " +"libguestfs and SELinux policies. If you are not running S<Fedora 18+>, you " +"will need to make changes to your SELinux policy - contact us on the mailing " +"list." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-faq.pod:391 +msgid "Once you have the requirements, do:" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-faq.pod:393 +#, no-wrap +msgid "" +" ./configure --with-default-attach-method=libvirt\n" +" make\n" +"\n" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-faq.pod:396 +msgid "Enable SELinux, and sVirt should be used automatically." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-faq.pod:398 +msgid "" +"All, or almost all, features of libguestfs should work under sVirt. There " +"is one known shortcoming: L<virt-rescue(1)> will not use libvirt (hence " +"sVirt), but falls back to direct launch of qemu. So you won't currently get " +"the benefit of sVirt protection when using virt-rescue." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-faq.pod:403 +msgid "" +"In theory sVirt should support AppArmor, but we have not tried it. It will " +"almost certainly require patching libvirt and writing an AppArmor policy." +msgstr "" + +#. type: =head2 +#: ../examples/guestfs-faq.pod:407 msgid "Libguestfs has a really long list of dependencies!" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:353 +#: ../examples/guestfs-faq.pod:409 msgid "That's because it does a lot of things." msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:355 +#: ../examples/guestfs-faq.pod:411 msgid "How can I speed up libguestfs builds?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:357 +#: ../examples/guestfs-faq.pod:413 msgid "" "By far the most important thing you can do is to install and properly " "configure Squid. Note that the default configuration that ships with Squid " @@ -4707,45 +4808,45 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:361 +#: ../examples/guestfs-faq.pod:417 msgid "" "A very good place to start with Squid configuration is here: " "L<https://fedoraproject.org/wiki/Extras/MockTricks#Using_Squid_to_Speed_Up_Mock_package_downloads>" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:364 +#: ../examples/guestfs-faq.pod:420 msgid "" "Make sure Squid is running, and that the environment variables " "C<$http_proxy> and C<$ftp_proxy> are pointing to it." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:367 +#: ../examples/guestfs-faq.pod:423 msgid "" "With Squid running and correctly configured, appliance builds should be " "reduced to a few minutes." msgstr "" #. type: =head1 -#: ../examples/guestfs-faq.pod:370 +#: ../examples/guestfs-faq.pod:426 msgid "SPEED, DISK SPACE USED BY LIBGUESTFS" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:372 +#: ../examples/guestfs-faq.pod:428 msgid "" "Note: Most of the information in this section has moved: " "L<guestfs-performance(1)>." msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:375 +#: ../examples/guestfs-faq.pod:431 msgid "Upload or write seem very slow." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:377 +#: ../examples/guestfs-faq.pod:433 msgid "" "In libguestfs E<lt> 1.13.16, the mount command (L<guestfs(3)/guestfs_mount>) " "enabled option C<-o sync> implicitly. This causes very poor write " @@ -4753,14 +4854,14 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:382 +#: ../examples/guestfs-faq.pod:438 msgid "" "For libguestfs E<lt> 1.13.16, replace mount with C<mount-options>, leaving " "the first parameter as an empty string." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:385 +#: ../examples/guestfs-faq.pod:441 msgid "" "You can also do this with more recent versions of libguestfs, but if you " "know that you are using libguestfs ≥ 1.13.16 then it's safe to use plain " @@ -4768,7 +4869,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:389 +#: ../examples/guestfs-faq.pod:445 msgid "" "If the underlying disk is not fully allocated (eg. sparse raw or qcow2) then " "writes can be slow because the host operating system has to do costly disk " @@ -4778,17 +4879,17 @@ msgid "" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:395 +#: ../examples/guestfs-faq.pod:451 msgid "Libguestfs uses too much disk space!" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:397 +#: ../examples/guestfs-faq.pod:453 msgid "libguestfs caches a large-ish appliance in:" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:399 +#: ../examples/guestfs-faq.pod:455 #, no-wrap msgid "" " /var/tmp/.guestfs-<UID>\n" @@ -4796,26 +4897,26 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:401 +#: ../examples/guestfs-faq.pod:457 msgid "" "If the environment variable C<TMPDIR> is defined, then " "C<$TMPDIR/.guestfs-E<lt>UIDE<gt>> is used instead." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:404 +#: ../examples/guestfs-faq.pod:460 msgid "It is safe to delete this directory when you are not using libguestfs." msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:406 +#: ../examples/guestfs-faq.pod:462 msgid "" "virt-sparsify seems to make the image grow to the full size of the virtual " "disk" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:409 +#: ../examples/guestfs-faq.pod:465 msgid "" "If the input to L<virt-sparsify(1)> is raw, then the output will be raw " "sparse. Make sure you are measuring the output with a tool which " @@ -4823,7 +4924,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:413 ../sparsify/virt-sparsify.pod:34 +#: ../examples/guestfs-faq.pod:469 ../sparsify/virt-sparsify.pod:34 #, no-wrap msgid "" " $ ls -lh test1.img\n" @@ -4834,19 +4935,19 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:418 ../sparsify/virt-sparsify.pod:39 +#: ../examples/guestfs-faq.pod:474 ../sparsify/virt-sparsify.pod:39 msgid "(Compare the apparent size B<100M> vs the actual size B<3.6M>)" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:420 +#: ../examples/guestfs-faq.pod:476 msgid "" "If all this confuses you, use a non-sparse output by specifying the " "I<--convert> option, eg:" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:423 +#: ../examples/guestfs-faq.pod:479 #, no-wrap msgid "" " virt-sparsify --convert qcow2 disk.raw disk.qcow2\n" @@ -4854,24 +4955,24 @@ msgid "" msgstr "" #. type: =head1 -#: ../examples/guestfs-faq.pod:425 +#: ../examples/guestfs-faq.pod:481 msgid "USING LIBGUESTFS IN YOUR OWN PROGRAMS" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:427 +#: ../examples/guestfs-faq.pod:483 msgid "The API has hundreds of methods, where do I start?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:429 +#: ../examples/guestfs-faq.pod:485 msgid "" "We recommend you start by reading the API overview: L<guestfs(3)/API " "OVERVIEW>." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:432 +#: ../examples/guestfs-faq.pod:488 msgid "" "Although the API overview covers the C API, it is still worth reading even " "if you are going to use another programming language, because the API is the " @@ -4879,7 +4980,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:437 +#: ../examples/guestfs-faq.pod:493 #, no-wrap msgid "" " C guestfs_ln_sf (g, target, linkname);\n" @@ -4892,7 +4993,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:444 +#: ../examples/guestfs-faq.pod:500 msgid "" "Once you're familiar with the API overview, you should look at this list of " "starting points for other language bindings: L<guestfs(3)/USING LIBGUESTFS " @@ -4900,24 +5001,24 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:450 +#: ../examples/guestfs-faq.pod:506 msgid "<!-- old anchor for the next section --> <a name=\"debug\"/>" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:455 +#: ../examples/guestfs-faq.pod:511 msgid "Can I use libguestfs in my proprietary / closed source / commercial program?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:458 +#: ../examples/guestfs-faq.pod:514 msgid "" "In general, yes. However this is not legal advice - read the license that " "comes with libguestfs, and if you have specific questions contact a lawyer." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:462 +#: ../examples/guestfs-faq.pod:518 msgid "" "In the source tree the license is in the file C<COPYING.LIB> (LGPLv2+ for " "the library and bindings) and C<COPYING> (GPLv2+ for the standalone " @@ -4925,43 +5026,43 @@ msgid "" msgstr "" #. type: =head1 -#: ../examples/guestfs-faq.pod:466 +#: ../examples/guestfs-faq.pod:522 msgid "DEBUGGING LIBGUESTFS" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:468 +#: ../examples/guestfs-faq.pod:524 msgid "" "How do I debug when using any libguestfs program or tool (eg. virt-v2v or " "virt-df)?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:471 +#: ../examples/guestfs-faq.pod:527 msgid "" "There are two C<LIBGUESTFS_*> environment variables you can set in order to " "get more information from libguestfs." msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:476 +#: ../examples/guestfs-faq.pod:532 msgid "C<LIBGUESTFS_TRACE>" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:478 +#: ../examples/guestfs-faq.pod:534 msgid "" "Set this to 1 and libguestfs will print out each command / API call in a " "format which is similar to guestfish commands." msgstr "" #. type: =item -#: ../examples/guestfs-faq.pod:481 +#: ../examples/guestfs-faq.pod:537 msgid "C<LIBGUESTFS_DEBUG>" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:483 +#: ../examples/guestfs-faq.pod:539 msgid "" "Set this to 1 in order to enable massive amounts of debug messages. If you " "think there is some problem inside the libguestfs appliance, then you should " @@ -4969,12 +5070,12 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:489 +#: ../examples/guestfs-faq.pod:545 msgid "To set these from the shell, do this before running the program:" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:491 +#: ../examples/guestfs-faq.pod:547 #, no-wrap msgid "" " export LIBGUESTFS_TRACE=1\n" @@ -4983,12 +5084,12 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:494 +#: ../examples/guestfs-faq.pod:550 msgid "For csh/tcsh the equivalent commands would be:" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:496 +#: ../examples/guestfs-faq.pod:552 #, no-wrap msgid "" " setenv LIBGUESTFS_TRACE 1\n" @@ -4997,17 +5098,17 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:499 +#: ../examples/guestfs-faq.pod:555 msgid "For further information, see: L<guestfs(3)/ENVIRONMENT VARIABLES>." msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:501 +#: ../examples/guestfs-faq.pod:557 msgid "How do I debug when using guestfish?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:503 +#: ../examples/guestfs-faq.pod:559 msgid "" "You can use the same environment variables above. Alternatively use the " "guestfish options -x (to trace commands) or -v (to get the full debug " @@ -5015,24 +5116,24 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:507 +#: ../examples/guestfs-faq.pod:563 msgid "For further information, see: L<guestfish(1)>." msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:509 +#: ../examples/guestfs-faq.pod:565 msgid "How do I debug when using the API?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:511 +#: ../examples/guestfs-faq.pod:567 msgid "" "Call L<guestfs(3)/guestfs_set_trace> to enable command traces, and/or " "L<guestfs(3)/guestfs_set_verbose> to enable debug messages." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:514 +#: ../examples/guestfs-faq.pod:570 msgid "" "For best results, call these functions as early as possible, just after " "creating the guestfs handle if you can, and definitely before calling " @@ -5040,36 +5141,36 @@ msgid "" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:518 +#: ../examples/guestfs-faq.pod:574 msgid "How do I capture debug output and put it into my logging system?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:520 +#: ../examples/guestfs-faq.pod:576 msgid "" "Use the event API. For examples, see: L<guestfs(3)/SETTING CALLBACKS TO " "HANDLE EVENTS>." msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:523 +#: ../examples/guestfs-faq.pod:579 msgid "Digging deeper into the appliance boot process." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:525 +#: ../examples/guestfs-faq.pod:581 msgid "" "Enable debugging and then read this documentation on the appliance boot " "process: L<guestfs(3)/INTERNALS>." msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:528 +#: ../examples/guestfs-faq.pod:584 msgid "libguestfs hangs or fails during run/launch." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:530 +#: ../examples/guestfs-faq.pod:586 msgid "" "Enable debugging and look at the full output. If you cannot work out what " "is going on, file a bug report, including the I<complete> output of " @@ -5077,17 +5178,17 @@ msgid "" msgstr "" #. type: =head1 -#: ../examples/guestfs-faq.pod:534 +#: ../examples/guestfs-faq.pod:590 msgid "DESIGN/INTERNALS OF LIBGUESTFS" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:536 +#: ../examples/guestfs-faq.pod:592 msgid "Why don't you do everything through the FUSE / filesystem interface?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:539 +#: ../examples/guestfs-faq.pod:595 msgid "" "We offer a command called L<guestmount(1)> which lets you mount guest " "filesystems on the host. This is implemented as a FUSE module. Why don't " @@ -5096,7 +5197,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:544 +#: ../examples/guestfs-faq.pod:600 msgid "" "The reasons are twofold. Firstly, libguestfs offers API calls for doing " "things like creating and deleting partitions and logical volumes, which " @@ -5110,7 +5211,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:554 +#: ../examples/guestfs-faq.pod:610 msgid "" "The second reason is for efficiency. FUSE itself is reasonably efficient, " "but it does make lots of small, independent calls into the FUSE module. In " @@ -5123,17 +5224,17 @@ msgid "" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:564 +#: ../examples/guestfs-faq.pod:620 msgid "Why don't you do everything through GVFS?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:566 +#: ../examples/guestfs-faq.pod:622 msgid "The problems are similar to the problems with FUSE." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:568 +#: ../examples/guestfs-faq.pod:624 msgid "" "GVFS is a better abstraction than POSIX/FUSE. There is an FTP backend for " "GVFS, which is encouraging because FTP is conceptually similar to the " @@ -5143,17 +5244,17 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:576 +#: ../examples/guestfs-faq.pod:632 msgid "<!-- old anchor for the next section --> <a name=\"backup\"/>" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:581 +#: ../examples/guestfs-faq.pod:637 msgid "Can I use C<guestfish --ro> as a way to backup my virtual machines?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:583 +#: ../examples/guestfs-faq.pod:639 msgid "" "Usually this is not a good idea. The question is answered in more detail in " "this mailing list posting: " @@ -5161,17 +5262,17 @@ msgid "" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:587 +#: ../examples/guestfs-faq.pod:643 msgid "Why can I write to the disk, even though I added it read-only?" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:589 +#: ../examples/guestfs-faq.pod:645 msgid "Why does C<--ro> appear to have no effect?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:591 +#: ../examples/guestfs-faq.pod:647 msgid "" "When you add a disk read-only, libguestfs places a writable overlay on top " "of the underlying disk. Writes go into this overlay, and are discarded when " @@ -5179,7 +5280,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:595 +#: ../examples/guestfs-faq.pod:651 msgid "" "There are two reasons for doing it this way: Firstly read-only disks aren't " "possible in many cases (eg. IDE simply doesn't support them, so you couldn't " @@ -5188,7 +5289,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:600 +#: ../examples/guestfs-faq.pod:656 msgid "" "Secondly and more importantly, even if read-only disks were possible, you " "wouldn't want them. Mounting any filesystem that has a journal, even " @@ -5198,7 +5299,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:606 +#: ../examples/guestfs-faq.pod:662 msgid "" "To make it usable, we create the overlay as a place to temporarily store " "these writes, and then we discard it afterwards. This ensures that the " @@ -5206,7 +5307,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:610 +#: ../examples/guestfs-faq.pod:666 msgid "" "Note also that there is a regression test for this when building libguestfs " "(in C<tests/qemu>). This is one reason why it's important for packagers to " @@ -5214,38 +5315,38 @@ msgid "" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:614 +#: ../examples/guestfs-faq.pod:670 msgid "Does C<--ro> make all disks read-only?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:616 +#: ../examples/guestfs-faq.pod:672 msgid "" "I<No!> The C<--ro> option only affects disks added on the command line, " "ie. using C<-a> and C<-d> options." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:619 +#: ../examples/guestfs-faq.pod:675 msgid "" "In guestfish, if you use the C<add> command, then disk is added read-write " "(unless you specify the C<readonly:true> flag explicitly with the command)." msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:623 +#: ../examples/guestfs-faq.pod:679 msgid "What's the difference between guestfish and virt-rescue?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:625 +#: ../examples/guestfs-faq.pod:681 msgid "" "A lot of people are confused by the two superficially similar tools we " "provide:" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:628 +#: ../examples/guestfs-faq.pod:684 #, no-wrap msgid "" " $ guestfish --ro -a guest.img\n" @@ -5255,7 +5356,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:632 +#: ../examples/guestfs-faq.pod:688 #, no-wrap msgid "" " $ virt-rescue --ro guest.img\n" @@ -5264,7 +5365,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:635 +#: ../examples/guestfs-faq.pod:691 msgid "" "And the related question which then arises is why you can't type in full " "shell commands with all the --options in guestfish (but you can in " @@ -5272,7 +5373,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:639 +#: ../examples/guestfs-faq.pod:695 msgid "" "L<guestfish(1)> is a program providing structured access to the " "L<guestfs(3)> API. It happens to be a nice interactive shell too, but its " @@ -5283,7 +5384,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:646 +#: ../examples/guestfs-faq.pod:702 msgid "" "L<virt-rescue(1)> is a free-for-all freeform way to boot the libguestfs " "appliance and make arbitrary changes to your VM. It's not structured, you " @@ -5292,7 +5393,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:651 +#: ../examples/guestfs-faq.pod:707 msgid "" "But, libguestfs also has a \"backdoor\" into the appliance allowing you to " "send arbitrary shell commands. It's not as flexible as virt-rescue, because " @@ -5300,7 +5401,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:656 +#: ../examples/guestfs-faq.pod:712 #, no-wrap msgid "" " ><fs> debug sh \"cmd arg1 arg2 ...\"\n" @@ -5308,7 +5409,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:658 +#: ../examples/guestfs-faq.pod:714 msgid "" "Note that you should B<not> rely on this. It could be removed or changed in " "future. If your program needs some operation, please add it to the " @@ -5316,45 +5417,45 @@ msgid "" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:662 +#: ../examples/guestfs-faq.pod:718 msgid "What's the deal with C<guestfish -i>?" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:664 +#: ../examples/guestfs-faq.pod:720 msgid "" "Why does virt-cat only work on a real VM image, but virt-df works on any " "disk image?" msgstr "" #. type: =head2 -#: ../examples/guestfs-faq.pod:667 +#: ../examples/guestfs-faq.pod:723 msgid "What does \"no root device found in this operating system image\" mean?" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:670 +#: ../examples/guestfs-faq.pod:726 msgid "" "These questions are all related at a fundamental level which may not be " "immediately obvious." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:673 +#: ../examples/guestfs-faq.pod:729 msgid "" "At the L<guestfs(3)> API level, a \"disk image\" is just a pile of " "partitions and filesystems." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:676 +#: ../examples/guestfs-faq.pod:732 msgid "" "In contrast, when the virtual machine boots, it mounts those filesystems " "into a consistent hierarchy such as:" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:679 +#: ../examples/guestfs-faq.pod:735 #, no-wrap msgid "" " / (/dev/sda2)\n" @@ -5370,12 +5471,12 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:689 +#: ../examples/guestfs-faq.pod:745 msgid "(or drive letters on Windows)." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:691 +#: ../examples/guestfs-faq.pod:747 msgid "" "The API first of all sees the disk image at the \"pile of filesystems\" " "level. But it also has a way to inspect the disk image to see if it " @@ -5384,12 +5485,12 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:696 +#: ../examples/guestfs-faq.pod:752 msgid "Users expect some tools (like L<virt-cat(1)>) to work with VM paths:" msgstr "" #. type: verbatim -#: ../examples/guestfs-faq.pod:698 +#: ../examples/guestfs-faq.pod:754 #, no-wrap msgid "" " virt-cat fedora.img /var/log/messages\n" @@ -5397,7 +5498,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:700 +#: ../examples/guestfs-faq.pod:756 msgid "" "How does virt-cat know that C</var> is a separate partition? The trick is " "that virt-cat performs inspection on the disk image, and uses that to " @@ -5405,7 +5506,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:704 +#: ../examples/guestfs-faq.pod:760 msgid "" "Some tools (including L<virt-cat(1)>, L<virt-edit(1)>, L<virt-ls(1)>) use " "inspection to map VM paths. Other tools, such as L<virt-df(1)> and " @@ -5414,7 +5515,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:709 +#: ../examples/guestfs-faq.pod:765 msgid "" "L<guestfish(1)> is in an interesting middle ground. If you use the I<-a> " "and I<-m> command line options, then you have to tell guestfish exactly how " @@ -5422,14 +5523,14 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:714 +#: ../examples/guestfs-faq.pod:770 msgid "" "If you use the I<-i> option, libguestfs performs inspection and mounts the " "filesystems for you." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:717 +#: ../examples/guestfs-faq.pod:773 msgid "" "The error C<no root device found in this operating system image> is related " "to this. It means inspection was unable to locate an operating system " @@ -5439,12 +5540,12 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:725 +#: ../examples/guestfs-faq.pod:781 msgid "L<guestfish(1)>, L<guestfs(3)>, L<http://libguestfs.org/>." msgstr "" #. type: textblock -#: ../examples/guestfs-faq.pod:735 ../examples/guestfs-performance.pod:448 ../format/virt-format.pod:193 +#: ../examples/guestfs-faq.pod:791 ../examples/guestfs-performance.pod:448 ../format/virt-format.pod:193 msgid "Copyright (C) 2012 Red Hat Inc." msgstr "" @@ -5492,7 +5593,7 @@ msgid "On an unloaded machine, time how long it takes to start up the appliance: msgstr "" #. type: verbatim -#: ../examples/guestfs-performance.pod:29 ../examples/guestfs-performance.pod:180 ../examples/guestfs-testing.pod:36 +#: ../examples/guestfs-performance.pod:29 ../examples/guestfs-performance.pod:180 ../examples/guestfs-testing.pod:50 #, no-wrap msgid "" " time guestfish -a /dev/null run\n" @@ -5740,7 +5841,7 @@ msgid "" msgstr "" #. type: =item -#: ../examples/guestfs-performance.pod:162 ../examples/guestfs-performance.pod:211 ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:603 ../sparsify/virt-sparsify.pod:243 ../src/guestfs.pod:473 ../src/guestfs.pod:1291 ../src/guestfs.pod:1545 ../src/guestfs.pod:1710 ../src/guestfs.pod:2968 +#: ../examples/guestfs-performance.pod:162 ../examples/guestfs-performance.pod:211 ../examples/guestfs-recipes.pod:288 ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:603 ../sparsify/virt-sparsify.pod:243 ../src/guestfs.pod:475 ../src/guestfs.pod:1293 ../src/guestfs.pod:1547 ../src/guestfs.pod:1712 ../src/guestfs.pod:2970 msgid "1." msgstr "" @@ -5752,7 +5853,7 @@ msgid "" msgstr "" #. type: =item -#: ../examples/guestfs-performance.pod:168 ../examples/guestfs-performance.pod:218 ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:250 ../src/guestfs.pod:479 ../src/guestfs.pod:1295 ../src/guestfs.pod:1549 ../src/guestfs.pod:1714 ../src/guestfs.pod:2993 +#: ../examples/guestfs-performance.pod:168 ../examples/guestfs-performance.pod:218 ../examples/guestfs-recipes.pod:294 ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:250 ../src/guestfs.pod:481 ../src/guestfs.pod:1297 ../src/guestfs.pod:1551 ../src/guestfs.pod:1716 ../src/guestfs.pod:2995 msgid "2." msgstr "" @@ -5767,7 +5868,7 @@ msgid "" msgstr "" #. type: =item -#: ../examples/guestfs-performance.pod:176 ../examples/guestfs-performance.pod:224 ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:616 ../sparsify/virt-sparsify.pod:256 ../src/guestfs.pod:490 ../src/guestfs.pod:1299 ../src/guestfs.pod:1720 +#: ../examples/guestfs-performance.pod:176 ../examples/guestfs-performance.pod:224 ../examples/guestfs-recipes.pod:300 ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:616 ../sparsify/virt-sparsify.pod:256 ../src/guestfs.pod:492 ../src/guestfs.pod:1301 ../src/guestfs.pod:1722 msgid "3." msgstr "" @@ -6029,7 +6130,7 @@ msgid "Save the following script as C<time.stap>:" msgstr "" #. type: verbatim -#: ../examples/guestfs-performance.pod:322 ../src/guestfs.pod:2481 +#: ../examples/guestfs-performance.pod:322 ../src/guestfs.pod:2483 #, no-wrap msgid "" " global last;\n" @@ -6037,7 +6138,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-performance.pod:324 ../src/guestfs.pod:2483 +#: ../examples/guestfs-performance.pod:324 ../src/guestfs.pod:2485 #, no-wrap msgid "" " function display_time () {\n" @@ -6050,7 +6151,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-performance.pod:331 ../src/guestfs.pod:2490 +#: ../examples/guestfs-performance.pod:331 ../src/guestfs.pod:2492 #, no-wrap msgid "" " printf (\"%d (+%d):\", now, delta);\n" @@ -6059,7 +6160,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-performance.pod:334 ../src/guestfs.pod:2493 +#: ../examples/guestfs-performance.pod:334 ../src/guestfs.pod:2495 #, no-wrap msgid "" " probe begin {\n" @@ -6070,7 +6171,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-performance.pod:339 ../src/guestfs.pod:2498 +#: ../examples/guestfs-performance.pod:339 ../src/guestfs.pod:2500 #, no-wrap msgid "" " /* Display all calls to static markers. */\n" @@ -6179,7 +6280,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-performance.pod:394 ../fish/guestfish.pod:998 ../src/guestfs.pod:1075 +#: ../examples/guestfs-performance.pod:394 ../fish/guestfish.pod:998 ../src/guestfs.pod:1077 #, no-wrap msgid "" " #!/bin/bash -\n" @@ -6623,7 +6724,7 @@ msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1 msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:156 ../examples/guestfs-testing.pod:93 +#: ../examples/guestfs-recipes.pod:156 ../examples/guestfs-testing.pod:107 #, no-wrap msgid "" " virt-copy-out -d Guest /home .\n" @@ -6631,7 +6732,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:158 ../fish/guestfish-actions.pod:1684 ../fish/guestfish-actions.pod:2139 ../fish/guestfish-actions.pod:2731 ../src/guestfs-actions.pod:2759 ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:4314 ../src/guestfs.pod:1964 ../tools/virt-win-reg.pl:717 +#: ../examples/guestfs-recipes.pod:158 ../fish/guestfish-actions.pod:1684 ../fish/guestfish-actions.pod:2139 ../fish/guestfish-actions.pod:2731 ../src/guestfs-actions.pod:2759 ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:4314 ../src/guestfs.pod:1966 ../tools/virt-win-reg.pl:717 msgid "Notes:" msgstr "" @@ -6886,12 +6987,62 @@ msgstr "" #. type: =head1 #: ../examples/guestfs-recipes.pod:281 -msgid "Install RPMs in a guest" +msgid "Hanging guests" msgstr "" #. type: textblock #: ../examples/guestfs-recipes.pod:283 msgid "" +"There are various ways to use libguestfs to find out why a guest is hanging " +"or unresponsive:" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:290 +msgid "Read the log files using virt-cat:" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-recipes.pod:292 +#, no-wrap +msgid "" +" virt-cat Guest /var/log/messages | less\n" +"\n" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:296 +msgid "Read the Windows Event Log (Windows Vista or later only):" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:298 ../examples/guestfs-recipes.pod:400 +msgid "L<https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content>" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:302 +msgid "Find out which files were last updated in a guest:" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:304 +msgid "L<https://rwmj.wordpress.com/2012/02/27/using-libguestfs-to-find-out-why-a-windows-guest-was-hanging/#content>" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:306 +msgid "This might give you a clue as to what program is running." +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-recipes.pod:310 +msgid "Install RPMs in a guest" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:312 +msgid "" "The link below contains a method to install RPMs in a guest. In fact the " "RPMs are just uploaded to the guest along with a \"firstboot\" script that " "installs them next time the guest is booted. You could use this technique " @@ -6899,29 +7050,29 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:289 +#: ../examples/guestfs-recipes.pod:318 msgid "L<https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content>" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:291 +#: ../examples/guestfs-recipes.pod:320 msgid "" "Since libguestfs 1.20, L<virt-sysprep(1)> has an option for installing " "firstboot scripts in Linux guests." msgstr "" #. type: =head1 -#: ../examples/guestfs-recipes.pod:294 +#: ../examples/guestfs-recipes.pod:323 msgid "List applications installed in a VM" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:296 +#: ../examples/guestfs-recipes.pod:325 msgid "Save the following to a file C<list-apps.sh>:" msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:298 +#: ../examples/guestfs-recipes.pod:327 #, no-wrap msgid "" " #!/bin/sh -\n" @@ -6934,14 +7085,14 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:305 +#: ../examples/guestfs-recipes.pod:334 msgid "" "Make the file executable and then you can run it on any named virtual " "machine:" msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:308 +#: ../examples/guestfs-recipes.pod:337 #, no-wrap msgid "" " # list-apps.sh WinGuest\n" @@ -6977,7 +7128,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:338 +#: ../examples/guestfs-recipes.pod:367 msgid "" "If you want to run the script on disk images (instead of libvirt virtual " "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also " @@ -6985,22 +7136,22 @@ msgid "" msgstr "" #. type: =head1 -#: ../examples/guestfs-recipes.pod:342 +#: ../examples/guestfs-recipes.pod:371 msgid "List files and directories in a VM" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:344 +#: ../examples/guestfs-recipes.pod:373 msgid "Use L<virt-ls(1)>." msgstr "" #. type: =head1 -#: ../examples/guestfs-recipes.pod:346 +#: ../examples/guestfs-recipes.pod:375 msgid "List services in a Windows VM" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:348 +#: ../examples/guestfs-recipes.pod:377 msgid "" "The link below contains a script that can be used to list out the services " "from a Windows VM, and whether those services run at boot time or are loaded " @@ -7008,69 +7159,64 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:352 +#: ../examples/guestfs-recipes.pod:381 msgid "L<https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content>" msgstr "" #. type: =head1 -#: ../examples/guestfs-recipes.pod:354 +#: ../examples/guestfs-recipes.pod:383 msgid "Make a disk image sparse" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:356 +#: ../examples/guestfs-recipes.pod:385 msgid "Use L<virt-sparsify(1)>." msgstr "" #. type: =head1 -#: ../examples/guestfs-recipes.pod:358 +#: ../examples/guestfs-recipes.pod:387 msgid "Monitor disk usage over time" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:360 +#: ../examples/guestfs-recipes.pod:389 msgid "" "You can use L<virt-df(1)> to monitor disk usage of your guests over time. " "The link below contains a guide." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:363 +#: ../examples/guestfs-recipes.pod:392 msgid "L<http://virt-tools.org/learning/advanced-virt-df/>" msgstr "" #. type: =head1 -#: ../examples/guestfs-recipes.pod:365 +#: ../examples/guestfs-recipes.pod:394 msgid "Reading the Windows Event Log from Windows Vista (or later)" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:367 +#: ../examples/guestfs-recipes.pod:396 msgid "" "L<guestfish(1)> plus the tools described in the link below can be used to " "read out the Windows Event Log from any virtual machine running Windows " "Vista or a later version." msgstr "" -#. type: textblock -#: ../examples/guestfs-recipes.pod:371 -msgid "L<https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content>" -msgstr "" - #. type: =head1 -#: ../examples/guestfs-recipes.pod:373 +#: ../examples/guestfs-recipes.pod:402 msgid "Remove root password (Linux)" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:375 +#: ../examples/guestfs-recipes.pod:404 msgid "" "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on " "files. One use is to remove the root password from a Linux guest:" msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:378 +#: ../examples/guestfs-recipes.pod:407 #, no-wrap msgid "" " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n" @@ -7078,12 +7224,12 @@ msgid "" msgstr "" #. type: =head1 -#: ../examples/guestfs-recipes.pod:380 +#: ../examples/guestfs-recipes.pod:409 msgid "Remove Administrator password (Windows)" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:382 +#: ../examples/guestfs-recipes.pod:411 msgid "" "The link below contains one technique for removing the Administrator " "password from a Windows VM, or to be more precise, it gives you a command " @@ -7091,17 +7237,17 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:387 +#: ../examples/guestfs-recipes.pod:416 msgid "L<https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/>" msgstr "" #. type: =head1 -#: ../examples/guestfs-recipes.pod:389 +#: ../examples/guestfs-recipes.pod:418 msgid "Sysprepping a virtual machine (Windows)" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:391 +#: ../examples/guestfs-recipes.pod:420 msgid "" "It is possible to do a \"sysprep\" using libguestfs alone, although not " "straightforward. Currently there is code in the Aeolus Oz project which " @@ -7110,19 +7256,19 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:396 +#: ../examples/guestfs-recipes.pod:425 msgid "" "L<https://github.com/clalancette/oz> " "L<https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html>" msgstr "" #. type: =head1 -#: ../examples/guestfs-recipes.pod:399 +#: ../examples/guestfs-recipes.pod:428 msgid "Unpack a live CD" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:401 +#: ../examples/guestfs-recipes.pod:430 msgid "" "Linux live CDs often contain multiple layers of disk images wrapped like a " "Russian doll. You can use L<guestfish(1)> to look inside these multiple " @@ -7130,41 +7276,41 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:405 +#: ../examples/guestfs-recipes.pod:434 msgid "L<https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content>" msgstr "" #. type: =head1 -#: ../examples/guestfs-recipes.pod:407 +#: ../examples/guestfs-recipes.pod:436 msgid "Uploading and downloading files" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:409 +#: ../examples/guestfs-recipes.pod:438 msgid "" "The link below contains general tips on uploading (copying in) and " "downloading (copying out) files from VMs." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:412 +#: ../examples/guestfs-recipes.pod:441 msgid "L<https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content>" msgstr "" #. type: =head1 -#: ../examples/guestfs-recipes.pod:414 +#: ../examples/guestfs-recipes.pod:443 msgid "Uploading raw filesystem content" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:416 +#: ../examples/guestfs-recipes.pod:445 msgid "" "You can use L<guestfish(1)> to upload whole filesystems into a VM, even into " "a filesystem which is encrypted or buried inside an LV or RAID device:" msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:420 +#: ../examples/guestfs-recipes.pod:449 #, no-wrap msgid "" " guestfish --rw -a disk.img run : upload sda1.img /dev/sda1\n" @@ -7172,7 +7318,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:422 +#: ../examples/guestfs-recipes.pod:451 #, no-wrap msgid "" " guestfish --rw -d Guest run : upload lv.img /dev/vg_guest/lv_root\n" @@ -7180,7 +7326,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:424 +#: ../examples/guestfs-recipes.pod:453 msgid "" "One common problem is that the filesystem isn't the right size for the " "target. If it is too large, there's not much you can do with libguestfs - " @@ -7190,7 +7336,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:430 +#: ../examples/guestfs-recipes.pod:459 #, no-wrap msgid "" " guestfish --rw -d Guest run : \\\n" @@ -7200,29 +7346,29 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:434 +#: ../examples/guestfs-recipes.pod:463 msgid "(or use C<ntfsresize> if the filesystem is NTFS)." msgstr "" #. type: =head1 -#: ../examples/guestfs-recipes.pod:436 +#: ../examples/guestfs-recipes.pod:465 msgid "Use libguestfs tools on VMware ESX guests" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:438 +#: ../examples/guestfs-recipes.pod:467 msgid "" "The link below explains how to use libguestfs, L<guestfish(1)> and the virt " "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:442 +#: ../examples/guestfs-recipes.pod:471 msgid "L<https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content>" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:446 +#: ../examples/guestfs-recipes.pod:475 msgid "" "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, " "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, " @@ -7285,11 +7431,37 @@ msgstr "" #. type: =head2 #: ../examples/guestfs-testing.pod:30 +msgid "Run libguestfs-test-tool" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:32 ../examples/guestfs-testing.pod:145 ../src/guestfs.pod:3365 +msgid "Run:" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:36 +msgid "" +"This command does a very simple, non-destructive test that basic libguestfs " +"is functioning. You don't need to run it as root." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:39 +msgid "" +"If it I<doesn't> print C<===== TEST FINISHED OK =====>, report it as a bug. " +"It is very important that you include the B<complete, unedited> output of " +"C<libguestfs-test-tool> in your bug report. See the L</BUGS> section at the " +"end of this page." +msgstr "" + +#. type: =head2 +#: ../examples/guestfs-testing.pod:44 msgid "Check KVM acceleration is being used." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:32 +#: ../examples/guestfs-testing.pod:46 msgid "" "If your host has hardware virt acceleration, then with a hot cache " "libguestfs should be able to start up in a few seconds. Run the following " @@ -7297,39 +7469,39 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:38 +#: ../examples/guestfs-testing.pod:52 msgid "" "After a few runs, the time should settle down to a few seconds (under 5 " "seconds on fast 64 bit hardware)." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:41 +#: ../examples/guestfs-testing.pod:55 msgid "How to check for hardware virt:" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:43 +#: ../examples/guestfs-testing.pod:57 msgid "L<http://virt-tools.org/learning/check-hardware-virt/>" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:45 +#: ../examples/guestfs-testing.pod:59 msgid "If the command above does not work at all, use L<libguestfs-test-tool(1)>." msgstr "" #. type: =head2 -#: ../examples/guestfs-testing.pod:48 +#: ../examples/guestfs-testing.pod:62 msgid "Run virt-alignment-scan on all your guests." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:50 +#: ../examples/guestfs-testing.pod:64 msgid "Run L<virt-alignment-scan(1)> on guests or disk images:" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:52 +#: ../examples/guestfs-testing.pod:66 #, no-wrap msgid "" " virt-alignment-scan -a /path/to/disk.img\n" @@ -7337,12 +7509,12 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:54 ../examples/guestfs-testing.pod:161 ../examples/guestfs-testing.pod:174 ../examples/guestfs-testing.pod:234 ../src/guestfs.pod:3070 +#: ../examples/guestfs-testing.pod:68 ../examples/guestfs-testing.pod:175 ../examples/guestfs-testing.pod:188 ../examples/guestfs-testing.pod:248 ../src/guestfs.pod:3072 msgid "or:" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:56 +#: ../examples/guestfs-testing.pod:70 #, no-wrap msgid "" " virt-alignment-scan -d Guest\n" @@ -7350,22 +7522,22 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:58 +#: ../examples/guestfs-testing.pod:72 msgid "Does the alignment report match how the guest partitions are aligned?" msgstr "" #. type: =head2 -#: ../examples/guestfs-testing.pod:60 +#: ../examples/guestfs-testing.pod:74 msgid "Run virt-cat on some files in guests." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:62 +#: ../examples/guestfs-testing.pod:76 msgid "L<virt-cat(1)> can display files from guests. For a Linux guest, try:" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:64 +#: ../examples/guestfs-testing.pod:78 #, no-wrap msgid "" " virt-cat LinuxGuest /etc/passwd\n" @@ -7373,12 +7545,12 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:66 +#: ../examples/guestfs-testing.pod:80 msgid "A recent feature is support for Windows paths, for example:" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:68 +#: ../examples/guestfs-testing.pod:82 #, no-wrap msgid "" " virt-cat WindowsGuest 'c:\\windows\\win.ini'\n" @@ -7386,26 +7558,26 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:70 +#: ../examples/guestfs-testing.pod:84 msgid "" "An even better test is if you have a Windows guest with multiple drives. Do " "C<D:>, C<E:> etc paths work correctly?" msgstr "" #. type: =head2 -#: ../examples/guestfs-testing.pod:73 +#: ../examples/guestfs-testing.pod:87 msgid "B<*> Copy some files into a B<shut off> guest." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:75 +#: ../examples/guestfs-testing.pod:89 msgid "" "L<virt-copy-in(1)> can recursively copy files and directories into a guest " "or disk image." msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:78 +#: ../examples/guestfs-testing.pod:92 #, no-wrap msgid "" " virt-copy-in -d Guest /etc /tmp\n" @@ -7413,7 +7585,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:80 +#: ../examples/guestfs-testing.pod:94 msgid "" "This should copy local directory C</etc> to C</tmp/etc> in the guest " "(recursively). If you boot the guest, can you see all of the copied files " @@ -7421,12 +7593,12 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:84 +#: ../examples/guestfs-testing.pod:98 msgid "Shut the guest down and try copying multiple files and directories:" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:86 +#: ../examples/guestfs-testing.pod:100 #, no-wrap msgid "" " virt-copy-in -d Guest /home /etc/issue /tmp\n" @@ -7434,39 +7606,39 @@ msgid "" msgstr "" #. type: =head2 -#: ../examples/guestfs-testing.pod:88 +#: ../examples/guestfs-testing.pod:102 msgid "Copy some files out of a guest." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:90 +#: ../examples/guestfs-testing.pod:104 msgid "" "L<virt-copy-out(1)> can recursively copy files and directories out of a " "guest or disk image." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:95 +#: ../examples/guestfs-testing.pod:109 msgid "Note the final space and period in the command is not a typo." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:97 +#: ../examples/guestfs-testing.pod:111 msgid "This should copy C</home> from the guest into the current directory." msgstr "" #. type: =head2 -#: ../examples/guestfs-testing.pod:99 +#: ../examples/guestfs-testing.pod:113 msgid "Run virt-df." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:101 +#: ../examples/guestfs-testing.pod:115 msgid "L<virt-df(1)> lists disk space. Run:" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:103 +#: ../examples/guestfs-testing.pod:117 #, no-wrap msgid "" " virt-df\n" @@ -7474,31 +7646,31 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:105 +#: ../examples/guestfs-testing.pod:119 msgid "" "You can try comparing this to the results from L<df(1)> inside the guest, " "but there are some provisos:" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:112 +#: ../examples/guestfs-testing.pod:126 msgid "The guest must be idle." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:116 +#: ../examples/guestfs-testing.pod:130 msgid "The guest disks must be synched using L<sync(1)>." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:120 +#: ../examples/guestfs-testing.pod:134 msgid "" "Any action such as booting the guest will write log files causing the " "numbers to change." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:125 +#: ../examples/guestfs-testing.pod:139 msgid "" "We don't guarantee that the numbers will be identical even under these " "circumstances. They should be similar. It would indicate a bug if you saw " @@ -7506,17 +7678,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../examples/guestfs-testing.pod:129 +#: ../examples/guestfs-testing.pod:143 msgid "Try importing virt-df CSV output into a spreadsheet or database." msgstr "" -#. type: textblock -#: ../examples/guestfs-testing.pod:131 ../src/guestfs.pod:3368 -msgid "Run:" -msgstr "" - #. type: verbatim -#: ../examples/guestfs-testing.pod:133 +#: ../examples/guestfs-testing.pod:147 #, no-wrap msgid "" " virt-df --csv > /tmp/report.csv\n" @@ -7524,33 +7691,33 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:135 +#: ../examples/guestfs-testing.pod:149 msgid "" "Now try to load this into your favorite spreadsheet or database. Are the " "results reproduced faithfully in the spreadsheet/database?" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:138 +#: ../examples/guestfs-testing.pod:152 msgid "" "L<http://www.postgresql.org/docs/8.1/static/sql-copy.html> " "L<http://dev.mysql.com/doc/refman/5.1/en/load-data.html>" msgstr "" #. type: =head2 -#: ../examples/guestfs-testing.pod:141 +#: ../examples/guestfs-testing.pod:155 msgid "B<*> Edit a file in a B<shut off> guest." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:143 +#: ../examples/guestfs-testing.pod:157 msgid "" "L<virt-edit(1)> can edit files in guests. Try this command on a RHEL or " "Fedora guest:" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:146 +#: ../examples/guestfs-testing.pod:160 #, no-wrap msgid "" " virt-edit LinuxGuest /etc/sysconfig/network\n" @@ -7558,12 +7725,12 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:148 +#: ../examples/guestfs-testing.pod:162 msgid "On other Linux guests try editing other files such as:" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:150 +#: ../examples/guestfs-testing.pod:164 #, no-wrap msgid "" " virt-edit LinuxGuest /etc/motd\n" @@ -7571,24 +7738,24 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:152 +#: ../examples/guestfs-testing.pod:166 msgid "Are the changes seen inside the guest when it is booted?" msgstr "" #. type: =head2 -#: ../examples/guestfs-testing.pod:154 +#: ../examples/guestfs-testing.pod:168 msgid "Display the filesystems / partitions / LVs in a guest." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:156 +#: ../examples/guestfs-testing.pod:170 msgid "" "L<virt-filesystems(1)> can be used to display filesystems in a guest. Try " "this command on any disk image or guest:" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:159 +#: ../examples/guestfs-testing.pod:173 #, no-wrap msgid "" " virt-filesystems -a /path/to/disk.img --all --long -h\n" @@ -7596,7 +7763,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:163 +#: ../examples/guestfs-testing.pod:177 #, no-wrap msgid "" " virt-filesystems -d Guest --all --long -h\n" @@ -7604,24 +7771,24 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:165 +#: ../examples/guestfs-testing.pod:179 msgid "Do the results match what is seen in the guest?" msgstr "" #. type: =head2 -#: ../examples/guestfs-testing.pod:167 +#: ../examples/guestfs-testing.pod:181 msgid "Run virt-inspector on all your guests." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:169 +#: ../examples/guestfs-testing.pod:183 msgid "" "Use L<virt-inspector(1)> to get a report on all of your guests or disk " "images:" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:172 +#: ../examples/guestfs-testing.pod:186 #, no-wrap msgid "" " virt-inspector -a /path/to/disk.img | less\n" @@ -7629,7 +7796,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:176 +#: ../examples/guestfs-testing.pod:190 #, no-wrap msgid "" " virt-inspector -d Guest | less\n" @@ -7637,17 +7804,17 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:178 +#: ../examples/guestfs-testing.pod:192 msgid "Do the results match what is actually in the guest?" msgstr "" #. type: =head2 -#: ../examples/guestfs-testing.pod:180 +#: ../examples/guestfs-testing.pod:194 msgid "Try the auditing features of virt-ls on all your guests." msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:184 +#: ../examples/guestfs-testing.pod:198 #, no-wrap msgid "" " virt-ls -lR -d Guest / | grep '^- [42]'\n" @@ -7655,7 +7822,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:188 +#: ../examples/guestfs-testing.pod:202 #, no-wrap msgid "" " virt-ls -lR -d Guest / | grep '^d ...7'\n" @@ -7663,7 +7830,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:192 +#: ../examples/guestfs-testing.pod:206 #, no-wrap msgid "" " virt-ls -lR -d Guest / | grep '^s'\n" @@ -7671,7 +7838,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:196 +#: ../examples/guestfs-testing.pod:210 #, no-wrap msgid "" " virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n" @@ -7679,12 +7846,12 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:198 +#: ../examples/guestfs-testing.pod:212 msgid "Display files larger than 10MB in home directories:" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:200 +#: ../examples/guestfs-testing.pod:214 #, no-wrap msgid "" " virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n" @@ -7692,7 +7859,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:204 +#: ../examples/guestfs-testing.pod:218 #, no-wrap msgid "" " virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n" @@ -7700,7 +7867,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:208 +#: ../examples/guestfs-testing.pod:222 #, no-wrap msgid "" " virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n" @@ -7708,24 +7875,24 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:210 +#: ../examples/guestfs-testing.pod:224 msgid "Do the results match what is in the guest?" msgstr "" #. type: =head2 -#: ../examples/guestfs-testing.pod:212 +#: ../examples/guestfs-testing.pod:226 msgid "Create a disk image from a tarball." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:214 +#: ../examples/guestfs-testing.pod:228 msgid "" "Use L<virt-make-fs(1)> to create a disk image from any tarball that you " "happen to have:" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:217 +#: ../examples/guestfs-testing.pod:231 #, no-wrap msgid "" " virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n" @@ -7733,7 +7900,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:219 +#: ../examples/guestfs-testing.pod:233 msgid "" "Add 'output.img' as a raw disk to an existing guest. Check the guest can " "see the files. This test is particularly useful if you try it with a " @@ -7741,29 +7908,29 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:223 +#: ../examples/guestfs-testing.pod:237 msgid "Try other partitioning schemes, eg. I<--partition=gpt>." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:225 +#: ../examples/guestfs-testing.pod:239 msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>." msgstr "" #. type: =head2 -#: ../examples/guestfs-testing.pod:227 +#: ../examples/guestfs-testing.pod:241 msgid "B<*> Run virt-rescue on a B<shut off> disk image or guest." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:229 +#: ../examples/guestfs-testing.pod:243 msgid "" "Use L<virt-rescue(1)> to examine, rescue or repair a B<shut off> guest or " "disk image:" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:232 +#: ../examples/guestfs-testing.pod:246 #, no-wrap msgid "" " virt-rescue -a /path/to/disk.img\n" @@ -7771,7 +7938,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:236 +#: ../examples/guestfs-testing.pod:250 #, no-wrap msgid "" " virt-rescue -d Guest\n" @@ -7779,24 +7946,24 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:238 +#: ../examples/guestfs-testing.pod:252 msgid "Can you use ordinary shell commands to examine the guest?" msgstr "" #. type: =head2 -#: ../examples/guestfs-testing.pod:240 +#: ../examples/guestfs-testing.pod:254 msgid "B<*> Resize your guests." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:242 +#: ../examples/guestfs-testing.pod:256 msgid "" "Use L<virt-resize(1)> to give a guest some more disk space. For example, if " "you have a disk image that is smaller than 30G, increase it to 30G by doing:" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:246 +#: ../examples/guestfs-testing.pod:260 #, no-wrap msgid "" " truncate -s 30G newdisk.img\n" @@ -7807,22 +7974,22 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:251 +#: ../examples/guestfs-testing.pod:265 msgid "Does the guest still boot? Try expanding other partitions." msgstr "" #. type: =head2 -#: ../examples/guestfs-testing.pod:253 +#: ../examples/guestfs-testing.pod:267 msgid "B<*> Sparsify a guest disk." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:255 +#: ../examples/guestfs-testing.pod:269 msgid "Using L<virt-sparsify(1)>, make a disk image more sparse:" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:257 +#: ../examples/guestfs-testing.pod:271 #, no-wrap msgid "" " virt-sparsify /path/to/olddisk.img newdisk.img\n" @@ -7830,26 +7997,26 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:259 +#: ../examples/guestfs-testing.pod:273 msgid "" "Is C<newdisk.img> still bootable after sparsifying? Is the resulting disk " "image smaller (use C<du> to check)?" msgstr "" #. type: =head2 -#: ../examples/guestfs-testing.pod:262 +#: ../examples/guestfs-testing.pod:276 msgid "B<*> \"sysprep\" a B<shut off> Linux guest." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:264 +#: ../examples/guestfs-testing.pod:278 msgid "" "Note that this really will mess up an existing guest, so it's better to " "clone the guest before trying this." msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:267 +#: ../examples/guestfs-testing.pod:281 #, no-wrap msgid "" " virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n" @@ -7857,26 +8024,26 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:269 +#: ../examples/guestfs-testing.pod:283 msgid "" "Was the sysprep successful? After booting, what changes were made and were " "they successful?" msgstr "" #. type: =head2 -#: ../examples/guestfs-testing.pod:272 +#: ../examples/guestfs-testing.pod:286 msgid "Dump the Windows Registry from your Windows guests." msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:274 +#: ../examples/guestfs-testing.pod:288 msgid "" "Use L<virt-win-reg(1)> to dump out the Windows Registry from any Windows " "guests that you have." msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:277 +#: ../examples/guestfs-testing.pod:291 #, no-wrap msgid "" " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n" @@ -7885,7 +8052,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:280 +#: ../examples/guestfs-testing.pod:294 #, no-wrap msgid "" " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n" @@ -7894,19 +8061,19 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:283 +#: ../examples/guestfs-testing.pod:297 msgid "Does the output match running C<regedit> inside the guest?" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:285 +#: ../examples/guestfs-testing.pod:299 msgid "" "A recent feature is the ability to dump user registries, so try this, " "replacing I<username> with the name of a local user in the guest:" msgstr "" #. type: verbatim -#: ../examples/guestfs-testing.pod:288 +#: ../examples/guestfs-testing.pod:302 #, no-wrap msgid "" " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' " @@ -7916,7 +8083,7 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-testing.pod:293 +#: ../examples/guestfs-testing.pod:307 msgid "" "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, " "L<http://libguestfs.org/>." @@ -8196,7 +8363,7 @@ msgid "" msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:143 ../src/guestfs-actions.pod:208 ../src/guestfs.pod:3235 +#: ../fish/guestfish-actions.pod:143 ../src/guestfs-actions.pod:208 ../src/guestfs.pod:3237 msgid "C<format>" msgstr "" @@ -11127,7 +11294,7 @@ msgid "You must call L</launch> before using this command." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1557 ../src/guestfs-actions.pod:2565 ../src/guestfs.pod:1811 +#: ../fish/guestfish-actions.pod:1557 ../src/guestfs-actions.pod:2565 ../src/guestfs.pod:1813 msgid "" "This is mainly useful as a negative test. If this returns true, it doesn't " "mean that a particular filesystem can be mounted, since filesystems can fail " @@ -19263,7 +19430,7 @@ msgid "Possible attach methods are:" msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:5367 ../src/guestfs-actions.pod:8654 ../src/guestfs.pod:3199 +#: ../fish/guestfish-actions.pod:5367 ../src/guestfs-actions.pod:8654 ../src/guestfs.pod:3201 msgid "C<appliance>" msgstr "" @@ -23496,7 +23663,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../fish/guestfish.pod:135 ../src/guestfs.pod:2522 +#: ../fish/guestfish.pod:135 ../src/guestfs.pod:2524 #, no-wrap msgid "" " guestfish -N fs\n" @@ -25003,7 +25170,7 @@ msgid "" msgstr "" #. type: =head2 -#: ../fish/guestfish.pod:841 ../src/guestfs.pod:523 +#: ../fish/guestfish.pod:841 ../src/guestfs.pod:525 msgid "ENCRYPTED DISKS" msgstr "" @@ -25645,7 +25812,7 @@ msgid "COMMANDS" msgstr "" #. type: textblock -#: ../fish/guestfish.pod:1128 ../src/guestfs.pod:1789 +#: ../fish/guestfish.pod:1128 ../src/guestfs.pod:1791 msgid "@ACTIONS@" msgstr "" @@ -25669,17 +25836,17 @@ msgid "" msgstr "" #. type: =item -#: ../fish/guestfish.pod:1144 ../src/guestfs.pod:3521 +#: ../fish/guestfish.pod:1144 ../src/guestfs.pod:3518 msgid "FEBOOTSTRAP_KERNEL" msgstr "" #. type: =item -#: ../fish/guestfish.pod:1146 ../src/guestfs.pod:3523 +#: ../fish/guestfish.pod:1146 ../src/guestfs.pod:3520 msgid "FEBOOTSTRAP_MODULES" msgstr "" #. type: textblock -#: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3525 +#: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3522 msgid "" "These two environment variables allow the kernel that libguestfs uses in the " "appliance to be selected. If C<$FEBOOTSTRAP_KERNEL> is not set, then the " @@ -25737,17 +25904,17 @@ msgid "" msgstr "" #. type: =item -#: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3531 +#: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3528 msgid "LIBGUESTFS_APPEND" msgstr "" #. type: textblock -#: ../fish/guestfish.pod:1178 ../src/guestfs.pod:3533 +#: ../fish/guestfish.pod:1178 ../src/guestfs.pod:3530 msgid "Pass additional options to the guest kernel." msgstr "" #. type: =item -#: ../fish/guestfish.pod:1180 ../src/guestfs.pod:3535 +#: ../fish/guestfish.pod:1180 ../src/guestfs.pod:3532 msgid "LIBGUESTFS_ATTACH_METHOD" msgstr "" @@ -25759,7 +25926,7 @@ msgid "" msgstr "" #. type: =item -#: ../fish/guestfish.pod:1185 ../src/guestfs.pod:3540 +#: ../fish/guestfish.pod:1185 ../src/guestfs.pod:3537 msgid "LIBGUESTFS_DEBUG" msgstr "" @@ -25771,17 +25938,17 @@ msgid "" msgstr "" #. type: =item -#: ../fish/guestfish.pod:1190 ../src/guestfs.pod:3545 +#: ../fish/guestfish.pod:1190 ../src/guestfs.pod:3542 msgid "LIBGUESTFS_MEMSIZE" msgstr "" #. type: textblock -#: ../fish/guestfish.pod:1192 ../src/guestfs.pod:3547 +#: ../fish/guestfish.pod:1192 ../src/guestfs.pod:3544 msgid "Set the memory allocated to the qemu process, in megabytes. For example:" msgstr "" #. type: verbatim -#: ../fish/guestfish.pod:1195 ../src/guestfs.pod:3550 +#: ../fish/guestfish.pod:1195 ../src/guestfs.pod:3547 #, no-wrap msgid "" " LIBGUESTFS_MEMSIZE=700\n" @@ -25789,7 +25956,7 @@ msgid "" msgstr "" #. type: =item -#: ../fish/guestfish.pod:1197 ../src/guestfs.pod:3552 +#: ../fish/guestfish.pod:1197 ../src/guestfs.pod:3549 msgid "LIBGUESTFS_PATH" msgstr "" @@ -25801,19 +25968,19 @@ msgid "" msgstr "" #. type: =item -#: ../fish/guestfish.pod:1202 ../src/guestfs.pod:3557 +#: ../fish/guestfish.pod:1202 ../src/guestfs.pod:3554 msgid "LIBGUESTFS_QEMU" msgstr "" #. type: textblock -#: ../fish/guestfish.pod:1204 ../src/guestfs.pod:3559 +#: ../fish/guestfish.pod:1204 ../src/guestfs.pod:3556 msgid "" "Set the default qemu binary that libguestfs uses. If not set, then the qemu " "which was found at compile time by the configure script is used." msgstr "" #. type: =item -#: ../fish/guestfish.pod:1208 ../src/guestfs.pod:3565 +#: ../fish/guestfish.pod:1208 ../src/guestfs.pod:3562 msgid "LIBGUESTFS_TRACE" msgstr "" @@ -25835,19 +26002,19 @@ msgid "" msgstr "" #. type: =item -#: ../fish/guestfish.pod:1217 ../sparsify/virt-sparsify.pod:276 ../src/guestfs.pod:3570 +#: ../fish/guestfish.pod:1217 ../sparsify/virt-sparsify.pod:276 ../src/guestfs.pod:3567 msgid "TMPDIR" msgstr "" #. type: textblock -#: ../fish/guestfish.pod:1219 ../src/guestfs.pod:3572 +#: ../fish/guestfish.pod:1219 ../src/guestfs.pod:3569 msgid "" "Location of temporary directory, defaults to C</tmp> except for the cached " "supermin appliance which defaults to C</var/tmp>." msgstr "" #. type: textblock -#: ../fish/guestfish.pod:1222 ../src/guestfs.pod:3575 +#: ../fish/guestfish.pod:1222 ../src/guestfs.pod:3572 msgid "" "If libguestfs was compiled to use the supermin appliance then the real " "appliance is cached in this directory, shared between all handles belonging " @@ -47518,6 +47685,11 @@ msgstr "" #. type: textblock #: ../src/guestfs.pod:41 +msgid "For tips and recipes, see L<guestfs-recipes(1)>." +msgstr "" + +#. type: textblock +#: ../src/guestfs.pod:43 msgid "" "If you are having performance problems, read L<guestfs-performance(1)>. To " "help test libguestfs, read L<libguestfs-test-tool(1)> and " @@ -47525,12 +47697,12 @@ msgid "" msgstr "" #. type: =head1 -#: ../src/guestfs.pod:45 +#: ../src/guestfs.pod:47 msgid "API OVERVIEW" msgstr "" #. type: textblock -#: ../src/guestfs.pod:47 +#: ../src/guestfs.pod:49 msgid "" "This section provides a gentler overview of the libguestfs API. We also try " "to group API calls together, where that may not be obvious from reading " @@ -47538,12 +47710,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:52 +#: ../src/guestfs.pod:54 msgid "HANDLES" msgstr "" #. type: textblock -#: ../src/guestfs.pod:54 +#: ../src/guestfs.pod:56 msgid "" "Before you can use libguestfs calls, you have to create a handle. Then you " "must add at least one disk image to the handle, followed by launching the " @@ -47553,12 +47725,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:61 +#: ../src/guestfs.pod:63 msgid "The general structure of all libguestfs-using programs looks like this:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:64 +#: ../src/guestfs.pod:66 #, no-wrap msgid "" " guestfs_h *g = guestfs_create ();\n" @@ -47566,7 +47738,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:66 +#: ../src/guestfs.pod:68 #, no-wrap msgid "" " /* Call guestfs_add_drive additional times if there are\n" @@ -47577,7 +47749,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:71 +#: ../src/guestfs.pod:73 #, no-wrap msgid "" " /* Most manipulation calls won't work until you've launched\n" @@ -47589,7 +47761,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:77 +#: ../src/guestfs.pod:79 #, no-wrap msgid "" " /* Now you can examine what partitions, LVs etc are available.\n" @@ -47600,7 +47772,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:82 +#: ../src/guestfs.pod:84 #, no-wrap msgid "" " /* To access a filesystem in the image, you must mount it.\n" @@ -47610,7 +47782,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:86 +#: ../src/guestfs.pod:88 #, no-wrap msgid "" " /* Now you can perform filesystem actions on the guest\n" @@ -47621,7 +47793,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:91 +#: ../src/guestfs.pod:93 #, no-wrap msgid "" " /* Synchronize the disk. This is the opposite of guestfs_launch. */\n" @@ -47630,7 +47802,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:94 +#: ../src/guestfs.pod:96 #, no-wrap msgid "" " /* Close and free the handle 'g'. */\n" @@ -47639,7 +47811,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:97 +#: ../src/guestfs.pod:99 msgid "" "The code above doesn't include any error checking. In real code you should " "check return values carefully for errors. In general all functions that " @@ -47651,12 +47823,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:106 +#: ../src/guestfs.pod:108 msgid "DISK IMAGES" msgstr "" #. type: textblock -#: ../src/guestfs.pod:108 +#: ../src/guestfs.pod:110 msgid "" "The image filename (C<\"guest.img\"> in the example above) could be a disk " "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an " @@ -47666,7 +47838,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:114 +#: ../src/guestfs.pod:116 msgid "" "The call you should use in modern code for adding drives is " "L</guestfs_add_drive_opts>. To add a disk image, allowing writes, and " @@ -47674,7 +47846,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:118 +#: ../src/guestfs.pod:120 #, no-wrap msgid "" " guestfs_add_drive_opts (g, filename,\n" @@ -47684,12 +47856,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:122 +#: ../src/guestfs.pod:124 msgid "You can add a disk read-only using:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:124 +#: ../src/guestfs.pod:126 #, no-wrap msgid "" " guestfs_add_drive_opts (g, filename,\n" @@ -47700,14 +47872,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:129 +#: ../src/guestfs.pod:131 msgid "" "or by calling the older function L</guestfs_add_drive_ro>. In either case " "libguestfs won't modify the file. (See also L</DISK IMAGE FORMATS> below)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:133 +#: ../src/guestfs.pod:135 msgid "" "Be extremely cautious if the disk image is in use, eg. if it is being used " "by a virtual machine. Adding it read-write will almost certainly cause disk " @@ -47715,7 +47887,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:137 +#: ../src/guestfs.pod:139 msgid "" "You must add at least one disk image, and you may add multiple disk images. " "In the API, the disk images are usually referred to as C</dev/sda> (for the " @@ -47723,7 +47895,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:142 +#: ../src/guestfs.pod:144 msgid "" "Once L</guestfs_launch> has been called you cannot add any more images. You " "can call L</guestfs_list_devices> to get a list of the device names, in the " @@ -47731,12 +47903,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:147 +#: ../src/guestfs.pod:149 msgid "MOUNTING" msgstr "" #. type: textblock -#: ../src/guestfs.pod:149 +#: ../src/guestfs.pod:151 msgid "" "Before you can read or write files, create directories and so on in a disk " "image that contains filesystems, you have to mount those filesystems using " @@ -47746,7 +47918,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:156 +#: ../src/guestfs.pod:158 #, no-wrap msgid "" " guestfs_mount (g, \"/dev/sda1\", \"/\");\n" @@ -47754,7 +47926,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:158 +#: ../src/guestfs.pod:160 msgid "" "where C</dev/sda1> means literally the first partition (C<1>) of the first " "disk image that we added (C</dev/sda>). If the disk contains Linux LVM2 " @@ -47764,7 +47936,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:164 +#: ../src/guestfs.pod:166 msgid "" "If you are given a disk image and you don't know what it contains then you " "have to find out. Libguestfs can do that too: use " @@ -47775,7 +47947,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:172 +#: ../src/guestfs.pod:174 msgid "" "Libguestfs also has a set of APIs for inspection of unknown disk images (see " "L</INSPECTION> below). But you might find it easier to look at higher level " @@ -47783,19 +47955,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:177 +#: ../src/guestfs.pod:179 msgid "" "To mount a filesystem read-only, use L</guestfs_mount_ro>. There are " "several other variations of the C<guestfs_mount_*> call." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:180 +#: ../src/guestfs.pod:182 msgid "FILESYSTEM ACCESS AND MODIFICATION" msgstr "" #. type: textblock -#: ../src/guestfs.pod:182 +#: ../src/guestfs.pod:184 msgid "" "The majority of the libguestfs API consists of fairly low-level calls for " "accessing and modifying the files, directories, symlinks etc on mounted " @@ -47805,21 +47977,21 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:188 +#: ../src/guestfs.pod:190 msgid "" "Specify filenames as full paths, starting with C<\"/\"> and including the " "mount point." msgstr "" #. type: textblock -#: ../src/guestfs.pod:191 +#: ../src/guestfs.pod:193 msgid "" "For example, if you mounted a filesystem at C<\"/\"> and you want to read " "the file called C<\"etc/passwd\"> then you could do:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:194 +#: ../src/guestfs.pod:196 #, no-wrap msgid "" " char *data = guestfs_cat (g, \"/etc/passwd\");\n" @@ -47827,7 +47999,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:196 +#: ../src/guestfs.pod:198 msgid "" "This would return C<data> as a newly allocated buffer containing the full " "content of that file (with some conditions: see also L</DOWNLOADING> below), " @@ -47835,14 +48007,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:200 +#: ../src/guestfs.pod:202 msgid "" "As another example, to create a top-level directory on that filesystem " "called C<\"var\"> you would do:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:203 +#: ../src/guestfs.pod:205 #, no-wrap msgid "" " guestfs_mkdir (g, \"/var\");\n" @@ -47850,12 +48022,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:205 +#: ../src/guestfs.pod:207 msgid "To create a symlink you could do:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:207 +#: ../src/guestfs.pod:209 #, no-wrap msgid "" " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n" @@ -47864,14 +48036,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:210 +#: ../src/guestfs.pod:212 msgid "" "Libguestfs will reject attempts to use relative paths and there is no " "concept of a current working directory." msgstr "" #. type: textblock -#: ../src/guestfs.pod:213 +#: ../src/guestfs.pod:215 msgid "" "Libguestfs can return errors in many situations: for example if the " "filesystem isn't writable, or if a file or directory that you requested " @@ -47881,40 +48053,40 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:219 +#: ../src/guestfs.pod:221 msgid "" "File writes are affected by the per-handle umask, set by calling " "L</guestfs_umask> and defaulting to 022. See L</UMASK>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:222 +#: ../src/guestfs.pod:224 msgid "" "Since libguestfs 1.18, it is possible to mount the libguestfs filesystem on " "a local directory, subject to some restrictions. See L</MOUNT LOCAL> below." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:226 +#: ../src/guestfs.pod:228 msgid "PARTITIONING" msgstr "" #. type: textblock -#: ../src/guestfs.pod:228 +#: ../src/guestfs.pod:230 msgid "" "Libguestfs contains API calls to read, create and modify partition tables on " "disk images." msgstr "" #. type: textblock -#: ../src/guestfs.pod:231 +#: ../src/guestfs.pod:233 msgid "" "In the common case where you want to create a single partition covering the " "whole disk, you should use the L</guestfs_part_disk> call:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:235 +#: ../src/guestfs.pod:237 #, no-wrap msgid "" " const char *parttype = \"mbr\";\n" @@ -47925,19 +48097,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:240 +#: ../src/guestfs.pod:242 msgid "" "Obviously this effectively wipes anything that was on that disk image " "before." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:243 +#: ../src/guestfs.pod:245 msgid "LVM2" msgstr "" #. type: textblock -#: ../src/guestfs.pod:245 +#: ../src/guestfs.pod:247 msgid "" "Libguestfs provides access to a large part of the LVM2 API, such as " "L</guestfs_lvcreate> and L</guestfs_vgremove>. It won't make much sense " @@ -47946,19 +48118,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:250 +#: ../src/guestfs.pod:252 msgid "" "This author strongly recommends reading the LVM HOWTO, online at " "L<http://tldp.org/HOWTO/LVM-HOWTO/>." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:253 +#: ../src/guestfs.pod:255 msgid "DOWNLOADING" msgstr "" #. type: textblock -#: ../src/guestfs.pod:255 +#: ../src/guestfs.pod:257 msgid "" "Use L</guestfs_cat> to download small, text only files. This call cannot " "handle files contain any ASCII NUL (C<\\0>) characters. However the API is " @@ -47966,38 +48138,38 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:259 +#: ../src/guestfs.pod:261 msgid "" "L</guestfs_read_file> can be used to read files which contain arbitrary 8 " "bit data, since it returns a (pointer, size) pair." msgstr "" #. type: textblock -#: ../src/guestfs.pod:262 +#: ../src/guestfs.pod:264 msgid "" "L</guestfs_download> can be used to download any file, with no limits on " "content or size." msgstr "" #. type: textblock -#: ../src/guestfs.pod:265 +#: ../src/guestfs.pod:267 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:268 +#: ../src/guestfs.pod:270 msgid "UPLOADING" msgstr "" #. type: textblock -#: ../src/guestfs.pod:270 +#: ../src/guestfs.pod:272 msgid "" "It's often the case that you want to write a file or files to the disk " "image." msgstr "" #. type: textblock -#: ../src/guestfs.pod:273 +#: ../src/guestfs.pod:275 msgid "" "To write a small file with fixed content, use L</guestfs_write>. To create " "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or " @@ -48007,19 +48179,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:279 +#: ../src/guestfs.pod:281 msgid "" "To upload a single file, use L</guestfs_upload>. This call has no limits on " "file content or size." msgstr "" #. type: textblock -#: ../src/guestfs.pod:282 +#: ../src/guestfs.pod:284 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:284 +#: ../src/guestfs.pod:286 msgid "" "However the fastest way to upload I<large numbers of arbitrary files> is to " "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and " @@ -48033,12 +48205,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:295 +#: ../src/guestfs.pod:297 msgid "COPYING" msgstr "" #. type: textblock -#: ../src/guestfs.pod:297 +#: ../src/guestfs.pod:299 msgid "" "There are various different commands for copying between files and devices " "and in and out of the guest filesystem. These are summarised in the table " @@ -48046,51 +48218,51 @@ msgid "" msgstr "" #. type: =item -#: ../src/guestfs.pod:303 +#: ../src/guestfs.pod:305 msgid "B<file> to B<file>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:305 +#: ../src/guestfs.pod:307 msgid "" "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy " "directories recursively." msgstr "" #. type: textblock -#: ../src/guestfs.pod:308 +#: ../src/guestfs.pod:310 msgid "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>." msgstr "" #. type: =item -#: ../src/guestfs.pod:311 +#: ../src/guestfs.pod:313 msgid "B<file> to B<device>" msgstr "" #. type: =item -#: ../src/guestfs.pod:313 +#: ../src/guestfs.pod:315 msgid "B<device> to B<file>" msgstr "" #. type: =item -#: ../src/guestfs.pod:315 +#: ../src/guestfs.pod:317 msgid "B<device> to B<device>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:317 +#: ../src/guestfs.pod:319 msgid "" "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or " "L</guestfs_copy_device_to_device>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:320 +#: ../src/guestfs.pod:322 msgid "Example: duplicate the contents of an LV:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:322 +#: ../src/guestfs.pod:324 #, no-wrap msgid "" " guestfs_copy_device_to_device (g,\n" @@ -48101,7 +48273,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:327 +#: ../src/guestfs.pod:329 msgid "" "The destination (C</dev/VG/Copy>) must be at least as large as the source " "(C</dev/VG/Original>). To copy less than the whole source device, use the " @@ -48109,7 +48281,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:331 +#: ../src/guestfs.pod:333 #, no-wrap msgid "" " guestfs_copy_device_to_device (g,\n" @@ -48120,32 +48292,32 @@ msgid "" msgstr "" #. type: =item -#: ../src/guestfs.pod:336 +#: ../src/guestfs.pod:338 msgid "B<file on the host> to B<file or device>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:338 +#: ../src/guestfs.pod:340 msgid "Use L</guestfs_upload>. See L</UPLOADING> above." msgstr "" #. type: =item -#: ../src/guestfs.pod:340 +#: ../src/guestfs.pod:342 msgid "B<file or device> to B<file on the host>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:342 +#: ../src/guestfs.pod:344 msgid "Use L</guestfs_download>. See L</DOWNLOADING> above." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:346 +#: ../src/guestfs.pod:348 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:348 +#: ../src/guestfs.pod:350 msgid "" "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, " "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it " @@ -48156,12 +48328,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:356 +#: ../src/guestfs.pod:358 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:359 +#: ../src/guestfs.pod:361 #, no-wrap msgid "" " guestfs_download (g, filename, \"/dev/stdout\");\n" @@ -48169,12 +48341,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:361 +#: ../src/guestfs.pod:363 msgid "and you can write tar output to a file descriptor C<fd> by doing:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:363 +#: ../src/guestfs.pod:365 #, no-wrap msgid "" " char devfd[64];\n" @@ -48184,26 +48356,26 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:367 +#: ../src/guestfs.pod:369 msgid "LISTING FILES" msgstr "" #. type: textblock -#: ../src/guestfs.pod:369 +#: ../src/guestfs.pod:371 msgid "" "L</guestfs_ll> is just designed for humans to read (mainly when using the " "L<guestfish(1)>-equivalent command C<ll>)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:372 +#: ../src/guestfs.pod:374 msgid "" "L</guestfs_ls> is a quick way to get a list of files in a directory from " "programs, as a flat list of strings." msgstr "" #. type: textblock -#: ../src/guestfs.pod:375 +#: ../src/guestfs.pod:377 msgid "" "L</guestfs_readdir> is a programmatic way to get a list of files in a " "directory, plus additional information about each one. It is more " @@ -48211,19 +48383,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:379 +#: ../src/guestfs.pod:381 msgid "" "L</guestfs_find> and L</guestfs_find0> can be used to recursively list " "files." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:382 +#: ../src/guestfs.pod:384 msgid "RUNNING COMMANDS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:384 +#: ../src/guestfs.pod:386 msgid "" "Although libguestfs is primarily an API for manipulating files inside guest " "images, we also provide some limited facilities for running commands inside " @@ -48231,55 +48403,55 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:388 +#: ../src/guestfs.pod:390 msgid "There are many limitations to this:" msgstr "" #. type: textblock -#: ../src/guestfs.pod:394 +#: ../src/guestfs.pod:396 msgid "" "The kernel version that the command runs under will be different from what " "it expects." msgstr "" #. type: textblock -#: ../src/guestfs.pod:399 +#: ../src/guestfs.pod:401 msgid "" "If the command needs to communicate with daemons, then most likely they " "won't be running." msgstr "" #. type: textblock -#: ../src/guestfs.pod:404 +#: ../src/guestfs.pod:406 msgid "The command will be running in limited memory." msgstr "" #. type: textblock -#: ../src/guestfs.pod:408 +#: ../src/guestfs.pod:410 msgid "" "The network may not be available unless you enable it (see " "L</guestfs_set_network>)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:413 +#: ../src/guestfs.pod:415 msgid "Only supports Linux guests (not Windows, BSD, etc)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:417 +#: ../src/guestfs.pod:419 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:422 +#: ../src/guestfs.pod:424 msgid "" "For SELinux guests, you may need to enable SELinux and load policy first. " "See L</SELINUX> in this manpage." msgstr "" #. type: textblock -#: ../src/guestfs.pod:427 +#: ../src/guestfs.pod:429 msgid "" "I<Security:> It is not safe to run commands from untrusted, possibly " "malicious guests. These commands may attempt to exploit your program by " @@ -48291,7 +48463,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:436 +#: ../src/guestfs.pod:438 msgid "" "A secure alternative is to use libguestfs to install a \"firstboot\" script " "(a script which runs when the guest next boots normally), and to have this " @@ -48301,26 +48473,26 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:444 +#: ../src/guestfs.pod:446 msgid "" "The two main API calls to run commands are L</guestfs_command> and " "L</guestfs_sh> (there are also variations)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:447 +#: ../src/guestfs.pod:449 msgid "" "The difference is that L</guestfs_sh> runs commands using the shell, so any " "shell globs, redirections, etc will work." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:450 +#: ../src/guestfs.pod:452 msgid "CONFIGURATION FILES" msgstr "" #. type: textblock -#: ../src/guestfs.pod:452 +#: ../src/guestfs.pod:454 msgid "" "To read and write configuration files in Linux guest filesystems, we " "strongly recommend using Augeas. For example, Augeas understands how to " @@ -48329,7 +48501,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:457 +#: ../src/guestfs.pod:459 msgid "" "The main Augeas calls are bound through the C<guestfs_aug_*> APIs. We don't " "document Augeas itself here because there is excellent documentation on the " @@ -48337,7 +48509,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:461 +#: ../src/guestfs.pod:463 msgid "" "If you don't want to use Augeas (you fool!) then try calling " "L</guestfs_read_lines> to get the file as a list of lines which you can " @@ -48345,24 +48517,24 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:465 +#: ../src/guestfs.pod:467 msgid "SELINUX" msgstr "" #. type: textblock -#: ../src/guestfs.pod:467 +#: ../src/guestfs.pod:469 msgid "" "We support SELinux guests. To ensure that labeling happens correctly in " "SELinux guests, you need to enable SELinux and load the guest's policy:" msgstr "" #. type: textblock -#: ../src/guestfs.pod:475 +#: ../src/guestfs.pod:477 msgid "Before launching, do:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:477 +#: ../src/guestfs.pod:479 #, no-wrap msgid "" " guestfs_set_selinux (g, 1);\n" @@ -48370,14 +48542,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:481 +#: ../src/guestfs.pod:483 msgid "" "After mounting the guest's filesystem(s), load the policy. This is best " "done by running the L<load_policy(8)> command in the guest itself:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:485 +#: ../src/guestfs.pod:487 #, no-wrap msgid "" " guestfs_sh (g, \"/usr/sbin/load_policy\");\n" @@ -48385,21 +48557,21 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:487 +#: ../src/guestfs.pod:489 msgid "" "(Older versions of C<load_policy> require you to specify the name of the " "policy file)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:492 +#: ../src/guestfs.pod:494 msgid "" "Optionally, set the security context for the API. The correct security " "context to use can only be known by inspecting the guest. As an example:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:496 +#: ../src/guestfs.pod:498 #, no-wrap msgid "" " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n" @@ -48407,24 +48579,24 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:500 +#: ../src/guestfs.pod:502 msgid "This will work for running commands and editing existing files." msgstr "" #. type: textblock -#: ../src/guestfs.pod:502 +#: ../src/guestfs.pod:504 msgid "" "When new files are created, you may need to label them explicitly, for " "example by running the external command C<restorecon pathname>." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:506 +#: ../src/guestfs.pod:508 msgid "UMASK" msgstr "" #. type: textblock -#: ../src/guestfs.pod:508 +#: ../src/guestfs.pod:510 msgid "" "Certain calls are affected by the current file mode creation mask (the " "\"umask\"). In particular ones which create files or directories, such as " @@ -48434,14 +48606,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:514 +#: ../src/guestfs.pod:516 msgid "" "The default umask is C<022>, so files are created with modes such as C<0644> " "and directories with C<0755>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:517 +#: ../src/guestfs.pod:519 msgid "" "There are two ways to avoid being affected by umask. Either set umask to 0 " "(call C<guestfs_umask (g, 0)> early after launching). Or call " @@ -48449,12 +48621,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:521 +#: ../src/guestfs.pod:523 msgid "For more information about umask, see L<umask(2)>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:525 +#: ../src/guestfs.pod:527 msgid "" "Libguestfs allows you to access Linux guests which have been encrypted using " "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) " @@ -48463,21 +48635,21 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:531 +#: ../src/guestfs.pod:533 msgid "" "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it " "returns the string C<crypto_LUKS>)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:534 +#: ../src/guestfs.pod:536 msgid "" "Then open these devices by calling L</guestfs_luks_open>. Obviously you " "will require the passphrase!" msgstr "" #. type: textblock -#: ../src/guestfs.pod:537 +#: ../src/guestfs.pod:539 msgid "" "Opening a LUKS device creates a new device mapper device called " "C</dev/mapper/mapname> (where C<mapname> is the string you supply to " @@ -48486,7 +48658,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:543 +#: ../src/guestfs.pod:545 msgid "" "LVM volume groups on the device can be made visible by calling " "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>. The logical " @@ -48494,7 +48666,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:547 +#: ../src/guestfs.pod:549 msgid "" "Use the reverse process to close a LUKS device. Unmount any logical volumes " "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, " @@ -48504,19 +48676,19 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:554 +#: ../src/guestfs.pod:556 msgid "MOUNT LOCAL" msgstr "" #. type: textblock -#: ../src/guestfs.pod:556 +#: ../src/guestfs.pod:558 msgid "" "In libguestfs E<ge> 1.18, it is possible to mount the libguestfs filesystem " "on a local directory and access it using ordinary POSIX calls and programs." msgstr "" #. type: textblock -#: ../src/guestfs.pod:560 +#: ../src/guestfs.pod:562 msgid "" "Availability of this is subject to a number of restrictions: it requires " "FUSE (the Filesystem in USErspace), and libfuse must also have been " @@ -48527,7 +48699,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:567 +#: ../src/guestfs.pod:569 msgid "" "The call to mount the libguestfs filesystem on a local directory is " "L</guestfs_mount_local> (q.v.) followed by L</guestfs_mount_local_run>. The " @@ -48540,7 +48712,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:577 +#: ../src/guestfs.pod:579 msgid "" "L</guestfs_mount_local> needs a certain amount of time to set up the " "mountpoint. The mountpoint is not ready to use until the call returns. At " @@ -48551,12 +48723,12 @@ msgid "" msgstr "" #. type: =head3 -#: ../src/guestfs.pod:585 +#: ../src/guestfs.pod:587 msgid "MOUNT LOCAL COMPATIBILITY" msgstr "" #. type: textblock -#: ../src/guestfs.pod:587 +#: ../src/guestfs.pod:589 msgid "" "Since local mounting was only added in libguestfs 1.18, and may not be " "available even in these builds, you should consider writing code so that it " @@ -48565,7 +48737,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:592 +#: ../src/guestfs.pod:594 msgid "" "If libguestfs was compiled without support for L</guestfs_mount_local> then " "calling it will return an error with errno set to C<ENOTSUP> (see " @@ -48573,12 +48745,12 @@ msgid "" msgstr "" #. type: =head3 -#: ../src/guestfs.pod:596 +#: ../src/guestfs.pod:598 msgid "MOUNT LOCAL PERFORMANCE" msgstr "" #. type: textblock -#: ../src/guestfs.pod:598 +#: ../src/guestfs.pod:600 msgid "" "Libguestfs on top of FUSE performs quite poorly. For best performance do " "not use it. Use ordinary libguestfs filesystem calls, upload, download " @@ -48586,12 +48758,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:602 +#: ../src/guestfs.pod:604 msgid "INSPECTION" msgstr "" #. type: textblock -#: ../src/guestfs.pod:604 +#: ../src/guestfs.pod:606 msgid "" "Libguestfs has APIs for inspecting an unknown disk image to find out if it " "contains operating systems, an install CD or a live CD. (These APIs used to " @@ -48601,14 +48773,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:611 +#: ../src/guestfs.pod:613 msgid "" "Add all disks belonging to the unknown virtual machine and call " "L</guestfs_launch> in the usual way." msgstr "" #. type: textblock -#: ../src/guestfs.pod:614 +#: ../src/guestfs.pod:616 msgid "" "Then call L</guestfs_inspect_os>. This function uses other libguestfs calls " "and certain heuristics, and returns a list of operating systems that were " @@ -48621,7 +48793,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:623 +#: ../src/guestfs.pod:625 msgid "" "For each root, you can then call various C<guestfs_inspect_get_*> functions " "to get additional details about that operating system. For example, call " @@ -48630,7 +48802,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:629 +#: ../src/guestfs.pod:631 msgid "" "Un*x-like and Linux-based operating systems usually consist of several " "filesystems which are mounted at boot time (for example, a separate boot " @@ -48641,7 +48813,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:636 +#: ../src/guestfs.pod:638 #, no-wrap msgid "" " /boot => /dev/sda1\n" @@ -48651,14 +48823,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:640 +#: ../src/guestfs.pod:642 msgid "" "The caller can then make calls to L</guestfs_mount> to mount the filesystems " "as suggested." msgstr "" #. type: textblock -#: ../src/guestfs.pod:643 +#: ../src/guestfs.pod:645 msgid "" "Be careful to mount filesystems in the right order (eg. C</> before " "C</usr>). Sorting the keys of the hash by length, shortest first, should " @@ -48666,7 +48838,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:647 +#: ../src/guestfs.pod:649 msgid "" "Inspection currently only works for some common operating systems. " "Contributors are welcome to send patches for other operating systems that we " @@ -48674,7 +48846,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:651 +#: ../src/guestfs.pod:653 msgid "" "Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> " "for more details. The L</guestfs_inspect_os> function just ignores any " @@ -48682,7 +48854,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:655 +#: ../src/guestfs.pod:657 msgid "" "A note on the implementation: The call L</guestfs_inspect_os> performs " "inspection and caches the results in the guest handle. Subsequent calls to " @@ -48695,19 +48867,19 @@ msgid "" msgstr "" #. type: =head3 -#: ../src/guestfs.pod:664 +#: ../src/guestfs.pod:666 msgid "INSPECTING INSTALL DISKS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:666 +#: ../src/guestfs.pod:668 msgid "" "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live " "CDs and more." msgstr "" #. type: textblock -#: ../src/guestfs.pod:669 +#: ../src/guestfs.pod:671 msgid "" "Call L</guestfs_inspect_get_format> to return the format of the operating " "system, which currently can be C<installed> (a regular operating system) or " @@ -48715,7 +48887,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:673 +#: ../src/guestfs.pod:675 msgid "" "Further information is available about the operating system that can be " "installed using the regular inspection APIs like " @@ -48724,7 +48896,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:678 +#: ../src/guestfs.pod:680 msgid "" "Some additional information specific to installer disks is also available " "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and " @@ -48732,24 +48904,24 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:683 +#: ../src/guestfs.pod:685 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:685 +#: ../src/guestfs.pod:687 msgid "" "Libguestfs can mount NTFS partitions. It does this using the " "L<http://www.ntfs-3g.org/> driver." msgstr "" #. type: =head3 -#: ../src/guestfs.pod:688 +#: ../src/guestfs.pod:690 msgid "DRIVE LETTERS AND PATHS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:690 +#: ../src/guestfs.pod:692 msgid "" "DOS and Windows still use drive letters, and the filesystems are always " "treated as case insensitive by Windows itself, and therefore you might find " @@ -48759,14 +48931,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:696 +#: ../src/guestfs.pod:698 msgid "" "Drive letter mappings can be found using inspection (see L</INSPECTION> and " "L</guestfs_inspect_get_drive_mappings>)" msgstr "" #. type: textblock -#: ../src/guestfs.pod:699 +#: ../src/guestfs.pod:701 msgid "" "Dealing with separator characters (backslash vs forward slash) is outside " "the scope of libguestfs, but usually a simple character replacement will " @@ -48774,33 +48946,33 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:703 +#: ../src/guestfs.pod:705 msgid "" "To resolve the case insensitivity of paths, call " "L</guestfs_case_sensitive_path>." msgstr "" #. type: =head3 -#: ../src/guestfs.pod:706 +#: ../src/guestfs.pod:708 msgid "LONG FILENAMES ON NTFS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:708 +#: ../src/guestfs.pod:710 msgid "" "NTFS supports filenames up to 255 characters long. \"Character\" means a 2 " "byte UTF-16 codepoint which can encode the most common Unicode codepoints." msgstr "" #. type: textblock -#: ../src/guestfs.pod:712 +#: ../src/guestfs.pod:714 msgid "" "Most Linux filesystems support filenames up to 255 I<bytes>. This means you " "may get an error:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:715 +#: ../src/guestfs.pod:717 #, no-wrap msgid "" " File name too long\n" @@ -48808,14 +48980,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:717 +#: ../src/guestfs.pod:719 msgid "" "when you copy a file from NTFS to a Linux filesystem if the name, when " "reencoded as UTF-8, would exceed 255 bytes in length." msgstr "" #. type: textblock -#: ../src/guestfs.pod:720 +#: ../src/guestfs.pod:722 msgid "" "This will most often happen when using non-ASCII names that are longer than " "~127 characters (eg. Greek, Cyrillic) or longer than ~85 characters (Asian " @@ -48823,7 +48995,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:724 +#: ../src/guestfs.pod:726 msgid "" "A workaround is not to try to store such long filenames on Linux native " "filesystems. Since the L<tar(1)> format can store unlimited length " @@ -48831,19 +49003,19 @@ msgid "" msgstr "" #. type: =head3 -#: ../src/guestfs.pod:728 +#: ../src/guestfs.pod:730 msgid "ACCESSING THE WINDOWS REGISTRY" msgstr "" #. type: textblock -#: ../src/guestfs.pod:730 +#: ../src/guestfs.pod:732 msgid "" "Libguestfs also provides some help for decoding Windows Registry \"hive\" " "files, through a separate C library called L<hivex(3)>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:733 +#: ../src/guestfs.pod:735 msgid "" "Before libguestfs 1.19.35 you had to download the hive file, operate on it " "locally using hivex, and upload it again. Since this version, we have " @@ -48853,17 +49025,17 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:739 +#: ../src/guestfs.pod:741 msgid "See also L<virt-win-reg(1)>." msgstr "" #. type: =head3 -#: ../src/guestfs.pod:741 +#: ../src/guestfs.pod:743 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:743 +#: ../src/guestfs.pod:745 msgid "" "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to " "provide something which looks like a Linux symlink. The way it tries to do " @@ -48871,12 +49043,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:747 +#: ../src/guestfs.pod:749 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:749 +#: ../src/guestfs.pod:751 msgid "" "The essential problem is that ntfs-3g simply does not have enough " "information to do a correct job. NTFS links can contain drive letters and " @@ -48886,7 +49058,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:756 +#: ../src/guestfs.pod:758 msgid "" "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use " "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended " @@ -48895,36 +49067,36 @@ msgid "" msgstr "" #. type: =head3 -#: ../src/guestfs.pod:761 +#: ../src/guestfs.pod:763 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:763 +#: ../src/guestfs.pod:765 msgid "" "There are other useful extended attributes that can be read from ntfs-3g " "filesystems (using L</guestfs_getxattr>). See:" msgstr "" #. type: textblock -#: ../src/guestfs.pod:766 +#: ../src/guestfs.pod:768 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:768 +#: ../src/guestfs.pod:770 msgid "RESIZE2FS ERRORS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:770 +#: ../src/guestfs.pod:772 msgid "" "The L</guestfs_resize2fs>, L</guestfs_resize2fs_size> and " "L</guestfs_resize2fs_M> calls are used to resize ext2/3/4 filesystems." msgstr "" #. type: textblock -#: ../src/guestfs.pod:773 +#: ../src/guestfs.pod:775 msgid "" "The underlying program (L<resize2fs(8)>) requires that the filesystem is " "clean and recently fsck'd before you can resize it. Also, if the resize " @@ -48933,7 +49105,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:778 +#: ../src/guestfs.pod:780 msgid "" "In libguestfs C<lt> 1.17.14, you usually had to call L</guestfs_e2fsck_f> " "before the resize. However, in C<ge> 1.17.14, L<e2fsck(8)> is called " @@ -48941,14 +49113,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:783 +#: ../src/guestfs.pod:785 msgid "" "The L<resize2fs(8)> program can still fail, in which case it prints an error " "message similar to:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:786 +#: ../src/guestfs.pod:788 #, no-wrap msgid "" " Please run 'e2fsck -fy <device>' to fix the filesystem\n" @@ -48957,7 +49129,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:789 +#: ../src/guestfs.pod:791 msgid "" "You can do this by calling L</guestfs_e2fsck> with the C<forceall> option. " "However in the context of disk images, it is usually better to avoid this " @@ -48966,19 +49138,19 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:794 +#: ../src/guestfs.pod:796 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES" msgstr "" #. type: textblock -#: ../src/guestfs.pod:796 +#: ../src/guestfs.pod:798 msgid "" "Although we don't want to discourage you from using the C API, we will " "mention here that the same API is also available in other languages." msgstr "" #. type: textblock -#: ../src/guestfs.pod:799 +#: ../src/guestfs.pod:801 msgid "" "The API is broadly identical in all supported languages. This means that " "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> " @@ -48988,14 +49160,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:805 +#: ../src/guestfs.pod:807 msgid "" "Error messages are automatically transformed into exceptions if the language " "supports it." msgstr "" #. type: textblock -#: ../src/guestfs.pod:808 +#: ../src/guestfs.pod:810 msgid "" "We don't try to \"object orientify\" parts of the API in OO languages, " "although contributors are welcome to write higher level APIs above what we " @@ -49003,58 +49175,58 @@ msgid "" msgstr "" #. type: =item -#: ../src/guestfs.pod:814 +#: ../src/guestfs.pod:816 msgid "B<C++>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:816 +#: ../src/guestfs.pod:818 msgid "" "You can use the I<guestfs.h> header file from C++ programs. The C++ API is " "identical to the C API. C++ classes and exceptions are not used." msgstr "" #. type: =item -#: ../src/guestfs.pod:820 +#: ../src/guestfs.pod:822 msgid "B<C#>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:822 +#: ../src/guestfs.pod:824 msgid "" "The C# bindings are highly experimental. Please read the warnings at the " "top of C<csharp/Libguestfs.cs>." msgstr "" #. type: =item -#: ../src/guestfs.pod:825 +#: ../src/guestfs.pod:827 msgid "B<Erlang>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:827 +#: ../src/guestfs.pod:829 msgid "See L<guestfs-erlang(3)>." msgstr "" #. type: =item -#: ../src/guestfs.pod:829 +#: ../src/guestfs.pod:831 msgid "B<GObject>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:831 +#: ../src/guestfs.pod:833 msgid "" "Experimental GObject bindings (with GObject Introspection support) are " "available. See the C<gobject> directory in the source." msgstr "" #. type: =item -#: ../src/guestfs.pod:834 +#: ../src/guestfs.pod:836 msgid "B<Haskell>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:836 +#: ../src/guestfs.pod:838 msgid "" "This is the only language binding that is working but incomplete. Only " "calls which return simple integers have been bound in Haskell, and we are " @@ -49062,96 +49234,96 @@ msgid "" msgstr "" #. type: =item -#: ../src/guestfs.pod:840 +#: ../src/guestfs.pod:842 msgid "B<Java>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:842 +#: ../src/guestfs.pod:844 msgid "" "Full documentation is contained in the Javadoc which is distributed with " "libguestfs. For examples, see L<guestfs-java(3)>." msgstr "" #. type: =item -#: ../src/guestfs.pod:845 +#: ../src/guestfs.pod:847 msgid "B<OCaml>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:847 +#: ../src/guestfs.pod:849 msgid "See L<guestfs-ocaml(3)>." msgstr "" #. type: =item -#: ../src/guestfs.pod:849 +#: ../src/guestfs.pod:851 msgid "B<Perl>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:851 +#: ../src/guestfs.pod:853 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>." msgstr "" #. type: =item -#: ../src/guestfs.pod:853 +#: ../src/guestfs.pod:855 msgid "B<PHP>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:855 +#: ../src/guestfs.pod:857 msgid "" "For documentation see C<README-PHP> supplied with libguestfs sources or in " "the php-libguestfs package for your distribution." msgstr "" #. type: textblock -#: ../src/guestfs.pod:858 +#: ../src/guestfs.pod:860 msgid "The PHP binding only works correctly on 64 bit machines." msgstr "" #. type: =item -#: ../src/guestfs.pod:860 +#: ../src/guestfs.pod:862 msgid "B<Python>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:862 +#: ../src/guestfs.pod:864 msgid "See L<guestfs-python(3)>." msgstr "" #. type: =item -#: ../src/guestfs.pod:864 +#: ../src/guestfs.pod:866 msgid "B<Ruby>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:866 +#: ../src/guestfs.pod:868 msgid "See L<guestfs-ruby(3)>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:868 +#: ../src/guestfs.pod:870 msgid "For JRuby, use the Java bindings." msgstr "" #. type: =item -#: ../src/guestfs.pod:870 +#: ../src/guestfs.pod:872 msgid "B<shell scripts>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:872 +#: ../src/guestfs.pod:874 msgid "See L<guestfish(1)>." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:876 +#: ../src/guestfs.pod:878 msgid "LIBGUESTFS GOTCHAS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:878 +#: ../src/guestfs.pod:880 msgid "" "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a " "system [...] that works in the way it is documented but is counterintuitive " @@ -49159,7 +49331,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:882 +#: ../src/guestfs.pod:884 msgid "" "Since we developed libguestfs and the associated tools, there are several " "things we would have designed differently, but are now stuck with for " @@ -49168,19 +49340,19 @@ msgid "" msgstr "" #. type: =item -#: ../src/guestfs.pod:890 +#: ../src/guestfs.pod:892 msgid "Autosync / forgetting to sync." msgstr "" #. type: textblock -#: ../src/guestfs.pod:892 +#: ../src/guestfs.pod:894 msgid "" "I<Update:> Autosync is enabled by default for all API users starting from " "libguestfs 1.5.24. This section only applies to older versions." msgstr "" #. type: textblock -#: ../src/guestfs.pod:895 +#: ../src/guestfs.pod:897 msgid "" "When modifying a filesystem from C or another language, you B<must> unmount " "all filesystems and call L</guestfs_sync> explicitly before you close the " @@ -49188,7 +49360,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:899 +#: ../src/guestfs.pod:901 #, no-wrap msgid "" " guestfs_set_autosync (g, 1);\n" @@ -49196,7 +49368,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:901 +#: ../src/guestfs.pod:903 msgid "" "to have the unmount/sync done automatically for you when the handle 'g' is " "closed. (This feature is called \"autosync\", L</guestfs_set_autosync> " @@ -49204,7 +49376,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:905 +#: ../src/guestfs.pod:907 msgid "" "If you forget to do this, then it is entirely possible that your changes " "won't be written out, or will be partially written, or (very rarely) that " @@ -49212,7 +49384,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:909 +#: ../src/guestfs.pod:911 msgid "" "Note that in L<guestfish(3)> autosync is the default. So quick and dirty " "guestfish scripts that forget to sync will work just fine, which can make " @@ -49220,19 +49392,19 @@ msgid "" msgstr "" #. type: =item -#: ../src/guestfs.pod:913 +#: ../src/guestfs.pod:915 msgid "Mount option C<-o sync> should not be the default." msgstr "" #. type: textblock -#: ../src/guestfs.pod:915 +#: ../src/guestfs.pod:917 msgid "" "I<Update:> L</guestfs_mount> no longer adds any options starting from " "libguestfs 1.13.16. This section only applies to older versions." msgstr "" #. type: textblock -#: ../src/guestfs.pod:918 +#: ../src/guestfs.pod:920 msgid "" "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly. " "However C<-o sync> does not add any reliability benefit, but does have a " @@ -49240,31 +49412,31 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:922 +#: ../src/guestfs.pod:924 msgid "" "The work around is to use L</guestfs_mount_options> and set the mount " "options that you actually want to use." msgstr "" #. type: =item -#: ../src/guestfs.pod:925 +#: ../src/guestfs.pod:927 msgid "Read-only should be the default." msgstr "" #. type: textblock -#: ../src/guestfs.pod:927 +#: ../src/guestfs.pod:929 msgid "" "In L<guestfish(3)>, I<--ro> should be the default, and you should have to " "specify I<--rw> if you want to make changes to the image." msgstr "" #. type: textblock -#: ../src/guestfs.pod:930 +#: ../src/guestfs.pod:932 msgid "This would reduce the potential to corrupt live VM images." msgstr "" #. type: textblock -#: ../src/guestfs.pod:932 +#: ../src/guestfs.pod:934 msgid "" "Note that many filesystems change the disk when you just mount and unmount, " "even if you didn't perform any writes. You need to use " @@ -49272,12 +49444,12 @@ msgid "" msgstr "" #. type: =item -#: ../src/guestfs.pod:936 +#: ../src/guestfs.pod:938 msgid "guestfish command line is hard to use." msgstr "" #. type: textblock -#: ../src/guestfs.pod:938 +#: ../src/guestfs.pod:940 msgid "" "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for " "examination). It tries to run a guestfish command C<disk.img> which doesn't " @@ -49287,12 +49459,12 @@ msgid "" msgstr "" #. type: =item -#: ../src/guestfs.pod:945 +#: ../src/guestfs.pod:947 msgid "guestfish megabyte modifiers don't work right on all commands" msgstr "" #. type: textblock -#: ../src/guestfs.pod:947 +#: ../src/guestfs.pod:949 msgid "" "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for " "other modifiers). What guestfish actually does is to multiply the number " @@ -49302,12 +49474,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:954 +#: ../src/guestfs.pod:956 msgid "The most common is L</guestfs_lvcreate>. The guestfish command:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:956 +#: ../src/guestfs.pod:958 #, no-wrap msgid "" " lvcreate LV VG 100M\n" @@ -49315,7 +49487,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:958 +#: ../src/guestfs.pod:960 msgid "" "does not do what you might expect. Instead because L</guestfs_lvcreate> is " "already expecting megabytes, this tries to create a 100 I<terabyte> (100 " @@ -49324,19 +49496,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:963 +#: ../src/guestfs.pod:965 msgid "" "This could be fixed in the generator by specially marking parameters and " "return values which take bytes or other units." msgstr "" #. type: =item -#: ../src/guestfs.pod:966 +#: ../src/guestfs.pod:968 msgid "Ambiguity between devices and paths" msgstr "" #. type: textblock -#: ../src/guestfs.pod:968 +#: ../src/guestfs.pod:970 msgid "" "There is a subtle ambiguity in the API between a device name " "(eg. C</dev/sdb2>) and a similar pathname. A file might just happen to be " @@ -49344,7 +49516,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:973 +#: ../src/guestfs.pod:975 msgid "" "In the current API we usually resolve this ambiguity by having two separate " "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>. " @@ -49353,7 +49525,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:979 +#: ../src/guestfs.pod:981 msgid "" "To avoid both the ambiguity and the need to duplicate some calls, we could " "make paths/devices into structured names. One way to do this would be to " @@ -49363,7 +49535,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:985 +#: ../src/guestfs.pod:987 #, no-wrap msgid "" " type path = Path of string | Device of int | Partition of int * int\n" @@ -49371,12 +49543,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:987 +#: ../src/guestfs.pod:989 msgid "which would allow you to pass arguments like:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:989 +#: ../src/guestfs.pod:991 #, no-wrap msgid "" " Path \"/foo/bar\"\n" @@ -49387,26 +49559,26 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:994 +#: ../src/guestfs.pod:996 msgid "" "As you can see there are still problems to resolve even with this " "representation. Also consider how it might work in guestfish." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:999 +#: ../src/guestfs.pod:1001 msgid "KEYS AND PASSPHRASES" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1001 +#: ../src/guestfs.pod:1003 msgid "" "Certain libguestfs calls take a parameter that contains sensitive key " "material, passed in as a C string." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1004 +#: ../src/guestfs.pod:1006 msgid "" "In the future we would hope to change the libguestfs implementation so that " "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in " @@ -49415,7 +49587,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1009 +#: ../src/guestfs.pod:1011 msgid "" "Therefore you should be aware that any key parameter you pass to libguestfs " "might end up being written out to the swap partition. If this is a concern, " @@ -49423,19 +49595,19 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1014 +#: ../src/guestfs.pod:1016 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1016 +#: ../src/guestfs.pod:1018 msgid "" "All high-level libguestfs actions are synchronous. If you want to use " "libguestfs asynchronously then you must create a thread." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1019 +#: ../src/guestfs.pod:1021 msgid "" "Only use the handle from a single thread. Either use the handle exclusively " "from one thread, or provide your own mutex so that two threads cannot issue " @@ -49443,33 +49615,33 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1023 +#: ../src/guestfs.pod:1025 msgid "" "See the graphical program guestfs-browser for one possible architecture for " "multithreaded programs using libvirt and libguestfs." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1026 +#: ../src/guestfs.pod:1028 msgid "PATH" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1028 +#: ../src/guestfs.pod:1030 msgid "" "Libguestfs needs a supermin appliance, which it finds by looking along an " "internal path." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1031 +#: ../src/guestfs.pod:1033 msgid "" "By default it looks for these in the directory C<$libdir/guestfs> " "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1034 +#: ../src/guestfs.pod:1036 msgid "" "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> " "to change the directories that libguestfs will search in. The value is a " @@ -49480,12 +49652,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1041 +#: ../src/guestfs.pod:1043 msgid "QEMU WRAPPERS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1043 +#: ../src/guestfs.pod:1045 msgid "" "If you want to compile your own qemu, run qemu from a non-standard location, " "or pass extra arguments to qemu, then you can write a shell-script wrapper " @@ -49493,7 +49665,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1047 +#: ../src/guestfs.pod:1049 msgid "" "There is one important rule to remember: you I<must C<exec qemu>> as the " "last command in the shell script (so that qemu replaces the shell and " @@ -49502,14 +49674,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1052 +#: ../src/guestfs.pod:1054 msgid "" "Here is an example of a wrapper, where I have built my own copy of qemu from " "source:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1055 +#: ../src/guestfs.pod:1057 #, no-wrap msgid "" " #!/bin/sh -\n" @@ -49520,7 +49692,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1059 +#: ../src/guestfs.pod:1061 msgid "" "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and " "then use it by setting the LIBGUESTFS_QEMU environment variable. For " @@ -49528,7 +49700,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1063 +#: ../src/guestfs.pod:1065 #, no-wrap msgid "" " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n" @@ -49536,14 +49708,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1065 +#: ../src/guestfs.pod:1067 msgid "" "Note that libguestfs also calls qemu with the -help and -version options in " "order to determine features." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1068 +#: ../src/guestfs.pod:1070 msgid "" "Wrappers can also be used to edit the options passed to qemu. In the " "following example, the C<-machine ...> option (C<-machine> and the following " @@ -49553,7 +49725,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1077 +#: ../src/guestfs.pod:1079 #, no-wrap msgid "" " i=0\n" @@ -49571,7 +49743,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1089 +#: ../src/guestfs.pod:1091 #, no-wrap msgid "" " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n" @@ -49579,19 +49751,19 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1091 +#: ../src/guestfs.pod:1093 msgid "ATTACHING TO RUNNING DAEMONS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1093 +#: ../src/guestfs.pod:1095 msgid "" "I<Note (1):> This is B<highly experimental> and has a tendency to eat " "babies. Use with caution." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1096 +#: ../src/guestfs.pod:1098 msgid "" "I<Note (2):> This section explains how to attach to a running daemon from a " "low level perspective. For most users, simply using virt tools such as " @@ -49599,12 +49771,12 @@ msgid "" msgstr "" #. type: =head3 -#: ../src/guestfs.pod:1100 +#: ../src/guestfs.pod:1102 msgid "Using guestfs_set_attach_method" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1102 +#: ../src/guestfs.pod:1104 msgid "" "By calling L</guestfs_set_attach_method> you can change how the library " "connects to the C<guestfsd> daemon in L</guestfs_launch> (read " @@ -49612,7 +49784,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1106 +#: ../src/guestfs.pod:1108 msgid "" "The normal attach method is C<appliance>, where a small appliance is created " "containing the daemon, and then the library connects to this. C<libvirt> or " @@ -49620,7 +49792,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1111 +#: ../src/guestfs.pod:1113 msgid "" "Setting attach method to C<unix:I<path>> (where I<path> is the path of a " "Unix domain socket) causes L</guestfs_launch> to connect to an existing " @@ -49628,7 +49800,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1115 +#: ../src/guestfs.pod:1117 msgid "" "The normal use for this is to connect to a running virtual machine that " "contains a C<guestfsd> daemon, and send commands so you can read and write " @@ -49636,12 +49808,12 @@ msgid "" msgstr "" #. type: =head3 -#: ../src/guestfs.pod:1119 +#: ../src/guestfs.pod:1121 msgid "Using guestfs_add_domain with live flag" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1121 +#: ../src/guestfs.pod:1123 msgid "" "L</guestfs_add_domain> provides some help for getting the correct attach " "method. If you pass the C<live> option to this function, then (if the " @@ -49650,7 +49822,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1127 +#: ../src/guestfs.pod:1129 #, no-wrap msgid "" " <domain>\n" @@ -49668,14 +49840,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1139 +#: ../src/guestfs.pod:1141 msgid "" "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach " "method to C<unix:/path/to/socket>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1142 +#: ../src/guestfs.pod:1144 msgid "" "Some of the libguestfs tools (including guestfish) support a I<--live> " "option which is passed through to L</guestfs_add_domain> thus allowing you " @@ -49683,19 +49855,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1146 +#: ../src/guestfs.pod:1148 msgid "" "The virtual machine needs to have been set up beforehand so that it has the " "virtio-serial channel and so that guestfsd is running inside it." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1150 +#: ../src/guestfs.pod:1152 msgid "ABI GUARANTEE" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1152 +#: ../src/guestfs.pod:1154 msgid "" "We guarantee the libguestfs ABI (binary interface), for public, high-level " "actions as outlined in this section. Although we will deprecate some " @@ -49705,12 +49877,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1158 +#: ../src/guestfs.pod:1160 msgid "BLOCK DEVICE NAMING" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1160 +#: ../src/guestfs.pod:1162 msgid "" "In the kernel there is now quite a profusion of schemata for naming block " "devices (in this context, by I<block device> I mean a physical or virtual " @@ -49725,7 +49897,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1172 +#: ../src/guestfs.pod:1174 msgid "" "As discussed above, libguestfs uses a qemu appliance running an embedded " "Linux kernel to access block devices. We can run a variety of appliances " @@ -49733,7 +49905,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1176 +#: ../src/guestfs.pod:1178 msgid "" "This causes a problem for libguestfs because many API calls use device or " "partition names. Working scripts and the recipe (example) scripts that we " @@ -49741,7 +49913,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1181 +#: ../src/guestfs.pod:1183 msgid "" "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>. " "Internally C</dev/sd*> names are translated, if necessary, to other names as " @@ -49750,7 +49922,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1187 +#: ../src/guestfs.pod:1189 msgid "" "Note that this I<only> applies to parameters. The L</guestfs_list_devices>, " "L</guestfs_list_partitions> and similar calls return the true names of the " @@ -49759,12 +49931,12 @@ msgid "" msgstr "" #. type: =head3 -#: ../src/guestfs.pod:1192 +#: ../src/guestfs.pod:1194 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1194 +#: ../src/guestfs.pod:1196 msgid "" "Usually this translation is transparent. However in some (very rare) cases " "you may need to know the exact algorithm. Such cases include where you use " @@ -49774,7 +49946,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1200 +#: ../src/guestfs.pod:1202 msgid "" "The algorithm is applied only to I<parameters> which are known to be either " "device or partition names. Return values from functions such as " @@ -49782,54 +49954,54 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1208 +#: ../src/guestfs.pod:1210 msgid "Is the string a parameter which is a device or partition name?" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1212 +#: ../src/guestfs.pod:1214 msgid "Does the string begin with C</dev/sd>?" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1216 +#: ../src/guestfs.pod:1218 msgid "" "Does the named device exist? If so, we use that device. However if I<not> " "then we continue with this algorithm." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1221 +#: ../src/guestfs.pod:1223 msgid "Replace initial C</dev/sd> string with C</dev/hd>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1223 +#: ../src/guestfs.pod:1225 msgid "For example, change C</dev/sda2> to C</dev/hda2>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1225 +#: ../src/guestfs.pod:1227 msgid "If that named device exists, use it. If not, continue." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1229 +#: ../src/guestfs.pod:1231 msgid "Replace initial C</dev/sd> string with C</dev/vd>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1231 +#: ../src/guestfs.pod:1233 msgid "If that named device exists, use it. If not, return an error." msgstr "" #. type: =head3 -#: ../src/guestfs.pod:1235 +#: ../src/guestfs.pod:1237 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1237 +#: ../src/guestfs.pod:1239 msgid "" "Although the standard naming scheme and automatic translation is useful for " "simple programs and guestfish scripts, for larger programs it is best not to " @@ -49837,38 +50009,38 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1241 +#: ../src/guestfs.pod:1243 msgid "" "Where possible for maximum future portability programs using libguestfs " "should use these future-proof techniques:" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1248 +#: ../src/guestfs.pod:1250 msgid "" "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual " "device names, and then use those names directly." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1251 +#: ../src/guestfs.pod:1253 msgid "Since those device names exist by definition, they will never be translated." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1256 +#: ../src/guestfs.pod:1258 msgid "" "Use higher level ways to identify filesystems, such as LVM names, UUIDs and " "filesystem labels." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1261 +#: ../src/guestfs.pod:1263 msgid "NULL DISKS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1263 +#: ../src/guestfs.pod:1265 msgid "" "When adding a disk using, eg., L</guestfs_add_drive>, you can set the " "filename to C<\"/dev/null\">. This string is treated specially by " @@ -49876,46 +50048,46 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1267 +#: ../src/guestfs.pod:1269 msgid "A null disk has the following properties:" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1273 +#: ../src/guestfs.pod:1275 msgid "" "A null disk will appear as a normal device, eg. in calls to " "L</guestfs_list_devices>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1278 +#: ../src/guestfs.pod:1280 msgid "You may add C<\"/dev/null\"> multiple times." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1282 +#: ../src/guestfs.pod:1284 msgid "" "You should not try to access a null disk in any way. For example, you " "shouldn't try to read it or mount it." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1287 +#: ../src/guestfs.pod:1289 msgid "Null disks are used for three main purposes:" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1293 +#: ../src/guestfs.pod:1295 msgid "Performance testing of libguestfs (see L<guestfs-performance(1)>)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1297 +#: ../src/guestfs.pod:1299 msgid "The internal test suite." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1301 +#: ../src/guestfs.pod:1303 msgid "" "If you want to use libguestfs APIs that don't refer to disks, since " "libguestfs requires that at least one disk is added, you should add a null " @@ -49923,12 +50095,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1305 +#: ../src/guestfs.pod:1307 msgid "For example, to test if a feature is available, use code like this:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1307 +#: ../src/guestfs.pod:1309 #, no-wrap msgid "" " guestfs_h *g;\n" @@ -49937,7 +50109,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1310 +#: ../src/guestfs.pod:1312 #, no-wrap msgid "" " g = guestfs_create ();\n" @@ -49953,19 +50125,19 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1322 +#: ../src/guestfs.pod:1324 msgid "DISK IMAGE FORMATS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1324 +#: ../src/guestfs.pod:1326 msgid "" "Virtual disks come in a variety of formats. Some common formats are listed " "below." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1327 +#: ../src/guestfs.pod:1329 msgid "" "Note that libguestfs itself is not responsible for handling the disk format: " "this is done using L<qemu(1)>. If support for a particular format is " @@ -49973,24 +50145,24 @@ msgid "" msgstr "" #. type: =head3 -#: ../src/guestfs.pod:1331 +#: ../src/guestfs.pod:1333 msgid "COMMON VIRTUAL DISK IMAGE FORMATS" msgstr "" #. type: =item -#: ../src/guestfs.pod:1335 +#: ../src/guestfs.pod:1337 msgid "I<raw>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1337 +#: ../src/guestfs.pod:1339 msgid "" "Raw format is simply a dump of the sequential bytes of the virtual hard " "disk. There is no header, container, compression or processing of any sort." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1341 +#: ../src/guestfs.pod:1343 msgid "" "Since raw format requires no translation to read or write, it is both fast " "and very well supported by qemu and all other hypervisors. You can consider " @@ -49998,7 +50170,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1346 +#: ../src/guestfs.pod:1348 msgid "" "Raw format files are not compressed and so take up the full space of the " "original disk image even when they are empty. A variation (on Linux/Unix at " @@ -50009,12 +50181,12 @@ msgid "" msgstr "" #. type: =item -#: ../src/guestfs.pod:1353 +#: ../src/guestfs.pod:1355 msgid "I<qcow2>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1355 +#: ../src/guestfs.pod:1357 msgid "" "Qcow2 is the native disk image format used by qemu. Internally it uses a " "two-level directory structure so that only blocks containing data are stored " @@ -50023,19 +50195,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1360 +#: ../src/guestfs.pod:1362 msgid "" "There are at least two distinct variants of this format, although qemu (and " "hence libguestfs) handles both transparently to the user." msgstr "" #. type: =item -#: ../src/guestfs.pod:1363 +#: ../src/guestfs.pod:1365 msgid "I<vmdk>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1365 +#: ../src/guestfs.pod:1367 msgid "" "VMDK is VMware's native disk image format. There are many variations. " "Modern qemu (hence libguestfs) supports most variations, but you should be " @@ -50044,7 +50216,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1370 +#: ../src/guestfs.pod:1372 msgid "" "Note that VMware ESX exposes files with the name C<guest-flat.vmdk>. These " "are not VMDK. They are raw format files which happen to have a C<.vmdk> " @@ -50052,53 +50224,53 @@ msgid "" msgstr "" #. type: =item -#: ../src/guestfs.pod:1374 +#: ../src/guestfs.pod:1376 msgid "I<vdi>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1376 +#: ../src/guestfs.pod:1378 msgid "" "VDI is VirtualBox's native disk image format. Qemu (hence libguestfs) has " "generally good support for this." msgstr "" #. type: =item -#: ../src/guestfs.pod:1379 +#: ../src/guestfs.pod:1381 msgid "I<vpc>" msgstr "" #. type: =item -#: ../src/guestfs.pod:1381 +#: ../src/guestfs.pod:1383 msgid "I<vhd>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1383 +#: ../src/guestfs.pod:1385 msgid "" "VPC (old) and VHD (modern) are the native disk image format of Microsoft " "(and previously, Connectix) Virtual PC and Hyper-V." msgstr "" #. type: =item -#: ../src/guestfs.pod:1386 +#: ../src/guestfs.pod:1388 msgid "Obsolete formats" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1388 +#: ../src/guestfs.pod:1390 msgid "" "The following formats are obsolete and should not be used: I<qcow> (aka " "I<qcow1>), I<cow>, I<bochs>." msgstr "" #. type: =head3 -#: ../src/guestfs.pod:1393 +#: ../src/guestfs.pod:1395 msgid "DETECTING THE FORMAT OF A DISK IMAGE" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1395 +#: ../src/guestfs.pod:1397 msgid "" "Firstly note there is a security issue with auto-detecting the format of a " "disk image. It may or may not apply in your use case. Read " @@ -50106,14 +50278,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1399 +#: ../src/guestfs.pod:1401 msgid "" "Libguestfs offers an API to get the format of a disk image " "(L</guestfs_disk_format>, and it is safest to use this." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1402 +#: ../src/guestfs.pod:1404 msgid "" "I<Don't> be tempted to try parsing the text / human-readable output of " "C<qemu-img> since it cannot be parsed reliably and securely. Also do not " @@ -50121,24 +50293,24 @@ msgid "" msgstr "" #. type: =head1 -#: ../src/guestfs.pod:1407 ../sysprep/virt-sysprep.pod:424 +#: ../src/guestfs.pod:1409 ../sysprep/virt-sysprep.pod:424 msgid "SECURITY" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1409 +#: ../src/guestfs.pod:1411 msgid "" "This section discusses security implications of using libguestfs, " "particularly with untrusted or malicious guests or disk images." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1412 +#: ../src/guestfs.pod:1414 msgid "GENERAL SECURITY CONSIDERATIONS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1414 +#: ../src/guestfs.pod:1416 msgid "" "Be careful with any files or data that you download from a guest (by " "\"download\" we mean not just the L</guestfs_download> command but any " @@ -50148,42 +50320,42 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1424 +#: ../src/guestfs.pod:1426 msgid "the data (file etc) not being present" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1428 +#: ../src/guestfs.pod:1430 msgid "being present but empty" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1432 +#: ../src/guestfs.pod:1434 msgid "being much larger than normal" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1436 +#: ../src/guestfs.pod:1438 msgid "containing arbitrary 8 bit data" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1440 +#: ../src/guestfs.pod:1442 msgid "being in an unexpected character encoding" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1444 +#: ../src/guestfs.pod:1446 msgid "containing homoglyphs." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1448 +#: ../src/guestfs.pod:1450 msgid "SECURITY OF MOUNTING FILESYSTEMS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1450 +#: ../src/guestfs.pod:1452 msgid "" "When you mount a filesystem under Linux, mistakes in the kernel filesystem " "(VFS) module can sometimes be escalated into exploits by deliberately " @@ -50199,7 +50371,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1463 +#: ../src/guestfs.pod:1465 msgid "" "That explains why you should never mount a filesystem from an untrusted " "guest on your host kernel. How about libguestfs? We run a Linux kernel " @@ -50213,19 +50385,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1474 +#: ../src/guestfs.pod:1476 msgid "" "In any case callers can reduce the attack surface by forcing the filesystem " "type when mounting (use L</guestfs_mount_vfs>)." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1477 +#: ../src/guestfs.pod:1479 msgid "PROTOCOL SECURITY" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1479 +#: ../src/guestfs.pod:1481 msgid "" "The protocol is designed to be secure, being based on RFC 4506 (XDR) with a " "defined upper message size. However a program that uses libguestfs must " @@ -50235,12 +50407,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1485 +#: ../src/guestfs.pod:1487 msgid "INSPECTION SECURITY" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1487 +#: ../src/guestfs.pod:1489 msgid "" "Parts of the inspection API (see L</INSPECTION>) return untrusted strings " "directly from the guest, and these could contain any 8 bit data. Callers " @@ -50249,7 +50421,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1493 +#: ../src/guestfs.pod:1495 msgid "" "Guest configuration may be altered in unusual ways by the administrator of " "the virtual machine, and may not reflect reality (particularly for untrusted " @@ -50260,7 +50432,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1501 +#: ../src/guestfs.pod:1503 msgid "" "The inspection API parses guest configuration using two external libraries: " "Augeas (Linux configuration) and hivex (Windows Registry). Both are " @@ -50270,12 +50442,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1507 +#: ../src/guestfs.pod:1509 msgid "RUNNING UNTRUSTED GUEST COMMANDS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1509 +#: ../src/guestfs.pod:1511 msgid "" "Be very cautious about running commands from the guest. By running a " "command in the guest, you are giving CPU time to a binary that you do not " @@ -50285,24 +50457,24 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1515 +#: ../src/guestfs.pod:1517 msgid "CVE-2010-3851" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1517 +#: ../src/guestfs.pod:1519 msgid "L<https://bugzilla.redhat.com/642934>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1519 +#: ../src/guestfs.pod:1521 msgid "" "This security bug concerns the automatic disk format detection that qemu " "does on disk images." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1522 +#: ../src/guestfs.pod:1524 msgid "" "A raw disk image is just the raw bytes, there is no header. Other disk " "images like qcow2 contain a special header. Qemu deals with this by looking " @@ -50311,7 +50483,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1527 +#: ../src/guestfs.pod:1529 msgid "" "This allows a guest which has been given a raw disk image to write some " "other header. At next boot (or when the disk image is accessed by " @@ -50320,7 +50492,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1532 +#: ../src/guestfs.pod:1534 msgid "" "This in itself would not be a problem, but qcow2 offers many features, one " "of which is to allow a disk image to refer to another image (called the " @@ -50332,24 +50504,24 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1540 +#: ../src/guestfs.pod:1542 msgid "In libguestfs this is rather hard to exploit except under two circumstances:" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1547 +#: ../src/guestfs.pod:1549 msgid "You have enabled the network or have opened the disk in write mode." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1551 +#: ../src/guestfs.pod:1553 msgid "" "You are also running untrusted code from the guest (see L</RUNNING " "COMMANDS>)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1556 +#: ../src/guestfs.pod:1558 msgid "" "The way to avoid this is to specify the expected disk format when adding " "disks (the optional C<format> option to L</guestfs_add_drive_opts>). You " @@ -50358,31 +50530,31 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1562 +#: ../src/guestfs.pod:1564 msgid "" "For disks added from libvirt using calls like L</guestfs_add_domain>, the " "format is fetched from libvirt and passed through." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1565 +#: ../src/guestfs.pod:1567 msgid "" "For libguestfs tools, use the I<--format> command line parameter as " "appropriate." msgstr "" #. type: =head1 -#: ../src/guestfs.pod:1568 +#: ../src/guestfs.pod:1570 msgid "CONNECTION MANAGEMENT" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1570 +#: ../src/guestfs.pod:1572 msgid "guestfs_h *" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1572 +#: ../src/guestfs.pod:1574 msgid "" "C<guestfs_h> is the opaque type representing a connection handle. Create a " "handle by calling L</guestfs_create>. Call L</guestfs_close> to free the " @@ -50390,19 +50562,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1576 +#: ../src/guestfs.pod:1578 msgid "" "For information on using multiple handles and threads, see the section " "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1579 +#: ../src/guestfs.pod:1581 msgid "guestfs_create" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1581 +#: ../src/guestfs.pod:1583 #, no-wrap msgid "" " guestfs_h *guestfs_create (void);\n" @@ -50410,19 +50582,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1583 +#: ../src/guestfs.pod:1585 msgid "Create a connection handle." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1585 +#: ../src/guestfs.pod:1587 msgid "" "On success this returns a non-NULL pointer to a handle. On error it returns " "NULL." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1588 +#: ../src/guestfs.pod:1590 msgid "" "You have to \"configure\" the handle after creating it. This includes " "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the " @@ -50430,24 +50602,24 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1592 +#: ../src/guestfs.pod:1594 msgid "After configuring the handle, you have to call L</guestfs_launch>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1594 +#: ../src/guestfs.pod:1596 msgid "" "You may also want to configure error handling for the handle. See the " "L</ERROR HANDLING> section below." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1597 +#: ../src/guestfs.pod:1599 msgid "guestfs_close" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1599 +#: ../src/guestfs.pod:1601 #, no-wrap msgid "" " void guestfs_close (guestfs_h *g);\n" @@ -50455,19 +50627,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1601 +#: ../src/guestfs.pod:1603 msgid "" "This closes the connection handle and frees up all resources used. If a " "close callback was set on the handle, then it is called." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1604 +#: ../src/guestfs.pod:1606 msgid "The correct way to close the handle is:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1606 +#: ../src/guestfs.pod:1608 #, no-wrap msgid "" " if (guestfs_shutdown (g) == -1) {\n" @@ -50478,51 +50650,51 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1611 +#: ../src/guestfs.pod:1613 msgid "L</guestfs_shutdown> is only needed if B<all> of the following are true:" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1617 +#: ../src/guestfs.pod:1619 msgid "one or more disks were added in read-write mode, I<and>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1621 +#: ../src/guestfs.pod:1623 msgid "guestfs_launch was called, I<and>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1625 +#: ../src/guestfs.pod:1627 msgid "you made some changes, I<and>" msgstr "" #. type: =item -#: ../src/guestfs.pod:1627 +#: ../src/guestfs.pod:1629 msgid "4" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1629 +#: ../src/guestfs.pod:1631 msgid "" "you have a way to handle write errors (eg. by exiting with an error code or " "reporting something to the user)." msgstr "" #. type: =head1 -#: ../src/guestfs.pod:1634 +#: ../src/guestfs.pod:1636 msgid "ERROR HANDLING" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1636 +#: ../src/guestfs.pod:1638 msgid "" "API functions can return errors. For example, almost all functions that " "return C<int> will return C<-1> to indicate an error." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1639 +#: ../src/guestfs.pod:1641 msgid "" "Additional information is available for errors: an error message string and " "optionally an error number (errno) if the thing that failed was a system " @@ -50530,7 +50702,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1643 +#: ../src/guestfs.pod:1645 msgid "" "You can get at the additional information about the last error on the handle " "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting " @@ -50538,7 +50710,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1648 +#: ../src/guestfs.pod:1650 msgid "" "When the handle is created, a default error handler is installed which " "prints the error message string to C<stderr>. For small short-running " @@ -50546,7 +50718,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1652 +#: ../src/guestfs.pod:1654 #, no-wrap msgid "" " if (guestfs_launch (g) == -1)\n" @@ -50555,21 +50727,21 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1655 +#: ../src/guestfs.pod:1657 msgid "" "since the default error handler will ensure that an error message has been " "printed to C<stderr> before the program exits." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1658 +#: ../src/guestfs.pod:1660 msgid "" "For other programs the caller will almost certainly want to install an " "alternate error handler or do error handling in-line like this:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1661 +#: ../src/guestfs.pod:1663 #, no-wrap msgid "" " /* This disables the default behaviour of printing errors\n" @@ -50579,7 +50751,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1665 +#: ../src/guestfs.pod:1667 #, no-wrap msgid "" " if (guestfs_launch (g) == -1) {\n" @@ -50596,7 +50768,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1676 +#: ../src/guestfs.pod:1678 msgid "" "Out of memory errors are handled differently. The default action is to call " "L<abort(3)>. If this is undesirable, then you can set a handler using " @@ -50604,7 +50776,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1680 +#: ../src/guestfs.pod:1682 msgid "" "L</guestfs_create> returns C<NULL> if the handle cannot be created, and " "because there is no handle if this happens there is no way to get additional " @@ -50614,12 +50786,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1686 +#: ../src/guestfs.pod:1688 msgid "guestfs_last_error" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1688 +#: ../src/guestfs.pod:1690 #, no-wrap msgid "" " const char *guestfs_last_error (guestfs_h *g);\n" @@ -50627,26 +50799,26 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1690 +#: ../src/guestfs.pod:1692 msgid "" "This returns the last error message that happened on C<g>. If there has not " "been an error since the handle was created, then this returns C<NULL>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1694 +#: ../src/guestfs.pod:1696 msgid "" "The lifetime of the returned string is until the next error occurs, or " "L</guestfs_close> is called." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1697 +#: ../src/guestfs.pod:1699 msgid "guestfs_last_errno" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1699 +#: ../src/guestfs.pod:1701 #, no-wrap msgid "" " int guestfs_last_errno (guestfs_h *g);\n" @@ -50654,27 +50826,27 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1701 +#: ../src/guestfs.pod:1703 msgid "This returns the last error number (errno) that happened on C<g>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1703 +#: ../src/guestfs.pod:1705 msgid "If successful, an errno integer not equal to zero is returned." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1705 +#: ../src/guestfs.pod:1707 msgid "If no error, this returns 0. This call can return 0 in three situations:" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1712 +#: ../src/guestfs.pod:1714 msgid "There has not been any error on the handle." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1716 +#: ../src/guestfs.pod:1718 msgid "" "There has been an error but the errno was meaningless. This corresponds to " "the case where the error did not come from a failed system call, but for " @@ -50682,14 +50854,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1722 +#: ../src/guestfs.pod:1724 msgid "" "There was an error from a failed system call, but for some reason the errno " "was not captured and returned. This usually indicates a bug in libguestfs." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1728 +#: ../src/guestfs.pod:1730 msgid "" "Libguestfs tries to convert the errno from inside the applicance into a " "corresponding errno for the caller (not entirely trivial: the appliance " @@ -50700,12 +50872,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1736 +#: ../src/guestfs.pod:1738 msgid "guestfs_set_error_handler" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1738 +#: ../src/guestfs.pod:1740 #, no-wrap msgid "" " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n" @@ -50718,7 +50890,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1745 +#: ../src/guestfs.pod:1747 msgid "" "The callback C<cb> will be called if there is an error. The parameters " "passed to the callback are an opaque data pointer and the error message " @@ -50726,14 +50898,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1749 +#: ../src/guestfs.pod:1751 msgid "" "C<errno> is not passed to the callback. To get that the callback must call " "L</guestfs_last_errno>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1752 +#: ../src/guestfs.pod:1754 msgid "" "Note that the message string C<msg> is freed as soon as the callback " "function returns, so if you want to stash it somewhere you must make your " @@ -50741,22 +50913,22 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1756 +#: ../src/guestfs.pod:1758 msgid "The default handler prints messages on C<stderr>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1758 +#: ../src/guestfs.pod:1760 msgid "If you set C<cb> to C<NULL> then I<no> handler is called." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1760 +#: ../src/guestfs.pod:1762 msgid "guestfs_get_error_handler" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1762 +#: ../src/guestfs.pod:1764 #, no-wrap msgid "" " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n" @@ -50765,17 +50937,17 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1765 +#: ../src/guestfs.pod:1767 msgid "Returns the current error handler callback." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1767 +#: ../src/guestfs.pod:1769 msgid "guestfs_set_out_of_memory_handler" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1769 +#: ../src/guestfs.pod:1771 #, no-wrap msgid "" " typedef void (*guestfs_abort_cb) (void);\n" @@ -50785,29 +50957,29 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1773 +#: ../src/guestfs.pod:1775 msgid "" "The callback C<cb> will be called if there is an out of memory situation. " "I<Note this callback must not return>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1776 +#: ../src/guestfs.pod:1778 msgid "The default is to call L<abort(3)>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1778 +#: ../src/guestfs.pod:1780 msgid "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1781 +#: ../src/guestfs.pod:1783 msgid "guestfs_get_out_of_memory_handler" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1783 +#: ../src/guestfs.pod:1785 #, no-wrap msgid "" " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n" @@ -50815,37 +50987,37 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1785 +#: ../src/guestfs.pod:1787 msgid "This returns the current out of memory handler." msgstr "" #. type: =head1 -#: ../src/guestfs.pod:1787 +#: ../src/guestfs.pod:1789 msgid "API CALLS" msgstr "" #. type: =head1 -#: ../src/guestfs.pod:1791 +#: ../src/guestfs.pod:1793 msgid "STRUCTURES" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1793 +#: ../src/guestfs.pod:1795 msgid "@STRUCTS@" msgstr "" #. type: =head1 -#: ../src/guestfs.pod:1795 +#: ../src/guestfs.pod:1797 msgid "AVAILABILITY" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1797 +#: ../src/guestfs.pod:1799 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1799 +#: ../src/guestfs.pod:1801 msgid "" "Using L</guestfs_available> you can test availability of the following " "groups of functions. This test queries the appliance to see if the " @@ -50853,29 +51025,29 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1804 +#: ../src/guestfs.pod:1806 msgid "@AVAILABILITY@" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1806 +#: ../src/guestfs.pod:1808 msgid "FILESYSTEM AVAILABLE" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1808 +#: ../src/guestfs.pod:1810 msgid "" "The L</guestfs_filesystem_available> call tests whether a filesystem type is " "supported by the appliance kernel." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1816 +#: ../src/guestfs.pod:1818 msgid "GUESTFISH supported COMMAND" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1818 +#: ../src/guestfs.pod:1820 msgid "" "In L<guestfish(3)> there is a handy interactive command C<supported> which " "prints out the available groups and whether they are supported by this build " @@ -50883,19 +51055,19 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1823 +#: ../src/guestfs.pod:1825 msgid "SINGLE CALLS AT COMPILE TIME" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1825 +#: ../src/guestfs.pod:1827 msgid "" "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API " "function, such as:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1828 +#: ../src/guestfs.pod:1830 #, no-wrap msgid "" " #define LIBGUESTFS_HAVE_DD 1\n" @@ -50903,12 +51075,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1830 +#: ../src/guestfs.pod:1832 msgid "if L</guestfs_dd> is available." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1832 +#: ../src/guestfs.pod:1834 msgid "" "Before version 1.5.8, if you needed to test whether a single libguestfs " "function is available at compile time, we recommended using build tools such " @@ -50916,7 +51088,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1837 +#: ../src/guestfs.pod:1839 #, no-wrap msgid "" " AC_CHECK_LIB([guestfs],[guestfs_create])\n" @@ -50925,19 +51097,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1840 +#: ../src/guestfs.pod:1842 msgid "" "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined " "in your program." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1843 +#: ../src/guestfs.pod:1845 msgid "SINGLE CALLS AT RUN TIME" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1845 +#: ../src/guestfs.pod:1847 msgid "" "Testing at compile time doesn't guarantee that a function really exists in " "the library. The reason is that you might be dynamically linked against a " @@ -50947,7 +51119,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1852 +#: ../src/guestfs.pod:1854 msgid "" "You can use L<dlopen(3)> to test if a function is available at run time, as " "in this example program (note that you still need the compile time check as " @@ -50955,7 +51127,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1856 +#: ../src/guestfs.pod:1858 #, no-wrap msgid "" " #include <stdio.h>\n" @@ -50967,7 +51139,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1862 +#: ../src/guestfs.pod:1864 #, no-wrap msgid "" " main ()\n" @@ -50979,7 +51151,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1868 +#: ../src/guestfs.pod:1870 #, no-wrap msgid "" " /* Test if the function guestfs_dd is really available. */\n" @@ -50994,7 +51166,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1877 +#: ../src/guestfs.pod:1879 #, no-wrap msgid "" " if (!has_function)\n" @@ -51013,7 +51185,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1890 +#: ../src/guestfs.pod:1892 msgid "" "You may think the above is an awful lot of hassle, and it is. There are " "other ways outside of the C linking system to ensure that this kind of " @@ -51021,7 +51193,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1895 +#: ../src/guestfs.pod:1897 #, no-wrap msgid "" " Requires: libguestfs >= 1.0.80\n" @@ -51029,12 +51201,12 @@ msgid "" msgstr "" #. type: =head1 -#: ../src/guestfs.pod:1897 +#: ../src/guestfs.pod:1899 msgid "CALLS WITH OPTIONAL ARGUMENTS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1899 +#: ../src/guestfs.pod:1901 msgid "" "A recent feature of the API is the introduction of calls which take optional " "arguments. In C these are declared 3 ways. The main way is as a call which " @@ -51042,7 +51214,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1904 +#: ../src/guestfs.pod:1906 #, no-wrap msgid "" " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n" @@ -51050,14 +51222,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1906 +#: ../src/guestfs.pod:1908 msgid "" "Call this with a list of optional arguments, terminated by C<-1>. So to " "call with no optional arguments specified:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1909 +#: ../src/guestfs.pod:1911 #, no-wrap msgid "" " guestfs_add_drive_opts (g, filename, -1);\n" @@ -51065,12 +51237,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1911 +#: ../src/guestfs.pod:1913 msgid "With a single optional argument:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1913 +#: ../src/guestfs.pod:1915 #, no-wrap msgid "" " guestfs_add_drive_opts (g, filename,\n" @@ -51080,12 +51252,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1917 +#: ../src/guestfs.pod:1919 msgid "With two:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1919 +#: ../src/guestfs.pod:1921 #, no-wrap msgid "" " guestfs_add_drive_opts (g, filename,\n" @@ -51096,19 +51268,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1924 +#: ../src/guestfs.pod:1926 msgid "" "and so forth. Don't forget the terminating C<-1> otherwise Bad Things will " "happen!" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1927 +#: ../src/guestfs.pod:1929 msgid "USING va_list FOR OPTIONAL ARGUMENTS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1929 +#: ../src/guestfs.pod:1931 msgid "" "The second variant has the same name with the suffix C<_va>, which works the " "same way but takes a C<va_list>. See the C manual for details. For the " @@ -51116,7 +51288,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1933 +#: ../src/guestfs.pod:1935 #, no-wrap msgid "" " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n" @@ -51125,12 +51297,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1936 +#: ../src/guestfs.pod:1938 msgid "CONSTRUCTING OPTIONAL ARGUMENTS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1938 +#: ../src/guestfs.pod:1940 msgid "" "The third variant is useful where you need to construct these calls. You " "pass in a structure where you fill in the optional fields. The structure " @@ -51140,7 +51312,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1944 +#: ../src/guestfs.pod:1946 #, no-wrap msgid "" " struct guestfs_add_drive_opts_argv {\n" @@ -51155,12 +51327,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1953 +#: ../src/guestfs.pod:1955 msgid "You could call it like this:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1955 +#: ../src/guestfs.pod:1957 #, no-wrap msgid "" " struct guestfs_add_drive_opts_argv optargs = {\n" @@ -51173,7 +51345,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:1962 +#: ../src/guestfs.pod:1964 #, no-wrap msgid "" " guestfs_add_drive_opts_argv (g, filename, &optargs);\n" @@ -51181,29 +51353,29 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1970 +#: ../src/guestfs.pod:1972 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1975 +#: ../src/guestfs.pod:1977 msgid "You do not need to fill in all fields of the structure." msgstr "" #. type: textblock -#: ../src/guestfs.pod:1979 +#: ../src/guestfs.pod:1981 msgid "" "There must be a one-to-one correspondence between fields of the structure " "that are filled in, and bits set in the bitmask." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1984 +#: ../src/guestfs.pod:1986 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1986 +#: ../src/guestfs.pod:1988 msgid "" "In other languages, optional arguments are expressed in the way that is " "natural for that language. We refer you to the language-specific " @@ -51211,17 +51383,17 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1990 +#: ../src/guestfs.pod:1992 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:1992 +#: ../src/guestfs.pod:1994 msgid "SETTING CALLBACKS TO HANDLE EVENTS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:1994 +#: ../src/guestfs.pod:1996 msgid "" "B<Note:> This section documents the generic event mechanism introduced in " "libguestfs 1.10, which you should use in new code if possible. The old " @@ -51233,7 +51405,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2003 +#: ../src/guestfs.pod:2005 msgid "" "Handles generate events when certain things happen, such as log messages " "being generated, progress messages during long-running operations, or the " @@ -51245,7 +51417,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2011 +#: ../src/guestfs.pod:2013 msgid "" "In the current implementation, events are only generated synchronously: that " "means that events (and hence callbacks) can only happen while you are in the " @@ -51254,31 +51426,31 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2016 +#: ../src/guestfs.pod:2018 msgid "" "Events may contain a payload, usually nothing (void), an array of 64 bit " "unsigned integers, or a message buffer. Payloads are discussed later on." msgstr "" #. type: =head3 -#: ../src/guestfs.pod:2020 +#: ../src/guestfs.pod:2022 msgid "CLASSES OF EVENTS" msgstr "" #. type: =item -#: ../src/guestfs.pod:2024 +#: ../src/guestfs.pod:2026 msgid "GUESTFS_EVENT_CLOSE (payload type: void)" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2027 +#: ../src/guestfs.pod:2029 msgid "" "The callback function will be called while the handle is being closed " "(synchronously from L</guestfs_close>)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2030 +#: ../src/guestfs.pod:2032 msgid "" "Note that libguestfs installs an L<atexit(3)> handler to try to clean up " "handles that are open when the program exits. This means that this callback " @@ -51289,19 +51461,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2037 +#: ../src/guestfs.pod:2039 msgid "" "If no callback is registered: the handle is closed without any callback " "being invoked." msgstr "" #. type: =item -#: ../src/guestfs.pod:2040 +#: ../src/guestfs.pod:2042 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2043 +#: ../src/guestfs.pod:2045 msgid "" "The callback function will be called when the child process quits, either " "asynchronously or if killed by L</guestfs_kill_subprocess>. (This " @@ -51309,17 +51481,17 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2047 ../src/guestfs.pod:2056 ../src/guestfs.pod:2173 +#: ../src/guestfs.pod:2049 ../src/guestfs.pod:2058 ../src/guestfs.pod:2175 msgid "If no callback is registered: the event is ignored." msgstr "" #. type: =item -#: ../src/guestfs.pod:2049 +#: ../src/guestfs.pod:2051 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2052 +#: ../src/guestfs.pod:2054 msgid "" "The callback function will be called when the child process becomes ready " "first time after it has been launched. (This corresponds to a transition " @@ -51327,12 +51499,12 @@ msgid "" msgstr "" #. type: =item -#: ../src/guestfs.pod:2058 +#: ../src/guestfs.pod:2060 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2061 +#: ../src/guestfs.pod:2063 msgid "" "Some long-running operations can generate progress messages. If this " "callback is registered, then it will be called each time a progress message " @@ -51342,14 +51514,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2067 +#: ../src/guestfs.pod:2069 msgid "" "The callback receives in the payload four unsigned 64 bit numbers which are " "(in order): C<proc_nr>, C<serial>, C<position>, C<total>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2070 +#: ../src/guestfs.pod:2072 msgid "" "The units of C<total> are not defined, although for some operations C<total> " "may relate in some way to the amount of data to be transferred (eg. in bytes " @@ -51358,24 +51530,24 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2075 +#: ../src/guestfs.pod:2077 msgid "The only defined and stable parts of the API are:" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2081 +#: ../src/guestfs.pod:2083 msgid "" "The callback can display to the user some type of progress bar or indicator " "which shows the ratio of C<position>:C<total>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2086 +#: ../src/guestfs.pod:2088 msgid "0 E<lt>= C<position> E<lt>= C<total>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2090 +#: ../src/guestfs.pod:2092 msgid "" "If any progress notification is sent during a call, then a final progress " "notification is always sent when C<position> = C<total> (I<unless> the call " @@ -51383,7 +51555,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2094 +#: ../src/guestfs.pod:2096 msgid "" "This is to simplify caller code, so callers can easily set the progress " "indicator to \"100%\" at the end of the operation, without requiring special " @@ -51391,7 +51563,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2100 +#: ../src/guestfs.pod:2102 msgid "" "For some calls we are unable to estimate the progress of the call, but we " "can still generate progress messages to indicate activity. This is known as " @@ -51400,7 +51572,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2105 +#: ../src/guestfs.pod:2107 msgid "" "For these calls, zero or more progress messages are generated with " "C<position = 0> and C<total = 1>, followed by a final message with " @@ -51408,14 +51580,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2109 +#: ../src/guestfs.pod:2111 msgid "" "As noted above, if the call fails with an error then the final message may " "not be generated." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2114 +#: ../src/guestfs.pod:2116 msgid "" "The callback also receives the procedure number (C<proc_nr>) and serial " "number (C<serial>) of the call. These are only useful for debugging " @@ -51424,31 +51596,31 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2120 +#: ../src/guestfs.pod:2122 msgid "If no callback is registered: progress messages are discarded." msgstr "" #. type: =item -#: ../src/guestfs.pod:2122 +#: ../src/guestfs.pod:2124 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2125 +#: ../src/guestfs.pod:2127 msgid "" "The callback function is called whenever a log message is generated by qemu, " "the appliance kernel, guestfsd (daemon), or utility programs." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2128 +#: ../src/guestfs.pod:2130 msgid "" "If the verbose flag (L</guestfs_set_verbose>) is set before launch " "(L</guestfs_launch>) then additional debug messages are generated." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2131 ../src/guestfs.pod:2145 +#: ../src/guestfs.pod:2133 ../src/guestfs.pod:2147 msgid "" "If no callback is registered: the messages are discarded unless the verbose " "flag is set in which case they are sent to stderr. You can override the " @@ -51456,62 +51628,62 @@ msgid "" msgstr "" #. type: =item -#: ../src/guestfs.pod:2136 +#: ../src/guestfs.pod:2138 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2139 +#: ../src/guestfs.pod:2141 msgid "" "The callback function is called whenever a log message is generated by the " "library part of libguestfs." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2142 +#: ../src/guestfs.pod:2144 msgid "" "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug " "messages are generated." msgstr "" #. type: =item -#: ../src/guestfs.pod:2150 +#: ../src/guestfs.pod:2152 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2153 +#: ../src/guestfs.pod:2155 msgid "" "The callback function is called whenever a trace message is generated. This " "only applies if the trace flag (L</guestfs_set_trace>) is set." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2156 +#: ../src/guestfs.pod:2158 msgid "" "If no callback is registered: the messages are sent to stderr. You can " "override the printing of trace messages to stderr by setting up a callback." msgstr "" #. type: =item -#: ../src/guestfs.pod:2160 +#: ../src/guestfs.pod:2162 msgid "GUESTFS_EVENT_ENTER (payload type: function name)" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2163 +#: ../src/guestfs.pod:2165 msgid "The callback function is called whenever a libguestfs function is entered." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2166 +#: ../src/guestfs.pod:2168 msgid "" "The payload is a string which contains the name of the function that we are " "entering (not including C<guestfs_> prefix)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2169 +#: ../src/guestfs.pod:2171 msgid "" "Note that libguestfs functions can call themselves, so you may see many " "events from a single call. A few libguestfs functions do not generate this " @@ -51519,12 +51691,12 @@ msgid "" msgstr "" #. type: =head3 -#: ../src/guestfs.pod:2177 +#: ../src/guestfs.pod:2179 msgid "guestfs_set_event_callback" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2179 +#: ../src/guestfs.pod:2181 #, no-wrap msgid "" " int guestfs_set_event_callback (guestfs_h *g,\n" @@ -51536,14 +51708,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2185 +#: ../src/guestfs.pod:2187 msgid "" "This function registers a callback (C<cb>) for all event classes in the " "C<event_bitmask>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2188 +#: ../src/guestfs.pod:2190 msgid "" "For example, to register for all log message events, you could call this " "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>. " @@ -51552,40 +51724,40 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2194 +#: ../src/guestfs.pod:2196 msgid "C<flags> should always be passed as 0." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2196 +#: ../src/guestfs.pod:2198 msgid "" "C<opaque> is an opaque pointer which is passed to the callback. You can use " "it for any purpose." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2199 +#: ../src/guestfs.pod:2201 msgid "" "The return value is the event handle (an integer) which you can use to " "delete the callback (see below)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2202 +#: ../src/guestfs.pod:2204 msgid "" "If there is an error, this function returns C<-1>, and sets the error in the " "handle in the usual way (see L</guestfs_last_error> etc.)" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2205 +#: ../src/guestfs.pod:2207 msgid "" "Callbacks remain in effect until they are deleted, or until the handle is " "closed." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2208 +#: ../src/guestfs.pod:2210 msgid "" "In the case where multiple callbacks are registered for a particular event " "class, all of the callbacks are called. The order in which multiple " @@ -51593,12 +51765,12 @@ msgid "" msgstr "" #. type: =head3 -#: ../src/guestfs.pod:2212 +#: ../src/guestfs.pod:2214 msgid "guestfs_delete_event_callback" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2214 +#: ../src/guestfs.pod:2216 #, no-wrap msgid "" " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n" @@ -51606,7 +51778,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2216 +#: ../src/guestfs.pod:2218 msgid "" "Delete a callback that was previously registered. C<event_handle> should be " "the integer that was returned by a previous call to " @@ -51614,12 +51786,12 @@ msgid "" msgstr "" #. type: =head3 -#: ../src/guestfs.pod:2220 +#: ../src/guestfs.pod:2222 msgid "guestfs_event_callback" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2222 +#: ../src/guestfs.pod:2224 #, no-wrap msgid "" " typedef void (*guestfs_event_callback) (\n" @@ -51634,12 +51806,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2231 +#: ../src/guestfs.pod:2233 msgid "This is the type of the event callback function that you have to provide." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2234 +#: ../src/guestfs.pod:2236 msgid "" "The basic parameters are: the handle (C<g>), the opaque user pointer " "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event " @@ -51647,7 +51819,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2238 +#: ../src/guestfs.pod:2240 msgid "" "The remaining parameters contain the event payload (if any). Each event may " "contain a payload, which usually relates to the event class, but for future " @@ -51656,7 +51828,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2243 +#: ../src/guestfs.pod:2245 msgid "" "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then " "there is no message buffer). Note that this message buffer can contain " @@ -51664,19 +51836,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2247 +#: ../src/guestfs.pod:2249 msgid "" "C<array> and C<array_len> is an array of 64 bit unsigned integers. At the " "moment this is only used for progress messages." msgstr "" #. type: =head3 -#: ../src/guestfs.pod:2250 +#: ../src/guestfs.pod:2252 msgid "EXAMPLE: CAPTURING LOG MESSAGES" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2252 +#: ../src/guestfs.pod:2254 msgid "" "One motivation for the generic event API was to allow GUI programs to " "capture debug and other messages. In libguestfs E<le> 1.8 these were sent " @@ -51684,7 +51856,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2256 +#: ../src/guestfs.pod:2258 msgid "" "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, " "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>. (Note that error " @@ -51692,14 +51864,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2261 +#: ../src/guestfs.pod:2263 msgid "" "Programs have to set up a callback to capture the classes of events of " "interest:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2264 +#: ../src/guestfs.pod:2266 #, no-wrap msgid "" " int eh =\n" @@ -51715,14 +51887,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2274 +#: ../src/guestfs.pod:2276 msgid "" "The callback can then direct messages to the appropriate place. In this " "example, messages are directed to syslog:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2277 +#: ../src/guestfs.pod:2279 #, no-wrap msgid "" " static void\n" @@ -51743,12 +51915,12 @@ msgid "" msgstr "" #. type: =head1 -#: ../src/guestfs.pod:2292 +#: ../src/guestfs.pod:2294 msgid "CANCELLING LONG TRANSFERS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2294 +#: ../src/guestfs.pod:2296 msgid "" "Some operations can be cancelled by the caller while they are in progress. " "Currently only operations that involve uploading or downloading data can be " @@ -51757,12 +51929,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:2299 +#: ../src/guestfs.pod:2301 msgid "guestfs_user_cancel" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2301 +#: ../src/guestfs.pod:2303 #, no-wrap msgid "" " void guestfs_user_cancel (guestfs_h *g);\n" @@ -51770,12 +51942,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2303 +#: ../src/guestfs.pod:2305 msgid "C<guestfs_user_cancel> cancels the current upload or download operation." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2306 +#: ../src/guestfs.pod:2308 msgid "" "Unlike most other libguestfs calls, this function is signal safe and thread " "safe. You can call it from a signal handler or from another thread, without " @@ -51783,7 +51955,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2310 +#: ../src/guestfs.pod:2312 msgid "" "The transfer that was in progress (if there is one) will stop shortly " "afterwards, and will return an error. The errno (see " @@ -51792,7 +51964,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2316 +#: ../src/guestfs.pod:2318 msgid "" "No cleanup is performed: for example, if a file was being uploaded then " "after cancellation there may be a partially uploaded file. It is the " @@ -51800,12 +51972,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2320 +#: ../src/guestfs.pod:2322 msgid "There are two common places that you might call C<guestfs_user_cancel>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2322 +#: ../src/guestfs.pod:2324 msgid "" "In an interactive text-based program, you might call it from a C<SIGINT> " "signal handler so that pressing C<^C> cancels the current operation. (You " @@ -51814,19 +51986,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2327 +#: ../src/guestfs.pod:2329 msgid "" "In a graphical program, when the main thread is displaying a progress bar " "with a cancel button, wire up the cancel button to call this function." msgstr "" #. type: =head1 -#: ../src/guestfs.pod:2331 +#: ../src/guestfs.pod:2333 msgid "PRIVATE DATA AREA" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2333 +#: ../src/guestfs.pod:2335 msgid "" "You can attach named pieces of private data to the libguestfs handle, fetch " "them by name, and walk over them, for the lifetime of the handle. This is " @@ -51834,12 +52006,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2338 +#: ../src/guestfs.pod:2340 msgid "To attach a named piece of data, use the following call:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2340 +#: ../src/guestfs.pod:2342 #, no-wrap msgid "" " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n" @@ -51847,7 +52019,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2342 +#: ../src/guestfs.pod:2344 msgid "" "C<key> is the name to associate with this data, and C<data> is an arbitrary " "pointer (which can be C<NULL>). Any previous item with the same key is " @@ -51855,7 +52027,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2346 +#: ../src/guestfs.pod:2348 msgid "" "You can use any C<key> you want, but your key should I<not> start with an " "underscore character. Keys beginning with an underscore character are " @@ -51865,12 +52037,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2352 +#: ../src/guestfs.pod:2354 msgid "To retrieve the pointer, use:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2354 +#: ../src/guestfs.pod:2356 #, no-wrap msgid "" " void *guestfs_get_private (guestfs_h *g, const char *key);\n" @@ -51878,7 +52050,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2356 +#: ../src/guestfs.pod:2358 msgid "" "This function returns C<NULL> if either no data is found associated with " "C<key>, or if the user previously set the C<key>'s C<data> pointer to " @@ -51886,7 +52058,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2360 +#: ../src/guestfs.pod:2362 msgid "" "Libguestfs does not try to look at or interpret the C<data> pointer in any " "way. As far as libguestfs is concerned, it need not be a valid pointer at " @@ -51897,12 +52069,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2367 +#: ../src/guestfs.pod:2369 msgid "To walk over all entries, use these two functions:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2369 +#: ../src/guestfs.pod:2371 #, no-wrap msgid "" " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n" @@ -51910,7 +52082,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2371 +#: ../src/guestfs.pod:2373 #, no-wrap msgid "" " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n" @@ -51918,7 +52090,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2373 +#: ../src/guestfs.pod:2375 msgid "" "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does " "not have any particular meaning -- keys are not returned in any defined " @@ -51928,7 +52100,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2379 +#: ../src/guestfs.pod:2381 msgid "" "C<guestfs_next_private> returns the next key, pointer pair. The return " "value of this function is also C<NULL> is there are no further entries to " @@ -51936,17 +52108,17 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2383 +#: ../src/guestfs.pod:2385 msgid "Notes about walking over entries:" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2389 +#: ../src/guestfs.pod:2391 msgid "You must not call C<guestfs_set_private> while walking over the entries." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2394 +#: ../src/guestfs.pod:2396 msgid "" "The handle maintains an internal iterator which is reset when you call " "C<guestfs_first_private>. This internal iterator is invalidated when you " @@ -51954,12 +52126,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2400 +#: ../src/guestfs.pod:2402 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2402 +#: ../src/guestfs.pod:2404 #, no-wrap msgid "" " guestfs_set_private (g, key, NULL);\n" @@ -51967,26 +52139,26 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2404 +#: ../src/guestfs.pod:2406 msgid "then that C<key> is not returned when walking." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2408 +#: ../src/guestfs.pod:2410 msgid "" "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, " "C<guestfs_next_private> or C<guestfs_set_private>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2414 +#: ../src/guestfs.pod:2416 msgid "" "The following example code shows how to print all keys and data pointers " "that are associated with the handle C<g>:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2417 +#: ../src/guestfs.pod:2419 #, no-wrap msgid "" " const char *key;\n" @@ -52000,14 +52172,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2425 +#: ../src/guestfs.pod:2427 msgid "" "More commonly you are only interested in keys that begin with an " "application-specific prefix C<foo_>. Modify the loop like so:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2428 +#: ../src/guestfs.pod:2430 #, no-wrap msgid "" " const char *key;\n" @@ -52022,7 +52194,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2437 +#: ../src/guestfs.pod:2439 msgid "" "If you need to modify keys while walking, then you have to jump back to the " "beginning of the loop. For example, to delete all keys prefixed with " @@ -52030,7 +52202,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2441 +#: ../src/guestfs.pod:2443 #, no-wrap msgid "" " const char *key;\n" @@ -52052,7 +52224,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2457 +#: ../src/guestfs.pod:2459 msgid "" "Note that the above loop is guaranteed to terminate because the keys are " "being deleted, but other manipulations of keys within the loop might not " @@ -52061,12 +52233,12 @@ msgid "" msgstr "" #. type: =head1 -#: ../src/guestfs.pod:2462 +#: ../src/guestfs.pod:2464 msgid "SYSTEMTAP" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2464 +#: ../src/guestfs.pod:2466 msgid "" "The libguestfs C library can be probed using systemtap or DTrace. This is " "true of any library, not just libguestfs. However libguestfs also contains " @@ -52074,12 +52246,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2468 +#: ../src/guestfs.pod:2470 msgid "You can list all the static markers by doing:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2470 +#: ../src/guestfs.pod:2472 #, no-wrap msgid "" " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n" @@ -52088,26 +52260,26 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2473 +#: ../src/guestfs.pod:2475 msgid "" "B<Note:> These static markers are I<not> part of the stable API and may " "change in future versions." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:2476 +#: ../src/guestfs.pod:2478 msgid "SYSTEMTAP SCRIPT EXAMPLE" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2478 +#: ../src/guestfs.pod:2480 msgid "" "This script contains examples of displaying both the static markers and some " "ordinary C entry points:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2505 +#: ../src/guestfs.pod:2507 #, no-wrap msgid "" " /* Display all calls to guestfs_mkfs* functions. */\n" @@ -52120,7 +52292,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2512 +#: ../src/guestfs.pod:2514 msgid "" "The script above can be saved to C<test.stap> and run using the L<stap(1)> " "program. Note that you either have to be root, or you have to add yourself " @@ -52129,7 +52301,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2517 +#: ../src/guestfs.pod:2519 #, no-wrap msgid "" " # stap /tmp/test.stap\n" @@ -52138,17 +52310,17 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2520 +#: ../src/guestfs.pod:2522 msgid "In another terminal, run a guestfish command such as this:" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2524 +#: ../src/guestfs.pod:2526 msgid "In the first terminal, stap trace output similar to this is shown:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2526 +#: ../src/guestfs.pod:2528 #, no-wrap msgid "" " 1318248056692655 (+0):\tlaunch_start\n" @@ -52162,19 +52334,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2535 +#: ../src/guestfs.pod:2537 msgid "" "<!-- old anchor for the next section --> <a " "name=\"state_machine_and_low_level_event_api\"/>" msgstr "" #. type: =head1 -#: ../src/guestfs.pod:2540 +#: ../src/guestfs.pod:2542 msgid "ARCHITECTURE" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2542 +#: ../src/guestfs.pod:2544 msgid "" "Internally, libguestfs is implemented by running an appliance (a special " "type of small virtual machine) using L<qemu(1)>. Qemu runs as a child " @@ -52182,7 +52354,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2546 +#: ../src/guestfs.pod:2548 #, no-wrap msgid "" " ___________________\n" @@ -52208,14 +52380,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2566 +#: ../src/guestfs.pod:2568 msgid "" "The library, linked to the main program, creates the child process and hence " "the appliance in the L</guestfs_launch> function." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2569 +#: ../src/guestfs.pod:2571 msgid "" "Inside the appliance is a Linux kernel and a complete stack of userspace " "tools (such as LVM and ext2 programs) and a small controlling daemon called " @@ -52227,7 +52399,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2578 +#: ../src/guestfs.pod:2580 msgid "" "A common misunderstanding is that the appliance \"is\" the virtual machine. " "Although the disk image you are attached to might also be used by some " @@ -52238,17 +52410,17 @@ msgid "" msgstr "" #. type: =head1 -#: ../src/guestfs.pod:2585 +#: ../src/guestfs.pod:2587 msgid "STATE MACHINE" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2587 +#: ../src/guestfs.pod:2589 msgid "libguestfs uses a state machine to model the child process:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2589 +#: ../src/guestfs.pod:2591 #, no-wrap msgid "" " |\n" @@ -52276,7 +52448,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2611 +#: ../src/guestfs.pod:2613 msgid "" "The normal transitions are (1) CONFIG (when the handle is created, but there " "is no child process), (2) LAUNCHING (when the child process is booting up), " @@ -52285,7 +52457,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2616 +#: ../src/guestfs.pod:2618 msgid "" "The guest may be killed by L</guestfs_kill_subprocess>, or may die " "asynchronously at any time (eg. due to some internal error), and that causes " @@ -52293,14 +52465,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2620 +#: ../src/guestfs.pod:2622 msgid "" "Configuration commands for qemu such as L</guestfs_add_drive> can only be " "issued when in the CONFIG state." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2623 +#: ../src/guestfs.pod:2625 msgid "" "The API offers one call that goes from CONFIG through LAUNCHING to READY. " "L</guestfs_launch> blocks until the child process is READY to accept " @@ -52309,7 +52481,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2629 +#: ../src/guestfs.pod:2631 msgid "" "API actions such as L</guestfs_mount> can only be issued when in the READY " "state. These API calls block waiting for the command to be carried out. " @@ -52318,7 +52490,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2634 +#: ../src/guestfs.pod:2636 msgid "" "Finally, the child process sends asynchronous messages back to the main " "program, such as kernel log messages. You can register a callback to " @@ -52326,17 +52498,17 @@ msgid "" msgstr "" #. type: =head1 -#: ../src/guestfs.pod:2638 +#: ../src/guestfs.pod:2640 msgid "INTERNALS" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:2640 +#: ../src/guestfs.pod:2642 msgid "APPLIANCE BOOT PROCESS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2642 +#: ../src/guestfs.pod:2644 msgid "" "This process has evolved and continues to evolve. The description here " "corresponds only to the current version of libguestfs and is provided for " @@ -52344,55 +52516,55 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2646 +#: ../src/guestfs.pod:2648 msgid "" "In order to follow the stages involved below, enable libguestfs debugging " "(set the environment variable C<LIBGUESTFS_DEBUG=1>)." msgstr "" #. type: =item -#: ../src/guestfs.pod:2651 +#: ../src/guestfs.pod:2653 msgid "Create the appliance" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2653 +#: ../src/guestfs.pod:2655 msgid "" "C<febootstrap-supermin-helper> is invoked to create the kernel, a small " "initrd and the appliance." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2656 +#: ../src/guestfs.pod:2658 msgid "" "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another " "directory if C<TMPDIR> is set)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2659 +#: ../src/guestfs.pod:2661 msgid "" "For a complete description of how the appliance is created and cached, read " "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages." msgstr "" #. type: =item -#: ../src/guestfs.pod:2663 +#: ../src/guestfs.pod:2665 msgid "Start qemu and boot the kernel" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2665 +#: ../src/guestfs.pod:2667 msgid "qemu is invoked to boot the kernel." msgstr "" #. type: =item -#: ../src/guestfs.pod:2667 +#: ../src/guestfs.pod:2669 msgid "Run the initrd" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2669 +#: ../src/guestfs.pod:2671 msgid "" "C<febootstrap-supermin-helper> builds a small initrd. The initrd is not the " "appliance. The purpose of the initrd is to load enough kernel modules in " @@ -52400,21 +52572,21 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2673 +#: ../src/guestfs.pod:2675 msgid "" "The initrd is a cpio archive called " "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2676 +#: ../src/guestfs.pod:2678 msgid "" "When the initrd has started you will see messages showing that kernel " "modules are being loaded, similar to this:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2679 +#: ../src/guestfs.pod:2681 #, no-wrap msgid "" " febootstrap: ext2 mini initrd starting up\n" @@ -52425,12 +52597,12 @@ msgid "" msgstr "" #. type: =item -#: ../src/guestfs.pod:2684 +#: ../src/guestfs.pod:2686 msgid "Find and mount the appliance device" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2686 +#: ../src/guestfs.pod:2688 msgid "" "The appliance is a sparse file containing an ext2 filesystem which contains " "a familiar (although reduced in size) Linux operating system. It would " @@ -52438,33 +52610,33 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2690 +#: ../src/guestfs.pod:2692 msgid "" "The regular disks being inspected by libguestfs are the first devices " "exposed by qemu (eg. as C</dev/vda>)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2693 +#: ../src/guestfs.pod:2695 msgid "" "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if " "there was only one regular disk)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2696 +#: ../src/guestfs.pod:2698 msgid "" "Thus the final job of the initrd is to locate the appliance disk, mount it, " "and switch root into the appliance, and run C</init> from the appliance." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2700 +#: ../src/guestfs.pod:2702 msgid "If this works successfully you will see messages such as:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2702 +#: ../src/guestfs.pod:2704 #, no-wrap msgid "" " febootstrap: picked /sys/block/vdb/dev as root device\n" @@ -52476,19 +52648,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2708 +#: ../src/guestfs.pod:2710 msgid "" "Note that C<Starting /init script ...> indicates that the appliance's init " "script is now running." msgstr "" #. type: =item -#: ../src/guestfs.pod:2711 +#: ../src/guestfs.pod:2713 msgid "Initialize the appliance" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2713 +#: ../src/guestfs.pod:2715 msgid "" "The appliance itself now initializes itself. This involves starting certain " "processes like C<udev>, possibly printing some debug information, and " @@ -52496,19 +52668,19 @@ msgid "" msgstr "" #. type: =item -#: ../src/guestfs.pod:2717 +#: ../src/guestfs.pod:2719 msgid "The daemon" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2719 +#: ../src/guestfs.pod:2721 msgid "" "Finally the daemon (C<guestfsd>) runs inside the appliance. If it runs you " "should see:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2722 +#: ../src/guestfs.pod:2724 #, no-wrap msgid "" " verbose daemon enabled\n" @@ -52516,14 +52688,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2724 +#: ../src/guestfs.pod:2726 msgid "" "The daemon expects to see a named virtio-serial port exposed by qemu and " "connected on the other end to the library." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2727 +#: ../src/guestfs.pod:2729 msgid "" "The daemon connects to this port (and hence to the library) and sends a four " "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication " @@ -52531,19 +52703,19 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:2733 +#: ../src/guestfs.pod:2735 msgid "COMMUNICATION PROTOCOL" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2735 +#: ../src/guestfs.pod:2737 msgid "" "Don't rely on using this protocol directly. This section documents how it " "currently works, but it may change at any time." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2738 +#: ../src/guestfs.pod:2740 msgid "" "The protocol used to talk between the library and the daemon running inside " "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC " @@ -52551,14 +52723,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2742 +#: ../src/guestfs.pod:2744 msgid "" "The detailed format of structures is in C<src/guestfs_protocol.x> (note: " "this file is automatically generated)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2745 +#: ../src/guestfs.pod:2747 msgid "" "There are two broad cases, ordinary functions that don't have any C<FileIn> " "and C<FileOut> parameters, which are handled with very simple request/reply " @@ -52568,17 +52740,17 @@ msgid "" msgstr "" #. type: =head3 -#: ../src/guestfs.pod:2752 +#: ../src/guestfs.pod:2754 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2754 +#: ../src/guestfs.pod:2756 msgid "For ordinary functions, the request message is:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2756 +#: ../src/guestfs.pod:2758 #, no-wrap msgid "" " total length (header + arguments,\n" @@ -52589,7 +52761,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2761 +#: ../src/guestfs.pod:2763 msgid "" "The total length field allows the daemon to allocate a fixed size buffer " "into which it slurps the rest of the message. As a result, the total length " @@ -52598,21 +52770,21 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2767 +#: ../src/guestfs.pod:2769 msgid "" "Note also that many functions don't take any arguments, in which case the " "C<guestfs_I<foo>_args> is completely omitted." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2770 +#: ../src/guestfs.pod:2772 msgid "" "The header contains the procedure number (C<guestfs_proc>) which is how the " "receiver knows what type of args structure to expect, or none at all." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2774 +#: ../src/guestfs.pod:2776 msgid "" "For functions that take optional arguments, the optional arguments are " "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary " @@ -52624,12 +52796,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2782 +#: ../src/guestfs.pod:2784 msgid "The reply message for ordinary functions is:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2784 +#: ../src/guestfs.pod:2786 #, no-wrap msgid "" " total length (header + ret,\n" @@ -52640,26 +52812,26 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2789 +#: ../src/guestfs.pod:2791 msgid "" "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for " "functions that return no formal return values." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2792 +#: ../src/guestfs.pod:2794 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2795 +#: ../src/guestfs.pod:2797 msgid "" "In the case of an error, a flag is set in the header, and the reply message " "is slightly changed:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2798 +#: ../src/guestfs.pod:2800 #, no-wrap msgid "" " total length (header + error,\n" @@ -52670,19 +52842,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2803 +#: ../src/guestfs.pod:2805 msgid "" "The C<guestfs_message_error> structure contains the error message as a " "string." msgstr "" #. type: =head3 -#: ../src/guestfs.pod:2806 +#: ../src/guestfs.pod:2808 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2808 +#: ../src/guestfs.pod:2810 msgid "" "A C<FileIn> parameter indicates that we transfer a file I<into> the guest. " "The normal request message is sent (see above). However this is followed by " @@ -52690,7 +52862,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2812 +#: ../src/guestfs.pod:2814 #, no-wrap msgid "" " total length (header + arguments,\n" @@ -52704,12 +52876,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2820 +#: ../src/guestfs.pod:2822 msgid "The \"sequence of chunks\" is:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2822 +#: ../src/guestfs.pod:2824 #, no-wrap msgid "" " length of chunk (not including length word itself)\n" @@ -52723,7 +52895,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2830 +#: ../src/guestfs.pod:2832 msgid "" "The final chunk has the C<data_len> field set to zero. Additionally a flag " "is set in the final chunk to indicate either successful completion or early " @@ -52731,7 +52903,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2834 +#: ../src/guestfs.pod:2836 msgid "" "At time of writing there are no functions that have more than one FileIn " "parameter. However this is (theoretically) supported, by sending the " @@ -52740,7 +52912,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2839 +#: ../src/guestfs.pod:2841 msgid "" "Both the library (sender) I<and> the daemon (receiver) may cancel the " "transfer. The library does this by sending a chunk with a special flag set " @@ -52749,7 +52921,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2845 +#: ../src/guestfs.pod:2847 msgid "" "The daemon may also cancel. It does this by writing a special word " "C<GUESTFS_CANCEL_FLAG> to the socket. The library listens for this during " @@ -52761,7 +52933,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2854 +#: ../src/guestfs.pod:2856 msgid "" "This protocol allows the transfer of arbitrary sized files (no 32 bit " "limit), and also files where the size is not known in advance (eg. from " @@ -52771,19 +52943,19 @@ msgid "" msgstr "" #. type: =head3 -#: ../src/guestfs.pod:2860 +#: ../src/guestfs.pod:2862 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2862 +#: ../src/guestfs.pod:2864 msgid "" "The protocol for FileOut parameters is exactly the same as for FileIn " "parameters, but with the roles of daemon and library reversed." msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2865 +#: ../src/guestfs.pod:2867 #, no-wrap msgid "" " total length (header + ret,\n" @@ -52797,12 +52969,12 @@ msgid "" msgstr "" #. type: =head3 -#: ../src/guestfs.pod:2873 +#: ../src/guestfs.pod:2875 msgid "INITIAL MESSAGE" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2875 +#: ../src/guestfs.pod:2877 msgid "" "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) " "which indicates that the guest and daemon is alive. This is what " @@ -52810,12 +52982,12 @@ msgid "" msgstr "" #. type: =head3 -#: ../src/guestfs.pod:2879 +#: ../src/guestfs.pod:2881 msgid "PROGRESS NOTIFICATION MESSAGES" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2881 +#: ../src/guestfs.pod:2883 msgid "" "The daemon may send progress notification messages at any time. These are " "distinguished by the normal length word being replaced by " @@ -52823,7 +52995,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2885 +#: ../src/guestfs.pod:2887 msgid "" "The library turns them into progress callbacks (see " "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards " @@ -52831,7 +53003,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2889 +#: ../src/guestfs.pod:2891 msgid "" "The daemon self-limits the frequency of progress messages it sends (see " "C<daemon/proto.c:notify_progress>). Not all calls generate progress " @@ -52839,12 +53011,12 @@ msgid "" msgstr "" #. type: =head1 -#: ../src/guestfs.pod:2893 +#: ../src/guestfs.pod:2895 msgid "LIBGUESTFS VERSION NUMBERS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2895 +#: ../src/guestfs.pod:2897 msgid "" "Since April 2010, libguestfs has started to make separate development and " "stable releases, along with corresponding branches in our git repository. " @@ -52852,7 +53024,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:2900 +#: ../src/guestfs.pod:2902 #, no-wrap msgid "" " even numbers for stable: 1.2.x, 1.4.x, ...\n" @@ -52869,12 +53041,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2911 +#: ../src/guestfs.pod:2913 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2913 +#: ../src/guestfs.pod:2915 msgid "" "As time passes we cherry pick fixes from the development branch and backport " "those into the stable branch, the effect being that the stable branch should " @@ -52884,26 +53056,26 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2919 +#: ../src/guestfs.pod:2921 msgid "Our criteria for backporting changes are:" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2925 +#: ../src/guestfs.pod:2927 msgid "" "Documentation changes which don't affect any code are backported unless the " "documentation refers to a future feature which is not in stable." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2931 +#: ../src/guestfs.pod:2933 msgid "" "Bug fixes which are not controversial, fix obvious problems, and have been " "well tested are backported." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2936 +#: ../src/guestfs.pod:2938 msgid "" "Simple rearrangements of code which shouldn't affect how it works get " "backported. This is so that the code in the two branches doesn't get too " @@ -52911,7 +53083,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2942 +#: ../src/guestfs.pod:2944 msgid "" "We I<don't> backport new features, new APIs, new tools etc, except in one " "exceptional case: the new feature is required in order to implement an " @@ -52919,7 +53091,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2948 +#: ../src/guestfs.pod:2950 msgid "" "A new stable branch starts when we think the new features in development are " "substantial and compelling enough over the current stable branch to warrant " @@ -52930,17 +53102,17 @@ msgid "" msgstr "" #. type: =head1 -#: ../src/guestfs.pod:2956 +#: ../src/guestfs.pod:2958 msgid "EXTENDING LIBGUESTFS" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:2958 +#: ../src/guestfs.pod:2960 msgid "ADDING A NEW API ACTION" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2960 +#: ../src/guestfs.pod:2962 msgid "" "Large amounts of boilerplate code in libguestfs (RPC, bindings, " "documentation) are generated, and this makes it easy to extend the " @@ -52948,19 +53120,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2964 +#: ../src/guestfs.pod:2966 msgid "To add a new API action there are two changes:" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2970 +#: ../src/guestfs.pod:2972 msgid "" "You need to add a description of the call (name, parameters, return type, " "tests, documentation) to C<generator/actions.ml>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:2973 +#: ../src/guestfs.pod:2975 msgid "" "There are two sorts of API action, depending on whether the call goes " "through to the daemon in the appliance, or is serviced entirely by the " @@ -52971,7 +53143,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2981 +#: ../src/guestfs.pod:2983 msgid "" "Most new actions are of the first type, and get added to the " "C<daemon_functions> list. Each function has a unique procedure number used " @@ -52981,7 +53153,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2987 +#: ../src/guestfs.pod:2989 msgid "" "For library-only actions of the second type, add to the " "C<non_daemon_functions> list. Since these functions are serviced by the " @@ -52991,36 +53163,36 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2995 +#: ../src/guestfs.pod:2997 msgid "Implement the action (in C):" msgstr "" #. type: textblock -#: ../src/guestfs.pod:2997 +#: ../src/guestfs.pod:2999 msgid "" "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the " "C<daemon/> directory." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3000 +#: ../src/guestfs.pod:3002 msgid "" "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> " "(note: double underscore) in the C<src/> directory." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3003 +#: ../src/guestfs.pod:3005 msgid "In either case, use another function as an example of what to do." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3007 +#: ../src/guestfs.pod:3009 msgid "After making these changes, use C<make> to compile." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3009 +#: ../src/guestfs.pod:3011 msgid "" "Note that you don't need to implement the RPC, language bindings, manual " "pages or anything else. It's all automatically generated from the OCaml " @@ -53028,12 +53200,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:3013 +#: ../src/guestfs.pod:3015 msgid "ADDING TESTS FOR AN API ACTION" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3015 +#: ../src/guestfs.pod:3017 msgid "" "You can supply zero or as many tests as you want per API call. The tests " "can either be added as part of the API description " @@ -53043,61 +53215,61 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3021 +#: ../src/guestfs.pod:3023 msgid "" "The following describes the test environment used when you add an API test " "in C<actions.ml>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3024 +#: ../src/guestfs.pod:3026 msgid "The test environment has 4 block devices:" msgstr "" #. type: =item -#: ../src/guestfs.pod:3028 +#: ../src/guestfs.pod:3030 msgid "C</dev/sda> 500MB" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3030 +#: ../src/guestfs.pod:3032 msgid "General block device for testing." msgstr "" #. type: =item -#: ../src/guestfs.pod:3032 +#: ../src/guestfs.pod:3034 msgid "C</dev/sdb> 50MB" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3034 +#: ../src/guestfs.pod:3036 msgid "" "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write " "operations." msgstr "" #. type: =item -#: ../src/guestfs.pod:3037 +#: ../src/guestfs.pod:3039 msgid "C</dev/sdc> 10MB" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3039 +#: ../src/guestfs.pod:3041 msgid "Used in a few tests where two block devices are needed." msgstr "" #. type: =item -#: ../src/guestfs.pod:3041 +#: ../src/guestfs.pod:3043 msgid "C</dev/sdd>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3043 +#: ../src/guestfs.pod:3045 msgid "ISO with fixed content (see C<images/test.iso>)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3047 +#: ../src/guestfs.pod:3049 msgid "" "To be able to run the tests in a reasonable amount of time, the libguestfs " "appliance and block devices are reused between tests. So don't try testing " @@ -53105,7 +53277,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3051 +#: ../src/guestfs.pod:3053 msgid "" "Each test starts with an initial scenario, selected using one of the " "C<Init*> expressions, described in C<generator/types.ml>. These initialize " @@ -53115,7 +53287,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3057 +#: ../src/guestfs.pod:3059 msgid "" "You can add a prerequisite clause to any individual test. This is a " "run-time check, which, if it fails, causes the test to be skipped. Useful " @@ -53125,14 +53297,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3063 +#: ../src/guestfs.pod:3065 msgid "" "In addition, packagers can skip individual tests by setting environment " "variables before running C<make check>." msgstr "" #. type: verbatim -#: ../src/guestfs.pod:3066 +#: ../src/guestfs.pod:3068 #, no-wrap msgid "" " SKIP_TEST_<CMD>_<NUM>=1\n" @@ -53140,12 +53312,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3068 +#: ../src/guestfs.pod:3070 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>." msgstr "" #. type: verbatim -#: ../src/guestfs.pod:3072 +#: ../src/guestfs.pod:3074 #, no-wrap msgid "" " SKIP_TEST_<CMD>=1\n" @@ -53153,17 +53325,17 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3074 +#: ../src/guestfs.pod:3076 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3076 +#: ../src/guestfs.pod:3078 msgid "Packagers can run only certain tests by setting for example:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:3078 +#: ../src/guestfs.pod:3080 #, no-wrap msgid "" " TEST_ONLY=\"vfs_type zerofree\"\n" @@ -53171,29 +53343,29 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3080 +#: ../src/guestfs.pod:3082 msgid "" "See C<tests/c-api/tests.c> for more details of how these environment " "variables work." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:3083 +#: ../src/guestfs.pod:3085 msgid "DEBUGGING NEW API ACTIONS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3085 +#: ../src/guestfs.pod:3087 msgid "Test new actions work before submitting them." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3087 +#: ../src/guestfs.pod:3089 msgid "You can use guestfish to try out new commands." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3089 +#: ../src/guestfs.pod:3091 msgid "" "Debugging the daemon is a problem because it runs inside a minimal " "environment. However you can fprintf messages in the daemon to stderr, and " @@ -53201,12 +53373,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:3093 +#: ../src/guestfs.pod:3095 msgid "FORMATTING CODE AND OTHER CONVENTIONS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3095 +#: ../src/guestfs.pod:3097 msgid "" "Our C source code generally adheres to some basic code-formatting " "conventions. The existing code base is not totally consistent on this " @@ -53216,14 +53388,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3101 +#: ../src/guestfs.pod:3103 msgid "" "If you use Emacs, add the following to one of one of your start-up files " "(e.g., ~/.emacs), to help ensure that you get indentation right:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:3104 +#: ../src/guestfs.pod:3106 #, no-wrap msgid "" " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n" @@ -53239,7 +53411,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:3114 +#: ../src/guestfs.pod:3116 #, no-wrap msgid "" " ;;; When editing C sources in libguestfs, use this style.\n" @@ -53257,12 +53429,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3126 +#: ../src/guestfs.pod:3128 msgid "Enable warnings when compiling (and fix any problems this finds):" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:3129 +#: ../src/guestfs.pod:3131 #, no-wrap msgid "" " ./configure --enable-gcc-warnings\n" @@ -53270,12 +53442,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3131 +#: ../src/guestfs.pod:3133 msgid "Useful targets are:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:3133 +#: ../src/guestfs.pod:3135 #, no-wrap msgid "" " make syntax-check -j1 -k # checks for various syntax and\n" @@ -53284,7 +53456,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:3136 +#: ../src/guestfs.pod:3138 #, no-wrap msgid "" " make check # runs the test suite\n" @@ -53292,7 +53464,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:3138 +#: ../src/guestfs.pod:3140 #, no-wrap msgid "" " make extra-tests # in-depth testing using valgrind\n" @@ -53301,43 +53473,43 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:3141 +#: ../src/guestfs.pod:3143 msgid "DAEMON CUSTOM PRINTF FORMATTERS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3143 +#: ../src/guestfs.pod:3145 msgid "" "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, " "which are used to do shell quoting." msgstr "" #. type: =item -#: ../src/guestfs.pod:3148 +#: ../src/guestfs.pod:3150 msgid "%Q" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3150 +#: ../src/guestfs.pod:3152 msgid "" "Simple shell quoted string. Any spaces or other shell characters are " "escaped for you." msgstr "" #. type: =item -#: ../src/guestfs.pod:3153 +#: ../src/guestfs.pod:3155 msgid "%R" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3155 +#: ../src/guestfs.pod:3157 msgid "" "Same as C<%Q> except the string is treated as a path which is prefixed by " "the sysroot." msgstr "" #. type: verbatim -#: ../src/guestfs.pod:3162 +#: ../src/guestfs.pod:3164 #, no-wrap msgid "" " asprintf (&cmd, \"cat %R\", path);\n" @@ -53345,12 +53517,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3164 +#: ../src/guestfs.pod:3166 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3166 +#: ../src/guestfs.pod:3168 msgid "" "I<Note:> Do I<not> use these when you are passing parameters to the " "C<command{,r,v,rv}()> functions. These parameters do NOT need to be quoted " @@ -53359,12 +53531,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:3172 +#: ../src/guestfs.pod:3174 msgid "SUBMITTING YOUR NEW API ACTIONS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3174 +#: ../src/guestfs.pod:3176 msgid "" "Submit patches to the mailing list: " "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to " @@ -53372,17 +53544,17 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:3178 +#: ../src/guestfs.pod:3180 msgid "INTERNATIONALIZATION (I18N) SUPPORT" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3180 +#: ../src/guestfs.pod:3182 msgid "We support i18n (gettext anyhow) in the library." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3182 +#: ../src/guestfs.pod:3184 msgid "" "However many messages come from the daemon, and we don't translate those at " "the moment. One reason is that the appliance generally has all locale files " @@ -53391,103 +53563,103 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3188 +#: ../src/guestfs.pod:3190 msgid "" "Debugging messages are never translated, since they are intended for the " "programmers." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:3191 +#: ../src/guestfs.pod:3193 msgid "SOURCE CODE SUBDIRECTORIES" msgstr "" #. type: =item -#: ../src/guestfs.pod:3195 +#: ../src/guestfs.pod:3197 msgid "C<align>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3197 +#: ../src/guestfs.pod:3199 msgid "L<virt-alignment-scan(1)> command and documentation." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3201 +#: ../src/guestfs.pod:3203 msgid "The libguestfs appliance, build scripts and so on." msgstr "" #. type: =item -#: ../src/guestfs.pod:3203 +#: ../src/guestfs.pod:3205 msgid "C<cat>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3205 +#: ../src/guestfs.pod:3207 msgid "" "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and " "documentation." msgstr "" #. type: =item -#: ../src/guestfs.pod:3208 +#: ../src/guestfs.pod:3210 msgid "C<contrib>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3210 +#: ../src/guestfs.pod:3212 msgid "Outside contributions, experimental parts." msgstr "" #. type: =item -#: ../src/guestfs.pod:3212 +#: ../src/guestfs.pod:3214 msgid "C<daemon>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3214 +#: ../src/guestfs.pod:3216 msgid "" "The daemon that runs inside the libguestfs appliance and carries out " "actions." msgstr "" #. type: =item -#: ../src/guestfs.pod:3217 +#: ../src/guestfs.pod:3219 msgid "C<df>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3219 +#: ../src/guestfs.pod:3221 msgid "L<virt-df(1)> command and documentation." msgstr "" #. type: =item -#: ../src/guestfs.pod:3221 +#: ../src/guestfs.pod:3223 msgid "C<edit>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3223 +#: ../src/guestfs.pod:3225 msgid "L<virt-edit(1)> command and documentation." msgstr "" #. type: =item -#: ../src/guestfs.pod:3225 +#: ../src/guestfs.pod:3227 msgid "C<examples>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3227 +#: ../src/guestfs.pod:3229 msgid "C API example code." msgstr "" #. type: =item -#: ../src/guestfs.pod:3229 +#: ../src/guestfs.pod:3231 msgid "C<fish>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3231 +#: ../src/guestfs.pod:3233 msgid "" "L<guestfish(1)>, the command-line shell, and various shell scripts built on " "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, " @@ -53495,79 +53667,79 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3237 +#: ../src/guestfs.pod:3239 msgid "L<virt-format(1)> command and documentation." msgstr "" #. type: =item -#: ../src/guestfs.pod:3239 +#: ../src/guestfs.pod:3241 msgid "C<fuse>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3241 +#: ../src/guestfs.pod:3243 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs." msgstr "" #. type: =item -#: ../src/guestfs.pod:3243 +#: ../src/guestfs.pod:3245 msgid "C<generator>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3245 +#: ../src/guestfs.pod:3247 msgid "" "The crucially important generator, used to automatically generate large " "amounts of boilerplate C code for things like RPC and bindings." msgstr "" #. type: =item -#: ../src/guestfs.pod:3248 +#: ../src/guestfs.pod:3250 msgid "C<inspector>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3250 +#: ../src/guestfs.pod:3252 msgid "L<virt-inspector(1)>, the virtual machine image inspector." msgstr "" #. type: =item -#: ../src/guestfs.pod:3252 +#: ../src/guestfs.pod:3254 msgid "C<logo>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3254 +#: ../src/guestfs.pod:3256 msgid "Logo used on the website. The fish is called Arthur by the way." msgstr "" #. type: =item -#: ../src/guestfs.pod:3256 +#: ../src/guestfs.pod:3258 msgid "C<m4>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3258 +#: ../src/guestfs.pod:3260 msgid "M4 macros used by autoconf." msgstr "" #. type: =item -#: ../src/guestfs.pod:3260 +#: ../src/guestfs.pod:3262 msgid "C<po>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3262 +#: ../src/guestfs.pod:3264 msgid "Translations of simple gettext strings." msgstr "" #. type: =item -#: ../src/guestfs.pod:3264 +#: ../src/guestfs.pod:3266 msgid "C<po-docs>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3266 +#: ../src/guestfs.pod:3268 msgid "" "The build infrastructure and PO files for translations of manpages and POD " "files. Eventually this will be combined with the C<po> directory, but that " @@ -53575,84 +53747,84 @@ msgid "" msgstr "" #. type: =item -#: ../src/guestfs.pod:3270 +#: ../src/guestfs.pod:3272 msgid "C<rescue>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3272 +#: ../src/guestfs.pod:3274 msgid "L<virt-rescue(1)> command and documentation." msgstr "" #. type: =item -#: ../src/guestfs.pod:3274 +#: ../src/guestfs.pod:3276 msgid "C<resize>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3276 +#: ../src/guestfs.pod:3278 msgid "L<virt-resize(1)> command and documentation." msgstr "" #. type: =item -#: ../src/guestfs.pod:3278 +#: ../src/guestfs.pod:3280 msgid "C<sparsify>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3280 +#: ../src/guestfs.pod:3282 msgid "L<virt-sparsify(1)> command and documentation." msgstr "" #. type: =item -#: ../src/guestfs.pod:3282 +#: ../src/guestfs.pod:3284 msgid "C<src>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3284 +#: ../src/guestfs.pod:3286 msgid "Source code to the C library." msgstr "" #. type: =item -#: ../src/guestfs.pod:3286 +#: ../src/guestfs.pod:3288 msgid "C<sysprep>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3288 +#: ../src/guestfs.pod:3290 msgid "L<virt-sysprep(1)> command and documentation." msgstr "" #. type: =item -#: ../src/guestfs.pod:3290 +#: ../src/guestfs.pod:3292 msgid "C<test-tool>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3292 +#: ../src/guestfs.pod:3294 msgid "" "Test tool for end users to test if their qemu/kernel combination will work " "with libguestfs." msgstr "" #. type: =item -#: ../src/guestfs.pod:3295 +#: ../src/guestfs.pod:3297 msgid "C<tests>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3297 +#: ../src/guestfs.pod:3299 msgid "Tests." msgstr "" #. type: =item -#: ../src/guestfs.pod:3299 +#: ../src/guestfs.pod:3301 msgid "C<tmp>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3301 +#: ../src/guestfs.pod:3303 msgid "" "Used for temporary files when running the tests (instead of C</tmp> etc). " "The reason is so that you can run multiple parallel tests of libguestfs " @@ -53660,93 +53832,78 @@ msgid "" "another." msgstr "" -#. type: textblock -#: ../src/guestfs.pod:3306 -msgid "" -"If you are using libvirt + sVirt with SELinux enforcing, then you have to " -"label this directory:" -msgstr "" - -#. type: verbatim -#: ../src/guestfs.pod:3309 -#, no-wrap -msgid "" -" chcon --reference=/tmp tmp\n" -"\n" -msgstr "" - #. type: =item -#: ../src/guestfs.pod:3311 +#: ../src/guestfs.pod:3308 msgid "C<tools>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3313 +#: ../src/guestfs.pod:3310 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)." msgstr "" #. type: =item -#: ../src/guestfs.pod:3315 +#: ../src/guestfs.pod:3312 msgid "C<csharp>" msgstr "" #. type: =item -#: ../src/guestfs.pod:3317 +#: ../src/guestfs.pod:3314 msgid "C<erlang>" msgstr "" #. type: =item -#: ../src/guestfs.pod:3319 +#: ../src/guestfs.pod:3316 msgid "C<gobject>" msgstr "" #. type: =item -#: ../src/guestfs.pod:3321 +#: ../src/guestfs.pod:3318 msgid "C<haskell>" msgstr "" #. type: =item -#: ../src/guestfs.pod:3323 +#: ../src/guestfs.pod:3320 msgid "C<java>" msgstr "" #. type: =item -#: ../src/guestfs.pod:3325 +#: ../src/guestfs.pod:3322 msgid "C<ocaml>" msgstr "" #. type: =item -#: ../src/guestfs.pod:3327 +#: ../src/guestfs.pod:3324 msgid "C<php>" msgstr "" #. type: =item -#: ../src/guestfs.pod:3329 +#: ../src/guestfs.pod:3326 msgid "C<perl>" msgstr "" #. type: =item -#: ../src/guestfs.pod:3331 +#: ../src/guestfs.pod:3328 msgid "C<python>" msgstr "" #. type: =item -#: ../src/guestfs.pod:3333 +#: ../src/guestfs.pod:3330 msgid "C<ruby>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3335 +#: ../src/guestfs.pod:3332 msgid "Language bindings." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:3339 +#: ../src/guestfs.pod:3336 msgid "MAKING A STABLE RELEASE" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3341 +#: ../src/guestfs.pod:3338 msgid "" "When we make a stable release, there are several steps documented here. See " "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable " @@ -53754,32 +53911,32 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3349 +#: ../src/guestfs.pod:3346 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3354 +#: ../src/guestfs.pod:3351 msgid "Finalize C<guestfs-release-notes.pod>" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3358 +#: ../src/guestfs.pod:3355 msgid "Update ROADMAP." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3362 +#: ../src/guestfs.pod:3359 msgid "Run C<src/api-support/update-from-tarballs.sh>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3366 +#: ../src/guestfs.pod:3363 msgid "Push and pull from Transifex." msgstr "" #. type: verbatim -#: ../src/guestfs.pod:3370 +#: ../src/guestfs.pod:3367 #, no-wrap msgid "" " tx push -s\n" @@ -53787,12 +53944,12 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3372 +#: ../src/guestfs.pod:3369 msgid "to push the latest POT files to Transifex. Then run:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:3374 +#: ../src/guestfs.pod:3371 #, no-wrap msgid "" " ./tx-pull.sh\n" @@ -53800,24 +53957,24 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3376 +#: ../src/guestfs.pod:3373 msgid "which is a wrapper to pull the latest translated C<*.po> files." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3380 +#: ../src/guestfs.pod:3377 msgid "" "Create new stable and development directories under " "L<http://libguestfs.org/download>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3385 +#: ../src/guestfs.pod:3382 msgid "Create the branch in git:" msgstr "" #. type: verbatim -#: ../src/guestfs.pod:3387 +#: ../src/guestfs.pod:3384 #, no-wrap msgid "" " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n" @@ -53828,17 +53985,17 @@ msgid "" msgstr "" #. type: =head1 -#: ../src/guestfs.pod:3394 +#: ../src/guestfs.pod:3391 msgid "LIMITS" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:3396 +#: ../src/guestfs.pod:3393 msgid "PROTOCOL LIMITS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3398 +#: ../src/guestfs.pod:3395 msgid "" "Internally libguestfs uses a message-based protocol to pass API calls and " "their responses to and from a small \"appliance\" (see L</INTERNALS> for " @@ -53849,7 +54006,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3406 +#: ../src/guestfs.pod:3403 msgid "" "In libguestfs E<lt> 1.19.32, several calls had to encode either their entire " "argument list or their entire return value (or sometimes both) in a single " @@ -53865,7 +54022,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3419 +#: ../src/guestfs.pod:3416 msgid "" "L</guestfs_cat>, L</guestfs_find>, L</guestfs_read_file>, " "L</guestfs_read_lines>, L</guestfs_write>, L</guestfs_write_append>, " @@ -53874,19 +54031,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3424 +#: ../src/guestfs.pod:3421 msgid "" "See also L</UPLOADING> and L</DOWNLOADING> for further information about " "copying large amounts of data into or out of a filesystem." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:3427 +#: ../src/guestfs.pod:3424 msgid "MAXIMUM NUMBER OF DISKS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3429 +#: ../src/guestfs.pod:3426 msgid "" "In libguestfs E<ge> 1.19.7, you can query the maximum number of disks that " "may be added by calling L</guestfs_max_disks>. In earlier versions of " @@ -53895,14 +54052,14 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3434 +#: ../src/guestfs.pod:3431 msgid "" "The rest of this section covers implementation details, which could change " "in future." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3437 +#: ../src/guestfs.pod:3434 msgid "" "When using virtio-scsi disks (the default if available in qemu) the current " "limit is B<255> disks. When using virtio-blk (the old default) the limit is " @@ -53911,26 +54068,26 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3442 +#: ../src/guestfs.pod:3439 msgid "" "Virtio-scsi as used by libguestfs is configured to use one target per disk, " "and 256 targets are available." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3445 +#: ../src/guestfs.pod:3442 msgid "" "Virtio-blk consumes 1 virtual PCI slot per disk, and PCI is limited to 31 " "slots, but some of these are used for other purposes." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3448 +#: ../src/guestfs.pod:3445 msgid "One virtual disk is used by libguestfs internally." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3450 +#: ../src/guestfs.pod:3447 msgid "" "Before libguestfs 1.19.7, disk names had to be a single character " "(eg. C</dev/sda> through C</dev/sdz>), and since one disk is reserved, that " @@ -53938,7 +54095,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3455 +#: ../src/guestfs.pod:3452 msgid "" "In future versions of libguestfs it should also be possible to \"hot plug\" " "disks (add and remove disks after calling L</guestfs_launch>). This also " @@ -53946,41 +54103,41 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:3459 +#: ../src/guestfs.pod:3456 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3461 +#: ../src/guestfs.pod:3458 msgid "Virtio limits the maximum number of partitions per disk to B<15>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3463 +#: ../src/guestfs.pod:3460 msgid "" "This is because it reserves 4 bits for the minor device number (thus " "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3466 +#: ../src/guestfs.pod:3463 msgid "" "If you attach a disk with more than 15 partitions, the extra partitions are " "ignored by libguestfs." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:3469 +#: ../src/guestfs.pod:3466 msgid "MAXIMUM SIZE OF A DISK" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3471 +#: ../src/guestfs.pod:3468 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3473 +#: ../src/guestfs.pod:3470 msgid "" "We have tested block devices up to 1 exabyte (2**60 or " "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host " @@ -53988,7 +54145,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3477 +#: ../src/guestfs.pod:3474 msgid "" "Although libguestfs probably does not impose any limit, the underlying host " "storage will. If you store disk images on a host ext4 filesystem, then the " @@ -53998,19 +54155,19 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3483 +#: ../src/guestfs.pod:3480 msgid "" "For the hugest disk image files, we recommend using XFS on the host for " "storage." msgstr "" #. type: =head2 -#: ../src/guestfs.pod:3486 +#: ../src/guestfs.pod:3483 msgid "MAXIMUM SIZE OF A PARTITION" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3488 +#: ../src/guestfs.pod:3485 msgid "" "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector " "numbers. Assuming a 512 byte sector size, this means that MBR cannot " @@ -54018,7 +54175,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3492 +#: ../src/guestfs.pod:3489 msgid "" "It is recommended that you use GPT partitions on disks which are larger than " "this size. GPT uses 64 bit sector numbers and so can address partitions " @@ -54026,12 +54183,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:3497 +#: ../src/guestfs.pod:3494 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3499 +#: ../src/guestfs.pod:3496 msgid "" "This depends on the filesystem type. libguestfs itself does not impose any " "known limit. Consult Wikipedia or the filesystem documentation to find out " @@ -54039,12 +54196,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:3503 +#: ../src/guestfs.pod:3500 msgid "MAXIMUM UPLOAD AND DOWNLOAD" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3505 +#: ../src/guestfs.pod:3502 msgid "" "The API functions L</guestfs_upload>, L</guestfs_download>, " "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized " @@ -54052,12 +54209,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../src/guestfs.pod:3509 +#: ../src/guestfs.pod:3506 msgid "INSPECTION LIMITS" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3511 +#: ../src/guestfs.pod:3508 msgid "" "The inspection code has several arbitrary limits on things like the size of " "Windows Registry hive it will read, and the length of product name. These " @@ -54067,40 +54224,40 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3537 +#: ../src/guestfs.pod:3534 msgid "" "Choose the default way to create the appliance. See " "L</guestfs_set_attach_method>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3542 +#: ../src/guestfs.pod:3539 msgid "" "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the same " "effect as calling C<guestfs_set_verbose (g, 1)>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3554 +#: ../src/guestfs.pod:3551 msgid "" "Set the path that libguestfs uses to search for a supermin appliance. See " "the discussion of paths in section L</PATH> above." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3563 +#: ../src/guestfs.pod:3560 msgid "See also L</QEMU WRAPPERS> above." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3567 +#: ../src/guestfs.pod:3564 msgid "" "Set C<LIBGUESTFS_TRACE=1> to enable command traces. This has the same " "effect as calling C<guestfs_set_trace (g, 1)>." msgstr "" #. type: textblock -#: ../src/guestfs.pod:3585 +#: ../src/guestfs.pod:3582 msgid "" "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, " "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, " @@ -54119,7 +54276,7 @@ msgid "" msgstr "" #. type: textblock -#: ../src/guestfs.pod:3628 +#: ../src/guestfs.pod:3625 msgid "" "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, " "L<lvm(8)>, L<disktype(1)>." @@ -54827,7 +54984,7 @@ msgstr "" #. type: textblock #: ../sysprep/virt-sysprep.pod:15 msgid "" -"Virt-sysprep can resets or unconfigure a virtual machine so that clones can " +"Virt-sysprep can reset or unconfigure a virtual machine so that clones can " "be made from it. Steps in this process include removing SSH host keys, " "removing persistent network MAC configuration, and removing user accounts. " "Virt-sysprep can also customize a virtual machine, for instance by adding " |