#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: libguestfs 1.7.24\n"
+"Project-Id-Version: libguestfs 1.8.0\n"
"Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
-"POT-Creation-Date: 2010-12-16 23:16+0000\n"
+"POT-Creation-Date: 2010-12-19 15:52+0000\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"
"Content-Transfer-Encoding: ENCODING"
# type: =encoding
-#: ../src/guestfs.pod:1 ../fish/guestfish.pod:1 ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1 ../tools/virt-edit.pl:30 ../tools/virt-win-reg.pl:33 ../tools/virt-resize.pl:38 ../tools/virt-list-filesystems.pl:28 ../tools/virt-tar.pl:29 ../tools/virt-make-fs.pl:33 ../tools/virt-list-partitions.pl:28
+#: ../src/guestfs.pod:1 ../fish/guestfish.pod:1 ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1
msgid "utf8"
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:3 ../fish/guestfish.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3 ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35 ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30 ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
+#: ../src/guestfs.pod:3 ../fish/guestfish.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
msgid "NAME"
msgstr ""
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:7 ../fish/guestfish.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7 ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39 ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34 ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
+#: ../src/guestfs.pod:7 ../fish/guestfish.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
msgid "SYNOPSIS"
msgstr ""
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:23 ../fish/guestfish.pod:30 ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20 ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63 ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40 ../tools/virt-tar.pl:72 ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
+#: ../src/guestfs.pod:23 ../fish/guestfish.pod:30 ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
msgid "DESCRIPTION"
msgstr ""
# type: =head2
#: ../src/guestfs.pod:337
-msgid "LISTING FILES"
+msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
msgstr ""
# type: textblock
#: ../src/guestfs.pod:339
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 "
+"appears you can only upload and download to files. However many Un*x-like "
+"hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
+"C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
+"stderr, and arbitrary file descriptor N."
+msgstr ""
+
+# type: textblock
+#: ../src/guestfs.pod:347
+msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
+msgstr ""
+
+# type: verbatim
+#: ../src/guestfs.pod:350
+#, no-wrap
+msgid ""
+" guestfs_download (filename, \"/dev/stdout\");\n"
+"\n"
+msgstr ""
+
+# type: textblock
+#: ../src/guestfs.pod:352
+msgid "and you can write tar output to a pipe C<fd> by doing:"
+msgstr ""
+
+# type: verbatim
+#: ../src/guestfs.pod:354
+#, no-wrap
+msgid ""
+" char devfd[64];\n"
+" snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
+" guestfs_tar_out (\"/\", devfd);\n"
+"\n"
+msgstr ""
+
+# type: =head2
+#: ../src/guestfs.pod:358
+msgid "LISTING FILES"
+msgstr ""
+
+# type: textblock
+#: ../src/guestfs.pod:360
+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:342
+#: ../src/guestfs.pod:363
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:345
+#: ../src/guestfs.pod:366
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:349
+#: ../src/guestfs.pod:370
msgid ""
"L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
"files."
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:352
+#: ../src/guestfs.pod:373
msgid "RUNNING COMMANDS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:354
+#: ../src/guestfs.pod:375
msgid ""
"Although libguestfs is primarily an API for manipulating files inside guest "
"images, we also provide some limited facilities for running commands inside "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:358
+#: ../src/guestfs.pod:379
msgid "There are many limitations to this:"
msgstr ""
# type: =item
-#: ../src/guestfs.pod:362 ../src/guestfs.pod:367 ../src/guestfs.pod:372 ../src/guestfs.pod:376 ../src/guestfs.pod:381 ../src/guestfs.pod:385 ../src/guestfs.pod:390 ../src/guestfs.pod:395 ../src/guestfs.pod:985 ../src/guestfs.pod:989 ../src/guestfs.pod:993 ../src/guestfs.pod:998 ../src/guestfs.pod:1006 ../src/guestfs.pod:1025 ../src/guestfs.pod:1033 ../src/guestfs.pod:1055 ../src/guestfs.pod:1059 ../src/guestfs.pod:1063 ../src/guestfs.pod:1067 ../src/guestfs.pod:1071 ../src/guestfs.pod:1075 ../src/guestfs.pod:1557 ../src/guestfs.pod:1562 ../src/guestfs.pod:1566 ../src/guestfs.pod:1676 ../src/guestfs.pod:1681 ../src/guestfs.pod:1685 ../src/guestfs.pod:2037 ../src/guestfs.pod:2043 ../src/guestfs.pod:2048 ../src/guestfs.pod:2054 ../src/guestfs.pod:2166 ../src/guestfs.pod:2170 ../src/guestfs.pod:2174 ../src/guestfs.pod:2178 ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:579 ../src/guestfs-actions.pod:586 ../src/guestfs-actions.pod:593 ../src/guestfs-actions.pod:1589 ../src/guestfs-actions.pod:1593 ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1613 ../src/guestfs-actions.pod:1617 ../src/guestfs-actions.pod:1627 ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1635 ../src/guestfs-actions.pod:1773 ../src/guestfs-actions.pod:1777 ../src/guestfs-actions.pod:1782 ../src/guestfs-actions.pod:1787 ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:1857 ../fish/guestfish.pod:427 ../fish/guestfish.pod:431 ../fish/guestfish.pod:435 ../fish/guestfish.pod:439 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375 ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075 ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087 ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095 ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109 ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203 ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259 ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268 ../tools/virt-win-reg.pl:536 ../tools/virt-win-reg.pl:542 ../tools/virt-win-reg.pl:548 ../tools/virt-resize.pl:345 ../tools/virt-resize.pl:350 ../tools/virt-resize.pl:360
+#: ../src/guestfs.pod:383 ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:397 ../src/guestfs.pod:402 ../src/guestfs.pod:406 ../src/guestfs.pod:411 ../src/guestfs.pod:416 ../src/guestfs.pod:1006 ../src/guestfs.pod:1010 ../src/guestfs.pod:1014 ../src/guestfs.pod:1019 ../src/guestfs.pod:1027 ../src/guestfs.pod:1046 ../src/guestfs.pod:1054 ../src/guestfs.pod:1076 ../src/guestfs.pod:1080 ../src/guestfs.pod:1084 ../src/guestfs.pod:1088 ../src/guestfs.pod:1092 ../src/guestfs.pod:1096 ../src/guestfs.pod:1578 ../src/guestfs.pod:1583 ../src/guestfs.pod:1587 ../src/guestfs.pod:1697 ../src/guestfs.pod:1702 ../src/guestfs.pod:1706 ../src/guestfs.pod:2058 ../src/guestfs.pod:2064 ../src/guestfs.pod:2069 ../src/guestfs.pod:2075 ../src/guestfs.pod:2187 ../src/guestfs.pod:2191 ../src/guestfs.pod:2195 ../src/guestfs.pod:2199 ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:579 ../src/guestfs-actions.pod:586 ../src/guestfs-actions.pod:593 ../src/guestfs-actions.pod:1589 ../src/guestfs-actions.pod:1593 ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1613 ../src/guestfs-actions.pod:1617 ../src/guestfs-actions.pod:1627 ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1635 ../src/guestfs-actions.pod:1773 ../src/guestfs-actions.pod:1777 ../src/guestfs-actions.pod:1782 ../src/guestfs-actions.pod:1787 ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:1857 ../fish/guestfish.pod:427 ../fish/guestfish.pod:431 ../fish/guestfish.pod:435 ../fish/guestfish.pod:439 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375 ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075 ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087 ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095 ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109 ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203 ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259 ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268
msgid "*"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:364
+#: ../src/guestfs.pod:385
msgid ""
"The kernel version that the command runs under will be different from what "
"it expects."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:369
+#: ../src/guestfs.pod:390
msgid ""
"If the command needs to communicate with daemons, then most likely they "
"won't be running."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:374
+#: ../src/guestfs.pod:395
msgid "The command will be running in limited memory."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:378
+#: ../src/guestfs.pod:399
msgid ""
"The network may not be available unless you enable it (see "
"L</guestfs_set_network>)."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:383
+#: ../src/guestfs.pod:404
msgid "Only supports Linux guests (not Windows, BSD, etc)."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:387
+#: ../src/guestfs.pod:408
msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:392
+#: ../src/guestfs.pod:413
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:397
+#: ../src/guestfs.pod:418
msgid ""
"I<Security:> It is not safe to run commands from untrusted, possibly "
"malicious guests. These commands may attempt to exploit your program by "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:406
+#: ../src/guestfs.pod:427
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:414
+#: ../src/guestfs.pod:435
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:417
+#: ../src/guestfs.pod:438
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:420
+#: ../src/guestfs.pod:441
msgid "CONFIGURATION FILES"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:422
+#: ../src/guestfs.pod:443
msgid ""
"To read and write configuration files in Linux guest filesystems, we "
"strongly recommend using Augeas. For example, Augeas understands how to "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:427
+#: ../src/guestfs.pod:448
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:431
+#: ../src/guestfs.pod:452
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 "
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:435
+#: ../src/guestfs.pod:456
msgid "SELINUX"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:437
+#: ../src/guestfs.pod:458
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: =item
-#: ../src/guestfs.pod:443 ../src/guestfs.pod:1178 ../src/guestfs.pod:1309
+#: ../src/guestfs.pod:464 ../src/guestfs.pod:1199 ../src/guestfs.pod:1330
msgid "1."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:445
+#: ../src/guestfs.pod:466
msgid "Before launching, do:"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:447
+#: ../src/guestfs.pod:468
#, no-wrap
msgid ""
" guestfs_set_selinux (g, 1);\n"
msgstr ""
# type: =item
-#: ../src/guestfs.pod:449 ../src/guestfs.pod:1182 ../src/guestfs.pod:1313
+#: ../src/guestfs.pod:470 ../src/guestfs.pod:1203 ../src/guestfs.pod:1334
msgid "2."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:451
+#: ../src/guestfs.pod:472
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:455
+#: ../src/guestfs.pod:476
#, no-wrap
msgid ""
" guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:457
+#: ../src/guestfs.pod:478
msgid ""
"(Older versions of C<load_policy> require you to specify the name of the "
"policy file)."
msgstr ""
# type: =item
-#: ../src/guestfs.pod:460 ../src/guestfs.pod:1319
+#: ../src/guestfs.pod:481 ../src/guestfs.pod:1340
msgid "3."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:462
+#: ../src/guestfs.pod:483
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:466
+#: ../src/guestfs.pod:487
#, no-wrap
msgid ""
" guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:470
+#: ../src/guestfs.pod:491
msgid "This will work for running commands and editing existing files."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:472
+#: ../src/guestfs.pod:493
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:476
+#: ../src/guestfs.pod:497
msgid "UMASK"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:478
+#: ../src/guestfs.pod:499
msgid ""
"Certain calls are affected by the current file mode creation mask (the "
"\"umask\"). In particular ones which create files or directories, such as "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:484
+#: ../src/guestfs.pod:505
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:487
+#: ../src/guestfs.pod:508
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:491
+#: ../src/guestfs.pod:512
msgid "For more information about umask, see L<umask(2)>."
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:493 ../fish/guestfish.pod:720
+#: ../src/guestfs.pod:514 ../fish/guestfish.pod:720
msgid "ENCRYPTED DISKS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:495
+#: ../src/guestfs.pod:516
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) "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:501
+#: ../src/guestfs.pod:522
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:504
+#: ../src/guestfs.pod:525
msgid ""
"Then open these devices by calling L</guestfs_luks_open>. Obviously you "
"will require the passphrase!"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:507
+#: ../src/guestfs.pod:528
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:513
+#: ../src/guestfs.pod:534
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:517
+#: ../src/guestfs.pod:538
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, "
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:524
+#: ../src/guestfs.pod:545
msgid "INSPECTION"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:526
+#: ../src/guestfs.pod:547
msgid ""
"Libguestfs has APIs for inspecting an unknown disk image to find out if it "
"contains operating systems. (These APIs used to be in a separate Perl-only "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:532
+#: ../src/guestfs.pod:553
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:535
+#: ../src/guestfs.pod:556
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:544
+#: ../src/guestfs.pod:565
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:550
+#: ../src/guestfs.pod:571
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 "
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:557
+#: ../src/guestfs.pod:578
#, no-wrap
msgid ""
" /boot => /dev/sda1\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:561
+#: ../src/guestfs.pod:582
msgid ""
"The caller can then make calls to L</guestfs_mount_options> to mount the "
"filesystems as suggested."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:564
+#: ../src/guestfs.pod:585
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:568
+#: ../src/guestfs.pod:589
msgid ""
"Inspection currently only works for some common operating systems. "
"Contributors are welcome to send patches for other operating systems that we "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:572
+#: ../src/guestfs.pod:593
msgid ""
"Encrypted disks must be opened before inspection. See L</ENCRYPTED DISKS> "
"for more details. The L</guestfs_inspect_os> function just ignores any "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:576
+#: ../src/guestfs.pod:597
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 "
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:585
+#: ../src/guestfs.pod:606
msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:587
+#: ../src/guestfs.pod:608
msgid ""
"Libguestfs can mount NTFS partitions. It does this using the "
"L<http://www.ntfs-3g.org/> driver."
msgstr ""
# type: =head3
-#: ../src/guestfs.pod:590
+#: ../src/guestfs.pod:611
msgid "DRIVE LETTERS AND PATHS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:592
+#: ../src/guestfs.pod:613
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:598
+#: ../src/guestfs.pod:619
msgid ""
"Drive letter mappings are outside the scope of libguestfs. You have to use "
"libguestfs to read the appropriate Windows Registry and configuration files, "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:603
+#: ../src/guestfs.pod:624
msgid ""
"Replacing backslash characters with forward slash characters is also outside "
"the scope of libguestfs, but something that you can easily do."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:606
+#: ../src/guestfs.pod:627
msgid ""
"Where we can help is in resolving the case insensitivity of paths. For "
"this, call L</guestfs_case_sensitive_path>."
msgstr ""
# type: =head3
-#: ../src/guestfs.pod:609
+#: ../src/guestfs.pod:630
msgid "ACCESSING THE WINDOWS REGISTRY"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:611
+#: ../src/guestfs.pod:632
msgid ""
"Libguestfs also provides some help for decoding Windows Registry \"hive\" "
"files, through the library C<hivex> which is part of the libguestfs project "
msgstr ""
# type: =head3
-#: ../src/guestfs.pod:619
+#: ../src/guestfs.pod:640
msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:621
+#: ../src/guestfs.pod:642
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:625
+#: ../src/guestfs.pod:646
msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:627
+#: ../src/guestfs.pod:648
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:634
+#: ../src/guestfs.pod:655
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 "
msgstr ""
# type: =head3
-#: ../src/guestfs.pod:639
+#: ../src/guestfs.pod:660
msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:641
+#: ../src/guestfs.pod:662
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:644
+#: ../src/guestfs.pod:665
msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:646
+#: ../src/guestfs.pod:667
msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:648
+#: ../src/guestfs.pod:669
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:651
+#: ../src/guestfs.pod:672
msgid ""
"The API is broadly identical in all supported languages. This means that "
"the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:657
+#: ../src/guestfs.pod:678
msgid ""
"Error messages are automatically transformed into exceptions if the language "
"supports it."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:660
+#: ../src/guestfs.pod:681
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 "
msgstr ""
# type: =item
-#: ../src/guestfs.pod:666
+#: ../src/guestfs.pod:687
msgid "B<C++>"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:668
+#: ../src/guestfs.pod:689
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:672
+#: ../src/guestfs.pod:693
msgid "B<C#>"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:674
+#: ../src/guestfs.pod:695
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:677
+#: ../src/guestfs.pod:698
msgid "B<Haskell>"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:679
+#: ../src/guestfs.pod:700
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 "
msgstr ""
# type: =item
-#: ../src/guestfs.pod:683
+#: ../src/guestfs.pod:704
msgid "B<Java>"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:685
+#: ../src/guestfs.pod:706
msgid ""
"Full documentation is contained in the Javadoc which is distributed with "
"libguestfs."
msgstr ""
# type: =item
-#: ../src/guestfs.pod:688
+#: ../src/guestfs.pod:709
msgid "B<OCaml>"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:690
+#: ../src/guestfs.pod:711
msgid "For documentation see L<guestfs-ocaml(3)>."
msgstr ""
# type: =item
-#: ../src/guestfs.pod:692
+#: ../src/guestfs.pod:713
msgid "B<Perl>"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:694
+#: ../src/guestfs.pod:715
msgid "For documentation see L<Sys::Guestfs(3)>."
msgstr ""
# type: =item
-#: ../src/guestfs.pod:696
+#: ../src/guestfs.pod:717
msgid "B<PHP>"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:698
+#: ../src/guestfs.pod:719
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:701
+#: ../src/guestfs.pod:722
msgid "The PHP binding only works correctly on 64 bit machines."
msgstr ""
# type: =item
-#: ../src/guestfs.pod:703
+#: ../src/guestfs.pod:724
msgid "B<Python>"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:705
+#: ../src/guestfs.pod:726
msgid "For documentation see L<guestfs-python(3)>."
msgstr ""
# type: =item
-#: ../src/guestfs.pod:707
+#: ../src/guestfs.pod:728
msgid "B<Ruby>"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:709
+#: ../src/guestfs.pod:730
msgid "For documentation see L<guestfs-ruby(3)>."
msgstr ""
# type: =item
-#: ../src/guestfs.pod:711
+#: ../src/guestfs.pod:732
msgid "B<shell scripts>"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:713
+#: ../src/guestfs.pod:734
msgid "For documentation see L<guestfish(1)>."
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:717
+#: ../src/guestfs.pod:738
msgid "LIBGUESTFS GOTCHAS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:719
+#: ../src/guestfs.pod:740
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:723
+#: ../src/guestfs.pod:744
msgid ""
"Since we developed libguestfs and the associated tools, there are several "
"things we would have designed differently, but are now stuck with for "
msgstr ""
# type: =item
-#: ../src/guestfs.pod:731
+#: ../src/guestfs.pod:752
msgid "Autosync / forgetting to sync."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:733
+#: ../src/guestfs.pod:754
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 "
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:737
+#: ../src/guestfs.pod:758
#, no-wrap
msgid ""
" guestfs_set_autosync (g, 1);\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:739
+#: ../src/guestfs.pod:760
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> "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:743
+#: ../src/guestfs.pod:764
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:747
+#: ../src/guestfs.pod:768
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:751
+#: ../src/guestfs.pod:772
msgid ""
"Update: Autosync is enabled by default for all API users starting from "
"libguestfs 1.5.24."
msgstr ""
# type: =item
-#: ../src/guestfs.pod:754
+#: ../src/guestfs.pod:775
msgid "Mount option C<-o sync> should not be the default."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:756
+#: ../src/guestfs.pod:777
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:760
+#: ../src/guestfs.pod:781
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:763
+#: ../src/guestfs.pod:784
msgid "Read-only should be the default."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:765
+#: ../src/guestfs.pod:786
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:768
+#: ../src/guestfs.pod:789
msgid "This would reduce the potential to corrupt live VM images."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:770
+#: ../src/guestfs.pod:791
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 "
msgstr ""
# type: =item
-#: ../src/guestfs.pod:774
+#: ../src/guestfs.pod:795
msgid "guestfish command line is hard to use."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:776
+#: ../src/guestfs.pod:797
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 "
msgstr ""
# type: =item
-#: ../src/guestfs.pod:783
+#: ../src/guestfs.pod:804
msgid "guestfish megabyte modifiers don't work right on all commands"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:785
+#: ../src/guestfs.pod:806
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:792
+#: ../src/guestfs.pod:813
msgid "The most common is L</guestfs_lvcreate>. The guestfish command:"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:794
+#: ../src/guestfs.pod:815
#, no-wrap
msgid ""
" lvcreate LV VG 100M\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:796
+#: ../src/guestfs.pod:817
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:801
+#: ../src/guestfs.pod:822
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:804
+#: ../src/guestfs.pod:825
msgid "Ambiguity between devices and paths"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:806
+#: ../src/guestfs.pod:827
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:811
+#: ../src/guestfs.pod:832
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>. "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:817
+#: ../src/guestfs.pod:838
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 "
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:823
+#: ../src/guestfs.pod:844
#, no-wrap
msgid ""
" type path = Path of string | Device of int | Partition of int * int\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:825
+#: ../src/guestfs.pod:846
msgid "which would allow you to pass arguments like:"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:827
+#: ../src/guestfs.pod:848
#, no-wrap
msgid ""
" Path \"/foo/bar\"\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:832
+#: ../src/guestfs.pod:853
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:837
+#: ../src/guestfs.pod:858
msgid "PROTOCOL LIMITS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:839
+#: ../src/guestfs.pod:860
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:847
+#: ../src/guestfs.pod:868
msgid ""
"A simple call such as L</guestfs_cat> returns its result (the file data) in "
"a simple string. Because this string is at some point internally encoded as "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:853
+#: ../src/guestfs.pod:874
msgid ""
"In order to transfer large files into and out of the guest filesystem, you "
"need to use particular calls that support this. The sections L</UPLOADING> "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:857
+#: ../src/guestfs.pod:878
msgid ""
"You might also consider mounting the disk image using our FUSE filesystem "
"support (L<guestmount(1)>)."
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:860
+#: ../src/guestfs.pod:881
msgid "KEYS AND PASSPHRASES"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:862
+#: ../src/guestfs.pod:883
msgid ""
"Certain libguestfs calls take a parameter that contains sensitive key "
"material, passed in as a C string."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:865
+#: ../src/guestfs.pod:886
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:870
+#: ../src/guestfs.pod:891
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, "
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:875
+#: ../src/guestfs.pod:896
msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:877
+#: ../src/guestfs.pod:898
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:880
+#: ../src/guestfs.pod:901
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:884
+#: ../src/guestfs.pod:905
msgid ""
"See the graphical program guestfs-browser for one possible architecture for "
"multithreaded programs using libvirt and libguestfs."
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:887
+#: ../src/guestfs.pod:908
msgid "PATH"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:889
+#: ../src/guestfs.pod:910
msgid ""
"Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
"internal path."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:892
+#: ../src/guestfs.pod:913
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:895
+#: ../src/guestfs.pod:916
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 "
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:902
+#: ../src/guestfs.pod:923
msgid "QEMU WRAPPERS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:904
+#: ../src/guestfs.pod:925
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:908
+#: ../src/guestfs.pod:929
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:913
+#: ../src/guestfs.pod:934
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:916
+#: ../src/guestfs.pod:937
#, no-wrap
msgid ""
" #!/bin/sh -\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:920
+#: ../src/guestfs.pod:941
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 "
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:924
+#: ../src/guestfs.pod:945
#, no-wrap
msgid ""
" LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:926
+#: ../src/guestfs.pod:947
msgid ""
"Note that libguestfs also calls qemu with the -help and -version options in "
"order to determine features."
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:929
+#: ../src/guestfs.pod:950
msgid "ABI GUARANTEE"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:931
+#: ../src/guestfs.pod:952
msgid ""
"We guarantee the libguestfs ABI (binary interface), for public, high-level "
"actions as outlined in this section. Although we will deprecate some "
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:937
+#: ../src/guestfs.pod:958
msgid "BLOCK DEVICE NAMING"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:939
+#: ../src/guestfs.pod:960
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:951
+#: ../src/guestfs.pod:972
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:955
+#: ../src/guestfs.pod:976
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:960
+#: ../src/guestfs.pod:981
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:966
+#: ../src/guestfs.pod:987
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 "
msgstr ""
# type: =head3
-#: ../src/guestfs.pod:971
+#: ../src/guestfs.pod:992
msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:973
+#: ../src/guestfs.pod:994
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:979
+#: ../src/guestfs.pod:1000
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:987
+#: ../src/guestfs.pod:1008
msgid "Is the string a parameter which is a device or partition name?"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:991
+#: ../src/guestfs.pod:1012
msgid "Does the string begin with C</dev/sd>?"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:995
+#: ../src/guestfs.pod:1016
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:1000
+#: ../src/guestfs.pod:1021
msgid "Replace initial C</dev/sd> string with C</dev/hd>."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1002
+#: ../src/guestfs.pod:1023
msgid "For example, change C</dev/sda2> to C</dev/hda2>."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1004
+#: ../src/guestfs.pod:1025
msgid "If that named device exists, use it. If not, continue."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1008
+#: ../src/guestfs.pod:1029
msgid "Replace initial C</dev/sd> string with C</dev/vd>."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1010
+#: ../src/guestfs.pod:1031
msgid "If that named device exists, use it. If not, return an error."
msgstr ""
# type: =head3
-#: ../src/guestfs.pod:1014
+#: ../src/guestfs.pod:1035
msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1016
+#: ../src/guestfs.pod:1037
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1020
+#: ../src/guestfs.pod:1041
msgid ""
"Where possible for maximum future portability programs using libguestfs "
"should use these future-proof techniques:"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1027
+#: ../src/guestfs.pod:1048
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:1030
+#: ../src/guestfs.pod:1051
msgid "Since those device names exist by definition, they will never be translated."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1035
+#: ../src/guestfs.pod:1056
msgid ""
"Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
"filesystem labels."
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:1040
+#: ../src/guestfs.pod:1061
msgid "SECURITY"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1042
+#: ../src/guestfs.pod:1063
msgid ""
"This section discusses security implications of using libguestfs, "
"particularly with untrusted or malicious guests or disk images."
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1045
+#: ../src/guestfs.pod:1066
msgid "GENERAL SECURITY CONSIDERATIONS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1047
+#: ../src/guestfs.pod:1068
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1057
+#: ../src/guestfs.pod:1078
msgid "the data (file etc) not being present"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1061
+#: ../src/guestfs.pod:1082
msgid "being present but empty"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1065
+#: ../src/guestfs.pod:1086
msgid "being much larger than normal"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1069
+#: ../src/guestfs.pod:1090
msgid "containing arbitrary 8 bit data"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1073
+#: ../src/guestfs.pod:1094
msgid "being in an unexpected character encoding"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1077
+#: ../src/guestfs.pod:1098
msgid "containing homoglyphs."
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1081
+#: ../src/guestfs.pod:1102
msgid "SECURITY OF MOUNTING FILESYSTEMS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1083
+#: ../src/guestfs.pod:1104
msgid ""
"When you mount a filesystem under Linux, mistakes in the kernel filesystem "
"(VFS) module can sometimes be escalated into exploits by deliberately "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1096
+#: ../src/guestfs.pod:1117
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1107
+#: ../src/guestfs.pod:1128
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:1110
+#: ../src/guestfs.pod:1131
msgid "PROTOCOL SECURITY"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1112
+#: ../src/guestfs.pod:1133
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 "
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1118
+#: ../src/guestfs.pod:1139
msgid "INSPECTION SECURITY"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1120
+#: ../src/guestfs.pod:1141
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1126
+#: ../src/guestfs.pod:1147
msgid ""
"Guest configuration may be altered in unusual ways by the administrator of "
"the virtual machine, and may not reflect reality (particularly for untrusted "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1134
+#: ../src/guestfs.pod:1155
msgid ""
"The inspection API parses guest configuration using two external libraries: "
"Augeas (Linux configuration) and hivex (Windows Registry). Both are "
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1140
+#: ../src/guestfs.pod:1161
msgid "RUNNING UNTRUSTED GUEST COMMANDS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1142
+#: ../src/guestfs.pod:1163
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 "
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1148
+#: ../src/guestfs.pod:1169
msgid "CVE-2010-3851"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1150
+#: ../src/guestfs.pod:1171
msgid "https://bugzilla.redhat.com/642934"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1152
+#: ../src/guestfs.pod:1173
msgid ""
"This security bug concerns the automatic disk format detection that qemu "
"does on disk images."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1155
+#: ../src/guestfs.pod:1176
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1160
+#: ../src/guestfs.pod:1181
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1165
+#: ../src/guestfs.pod:1186
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1173
+#: ../src/guestfs.pod:1194
msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1180
+#: ../src/guestfs.pod:1201
msgid "You have enabled the network or have opened the disk in write mode."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1184
+#: ../src/guestfs.pod:1205
msgid ""
"You are also running untrusted code from the guest (see L</RUNNING "
"COMMANDS>)."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1189
+#: ../src/guestfs.pod:1210
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1194
+#: ../src/guestfs.pod:1215
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:1197
+#: ../src/guestfs.pod:1218
msgid ""
"For libguestfs tools, use the I<--format> command line parameter as "
"appropriate."
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:1200
+#: ../src/guestfs.pod:1221
msgid "CONNECTION MANAGEMENT"
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1202
+#: ../src/guestfs.pod:1223
msgid "guestfs_h *"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1204
+#: ../src/guestfs.pod:1225
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1208
+#: ../src/guestfs.pod:1229
msgid ""
"For information on using multiple handles and threads, see the section "
"L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1211
+#: ../src/guestfs.pod:1232
msgid "guestfs_create"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1213
+#: ../src/guestfs.pod:1234
#, no-wrap
msgid ""
" guestfs_h *guestfs_create (void);\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1215
+#: ../src/guestfs.pod:1236
msgid "Create a connection handle."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1217
+#: ../src/guestfs.pod:1238
msgid ""
"You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
"on the handle at least once."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1220
+#: ../src/guestfs.pod:1241
msgid ""
"This function returns a non-NULL pointer to a handle on success or NULL on "
"error."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1223
+#: ../src/guestfs.pod:1244
msgid "After configuring the handle, you have to call L</guestfs_launch>."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1225
+#: ../src/guestfs.pod:1246
msgid ""
"You may also want to configure error handling for the handle. See L</ERROR "
"HANDLING> section below."
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1228
+#: ../src/guestfs.pod:1249
msgid "guestfs_close"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1230
+#: ../src/guestfs.pod:1251
#, no-wrap
msgid ""
" void guestfs_close (guestfs_h *g);\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1232
+#: ../src/guestfs.pod:1253
msgid "This closes the connection handle and frees up all resources used."
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:1234
+#: ../src/guestfs.pod:1255
msgid "ERROR HANDLING"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1236
+#: ../src/guestfs.pod:1257
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:1239
+#: ../src/guestfs.pod:1260
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1243
+#: ../src/guestfs.pod:1264
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1248
+#: ../src/guestfs.pod:1269
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 "
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1252
+#: ../src/guestfs.pod:1273
#, no-wrap
msgid ""
" if (guestfs_launch (g) == -1)\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1255
+#: ../src/guestfs.pod:1276
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:1258
+#: ../src/guestfs.pod:1279
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:1261
+#: ../src/guestfs.pod:1282
#, no-wrap
msgid ""
" g = guestfs_create ();\n"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1263
+#: ../src/guestfs.pod:1284
#, no-wrap
msgid ""
" /* This disables the default behaviour of printing errors\n"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1267
+#: ../src/guestfs.pod:1288
#, no-wrap
msgid ""
" if (guestfs_launch (g) == -1) {\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1275
+#: ../src/guestfs.pod:1296
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1279
+#: ../src/guestfs.pod:1300
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 "
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1285
+#: ../src/guestfs.pod:1306
msgid "guestfs_last_error"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1287
+#: ../src/guestfs.pod:1308
#, no-wrap
msgid ""
" const char *guestfs_last_error (guestfs_h *g);\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1289
+#: ../src/guestfs.pod:1310
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:1293
+#: ../src/guestfs.pod:1314
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:1296
+#: ../src/guestfs.pod:1317
msgid "guestfs_last_errno"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1298
+#: ../src/guestfs.pod:1319
#, no-wrap
msgid ""
" int guestfs_last_errno (guestfs_h *g);\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1300
+#: ../src/guestfs.pod:1321
msgid "This returns the last error number (errno) that happened on C<g>."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1302
+#: ../src/guestfs.pod:1323
msgid "If successful, an errno integer not equal to zero is returned."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1304
+#: ../src/guestfs.pod:1325
msgid "If no error, this returns 0. This call can return 0 in three situations:"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1311
+#: ../src/guestfs.pod:1332
msgid "There has not been any error on the handle."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1315
+#: ../src/guestfs.pod:1336
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1321
+#: ../src/guestfs.pod:1342
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:1327
+#: ../src/guestfs.pod:1348
msgid ""
"Libguestfs tries to convert the errno from inside the applicance into a "
"corresponding errno for the caller (not entirely trivial: the appliance "
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1335
+#: ../src/guestfs.pod:1356
msgid "guestfs_set_error_handler"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1337
+#: ../src/guestfs.pod:1358
#, no-wrap
msgid ""
" typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1344
+#: ../src/guestfs.pod:1365
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1348
+#: ../src/guestfs.pod:1369
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:1351
+#: ../src/guestfs.pod:1372
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1355
+#: ../src/guestfs.pod:1376
msgid "The default handler prints messages on C<stderr>."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1357
+#: ../src/guestfs.pod:1378
msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1359
+#: ../src/guestfs.pod:1380
msgid "guestfs_get_error_handler"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1361
+#: ../src/guestfs.pod:1382
#, no-wrap
msgid ""
" guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1364
+#: ../src/guestfs.pod:1385
msgid "Returns the current error handler callback."
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1366
+#: ../src/guestfs.pod:1387
msgid "guestfs_set_out_of_memory_handler"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1368
+#: ../src/guestfs.pod:1389
#, no-wrap
msgid ""
" typedef void (*guestfs_abort_cb) (void);\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1372
+#: ../src/guestfs.pod:1393
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:1375
+#: ../src/guestfs.pod:1396
msgid "The default is to call L<abort(3)>."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1377
+#: ../src/guestfs.pod:1398
msgid "You cannot set C<cb> to C<NULL>. You can't ignore out of memory situations."
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1380
+#: ../src/guestfs.pod:1401
msgid "guestfs_get_out_of_memory_handler"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1382
+#: ../src/guestfs.pod:1403
#, no-wrap
msgid ""
" guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1384
+#: ../src/guestfs.pod:1405
msgid "This returns the current out of memory handler."
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:1386
+#: ../src/guestfs.pod:1407
msgid "API CALLS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1388 ../fish/guestfish.pod:958
+#: ../src/guestfs.pod:1409 ../fish/guestfish.pod:958
msgid "@ACTIONS@"
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:1390
+#: ../src/guestfs.pod:1411
msgid "STRUCTURES"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1392
+#: ../src/guestfs.pod:1413
msgid "@STRUCTS@"
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:1394
+#: ../src/guestfs.pod:1415
msgid "AVAILABILITY"
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1396
+#: ../src/guestfs.pod:1417
msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1398
+#: ../src/guestfs.pod:1419
msgid ""
"Using L</guestfs_available> you can test availability of the following "
"groups of functions. This test queries the appliance to see if the "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1403
+#: ../src/guestfs.pod:1424
msgid "@AVAILABILITY@"
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1405
+#: ../src/guestfs.pod:1426
msgid "GUESTFISH supported COMMAND"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1407
+#: ../src/guestfs.pod:1428
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 "
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1412
+#: ../src/guestfs.pod:1433
msgid "SINGLE CALLS AT COMPILE TIME"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1414
+#: ../src/guestfs.pod:1435
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:1417
+#: ../src/guestfs.pod:1438
#, no-wrap
msgid ""
" #define LIBGUESTFS_HAVE_DD 1\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1419
+#: ../src/guestfs.pod:1440
msgid "if L</guestfs_dd> is available."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1421
+#: ../src/guestfs.pod:1442
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 "
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1426
+#: ../src/guestfs.pod:1447
#, no-wrap
msgid ""
" AC_CHECK_LIB([guestfs],[guestfs_create])\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1429
+#: ../src/guestfs.pod:1450
msgid ""
"which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
"in your program."
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1432
+#: ../src/guestfs.pod:1453
msgid "SINGLE CALLS AT RUN TIME"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1434
+#: ../src/guestfs.pod:1455
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1441
+#: ../src/guestfs.pod:1462
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 "
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1445
+#: ../src/guestfs.pod:1466
#, no-wrap
msgid ""
" #include <stdio.h>\n"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1451
+#: ../src/guestfs.pod:1472
#, no-wrap
msgid ""
" main ()\n"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1457
+#: ../src/guestfs.pod:1478
#, no-wrap
msgid ""
" /* Test if the function guestfs_dd is really available. */\n"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1466
+#: ../src/guestfs.pod:1487
#, no-wrap
msgid ""
" if (!has_function)\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1479
+#: ../src/guestfs.pod:1500
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 "
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1484
+#: ../src/guestfs.pod:1505
#, no-wrap
msgid ""
" Requires: libguestfs >= 1.0.80\n"
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:1486
+#: ../src/guestfs.pod:1507
msgid "CALLS WITH OPTIONAL ARGUMENTS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1488
+#: ../src/guestfs.pod:1509
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 "
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1493
+#: ../src/guestfs.pod:1514
#, no-wrap
msgid ""
" int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1495
+#: ../src/guestfs.pod:1516
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:1498
+#: ../src/guestfs.pod:1519
#, no-wrap
msgid ""
" guestfs_add_drive_opts (g, filename, -1);\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1500
+#: ../src/guestfs.pod:1521
msgid "With a single optional argument:"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1502
+#: ../src/guestfs.pod:1523
#, no-wrap
msgid ""
" guestfs_add_drive_opts (g, filename,\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1506
+#: ../src/guestfs.pod:1527
msgid "With two:"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1508
+#: ../src/guestfs.pod:1529
#, no-wrap
msgid ""
" guestfs_add_drive_opts (g, filename,\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1513
+#: ../src/guestfs.pod:1534
msgid ""
"and so forth. Don't forget the terminating C<-1> otherwise Bad Things will "
"happen!"
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1516
+#: ../src/guestfs.pod:1537
msgid "USING va_list FOR OPTIONAL ARGUMENTS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1518
+#: ../src/guestfs.pod:1539
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 "
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1522
+#: ../src/guestfs.pod:1543
#, no-wrap
msgid ""
" int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1525
+#: ../src/guestfs.pod:1546
msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1527
+#: ../src/guestfs.pod:1548
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 "
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1533
+#: ../src/guestfs.pod:1554
#, no-wrap
msgid ""
" struct guestfs_add_drive_opts_argv {\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1542
+#: ../src/guestfs.pod:1563
msgid "You could call it like this:"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1544
+#: ../src/guestfs.pod:1565
#, no-wrap
msgid ""
" struct guestfs_add_drive_opts_argv optargs = {\n"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1551
+#: ../src/guestfs.pod:1572
#, no-wrap
msgid ""
" guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1553 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1255 ../tools/virt-win-reg.pl:532
+#: ../src/guestfs.pod:1574 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1255
msgid "Notes:"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1559
+#: ../src/guestfs.pod:1580
msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1564
+#: ../src/guestfs.pod:1585
msgid "You do not need to fill in all fields of the structure."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1568
+#: ../src/guestfs.pod:1589
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:1573
+#: ../src/guestfs.pod:1594
msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1575
+#: ../src/guestfs.pod:1596
msgid ""
"In other languages, optional arguments are expressed in the way that is "
"natural for that language. We refer you to the language-specific "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1579
+#: ../src/guestfs.pod:1600
msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1581
+#: ../src/guestfs.pod:1602
msgid "SETTING CALLBACKS TO HANDLE EVENTS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1583
+#: ../src/guestfs.pod:1604
msgid ""
"The child process generates events in some situations. Current events "
"include: receiving a log message, the child process exits."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1586
+#: ../src/guestfs.pod:1607
msgid ""
"Use the C<guestfs_set_*_callback> functions to set a callback for different "
"types of events."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1589
+#: ../src/guestfs.pod:1610
msgid ""
"Only I<one callback of each type> can be registered for each handle. "
"Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1594
+#: ../src/guestfs.pod:1615
msgid "guestfs_set_log_message_callback"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1596
+#: ../src/guestfs.pod:1617
#, no-wrap
msgid ""
" typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1602
+#: ../src/guestfs.pod:1623
msgid ""
"The callback function C<cb> will be called whenever qemu or the guest writes "
"anything to the console."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1605
+#: ../src/guestfs.pod:1626
msgid "Use this function to capture kernel messages and similar."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1607
+#: ../src/guestfs.pod:1628
msgid ""
"Normally there is no log message handler, and log messages are just "
"discarded."
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1610
+#: ../src/guestfs.pod:1631
msgid "guestfs_set_subprocess_quit_callback"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1612
+#: ../src/guestfs.pod:1633
#, no-wrap
msgid ""
" typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1617
+#: ../src/guestfs.pod:1638
msgid ""
"The callback function C<cb> will be called when the child process quits, "
"either asynchronously or if killed by L</guestfs_kill_subprocess>. (This "
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1622
+#: ../src/guestfs.pod:1643
msgid "guestfs_set_launch_done_callback"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1624
+#: ../src/guestfs.pod:1645
#, no-wrap
msgid ""
" typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1629
+#: ../src/guestfs.pod:1650
msgid ""
"The callback function C<cb> will be called when the child process becomes "
"ready first time after it has been launched. (This corresponds to a "
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1633
+#: ../src/guestfs.pod:1654
msgid "guestfs_set_close_callback"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1635
+#: ../src/guestfs.pod:1656
#, no-wrap
msgid ""
" typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1640
+#: ../src/guestfs.pod:1661
msgid ""
"The callback function C<cb> will be called while the handle is being closed "
"(synchronously from L</guestfs_close>)."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1643
+#: ../src/guestfs.pod:1664
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 "
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1651
+#: ../src/guestfs.pod:1672
msgid "guestfs_set_progress_callback"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1653
+#: ../src/guestfs.pod:1674
#, no-wrap
msgid ""
" typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1660
+#: ../src/guestfs.pod:1681
msgid ""
"Some long-running operations can generate progress messages. If this "
"callback is registered, then it will be called each time a progress message "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1666
+#: ../src/guestfs.pod:1687
msgid ""
"The callback receives two numbers: C<position> and C<total>. The units of "
"C<total> are not defined, although for some operations C<total> may relate "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1672
+#: ../src/guestfs.pod:1693
msgid "The only defined and stable parts of the API are:"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1678
+#: ../src/guestfs.pod:1699
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:1683
+#: ../src/guestfs.pod:1704
msgid "0 E<lt>= C<position> E<lt>= C<total>"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1687
+#: ../src/guestfs.pod:1708
msgid ""
"If any progress notification is sent during a call, then a final progress "
"notification is always sent when C<position> = C<total>."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1690
+#: ../src/guestfs.pod:1711
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1696
+#: ../src/guestfs.pod:1717
msgid ""
"The callback also receives the procedure number and serial number of the "
"call. These are only useful for debugging protocol issues, and the callback "
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:1701
+#: ../src/guestfs.pod:1722
msgid "PRIVATE DATA AREA"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1703
+#: ../src/guestfs.pod:1724
msgid ""
"You can attach named pieces of private data to the libguestfs handle, and "
"fetch them by name for the lifetime of the handle. This is called the "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1707
+#: ../src/guestfs.pod:1728
msgid "To attach a named piece of data, use the following call:"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1709
+#: ../src/guestfs.pod:1730
#, no-wrap
msgid ""
" void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1711
+#: ../src/guestfs.pod:1732
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 name is "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1715
+#: ../src/guestfs.pod:1736
msgid ""
"You can use any C<key> you want, but names beginning with an underscore "
"character are reserved for internal libguestfs purposes (for implementing "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1720
+#: ../src/guestfs.pod:1741
msgid "To retrieve the pointer, use:"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1722
+#: ../src/guestfs.pod:1743
#, no-wrap
msgid ""
" void *guestfs_get_private (guestfs_h *g, const char *key);\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1724
+#: ../src/guestfs.pod:1745
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1728
+#: ../src/guestfs.pod:1749
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1736
+#: ../src/guestfs.pod:1757
msgid ""
"The private data area is implemented using a hash table, and should be "
"reasonably efficient for moderate numbers of keys."
msgstr ""
# type: =end
-#: ../src/guestfs.pod:1739 ../src/guestfs.pod:1744
+#: ../src/guestfs.pod:1760 ../src/guestfs.pod:1765
msgid "html"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1741
+#: ../src/guestfs.pod:1762
msgid ""
"<!-- old anchor for the next section --> <a "
"name=\"state_machine_and_low_level_event_api\"/>"
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:1746
+#: ../src/guestfs.pod:1767
msgid "ARCHITECTURE"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1748
+#: ../src/guestfs.pod:1769
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 "
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1752
+#: ../src/guestfs.pod:1773
#, no-wrap
msgid ""
" ___________________\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1772
+#: ../src/guestfs.pod:1793
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:1775
+#: ../src/guestfs.pod:1796
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1784
+#: ../src/guestfs.pod:1805
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 "
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:1791
+#: ../src/guestfs.pod:1812
msgid "STATE MACHINE"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1793
+#: ../src/guestfs.pod:1814
msgid "libguestfs uses a state machine to model the child process:"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1795
+#: ../src/guestfs.pod:1816
#, no-wrap
msgid ""
" |\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1817
+#: ../src/guestfs.pod:1838
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), "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1822
+#: ../src/guestfs.pod:1843
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1826
+#: ../src/guestfs.pod:1847
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:1829
+#: ../src/guestfs.pod:1850
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1835
+#: ../src/guestfs.pod:1856
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1841
+#: ../src/guestfs.pod:1862
msgid ""
"Finally, the child process sends asynchronous messages back to the main "
"program, such as kernel log messages. You can register a callback to "
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:1845
+#: ../src/guestfs.pod:1866
msgid "INTERNALS"
msgstr ""
# type: =head2
-#: ../src/guestfs.pod:1847
+#: ../src/guestfs.pod:1868
msgid "COMMUNICATION PROTOCOL"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1849
+#: ../src/guestfs.pod:1870
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:1852
+#: ../src/guestfs.pod:1873
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1856
+#: ../src/guestfs.pod:1877
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:1859
+#: ../src/guestfs.pod:1880
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 "
msgstr ""
# type: =head3
-#: ../src/guestfs.pod:1866
+#: ../src/guestfs.pod:1887
msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1868
+#: ../src/guestfs.pod:1889
msgid "For ordinary functions, the request message is:"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1870
+#: ../src/guestfs.pod:1891
#, no-wrap
msgid ""
" total length (header + arguments,\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1875
+#: ../src/guestfs.pod:1896
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1881
+#: ../src/guestfs.pod:1902
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:1884
+#: ../src/guestfs.pod:1905
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:1888
+#: ../src/guestfs.pod:1909
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1896
+#: ../src/guestfs.pod:1917
msgid "The reply message for ordinary functions is:"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1898
+#: ../src/guestfs.pod:1919
#, no-wrap
msgid ""
" total length (header + ret,\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1903
+#: ../src/guestfs.pod:1924
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:1906
+#: ../src/guestfs.pod:1927
msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1909
+#: ../src/guestfs.pod:1930
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:1912
+#: ../src/guestfs.pod:1933
#, no-wrap
msgid ""
" total length (header + error,\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1917
+#: ../src/guestfs.pod:1938
msgid ""
"The C<guestfs_message_error> structure contains the error message as a "
"string."
msgstr ""
# type: =head3
-#: ../src/guestfs.pod:1920
+#: ../src/guestfs.pod:1941
msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1922
+#: ../src/guestfs.pod:1943
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 "
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1926
+#: ../src/guestfs.pod:1947
#, no-wrap
msgid ""
" total length (header + arguments,\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1934
+#: ../src/guestfs.pod:1955
msgid "The \"sequence of chunks\" is:"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:1936
+#: ../src/guestfs.pod:1957
#, no-wrap
msgid ""
" length of chunk (not including length word itself)\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1944
+#: ../src/guestfs.pod:1965
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1948
+#: ../src/guestfs.pod:1969
msgid ""
"At time of writing there are no functions that have more than one FileIn "
"parameter. However this is (theoretically) supported, by sending the "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1953
+#: ../src/guestfs.pod:1974
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1959
+#: ../src/guestfs.pod:1980
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1968
+#: ../src/guestfs.pod:1989
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 "
msgstr ""
# type: =head3
-#: ../src/guestfs.pod:1974
+#: ../src/guestfs.pod:1995
msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1976
+#: ../src/guestfs.pod:1997
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:1979
+#: ../src/guestfs.pod:2000
#, no-wrap
msgid ""
" total length (header + ret,\n"
msgstr ""
# type: =head3
-#: ../src/guestfs.pod:1987
+#: ../src/guestfs.pod:2008
msgid "INITIAL MESSAGE"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1989
+#: ../src/guestfs.pod:2010
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 "
msgstr ""
# type: =head3
-#: ../src/guestfs.pod:1993
+#: ../src/guestfs.pod:2014
msgid "PROGRESS NOTIFICATION MESSAGES"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1995
+#: ../src/guestfs.pod:2016
msgid ""
"The daemon may send progress notification messages at any time. These are "
"distinguished by the normal length word being replaced by "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:1999
+#: ../src/guestfs.pod:2020
msgid ""
"The library turns them into progress callbacks (see "
"C<guestfs_set_progress_callback>) if there is a callback registered, or "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2003
+#: ../src/guestfs.pod:2024
msgid ""
"The daemon self-limits the frequency of progress messages it sends (see "
"C<daemon/proto.c:notify_progress>). Not all calls generate progress "
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:2007
+#: ../src/guestfs.pod:2028
msgid "LIBGUESTFS VERSION NUMBERS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2009
+#: ../src/guestfs.pod:2030
msgid ""
"Since April 2010, libguestfs has started to make separate development and "
"stable releases, along with corresponding branches in our git repository. "
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:2014
+#: ../src/guestfs.pod:2035
#, no-wrap
msgid ""
" even numbers for stable: 1.2.x, 1.4.x, ...\n"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2025
+#: ../src/guestfs.pod:2046
msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2027
+#: ../src/guestfs.pod:2048
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2033
+#: ../src/guestfs.pod:2054
msgid "Our criteria for backporting changes are:"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2039
+#: ../src/guestfs.pod:2060
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:2045
+#: ../src/guestfs.pod:2066
msgid ""
"Bug fixes which are not controversial, fix obvious problems, and have been "
"well tested are backported."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2050
+#: ../src/guestfs.pod:2071
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2056
+#: ../src/guestfs.pod:2077
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 "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2062
+#: ../src/guestfs.pod:2083
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 "
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:2070 ../fish/guestfish.pod:965 ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
+#: ../src/guestfs.pod:2091 ../fish/guestfish.pod:965 ../test-tool/libguestfs-test-tool.pod:104
msgid "ENVIRONMENT VARIABLES"
msgstr ""
# type: =item
-#: ../src/guestfs.pod:2074 ../fish/guestfish.pod:991
+#: ../src/guestfs.pod:2095 ../fish/guestfish.pod:991
msgid "LIBGUESTFS_APPEND"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2076 ../fish/guestfish.pod:993
+#: ../src/guestfs.pod:2097 ../fish/guestfish.pod:993
msgid "Pass additional options to the guest kernel."
msgstr ""
# type: =item
-#: ../src/guestfs.pod:2078 ../fish/guestfish.pod:995
+#: ../src/guestfs.pod:2099 ../fish/guestfish.pod:995
msgid "LIBGUESTFS_DEBUG"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2080
+#: ../src/guestfs.pod:2101
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: =item
-#: ../src/guestfs.pod:2083 ../fish/guestfish.pod:1000
+#: ../src/guestfs.pod:2104 ../fish/guestfish.pod:1000
msgid "LIBGUESTFS_MEMSIZE"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2085 ../fish/guestfish.pod:1002
+#: ../src/guestfs.pod:2106 ../fish/guestfish.pod:1002
msgid "Set the memory allocated to the qemu process, in megabytes. For example:"
msgstr ""
# type: verbatim
-#: ../src/guestfs.pod:2088 ../fish/guestfish.pod:1005
+#: ../src/guestfs.pod:2109 ../fish/guestfish.pod:1005
#, no-wrap
msgid ""
" LIBGUESTFS_MEMSIZE=700\n"
msgstr ""
# type: =item
-#: ../src/guestfs.pod:2090 ../fish/guestfish.pod:1007
+#: ../src/guestfs.pod:2111 ../fish/guestfish.pod:1007
msgid "LIBGUESTFS_PATH"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2092
+#: ../src/guestfs.pod:2113
msgid ""
"Set the path that libguestfs uses to search for kernel and initrd.img. See "
"the discussion of paths in section PATH above."
msgstr ""
# type: =item
-#: ../src/guestfs.pod:2095 ../fish/guestfish.pod:1012
+#: ../src/guestfs.pod:2116 ../fish/guestfish.pod:1012
msgid "LIBGUESTFS_QEMU"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2097 ../fish/guestfish.pod:1014
+#: ../src/guestfs.pod:2118 ../fish/guestfish.pod:1014
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: textblock
-#: ../src/guestfs.pod:2101
+#: ../src/guestfs.pod:2122
msgid "See also L</QEMU WRAPPERS> above."
msgstr ""
# type: =item
-#: ../src/guestfs.pod:2103 ../fish/guestfish.pod:1018
+#: ../src/guestfs.pod:2124 ../fish/guestfish.pod:1018
msgid "LIBGUESTFS_TRACE"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2105
+#: ../src/guestfs.pod:2126
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: =item
-#: ../src/guestfs.pod:2108 ../fish/guestfish.pod:1027
+#: ../src/guestfs.pod:2129 ../fish/guestfish.pod:1027
msgid "TMPDIR"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2110 ../fish/guestfish.pod:1029
+#: ../src/guestfs.pod:2131 ../fish/guestfish.pod:1029
msgid "Location of temporary directory, defaults to C</tmp>."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2112 ../fish/guestfish.pod:1031
+#: ../src/guestfs.pod:2133 ../fish/guestfish.pod:1031
msgid ""
"If libguestfs was compiled to use the supermin appliance then the real "
"appliance is cached in this directory, shared between all handles belonging "
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:2120 ../fish/guestfish.pod:1089 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233 ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:572 ../tools/virt-resize.pl:1483 ../tools/virt-list-filesystems.pl:189 ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:257
+#: ../src/guestfs.pod:2141 ../fish/guestfish.pod:1089 ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
msgid "SEE ALSO"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2122
+#: ../src/guestfs.pod:2143
msgid ""
"L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
"L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2145
+#: ../src/guestfs.pod:2166
msgid ""
"Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
"L<lvm(8)>, L<disktype(1)>."
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:2152 ../tools/virt-win-reg.pl:587 ../tools/virt-make-fs.pl:548
+#: ../src/guestfs.pod:2173
msgid "BUGS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2154
+#: ../src/guestfs.pod:2175
msgid "To get a list of bugs against libguestfs use this link:"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2156
+#: ../src/guestfs.pod:2177
msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2158
+#: ../src/guestfs.pod:2179
msgid "To report a new bug against libguestfs use this link:"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2160
+#: ../src/guestfs.pod:2181
msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2162
+#: ../src/guestfs.pod:2183
msgid "When reporting a bug, please check:"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2168
+#: ../src/guestfs.pod:2189
msgid "That the bug hasn't been reported already."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2172
+#: ../src/guestfs.pod:2193
msgid "That you are testing a recent version."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2176
+#: ../src/guestfs.pod:2197
msgid "Describe the bug accurately, and give a way to reproduce it."
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2180
+#: ../src/guestfs.pod:2201
msgid ""
"Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
"bug report."
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:2185 ../fish/guestfish.pod:1108 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
+#: ../src/guestfs.pod:2206 ../fish/guestfish.pod:1108 ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
msgid "AUTHORS"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2187 ../fish/guestfish.pod:1110 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
+#: ../src/guestfs.pod:2208 ../fish/guestfish.pod:1110 ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
msgstr ""
# type: =head1
-#: ../src/guestfs.pod:2189 ../fish/guestfish.pod:1112 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248 ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:602 ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:206 ../tools/virt-tar.pl:296 ../tools/virt-make-fs.pl:563 ../tools/virt-list-partitions.pl:273
+#: ../src/guestfs.pod:2210 ../fish/guestfish.pod:1112 ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
msgid "COPYRIGHT"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2191 ../fish/guestfish.pod:1114 ../fuse/guestmount.pod:250
+#: ../src/guestfs.pod:2212 ../fish/guestfish.pod:1114 ../fuse/guestmount.pod:250
msgid "Copyright (C) 2009-2010 Red Hat Inc. L<http://libguestfs.org/>"
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2194
+#: ../src/guestfs.pod:2215
msgid ""
"This library is free software; you can redistribute it and/or modify it "
"under the terms of the GNU Lesser General Public License as published by the "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2199
+#: ../src/guestfs.pod:2220
msgid ""
"This library is distributed in the hope that it will be useful, but WITHOUT "
"ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
msgstr ""
# type: textblock
-#: ../src/guestfs.pod:2204
+#: ../src/guestfs.pod:2225
msgid ""
"You should have received a copy of the GNU Lesser General Public License "
"along with this library; if not, write to the Free Software Foundation, "
msgstr ""
# type: textblock
-#: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1191 ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
+#: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1191
msgid ""
"This command is mostly useful for interactive sessions. It is I<not> "
-"intended that you try to parse the output string. Use C<statvfs> from "
-"programs."
+"intended that you try to parse the output string. Use C<guestfs_statvfs> "
+"from programs."
msgstr ""
# type: textblock
msgstr ""
# type: =head1
-#: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44 ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
+#: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15
msgid "WARNING"
msgstr ""
msgstr ""
# type: =head1
-#: ../fish/guestfish.pod:41 ../fish/guestfish.pod:897 ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58 ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:45
+#: ../fish/guestfish.pod:41 ../fish/guestfish.pod:897 ../fuse/guestmount.pod:39
msgid "EXAMPLES"
msgstr ""
msgstr ""
# type: =head1
-#: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37 ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72 ../tools/virt-win-reg.pl:96 ../tools/virt-resize.pl:254 ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:98 ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
+#: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37 ../fuse/guestmount.pod:73
msgid "OPTIONS"
msgstr ""
# type: =item
-#: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131 ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:104 ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61 ../tools/virt-tar.pl:106 ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:62
+#: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
msgid "B<--help>"
msgstr ""
msgstr ""
# type: =item
-#: ../fish/guestfish.pod:383 ../tools/virt-edit.pl:88 ../tools/virt-win-reg.pl:112 ../tools/virt-resize.pl:270 ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:114 ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
+#: ../fish/guestfish.pod:383
msgid "B<--version>"
msgstr ""
msgstr ""
# type: textblock
-#: ../fish/guestfish.pod:1117 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:370 ../tools/virt-win-reg.pl:606 ../tools/virt-resize.pl:1512 ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:300 ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
+#: ../fish/guestfish.pod:1117 ../test-tool/libguestfs-test-tool.pod:124 ../fuse/guestmount.pod:253
msgid ""
"This program is free software; you can redistribute it and/or modify it "
"under the terms of the GNU General Public License as published by the Free "
msgstr ""
# type: textblock
-#: ../fish/guestfish.pod:1122 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:375 ../tools/virt-win-reg.pl:611 ../tools/virt-resize.pl:1517 ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
+#: ../fish/guestfish.pod:1122 ../test-tool/libguestfs-test-tool.pod:129 ../fuse/guestmount.pod:258
msgid ""
"This program is distributed in the hope that it will be useful, but WITHOUT "
"ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
msgstr ""
# type: textblock
-#: ../fish/guestfish.pod:1127 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:380 ../tools/virt-win-reg.pl:616 ../tools/virt-resize.pl:1522 ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:310 ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
+#: ../fish/guestfish.pod:1127 ../test-tool/libguestfs-test-tool.pod:134 ../fuse/guestmount.pod:263
msgid ""
"You should have received a copy of the GNU General Public License along with "
"this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
"\n"
msgstr ""
+# type: textblock
+#: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
+msgid ""
+"This command is mostly useful for interactive sessions. It is I<not> "
+"intended that you try to parse the output string. Use L</statvfs> from "
+"programs."
+msgstr ""
+
# type: =head2
#: ../fish/guestfish-actions.pod:792
msgid "df-h"
# type: textblock
#: ../fuse/guestmount.pod:227
-msgid "Trace libguestfs calls."
+msgid "Trace libguestfs calls and entry into each FUSE function."
msgstr ""
# type: textblock
"L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
"L<http://fuse.sf.net/>."
msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:34
-msgid "virt-edit - Edit a file in a virtual machine"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-edit.pl:38
-#, no-wrap
-msgid ""
-" virt-edit [--options] domname file\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-edit.pl:40
-#, no-wrap
-msgid ""
-" virt-edit [--options] disk.img [disk.img ...] file\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-edit.pl:42
-#, no-wrap
-msgid ""
-" virt-edit [domname|disk.img] file -e 'expr'\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:46
-msgid ""
-"You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
-"you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
-"doing this, but doesn't catch all cases."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:52
-msgid ""
-"C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
-"the named virtual machine (or disk image)."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:55
-msgid ""
-"If you want to just view a file, use L<virt-cat(1)>. For more complex cases "
-"you should look at the L<guestfish(1)> tool."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:60
-msgid "Edit the named files interactively:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-edit.pl:62
-#, no-wrap
-msgid ""
-" virt-edit mydomain /boot/grub/grub.conf\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-edit.pl:64
-#, no-wrap
-msgid ""
-" virt-edit mydomain /etc/passwd\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:66
-msgid ""
-"You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
-"below). To change the init default level to 5:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-edit.pl:70
-#, no-wrap
-msgid ""
-" virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:106 ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:108 ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
-msgid "Display brief help."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:114 ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71 ../tools/virt-tar.pl:116 ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:72
-msgid "Display version number and exit."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-edit.pl:96
-msgid "B<--backup extension> | B<-b extension>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:98
-msgid ""
-"Create a backup of the original file I<in the guest disk image>. The backup "
-"has the original filename with C<extension> added."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:101
-msgid ""
-"Usually the first character of C<extension> would be a dot C<.> so you would "
-"write:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-edit.pl:104
-#, no-wrap
-msgid ""
-" virt-edit -b .orig [etc]\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:106
-msgid "By default, no backup file is made."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:128 ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:122 ../tools/virt-list-partitions.pl:78
-msgid "B<--connect URI> | B<-c URI>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:130 ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:124 ../tools/virt-list-partitions.pl:80
-msgid ""
-"If using libvirt, connect to the given I<URI>. If omitted, then we connect "
-"to the default libvirt hypervisor."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:133 ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:83
-msgid ""
-"If you specify guest block devices directly, then libvirt is not used at "
-"all."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:140 ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89 ../tools/virt-tar.pl:134 ../tools/virt-list-partitions.pl:90
-msgid "B<--format> raw"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:142 ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:136 ../tools/virt-list-partitions.pl:92
-msgid ""
-"Specify the format of disk images given on the command line. If this is "
-"omitted then the format is autodetected from the content of the disk image."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:146 ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:140 ../tools/virt-list-partitions.pl:96
-msgid ""
-"If disk images are requested from libvirt, then this program asks libvirt "
-"for this information. In this case, the value of the format parameter is "
-"ignored."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:150 ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540 ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:144 ../tools/virt-list-partitions.pl:100
-msgid ""
-"If working with untrusted raw-format guest disk images, you should ensure "
-"the format is always specified."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-edit.pl:141
-msgid "B<--expr EXPR> | B<-e EXPR>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:143
-msgid ""
-"Instead of launching the external editor, non-interactively apply the Perl "
-"expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
-"EDITING> below."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:147
-msgid ""
-"Be careful to properly quote the expression to prevent it from being altered "
-"by the shell."
-msgstr ""
-
-# type: =head1
-#: ../tools/virt-edit.pl:268
-msgid "NON-INTERACTIVE EDITING"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:270
-msgid ""
-"C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
-"administrator can interactively edit the file."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:273
-msgid ""
-"There are two ways also to use C<virt-edit> from scripts in order to make "
-"automated edits to files. (Note that although you I<can> use C<virt-edit> "
-"like this, it's less error-prone to write scripts directly using the "
-"libguestfs API and Augeas for configuration file editing.)"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:279
-msgid ""
-"The first method is to temporarily set C<$EDITOR> to any script or program "
-"you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
-"update C<tmpfile> in place however it likes."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:283
-msgid ""
-"The second method is to use the C<-e> parameter of C<virt-edit> to run a "
-"short Perl snippet in the style of L<sed(1)>. For example to replace all "
-"instances of C<foo> with C<bar> in a file:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-edit.pl:287
-#, no-wrap
-msgid ""
-" virt-edit domname filename -e 's/foo/bar/'\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:289
-msgid ""
-"The full power of Perl regular expressions can be used (see L<perlre(1)>). "
-"For example to delete root's password you could do:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-edit.pl:292
-#, no-wrap
-msgid ""
-" virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:294
-msgid ""
-"What really happens is that the snippet is evaluated as a Perl expression "
-"for each line of the file. The line, including the final C<\\n>, is passed "
-"in C<$_> and the expression should update C<$_> or leave it unchanged."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:299
-msgid ""
-"To delete a line, set C<$_> to the empty string. For example, to delete the "
-"C<apache> user account from the password file you can do:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-edit.pl:302
-#, no-wrap
-msgid ""
-" virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:304
-msgid ""
-"To insert a line, prepend or append it to C<$_>. However appending lines to "
-"the end of the file is rather difficult this way since there is no concept "
-"of \"last line of the file\" - your expression just doesn't get called "
-"again. You might want to use the first method (setting C<$EDITOR>) if you "
-"want to do this."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:310
-msgid ""
-"The variable C<$lineno> contains the current line number. As is "
-"traditional, the first line in the file is number C<1>."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:313
-msgid ""
-"The return value from the expression is ignored, but the expression may call "
-"C<die> in order to abort the whole program, leaving the original file "
-"untouched."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:317
-msgid ""
-"Remember when matching the end of a line that C<$_> may contain the final "
-"C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
-"newline then neither of these. Thus to match or substitute some text at the "
-"end of a line, use this regular expression:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-edit.pl:322
-#, no-wrap
-msgid ""
-" /some text(\\r?\\n)?$/\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:324
-msgid ""
-"Alternately, use the perl C<chomp> function, being careful not to chomp "
-"C<$_> itself (since that would remove all newlines from the file):"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-edit.pl:328
-#, no-wrap
-msgid ""
-" my $m = $_; chomp $m; $m =~ /some text$/\n"
-"\n"
-msgstr ""
-
-# type: =item
-#: ../tools/virt-edit.pl:334
-msgid "C<EDITOR>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:336
-msgid ""
-"If set, this string is used as the editor. It may contain arguments, "
-"eg. C<\"emacs -nw\">"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:339
-msgid "If not set, C<vi> is used."
-msgstr ""
-
-# type: =head1
-#: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:559 ../tools/virt-resize.pl:1476 ../tools/virt-list-filesystems.pl:182 ../tools/virt-tar.pl:274 ../tools/virt-make-fs.pl:527 ../tools/virt-list-partitions.pl:250
-msgid "SHELL QUOTING"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:567 ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:184 ../tools/virt-tar.pl:276 ../tools/virt-make-fs.pl:529 ../tools/virt-list-partitions.pl:252
-msgid ""
-"Libvirt guest names can contain arbitrary characters, some of which have "
-"meaning to the shell such as C<#> and space. You may need to quote or "
-"escape these characters on the command line. See the shell manual page "
-"L<sh(1)> for details."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:352
-msgid ""
-"L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
-"L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, "
-"L<perl(1)>, L<perlre(1)>."
-msgstr ""
-
-# type: =head1
-#: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:598 ../tools/virt-resize.pl:1504 ../tools/virt-list-filesystems.pl:202 ../tools/virt-tar.pl:292 ../tools/virt-make-fs.pl:559 ../tools/virt-list-partitions.pl:269
-msgid "AUTHOR"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:600 ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:204 ../tools/virt-tar.pl:294 ../tools/virt-make-fs.pl:561 ../tools/virt-list-partitions.pl:271
-msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-edit.pl:368 ../tools/virt-list-partitions.pl:275
-msgid "Copyright (C) 2009-2010 Red Hat Inc."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:37
-msgid ""
-"virt-win-reg - Export and merge Windows Registry entries from a Windows "
-"guest"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:41
-#, no-wrap
-msgid ""
-" virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:43
-#, no-wrap
-msgid ""
-" virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:45
-#, no-wrap
-msgid ""
-" virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:47
-#, no-wrap
-msgid ""
-" virt-win-reg --merge domname [input.reg ...]\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:49
-#, no-wrap
-msgid ""
-" virt-win-reg [--options] disk.img ... # instead of domname\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:53
-msgid ""
-"You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
-"virtual machines. If you do this, you I<will> get irreversible disk "
-"corruption in the VM. C<virt-win-reg> tries to stop you from doing this, "
-"but doesn't catch all cases."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:58
-msgid ""
-"Modifying the Windows Registry is an inherently risky operation. The format "
-"is deliberately obscure and undocumented, and Registry changes can leave the "
-"system unbootable. Therefore when using the C<--merge> option, make sure "
-"you have a reliable backup first."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:65
-msgid ""
-"This program can export and merge Windows Registry entries from a Windows "
-"guest."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:68
-msgid ""
-"The first parameter is the libvirt guest name or the raw disk image of a "
-"Windows guest."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:71
-msgid ""
-"If C<--merge> is I<not> specified, then the chosen registry key is "
-"displayed/exported (recursively). For example:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:74
-#, no-wrap
-msgid ""
-" $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:76
-msgid "You can also display single values from within registry keys, for example:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:79
-#, no-wrap
-msgid ""
-" $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
-" $ virt-win-reg Windows7 $cvkey ProductName\n"
-" Windows 7 Enterprise\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:83
-msgid ""
-"With C<--merge>, you can merge a textual regedit file into the Windows "
-"Registry:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:86
-#, no-wrap
-msgid ""
-" $ virt-win-reg --merge Windows7 changes.reg\n"
-"\n"
-msgstr ""
-
-# type: =head2
-#: ../tools/virt-win-reg.pl:88
-msgid "NOTE"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:90
-msgid ""
-"This program is only meant for simple access to the registry. If you want "
-"to do complicated things with the registry, we suggest you download the "
-"Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
-"and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
-"L<hivexregedit(1)>."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
-msgid "B<--debug>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
-msgid "Enable debugging messages."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-win-reg.pl:157
-msgid "B<--merge>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:159
-msgid ""
-"In merge mode, this merges a textual regedit file into the Windows Registry "
-"of the virtual machine. If this flag is I<not> given then virt-win-reg "
-"displays or exports Registry entries instead."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:163
-msgid ""
-"Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
-"result in disk corruption. However exporting (without this flag) is always "
-"safe."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-win-reg.pl:171
-msgid "B<--encoding> UTF-16LE|ASCII"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:173
-msgid ""
-"When merging (only), you may need to specify the encoding for strings to be "
-"used in the hive file. This is explained in detail in "
-"L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:177
-msgid ""
-"The default is to use UTF-16LE, which should work with recent versions of "
-"Windows."
-msgstr ""
-
-# type: =head1
-#: ../tools/virt-win-reg.pl:402
-msgid "SUPPORTED SYSTEMS"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:404
-msgid ""
-"The program currently supports Windows NT-derived guests starting with "
-"Windows XP through to at least Windows 7."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:407
-msgid ""
-"Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
-"C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
-"C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:411
-msgid ""
-"You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
-"C<HKEY_USERS>."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:414
-msgid ""
-"C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
-"time."
-msgstr ""
-
-# type: =head1
-#: ../tools/virt-win-reg.pl:417
-msgid "ENCODING"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:419
-msgid ""
-"C<virt-win-reg> expects that regedit files have already been reencoded in "
-"the local encoding. Usually on Linux hosts, this means UTF-8 with "
-"Unix-style line endings. Since Windows regedit files are often in UTF-16LE "
-"with Windows-style line endings, you may need to reencode the whole file "
-"before or after processing."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:425
-msgid ""
-"To reencode a file from Windows format to Linux (before processing it with "
-"the C<--merge> option), you would do something like this:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:428
-#, no-wrap
-msgid ""
-" iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:430
-msgid ""
-"To go in the opposite direction, after exporting and before sending the file "
-"to a Windows user, do something like this:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:433
-#, no-wrap
-msgid ""
-" unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:435
-msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:437
-msgid ""
-"If you are unsure about the current encoding, use the L<file(1)> command. "
-"Recent versions of Windows regedit.exe produce a UTF-16LE file with "
-"Windows-style (CRLF) line endings, like this:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:441
-#, no-wrap
-msgid ""
-" $ file software.reg\n"
-" software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
-" with CRLF line terminators\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:445
-msgid "This file would need conversion before you could C<--merge> it."
-msgstr ""
-
-# type: =head1
-#: ../tools/virt-win-reg.pl:447
-msgid "CurrentControlSet etc."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:449
-msgid ""
-"Registry keys like C<CurrentControlSet> don't really exist in the Windows "
-"Registry at the level of the hive file, and therefore you cannot modify "
-"these."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:453
-msgid ""
-"C<CurrentControlSet> is usually an alias for C<ControlSet001>. In some "
-"circumstances it might refer to another control set. The way to find out is "
-"to look at the C<HKLM\\SYSTEM\\Select> key:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:457
-#, no-wrap
-msgid ""
-" # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
-" [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
-" \"Current\"=dword:00000001\n"
-" \"Default\"=dword:00000001\n"
-" \"Failed\"=dword:00000000\n"
-" \"LastKnownGood\"=dword:00000002\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:464
-msgid "\"Current\" is the one which Windows will choose when it boots."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:466
-msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
-msgstr ""
-
-# type: =head1
-#: ../tools/virt-win-reg.pl:469
-msgid "WINDOWS TIPS"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:471
-msgid ""
-"Note that some of these tips modify the guest disk image. The guest I<must> "
-"be shut off, else you will get disk corruption."
-msgstr ""
-
-# type: =head2
-#: ../tools/virt-win-reg.pl:474
-msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:476
-msgid ""
-"Prepare a DOS batch script, VBScript or executable. Upload this using "
-"L<guestfish(1)>. For this example the script is called C<test.bat> and it "
-"is uploaded into C<C:\\>:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:480
-#, no-wrap
-msgid ""
-" guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:482
-msgid "Prepare a regedit file containing the registry change:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:484
-#, no-wrap
-msgid ""
-" cat > test.reg <<'EOF'\n"
-" [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
-" \"Test\"=\"c:\\\\test.bat\"\n"
-" EOF\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:489
-msgid ""
-"In this example we use the key C<RunOnce> which means that the script will "
-"run precisely once when the first user logs in. If you want it to run every "
-"time a user logs in, replace C<RunOnce> with C<Run>."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:493
-msgid "Now update the registry:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:495
-#, no-wrap
-msgid ""
-" virt-win-reg --merge WindowsGuest test.reg\n"
-"\n"
-msgstr ""
-
-# type: =head2
-#: ../tools/virt-win-reg.pl:497
-msgid "INSTALLING A SERVICE"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:499
-msgid ""
-"This section assumes you are familiar with Windows services, and you either "
-"have a program which handles the Windows Service Control Protocol directly "
-"or you want to run any program using a service wrapper like SrvAny or the "
-"free RHSrvAny."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:504
-msgid ""
-"First upload the program and optionally the service wrapper. In this case "
-"the test program is called C<test.exe> and we are using the RHSrvAny "
-"wrapper:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:508
-#, no-wrap
-msgid ""
-" guestfish -i -d WindowsGuest <<EOF\n"
-" upload rhsrvany.exe /rhsrvany.exe\n"
-" upload test.exe /test.exe\n"
-" EOF\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:513
-msgid ""
-"Prepare a regedit file containing the registry changes. In this example, "
-"the first registry change is needed for the service itself or the service "
-"wrapper (if used). The second registry change is only needed because I am "
-"using the RHSrvAny service wrapper."
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:518
-#, no-wrap
-msgid ""
-" cat > service.reg <<'EOF'\n"
-" [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
-" \"Type\"=dword:00000010\n"
-" \"Start\"=dword:00000002\n"
-" \"ErrorControl\"=dword:00000001\n"
-" \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
-" \"DisplayName\"=\"RHSrvAny\"\n"
-" \"ObjectName\"=\"NetworkService\"\n"
-" \n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:527
-#, no-wrap
-msgid ""
-" [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
-" \"CommandLine\"=\"c:\\\\test.exe\"\n"
-" \"PWD\"=\"c:\\\\Temp\"\n"
-" EOF\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:538
-msgid ""
-"For use of C<ControlSet001> see the section above in this manual page. You "
-"may need to adjust this according to the control set that is in use by the "
-"guest."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:544
-msgid ""
-"C<\"ObjectName\"> controls the privileges that the service will have. An "
-"alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
-"privileged account."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:550
-msgid ""
-"For the meaning of the magic numbers, see this Microsoft KB article: "
-"L<http://support.microsoft.com/kb/103000>."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:555
-msgid "Update the registry:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:557
-#, no-wrap
-msgid ""
-" virt-win-reg --merge WindowsGuest service.reg\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:561
-msgid ""
-"Be careful when passing parameters containing C<\\> (backslash) in the "
-"shell. Usually you will have to use 'single quotes' or double backslashes "
-"(but not both) to protect them from the shell."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:565
-msgid "Paths and value names are case-insensitive."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:574
-msgid ""
-"L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
-"L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
-"L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
-"L<Sys::Virt(3)>, L<http://libguestfs.org/>."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:550
-msgid ""
-"When reporting bugs, please enable debugging and capture the I<complete> "
-"output:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-win-reg.pl:592
-#, no-wrap
-msgid ""
-" export LIBGUESTFS_DEBUG=1\n"
-" virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:595
-msgid ""
-"Attach /tmp/virt-win-reg.log to a new bug report at "
-"L<https://bugzilla.redhat.com/>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1510 ../tools/virt-make-fs.pl:565
-msgid "Copyright (C) 2010 Red Hat Inc."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:42
-msgid "virt-resize - Resize a virtual machine disk"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:46
-#, no-wrap
-msgid ""
-" virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
-" [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
-" [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:52
-msgid ""
-"Virt-resize is a tool which can resize a virtual machine disk, making it "
-"larger or smaller overall, and resizing or deleting any partitions contained "
-"within."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:56
-msgid ""
-"Virt-resize B<cannot> resize disk images in-place. Virt-resize B<should "
-"not> be used on live virtual machines - for consistent results, shut the "
-"virtual machine down before resizing it."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:60
-msgid ""
-"If you are not familiar with the associated tools: L<virt-filesystems(1)> "
-"and L<virt-df(1)>, we recommend you go and read those manual pages first."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:66
-msgid ""
-"Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
-"fill the extra 5GB of space."
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:69
-#, no-wrap
-msgid ""
-" truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
-" virt-filesystems --long --h --all -a olddisk\n"
-" # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
-" virt-resize --expand /dev/sda2 olddisk newdisk\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:74
-msgid ""
-"As above, but make the /boot partition 200MB bigger, while giving the "
-"remaining space to /dev/sda2:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:77
-#, no-wrap
-msgid ""
-" virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:79
-msgid "As above, but the output format will be uncompressed qcow2:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:81
-#, no-wrap
-msgid ""
-" qemu-img create -f qcow2 newdisk.qcow2 15G\n"
-" virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
-"\n"
-msgstr ""
-
-# type: =head1
-#: ../tools/virt-resize.pl:84
-msgid "DETAILED USAGE"
-msgstr ""
-
-# type: =head2
-#: ../tools/virt-resize.pl:86
-msgid "EXPANDING A VIRTUAL MACHINE DISK"
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:90
-msgid "1. Shut down the virtual machine"
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:92
-msgid "2. Locate input disk image"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:94
-msgid ""
-"Locate the input disk image (ie. the file or device on the host containing "
-"the guest's disk). If the guest is managed by libvirt, you can use C<virsh "
-"dumpxml> like this to find the disk image name:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:98
-#, no-wrap
-msgid ""
-" # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
-" Found 1 nodes:\n"
-" -- NODE --\n"
-" <source dev=\"/dev/vg/lv_guest\" />\n"
-"\n"
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:103
-msgid "3. Look at current sizing"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:105
-msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:108
-#, no-wrap
-msgid ""
-" # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
-" Name Type Size Parent\n"
-" /dev/sda1 partition 101M /dev/sda\n"
-" /dev/sda2 partition 7.9G /dev/sda\n"
-" /dev/sda device 8.0G -\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:114
-msgid ""
-"(This example is a virtual machine with an 8 GB disk which we would like to "
-"expand up to 10 GB)."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:117
-msgid "4. Create output disk"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:119
-msgid ""
-"Virt-resize cannot do in-place disk modifications. You have to have space "
-"to store the resized output disk."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:122
-msgid "To store the resized disk image in a file, create a file of a suitable size:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:125
-#, no-wrap
-msgid ""
-" # rm -f outdisk\n"
-" # truncate -s 10G outdisk\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:128
-msgid "Or use L<lvcreate(1)> to create a logical volume:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:130
-#, no-wrap
-msgid ""
-" # lvcreate -L 10G -n lv_name vg_name\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:132
-msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:134
-#, no-wrap
-msgid ""
-" # virsh pool-list\n"
-" # virsh vol-create-as poolname newvol 10G\n"
-"\n"
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:137
-msgid "5. Resize"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:139
-msgid ""
-"virt-resize takes two mandatory parameters, the input disk (eg. device or "
-"file) and the output disk. The output disk is the one created in the "
-"previous step."
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:143
-#, no-wrap
-msgid ""
-" # virt-resize indisk outdisk\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:145
-msgid ""
-"This command just copies disk image C<indisk> to disk image C<outdisk> "
-"I<without> resizing or changing any existing partitions. If C<outdisk> is "
-"larger, then an extra, empty partition is created at the end of the disk "
-"covering the extra space. If C<outdisk> is smaller, then it will give an "
-"error."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:151
-msgid ""
-"More realistically you'd want to expand existing partitions in the disk "
-"image by passing extra options (for the full list see the L</OPTIONS> "
-"section below)."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:155
-msgid ""
-"L</--expand> is the most useful option. It expands the named partition "
-"within the disk to fill any extra space:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:158
-#, no-wrap
-msgid ""
-" # virt-resize --expand /dev/sda2 indisk outdisk\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:160
-msgid ""
-"(In this case, an extra partition is I<not> created at the end of the disk, "
-"because there will be no unused space)."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:163
-msgid ""
-"L</--resize> is the other commonly used option. The following would "
-"increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
-"rest of the available space:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:167
-#, no-wrap
-msgid ""
-" # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
-" indisk outdisk\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:170
-msgid ""
-"If the expanded partition in the image contains a filesystem or LVM PV, then "
-"if virt-resize knows how, it will resize the contents, the equivalent of "
-"calling a command such as L<pvresize(8)>, L<resize2fs(8)> or "
-"L<ntfsresize(8)>. However virt-resize does not know how to resize some "
-"filesystems, so you would have to online resize them after booting the "
-"guest."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:177
-msgid "Other options are covered below."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:179
-msgid "6. Test"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:181
-msgid "Thoroughly test the new disk image I<before> discarding the old one."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:183
-msgid "If you are using libvirt, edit the XML to point at the new disk:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:185
-#, no-wrap
-msgid ""
-" # virsh edit guestname\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:187
-msgid ""
-"Change E<lt>source ...E<gt>, see "
-"L<http://libvirt.org/formatdomain.html#elementsDisks>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:190
-msgid "Then start up the domain with the new, resized disk:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:192
-#, no-wrap
-msgid ""
-" # virsh start guestname\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:194
-msgid ""
-"and check that it still works. See also the L</NOTES> section below for "
-"additional information."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:197
-msgid "7. Resize LVs etc inside the guest"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:199
-msgid "(This can also be done offline using L<guestfish(1)>)"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:201
-msgid ""
-"Once the guest has booted you should see the new space available, at least "
-"for filesystems that virt-resize knows how to resize, and for PVs. The user "
-"may need to resize LVs inside PVs, and also resize filesystem types that "
-"virt-resize does not know how to expand."
-msgstr ""
-
-# type: =head2
-#: ../tools/virt-resize.pl:208
-msgid "SHRINKING A VIRTUAL MACHINE DISK"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:210
-msgid ""
-"Shrinking is somewhat more complex than expanding, and only an overview is "
-"given here."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:213
-msgid ""
-"Firstly virt-resize will not attempt to shrink any partition content (PVs, "
-"filesystems). The user has to shrink content before passing the disk image "
-"to virt-resize, and virt-resize will check that the content has been shrunk "
-"properly."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:218
-msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:220
-msgid ""
-"After shrinking PVs and filesystems, shut down the guest, and proceed with "
-"steps 3 and 4 above to allocate a new disk image."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:223
-msgid "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
-msgstr ""
-
-# type: =head2
-#: ../tools/virt-resize.pl:226
-msgid "IGNORING OR DELETING PARTITIONS"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:228
-msgid ""
-"virt-resize also gives a convenient way to ignore or delete partitions when "
-"copying from the input disk to the output disk. Ignoring a partition speeds "
-"up the copy where you don't care about the existing contents of a "
-"partition. Deleting a partition removes it completely, but note that it "
-"also renumbers any partitions after the one which is deleted, which can "
-"leave some guests unbootable."
-msgstr ""
-
-# type: =head2
-#: ../tools/virt-resize.pl:235
-msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:237
-msgid ""
-"If the input disk is in qcow2 format, then you may prefer that the output is "
-"in qcow2 format as well. Alternately, virt-resize can convert the format on "
-"the fly. The output format is simply determined by the format of the empty "
-"output container that you provide. Thus to create qcow2 output, use:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:243
-#, no-wrap
-msgid ""
-" qemu-img create [-c] -f qcow2 outdisk [size]\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:245
-msgid "instead of the truncate command (use C<-c> for a compressed disk)."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:247
-msgid "Similarly, to get non-sparse raw output use:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:249
-#, no-wrap
-msgid ""
-" fallocate -l size outdisk\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:251
-msgid ""
-"(on older systems that don't have the L<fallocate(1)> command use C<dd "
-"if=/dev/zero of=outdisk bs=1M count=..>)"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:264
-msgid "Display help."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:278
-msgid "B<--resize part=size>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:280
-msgid ""
-"Resize the named partition (expanding or shrinking it) so that it has the "
-"given size."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:283
-msgid ""
-"C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
-"mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
-"Exabytes; or as a percentage of the current size; or as a relative number or "
-"percentage. For example:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:288
-#, no-wrap
-msgid ""
-" --resize /dev/sda2=10G\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:290
-#, no-wrap
-msgid ""
-" --resize /dev/sda4=90%\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:292
-#, no-wrap
-msgid ""
-" --resize /dev/sda2=+1G\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:294
-#, no-wrap
-msgid ""
-" --resize /dev/sda2=-200M\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:296
-#, no-wrap
-msgid ""
-" --resize /dev/sda1=+128K\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:298
-#, no-wrap
-msgid ""
-" --resize /dev/sda1=+10%\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:300
-#, no-wrap
-msgid ""
-" --resize /dev/sda1=-10%\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:302
-msgid ""
-"You can increase the size of any partition. Virt-resize will expand the "
-"direct content of the partition if it knows how (see C<--expand> below)."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:306
-msgid ""
-"You can only I<decrease> the size of partitions that contain filesystems or "
-"PVs which have already been shrunk. Virt-resize will check this has been "
-"done before proceeding, or else will print an error (see also "
-"C<--resize-force>)."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403 ../tools/virt-resize.pl:420
-msgid "You can give this option multiple times."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:317
-msgid "B<--resize-force part=size>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:319
-msgid ""
-"This is the same as C<--resize> except that it will let you decrease the "
-"size of any partition. Generally this means you will lose any data which "
-"was at the end of the partition you shrink, but you may not care about that "
-"(eg. if shrinking an unused partition, or if you can easily recreate it such "
-"as a swap partition)."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:325
-msgid "See also the C<--ignore> option."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:331
-msgid "B<--expand part>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:333
-msgid ""
-"Expand the named partition so it uses up all extra space (space left over "
-"after any other resize changes that you request have been done)."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:336
-msgid ""
-"If virt-resize knows how, it will expand the direct content of the "
-"partition. For example, if the partition is an LVM PV, it will expand the "
-"PV to fit (like calling L<pvresize(8)>). Virt-resize leaves any other "
-"content it doesn't know about alone."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:341
-msgid "Currently virt-resize can resize:"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:347
-msgid ""
-"ext2, ext3 and ext4 filesystems when they are contained directly inside a "
-"partition."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:352
-msgid ""
-"NTFS filesystems contained directly in a partition, if libguestfs was "
-"compiled with support for NTFS."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:355
-msgid ""
-"The filesystem must have been shut down consistently last time it was used. "
-"Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
-"consistency check, so at the first boot after resizing Windows will check "
-"the disk."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:362
-msgid ""
-"LVM PVs (physical volumes). virt-resize does not usually resize anything "
-"inside the PV, but see the C<--LV-expand> option. The user could also "
-"resize LVs as desired after boot."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
-msgid "Note that you cannot use C<--expand> and C<--shrink> together."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:374
-msgid "B<--shrink part>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:376
-msgid ""
-"Shrink the named partition until the overall disk image fits in the "
-"destination. The named partition B<must> contain a filesystem or PV which "
-"has already been shrunk using another tool (eg. L<guestfish(1)> or other "
-"online tools). Virt-resize will check this and give an error if it has not "
-"been done."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:382
-msgid ""
-"The amount by which the overall disk must be shrunk (after carrying out all "
-"other operations requested by the user) is called the \"deficit\". For "
-"example, a straight copy (assume no other operations) from a 5GB disk image "
-"to a 4GB disk image results in a 1GB deficit. In this case, virt-resize "
-"would give an error unless the user specified a partition to shrink and that "
-"partition had more than a gigabyte of free space."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:396
-msgid "B<--ignore part>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:398
-msgid ""
-"Ignore the named partition. Effectively this means the partition is "
-"allocated on the destination disk, but the content is not copied across from "
-"the source disk. The content of the partition will be blank (all zero "
-"bytes)."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:409
-msgid "B<--delete part>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:411
-msgid ""
-"Delete the named partition. It would be more accurate to describe this as "
-"\"don't copy it over\", since virt-resize doesn't do in-place changes and "
-"the original disk image is left intact."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:415
-msgid ""
-"Note that when you delete a partition, then anything contained in the "
-"partition is also deleted. Furthermore, this causes any partitions that "
-"come after to be I<renumbered>, which can easily make your guest unbootable."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:426
-msgid "B<--LV-expand logvol>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:428
-msgid ""
-"This takes the logical volume and, as a final step, expands it to fill all "
-"the space available in its volume group. A typical usage, assuming a Linux "
-"guest with a single PV C</dev/sda2> and a root device called "
-"C</dev/vg_guest/lv_root> would be:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:433
-#, no-wrap
-msgid ""
-" virt-resize indisk outdisk \\\n"
-" --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:436
-msgid ""
-"This would first expand the partition (and PV), and then expand the root "
-"device to fill the extra space in the PV."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:439
-msgid ""
-"The contents of the LV are also resized if virt-resize knows how to do "
-"that. You can stop virt-resize from trying to expand the content by using "
-"the option C<--no-expand-content>."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:443
-msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:446
-msgid ""
-"You can give this option multiple times, I<but> it doesn't make sense to do "
-"this unless the logical volumes you specify are all in different volume "
-"groups."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:454
-msgid "B<--no-copy-boot-loader>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:456
-msgid ""
-"By default, virt-resize copies over some sectors at the start of the disk "
-"(up to the beginning of the first partition). Commonly these sectors "
-"contain the Master Boot Record (MBR) and the boot loader, and are required "
-"in order for the guest to boot correctly."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:461
-msgid ""
-"If you specify this flag, then this initial copy is not done. You may need "
-"to reinstall the boot loader in this case."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:469
-msgid "B<--no-extra-partition>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:471
-msgid ""
-"By default, virt-resize creates an extra partition if there is any extra, "
-"unused space after all resizing has happened. Use this option to prevent "
-"the extra partition from being created. If you do this then the extra space "
-"will be inaccessible until you run fdisk, parted, or some other partitioning "
-"tool in the guest."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:477
-msgid ""
-"Note that if the surplus space is smaller than 10 MB, no extra partition "
-"will be created."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:484
-msgid "B<--no-expand-content>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:486
-msgid ""
-"By default, virt-resize will try to expand the direct contents of "
-"partitions, if it knows how (see C<--expand> option above)."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:489
-msgid ""
-"If you give the C<--no-expand-content> option then virt-resize will not "
-"attempt this."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:496
-msgid "B<-d> | B<--debug>"
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:504
-msgid "B<-n> | B<--dryrun>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:506
-msgid "Print a summary of what would be done, but don't do anything."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:512
-msgid "B<-q> | B<--quiet>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:514
-msgid "Don't print the summary."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:522
-msgid ""
-"Specify the format of the input disk image. If this flag is not given then "
-"it is auto-detected from the image itself."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:528
-msgid ""
-"Note that this option I<does not> affect the output format. See L</QCOW2 "
-"AND NON-SPARSE RAW FORMATS>."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-resize.pl:535
-msgid "B<--output-format> raw"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:537
-msgid ""
-"Specify the format of the output disk image. If this flag is not given then "
-"it is auto-detected from the image itself."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:543
-msgid ""
-"Note that you still need to create the output disk with the right format. "
-"See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
-msgstr ""
-
-# type: =head1
-#: ../tools/virt-resize.pl:1419
-msgid "NOTES"
-msgstr ""
-
-# type: =head2
-#: ../tools/virt-resize.pl:1421
-msgid "\"Partition 1 does not end on cylinder boundary.\""
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:1423
-msgid ""
-"Virt-resize aligns partitions to multiples of 64 sectors. Usually this "
-"means the partitions will not be aligned to the ancient CHS geometry. "
-"However CHS geometry is meaningless for disks manufactured since the early "
-"1990s, and doubly so for virtual hard drives. Alignment of partitions to "
-"cylinders is not required by any modern operating system."
-msgstr ""
-
-# type: =head2
-#: ../tools/virt-resize.pl:1430
-msgid "RESIZING WINDOWS VIRTUAL MACHINES"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:1432
-msgid ""
-"In Windows Vista and later versions, Microsoft switched to using a separate "
-"boot partition. In these VMs, typically C</dev/sda1> is the boot partition "
-"and C</dev/sda2> is the main (C:) drive. We have not had any luck resizing "
-"the boot partition. Doing so seems to break the guest completely. However "
-"expanding the second partition (ie. C: drive) should work."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:1439
-msgid ""
-"Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
-"NTFS partitions have been expanded. This is just a safety check and (unless "
-"it find errors) is nothing to worry about."
-msgstr ""
-
-# type: =head2
-#: ../tools/virt-resize.pl:1443
-msgid "GUEST BOOT STUCK AT \"GRUB\""
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:1445
-msgid ""
-"If a Linux guest does not boot after resizing, and the boot is stuck after "
-"printing C<GRUB> on the console, try reinstalling grub. This sometimes "
-"happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
-"although we think is to do with partition alignment."
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-resize.pl:1450
-#, no-wrap
-msgid ""
-" guestfish -i -a newdisk\n"
-" ><fs> cat /boot/grub/device.map\n"
-" # check the contents of this file are sensible or\n"
-" # edit the file if necessary\n"
-" ><fs> grub-install / /dev/vda\n"
-" ><fs> exit\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:1457
-msgid ""
-"For more flexible guest reconfiguration, including if you need to specify "
-"other parameters to grub-install, use L<virt-rescue(1)>."
-msgstr ""
-
-# type: =head1
-#: ../tools/virt-resize.pl:1460
-msgid "ALTERNATIVE TOOLS"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:1462
-msgid ""
-"There are several proprietary tools for resizing partitions. We won't "
-"mention any here."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:1465
-msgid ""
-"L<parted(8)> and its graphical shell gparted can do some types of resizing "
-"operations on disk images. They can resize and move partitions, but I don't "
-"think they can do anything with the contents, and they certainly don't "
-"understand LVM."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:1470
-msgid ""
-"L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
-"but at a much lower level. You will probably end up hand-calculating sector "
-"offsets, which is something that virt-resize was designed to avoid. If you "
-"want to see the guestfish-equivalent commands that virt-resize runs, use the "
-"C<--debug> flag."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-resize.pl:1485
-msgid ""
-"L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
-"L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
-"L<ntfsresize(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
-"L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
-"L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-list-filesystems.pl:32
-msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-list-filesystems.pl:36
-#, no-wrap
-msgid ""
-" virt-list-filesystems [--options] domname\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-list-filesystems.pl:38
-#, no-wrap
-msgid ""
-" virt-list-filesystems [--options] disk.img [disk.img ...]\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
-msgid ""
-"This tool is obsolete. Use L<virt-filesystems(1)> as a more flexible "
-"replacement."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-list-filesystems.pl:45
-msgid ""
-"C<virt-list-filesystems> is a command line tool to list the filesystems that "
-"are contained in a virtual machine or disk image."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-list-filesystems.pl:49
-msgid ""
-"C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
-"functionality. For more complex cases you should look at the "
-"L<guestfish(1)> tool."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
-msgid "B<-l> | B<--long>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-list-filesystems.pl:108
-msgid ""
-"With this option, C<virt-list-filesystems> displays the type of each "
-"filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
-msgstr ""
-
-# type: =item
-#: ../tools/virt-list-filesystems.pl:115
-msgid "B<-a> | B<--all>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-list-filesystems.pl:117
-msgid ""
-"Normally we only show mountable filesystems. If this option is given then "
-"swap devices are shown too."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-list-filesystems.pl:191
-msgid ""
-"L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
-"L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
-"L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
-msgid "Copyright (C) 2009 Red Hat Inc."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-tar.pl:33
-msgid "virt-tar - Extract or upload files to a virtual machine"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-tar.pl:37
-#, no-wrap
-msgid ""
-" virt-tar [--options] -x domname directory tarball\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-tar.pl:39
-#, no-wrap
-msgid ""
-" virt-tar [--options] -u domname tarball directory\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-tar.pl:41
-#, no-wrap
-msgid ""
-" virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-tar.pl:43
-#, no-wrap
-msgid ""
-" virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-tar.pl:47
-msgid "Download C</home> from the VM into a local tarball:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-tar.pl:49
-#, no-wrap
-msgid ""
-" virt-tar -x domname /home home.tar\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-tar.pl:51
-#, no-wrap
-msgid ""
-" virt-tar -zx domname /home home.tar.gz\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-tar.pl:53
-msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-tar.pl:55
-#, no-wrap
-msgid ""
-" virt-tar -u domname uploadstuff.tar /tmp\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-tar.pl:57
-#, no-wrap
-msgid ""
-" virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-tar.pl:61
-msgid ""
-"You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
-"virtual machines. If you do this, you risk disk corruption in the VM. "
-"C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-tar.pl:66
-msgid ""
-"You can use C<-x> (extract) on live virtual machines, but you might get "
-"inconsistent results or errors if there is filesystem activity inside the "
-"VM. If the live VM is synched and quiescent, then C<virt-tar> will usually "
-"work, but the only way to guarantee consistent results is if the virtual "
-"machine is shut down."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-tar.pl:74
-msgid ""
-"C<virt-tar> is a general purpose archive tool for downloading and uploading "
-"parts of a guest filesystem. There are many possibilities: making backups, "
-"uploading data files, snooping on guest activity, fixing or customizing "
-"guests, etc."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-tar.pl:79
-msgid ""
-"If you want to just view a single file, use L<virt-cat(1)>. If you just "
-"want to edit a single file, use L<virt-edit(1)>. For more complex cases you "
-"should look at the L<guestfish(1)> tool."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-tar.pl:83
-msgid ""
-"There are two modes of operation: C<-x> (eXtract) downloads a directory and "
-"its contents (recursively) from the virtual machine into a local tarball. "
-"C<-u> uploads from a local tarball, unpacking it into a directory inside the "
-"virtual machine. You cannot use these two options together."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-tar.pl:89
-msgid ""
-"In addition, you may need to use the C<-z> (gZip) option to enable "
-"compression. When uploading, you have to specify C<-z> if the upload file "
-"is compressed because virt-tar won't detect this on its own."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-tar.pl:93
-msgid ""
-"C<virt-tar> can only handle tar (optionally gzipped) format tarballs. For "
-"example it cannot do PKZip files or bzip2 compression. If you want that "
-"then you'll have to rebuild the tarballs yourself. (This is a limitation of "
-"the L<libguestfs(3)> API)."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-tar.pl:151
-msgid "B<-x> | B<--extract> | B<--download>"
-msgstr ""
-
-# type: =item
-#: ../tools/virt-tar.pl:153
-msgid "B<-u> | B<--upload>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-tar.pl:155
-msgid ""
-"Use C<-x> to extract (download) a directory from a virtual machine to a "
-"local tarball."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-tar.pl:158
-msgid ""
-"Use C<-u> to upload and unpack from a local tarball into a virtual machine. "
-"Please read the L</WARNING> section above before using this option."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-tar.pl:162
-msgid "You must specify exactly one of these options."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-tar.pl:168
-msgid "B<-z> | B<--gzip>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-tar.pl:170
-msgid "Specify that the input or output tarball is gzip-compressed."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-tar.pl:283
-msgid ""
-"L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
-"L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
-"L<http://libguestfs.org/>."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:37
-msgid "virt-make-fs - Make a filesystem from a tar archive or files"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-make-fs.pl:41
-#, no-wrap
-msgid ""
-" virt-make-fs [--options] input.tar output.img\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-make-fs.pl:43
-#, no-wrap
-msgid ""
-" virt-make-fs [--options] input.tar.gz output.img\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-make-fs.pl:45
-#, no-wrap
-msgid ""
-" virt-make-fs [--options] directory output.img\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:49
-msgid ""
-"Virt-make-fs is a command line tool for creating a filesystem from a tar "
-"archive or some files in a directory. It is similar to tools like "
-"L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>. Unlike those tools, "
-"it can create common filesystem types like ext2/3 or NTFS, which can be "
-"useful if you want to attach these filesystems to existing virtual machines "
-"(eg. to import large amounts of read-only data to a VM)."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:57
-msgid "Basic usage is:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-make-fs.pl:59
-#, no-wrap
-msgid ""
-" virt-make-fs input output\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:61
-msgid ""
-"where C<input> is either a directory containing files that you want to add, "
-"or a tar archive (either uncompressed tar or gzip-compressed tar); and "
-"C<output> is a disk image. The input type is detected automatically. The "
-"output disk image defaults to a raw ext2 image unless you specify extra "
-"flags (see L</OPTIONS> below)."
-msgstr ""
-
-# type: =head2
-#: ../tools/virt-make-fs.pl:67
-msgid "EXTRA SPACE"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:69
-msgid ""
-"Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
-"the files that it contains, but might have extra space. Depending on how "
-"you are going to use the output, you might think this extra space is wasted "
-"and want to minimize it, or you might want to leave space so that more files "
-"can be added later. Virt-make-fs defaults to minimizing the extra space, "
-"but you can use the C<--size> flag to leave space in the filesystem if you "
-"want it."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:77
-msgid ""
-"An alternative way to leave extra space but not make the output image any "
-"bigger is to use an alternative disk image format (instead of the default "
-"\"raw\" format). Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
-"image format (check your hypervisor supports this before using it). This "
-"allows you to choose a large C<--size> but the extra space won't actually be "
-"allocated in the image until you try to store something in it."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:85
-msgid ""
-"Don't forget that you can also use local commands including L<resize2fs(8)> "
-"and L<virt-resize(1)> to resize existing filesystems, or rerun "
-"virt-make-resize to build another image from scratch."
-msgstr ""
-
-# type: =head3
-#: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
-msgid "EXAMPLE"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-make-fs.pl:91
-#, no-wrap
-msgid ""
-" virt-make-fs --format=qcow2 --size=+200M input output.img\n"
-"\n"
-msgstr ""
-
-# type: =head2
-#: ../tools/virt-make-fs.pl:93
-msgid "FILESYSTEM TYPE"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:95
-msgid ""
-"The default filesystem type is C<ext2>. Just about any filesystem type that "
-"libguestfs supports can be used (but I<not> read-only formats like "
-"ISO9660). Here are some of the more common choices:"
-msgstr ""
-
-# type: =item
-#: ../tools/virt-make-fs.pl:101
-msgid "I<ext3>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:103
-msgid ""
-"Note that ext3 filesystems contain a journal, typically 1-32 MB in size. If "
-"you are not going to use the filesystem in a way that requires the journal, "
-"then this is just wasted overhead."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-make-fs.pl:107
-msgid "I<ntfs> or I<vfat>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:109
-msgid "Useful if exporting data to a Windows guest."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:111
-msgid ""
-"I<Note for vfat>: The tar archive or local directory must only contain files "
-"which are owned by root (ie. UID:GID = 0:0). The reason is that the tar "
-"program running within libguestfs is unable to change the ownership of "
-"non-root files, since vfat itself does not support this."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-make-fs.pl:116
-msgid "I<minix>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:118
-msgid ""
-"Lower overhead than C<ext2>, but certain limitations on filename length and "
-"total filesystem size."
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-make-fs.pl:125
-#, no-wrap
-msgid ""
-" virt-make-fs --type=minix input minixfs.img\n"
-"\n"
-msgstr ""
-
-# type: =head2
-#: ../tools/virt-make-fs.pl:127
-msgid "TO PARTITION OR NOT TO PARTITION"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:129
-msgid "Optionally virt-make-fs can add a partition table to the output disk."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:131
-msgid ""
-"Adding a partition can make the disk image more compatible with certain "
-"virtualized operating systems which don't expect to see a filesystem "
-"directly located on a block device (Linux doesn't care and will happily "
-"handle both types)."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:136
-msgid ""
-"On the other hand, if you have a partition table then the output image is no "
-"longer a straight filesystem. For example you cannot run L<fsck(8)> "
-"directly on a partitioned disk image. (However libguestfs tools such as "
-"L<guestfish(1)> and L<virt-resize(1)> can still be used)."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:144
-msgid "Add an MBR partition:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-make-fs.pl:146
-#, no-wrap
-msgid ""
-" virt-make-fs --partition -- input disk.img\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:148
-msgid ""
-"If the output disk image could be terabyte-sized or larger, it's better to "
-"use an EFI/GPT-compatible partition table:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-make-fs.pl:151
-#, no-wrap
-msgid ""
-" virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:179
-msgid "Enable debugging information."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-make-fs.pl:185
-msgid "B<--size=E<lt>NE<gt>>"
-msgstr ""
-
-# type: =item
-#: ../tools/virt-make-fs.pl:187
-msgid "B<--size=+E<lt>NE<gt>>"
-msgstr ""
-
-# type: =item
-#: ../tools/virt-make-fs.pl:189
-msgid "B<-s E<lt>NE<gt>>"
-msgstr ""
-
-# type: =item
-#: ../tools/virt-make-fs.pl:191
-msgid "B<-s +E<lt>NE<gt>>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:193
-msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:196
-msgid ""
-"If this option is I<not> given, then the output image will be just large "
-"enough to contain all the files, with not much wasted space."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:199
-msgid ""
-"To choose a fixed size output disk, specify an absolute number followed by "
-"b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
-"Petabytes or Exabytes. This must be large enough to contain all the input "
-"files, else you will get an error."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:204
-msgid ""
-"To leave extra space, specify C<+> (plus sign) and a number followed by "
-"b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
-"Petabytes or Exabytes. For example: C<--size=+200M> means enough space for "
-"the input files, and (approximately) an extra 200 MB free space."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:210
-msgid ""
-"Note that virt-make-fs estimates free space, and therefore will not produce "
-"filesystems containing precisely the free space requested. (It is much more "
-"expensive and time-consuming to produce a filesystem which has precisely the "
-"desired free space)."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-make-fs.pl:219
-msgid "B<--format=E<lt>fmtE<gt>>"
-msgstr ""
-
-# type: =item
-#: ../tools/virt-make-fs.pl:221
-msgid "B<-F E<lt>fmtE<gt>>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:223
-msgid "Choose the output disk image format."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:225
-msgid "The default is C<raw> (raw disk image)."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:227
-msgid ""
-"For other choices, see the L<qemu-img(1)> manpage. The only other choice "
-"that would really make sense here is C<qcow2>."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-make-fs.pl:234
-msgid "B<--type=E<lt>fsE<gt>>"
-msgstr ""
-
-# type: =item
-#: ../tools/virt-make-fs.pl:236
-msgid "B<-t E<lt>fsE<gt>>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:238
-msgid "Choose the output filesystem type."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:240
-msgid "The default is C<ext2>."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:242
-msgid "Any filesystem which is supported read-write by libguestfs can be used here."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-make-fs.pl:249
-msgid "B<--partition>"
-msgstr ""
-
-# type: =item
-#: ../tools/virt-make-fs.pl:251
-msgid "B<--partition=E<lt>parttypeE<gt>>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:253
-msgid ""
-"If specified, this flag adds an MBR partition table to the output disk "
-"image."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:256
-msgid ""
-"You can change the partition table type, eg. C<--partition=gpt> for large "
-"disks."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:259
-msgid ""
-"Note that if you just use a lonesome C<--partition>, the Perl option parser "
-"might consider the next parameter to be the partition type. For example:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-make-fs.pl:263
-#, no-wrap
-msgid ""
-" virt-make-fs --partition input.tar ...\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:265
-msgid ""
-"would cause virt-make-fs to think you wanted to use a partition type of "
-"C<input.tar> which is completely wrong. To avoid this, use C<--> (a double "
-"dash) between options and the input file argument:"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-make-fs.pl:269
-#, no-wrap
-msgid ""
-" virt-make-fs --partition -- input.tar ...\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:536
-msgid ""
-"L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
-"L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
-"L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-make-fs.pl:553
-#, no-wrap
-msgid ""
-" export LIBGUESTFS_DEBUG=1\n"
-" virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-make-fs.pl:556
-msgid ""
-"Attach /tmp/virt-make-fs.log to a new bug report at "
-"L<https://bugzilla.redhat.com/>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-list-partitions.pl:32
-msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-list-partitions.pl:36
-#, no-wrap
-msgid ""
-" virt-list-partitions [--options] domname\n"
-"\n"
-msgstr ""
-
-# type: verbatim
-#: ../tools/virt-list-partitions.pl:38
-#, no-wrap
-msgid ""
-" virt-list-partitions [--options] disk.img [disk.img ...]\n"
-"\n"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-list-partitions.pl:45
-msgid ""
-"C<virt-list-partitions> is a command line tool to list the partitions that "
-"are contained in a virtual machine or disk image. It is mainly useful as a "
-"first step to using L<virt-resize(1)>."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-list-partitions.pl:50
-msgid ""
-"C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
-"functionality. For more complex cases you should look at the "
-"L<guestfish(1)> tool."
-msgstr ""
-
-# type: =item
-#: ../tools/virt-list-partitions.pl:107
-msgid "B<-h> | B<--human-readable>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-list-partitions.pl:109
-msgid "Show sizes in human-readable form (eg. \"1G\")."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-list-partitions.pl:117
-msgid ""
-"With this option, C<virt-list-partitions> displays the type and size of each "
-"partition too (where \"type\" means C<ext3>, C<pv> etc.)"
-msgstr ""
-
-# type: =item
-#: ../tools/virt-list-partitions.pl:124
-msgid "B<-t> | B<--total>"
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-list-partitions.pl:126
-msgid "Display the total size of each block device (as a separate row or rows)."
-msgstr ""
-
-# type: textblock
-#: ../tools/virt-list-partitions.pl:259
-msgid ""
-"L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
-"L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
-"L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
-msgstr ""