X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=po-docs%2Fja.po;h=1a4e710bb664382a5295aa3eef2ab0c67776136a;hp=1e547f0514d5049582db43617e680adb66eebe24;hb=cd1322e30d6c34d7d9f87d72dfa1660aa5d8af38;hpb=54ea124b160eda705c96dfc664b4056848887856 diff --git a/po-docs/ja.po b/po-docs/ja.po index 1e547f0..1a4e710 100644 --- a/po-docs/ja.po +++ b/po-docs/ja.po @@ -2,16 +2,17 @@ # Copyright (C) YEAR Red Hat Inc. # This file is distributed under the same license as the libguestfs package. # +# Translators: # rjones , 2011. +# , 2011. msgid "" msgstr "" "Project-Id-Version: libguestfs\n" "Report-Msgid-Bugs-To: libguestfs@redhat.com\n" -"POT-Creation-Date: 2011-08-07 23:15+0200\n" -"PO-Revision-Date: 2011-07-17 20:50+0000\n" +"POT-Creation-Date: 2011-12-03 11:24+0000\n" +"PO-Revision-Date: 2011-10-27 09:15+0000\n" "Last-Translator: rjones \n" -"Language-Team: Japanese (http://www.transifex.net/projects/p/fedora/team/" -"ja/)\n" +"Language-Team: Japanese \n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -19,9 +20,11 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0\n" #. type: =head1 -#: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3 -#: ../df/virt-df.pod:3 ../edit/virt-edit.pod:3 -#: ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14 +#: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3 +#: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3 +#: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3 +#: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3 +#: ../examples/guestfs-recipes.pod:14 ../examples/guestfs-testing.pod:3 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3 @@ -29,7 +32,8 @@ msgstr "" #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3 -#: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3 +#: ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3 +#: ../test-tool/libguestfs-test-tool.pod:3 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31 #: ../tools/virt-win-reg.pl:35 @@ -37,21 +41,23 @@ msgid "NAME" msgstr "名前" #. type: textblock -#: ../cat/virt-cat.pod:5 -msgid "virt-cat - Display files in a virtual machine" +#: ../align/virt-alignment-scan.pod:5 +msgid "virt-alignment-scan - Check alignment of virtual machine partitions" msgstr "" #. type: =head1 -#: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7 -#: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7 -#: ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7 -#: ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7 -#: ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7 -#: ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7 -#: ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7 -#: ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7 -#: ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7 -#: ../ruby/examples/guestfs-ruby.pod:7 ../src/guestfs.pod:7 +#: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7 +#: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7 +#: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7 +#: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7 +#: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7 +#: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7 +#: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7 +#: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7 +#: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7 +#: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7 +#: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7 +#: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7 #: ../test-tool/libguestfs-test-tool.pod:7 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35 @@ -60,55 +66,37 @@ msgid "SYNOPSIS" msgstr "" #. type: verbatim -#: ../cat/virt-cat.pod:9 -#, no-wrap -msgid "" -" virt-cat [--options] -d domname file [file ...]\n" -"\n" -msgstr "" - -#. type: verbatim -#: ../cat/virt-cat.pod:11 -#, no-wrap -msgid "" -" virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n" -"\n" -msgstr "" - -#. type: textblock -#: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15 -#: ../inspector/virt-inspector.pod:13 -msgid "Old-style:" -msgstr "" - -#. type: verbatim -#: ../cat/virt-cat.pod:15 +#: ../align/virt-alignment-scan.pod:9 #, no-wrap msgid "" -" virt-cat domname file\n" +" virt-alignment-scan [--options] -d domname\n" "\n" msgstr "" #. type: verbatim -#: ../cat/virt-cat.pod:17 +#: ../align/virt-alignment-scan.pod:11 #, no-wrap msgid "" -" virt-cat disk.img file\n" +" virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n" "\n" msgstr "" #. type: =head1 -#: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 -#: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27 +#: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19 +#: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 +#: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27 +#: ../erlang/examples/guestfs-erlang.pod:16 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18 -#: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19 -#: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21 -#: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20 -#: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15 -#: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18 -#: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29 +#: ../examples/guestfs-testing.pod:7 ../fish/guestfish.pod:30 +#: ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13 +#: ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15 +#: ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19 +#: ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25 +#: ../perl/examples/guestfs-perl.pod:18 +#: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:31 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15 -#: ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11 +#: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23 +#: ../test-tool/libguestfs-test-tool.pod:11 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77 #: ../tools/virt-win-reg.pl:63 @@ -116,128 +104,173 @@ msgid "DESCRIPTION" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:21 +#: ../align/virt-alignment-scan.pod:15 msgid "" -"C is a command line tool to display the contents of C where " -"C exists in the named virtual machine (or disk image)." +"When older operating systems install themselves, the partitioning tools " +"place partitions at a sector misaligned with the underlying storage " +"(commonly the first partition starts on sector C<63>). Misaligned " +"partitions can result in an operating system issuing more I/O than should be " +"necessary." msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:24 +#: ../align/virt-alignment-scan.pod:21 msgid "" -"Multiple filenames can be given, in which case they are concatenated " -"together. Each filename must be a full path, starting at the root directory " -"(starting with '/')." +"The virt-alignment-scan tool checks the alignment of partitions in virtual " +"machines and disk images and warns you if there are alignment problems." msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:28 +#: ../align/virt-alignment-scan.pod:25 msgid "" -"C can be used to quickly view a file. To edit a file, use C. For more complex cases you should look at the L tool " -"(see L below)." +"Currently there is no virt tool for fixing alignment problems. You can only " +"reinstall the guest operating system. The following NetApp document " +"summarises the problem and possible solutions: L" msgstr "" #. type: =head1 -#: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43 -#: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41 -#: ../fish/guestfish.pod:1007 ../fish/virt-copy-in.pod:29 -#: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30 -#: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39 -#: ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50 -msgid "EXAMPLES" +#: ../align/virt-alignment-scan.pod:30 +msgid "OUTPUT" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:34 +#: ../align/virt-alignment-scan.pod:32 +msgid "To run this tool on a disk image directly, use the I<-a> option:" +msgstr "" + +#. type: verbatim +#: ../align/virt-alignment-scan.pod:34 +#, no-wrap msgid "" -"Display C file from inside the libvirt VM called C:" +" $ virt-alignment-scan -a winxp.img\n" +" /dev/sda1 32256 512 bad (alignment < 4K)\n" +"\n" msgstr "" #. type: verbatim -#: ../cat/virt-cat.pod:37 +#: ../align/virt-alignment-scan.pod:37 #, no-wrap msgid "" -" virt-cat -d mydomain /etc/fstab\n" +" $ virt-alignment-scan -a fedora16.img\n" +" /dev/sda1 1048576 1024K ok\n" +" /dev/sda2 2097152 2048K ok\n" +" /dev/sda3 526385152 2048K ok\n" "\n" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:39 -msgid "List syslog messages from a VM disk image file:" +#: ../align/virt-alignment-scan.pod:42 +msgid "" +"To run the tool on a guest known to libvirt, use the I<-d> option and " +"possibly the I<-c> option:" msgstr "" #. type: verbatim -#: ../cat/virt-cat.pod:41 +#: ../align/virt-alignment-scan.pod:45 #, no-wrap msgid "" -" virt-cat -a disk.img /var/log/messages | tail\n" +" # virt-alignment-scan -d RHEL5\n" +" /dev/sda1 32256 512 bad (alignment < 4K)\n" +" /dev/sda2 106928640 512 bad (alignment < 4K)\n" "\n" msgstr "" -#. type: textblock -#: ../cat/virt-cat.pod:43 -msgid "Find out what DHCP IP address a VM acquired:" -msgstr "" - #. type: verbatim -#: ../cat/virt-cat.pod:45 +#: ../align/virt-alignment-scan.pod:49 #, no-wrap msgid "" -" virt-cat -d mydomain /var/log/messages | \\\n" -" grep 'dhclient: bound to' | tail\n" +" $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n" +" /dev/sda1 1048576 1024K ok\n" +" /dev/sda2 105906176 1024K ok\n" +" /dev/sdb1 65536 64K ok\n" "\n" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:48 -msgid "Find out what packages were recently installed:" +#: ../align/virt-alignment-scan.pod:54 +msgid "" +"The output consists of 4 or more whitespace-separated columns. Only the " +"first 4 columns are signficant if you want to parse this from a program. " +"The columns are:" msgstr "" -#. type: verbatim -#: ../cat/virt-cat.pod:50 -#, no-wrap +#. type: =item +#: ../align/virt-alignment-scan.pod:60 +msgid "col 1" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:62 msgid "" -" virt-cat -d mydomain /var/log/yum.log | tail\n" -"\n" +"the device and partition name (eg. C meaning the first partition " +"on the first block device)" +msgstr "" + +#. type: =item +#: ../align/virt-alignment-scan.pod:65 +msgid "col 2" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:52 -msgid "Find out who is logged on inside a virtual machine:" +#: ../align/virt-alignment-scan.pod:67 +msgid "the start of the partition in bytes" msgstr "" -#. type: verbatim -#: ../cat/virt-cat.pod:54 -#, no-wrap +#. type: =item +#: ../align/virt-alignment-scan.pod:69 +msgid "col 3" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:71 +msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)" +msgstr "" + +#. type: =item +#: ../align/virt-alignment-scan.pod:73 +msgid "col 4" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:75 msgid "" -" virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n" -" who /tmp/utmp\n" -"\n" +"C if the alignment is best for performance, or C if the alignment " +"can cause performance problems" +msgstr "" + +#. type: =item +#: ../align/virt-alignment-scan.pod:78 +msgid "cols 5+" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:57 -msgid "or who was logged on:" +#: ../align/virt-alignment-scan.pod:80 +msgid "optional free-text explanation." msgstr "" -#. type: verbatim -#: ../cat/virt-cat.pod:59 -#, no-wrap +#. type: textblock +#: ../align/virt-alignment-scan.pod:84 msgid "" -" virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n" -" last -f /tmp/wtmp\n" -"\n" +"The exit code from the program changes depending on whether poorly aligned " +"partitions were found. See L below." +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:87 +msgid "If you just want the exit code with no output, use the I<-q> option." msgstr "" #. type: =head1 -#: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91 -#: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62 +#: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62 +#: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 +#: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42 -#: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83 -#: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84 -#: ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:37 +#: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92 +#: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:112 +#: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99 +#: ../test-tool/libguestfs-test-tool.pod:36 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103 #: ../tools/virt-win-reg.pl:96 @@ -245,20 +278,24 @@ msgid "OPTIONS" msgstr "" #. type: =item -#: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95 -#: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66 -#: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151 -#: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88 -#: ../resize/virt-resize.pod:245 ../tools/virt-list-filesystems.pl:61 -#: ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161 -#: ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104 +#: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66 +#: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265 +#: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66 +#: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160 +#: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:116 +#: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103 +#: ../test-tool/libguestfs-test-tool.pod:40 +#: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62 +#: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111 +#: ../tools/virt-win-reg.pl:104 msgid "B<--help>" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97 -#: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68 -#: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90 +#: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68 +#: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267 +#: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68 +#: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:118 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113 #: ../tools/virt-win-reg.pl:106 @@ -266,55 +303,58 @@ msgid "Display brief help." msgstr "" #. type: =item -#: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99 -#: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70 -#: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92 +#: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70 +#: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 +#: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70 +#: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:120 msgid "B<-a> file" msgstr "" #. type: =item -#: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101 -#: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72 -#: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94 +#: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72 +#: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 +#: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72 +#: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:122 msgid "B<--add> file" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103 -#: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74 -#: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96 -msgid "" -"Add I which should be a disk image from a virtual machine. If the " -"virtual machine has multiple block devices, you must supply all of them with " -"separate I<-a> options." +#: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54 +msgid "Add I which should be a disk image from a virtual machine." msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107 -#: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78 -#: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93 -#: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100 +#: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78 +#: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277 +#: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78 +#: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102 +#: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:128 msgid "" "The format of the disk image is auto-detected. To override this and force a " "particular format use the I<--format=..> option." msgstr "" #. type: =item -#: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125 -#: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107 +#: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81 +#: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 +#: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78 +#: ../rescue/virt-rescue.pod:135 msgid "B<-c> URI" msgstr "" #. type: =item -#: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127 -#: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109 +#: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83 +#: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 +#: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80 +#: ../rescue/virt-rescue.pod:137 msgid "B<--connect> URI" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129 -#: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99 -#: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111 +#: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85 +#: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 +#: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99 +#: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:139 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132 msgid "" @@ -323,73 +363,66 @@ msgid "" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132 -#: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114 +#: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88 +#: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 +#: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85 +#: ../rescue/virt-rescue.pod:142 msgid "" "If you specify guest block devices directly (I<-a>), then libvirt is not " "used at all." msgstr "" #. type: =item -#: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141 -#: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105 -#: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117 +#: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91 +#: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 +#: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105 +#: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:145 msgid "B<-d> guest" msgstr "" #. type: =item -#: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143 -#: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107 -#: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119 +#: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93 +#: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 +#: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107 +#: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:147 msgid "B<--domain> guest" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145 -#: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109 -#: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121 +#: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95 +#: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 +#: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109 +#: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:149 msgid "" "Add all the disks from the named libvirt guest. Domain UUIDs can be used " "instead of names." msgstr "" #. type: =item -#: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148 -#: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217 -#: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92 -msgid "B<--echo-keys>" -msgstr "" - -#. type: textblock -#: ../cat/virt-cat.pod:100 -msgid "" -"When prompting for keys and passphrases, virt-cat normally turns echoing off " -"so you cannot see what you are typing. If you are not worried about Tempest " -"attacks and there is no one else in the room you can specify this flag to " -"see what you are typing." -msgstr "" - -#. type: =item -#: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170 -#: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233 -#: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99 -#: ../rescue/virt-rescue.pod:124 +#: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105 +#: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328 +#: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101 +#: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142 +#: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:152 msgid "B<--format=raw|qcow2|..>" msgstr "" #. type: =item -#: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172 -#: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134 -#: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135 -#: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126 +#: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107 +#: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330 +#: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103 +#: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235 +#: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101 +#: ../rescue/virt-rescue.pod:154 msgid "B<--format>" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174 -#: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 -#: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137 -#: ../rescue/virt-rescue.pod:128 +#: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109 +#: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332 +#: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105 +#: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237 +#: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:156 msgid "" "The default for the I<-a> option is to auto-detect the format of the disk " "image. Using this forces the disk format for I<-a> options which follow on " @@ -398,50 +431,56 @@ msgid "" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179 -#: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 -#: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673 -#: ../inspector/virt-inspector.pod:335 ../rescue/virt-rescue.pod:133 -#: ../src/guestfs.pod:2653 +#: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114 +#: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337 +#: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110 +#: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242 +#: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351 +#: ../rescue/virt-rescue.pod:161 ../src/guestfs.pod:2877 msgid "For example:" msgstr "" #. type: verbatim -#: ../cat/virt-cat.pod:116 +#: ../align/virt-alignment-scan.pod:134 #, no-wrap msgid "" -" virt-cat --format=raw -a disk.img file\n" +" virt-alignment-scan --format=raw -a disk.img\n" "\n" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183 -#: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145 -#: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137 +#: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118 +#: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341 +#: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114 +#: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246 +#: ../rescue/virt-rescue.pod:165 msgid "forces raw format (no auto-detection) for C." msgstr "" #. type: verbatim -#: ../cat/virt-cat.pod:120 +#: ../align/virt-alignment-scan.pod:138 #, no-wrap msgid "" -" virt-cat --format=raw -a disk.img --format -a another.img file\n" +" virt-alignment-scan --format=raw -a disk.img --format -a another.img\n" "\n" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187 -#: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149 -#: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141 +#: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122 +#: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345 +#: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118 +#: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250 +#: ../rescue/virt-rescue.pod:169 msgid "" "forces raw format (no auto-detection) for C and reverts to auto-" "detection for C." msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190 -#: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152 -#: ../rescue/virt-rescue.pod:144 +#: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125 +#: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348 +#: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121 +#: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:172 msgid "" "If you have untrusted raw-format guest disk images, you should use this " "option to specify the disk format. This avoids a possible security problem " @@ -449,210 +488,397 @@ msgid "" msgstr "" #. type: =item -#: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200 -#: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289 -#: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114 -msgid "B<--keys-from-stdin>" +#: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:497 +#: ../sparsify/virt-sparsify.pod:177 +msgid "B<-q>" +msgstr "" + +#. type: =item +#: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:499 +#: ../sparsify/virt-sparsify.pod:179 +msgid "B<--quiet>" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202 -#: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291 -#: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116 +#: ../align/virt-alignment-scan.pod:151 msgid "" -"Read key or passphrase parameters from stdin. The default is to try to read " -"passphrases from the user by opening C." +"Don't produce any output. Just set the exit code (see L " +"below)." msgstr "" #. type: =item -#: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261 -#: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161 -#: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257 -#: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:178 +#: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134 +#: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425 +#: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173 +#: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390 +#: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119 +#: ../rescue/virt-rescue.pod:219 ../sparsify/virt-sparsify.pod:183 msgid "B<-v>" msgstr "" #. type: =item -#: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263 -#: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163 -#: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259 -#: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:180 +#: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136 +#: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427 +#: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175 +#: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392 +#: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121 +#: ../rescue/virt-rescue.pod:221 ../sparsify/virt-sparsify.pod:185 msgid "B<--verbose>" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265 -#: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165 -#: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:182 +#: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138 +#: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429 +#: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177 +#: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123 +#: ../rescue/virt-rescue.pod:223 ../sparsify/virt-sparsify.pod:187 msgid "Enable verbose messages for debugging." msgstr "" #. type: =item -#: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267 -#: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167 -#: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263 -#: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:184 -#: ../resize/virt-resize.pod:478 +#: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140 +#: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431 +#: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179 +#: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397 +#: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125 +#: ../rescue/virt-rescue.pod:225 ../resize/virt-resize.pod:567 +#: ../sparsify/virt-sparsify.pod:189 msgid "B<-V>" msgstr "" #. type: =item -#: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269 -#: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169 -#: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265 -#: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:186 -#: ../resize/virt-resize.pod:480 ../tools/virt-list-filesystems.pl:69 +#: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142 +#: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433 +#: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181 +#: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399 +#: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127 +#: ../rescue/virt-rescue.pod:227 ../resize/virt-resize.pod:569 +#: ../sparsify/virt-sparsify.pod:191 ../tools/virt-list-filesystems.pl:69 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112 msgid "B<--version>" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271 -#: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171 -#: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:188 -#: ../resize/virt-resize.pod:482 ../tools/virt-list-filesystems.pl:71 +#: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144 +#: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435 +#: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183 +#: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129 +#: ../rescue/virt-rescue.pod:229 ../resize/virt-resize.pod:571 +#: ../sparsify/virt-sparsify.pod:193 ../tools/virt-list-filesystems.pl:71 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114 msgid "Display version number and exit." msgstr "" #. type: =item -#: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281 -#: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173 -#: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278 -#: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:199 +#: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146 +#: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437 +#: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185 +#: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412 +#: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131 +#: ../rescue/virt-rescue.pod:240 ../sparsify/virt-sparsify.pod:195 #: ../tools/virt-tar.pl:158 msgid "B<-x>" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283 -#: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175 -#: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:201 +#: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148 +#: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439 +#: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187 +#: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133 +#: ../rescue/virt-rescue.pod:242 ../sparsify/virt-sparsify.pod:197 msgid "Enable tracing of libguestfs API calls." msgstr "" #. type: =head1 -#: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179 -#: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:205 -msgid "OLD-STYLE COMMAND LINE ARGUMENTS" +#: ../align/virt-alignment-scan.pod:172 +msgid "RECOMMENDED ALIGNMENT" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:154 -msgid "Previous versions of virt-cat allowed you to write either:" +#: ../align/virt-alignment-scan.pod:174 +msgid "" +"Operating systems older than Windows 2008 and Linux before ca.2010 place the " +"first sector of the first partition at sector 63, with a 512 byte sector " +"size. This happens because of a historical accident. Drives have to report " +"a cylinder / head / sector (CHS) geometry to the BIOS. The geometry is " +"completely meaningless on modern drives, but it happens that the geometry " +"reported always has 63 sectors per track. The operating system therefore " +"places the first partition at the start of the second \"track\", at sector " +"63." msgstr "" -#. type: verbatim -#: ../cat/virt-cat.pod:156 -#, no-wrap +#. type: textblock +#: ../align/virt-alignment-scan.pod:183 msgid "" -" virt-cat disk.img [disk.img ...] file\n" -"\n" +"When the guest OS is virtualized, the host operating system and hypervisor " +"may prefer accesses aligned to one of:" +msgstr "" + +#. type: =item +#: ../align/virt-alignment-scan.pod:188 +msgid "* 512 bytes" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185 -#: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:211 -msgid "or" +#: ../align/virt-alignment-scan.pod:190 +msgid "" +"if the host OS uses local storage directly on hard drive partitions, and the " +"hard drive has 512 byte physical sectors." +msgstr "" + +#. type: =item +#: ../align/virt-alignment-scan.pod:193 +msgid "* 4 Kbytes" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:195 +msgid "" +"for local storage on new hard drives with 4Kbyte physical sectors; for file-" +"backed storage on filesystems with 4Kbyte block size; or for some types of " +"network-attached storage." +msgstr "" + +#. type: =item +#: ../align/virt-alignment-scan.pod:199 +msgid "* 64 Kbytes" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:201 +msgid "" +"for high-end network-attached storage. This is the optimal block size for " +"some NetApp hardware." +msgstr "" + +#. type: =item +#: ../align/virt-alignment-scan.pod:204 +msgid "* 1 Mbyte" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:206 +msgid "see L below." +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:210 +msgid "" +"Partitions which are not aligned correctly to the underlying storage cause " +"extra I/O. For example:" msgstr "" #. type: verbatim -#: ../cat/virt-cat.pod:160 +#: ../align/virt-alignment-scan.pod:213 #, no-wrap msgid "" -" virt-cat guestname file\n" +" sect#63\n" +" +--------------------------+------\n" +" | guest |\n" +" | filesystem block |\n" +" ---+------------------+------+-------------------+-----+---\n" +" | host block | host block |\n" +" | | |\n" +" ---+-------------------------+-------------------------+---\n" "\n" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189 -#: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:215 +#: ../align/virt-alignment-scan.pod:222 msgid "" -"whereas in this version you should use I<-a> or I<-d> respectively to avoid " -"the confusing case where a disk image might have the same name as a guest." +"In this example, each time a 4K guest block is read, two blocks on the host " +"must be accessed (so twice as much I/O is done). When a 4K guest block is " +"written, two host blocks must first be read, the old and new data combined, " +"and the two blocks written back (4x I/O)." +msgstr "" + +#. type: =head2 +#: ../align/virt-alignment-scan.pod:227 +msgid "LINUX HOST BLOCK AND I/O SIZE" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193 -#: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:219 -msgid "For compatibility the old style is still supported." +#: ../align/virt-alignment-scan.pod:229 +msgid "" +"New versions of the Linux kernel expose the physical and logical block size, " +"and minimum and recommended I/O size." msgstr "" -#. type: =head1 -#: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297 -msgid "USING GUESTFISH" +#. type: textblock +#: ../align/virt-alignment-scan.pod:232 +msgid "For a typical consumer hard drive with 512 byte sectors:" +msgstr "" + +#. type: verbatim +#: ../align/virt-alignment-scan.pod:234 +#, no-wrap +msgid "" +" $ cat /sys/block/sda/queue/hw_sector_size\n" +" 512\n" +" $ cat /sys/block/sda/queue/physical_block_size\n" +" 512\n" +" $ cat /sys/block/sda/queue/logical_block_size\n" +" 512\n" +" $ cat /sys/block/sda/queue/minimum_io_size\n" +" 512\n" +" $ cat /sys/block/sda/queue/optimal_io_size\n" +" 0\n" +"\n" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:170 +#: ../align/virt-alignment-scan.pod:245 +msgid "For a new consumer hard drive with 4Kbyte sectors:" +msgstr "" + +#. type: verbatim +#: ../align/virt-alignment-scan.pod:247 +#, no-wrap msgid "" -"L is a more powerful, lower level tool which you can use when " -"C doesn't work." +" $ cat /sys/block/sda/queue/hw_sector_size\n" +" 4096\n" +" $ cat /sys/block/sda/queue/physical_block_size\n" +" 4096\n" +" $ cat /sys/block/sda/queue/logical_block_size\n" +" 4096\n" +" $ cat /sys/block/sda/queue/minimum_io_size\n" +" 4096\n" +" $ cat /sys/block/sda/queue/optimal_io_size\n" +" 0\n" +"\n" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:173 -msgid "Using C is approximately equivalent to doing:" +#: ../align/virt-alignment-scan.pod:258 +msgid "For a NetApp LUN:" msgstr "" #. type: verbatim -#: ../cat/virt-cat.pod:175 +#: ../align/virt-alignment-scan.pod:260 #, no-wrap msgid "" -" guestfish --ro -i -d domname download file -\n" +" $ cat /sys/block/sdc/queue/logical_block_size\n" +" 512\n" +" $ cat /sys/block/sdc/queue/physical_block_size\n" +" 512\n" +" $ cat /sys/block/sdc/queue/minimum_io_size\n" +" 4096\n" +" $ cat /sys/block/sdc/queue/optimal_io_size\n" +" 65536\n" "\n" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:177 +#: ../align/virt-alignment-scan.pod:269 msgid "" -"where C is the name of the libvirt guest, and C is the full " -"path to the file. Note the final C<-> (meaning \"output to stdout\")." +"The NetApp allows 512 byte accesses (but they will be very inefficient), " +"prefers a minimum 4K I/O size, but the optimal I/O size is 64K." msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:181 +#: ../align/virt-alignment-scan.pod:273 msgid "" -"The command above uses libguestfs's guest inspection feature and so does not " -"work on guests that libguestfs cannot inspect, or on things like arbitrary " -"disk images that don't contain guests. To display a file from a disk image " -"directly, use:" +"For detailed information about what these numbers mean, see L" msgstr "" -#. type: verbatim -#: ../cat/virt-cat.pod:186 -#, no-wrap +#. type: textblock +#: ../align/virt-alignment-scan.pod:276 msgid "" -" guestfish --ro -a disk.img -m /dev/sda1 download file -\n" -"\n" +"[Thanks to Matt Booth for providing 4K drive data. Thanks to Mike Snitzer " +"for providing NetApp data and additional information.]" +msgstr "" + +#. type: =head2 +#: ../align/virt-alignment-scan.pod:279 +msgid "1 MB PARTITION ALIGNMENT" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:188 +#: ../align/virt-alignment-scan.pod:281 msgid "" -"where C is the disk image, C is the filesystem within " -"the disk image to edit, and C is the full path to the file." +"Microsoft picked 1 MB as the default alignment for all partitions starting " +"with Windows 2008 Server, and Linux has followed this." +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:284 +msgid "" +"Assuming 512 byte sectors in the guest, you will now see the first partition " +"starting at sector 2048, and subsequent partitions (if any) will start at a " +"multiple of 2048 sectors." +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:288 +msgid "" +"1 MB alignment is compatible with all current alignment requirements (4K, " +"64K) and provides room for future growth in physical block sizes." +msgstr "" + +#. type: =head2 +#: ../align/virt-alignment-scan.pod:291 +msgid "SETTING ALIGNMENT" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:293 +msgid "" +"L can change the alignment of the partitions of some " +"guests. Currently it can fully align all the partitions of all Windows " +"guests, and it will fix the bootloader where necessary. For Linux guests, " +"it can align the second and subsequent partitions, so the majority of OS " +"accesses except at boot will be aligned." +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:299 +msgid "" +"Another way to correct partition alignment problems is to reinstall your " +"guest operating systems. If you install operating systems from templates, " +"ensure these have correct partition alignment too." +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:303 +msgid "" +"For older versions of Windows, the following NetApp document contains useful " +"information: L" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:306 +msgid "" +"For Red Hat Enterprise Linux E 5, use a Kickstart script that contains " +"an explicit C<%pre> section that creates aligned partitions using L. Do not use the Kickstart C command. The NetApp document above " +"contains an example." msgstr "" #. type: =head1 -#: ../cat/virt-cat.pod:192 ../cat/virt-filesystems.pod:365 -#: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342 -#: ../inspector/virt-inspector.pod:349 ../rescue/virt-rescue.pod:262 -#: ../resize/virt-resize.pod:543 ../tools/virt-list-filesystems.pl:188 -#: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532 -#: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733 +#: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231 +#: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483 +#: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:241 +#: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367 +#: ../rescue/virt-rescue.pod:303 ../resize/virt-resize.pod:682 +#: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258 +#: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289 +#: ../tools/virt-win-reg.pl:744 msgid "SHELL QUOTING" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:194 ../cat/virt-filesystems.pod:367 -#: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344 -#: ../inspector/virt-inspector.pod:351 ../rescue/virt-rescue.pod:264 -#: ../resize/virt-resize.pod:545 ../tools/virt-list-filesystems.pl:190 -#: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534 -#: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741 +#: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233 +#: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485 +#: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:243 +#: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369 +#: ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:684 +#: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260 +#: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291 +#: ../tools/virt-win-reg.pl:752 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 " @@ -661,85 +887,242 @@ msgid "" msgstr "" #. type: =head1 -#: ../cat/virt-cat.pod:199 ../cat/virt-filesystems.pod:372 -#: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349 +#: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238 +#: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490 +#: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:248 +#: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114 +#: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390 +#: ../resize/virt-resize.pod:689 ../sparsify/virt-sparsify.pod:251 +#: ../test-tool/libguestfs-test-tool.pod:90 +msgid "EXIT STATUS" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:320 +msgid "This program returns:" +msgstr "" + +#. type: =item +#: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330 +#: ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343 +#: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187 +#: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202 +#: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287 +#: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295 +#: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314 +#: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322 +#: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362 +#: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388 +#: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266 +#: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276 +#: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291 +#: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102 +#: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132 +#: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227 +#: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235 +#: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243 +#: ../examples/guestfs-testing.pod:110 ../examples/guestfs-testing.pod:114 +#: ../examples/guestfs-testing.pod:118 ../fish/guestfish-actions.pod:13 +#: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:441 +#: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:456 +#: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:1293 +#: ../fish/guestfish-actions.pod:1297 ../fish/guestfish-actions.pod:1301 +#: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1313 +#: ../fish/guestfish-actions.pod:1317 ../fish/guestfish-actions.pod:1321 +#: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335 +#: ../fish/guestfish-actions.pod:1339 ../fish/guestfish-actions.pod:1429 +#: ../fish/guestfish-actions.pod:1433 ../fish/guestfish-actions.pod:1438 +#: ../fish/guestfish-actions.pod:1443 ../fish/guestfish-actions.pod:1485 +#: ../fish/guestfish-actions.pod:1489 ../fish/guestfish-actions.pod:1494 +#: ../fish/guestfish-actions.pod:1750 ../fish/guestfish-actions.pod:1757 +#: ../fish/guestfish-actions.pod:1764 ../fish/guestfish-actions.pod:2167 +#: ../fish/guestfish-actions.pod:2173 ../fish/guestfish-actions.pod:2181 +#: ../fish/guestfish-actions.pod:2188 ../fish/guestfish-actions.pod:2195 +#: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449 +#: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457 +#: ../inspector/virt-inspector.pod:408 ../inspector/virt-inspector.pod:412 +#: ../resize/virt-resize.pod:365 ../resize/virt-resize.pod:369 +#: ../resize/virt-resize.pod:378 ../resize/virt-resize.pod:384 +#: ../sparsify/virt-sparsify.pod:32 ../sparsify/virt-sparsify.pod:39 +#: ../sparsify/virt-sparsify.pod:43 ../sparsify/virt-sparsify.pod:49 +#: ../sparsify/virt-sparsify.pod:54 ../sparsify/virt-sparsify.pod:58 +#: ../sparsify/virt-sparsify.pod:64 ../src/guestfs-actions.pod:22 +#: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:641 +#: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:656 +#: ../src/guestfs-actions.pod:663 ../src/guestfs-actions.pod:2118 +#: ../src/guestfs-actions.pod:2122 ../src/guestfs-actions.pod:2126 +#: ../src/guestfs-actions.pod:2130 ../src/guestfs-actions.pod:2138 +#: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2146 +#: ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:2160 +#: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2302 +#: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2311 +#: ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2377 +#: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:2386 +#: ../src/guestfs-actions.pod:2801 ../src/guestfs-actions.pod:2808 +#: ../src/guestfs-actions.pod:2815 ../src/guestfs-actions.pod:3360 +#: ../src/guestfs-actions.pod:3366 ../src/guestfs-actions.pod:3374 +#: ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:3388 +#: ../src/guestfs.pod:403 ../src/guestfs.pod:408 ../src/guestfs.pod:413 +#: ../src/guestfs.pod:417 ../src/guestfs.pod:422 ../src/guestfs.pod:426 +#: ../src/guestfs.pod:431 ../src/guestfs.pod:436 ../src/guestfs.pod:1109 +#: ../src/guestfs.pod:1113 ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 +#: ../src/guestfs.pod:1130 ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 +#: ../src/guestfs.pod:1179 ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 +#: ../src/guestfs.pod:1191 ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 +#: ../src/guestfs.pod:1689 ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 +#: ../src/guestfs.pod:1800 ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 +#: ../src/guestfs.pod:1819 ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 +#: ../src/guestfs.pod:2119 ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 +#: ../src/guestfs.pod:2651 ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 +#: ../src/guestfs.pod:3067 ../src/guestfs.pod:3072 ../src/guestfs.pod:3076 +#: ../src/guestfs.pod:3080 ../src/guestfs.pod:3084 ../src/guestfs.pod:3098 +#: ../src/guestfs.pod:3103 ../src/guestfs.pod:3335 ../src/guestfs.pod:3339 +#: ../src/guestfs.pod:3343 ../src/guestfs.pod:3347 +#: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202 +#: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:721 +#: ../tools/virt-win-reg.pl:727 ../tools/virt-win-reg.pl:733 +msgid "*" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:326 +msgid "0" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:328 +msgid "" +"successful exit, all partitions are aligned E 64K for best performance" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:332 +msgid "1" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:334 +msgid "an error scanning the disk image or guest" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:338 +msgid "2" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:340 +msgid "" +"successful exit, some partitions have alignment E 64K which can result " +"in poor performance on high end network storage" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:345 +msgid "3" +msgstr "" + +#. type: textblock +#: ../align/virt-alignment-scan.pod:347 +msgid "" +"successful exit, some partitions have alignment E 4K which can result in " +"poor performance on most hypervisors" +msgstr "" + +#. type: =head1 +#: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243 +#: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495 +#: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:253 +#: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384 -#: ../fish/guestfish.pod:1224 ../fish/virt-copy-in.pod:50 -#: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47 -#: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:303 -#: ../inspector/virt-inspector.pod:372 ../java/examples/guestfs-java.pod:45 -#: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39 -#: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284 -#: ../resize/virt-resize.pod:550 ../ruby/examples/guestfs-ruby.pod:36 -#: ../src/guestfs.pod:3027 ../test-tool/libguestfs-test-tool.pod:87 +#: ../examples/guestfs-testing.pod:291 ../fish/guestfish.pod:1268 +#: ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39 +#: ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41 +#: ../fuse/guestmount.pod:317 ../inspector/virt-inspector.pod:395 +#: ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78 +#: ../perl/examples/guestfs-perl.pod:39 +#: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:325 +#: ../resize/virt-resize.pod:694 ../ruby/examples/guestfs-ruby.pod:36 +#: ../sparsify/virt-sparsify.pod:275 ../src/guestfs.pod:3275 +#: ../test-tool/libguestfs-test-tool.pod:100 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265 -#: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296 -#: ../tools/virt-win-reg.pl:746 +#: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296 +#: ../tools/virt-win-reg.pl:757 msgid "SEE ALSO" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:201 +#: ../align/virt-alignment-scan.pod:354 msgid "" -"L, L, L, L, L, L." +"L, L, L, L, " +"L, L." msgstr "" #. type: =head1 -#: ../cat/virt-cat.pod:208 ../cat/virt-filesystems.pod:383 -#: ../cat/virt-ls.pod:502 ../df/virt-df.pod:230 ../edit/virt-edit.pod:363 -#: ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:571 +#: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252 +#: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507 +#: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:261 +#: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:334 +#: ../resize/virt-resize.pod:717 ../sparsify/virt-sparsify.pod:288 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277 -#: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311 -#: ../tools/virt-win-reg.pl:772 +#: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311 +#: ../tools/virt-win-reg.pl:783 msgid "AUTHOR" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:210 ../cat/virt-filesystems.pod:385 -#: ../cat/virt-ls.pod:504 ../df/virt-df.pod:232 ../edit/virt-edit.pod:365 -#: ../inspector/virt-inspector.pod:386 ../rescue/virt-rescue.pod:294 -#: ../resize/virt-resize.pod:573 ../tools/virt-list-filesystems.pl:210 -#: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566 -#: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774 +#: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254 +#: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509 +#: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:263 +#: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410 +#: ../rescue/virt-rescue.pod:336 ../resize/virt-resize.pod:719 +#: ../sparsify/virt-sparsify.pod:290 ../tools/virt-list-filesystems.pl:210 +#: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584 +#: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785 msgid "Richard W.M. Jones L" msgstr "" #. type: =head1 -#: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:387 -#: ../cat/virt-ls.pod:506 ../df/virt-df.pod:234 ../edit/virt-edit.pod:367 -#: ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400 -#: ../fish/guestfish.pod:1253 ../fish/virt-copy-in.pod:64 -#: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62 -#: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:318 -#: ../inspector/virt-inspector.pod:394 ../java/examples/guestfs-java.pod:61 -#: ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55 -#: ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296 -#: ../resize/virt-resize.pod:575 ../ruby/examples/guestfs-ruby.pod:51 -#: ../src/guestfs.pod:3103 ../test-tool/libguestfs-test-tool.pod:97 +#: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256 +#: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511 +#: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:265 +#: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114 +#: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401 +#: ../examples/guestfs-testing.pod:302 ../fish/guestfish.pod:1300 +#: ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53 +#: ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55 +#: ../fuse/guestmount.pod:332 ../inspector/virt-inspector.pod:418 +#: ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95 +#: ../perl/examples/guestfs-perl.pod:56 +#: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:338 +#: ../resize/virt-resize.pod:721 ../ruby/examples/guestfs-ruby.pod:52 +#: ../sparsify/virt-sparsify.pod:292 ../src/guestfs.pod:3358 +#: ../test-tool/libguestfs-test-tool.pod:110 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281 -#: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315 -#: ../tools/virt-win-reg.pl:776 +#: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315 +#: ../tools/virt-win-reg.pl:787 msgid "COPYRIGHT" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:214 ../inspector/virt-inspector.pod:396 -#: ../resize/virt-resize.pod:577 -msgid "Copyright (C) 2010-2011 Red Hat Inc." +#: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507 +#: ../sparsify/virt-sparsify.pod:294 +msgid "Copyright (C) 2011 Red Hat Inc." msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:391 -#: ../cat/virt-ls.pod:510 ../df/virt-df.pod:238 ../edit/virt-edit.pod:371 -#: ../fish/guestfish.pod:1258 ../fish/virt-copy-in.pod:69 -#: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67 -#: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:323 -#: ../inspector/virt-inspector.pod:398 ../rescue/virt-rescue.pod:300 -#: ../resize/virt-resize.pod:579 ../test-tool/libguestfs-test-tool.pod:102 +#: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260 +#: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515 +#: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:269 +#: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305 +#: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58 +#: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60 +#: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422 +#: ../rescue/virt-rescue.pod:342 ../resize/virt-resize.pod:725 +#: ../sparsify/virt-sparsify.pod:296 ../test-tool/libguestfs-test-tool.pod:115 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285 -#: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319 -#: ../tools/virt-win-reg.pl:780 +#: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319 +#: ../tools/virt-win-reg.pl:791 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 " @@ -748,16 +1131,18 @@ msgid "" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:221 ../cat/virt-filesystems.pod:396 -#: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376 -#: ../fish/guestfish.pod:1263 ../fish/virt-copy-in.pod:74 -#: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72 -#: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:328 -#: ../inspector/virt-inspector.pod:403 ../rescue/virt-rescue.pod:305 -#: ../resize/virt-resize.pod:584 ../test-tool/libguestfs-test-tool.pod:107 +#: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265 +#: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520 +#: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:274 +#: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310 +#: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63 +#: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65 +#: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427 +#: ../rescue/virt-rescue.pod:347 ../resize/virt-resize.pod:730 +#: ../sparsify/virt-sparsify.pod:301 ../test-tool/libguestfs-test-tool.pod:120 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290 -#: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324 -#: ../tools/virt-win-reg.pl:785 +#: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324 +#: ../tools/virt-win-reg.pl:796 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 " @@ -766,223 +1151,620 @@ msgid "" msgstr "" #. type: textblock -#: ../cat/virt-cat.pod:226 ../cat/virt-filesystems.pod:401 -#: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381 -#: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:79 -#: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77 -#: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:333 -#: ../inspector/virt-inspector.pod:408 ../rescue/virt-rescue.pod:310 -#: ../resize/virt-resize.pod:589 ../test-tool/libguestfs-test-tool.pod:112 +#: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270 +#: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525 +#: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:279 +#: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315 +#: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68 +#: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70 +#: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432 +#: ../rescue/virt-rescue.pod:352 ../resize/virt-resize.pod:735 +#: ../sparsify/virt-sparsify.pod:306 ../test-tool/libguestfs-test-tool.pod:125 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295 -#: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329 -#: ../tools/virt-win-reg.pl:790 +#: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329 +#: ../tools/virt-win-reg.pl:801 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 " -"Ave, Cambridge, MA 02139, USA." +"this program; if not, write to the Free Software Foundation, Inc., 51 " +"Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA." msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:5 -msgid "" -"virt-filesystems - List filesystems, partitions, block devices, LVM in a " -"virtual machine or disk image" +#: ../cat/virt-cat.pod:5 +msgid "virt-cat - Display files in a virtual machine" msgstr "" #. type: verbatim -#: ../cat/virt-filesystems.pod:9 +#: ../cat/virt-cat.pod:9 #, no-wrap msgid "" -" virt-filesystems [--options] -d domname\n" +" virt-cat [--options] -d domname file [file ...]\n" "\n" msgstr "" #. type: verbatim -#: ../cat/virt-filesystems.pod:11 +#: ../cat/virt-cat.pod:11 #, no-wrap msgid "" -" virt-filesystems [--options] -a disk.img [-a disk.img ...]\n" +" virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n" "\n" msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:15 -msgid "" -"This tool allows you to discover filesystems, partitions, logical volumes, " -"and their sizes in a disk image or virtual machine. It is a replacement for " -"L and L." +#: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15 +#: ../inspector/virt-inspector.pod:13 +msgid "Old-style:" msgstr "" -#. type: textblock -#: ../cat/virt-filesystems.pod:20 +#. type: verbatim +#: ../cat/virt-cat.pod:15 +#, no-wrap msgid "" -"One use for this tool is from shell scripts to iterate over all filesystems " -"from a disk image:" +" virt-cat domname file\n" +"\n" msgstr "" #. type: verbatim -#: ../cat/virt-filesystems.pod:23 +#: ../cat/virt-cat.pod:17 #, no-wrap msgid "" -" for fs in $(virt-filesystems -a disk.img); do\n" -" # ...\n" -" done\n" +" virt-cat disk.img file\n" "\n" msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:27 +#: ../cat/virt-cat.pod:21 msgid "" -"Another use is to list partitions before using another tool to modify those " -"partitions (such as L). If you are curious about what an " -"unknown disk image contains, use this tool along with L." +"C is a command line tool to display the contents of C where " +"C exists in the named virtual machine (or disk image)." msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:32 +#: ../cat/virt-cat.pod:24 msgid "" -"Various command line options control what this program displays. You need " -"to give either I<-a> or I<-d> options to specify the disk image or libvirt " -"guest respectively. If you just specify that then the program shows " -"filesystems found, one per line, like this:" +"Multiple filenames can be given, in which case they are concatenated " +"together. Each filename must be a full path, starting at the root directory " +"(starting with '/')." msgstr "" -#. type: verbatim -#: ../cat/virt-filesystems.pod:37 -#, no-wrap +#. type: textblock +#: ../cat/virt-cat.pod:28 msgid "" -" $ virt-filesystems -a disk.img\n" -" /dev/sda1\n" -" /dev/vg_guest/lv_root\n" -"\n" +"C can be used to quickly view a file. To edit a file, use C. For more complex cases you should look at the L tool " +"(see L below)." +msgstr "" + +#. type: =head1 +#: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43 +#: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41 +#: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29 +#: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30 +#: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39 +#: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75 +#: ../tools/virt-tar.pl:50 +msgid "EXAMPLES" msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:41 +#: ../cat/virt-cat.pod:34 msgid "" -"If you add I<-l> or I<--long> then the output includes extra information:" +"Display C file from inside the libvirt VM called C:" msgstr "" #. type: verbatim -#: ../cat/virt-filesystems.pod:44 +#: ../cat/virt-cat.pod:37 #, no-wrap msgid "" -" $ virt-filesystems -a disk.img -l\n" -" Name Type VFS Label Size\n" -" /dev/sda1 filesystem ext4 boot 524288000\n" -" /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n" +" virt-cat -d mydomain /etc/fstab\n" "\n" msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:49 -msgid "" -"If you add I<--extra> then non-mountable (swap, unknown) filesystems are " -"shown as well:" +#: ../cat/virt-cat.pod:39 +msgid "List syslog messages from a VM disk image file:" msgstr "" #. type: verbatim -#: ../cat/virt-filesystems.pod:52 +#: ../cat/virt-cat.pod:41 #, no-wrap msgid "" -" $ virt-filesystems -a disk.img --extra\n" -" /dev/sda1\n" -" /dev/vg_guest/lv_root\n" -" /dev/vg_guest/lv_swap\n" -" /dev/vg_guest/lv_data\n" +" virt-cat -a disk.img /var/log/messages | tail\n" "\n" msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:58 -msgid "" -"If you add I<--partitions> then partitions are shown instead of filesystems:" +#: ../cat/virt-cat.pod:43 +msgid "Find out what DHCP IP address a VM acquired:" msgstr "" #. type: verbatim -#: ../cat/virt-filesystems.pod:60 +#: ../cat/virt-cat.pod:45 #, no-wrap msgid "" -" $ virt-filesystems -a disk.img --partitions\n" -" /dev/sda1\n" -" /dev/sda2\n" +" virt-cat -d mydomain /var/log/messages | \\\n" +" grep 'dhclient: bound to' | tail\n" "\n" msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:64 -msgid "" -"Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-" -"volumes>, I<--block-devices> to list those items." +#: ../cat/virt-cat.pod:48 +msgid "Find out what packages were recently installed:" msgstr "" -#. type: textblock -#: ../cat/virt-filesystems.pod:67 +#. type: verbatim +#: ../cat/virt-cat.pod:50 +#, no-wrap msgid "" -"You can use these options in combination as well (if you want a combination " -"including filesystems, you have to add I<--filesystems>). Notice that some " -"items fall into several categories (eg. C might be both a " -"partition and a filesystem). These items are listed several times. To get " -"a list which includes absolutely everything that virt-filesystems knows " -"about, use the I<--all> option." +" virt-cat -d mydomain /var/log/yum.log | tail\n" +"\n" msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:74 +#: ../cat/virt-cat.pod:52 +msgid "Find out who is logged on inside a virtual machine:" +msgstr "" + +#. type: verbatim +#: ../cat/virt-cat.pod:54 +#, no-wrap msgid "" -"UUIDs (because they are quite long) are not shown by default. Add the I<--" -"uuid> option to display device and filesystem UUIDs in the long output." +" virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n" +" who /tmp/utmp\n" +"\n" msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:78 -msgid "" -"I<--all --long --uuid> is a useful combination to display all possible " -"information about everything." +#: ../cat/virt-cat.pod:57 +msgid "or who was logged on:" msgstr "" #. type: verbatim -#: ../cat/virt-filesystems.pod:81 +#: ../cat/virt-cat.pod:59 #, no-wrap msgid "" -" $ virt-filesystems -a win.img --all --long --uuid -h\n" -" Name Type VFS Label Size Parent UUID\n" -" /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n" -" /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n" -" /dev/sda1 partition - - 100M /dev/sda -\n" -" /dev/sda2 partition - - 20G /dev/sda -\n" -" /dev/sda device - - 20G - -\n" +" virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n" +" last -f /tmp/wtmp\n" "\n" msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:89 +#: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103 +#: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74 +#: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:124 msgid "" -"For machine-readable output, use I<--csv> to get Comma-Separated Values." +"Add I which should be a disk image from a virtual machine. If the " +"virtual machine has multiple block devices, you must supply all of them with " +"separate I<-a> options." msgstr "" #. type: =item -#: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121 -msgid "B<--all>" +#: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148 +#: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217 +#: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92 +msgid "B<--echo-keys>" msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:112 +#: ../cat/virt-cat.pod:100 msgid "" -"Display everything. This is currently the same as specifying these options: " -"I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--" -"logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be " -"added to this list in future)." -msgstr "" - -#. type: textblock -#: ../cat/virt-filesystems.pod:117 -msgid "See also I<--long>." +"When prompting for keys and passphrases, virt-cat normally turns echoing off " +"so you cannot see what you are typing. If you are not worried about Tempest " +"attacks and there is no one else in the room you can specify this flag to " +"see what you are typing." msgstr "" -#. type: =item -#: ../cat/virt-filesystems.pod:119 -msgid "B<--blkdevs>" +#. type: verbatim +#: ../cat/virt-cat.pod:116 +#, no-wrap +msgid "" +" virt-cat --format=raw -a disk.img file\n" +"\n" +msgstr "" + +#. type: verbatim +#: ../cat/virt-cat.pod:120 +#, no-wrap +msgid "" +" virt-cat --format=raw -a disk.img --format -a another.img file\n" +"\n" +msgstr "" + +#. type: =item +#: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200 +#: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289 +#: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114 +msgid "B<--keys-from-stdin>" +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202 +#: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291 +#: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116 +msgid "" +"Read key or passphrase parameters from stdin. The default is to try to read " +"passphrases from the user by opening C." +msgstr "" + +#. type: =head1 +#: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179 +#: ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:246 +msgid "OLD-STYLE COMMAND LINE ARGUMENTS" +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:154 +msgid "Previous versions of virt-cat allowed you to write either:" +msgstr "" + +#. type: verbatim +#: ../cat/virt-cat.pod:156 +#, no-wrap +msgid "" +" virt-cat disk.img [disk.img ...] file\n" +"\n" +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185 +#: ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:252 +msgid "or" +msgstr "" + +#. type: verbatim +#: ../cat/virt-cat.pod:160 +#, no-wrap +msgid "" +" virt-cat guestname file\n" +"\n" +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189 +#: ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:256 +msgid "" +"whereas in this version you should use I<-a> or I<-d> respectively to avoid " +"the confusing case where a disk image might have the same name as a guest." +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193 +#: ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:260 +msgid "For compatibility the old style is still supported." +msgstr "" + +#. type: =head1 +#: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858 +msgid "WINDOWS PATHS" +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:170 +msgid "" +"C has a limited ability to understand Windows drive letters and " +"paths (eg. C)." +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262 +msgid "If and only if the guest is running Windows then:" +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268 +msgid "" +"Drive letter prefixes like C are resolved against the Windows Registry " +"to the correct filesystem." +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273 +msgid "" +"Any backslash (C<\\>) characters in the path are replaced with forward " +"slashes so that libguestfs can process it." +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:189 +msgid "" +"The path is resolved case insensitively to locate the file that should be " +"displayed." +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283 +msgid "There are some known shortcomings:" +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289 +msgid "Some NTFS symbolic links may not be followed correctly." +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293 +msgid "NTFS junction points that cross filesystems are not followed." +msgstr "" + +#. type: =head1 +#: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297 +msgid "USING GUESTFISH" +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:210 +msgid "" +"L is a more powerful, lower level tool which you can use when " +"C doesn't work." +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:213 +msgid "Using C is approximately equivalent to doing:" +msgstr "" + +#. type: verbatim +#: ../cat/virt-cat.pod:215 +#, no-wrap +msgid "" +" guestfish --ro -i -d domname download file -\n" +"\n" +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:217 +msgid "" +"where C is the name of the libvirt guest, and C is the full " +"path to the file. Note the final C<-> (meaning \"output to stdout\")." +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:221 +msgid "" +"The command above uses libguestfs's guest inspection feature and so does not " +"work on guests that libguestfs cannot inspect, or on things like arbitrary " +"disk images that don't contain guests. To display a file from a disk image " +"directly, use:" +msgstr "" + +#. type: verbatim +#: ../cat/virt-cat.pod:226 +#, no-wrap +msgid "" +" guestfish --ro -a disk.img -m /dev/sda1 download file -\n" +"\n" +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:228 +msgid "" +"where C is the disk image, C is the filesystem within " +"the disk image, and C is the full path to the file." +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382 +#: ../cat/virt-ls.pod:492 ../df/virt-df.pod:250 ../edit/virt-edit.pod:351 +#: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392 +#: ../resize/virt-resize.pod:691 ../sparsify/virt-sparsify.pod:253 +msgid "" +"This program returns 0 if successful, or non-zero if there was an error." +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:245 +msgid "" +"L, L, L, L, L, L." +msgstr "" + +#. type: textblock +#: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420 +#: ../resize/virt-resize.pod:723 ../tools/virt-make-fs.pl:588 +msgid "Copyright (C) 2010-2011 Red Hat Inc." +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:5 +msgid "" +"virt-filesystems - List filesystems, partitions, block devices, LVM in a " +"virtual machine or disk image" +msgstr "" + +#. type: verbatim +#: ../cat/virt-filesystems.pod:9 +#, no-wrap +msgid "" +" virt-filesystems [--options] -d domname\n" +"\n" +msgstr "" + +#. type: verbatim +#: ../cat/virt-filesystems.pod:11 +#, no-wrap +msgid "" +" virt-filesystems [--options] -a disk.img [-a disk.img ...]\n" +"\n" +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:15 +msgid "" +"This tool allows you to discover filesystems, partitions, logical volumes, " +"and their sizes in a disk image or virtual machine. It is a replacement for " +"L and L." +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:20 +msgid "" +"One use for this tool is from shell scripts to iterate over all filesystems " +"from a disk image:" +msgstr "" + +#. type: verbatim +#: ../cat/virt-filesystems.pod:23 +#, no-wrap +msgid "" +" for fs in $(virt-filesystems -a disk.img); do\n" +" # ...\n" +" done\n" +"\n" +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:27 +msgid "" +"Another use is to list partitions before using another tool to modify those " +"partitions (such as L). If you are curious about what an " +"unknown disk image contains, use this tool along with L." +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:32 +msgid "" +"Various command line options control what this program displays. You need " +"to give either I<-a> or I<-d> options to specify the disk image or libvirt " +"guest respectively. If you just specify that then the program shows " +"filesystems found, one per line, like this:" +msgstr "" + +#. type: verbatim +#: ../cat/virt-filesystems.pod:37 +#, no-wrap +msgid "" +" $ virt-filesystems -a disk.img\n" +" /dev/sda1\n" +" /dev/vg_guest/lv_root\n" +"\n" +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:41 +msgid "" +"If you add I<-l> or I<--long> then the output includes extra information:" +msgstr "" + +#. type: verbatim +#: ../cat/virt-filesystems.pod:44 +#, no-wrap +msgid "" +" $ virt-filesystems -a disk.img -l\n" +" Name Type VFS Label Size\n" +" /dev/sda1 filesystem ext4 boot 524288000\n" +" /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n" +"\n" +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:49 +msgid "" +"If you add I<--extra> then non-mountable (swap, unknown) filesystems are " +"shown as well:" +msgstr "" + +#. type: verbatim +#: ../cat/virt-filesystems.pod:52 +#, no-wrap +msgid "" +" $ virt-filesystems -a disk.img --extra\n" +" /dev/sda1\n" +" /dev/vg_guest/lv_root\n" +" /dev/vg_guest/lv_swap\n" +" /dev/vg_guest/lv_data\n" +"\n" +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:58 +msgid "" +"If you add I<--partitions> then partitions are shown instead of filesystems:" +msgstr "" + +#. type: verbatim +#: ../cat/virt-filesystems.pod:60 +#, no-wrap +msgid "" +" $ virt-filesystems -a disk.img --partitions\n" +" /dev/sda1\n" +" /dev/sda2\n" +"\n" +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:64 +msgid "" +"Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-" +"volumes>, I<--block-devices> to list those items." +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:67 +msgid "" +"You can use these options in combination as well (if you want a combination " +"including filesystems, you have to add I<--filesystems>). Notice that some " +"items fall into several categories (eg. C might be both a " +"partition and a filesystem). These items are listed several times. To get " +"a list which includes absolutely everything that virt-filesystems knows " +"about, use the I<--all> option." +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:74 +msgid "" +"UUIDs (because they are quite long) are not shown by default. Add the I<--" +"uuid> option to display device and filesystem UUIDs in the long output." +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:78 +msgid "" +"I<--all --long --uuid> is a useful combination to display all possible " +"information about everything." +msgstr "" + +#. type: verbatim +#: ../cat/virt-filesystems.pod:81 +#, no-wrap +msgid "" +" $ virt-filesystems -a win.img --all --long --uuid -h\n" +" Name Type VFS Label Size Parent UUID\n" +" /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n" +" /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n" +" /dev/sda1 partition - - 100M /dev/sda -\n" +" /dev/sda2 partition - - 20G /dev/sda -\n" +" /dev/sda device - - 20G - -\n" +"\n" +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:89 +msgid "" +"For machine-readable output, use I<--csv> to get Comma-Separated Values." +msgstr "" + +#. type: =item +#: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121 +msgid "B<--all>" +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:112 +msgid "" +"Display everything. This is currently the same as specifying these options: " +"I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--" +"logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be " +"added to this list in future)." +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:117 +msgid "See also I<--long>." +msgstr "" + +#. type: =item +#: ../cat/virt-filesystems.pod:119 +msgid "B<--blkdevs>" msgstr "" #. type: =item @@ -1314,23 +2096,41 @@ msgstr "" #. type: =item #: ../cat/virt-filesystems.pod:319 -msgid "B" +msgid "B" msgstr "" #. type: textblock #: ../cat/virt-filesystems.pod:321 msgid "" +"The partition type byte, displayed as a two digit hexadecimal number. A " +"comprehensive list of partition types can be found here: L" +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:325 +msgid "This is only applicable for DOS (MBR) partitions." +msgstr "" + +#. type: =item +#: ../cat/virt-filesystems.pod:327 +msgid "B" +msgstr "" + +#. type: textblock +#: ../cat/virt-filesystems.pod:329 +msgid "" "The size of the object in bytes. If the I<--human> option is used then the " "size is displayed in a human-readable form." msgstr "" #. type: =item -#: ../cat/virt-filesystems.pod:324 +#: ../cat/virt-filesystems.pod:332 msgid "B" msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:326 +#: ../cat/virt-filesystems.pod:334 msgid "" "The parent column records the parent relationship between objects. For " "example, if the object is a partition, then this column contains the name of " @@ -1339,47 +2139,47 @@ msgid "" msgstr "" #. type: =item -#: ../cat/virt-filesystems.pod:331 +#: ../cat/virt-filesystems.pod:339 msgid "B" msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:333 +#: ../cat/virt-filesystems.pod:341 msgid "" "If the object has a UUID (used for identifying and mounting filesystems and " "block devices) then this column contains the UUID as a string." msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:337 +#: ../cat/virt-filesystems.pod:345 msgid "The UUID is only displayed if the I<--uuid> option is given." msgstr "" #. type: =head1 -#: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459 -#: ../df/virt-df.pod:191 +#: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459 +#: ../df/virt-df.pod:217 msgid "NOTE ABOUT CSV FORMAT" msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461 -#: ../df/virt-df.pod:193 +#: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461 +#: ../df/virt-df.pod:219 msgid "" "Comma-separated values (CSV) is a deceptive format. It I like it " "should be easy to parse, but it is definitely not easy to parse." msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464 -#: ../df/virt-df.pod:196 +#: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464 +#: ../df/virt-df.pod:222 msgid "" "Myth: Just split fields at commas. Reality: This does I work " "reliably. This example has two columns:" msgstr "" #. type: verbatim -#: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467 -#: ../df/virt-df.pod:199 +#: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467 +#: ../df/virt-df.pod:225 #, no-wrap msgid "" " \"foo,bar\",baz\n" @@ -1387,16 +2187,16 @@ msgid "" msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469 -#: ../df/virt-df.pod:201 +#: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469 +#: ../df/virt-df.pod:227 msgid "" "Myth: Read the file one line at a time. Reality: This does I work " "reliably. This example has one row:" msgstr "" #. type: verbatim -#: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472 -#: ../df/virt-df.pod:204 +#: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472 +#: ../df/virt-df.pod:230 #, no-wrap msgid "" " \"foo\n" @@ -1405,29 +2205,29 @@ msgid "" msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475 -#: ../df/virt-df.pod:207 +#: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475 +#: ../df/virt-df.pod:233 msgid "" "For shell scripts, use C (L also " "packaged in major Linux distributions)." msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478 -#: ../df/virt-df.pod:210 +#: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478 +#: ../df/virt-df.pod:236 msgid "" "For other languages, use a CSV processing library (eg. C for Perl " "or Python's built-in csv library)." msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481 -#: ../df/virt-df.pod:213 +#: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481 +#: ../df/virt-df.pod:239 msgid "Most spreadsheets and databases can import CSV directly." msgstr "" #. type: textblock -#: ../cat/virt-filesystems.pod:374 +#: ../cat/virt-filesystems.pod:387 msgid "" "L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, " @@ -2189,12 +2988,814 @@ msgid "" msgstr "" #. type: textblock -#: ../cat/virt-ls.pod:508 ../df/virt-df.pod:236 ../edit/virt-edit.pod:369 -#: ../rescue/virt-rescue.pod:298 +#: ../cat/virt-ls.pod:513 ../df/virt-df.pod:267 ../edit/virt-edit.pod:374 +#: ../rescue/virt-rescue.pod:340 msgid "Copyright (C) 2009-2011 Red Hat Inc." msgstr "" #. type: textblock +#: ../clone/virt-sysprep.pod:5 +msgid "" +"virt-sysprep - Reset or unconfigure a virtual machine so clones can be made" +msgstr "" + +#. type: verbatim +#: ../clone/virt-sysprep.pod:9 +#, no-wrap +msgid "" +" virt-sysprep [--options] -d domname\n" +"\n" +msgstr "" + +#. type: verbatim +#: ../clone/virt-sysprep.pod:11 +#, no-wrap +msgid "" +" virt-sysprep [--options] -a disk.img [-a disk.img ...]\n" +"\n" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:15 +msgid "" +"Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones " +"can be made from it. Steps in this process include removing SSH host keys, " +"removing persistent network MAC configuration, and removing user accounts. " +"Each step can be enabled or disabled as required." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:21 +msgid "" +"Virt-sysprep is a simple shell script, allowing easy inspection or " +"customization by the system administrator." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:24 +msgid "" +"Virt-sysprep modifies the guest or disk image I. The guest must " +"be shut down. If you want to preserve the existing contents of the guest, " +"you I. See L below." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:29 +msgid "" +"You do I need to run virt-sysprep as root. In fact we'd generally " +"recommend that you don't. The time you might want to run it as root is when " +"you need root in order to access the disk image, but even in this case it " +"would be better to change the permissions on the disk image to be writable " +"as the non-root user running virt-sysprep." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:35 +msgid "" +"\"Sysprep\" stands for \"system preparation\" tool. The name comes from the " +"Microsoft program C which is used to unconfigure Windows " +"machines in preparation for cloning them. Having said that, virt-sysprep " +"does I currently work on Microsoft Windows guests. We plan to support " +"Windows sysprepping in a future version, and we already have code to do it." +msgstr "" + +#. type: =item +#: ../clone/virt-sysprep.pod:76 +msgid "B<--enable=...>" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:78 +msgid "" +"Choose which sysprep operations to perform. Give a comma-separated list of " +"operations, for example:" +msgstr "" + +#. type: verbatim +#: ../clone/virt-sysprep.pod:81 +#, no-wrap +msgid "" +" --enable=ssh-hostkeys,udev-persistent-net\n" +"\n" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:83 +msgid "" +"would enable ONLY C and C operations." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:85 +msgid "" +"If the I<--enable> option is not given, then we default to trying all " +"possible sysprep operations. But some sysprep operations are skipped for " +"some guest types." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:89 +msgid "" +"Use I<--list-operations> to list operations supported by a particular " +"version of virt-sysprep." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:92 +msgid "" +"See L below for a list and an explanation of each operation." +msgstr "" + +#. type: verbatim +#: ../clone/virt-sysprep.pod:106 +#, no-wrap +msgid "" +" virt-sysprep --format=raw -a disk.img\n" +"\n" +msgstr "" + +#. type: verbatim +#: ../clone/virt-sysprep.pod:110 +#, no-wrap +msgid "" +" virt-sysprep --format=raw -a disk.img --format -a another.img\n" +"\n" +msgstr "" + +#. type: =item +#: ../clone/virt-sysprep.pod:119 +msgid "B<--hostname> newhostname" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:121 +msgid "" +"Change the hostname. See the L operation below. If not given, " +"defaults to C." +msgstr "" + +#. type: =item +#: ../clone/virt-sysprep.pod:124 +msgid "B<--list-operations>" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:126 +msgid "List the operations supported by the virt-sysprep program." +msgstr "" + +#. type: =item +#: ../clone/virt-sysprep.pod:128 +msgid "B<--selinux-relabel>" +msgstr "" + +#. type: =item +#: ../clone/virt-sysprep.pod:130 +msgid "B<--no-selinux-relabel>" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:132 +msgid "" +"I<--selinux-relabel> forces SELinux relabelling next time the guest boots. " +"I<--no-selinux-relabel> disables relabelling." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:135 +msgid "" +"The default is to try to detect if SELinux relabelling is required. See L below for more details." +msgstr "" + +#. type: =head1 +#: ../clone/virt-sysprep.pod:156 +msgid "OPERATIONS" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:158 +msgid "" +"If the I<--enable> option is I given, then I, although some are skipped depending on the type of guest." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:162 +msgid "" +"Operations can be individually enabled using the I<--enable> option. Use a " +"comma-separated list, for example:" +msgstr "" + +#. type: verbatim +#: ../clone/virt-sysprep.pod:165 +#, no-wrap +msgid "" +" virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n" +"\n" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:167 +msgid "" +"To list the operations supported by the current version of virt-sysprep, use " +"I<--list-operations>." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:170 +msgid "" +"Future versions of virt-sysprep may add more operations. If you are using " +"virt-sysprep and want predictable behaviour, specify only the operations " +"that you want to have enabled." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:174 +msgid "cron-spool" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:176 +msgid "Remove user at-jobs and cron-jobs." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:178 +msgid "dhcp-client-state" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:180 +msgid "Remove DHCP client leases." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:182 +msgid "dhcp-server-state" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:184 +msgid "Remove DHCP server leases." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:186 +msgid "hostname" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:188 +msgid "" +"Changes the hostname of the guest to the value given in the I<--hostname> " +"parameter." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:191 +msgid "" +"If the I<--hostname> parameter is not given, then the hostname is changed to " +"C." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:194 +msgid "logfiles" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:196 +msgid "Remove many log files." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:198 +msgid "mail-spool" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:200 +msgid "Remove email from the local mail spool directory." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:202 +msgid "net-hwaddr" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:204 +msgid "" +"Remove HWADDR (hard-coded MAC address) configuration. For Fedora and Red " +"Hat Enterprise Linux, this is removed from C files." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:207 +msgid "random-seed" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:209 +msgid "" +"Write some random bytes from the host into the random seed file of the guest." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:212 +msgid "See L below." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:214 +msgid "rhn-systemid" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:216 +msgid "Remove the RHN system ID." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:218 +msgid "smolt-uuid" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:220 +msgid "Remove the Smolt hardware UUID." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:222 +msgid "ssh-hostkeys" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:224 +msgid "Remove the SSH host keys in the guest." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:226 +msgid "" +"The SSH host keys are regenerated (differently) next time the guest is " +"booted." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:229 +msgid "" +"If, after cloning, the guest gets the same IP address, ssh will give you a " +"stark warning about the host key changing:" +msgstr "" + +#. type: verbatim +#: ../clone/virt-sysprep.pod:232 +#, no-wrap +msgid "" +" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n" +" @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\n" +" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n" +" IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n" +"\n" +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:237 +msgid "udev-persistent-net" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:239 +msgid "" +"Remove udev persistent net rules which map the guest's existing MAC address " +"to a fixed ethernet device (eg. eth0)." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:242 +msgid "" +"After a guest is cloned, the MAC address usually changes. Since the old MAC " +"address occupies the old name (eg. eth0), this means the fresh MAC address " +"is assigned to a new name (eg. eth1) and this is usually undesirable. " +"Erasing the udev persistent net rules avoids this." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:247 +msgid "utmp" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:249 +msgid "Remove the utmp file." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:251 +msgid "" +"This records who is currently logged in on a machine. In modern Linux " +"distros it is stored in a ramdisk and hence not part of the virtual " +"machine's disk, but it was stored on disk in older distros." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:255 +msgid "yum-uuid" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:257 +msgid "Remove the yum UUID." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:259 +msgid "" +"Yum creates a fresh UUID the next time it runs when it notices that the " +"original UUID has been erased." +msgstr "" + +#. type: =head1 +#: ../clone/virt-sysprep.pod:262 +msgid "COPYING AND CLONING" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:264 +msgid "" +"Virt-sysprep can be used as part of a process of cloning guests, or to " +"prepare a template from which guests can be cloned. There are many " +"different ways to achieve this using the virt tools, and this section is " +"just an introduction." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:269 +msgid "A virtual machine (when switched off) consists of two parts:" +msgstr "" + +#. type: =item +#: ../clone/virt-sysprep.pod:273 +msgid "I" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:275 +msgid "" +"The configuration or description of the guest. eg. The libvirt XML (see " +"C), the running configuration of the guest, or another " +"external format like OVF." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:279 +msgid "Some configuration items that might need to be changed:" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:285 +msgid "name" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316 +msgid "UUID" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:293 +msgid "path to block device(s)" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:297 +msgid "network card MAC address" +msgstr "" + +#. type: =item +#: ../clone/virt-sysprep.pod:301 +msgid "I" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:303 +msgid "" +"One or more hard disk images, themselves containing files, directories, " +"applications, kernels, configuration, etc." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:306 +msgid "Some things inside the block devices that might need to be changed:" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:312 +msgid "hostname and other net configuration" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:320 +msgid "SSH host keys" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:324 +msgid "Windows unique security ID (SID)" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:328 +msgid "Puppet registration" +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:334 +msgid "COPYING THE BLOCK DEVICE" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:336 +msgid "" +"Starting with an original guest, you probably wish to copy the guest block " +"device and its configuration to make a template. Then once you are happy " +"with the template, you will want to make many clones from it." +msgstr "" + +#. type: verbatim +#: ../clone/virt-sysprep.pod:341 +#, no-wrap +msgid "" +" virt-sysprep\n" +" |\n" +" v\n" +" original guest --------> template ---------->\n" +" \\------> cloned\n" +" \\-----> guests\n" +" \\---->\n" +"\n" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:349 +msgid "" +"You can, of course, just copy the block device on the host using L or " +"L." +msgstr "" + +#. type: verbatim +#: ../clone/virt-sysprep.pod:352 +#, no-wrap +msgid "" +" dd dd\n" +" original guest --------> template ---------->\n" +" \\------> cloned\n" +" \\-----> guests\n" +" \\---->\n" +"\n" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:358 +msgid "There are some smarter (and faster) ways too:" +msgstr "" + +#. type: verbatim +#: ../clone/virt-sysprep.pod:364 +#, no-wrap +msgid "" +" snapshot\n" +" template ---------->\n" +" \\------> cloned\n" +" \\-----> guests\n" +" \\---->\n" +"\n" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:370 +msgid "" +"Use the block device as a backing file and create a snapshot on top for each " +"guest. The advantage is that you don't need to copy the block device (very " +"fast) and only changes are stored (less storage required)." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:375 +msgid "" +"Note that writing to the backing file once you have created guests on top of " +"it is not possible: you will corrupt the guests." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:378 +msgid "" +"Tools that can do this include: L (with the I option), L (I<--snapshot> option). Some " +"filesystems (such as btrfs) and most Network Attached Storage devices can " +"also create cheap snapshots from files or LUNs." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:386 +msgid "Get your NAS to snapshot and/or duplicate the LUN." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:390 +msgid "Prepare your template using L. See below." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:394 +msgid "VIRT-CLONE" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:396 +msgid "" +"A separate tool, L, can be used to duplicate the block device " +"and/or modify the external libvirt configuration of a guest. It will reset " +"the name, UUID and MAC address of the guest in the libvirt XML." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:401 +msgid "" +"L does not use libguestfs and cannot look inside the disk " +"image. This was the original motivation to write virt-sysprep." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:404 +msgid "SPARSIFY" +msgstr "" + +#. type: verbatim +#: ../clone/virt-sysprep.pod:406 +#, no-wrap +msgid "" +" virt-sparsify\n" +" original guest --------> template\n" +"\n" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:409 +msgid "" +"L can be used to make the cloning template smaller, making " +"it easier to compress and/or faster to copy." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:412 +msgid "" +"Notice that since virt-sparsify also copies the image, you can use it to " +"make the initial copy (instead of C
)." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:415 +msgid "RESIZE" +msgstr "" + +#. type: verbatim +#: ../clone/virt-sysprep.pod:417 +#, no-wrap +msgid "" +" virt-resize\n" +" template ---------->\n" +" \\------> cloned\n" +" \\-----> guests\n" +" \\---->\n" +"\n" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:423 +msgid "" +"If you want to give people cloned guests, but let them pick the size of the " +"guest themselves (eg. depending on how much they are prepared to pay for " +"disk space), then instead of copying the template, you can run L. Virt-resize performs a copy and resize, and thus is ideal for cloning " +"guests from a template." +msgstr "" + +#. type: =head1 +#: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164 +msgid "SECURITY" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:431 +msgid "" +"Although virt-sysprep removes some sensitive information from the guest, it " +"does not pretend to remove all of it. You should examine the L " +"above, and the implementation of the operations in the shell script. You " +"should also examine the guest afterwards." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:436 +msgid "" +"Sensitive files are simply removed. The data they contained may still exist " +"on the disk, easily recovered with a hex editor or undelete tool. Use " +"L as one way to remove this content. See also the L command to get rid of deleted content in directory entries and inodes." +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:442 +msgid "RANDOM SEED" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:444 +msgid "I<(This section applies to Linux guests only)>" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:446 +msgid "" +"The virt-sysprep C operation writes a few bytes of randomness " +"from the host into the guest's random seed file." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:449 +msgid "" +"If this is just done once and the guest is cloned from the same template, " +"then each guest will start with the same entropy, and things like SSH host " +"keys and TCP sequence numbers may be predictable." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:453 +msgid "" +"Therefore you should arrange to add more randomness I cloning from a " +"template too, which can be done by just enabling the C " +"operation:" +msgstr "" + +#. type: verbatim +#: ../clone/virt-sysprep.pod:457 +#, no-wrap +msgid "" +" cp template.img newguest.img\n" +" virt-sysprep --enable=random-seed -a newguest.img\n" +"\n" +msgstr "" + +#. type: =head2 +#: ../clone/virt-sysprep.pod:460 +msgid "SELINUX RELABELLING" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:462 +msgid "I<(This section applies to Linux guests using SELinux only)>" +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:464 +msgid "" +"If any new files are created by virt-sysprep, then virt-sysprep touches C so that these will be correctly labelled by SELinux the next " +"time the guest is booted. This process interrupts boot and can take some " +"time." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:469 +msgid "" +"You can force relabelling for all guests by supplying the I<--selinux-" +"relabel> option." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:472 +msgid "" +"You can disable relabelling entirely by supplying the I<--no-selinux-" +"relabel> option." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:484 +msgid "This program returns 0 on success, or 1 if there was an error." +msgstr "" + +#. type: textblock +#: ../clone/virt-sysprep.pod:488 +msgid "" +"L, L, L, L, L, L, L, L, L, L, L, L." +msgstr "" + +#. type: textblock #: ../df/virt-df.pod:5 msgid "virt-df - Display free space on virtual filesystems" msgstr "" @@ -2334,7 +3935,7 @@ msgid "You are not allowed to use I<-h> and I<--csv> at the same time." msgstr "" #. type: =item -#: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155 +#: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164 msgid "B<-i>" msgstr "" @@ -2365,70 +3966,6 @@ msgstr "" msgid "You might use this option in the following circumstances:" msgstr "" -#. type: =item -#: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266 -#: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276 -#: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291 -#: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102 -#: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132 -#: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227 -#: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235 -#: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243 -#: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 -#: ../fish/guestfish-actions.pod:385 ../fish/guestfish-actions.pod:393 -#: ../fish/guestfish-actions.pod:400 ../fish/guestfish-actions.pod:407 -#: ../fish/guestfish-actions.pod:1099 ../fish/guestfish-actions.pod:1103 -#: ../fish/guestfish-actions.pod:1107 ../fish/guestfish-actions.pod:1111 -#: ../fish/guestfish-actions.pod:1119 ../fish/guestfish-actions.pod:1123 -#: ../fish/guestfish-actions.pod:1127 ../fish/guestfish-actions.pod:1137 -#: ../fish/guestfish-actions.pod:1141 ../fish/guestfish-actions.pod:1145 -#: ../fish/guestfish-actions.pod:1235 ../fish/guestfish-actions.pod:1239 -#: ../fish/guestfish-actions.pod:1244 ../fish/guestfish-actions.pod:1249 -#: ../fish/guestfish-actions.pod:1291 ../fish/guestfish-actions.pod:1295 -#: ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1933 -#: ../fish/guestfish-actions.pod:1939 ../fish/guestfish-actions.pod:1947 -#: ../fish/guestfish-actions.pod:1954 ../fish/guestfish-actions.pod:1961 -#: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449 -#: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457 -#: ../inspector/virt-inspector.pod:384 ../inspector/virt-inspector.pod:388 -#: ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286 -#: ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301 -#: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29 -#: ../src/guestfs-actions.pod:583 ../src/guestfs-actions.pod:591 -#: ../src/guestfs-actions.pod:598 ../src/guestfs-actions.pod:605 -#: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1666 -#: ../src/guestfs-actions.pod:1670 ../src/guestfs-actions.pod:1674 -#: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1686 -#: ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1700 -#: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1708 -#: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850 -#: ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860 -#: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1925 -#: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:2859 -#: ../src/guestfs-actions.pod:2865 ../src/guestfs-actions.pod:2873 -#: ../src/guestfs-actions.pod:2880 ../src/guestfs-actions.pod:2887 -#: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398 -#: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411 -#: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064 -#: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077 -#: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112 -#: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142 -#: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154 -#: ../src/guestfs.pod:1644 ../src/guestfs.pod:1649 ../src/guestfs.pod:1653 -#: ../src/guestfs.pod:1755 ../src/guestfs.pod:1760 ../src/guestfs.pod:1764 -#: ../src/guestfs.pod:1774 ../src/guestfs.pod:2048 ../src/guestfs.pod:2053 -#: ../src/guestfs.pod:2059 ../src/guestfs.pod:2067 ../src/guestfs.pod:2421 -#: ../src/guestfs.pod:2427 ../src/guestfs.pod:2432 ../src/guestfs.pod:2438 -#: ../src/guestfs.pod:2819 ../src/guestfs.pod:2824 ../src/guestfs.pod:2828 -#: ../src/guestfs.pod:2832 ../src/guestfs.pod:2836 ../src/guestfs.pod:2850 -#: ../src/guestfs.pod:2855 ../src/guestfs.pod:3080 ../src/guestfs.pod:3084 -#: ../src/guestfs.pod:3088 ../src/guestfs.pod:3092 -#: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202 -#: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710 -#: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722 -msgid "*" -msgstr "" - #. type: textblock #: ../df/virt-df.pod:150 msgid "" @@ -2461,8 +3998,57 @@ msgid "" "specified." msgstr "" +#. type: =head1 +#: ../df/virt-df.pod:191 +msgid "STATVFS NUMBERS" +msgstr "" + +#. type: textblock +#: ../df/virt-df.pod:193 +msgid "" +"C (and L) get information by issuing a L system " +"call. You can get the same information directly, either from the host " +"(using libguestfs) or inside the guest:" +msgstr "" + +#. type: =item +#: ../df/virt-df.pod:199 +msgid "From the host" +msgstr "" + +#. type: textblock +#: ../df/virt-df.pod:201 ../df/virt-df.pod:209 +msgid "Run this command:" +msgstr "" + +#. type: verbatim +#: ../df/virt-df.pod:203 +#, no-wrap +msgid "" +" guestfish --ro -d GuestName -i statvfs /\n" +"\n" +msgstr "" + +#. type: textblock +#: ../df/virt-df.pod:205 ../df/virt-df.pod:213 +msgid "(change C to see stats for other filesystems)." +msgstr "" + +#. type: =item +#: ../df/virt-df.pod:207 +msgid "From inside the guest" +msgstr "" + +#. type: verbatim +#: ../df/virt-df.pod:211 +#, no-wrap +msgid "" +" python -c 'import os; s = os.statvfs (\"/\"); print s'\n" +"\n" +msgstr "" + #. type: textblock -#: ../df/virt-df.pod:224 +#: ../df/virt-df.pod:255 msgid "" "L, L, L, L, L." @@ -2516,7 +4102,7 @@ msgstr "" #. type: =head1 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15 -#: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19 +#: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:21 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51 msgid "WARNING" msgstr "" @@ -2651,7 +4237,7 @@ msgstr "" #. type: =item #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181 -#: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74 +#: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128 msgid "B<-c URI>" @@ -2659,7 +4245,7 @@ msgstr "" #. type: =item #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183 -#: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76 +#: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130 msgid "B<--connect URI>" @@ -2886,11 +4472,6 @@ msgid "" "\n" msgstr "" -#. type: =head1 -#: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858 -msgid "WINDOWS PATHS" -msgstr "" - #. type: textblock #: ../edit/virt-edit.pod:259 msgid "" @@ -2899,25 +4480,6 @@ msgid "" msgstr "" #. type: textblock -#: ../edit/virt-edit.pod:262 -msgid "If and only if the guest is running Windows then:" -msgstr "" - -#. type: textblock -#: ../edit/virt-edit.pod:268 -msgid "" -"Drive letter prefixes like C are resolved against the Windows Registry " -"to the correct filesystem." -msgstr "" - -#. type: textblock -#: ../edit/virt-edit.pod:273 -msgid "" -"Any backslash (C<\\>) characters in the path are replaced with forward " -"slashes so that libguestfs can process it." -msgstr "" - -#. type: textblock #: ../edit/virt-edit.pod:278 msgid "" "The path is resolved case insensitively to locate the file that should be " @@ -2925,21 +4487,6 @@ msgid "" msgstr "" #. type: textblock -#: ../edit/virt-edit.pod:283 -msgid "There are some known shortcomings:" -msgstr "" - -#. type: textblock -#: ../edit/virt-edit.pod:289 -msgid "Some NTFS symbolic links may not be followed correctly." -msgstr "" - -#. type: textblock -#: ../edit/virt-edit.pod:293 -msgid "NTFS junction points that cross filesystems are not followed." -msgstr "" - -#. type: textblock #: ../edit/virt-edit.pod:299 msgid "" "L is a more powerful, lower level tool which you can use when " @@ -3022,9 +4569,9 @@ msgid "" msgstr "" #. type: =head1 -#: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1075 -#: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:2966 -#: ../test-tool/libguestfs-test-tool.pod:82 +#: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119 +#: ../rescue/virt-rescue.pod:298 ../sparsify/virt-sparsify.pod:256 +#: ../src/guestfs.pod:3214 ../test-tool/libguestfs-test-tool.pod:95 msgid "ENVIRONMENT VARIABLES" msgstr "" @@ -3046,7 +4593,7 @@ msgid "If not set, C is used." msgstr "" #. type: textblock -#: ../edit/virt-edit.pod:351 +#: ../edit/virt-edit.pod:356 msgid "" "L, L, L, L, L, L, L, L, " @@ -3054,47 +4601,191 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-examples.pod:5 -msgid "guestfs-examples - Examples of using libguestfs from C" +#: ../erlang/examples/guestfs-erlang.pod:5 +msgid "guestfs-erlang - How to use libguestfs from Erlang" msgstr "" #. type: verbatim -#: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9 +#: ../erlang/examples/guestfs-erlang.pod:9 #, no-wrap msgid "" -" #include \n" -" \n" +" {ok, G} = guestfs:create(),\n" +" ok = guestfs:add_drive_opts(G, Disk,\n" +" [{format, \"raw\"}, {readonly, true}]),\n" +" ok = guestfs:launch(G),\n" +" [Device] = guestfs:list_devices(G),\n" +" ok = guestfs:close(G).\n" +"\n" +msgstr "" + +#. type: textblock +#: ../erlang/examples/guestfs-erlang.pod:18 +msgid "" +"This manual page documents how to call libguestfs from the Erlang " +"programming language. This page just documents the differences from the C " +"API and gives some examples. If you are not familiar with using libguestfs, " +"you also need to read L." +msgstr "" + +#. type: =head2 +#: ../erlang/examples/guestfs-erlang.pod:23 +msgid "OPENING AND CLOSING THE HANDLE" +msgstr "" + +#. type: textblock +#: ../erlang/examples/guestfs-erlang.pod:25 +msgid "" +"The Erlang bindings are implemented using an external program called C. This program must be on the current PATH, or else you should " +"specify the full path to the program:" msgstr "" #. type: verbatim -#: ../examples/guestfs-examples.pod:11 +#: ../erlang/examples/guestfs-erlang.pod:29 #, no-wrap msgid "" -" guestfs_h *g = guestfs_create ();\n" -" guestfs_add_drive_ro (g, \"disk.img\");\n" -" guestfs_launch (g);\n" +" {ok, G} = guestfs:create().\n" "\n" msgstr "" #. type: verbatim -#: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19 +#: ../erlang/examples/guestfs-erlang.pod:31 #, no-wrap msgid "" -" cc prog.c -o prog -lguestfs\n" -"or:\n" -" cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n" +" {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n" "\n" msgstr "" #. type: textblock -#: ../examples/guestfs-examples.pod:21 +#: ../erlang/examples/guestfs-erlang.pod:33 +msgid "C is the libguestfs handle which you should pass to other functions." +msgstr "" + +#. type: textblock +#: ../erlang/examples/guestfs-erlang.pod:36 +msgid "To close the handle:" +msgstr "" + +#. type: verbatim +#: ../erlang/examples/guestfs-erlang.pod:38 +#, no-wrap msgid "" -"This manual page contains examples of calling libguestfs from the C " -"programming language. If you are not familiar with using libguestfs, you " -"also need to read L." +" ok = guestfs:close(G).\n" +"\n" +msgstr "" + +#. type: =head2 +#: ../erlang/examples/guestfs-erlang.pod:40 +msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS" +msgstr "" + +#. type: textblock +#: ../erlang/examples/guestfs-erlang.pod:42 +msgid "" +"For functions that take optional arguments, the first arguments are the non-" +"optional ones. The last argument is a list of tuples supplying the " +"remaining optional arguments." +msgstr "" + +#. type: verbatim +#: ../erlang/examples/guestfs-erlang.pod:46 +#, no-wrap +msgid "" +" ok = guestfs:add_drive_opts(G, Disk,\n" +" [{format, \"raw\"}, {readonly, true}]).\n" +"\n" +msgstr "" + +#. type: textblock +#: ../erlang/examples/guestfs-erlang.pod:49 +msgid "If the last argument would be an empty list, you can also omit it:" +msgstr "" + +#. type: verbatim +#: ../erlang/examples/guestfs-erlang.pod:51 +#, no-wrap +msgid "" +" ok = guestfs:add_drive_opts(G, Disk).\n" +"\n" +msgstr "" + +#. type: =head2 +#: ../erlang/examples/guestfs-erlang.pod:53 +msgid "RETURN VALUES AND ERRORS" +msgstr "" + +#. type: textblock +#: ../erlang/examples/guestfs-erlang.pod:55 +msgid "" +"On success, most functions return a C term (which could be a list, " +"string, tuple etc.). If there is nothing for the function to return, then " +"the atom C is returned." +msgstr "" + +#. type: textblock +#: ../erlang/examples/guestfs-erlang.pod:59 +msgid "On error, you would see one of the following tuples:" +msgstr "" + +#. type: =item +#: ../erlang/examples/guestfs-erlang.pod:63 +msgid "C<{error, Msg, Errno}>" +msgstr "" + +#. type: textblock +#: ../erlang/examples/guestfs-erlang.pod:65 +msgid "This indicates an ordinary error from the function." +msgstr "" + +#. type: textblock +#: ../erlang/examples/guestfs-erlang.pod:67 +msgid "" +"C is the error message (string) and C is the Unix error " +"(integer)." +msgstr "" + +#. type: textblock +#: ../erlang/examples/guestfs-erlang.pod:70 +msgid "C can be zero. See L." +msgstr "" + +#. type: =item +#: ../erlang/examples/guestfs-erlang.pod:72 +msgid "C<{unknown, Function}>" +msgstr "" + +#. type: textblock +#: ../erlang/examples/guestfs-erlang.pod:74 +msgid "" +"This indicates that the function you called is not known. Generally this " +"means you are mixing C from another version of libguestfs, " +"which you should not do." +msgstr "" + +#. type: textblock +#: ../erlang/examples/guestfs-erlang.pod:78 +msgid "C is the name of the unknown function." +msgstr "" + +#. type: =item +#: ../erlang/examples/guestfs-erlang.pod:80 +msgid "C<{unknownarg, Arg}>" +msgstr "" + +#. type: textblock +#: ../erlang/examples/guestfs-erlang.pod:82 +msgid "" +"This indicates that you called a function with optional arguments, with an " +"unknown argument name." +msgstr "" + +#. type: textblock +#: ../erlang/examples/guestfs-erlang.pod:85 +msgid "C is the name of the unknown argument." msgstr "" #. type: =head1 +#: ../erlang/examples/guestfs-erlang.pod:89 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31 #: ../python/examples/guestfs-python.pod:34 @@ -3103,6 +4794,7 @@ msgid "EXAMPLE 1: CREATE A DISK IMAGE" msgstr "" #. type: textblock +#: ../erlang/examples/guestfs-erlang.pod:91 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33 #: ../python/examples/guestfs-python.pod:36 @@ -3111,6 +4803,7 @@ msgid "@EXAMPLE1@" msgstr "" #. type: =head1 +#: ../erlang/examples/guestfs-erlang.pod:93 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35 #: ../python/examples/guestfs-python.pod:38 @@ -3119,6 +4812,7 @@ msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE" msgstr "" #. type: textblock +#: ../erlang/examples/guestfs-erlang.pod:95 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37 #: ../python/examples/guestfs-python.pod:40 @@ -3127,64 +4821,69 @@ msgid "@EXAMPLE2@" msgstr "" #. type: textblock -#: ../examples/guestfs-examples.pod:35 +#: ../erlang/examples/guestfs-erlang.pod:99 msgid "" -"L, L, L, L, " -"L, L, L, L." +"L, L, L, L, L, L, L, " +"L, L. L." msgstr "" #. type: =head1 -#: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396 -#: ../fish/guestfish.pod:1249 ../fish/virt-copy-in.pod:60 -#: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58 -#: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:314 -#: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:57 -#: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51 -#: ../python/examples/guestfs-python.pod:53 -#: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3099 -#: ../test-tool/libguestfs-test-tool.pod:93 +#: ../erlang/examples/guestfs-erlang.pod:110 +#: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397 +#: ../examples/guestfs-testing.pod:298 ../fish/guestfish.pod:1296 +#: ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49 +#: ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51 +#: ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:404 +#: ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91 +#: ../perl/examples/guestfs-perl.pod:52 +#: ../python/examples/guestfs-python.pod:54 +#: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3354 +#: ../test-tool/libguestfs-test-tool.pod:106 msgid "AUTHORS" msgstr "" #. type: textblock -#: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398 -#: ../fish/guestfish.pod:1251 ../fish/virt-copy-in.pod:62 -#: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60 -#: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:316 -#: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92 -#: ../perl/examples/guestfs-perl.pod:53 -#: ../python/examples/guestfs-python.pod:55 -#: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3101 -#: ../test-tool/libguestfs-test-tool.pod:95 +#: ../erlang/examples/guestfs-erlang.pod:112 +#: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399 +#: ../examples/guestfs-testing.pod:300 ../fish/guestfish.pod:1298 +#: ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51 +#: ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53 +#: ../fuse/guestmount.pod:330 ../java/examples/guestfs-java.pod:60 +#: ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:54 +#: ../python/examples/guestfs-python.pod:56 +#: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3356 +#: ../test-tool/libguestfs-test-tool.pod:108 msgid "Richard W.M. Jones (C)" msgstr "" #. type: textblock -#: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96 -#: ../python/examples/guestfs-python.pod:59 -#: ../ruby/examples/guestfs-ruby.pod:53 -msgid "Copyright (C) 2010 Red Hat Inc. L" +#: ../erlang/examples/guestfs-erlang.pod:116 +#: ../examples/guestfs-testing.pod:304 ../java/examples/guestfs-java.pod:64 +#: ../perl/examples/guestfs-perl.pod:58 +msgid "Copyright (C) 2011 Red Hat Inc. L" msgstr "" #. type: textblock -#: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404 -#: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98 -#: ../perl/examples/guestfs-perl.pod:59 -#: ../python/examples/guestfs-python.pod:61 -#: ../ruby/examples/guestfs-ruby.pod:55 +#: ../erlang/examples/guestfs-erlang.pod:118 +#: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405 +#: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99 +#: ../perl/examples/guestfs-perl.pod:60 +#: ../python/examples/guestfs-python.pod:62 +#: ../ruby/examples/guestfs-ruby.pod:56 msgid "" "The examples in this manual page may be freely copied, modified and " "distributed without any restrictions." msgstr "" #. type: textblock -#: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407 -#: ../java/examples/guestfs-java.pod:68 -#: ../ocaml/examples/guestfs-ocaml.pod:101 -#: ../perl/examples/guestfs-perl.pod:62 -#: ../python/examples/guestfs-python.pod:64 -#: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3108 +#: ../erlang/examples/guestfs-erlang.pod:121 +#: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408 +#: ../examples/guestfs-testing.pod:306 ../java/examples/guestfs-java.pod:69 +#: ../ocaml/examples/guestfs-ocaml.pod:102 +#: ../perl/examples/guestfs-perl.pod:63 +#: ../python/examples/guestfs-python.pod:65 +#: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3363 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 " @@ -3193,12 +4892,13 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412 -#: ../java/examples/guestfs-java.pod:73 -#: ../ocaml/examples/guestfs-ocaml.pod:106 -#: ../perl/examples/guestfs-perl.pod:67 -#: ../python/examples/guestfs-python.pod:69 -#: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3113 +#: ../erlang/examples/guestfs-erlang.pod:126 +#: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413 +#: ../examples/guestfs-testing.pod:311 ../java/examples/guestfs-java.pod:74 +#: ../ocaml/examples/guestfs-ocaml.pod:107 +#: ../perl/examples/guestfs-perl.pod:68 +#: ../python/examples/guestfs-python.pod:70 +#: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3368 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 " @@ -3207,18 +4907,79 @@ msgid "" msgstr "" #. type: textblock -#: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417 -#: ../java/examples/guestfs-java.pod:78 -#: ../ocaml/examples/guestfs-ocaml.pod:111 -#: ../perl/examples/guestfs-perl.pod:72 -#: ../python/examples/guestfs-python.pod:74 -#: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3118 +#: ../erlang/examples/guestfs-erlang.pod:131 +#: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418 +#: ../examples/guestfs-testing.pod:316 ../java/examples/guestfs-java.pod:79 +#: ../ocaml/examples/guestfs-ocaml.pod:112 +#: ../perl/examples/guestfs-perl.pod:73 +#: ../python/examples/guestfs-python.pod:75 +#: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3373 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, " "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA" msgstr "" +#. type: textblock +#: ../examples/guestfs-examples.pod:5 +msgid "guestfs-examples - Examples of using libguestfs from C" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9 +#, no-wrap +msgid "" +" #include \n" +" \n" +msgstr "#include \n" + +#. type: verbatim +#: ../examples/guestfs-examples.pod:11 +#, no-wrap +msgid "" +" guestfs_h *g = guestfs_create ();\n" +" guestfs_add_drive_ro (g, \"disk.img\");\n" +" guestfs_launch (g);\n" +"\n" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19 +#, no-wrap +msgid "" +" cc prog.c -o prog -lguestfs\n" +"or:\n" +" cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n" +"\n" +msgstr "" +" cc prog.c -o prog -lguestfs\n" +"or:\n" +" cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n" +"\n" + +#. type: textblock +#: ../examples/guestfs-examples.pod:21 +msgid "" +"This manual page contains examples of calling libguestfs from the C " +"programming language. If you are not familiar with using libguestfs, you " +"also need to read L." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-examples.pod:35 +msgid "" +"L, L, L, L, L, L, L, " +"L, L." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97 +#: ../python/examples/guestfs-python.pod:60 +#: ../ruby/examples/guestfs-ruby.pod:54 +msgid "Copyright (C) 2010 Red Hat Inc. L" +msgstr "" + #. type: =end #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12 msgid "comment" @@ -3492,7 +5253,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:126 +#: ../examples/guestfs-recipes.pod:126 ../examples/guestfs-testing.pod:93 #, no-wrap msgid "" " virt-copy-out -d Guest /home .\n" @@ -3501,10 +5262,11 @@ msgstr "" #. type: textblock #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9 -#: ../fish/guestfish-actions.pod:1287 ../fish/guestfish-actions.pod:1929 -#: ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:1917 -#: ../src/guestfs-actions.pod:2855 ../src/guestfs.pod:1640 -#: ../tools/virt-win-reg.pl:706 +#: ../fish/guestfish-actions.pod:1481 ../fish/guestfish-actions.pod:1746 +#: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:18 +#: ../src/guestfs-actions.pod:2373 ../src/guestfs-actions.pod:2797 +#: ../src/guestfs-actions.pod:3356 ../src/guestfs.pod:1685 +#: ../tools/virt-win-reg.pl:717 msgid "Notes:" msgstr "" @@ -3570,491 +5332,1195 @@ msgid "" msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:162 +#: ../examples/guestfs-recipes.pod:162 +#, no-wrap +msgid "" +" #!/bin/sh -\n" +" \n" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984 +#, no-wrap +msgid "" +" set -e\n" +" \n" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-recipes.pod:166 +#, no-wrap +msgid "" +" vm=\"$1\"\n" +" dir=/home\n" +" \n" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-recipes.pod:169 +#, no-wrap +msgid "" +" eval $(guestfish --ro -d \"$vm\" -i --listen)\n" +" \n" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-recipes.pod:171 +#, no-wrap +msgid "" +" for d in $(guestfish --remote ls \"$dir\"); do\n" +" echo -n \"$dir/$d\"\n" +" echo -ne '\\t'\n" +" guestfish --remote du \"$dir/$d\";\n" +" done | sort -nr -k 2\n" +" \n" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941 +#, no-wrap +msgid "" +" guestfish --remote exit\n" +"\n" +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-recipes.pod:179 +msgid "Get DHCP address from a VM" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:181 +msgid "" +"The link below explains the many different possible techniques for getting " +"the last assigned DHCP address of a virtual machine." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:184 +msgid "" +"https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-" +"a-virtual-machine-disk-image/#content" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:186 +msgid "" +"In the libguestfs source examples directory you will find the latest version " +"of the C program." +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-recipes.pod:189 +msgid "Get the operating system product name string" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:191 +msgid "Save the following script into a file called C:" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-recipes.pod:193 +#, no-wrap +msgid "" +" #!/bin/sh -\n" +" set -e\n" +" eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n" +" root=\"$(guestfish --remote inspect-get-roots)\"\n" +" guestfish --remote inspect-get-product-name \"$root\"\n" +" guestfish --remote exit\n" +"\n" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:200 +msgid "Make the script executable and run it on a named guest:" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-recipes.pod:202 +#, no-wrap +msgid "" +" # product-name.sh RHEL60x64\n" +" Red Hat Enterprise Linux Server release 6.0 (Santiago)\n" +"\n" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:205 +msgid "" +"You can also use an XPath query on the L XML using the " +"C command line tool or from your favourite programming language:" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-recipes.pod:209 +#, no-wrap +msgid "" +" # virt-inspector RHEL60x64 > xml\n" +" # xpath '//product_name' < xml\n" +" Found 1 nodes:\n" +" -- NODE --\n" +" Red Hat Enterprise Linux Server release 6.0 (Santiago)\n" +"\n" +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-recipes.pod:215 +msgid "Get the default boot kernel for a Linux VM" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:217 +msgid "" +"The link below contains a program to print the default boot kernel for a " +"Linux VM." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:220 +msgid "" +"https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-" +"kernel-for-a-vm/#content" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:222 +msgid "" +"It uses Augeas, and the technique is generally applicable for many different " +"tasks, such as:" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:229 +msgid "listing the user accounts in the guest" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:233 +msgid "what repositories is it configured to use" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:237 +msgid "what NTP servers does it connect to" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:241 +msgid "what were the boot messages last time it booted" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:245 +msgid "listing who was logged in recently" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:249 +msgid "http://augeas.net/" +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-recipes.pod:251 +msgid "Install RPMs in a guest" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:253 +msgid "" +"The link below contains a method to install RPMs in a guest. In fact the " +"RPMs are just uploaded to the guest along with a \"firstboot\" script that " +"installs them next time the guest is booted. You could use this technique " +"to install vital security updates in an offline guest." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:259 +msgid "" +"https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content" +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-recipes.pod:261 +msgid "List applications installed in a VM" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:263 +msgid "Save the following to a file C:" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-recipes.pod:265 +#, no-wrap +msgid "" +" #!/bin/sh -\n" +" set -e\n" +" eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n" +" root=\"$(guestfish --remote inspect-get-roots)\"\n" +" guestfish --remote inspect-list-applications \"$root\"\n" +" guestfish --remote exit\n" +"\n" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:272 +msgid "" +"Make the file executable and then you can run it on any named virtual " +"machine:" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-recipes.pod:275 +#, no-wrap +msgid "" +" # list-apps.sh WinGuest\n" +" [0] = {\n" +" app_name: Mozilla Firefox (3.6.12)\n" +" app_display_name: Mozilla Firefox (3.6.12)\n" +" app_epoch: 0\n" +" app_version: 3.6.12 (en-GB)\n" +" app_release:\n" +" app_install_path: C:\\Program Files\\Mozilla Firefox\n" +" app_trans_path:\n" +" app_publisher: Mozilla\n" +" app_url: http://www.mozilla.com/en-GB/\n" +" app_source_package:\n" +" app_summary:\n" +" app_description: Mozilla Firefox\n" +" }\n" +" [1] = {\n" +" app_name: VLC media player\n" +" app_display_name: VLC media player 1.1.5\n" +" app_epoch: 0\n" +" app_version: 1.1.5\n" +" app_release:\n" +" app_install_path: C:\\Program Files\\VideoLAN\\VLC\n" +" app_trans_path:\n" +" app_publisher: VideoLAN\n" +" app_url: http://www.videolan.org/\n" +" app_source_package:\n" +" app_summary:\n" +" app_description:\n" +" }\n" +"\n" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:305 +msgid "" +"If you want to run the script on disk images (instead of libvirt virtual " +"machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L." +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-recipes.pod:309 +msgid "List files and directories in a VM" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:311 +msgid "This involves using the L C command like this:" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-recipes.pod:313 +#, no-wrap +msgid "" +" guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n" +"\n" +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-recipes.pod:315 +msgid "List services in a Windows VM" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:317 +msgid "" +"The link below contains a script that can be used to list out the services " +"from a Windows VM, and whether those services run at boot time or are loaded " +"on demand." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:321 +msgid "" +"https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/" +"#content" +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-recipes.pod:323 +msgid "Make a disk image sparse" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:325 +msgid "" +"The link below contains some guides for making a disk image sparse (or " +"reintroducing sparseness)." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:328 +msgid "" +"https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content" +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-recipes.pod:330 +msgid "Monitor disk usage over time" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:332 +msgid "" +"You can use L to monitor disk usage of your guests over time. " +"The link below contains a guide." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:335 +msgid "http://virt-tools.org/learning/advanced-virt-df/" +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-recipes.pod:337 +msgid "Reading the Windows Event Log from Windows Vista (or later)" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:339 +msgid "" +"L plus the tools described in the link below can be used to " +"read out the Windows Event Log from any virtual machine running Windows " +"Vista or a later version." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:343 +msgid "" +"https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-" +"guestfish/#content" +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-recipes.pod:345 +msgid "Remove root password (Linux)" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:347 +msgid "" +"Using the L I<-e> option you can do simple replacements on " +"files. One use is to remove the root password from a Linux guest:" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-recipes.pod:350 +#, no-wrap +msgid "" +" virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n" +"\n" +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-recipes.pod:352 +msgid "Remove Administrator password (Windows)" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:354 +msgid "" +"The link below contains one technique for removing the Administrator " +"password from a Windows VM, or to be more precise, it gives you a command " +"prompt the next time you log in which you can use to bypass any security:" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:359 +msgid "" +"https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-" +"administrator-password-with-guestfish/" +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-recipes.pod:361 +msgid "Unpack a live CD" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:363 +msgid "" +"Linux live CDs often contain multiple layers of disk images wrapped like a " +"Russian doll. You can use L to look inside these multiple " +"layers, as outlined in the guide below." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:367 +msgid "" +"https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-" +"cd/#content" +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-recipes.pod:369 +msgid "Uploading and downloading files" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:371 +msgid "" +"The link below contains general tips on uploading (copying in) and " +"downloading (copying out) files from VMs." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:374 +msgid "" +"https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content" +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-recipes.pod:376 +msgid "Use libguestfs tools on VMware ESX guests" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:378 +msgid "" +"The link below explains how to use libguestfs, L and the virt " +"tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:382 +msgid "" +"https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-" +"guests/#content" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:386 +msgid "" +"L, L, L, L, L, L, L, L, L, L." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-recipes.pod:403 +msgid "Copyright (C) 2009-2011 Red Hat Inc. L" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:5 +msgid "guestfs-testing - manual testing of libguestfs, you can help!" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:9 +msgid "" +"This page has manual tests you can try on libguestfs. Everyone has a " +"slightly different combination of platform, hardware and guests, so this " +"testing is very valuable. Thanks for helping out!" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:13 +msgid "These tests require libguestfs E 1.14." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:15 +msgid "" +"Tests marked with a B<*> (asterisk) can B if you're not " +"careful. The others are safe and won't modify anything." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:18 +msgid "You can report bugs you find through this link:" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:20 +msgid "" +"https://bugzilla.redhat.com/enter_bug.cgi?" +"component=libguestfs&product=Virtualization+Tools" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:22 +msgid "" +"or post on the mailing list (registration is B required, but if you're " +"not registered then you'll have to wait for a moderator to manually approve " +"your message):" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:26 +msgid "https://www.redhat.com/mailman/listinfo/libguestfs" +msgstr "" + +#. type: =head1 +#: ../examples/guestfs-testing.pod:28 +msgid "TESTS" +msgstr "" + +#. type: =head2 +#: ../examples/guestfs-testing.pod:30 +msgid "Check KVM acceleration is being used." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:32 +msgid "" +"If your host has hardware virt acceleration, then with a hot cache " +"libguestfs should be able to start up in a few seconds. Run the following " +"command a few times:" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-testing.pod:36 +#, no-wrap +msgid "" +" time guestfish -a /dev/null run\n" +"\n" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:38 +msgid "" +"After a few runs, the time should settle down to a few seconds (under 5 " +"seconds on fast 64 bit hardware)." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:41 +msgid "How to check for hardware virt:" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:43 +msgid "http://virt-tools.org/learning/check-hardware-virt/" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:45 +msgid "" +"If the command above does not work at all, use L." +msgstr "" + +#. type: =head2 +#: ../examples/guestfs-testing.pod:48 +msgid "Run virt-alignment-scan on all your guests." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:50 +msgid "Run L on guests or disk images:" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-testing.pod:52 +#, no-wrap +msgid "" +" virt-alignment-scan -a /path/to/disk.img\n" +"\n" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:54 ../examples/guestfs-testing.pod:161 +#: ../examples/guestfs-testing.pod:174 ../examples/guestfs-testing.pod:234 +#: ../src/guestfs.pod:2792 +msgid "or:" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-testing.pod:56 +#, no-wrap +msgid "" +" virt-alignment-scan -d Guest\n" +"\n" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:58 +msgid "Does the alignment report match how the guest partitions are aligned?" +msgstr "" + +#. type: =head2 +#: ../examples/guestfs-testing.pod:60 +msgid "Run virt-cat on some files in guests." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:62 +msgid "L can display files from guests. For a Linux guest, try:" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-testing.pod:64 +#, no-wrap +msgid "" +" virt-cat LinuxGuest /etc/passwd\n" +"\n" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:66 +msgid "A recent feature is support for Windows paths, for example:" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-testing.pod:68 #, no-wrap msgid "" -" #!/bin/sh -\n" -" \n" +" virt-cat WindowsGuest 'c:\\windows\\win.ini'\n" +"\n" msgstr "" -#. type: verbatim -#: ../examples/guestfs-recipes.pod:164 -#, no-wrap +#. type: textblock +#: ../examples/guestfs-testing.pod:70 msgid "" -" set -e\n" -" \n" +"An even better test is if you have a Windows guest with multiple drives. Do " +"C, C etc paths work correctly?" msgstr "" -#. type: verbatim -#: ../examples/guestfs-recipes.pod:166 -#, no-wrap +#. type: =head2 +#: ../examples/guestfs-testing.pod:73 +msgid "B<*> Copy some files into a B guest." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:75 msgid "" -" vm=\"$1\"\n" -" dir=/home\n" -" \n" +"L can recursively copy files and directories into a guest " +"or disk image." msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:169 +#: ../examples/guestfs-testing.pod:78 #, no-wrap msgid "" -" eval $(guestfish --ro -d \"$vm\" -i --listen)\n" -" \n" +" virt-copy-in -d Guest /etc /tmp\n" +"\n" msgstr "" -#. type: verbatim -#: ../examples/guestfs-recipes.pod:171 -#, no-wrap +#. type: textblock +#: ../examples/guestfs-testing.pod:80 msgid "" -" for d in $(guestfish --remote ls \"$dir\"); do\n" -" echo -n \"$dir/$d\"\n" -" echo -ne '\\t'\n" -" guestfish --remote du \"$dir/$d\";\n" -" done | sort -nr -k 2\n" -" \n" +"This should copy local directory C to C in the guest " +"(recursively). If you boot the guest, can you see all of the copied files " +"and directories?" +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:84 +msgid "Shut the guest down and try copying multiple files and directories:" msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941 +#: ../examples/guestfs-testing.pod:86 #, no-wrap msgid "" -" guestfish --remote exit\n" +" virt-copy-in -d Guest /home /etc/issue /tmp\n" "\n" msgstr "" -#. type: =head1 -#: ../examples/guestfs-recipes.pod:179 -msgid "Get DHCP address from a VM" +#. type: =head2 +#: ../examples/guestfs-testing.pod:88 +msgid "Copy some files out of a guest." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:181 +#: ../examples/guestfs-testing.pod:90 msgid "" -"The link below explains the many different possible techniques for getting " -"the last assigned DHCP address of a virtual machine." +"L can recursively copy files and directories out of a " +"guest or disk image." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:184 -msgid "" -"https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-" -"a-virtual-machine-disk-image/#content" +#: ../examples/guestfs-testing.pod:95 +msgid "Note the final space and period in the command is not a typo." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:186 -msgid "" -"In the libguestfs source examples directory you will find the latest version " -"of the C program." +#: ../examples/guestfs-testing.pod:97 +msgid "This should copy C from the guest into the current directory." msgstr "" -#. type: =head1 -#: ../examples/guestfs-recipes.pod:189 -msgid "Get the operating system product name string" +#. type: =head2 +#: ../examples/guestfs-testing.pod:99 +msgid "Run virt-df." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:191 -msgid "Save the following script into a file called C:" +#: ../examples/guestfs-testing.pod:101 +msgid "L lists disk space. Run:" msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:193 +#: ../examples/guestfs-testing.pod:103 #, no-wrap msgid "" -" #!/bin/sh -\n" -" set -e\n" -" eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n" -" root=\"$(guestfish --remote inspect-get-roots)\"\n" -" guestfish --remote inspect-get-product-name \"$root\"\n" -" guestfish --remote exit\n" +" virt-df\n" "\n" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:200 -msgid "Make the script executable and run it on a named guest:" +#: ../examples/guestfs-testing.pod:105 +msgid "" +"You can try comparing this to the results from L inside the guest, " +"but there are some provisos:" msgstr "" -#. type: verbatim -#: ../examples/guestfs-recipes.pod:202 -#, no-wrap +#. type: textblock +#: ../examples/guestfs-testing.pod:112 +msgid "The guest must be idle." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:116 +msgid "The guest disks must be synched using L." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:120 msgid "" -" # product-name.sh RHEL60x64\n" -" Red Hat Enterprise Linux Server release 6.0 (Santiago)\n" -"\n" +"Any action such as booting the guest will write log files causing the " +"numbers to change." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:205 +#: ../examples/guestfs-testing.pod:125 msgid "" -"You can also use an XPath query on the L XML using the " -"C command line tool or from your favourite programming language:" +"We don't guarantee that the numbers will be identical even under these " +"circumstances. They should be similar. It would indicate a bug if you saw " +"greatly differing numbers." +msgstr "" + +#. type: =head2 +#: ../examples/guestfs-testing.pod:129 +msgid "Try importing virt-df CSV output into a spreadsheet or database." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:131 ../src/guestfs.pod:3088 +msgid "Run:" msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:209 +#: ../examples/guestfs-testing.pod:133 #, no-wrap msgid "" -" # virt-inspector RHEL60x64 > xml\n" -" # xpath '//product_name' < xml\n" -" Found 1 nodes:\n" -" -- NODE --\n" -" Red Hat Enterprise Linux Server release 6.0 (Santiago)\n" +" virt-df --csv > /tmp/report.csv\n" "\n" msgstr "" -#. type: =head1 -#: ../examples/guestfs-recipes.pod:215 -msgid "Get the default boot kernel for a Linux VM" -msgstr "" - #. type: textblock -#: ../examples/guestfs-recipes.pod:217 +#: ../examples/guestfs-testing.pod:135 msgid "" -"The link below contains a program to print the default boot kernel for a " -"Linux VM." +"Now try to load this into your favorite spreadsheet or database. Are the " +"results reproduced faithfully in the spreadsheet/database?" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:220 +#: ../examples/guestfs-testing.pod:138 msgid "" -"https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-" -"kernel-for-a-vm/#content" +"http://www.postgresql.org/docs/8.1/static/sql-copy.html http://dev.mysql.com/" +"doc/refman/5.1/en/load-data.html" +msgstr "" + +#. type: =head2 +#: ../examples/guestfs-testing.pod:141 +msgid "B<*> Edit a file in a B guest." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:222 +#: ../examples/guestfs-testing.pod:143 msgid "" -"It uses Augeas, and the technique is generally applicable for many different " -"tasks, such as:" +"L can edit files in guests. Try this command on a RHEL or " +"Fedora guest:" msgstr "" -#. type: textblock -#: ../examples/guestfs-recipes.pod:229 -msgid "listing the user accounts in the guest" +#. type: verbatim +#: ../examples/guestfs-testing.pod:146 +#, no-wrap +msgid "" +" virt-edit LinuxGuest /etc/sysconfig/network\n" +"\n" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:233 -msgid "what repositories is it configured to use" +#: ../examples/guestfs-testing.pod:148 +msgid "On other Linux guests try editing other files such as:" msgstr "" -#. type: textblock -#: ../examples/guestfs-recipes.pod:237 -msgid "what NTP servers does it connect to" +#. type: verbatim +#: ../examples/guestfs-testing.pod:150 +#, no-wrap +msgid "" +" virt-edit LinuxGuest /etc/motd\n" +"\n" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:241 -msgid "what were the boot messages last time it booted" +#: ../examples/guestfs-testing.pod:152 +msgid "Are the changes seen inside the guest when it is booted?" msgstr "" -#. type: textblock -#: ../examples/guestfs-recipes.pod:245 -msgid "listing who was logged in recently" +#. type: =head2 +#: ../examples/guestfs-testing.pod:154 +msgid "Display the filesystems / partitions / LVs in a guest." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:249 -msgid "http://augeas.net/" +#: ../examples/guestfs-testing.pod:156 +msgid "" +"L can be used to display filesystems in a guest. Try " +"this command on any disk image or guest:" msgstr "" -#. type: =head1 -#: ../examples/guestfs-recipes.pod:251 -msgid "Install RPMs in a guest" +#. type: verbatim +#: ../examples/guestfs-testing.pod:159 +#, no-wrap +msgid "" +" virt-filesystems -a /path/to/disk.img --all --long -h\n" +"\n" msgstr "" -#. type: textblock -#: ../examples/guestfs-recipes.pod:253 +#. type: verbatim +#: ../examples/guestfs-testing.pod:163 +#, no-wrap msgid "" -"The link below contains a method to install RPMs in a guest. In fact the " -"RPMs are just uploaded to the guest along with a \"firstboot\" script that " -"installs them next time the guest is booted. You could use this technique " -"to install vital security updates in an offline guest." +" virt-filesystems -d Guest --all --long -h\n" +"\n" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:259 -msgid "" -"https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content" +#: ../examples/guestfs-testing.pod:165 +msgid "Do the results match what is seen in the guest?" msgstr "" -#. type: =head1 -#: ../examples/guestfs-recipes.pod:261 -msgid "List applications installed in a VM" +#. type: =head2 +#: ../examples/guestfs-testing.pod:167 +msgid "Run virt-inspector on all your guests." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:263 -msgid "Save the following to a file C:" +#: ../examples/guestfs-testing.pod:169 +msgid "" +"Use L to get a report on all of your guests or disk " +"images:" msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:265 +#: ../examples/guestfs-testing.pod:172 #, no-wrap msgid "" -" #!/bin/sh -\n" -" set -e\n" -" eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n" -" root=\"$(guestfish --remote inspect-get-roots)\"\n" -" guestfish --remote inspect-list-applications \"$root\"\n" -" guestfish --remote exit\n" +" virt-inspector -a /path/to/disk.img | less\n" +"\n" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-testing.pod:176 +#, no-wrap +msgid "" +" virt-inspector -d Guest | less\n" "\n" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:272 +#: ../examples/guestfs-testing.pod:178 +msgid "Do the results match what is actually in the guest?" +msgstr "" + +#. type: =head2 +#: ../examples/guestfs-testing.pod:180 +msgid "Try the auditing features of virt-ls on all your guests." +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-testing.pod:184 +#, no-wrap msgid "" -"Make the file executable and then you can run it on any named virtual " -"machine:" +" virt-ls -lR -d Guest / | grep '^- [42]'\n" +"\n" msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:275 +#: ../examples/guestfs-testing.pod:188 #, no-wrap msgid "" -" # list-apps.sh WinGuest\n" -" [0] = {\n" -" app_name: Mozilla Firefox (3.6.12)\n" -" app_display_name: Mozilla Firefox (3.6.12)\n" -" app_epoch: 0\n" -" app_version: 3.6.12 (en-GB)\n" -" app_release:\n" -" app_install_path: C:\\Program Files\\Mozilla Firefox\n" -" app_trans_path:\n" -" app_publisher: Mozilla\n" -" app_url: http://www.mozilla.com/en-GB/\n" -" app_source_package:\n" -" app_summary:\n" -" app_description: Mozilla Firefox\n" -" }\n" -" [1] = {\n" -" app_name: VLC media player\n" -" app_display_name: VLC media player 1.1.5\n" -" app_epoch: 0\n" -" app_version: 1.1.5\n" -" app_release:\n" -" app_install_path: C:\\Program Files\\VideoLAN\\VLC\n" -" app_trans_path:\n" -" app_publisher: VideoLAN\n" -" app_url: http://www.videolan.org/\n" -" app_source_package:\n" -" app_summary:\n" -" app_description:\n" -" }\n" +" virt-ls -lR -d Guest / | grep '^d ...7'\n" "\n" msgstr "" -#. type: textblock -#: ../examples/guestfs-recipes.pod:305 +#. type: verbatim +#: ../examples/guestfs-testing.pod:192 +#, no-wrap msgid "" -"If you want to run the script on disk images (instead of libvirt virtual " -"machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L." +" virt-ls -lR -d Guest / | grep '^s'\n" +"\n" msgstr "" -#. type: =head1 -#: ../examples/guestfs-recipes.pod:309 -msgid "List files and directories in a VM" +#. type: verbatim +#: ../examples/guestfs-testing.pod:196 +#, no-wrap +msgid "" +" virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n" +"\n" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:311 -msgid "This involves using the L C command like this:" +#: ../examples/guestfs-testing.pod:198 +msgid "Display files larger than 10MB in home directories:" msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:313 +#: ../examples/guestfs-testing.pod:200 #, no-wrap msgid "" -" guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n" +" virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n" "\n" msgstr "" -#. type: =head1 -#: ../examples/guestfs-recipes.pod:315 -msgid "List services in a Windows VM" +#. type: verbatim +#: ../examples/guestfs-testing.pod:204 +#, no-wrap +msgid "" +" virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n" +"\n" msgstr "" -#. type: textblock -#: ../examples/guestfs-recipes.pod:317 +#. type: verbatim +#: ../examples/guestfs-testing.pod:208 +#, no-wrap msgid "" -"The link below contains a script that can be used to list out the services " -"from a Windows VM, and whether those services run at boot time or are loaded " -"on demand." +" virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n" +"\n" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:321 -msgid "" -"https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/" -"#content" +#: ../examples/guestfs-testing.pod:210 +msgid "Do the results match what is in the guest?" msgstr "" -#. type: =head1 -#: ../examples/guestfs-recipes.pod:323 -msgid "Make a disk image sparse" +#. type: =head2 +#: ../examples/guestfs-testing.pod:212 +msgid "Create a disk image from a tarball." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:325 +#: ../examples/guestfs-testing.pod:214 msgid "" -"The link below contains some guides for making a disk image sparse (or " -"reintroducing sparseness)." +"Use L to create a disk image from any tarball that you " +"happen to have:" msgstr "" -#. type: textblock -#: ../examples/guestfs-recipes.pod:328 +#. type: verbatim +#: ../examples/guestfs-testing.pod:217 +#, no-wrap msgid "" -"https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content" +" virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n" +"\n" msgstr "" -#. type: =head1 -#: ../examples/guestfs-recipes.pod:330 -msgid "Monitor disk usage over time" +#. type: textblock +#: ../examples/guestfs-testing.pod:219 +msgid "" +"Add 'output.img' as a raw disk to an existing guest. Check the guest can " +"see the files. This test is particularly useful if you try it with a " +"Windows guest." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:332 -msgid "" -"You can use L to monitor disk usage of your guests over time. " -"The link below contains a guide." +#: ../examples/guestfs-testing.pod:223 +msgid "Try other partitioning schemes, eg. I<--partition=gpt>." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:335 -msgid "http://virt-tools.org/learning/advanced-virt-df/" +#: ../examples/guestfs-testing.pod:225 +msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>." msgstr "" -#. type: =head1 -#: ../examples/guestfs-recipes.pod:337 -msgid "Reading the Windows Event Log from Windows Vista (or later)" +#. type: =head2 +#: ../examples/guestfs-testing.pod:227 +msgid "B<*> Run virt-rescue on a B disk image or guest." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:339 +#: ../examples/guestfs-testing.pod:229 msgid "" -"L plus the tools described in the link below can be used to " -"read out the Windows Event Log from any virtual machine running Windows " -"Vista or a later version." +"Use L to examine, rescue or repair a B guest or " +"disk image:" msgstr "" -#. type: textblock -#: ../examples/guestfs-recipes.pod:343 +#. type: verbatim +#: ../examples/guestfs-testing.pod:232 +#, no-wrap msgid "" -"https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-" -"guestfish/#content" +" virt-rescue -a /path/to/disk.img\n" +"\n" msgstr "" -#. type: =head1 -#: ../examples/guestfs-recipes.pod:345 -msgid "Remove root password (Linux)" +#. type: verbatim +#: ../examples/guestfs-testing.pod:236 +#, no-wrap +msgid "" +" virt-rescue -d Guest\n" +"\n" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:347 +#: ../examples/guestfs-testing.pod:238 +msgid "Can you use ordinary shell commands to examine the guest?" +msgstr "" + +#. type: =head2 +#: ../examples/guestfs-testing.pod:240 +msgid "B<*> Resize your guests." +msgstr "" + +#. type: textblock +#: ../examples/guestfs-testing.pod:242 msgid "" -"Using the L I<-e> option you can do simple replacements on " -"files. One use is to remove the root password from a Linux guest:" +"Use L to give a guest some more disk space. For example, if " +"you have a disk image that is smaller than 30G, increase it to 30G by doing:" msgstr "" #. type: verbatim -#: ../examples/guestfs-recipes.pod:350 +#: ../examples/guestfs-testing.pod:246 #, no-wrap msgid "" -" virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n" +" truncate -s 30G newdisk.img\n" +" virt-filesystems -a /path/to/olddisk.img --all --long -h\n" +" virt-resize /path/to/olddisk.img newdisk.img --expand /dev/sda1\n" +" qemu-kvm -m 1024 -hda newdisk.img\n" "\n" msgstr "" -#. type: =head1 -#: ../examples/guestfs-recipes.pod:352 -msgid "Remove Administrator password (Windows)" +#. type: textblock +#: ../examples/guestfs-testing.pod:251 +msgid "Does the guest still boot? Try expanding other partitions." +msgstr "" + +#. type: =head2 +#: ../examples/guestfs-testing.pod:253 +msgid "B<*> Sparsify a guest disk." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:354 +#: ../examples/guestfs-testing.pod:255 +msgid "Using L, make a disk image more sparse:" +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-testing.pod:257 +#, no-wrap msgid "" -"The link below contains one technique for removing the Administrator " -"password from a Windows VM, or to be more precise, it gives you a command " -"prompt the next time you log in which you can use to bypass any security:" +" virt-sparsify /path/to/olddisk.img newdisk.img\n" +"\n" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:359 +#: ../examples/guestfs-testing.pod:259 msgid "" -"https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-" -"administrator-password-with-guestfish/" +"Is C still bootable after sparsifying? Is the resulting disk " +"image smaller (use C to check)?" msgstr "" -#. type: =head1 -#: ../examples/guestfs-recipes.pod:361 -msgid "Unpack a live CD" +#. type: =head2 +#: ../examples/guestfs-testing.pod:262 +msgid "B<*> \"sysprep\" a B Linux guest." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:363 +#: ../examples/guestfs-testing.pod:264 msgid "" -"Linux live CDs often contain multiple layers of disk images wrapped like a " -"Russian doll. You can use L to look inside these multiple " -"layers, as outlined in the guide below." +"Note that this really will mess up an existing guest, so it's better to " +"clone the guest before trying this." +msgstr "" + +#. type: verbatim +#: ../examples/guestfs-testing.pod:267 +#, no-wrap +msgid "" +" virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n" +"\n" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:367 +#: ../examples/guestfs-testing.pod:269 msgid "" -"https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-" -"cd/#content" +"Was the sysprep successful? After booting, what changes were made and were " +"they successful?" msgstr "" -#. type: =head1 -#: ../examples/guestfs-recipes.pod:369 -msgid "Uploading and downloading files" +#. type: =head2 +#: ../examples/guestfs-testing.pod:272 +msgid "Dump the Windows Registry from your Windows guests." msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:371 +#: ../examples/guestfs-testing.pod:274 msgid "" -"The link below contains general tips on uploading (copying in) and " -"downloading (copying out) files from VMs." +"Use L to dump out the Windows Registry from any Windows " +"guests that you have." msgstr "" -#. type: textblock -#: ../examples/guestfs-recipes.pod:374 +#. type: verbatim +#: ../examples/guestfs-testing.pod:277 +#, no-wrap msgid "" -"https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content" +" virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n" +" less\n" +"\n" msgstr "" -#. type: =head1 -#: ../examples/guestfs-recipes.pod:376 -msgid "Use libguestfs tools on VMware ESX guests" +#. type: verbatim +#: ../examples/guestfs-testing.pod:280 +#, no-wrap +msgid "" +" virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n" +" less\n" +"\n" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:378 -msgid "" -"The link below explains how to use libguestfs, L and the virt " -"tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs." +#: ../examples/guestfs-testing.pod:283 +msgid "Does the output match running C inside the guest?" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:382 +#: ../examples/guestfs-testing.pod:285 msgid "" -"https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-" -"guests/#content" +"A recent feature is the ability to dump user registries, so try this, " +"replacing I with the name of a local user in the guest:" msgstr "" -#. type: textblock -#: ../examples/guestfs-recipes.pod:386 +#. type: verbatim +#: ../examples/guestfs-testing.pod:288 +#, no-wrap msgid "" -"L, L, L, L, " -"L, L, L, L, L." +" virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' |\n" +" less\n" +"\n" msgstr "" #. type: textblock -#: ../examples/guestfs-recipes.pod:402 -msgid "Copyright (C) 2009-2011 Red Hat Inc. L" +#: ../examples/guestfs-testing.pod:293 +msgid "" +"L, L, L, L." msgstr "" #. type: =head2 @@ -4098,31 +6564,32 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163 -#: ../fish/guestfish-actions.pod:177 +#: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214 +#: ../fish/guestfish-actions.pod:228 msgid "" "I In new code, use the L call " "instead." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166 -#: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:986 -#: ../fish/guestfish-actions.pod:1346 ../fish/guestfish-actions.pod:1360 -#: ../fish/guestfish-actions.pod:3085 ../fish/guestfish-actions.pod:3292 -#: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3454 -#: ../fish/guestfish-actions.pod:4355 ../fish/guestfish-actions.pod:4378 -#: ../fish/guestfish-actions.pod:4400 ../fish/guestfish-actions.pod:4438 -#: ../fish/guestfish-actions.pod:5087 ../fish/guestfish-actions.pod:5185 -#: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252 -#: ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1503 -#: ../src/guestfs-actions.pod:2002 ../src/guestfs-actions.pod:2023 -#: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4921 -#: ../src/guestfs-actions.pod:5150 ../src/guestfs-actions.pod:5250 -#: ../src/guestfs-actions.pod:6516 ../src/guestfs-actions.pod:6560 -#: ../src/guestfs-actions.pod:6594 ../src/guestfs-actions.pod:6657 -#: ../src/guestfs-actions.pod:7589 ../src/guestfs-actions.pod:7698 -#: ../src/guestfs-actions.pod:7873 +#: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217 +#: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:972 +#: ../fish/guestfish-actions.pod:1007 ../fish/guestfish-actions.pod:1180 +#: ../fish/guestfish-actions.pod:1540 ../fish/guestfish-actions.pod:1554 +#: ../fish/guestfish-actions.pod:3423 ../fish/guestfish-actions.pod:3734 +#: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:4700 +#: ../fish/guestfish-actions.pod:4720 ../fish/guestfish-actions.pod:4739 +#: ../fish/guestfish-actions.pod:4777 ../fish/guestfish-actions.pod:5505 +#: ../fish/guestfish-actions.pod:5608 ../src/guestfs-actions.pod:10 +#: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326 +#: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:1676 +#: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2458 +#: ../src/guestfs-actions.pod:2479 ../src/guestfs-actions.pod:5281 +#: ../src/guestfs-actions.pod:5803 ../src/guestfs-actions.pod:5903 +#: ../src/guestfs-actions.pod:7199 ../src/guestfs-actions.pod:7240 +#: ../src/guestfs-actions.pod:7271 ../src/guestfs-actions.pod:7331 +#: ../src/guestfs-actions.pod:8385 ../src/guestfs-actions.pod:8494 +#: ../src/guestfs-actions.pod:8674 msgid "" "Deprecated functions will not be removed from the API, but the fact that " "they are deprecated indicates that there are problems with correct use of " @@ -4143,7 +6610,7 @@ msgstr "" #: ../fish/guestfish-actions.pod:39 #, no-wrap msgid "" -" add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n" +" add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] [live:true|false] [allowuuid:true|false] [readonlydisk:..]\n" "\n" msgstr "" @@ -4156,14 +6623,14 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64 +#: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65 msgid "" "The number of disks added is returned. This operation is atomic: if an " "error is returned, then no disks are added." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67 +#: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68 msgid "" "This function does some minimal checks to make sure the libvirt domain is " "not running (unless C is true). In a future version we will try " @@ -4171,7 +6638,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71 +#: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72 msgid "" "Disks must be accessible locally. This often means that adding disks from a " "remote libvirt connection (see L) will fail " @@ -4179,7 +6646,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76 +#: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77 msgid "" "The optional C parameter sets the libvirt URI (see L). If this is not set then we connect to the default " @@ -4188,7 +6655,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82 +#: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83 msgid "" "The optional C flag controls whether this call will try to connect to " "a running virtual machine C process if it sees a suitable " @@ -4198,7 +6665,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89 +#: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90 msgid "" "If the C flag is true (default is false) then a UUID I be " "passed instead of the domain name. The C string is treated as a UUID " @@ -4207,28 +6674,109 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:76 +#: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95 +msgid "" +"The optional C parameter controls what we do for disks which " +"are marked Ereadonly/E in the libvirt XML. Possible values are:" +msgstr "" + +#. type: =item +#: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101 +msgid "readonlydisk = \"error\"" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95 +#: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103 +#: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125 +msgid "If C is false:" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105 +msgid "" +"The whole call is aborted with an error if any disk with the Ereadonly/" +"E flag is found." +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100 +#: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108 +#: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129 +msgid "If C is true:" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102 +#: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110 +#: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131 +msgid "Disks with the Ereadonly/E flag are added read-only." +msgstr "" + +#. type: =item +#: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112 +msgid "readonlydisk = \"read\"" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116 +msgid "" +"Disks with the Ereadonly/E flag are added read-only. Other disks " +"are added read/write." +msgstr "" + +#. type: =item +#: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123 +msgid "readonlydisk = \"write\" (default)" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127 +msgid "Disks with the Ereadonly/E flag are added read/write." +msgstr "" + +#. type: =item +#: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133 +msgid "readonlydisk = \"ignore\"" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135 +msgid "If C is true or false:" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137 +msgid "Disks with the Ereadonly/E flag are skipped." +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:122 msgid "" "The other optional parameters are passed directly through to L." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143 -#: ../fish/guestfish-actions.pod:568 ../fish/guestfish-actions.pod:1968 -#: ../fish/guestfish-actions.pod:3134 ../fish/guestfish-actions.pod:3307 -#: ../fish/guestfish-actions.pod:3442 +#: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194 +#: ../fish/guestfish-actions.pod:655 ../fish/guestfish-actions.pod:866 +#: ../fish/guestfish-actions.pod:887 ../fish/guestfish-actions.pod:925 +#: ../fish/guestfish-actions.pod:934 ../fish/guestfish-actions.pod:943 +#: ../fish/guestfish-actions.pod:957 ../fish/guestfish-actions.pod:2202 +#: ../fish/guestfish-actions.pod:3250 ../fish/guestfish-actions.pod:3472 +#: ../fish/guestfish-actions.pod:3635 ../fish/guestfish-actions.pod:3770 +#: ../fish/guestfish-actions.pod:5141 msgid "" "This command has one or more optional arguments. See L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:81 +#: ../fish/guestfish-actions.pod:127 msgid "add-drive" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:83 +#: ../fish/guestfish-actions.pod:129 #, no-wrap msgid "" " add-drive filename\n" @@ -4236,7 +6784,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:85 +#: ../fish/guestfish-actions.pod:131 msgid "" "This function is the equivalent of calling L with no " "optional parameters, so the disk is added writable, with the format being " @@ -4244,7 +6792,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:89 +#: ../fish/guestfish-actions.pod:135 msgid "" "Automatic detection of the format opens you up to a potential security hole " "when dealing with untrusted raw-format images. See CVE-2010-3851 and " @@ -4254,25 +6802,25 @@ msgid "" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:96 +#: ../fish/guestfish-actions.pod:142 msgid "add-drive-opts" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:98 +#: ../fish/guestfish-actions.pod:144 msgid "add" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:100 +#: ../fish/guestfish-actions.pod:146 #, no-wrap msgid "" -" add-drive-opts filename [readonly:..] [format:..] [iface:..]\n" +" add-drive-opts filename [readonly:true|false] [format:..] [iface:..] [name:..]\n" "\n" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160 +#: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208 msgid "" "This function adds a virtual machine disk image C to libguestfs. " "The first time you call this function, the disk appears as C, the " @@ -4280,7 +6828,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165 +#: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213 msgid "" "You don't necessarily need to be root when using libguestfs. However you " "obviously do need sufficient permissions to access the filename for whatever " @@ -4289,23 +6837,23 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171 +#: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219 msgid "This call checks that C exists." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3096 -#: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4655 +#: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3434 +#: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5318 msgid "The optional arguments are:" msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177 +#: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225 msgid "C" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179 +#: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227 msgid "" "If true then the image is treated as read-only. Writes are still allowed, " "but they are stored in a temporary snapshot overlay which is discarded at " @@ -4313,12 +6861,12 @@ msgid "" msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183 +#: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231 msgid "C" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:127 +#: ../fish/guestfish-actions.pod:173 msgid "" "This forces the image format. If you omit this (or use L or L) then the format is automatically detected. Possible formats " @@ -4326,7 +6874,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189 +#: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237 msgid "" "Automatic detection of the format opens you up to a potential security hole " "when dealing with untrusted raw-format images. See CVE-2010-3851 and " @@ -4334,29 +6882,42 @@ msgid "" msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194 +#: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242 msgid "C" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:138 +#: ../fish/guestfish-actions.pod:184 msgid "" "This rarely-used option lets you emulate the behaviour of the deprecated L call (q.v.)" msgstr "" +#. type: =item +#: ../fish/guestfish-actions.pod:187 ../fish/guestfish-actions.pod:3277 +#: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:5039 +msgid "C" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249 +msgid "" +"The name the drive had in the original guest, e.g. /dev/sdb. This is used as " +"a hint to the guest inspection process if it is available." +msgstr "" + #. type: =head2 -#: ../fish/guestfish-actions.pod:145 +#: ../fish/guestfish-actions.pod:196 msgid "add-drive-ro" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:147 +#: ../fish/guestfish-actions.pod:198 msgid "add-ro" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:149 +#: ../fish/guestfish-actions.pod:200 #, no-wrap msgid "" " add-drive-ro filename\n" @@ -4364,7 +6925,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:151 +#: ../fish/guestfish-actions.pod:202 msgid "" "This function is the equivalent of calling L with the " "optional parameter C set to 1, so the disk " @@ -4372,12 +6933,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:156 +#: ../fish/guestfish-actions.pod:207 msgid "add-drive-ro-with-if" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:158 +#: ../fish/guestfish-actions.pod:209 #, no-wrap msgid "" " add-drive-ro-with-if filename iface\n" @@ -4385,19 +6946,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:160 +#: ../fish/guestfish-actions.pod:211 msgid "" "This is the same as L but it allows you to specify the QEMU " "interface emulation to use at run time." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:170 +#: ../fish/guestfish-actions.pod:221 msgid "add-drive-with-if" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:172 +#: ../fish/guestfish-actions.pod:223 #, no-wrap msgid "" " add-drive-with-if filename iface\n" @@ -4405,19 +6966,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:174 +#: ../fish/guestfish-actions.pod:225 msgid "" "This is the same as L but it allows you to specify the QEMU " "interface emulation to use at run time." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:184 +#: ../fish/guestfish-actions.pod:235 msgid "aug-clear" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:186 +#: ../fish/guestfish-actions.pod:237 #, no-wrap msgid "" " aug-clear augpath\n" @@ -4425,19 +6986,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290 +#: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343 msgid "" "Set the value associated with C to C. This is the same as the " "L C command." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:191 +#: ../fish/guestfish-actions.pod:242 msgid "aug-close" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:193 +#: ../fish/guestfish-actions.pod:244 #, no-wrap msgid "" " aug-close\n" @@ -4445,7 +7006,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:195 +#: ../fish/guestfish-actions.pod:246 msgid "" "Close the current Augeas handle and free up any resources used by it. After " "calling this, you have to call L again before you can use any " @@ -4453,12 +7014,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:200 +#: ../fish/guestfish-actions.pod:251 msgid "aug-defnode" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:202 +#: ../fish/guestfish-actions.pod:253 #, no-wrap msgid "" " aug-defnode name expr val\n" @@ -4466,13 +7027,13 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319 +#: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372 msgid "" "Defines a variable C whose value is the result of evaluating C." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:207 +#: ../fish/guestfish-actions.pod:258 msgid "" "If C evaluates to an empty nodeset, a node is created, equivalent to " "calling L C, C. C will be the nodeset " @@ -4480,19 +7041,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326 +#: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379 msgid "" "On success this returns a pair containing the number of nodes in the " "nodeset, and a boolean flag if a node was created." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:215 +#: ../fish/guestfish-actions.pod:266 msgid "aug-defvar" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:217 +#: ../fish/guestfish-actions.pod:268 #, no-wrap msgid "" " aug-defvar name expr\n" @@ -4500,26 +7061,26 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343 +#: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396 msgid "" "Defines an Augeas variable C whose value is the result of evaluating " "C. If C is NULL, then C is undefined." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347 +#: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400 msgid "" "On success this returns the number of nodes in C, or C<0> if C " "evaluates to something which is not a nodeset." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:226 +#: ../fish/guestfish-actions.pod:277 msgid "aug-get" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:228 +#: ../fish/guestfish-actions.pod:279 #, no-wrap msgid "" " aug-get augpath\n" @@ -4527,19 +7088,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360 +#: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413 msgid "" "Look up the value associated with C. If C matches exactly one " "node, the C is returned." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:233 +#: ../fish/guestfish-actions.pod:284 msgid "aug-init" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:235 +#: ../fish/guestfish-actions.pod:286 #, no-wrap msgid "" " aug-init root flags\n" @@ -4547,7 +7108,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375 +#: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428 msgid "" "Create a new Augeas handle for editing configuration files. If there was " "any previous Augeas handle associated with this guestfs session, then it is " @@ -4555,102 +7116,110 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:241 +#: ../fish/guestfish-actions.pod:292 msgid "You must call this before using any other L commands." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382 +#: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435 msgid "" "C is the filesystem root. C must not be NULL, use C instead." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385 +#: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438 msgid "" "The flags are the same as the flags defined in Eaugeas.hE, the " "logical I of the following integers:" msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391 +#: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444 msgid "C = 1" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393 +#: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446 msgid "Keep the original file with a C<.augsave> extension." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395 +#: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448 msgid "C = 2" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397 +#: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450 msgid "" "Save changes into a file with extension C<.augnew>, and do not overwrite " "original. Overrides C." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400 +#: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453 msgid "C = 4" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402 -msgid "Typecheck lenses (can be expensive)." +#: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455 +msgid "Typecheck lenses." +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:317 +msgid "" +"This option is only useful when debugging Augeas lenses. Use of this option " +"may require additional memory for the libguestfs appliance. You may need to " +"set the C environment variable or call L." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:266 ../src/guestfs-actions.pod:404 +#: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462 msgid "C = 8" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:268 ../src/guestfs-actions.pod:406 +#: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464 msgid "Do not use standard load path for modules." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:408 +#: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466 msgid "C = 16" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:272 ../src/guestfs-actions.pod:410 +#: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468 msgid "Make save a no-op, just record what would have been changed." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:412 +#: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470 msgid "C = 32" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:276 +#: ../fish/guestfish-actions.pod:332 msgid "Do not load the tree in L." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:280 +#: ../fish/guestfish-actions.pod:336 msgid "To close the handle, you can call L." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:420 +#: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478 msgid "To find out more about Augeas, see L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:284 +#: ../fish/guestfish-actions.pod:340 msgid "aug-insert" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:286 +#: ../fish/guestfish-actions.pod:342 #, no-wrap msgid "" " aug-insert augpath label true|false\n" @@ -4658,26 +7227,26 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:434 +#: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492 msgid "" "Create a new sibling C." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1222 +#: ../fish/guestfish-actions.pod:1416 msgid "find0" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1224 +#: ../fish/guestfish-actions.pod:1418 #, no-wrap msgid "" " find0 directory (files|-)\n" @@ -6706,7 +9516,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1226 ../src/guestfs-actions.pod:1837 +#: ../fish/guestfish-actions.pod:1420 ../src/guestfs-actions.pod:2293 msgid "" "This command lists out all files and directories, recursively, starting at " "C, placing the resulting list in the external file called " @@ -6714,40 +9524,40 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1230 +#: ../fish/guestfish-actions.pod:1424 msgid "" "This command works the same way as L with the following exceptions:" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1848 +#: ../fish/guestfish-actions.pod:1431 ../src/guestfs-actions.pod:2304 msgid "The resulting list is written to an external file." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1241 ../src/guestfs-actions.pod:1852 +#: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2308 msgid "" "Items (filenames) in the result are separated by C<\\0> characters. See " "L option I<-print0>." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857 +#: ../fish/guestfish-actions.pod:1440 ../src/guestfs-actions.pod:2313 msgid "This command is not limited in the number of names that it can return." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862 +#: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2318 msgid "The result list is not sorted." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1257 +#: ../fish/guestfish-actions.pod:1451 msgid "findfs-label" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1259 +#: ../fish/guestfish-actions.pod:1453 #, no-wrap msgid "" " findfs-label label\n" @@ -6755,24 +9565,24 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1261 ../src/guestfs-actions.pod:1876 +#: ../fish/guestfish-actions.pod:1455 ../src/guestfs-actions.pod:2332 msgid "" "This command searches the filesystems and returns the one which has the " "given label. An error is returned if no such filesystem can be found." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1265 +#: ../fish/guestfish-actions.pod:1459 msgid "To find the label of a filesystem, use L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1267 +#: ../fish/guestfish-actions.pod:1461 msgid "findfs-uuid" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1269 +#: ../fish/guestfish-actions.pod:1463 #, no-wrap msgid "" " findfs-uuid uuid\n" @@ -6780,24 +9590,24 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1893 +#: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349 msgid "" "This command searches the filesystems and returns the one which has the " "given UUID. An error is returned if no such filesystem can be found." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1275 +#: ../fish/guestfish-actions.pod:1469 msgid "To find the UUID of a filesystem, use L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1277 +#: ../fish/guestfish-actions.pod:1471 msgid "fsck" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1279 +#: ../fish/guestfish-actions.pod:1473 #, no-wrap msgid "" " fsck fstype device\n" @@ -6805,49 +9615,49 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1911 +#: ../fish/guestfish-actions.pod:1475 ../src/guestfs-actions.pod:2367 msgid "" "This runs the filesystem checker (fsck) on C which should have " "filesystem type C." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:1914 +#: ../fish/guestfish-actions.pod:1478 ../src/guestfs-actions.pod:2370 msgid "" "The returned integer is the status. See L for the list of status " "codes from C." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1293 ../src/guestfs-actions.pod:1923 +#: ../fish/guestfish-actions.pod:1487 ../src/guestfs-actions.pod:2379 msgid "Multiple status codes can be summed together." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1297 ../src/guestfs-actions.pod:1927 +#: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2383 msgid "" "A non-zero return code can mean \"success\", for example if errors have been " "corrected on the filesystem." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932 +#: ../fish/guestfish-actions.pod:1496 ../src/guestfs-actions.pod:2388 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937 +#: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2393 msgid "" "This command is entirely equivalent to running C." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1309 +#: ../fish/guestfish-actions.pod:1503 msgid "get-append" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1311 +#: ../fish/guestfish-actions.pod:1505 #, no-wrap msgid "" " get-append\n" @@ -6855,24 +9665,24 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1313 ../src/guestfs-actions.pod:1948 +#: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2404 msgid "" "Return the additional kernel options which are added to the guest kernel " "command line." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:1951 +#: ../fish/guestfish-actions.pod:1510 ../src/guestfs-actions.pod:2407 msgid "If C then no options are added." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1318 +#: ../fish/guestfish-actions.pod:1512 msgid "get-attach-method" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1320 +#: ../fish/guestfish-actions.pod:1514 #, no-wrap msgid "" " get-attach-method\n" @@ -6880,17 +9690,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1322 +#: ../fish/guestfish-actions.pod:1516 msgid "Return the current attach method. See L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1324 +#: ../fish/guestfish-actions.pod:1518 msgid "get-autosync" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1326 +#: ../fish/guestfish-actions.pod:1520 #, no-wrap msgid "" " get-autosync\n" @@ -6898,17 +9708,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1328 ../src/guestfs-actions.pod:1976 +#: ../fish/guestfish-actions.pod:1522 ../src/guestfs-actions.pod:2432 msgid "Get the autosync flag." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1330 +#: ../fish/guestfish-actions.pod:1524 msgid "get-direct" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1332 +#: ../fish/guestfish-actions.pod:1526 #, no-wrap msgid "" " get-direct\n" @@ -6916,17 +9726,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1334 ../src/guestfs-actions.pod:1987 +#: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2443 msgid "Return the direct appliance mode flag." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1336 +#: ../fish/guestfish-actions.pod:1530 msgid "get-e2label" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1338 +#: ../fish/guestfish-actions.pod:1532 #, no-wrap msgid "" " get-e2label device\n" @@ -6934,25 +9744,25 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1340 ../src/guestfs-actions.pod:2006 +#: ../fish/guestfish-actions.pod:1534 ../src/guestfs-actions.pod:2462 msgid "" "This returns the ext2/3/4 filesystem label of the filesystem on C." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1343 +#: ../fish/guestfish-actions.pod:1537 msgid "" "I In new code, use the L call " "instead." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1350 +#: ../fish/guestfish-actions.pod:1544 msgid "get-e2uuid" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1352 +#: ../fish/guestfish-actions.pod:1546 #, no-wrap msgid "" " get-e2uuid device\n" @@ -6960,25 +9770,25 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod:2027 +#: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2483 msgid "" "This returns the ext2/3/4 filesystem UUID of the filesystem on C." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1357 +#: ../fish/guestfish-actions.pod:1551 msgid "" "I In new code, use the L call " "instead." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1364 +#: ../fish/guestfish-actions.pod:1558 msgid "get-memsize" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1366 +#: ../fish/guestfish-actions.pod:1560 #, no-wrap msgid "" " get-memsize\n" @@ -6986,13 +9796,13 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2040 +#: ../fish/guestfish-actions.pod:1562 ../src/guestfs-actions.pod:2496 msgid "" "This gets the memory size in megabytes allocated to the qemu subprocess." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1371 +#: ../fish/guestfish-actions.pod:1565 msgid "" "If L was not called on this handle, and if " "C was not set, then this returns the compiled-in default " @@ -7000,21 +9810,21 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1375 ../fish/guestfish-actions.pod:1432 -#: ../fish/guestfish-actions.pod:4163 ../fish/guestfish-actions.pod:4265 -#: ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2139 -#: ../src/guestfs-actions.pod:6293 ../src/guestfs-actions.pod:6419 +#: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1626 +#: ../fish/guestfish-actions.pod:4499 ../fish/guestfish-actions.pod:4601 +#: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2595 +#: ../src/guestfs-actions.pod:6960 ../src/guestfs-actions.pod:7086 msgid "" "For more information on the architecture of libguestfs, see L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1378 +#: ../fish/guestfish-actions.pod:1572 msgid "get-network" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1380 +#: ../fish/guestfish-actions.pod:1574 #, no-wrap msgid "" " get-network\n" @@ -7022,17 +9832,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1382 ../src/guestfs-actions.pod:2059 +#: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2515 msgid "This returns the enable network flag." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1384 +#: ../fish/guestfish-actions.pod:1578 msgid "get-path" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1386 +#: ../fish/guestfish-actions.pod:1580 #, no-wrap msgid "" " get-path\n" @@ -7040,24 +9850,24 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1388 ../src/guestfs-actions.pod:2070 +#: ../fish/guestfish-actions.pod:1582 ../src/guestfs-actions.pod:2526 msgid "Return the current search path." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1390 ../src/guestfs-actions.pod:2072 +#: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2528 msgid "" "This is always non-NULL. If it wasn't set already, then this will return " "the default path." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1393 +#: ../fish/guestfish-actions.pod:1587 msgid "get-pgroup" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1395 +#: ../fish/guestfish-actions.pod:1589 #, no-wrap msgid "" " get-pgroup\n" @@ -7065,22 +9875,22 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1397 ../src/guestfs-actions.pod:2085 +#: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2541 msgid "This returns the process group flag." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1399 +#: ../fish/guestfish-actions.pod:1593 msgid "get-pid" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1401 +#: ../fish/guestfish-actions.pod:1595 msgid "pid" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1403 +#: ../fish/guestfish-actions.pod:1597 #, no-wrap msgid "" " get-pid\n" @@ -7088,24 +9898,24 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1405 ../src/guestfs-actions.pod:2096 +#: ../fish/guestfish-actions.pod:1599 ../src/guestfs-actions.pod:2552 msgid "" "Return the process ID of the qemu subprocess. If there is no qemu " "subprocess, then this will return an error." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2099 +#: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2555 msgid "This is an internal call used for debugging and testing." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1410 +#: ../fish/guestfish-actions.pod:1604 msgid "get-qemu" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1412 +#: ../fish/guestfish-actions.pod:1606 #, no-wrap msgid "" " get-qemu\n" @@ -7113,24 +9923,24 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2110 +#: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2566 msgid "Return the current qemu binary." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1416 ../src/guestfs-actions.pod:2112 +#: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2568 msgid "" "This is always non-NULL. If it wasn't set already, then this will return " "the default qemu binary name." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1419 +#: ../fish/guestfish-actions.pod:1613 msgid "get-recovery-proc" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1421 +#: ../fish/guestfish-actions.pod:1615 #, no-wrap msgid "" " get-recovery-proc\n" @@ -7138,17 +9948,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1423 ../src/guestfs-actions.pod:2125 +#: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2581 msgid "Return the recovery process enabled flag." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1425 +#: ../fish/guestfish-actions.pod:1619 msgid "get-selinux" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1427 +#: ../fish/guestfish-actions.pod:1621 #, no-wrap msgid "" " get-selinux\n" @@ -7156,19 +9966,37 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1429 +#: ../fish/guestfish-actions.pod:1623 msgid "" "This returns the current setting of the selinux flag which is passed to the " "appliance at boot time. See L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1435 +#: ../fish/guestfish-actions.pod:1629 +msgid "get-smp" +msgstr "" + +#. type: verbatim +#: ../fish/guestfish-actions.pod:1631 +#, no-wrap +msgid "" +" get-smp\n" +"\n" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:1633 ../src/guestfs-actions.pod:2607 +msgid "This returns the number of virtual CPUs assigned to the appliance." +msgstr "" + +#. type: =head2 +#: ../fish/guestfish-actions.pod:1635 msgid "get-state" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1437 +#: ../fish/guestfish-actions.pod:1637 #, no-wrap msgid "" " get-state\n" @@ -7176,28 +10004,28 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1439 ../src/guestfs-actions.pod:2151 +#: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2618 msgid "" "This returns the current state as an opaque integer. This is only useful " "for printing debug and internal error messages." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1442 ../fish/guestfish-actions.pod:2362 -#: ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2418 -#: ../fish/guestfish-actions.pod:2434 ../src/guestfs-actions.pod:2154 -#: ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3463 -#: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3551 +#: ../fish/guestfish-actions.pod:1642 ../fish/guestfish-actions.pod:2605 +#: ../fish/guestfish-actions.pod:2623 ../fish/guestfish-actions.pod:2661 +#: ../fish/guestfish-actions.pod:2677 ../src/guestfs-actions.pod:2621 +#: ../src/guestfs-actions.pod:3944 ../src/guestfs-actions.pod:3973 +#: ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4061 msgid "For more information on states, see L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1444 +#: ../fish/guestfish-actions.pod:1644 msgid "get-trace" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1446 +#: ../fish/guestfish-actions.pod:1646 #, no-wrap msgid "" " get-trace\n" @@ -7205,17 +10033,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2165 +#: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2632 msgid "Return the command trace flag." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1450 +#: ../fish/guestfish-actions.pod:1650 msgid "get-umask" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1452 +#: ../fish/guestfish-actions.pod:1652 #, no-wrap msgid "" " get-umask\n" @@ -7223,19 +10051,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1454 +#: ../fish/guestfish-actions.pod:1654 msgid "" "Return the current umask. By default the umask is C<022> unless it has been " "set by calling L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1457 +#: ../fish/guestfish-actions.pod:1657 msgid "get-verbose" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1459 +#: ../fish/guestfish-actions.pod:1659 #, no-wrap msgid "" " get-verbose\n" @@ -7243,17 +10071,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2188 +#: ../fish/guestfish-actions.pod:1661 ../src/guestfs-actions.pod:2655 msgid "This returns the verbose messages flag." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1463 +#: ../fish/guestfish-actions.pod:1663 msgid "getcon" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1465 +#: ../fish/guestfish-actions.pod:1665 #, no-wrap msgid "" " getcon\n" @@ -7261,22 +10089,22 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1467 ../src/guestfs-actions.pod:2199 +#: ../fish/guestfish-actions.pod:1667 ../src/guestfs-actions.pod:2666 msgid "This gets the SELinux security context of the daemon." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1469 +#: ../fish/guestfish-actions.pod:1669 msgid "See the documentation about SELINUX in L, and L" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1472 +#: ../fish/guestfish-actions.pod:1672 msgid "getxattr" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1474 +#: ../fish/guestfish-actions.pod:1674 #, no-wrap msgid "" " getxattr path name\n" @@ -7284,7 +10112,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1476 +#: ../fish/guestfish-actions.pod:1676 msgid "" "Get a single extended attribute from file C named C. This call " "follows symlinks. If you want to lookup an extended attribute for the " @@ -7292,7 +10120,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1480 ../fish/guestfish-actions.pod:2507 +#: ../fish/guestfish-actions.pod:1680 ../fish/guestfish-actions.pod:2750 msgid "" "Normally it is better to get all extended attributes from a file in one go " "by calling L. However some Linux filesystem implementations are " @@ -7302,25 +10130,25 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1487 ../fish/guestfish-actions.pod:2514 -#: ../src/guestfs-actions.pod:2228 ../src/guestfs-actions.pod:3684 +#: ../fish/guestfish-actions.pod:1687 ../fish/guestfish-actions.pod:2757 +#: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:4194 msgid "" "Extended attribute values are blobs of binary data. If there is no extended " "attribute named C, this returns an error." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1490 +#: ../fish/guestfish-actions.pod:1690 msgid "See also: L, L, L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1492 +#: ../fish/guestfish-actions.pod:1692 msgid "getxattrs" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1494 +#: ../fish/guestfish-actions.pod:1694 #, no-wrap msgid "" " getxattrs path\n" @@ -7328,30 +10156,30 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1496 ../src/guestfs-actions.pod:2245 +#: ../fish/guestfish-actions.pod:1696 ../src/guestfs-actions.pod:2712 msgid "" "This call lists the extended attributes of the file or directory C." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2248 +#: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2715 msgid "" "At the system call level, this is a combination of the L and " "L calls." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1502 +#: ../fish/guestfish-actions.pod:1702 msgid "See also: L, L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1504 +#: ../fish/guestfish-actions.pod:1704 msgid "glob-expand" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1506 +#: ../fish/guestfish-actions.pod:1706 #, no-wrap msgid "" " glob-expand pattern\n" @@ -7359,32 +10187,32 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1508 ../src/guestfs-actions.pod:2265 +#: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2732 msgid "" "This command searches for all the pathnames matching C according to " "the wildcard expansion rules used by the shell." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2269 +#: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2736 msgid "" "If no paths match, then this returns an empty list (note: not an error)." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1515 ../src/guestfs-actions.pod:2272 +#: ../fish/guestfish-actions.pod:1715 ../src/guestfs-actions.pod:2739 msgid "" "It is just a wrapper around the C L function with flags C. See that manual page for more details." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1519 +#: ../fish/guestfish-actions.pod:1719 msgid "grep" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1521 +#: ../fish/guestfish-actions.pod:1721 #, no-wrap msgid "" " grep regex path\n" @@ -7392,17 +10220,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1523 ../src/guestfs-actions.pod:2289 +#: ../fish/guestfish-actions.pod:1723 ../src/guestfs-actions.pod:2756 msgid "This calls the external C program and returns the matching lines." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1529 +#: ../fish/guestfish-actions.pod:1729 msgid "grepi" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1531 +#: ../fish/guestfish-actions.pod:1731 #, no-wrap msgid "" " grepi regex path\n" @@ -7410,18 +10238,18 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1533 ../src/guestfs-actions.pod:2308 +#: ../fish/guestfish-actions.pod:1733 ../src/guestfs-actions.pod:2775 msgid "" "This calls the external C program and returns the matching lines." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1539 +#: ../fish/guestfish-actions.pod:1739 msgid "grub-install" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1541 +#: ../fish/guestfish-actions.pod:1741 #, no-wrap msgid "" " grub-install root device\n" @@ -7429,16 +10257,32 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1543 ../src/guestfs-actions.pod:2327 +#: ../fish/guestfish-actions.pod:1743 ../src/guestfs-actions.pod:2794 msgid "" -"This command installs GRUB (the Grand Unified Bootloader) on C, with " -"the root directory being C." +"This command installs GRUB 1 (the Grand Unified Bootloader) on C, " +"with the root directory being C." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1546 ../src/guestfs-actions.pod:2330 +#: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2803 msgid "" -"Note: If grub-install reports the error \"No suitable drive was found in the " +"There is currently no way in the API to install grub2, which is used by most " +"modern Linux guests. It is possible to run the grub2 command from the " +"guest, although see the caveats in L." +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:1759 ../src/guestfs-actions.pod:2810 +msgid "" +"This uses C from the host. Unfortunately grub is not always " +"compatible with itself, so this only works in rather narrow circumstances. " +"Careful testing with each guest version is advisable." +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2817 +msgid "" +"If grub-install reports the error \"No suitable drive was found in the " "generated device map.\" it may be that you need to create a C file first that contains the mapping between grub device names " "and Linux device names. It is usually sufficient to create a file " @@ -7446,7 +10290,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2337 +#: ../fish/guestfish-actions.pod:1773 ../src/guestfs-actions.pod:2824 #, no-wrap msgid "" " (hd0) /dev/vda\n" @@ -7454,17 +10298,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1555 ../src/guestfs-actions.pod:2339 +#: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2826 msgid "replacing C with the name of the installation device." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1557 +#: ../fish/guestfish-actions.pod:1779 msgid "head" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1559 +#: ../fish/guestfish-actions.pod:1781 #, no-wrap msgid "" " head path\n" @@ -7472,18 +10316,18 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2351 +#: ../fish/guestfish-actions.pod:1783 ../src/guestfs-actions.pod:2840 msgid "" "This command returns up to the first 10 lines of a file as a list of strings." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1567 +#: ../fish/guestfish-actions.pod:1789 msgid "head-n" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1569 +#: ../fish/guestfish-actions.pod:1791 #, no-wrap msgid "" " head-n nrlines path\n" @@ -7491,32 +10335,32 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2370 +#: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2859 msgid "" "If the parameter C is a positive number, this returns the first " "C lines of the file C." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2373 +#: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2862 msgid "" "If the parameter C is a negative number, this returns lines from " "the file C, excluding the last C lines." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:4643 -#: ../src/guestfs-actions.pod:2376 ../src/guestfs-actions.pod:6991 +#: ../fish/guestfish-actions.pod:1799 ../fish/guestfish-actions.pod:4982 +#: ../src/guestfs-actions.pod:2865 ../src/guestfs-actions.pod:7665 msgid "If the parameter C is zero, this returns an empty list." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1582 +#: ../fish/guestfish-actions.pod:1804 msgid "hexdump" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1584 +#: ../fish/guestfish-actions.pod:1806 #, no-wrap msgid "" " hexdump path\n" @@ -7524,19 +10368,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2393 +#: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2882 msgid "" "This runs C on the given C. The result is the human-" "readable, canonical hex dump of the file." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1592 +#: ../fish/guestfish-actions.pod:1814 msgid "initrd-cat" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1594 +#: ../fish/guestfish-actions.pod:1816 #, no-wrap msgid "" " initrd-cat initrdpath filename\n" @@ -7544,7 +10388,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1596 ../src/guestfs-actions.pod:2412 +#: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2901 msgid "" "This command unpacks the file C from the initrd file called " "C. The filename must be given I the initial C " @@ -7552,7 +10396,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1600 ../src/guestfs-actions.pod:2416 +#: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2905 msgid "" "For example, in guestfish you could use the following command to examine the " "boot script (usually called C) contained in a Linux initrd or " @@ -7560,7 +10404,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1604 ../src/guestfs-actions.pod:2420 +#: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2909 #, no-wrap msgid "" " initrd-cat /boot/initrd-.img init\n" @@ -7568,17 +10412,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1606 +#: ../fish/guestfish-actions.pod:1828 msgid "See also L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1611 +#: ../fish/guestfish-actions.pod:1833 msgid "initrd-list" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1613 +#: ../fish/guestfish-actions.pod:1835 #, no-wrap msgid "" " initrd-list path\n" @@ -7586,12 +10430,12 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1615 ../src/guestfs-actions.pod:2439 +#: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2928 msgid "This command lists out files contained in an initrd." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2441 +#: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2930 msgid "" "The files are listed without any initial C character. The files are " "listed in the order they appear (not necessarily alphabetical). Directory " @@ -7599,7 +10443,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2445 +#: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2934 msgid "" "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as " "initrd. We I support the newer initramfs format (compressed cpio " @@ -7607,12 +10451,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1625 +#: ../fish/guestfish-actions.pod:1847 msgid "inotify-add-watch" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1627 +#: ../fish/guestfish-actions.pod:1849 #, no-wrap msgid "" " inotify-add-watch path mask\n" @@ -7620,31 +10464,31 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2462 +#: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2951 msgid "Watch C for the events listed in C." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2464 +#: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2953 msgid "" "Note that if C is a directory then events within that directory are " "watched, but this does I happen recursively (in subdirectories)." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1635 ../src/guestfs-actions.pod:2468 +#: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2957 msgid "" "Note for non-C or non-Linux callers: the inotify events are defined by the " "Linux kernel ABI and are listed in C." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1639 +#: ../fish/guestfish-actions.pod:1861 msgid "inotify-close" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1641 +#: ../fish/guestfish-actions.pod:1863 #, no-wrap msgid "" " inotify-close\n" @@ -7652,7 +10496,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1643 ../src/guestfs-actions.pod:2481 +#: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2970 msgid "" "This closes the inotify handle which was previously opened by inotify_init. " "It removes all watches, throws away any pending events, and deallocates all " @@ -7660,12 +10504,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1647 +#: ../fish/guestfish-actions.pod:1869 msgid "inotify-files" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1649 +#: ../fish/guestfish-actions.pod:1871 #, no-wrap msgid "" " inotify-files\n" @@ -7673,7 +10517,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1651 +#: ../fish/guestfish-actions.pod:1873 msgid "" "This function is a helpful wrapper around L which just " "returns a list of pathnames of objects that were touched. The returned " @@ -7681,12 +10525,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1655 +#: ../fish/guestfish-actions.pod:1877 msgid "inotify-init" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1657 +#: ../fish/guestfish-actions.pod:1879 #, no-wrap msgid "" " inotify-init maxevents\n" @@ -7694,14 +10538,14 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2510 +#: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2999 msgid "" "This command creates a new inotify handle. The inotify subsystem can be " "used to notify events which happen to objects in the guest filesystem." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1663 +#: ../fish/guestfish-actions.pod:1885 msgid "" "C is the maximum number of events which will be queued up between " "calls to L or L. If this is passed as C<0>, " @@ -7712,7 +10556,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1673 +#: ../fish/guestfish-actions.pod:1895 msgid "" "Before any events are generated, you have to add some watches to the " "internal watch list. See: L, L and " @@ -7720,7 +10564,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1679 +#: ../fish/guestfish-actions.pod:1901 msgid "" "Queued up events should be read periodically by calling L (or " "L which is just a helpful wrapper around L). " @@ -7729,14 +10573,14 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1686 +#: ../fish/guestfish-actions.pod:1908 msgid "" "The handle should be closed after use by calling L. This " "also removes any watches automatically." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2541 +#: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:3030 msgid "" "See also L for an overview of the inotify interface as exposed " "by the Linux kernel, which is roughly what we expose via libguestfs. Note " @@ -7744,12 +10588,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1695 +#: ../fish/guestfish-actions.pod:1917 msgid "inotify-read" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1697 +#: ../fish/guestfish-actions.pod:1919 #, no-wrap msgid "" " inotify-read\n" @@ -7757,19 +10601,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2555 +#: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:3044 msgid "" "Return the complete queue of events that have happened since the previous " "read call." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2558 +#: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:3047 msgid "If no events have happened, this returns an empty list." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560 +#: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:3049 msgid "" "I: In order to make sure that all events have been read, you must call " "this function repeatedly until it returns an empty list. The reason is that " @@ -7778,12 +10622,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1710 +#: ../fish/guestfish-actions.pod:1932 msgid "inotify-rm-watch" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1712 +#: ../fish/guestfish-actions.pod:1934 #, no-wrap msgid "" " inotify-rm-watch wd\n" @@ -7791,17 +10635,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1714 +#: ../fish/guestfish-actions.pod:1936 msgid "Remove a previously defined inotify watch. See L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1717 +#: ../fish/guestfish-actions.pod:1939 msgid "inspect-get-arch" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1719 +#: ../fish/guestfish-actions.pod:1941 #, no-wrap msgid "" " inspect-get-arch root\n" @@ -7809,47 +10653,47 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1721 +#: ../fish/guestfish-actions.pod:1943 msgid "" "This returns the architecture of the inspected operating system. The " "possible return values are listed under L." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1725 ../src/guestfs-actions.pod:2595 +#: ../fish/guestfish-actions.pod:1947 ../src/guestfs-actions.pod:3084 msgid "" "If the architecture could not be determined, then the string C is " "returned." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1811 -#: ../fish/guestfish-actions.pod:1890 ../fish/guestfish-actions.pod:1902 -#: ../fish/guestfish-actions.pod:1986 ../fish/guestfish-actions.pod:2047 -#: ../fish/guestfish-actions.pod:2068 ../fish/guestfish-actions.pod:2082 -#: ../fish/guestfish-actions.pod:2122 ../fish/guestfish-actions.pod:2154 -#: ../fish/guestfish-actions.pod:2167 ../fish/guestfish-actions.pod:2180 -#: ../fish/guestfish-actions.pod:2190 ../fish/guestfish-actions.pod:2200 -#: ../fish/guestfish-actions.pod:2212 ../fish/guestfish-actions.pod:2308 -#: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:2598 -#: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:2792 -#: ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:2942 -#: ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:3053 -#: ../src/guestfs-actions.pod:3074 ../src/guestfs-actions.pod:3127 -#: ../src/guestfs-actions.pod:3167 ../src/guestfs-actions.pod:3187 -#: ../src/guestfs-actions.pod:3207 ../src/guestfs-actions.pod:3224 -#: ../src/guestfs-actions.pod:3240 ../src/guestfs-actions.pod:3258 -#: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3401 +#: ../fish/guestfish-actions.pod:1950 ../fish/guestfish-actions.pod:2045 +#: ../fish/guestfish-actions.pod:2124 ../fish/guestfish-actions.pod:2136 +#: ../fish/guestfish-actions.pod:2220 ../fish/guestfish-actions.pod:2282 +#: ../fish/guestfish-actions.pod:2303 ../fish/guestfish-actions.pod:2317 +#: ../fish/guestfish-actions.pod:2357 ../fish/guestfish-actions.pod:2397 +#: ../fish/guestfish-actions.pod:2410 ../fish/guestfish-actions.pod:2423 +#: ../fish/guestfish-actions.pod:2433 ../fish/guestfish-actions.pod:2443 +#: ../fish/guestfish-actions.pod:2455 ../fish/guestfish-actions.pod:2551 +#: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3087 +#: ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3293 +#: ../src/guestfs-actions.pod:3312 ../src/guestfs-actions.pod:3443 +#: ../src/guestfs-actions.pod:3527 ../src/guestfs-actions.pod:3555 +#: ../src/guestfs-actions.pod:3576 ../src/guestfs-actions.pod:3629 +#: ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3697 +#: ../src/guestfs-actions.pod:3717 ../src/guestfs-actions.pod:3734 +#: ../src/guestfs-actions.pod:3750 ../src/guestfs-actions.pod:3768 +#: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:3911 msgid "Please read L for more details." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1730 +#: ../fish/guestfish-actions.pod:1952 msgid "inspect-get-distro" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1732 +#: ../fish/guestfish-actions.pod:1954 #, no-wrap msgid "" " inspect-get-distro root\n" @@ -7857,197 +10701,227 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1734 ../src/guestfs-actions.pod:2611 +#: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3100 msgid "" "This returns the distro (distribution) of the inspected operating system." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1737 ../src/guestfs-actions.pod:2614 +#: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:3103 msgid "Currently defined distros are:" msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1741 ../src/guestfs-actions.pod:2618 +#: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:3107 msgid "\"archlinux\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1743 ../src/guestfs-actions.pod:2620 +#: ../fish/guestfish-actions.pod:1965 ../src/guestfs-actions.pod:3109 msgid "Arch Linux." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1745 ../src/guestfs-actions.pod:2622 +#: ../fish/guestfish-actions.pod:1967 ../src/guestfs-actions.pod:3111 msgid "\"centos\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1747 ../src/guestfs-actions.pod:2624 +#: ../fish/guestfish-actions.pod:1969 ../src/guestfs-actions.pod:3113 msgid "CentOS." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1749 ../src/guestfs-actions.pod:2626 +#: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:3115 msgid "\"debian\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1751 ../src/guestfs-actions.pod:2628 +#: ../fish/guestfish-actions.pod:1973 ../src/guestfs-actions.pod:3117 msgid "Debian." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1753 ../src/guestfs-actions.pod:2630 +#: ../fish/guestfish-actions.pod:1975 ../src/guestfs-actions.pod:3119 msgid "\"fedora\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1755 ../src/guestfs-actions.pod:2632 +#: ../fish/guestfish-actions.pod:1977 ../src/guestfs-actions.pod:3121 msgid "Fedora." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1757 ../src/guestfs-actions.pod:2634 +#: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:3123 msgid "\"gentoo\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1759 ../src/guestfs-actions.pod:2636 +#: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:3125 msgid "Gentoo." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638 +#: ../fish/guestfish-actions.pod:1983 ../src/guestfs-actions.pod:3127 msgid "\"linuxmint\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2640 +#: ../fish/guestfish-actions.pod:1985 ../src/guestfs-actions.pod:3129 msgid "Linux Mint." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2642 +#: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:3131 +msgid "\"mageia\"" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:1989 ../src/guestfs-actions.pod:3133 +msgid "Mageia." +msgstr "" + +#. type: =item +#: ../fish/guestfish-actions.pod:1991 ../src/guestfs-actions.pod:3135 msgid "\"mandriva\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2644 +#: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3137 msgid "Mandriva." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1769 ../src/guestfs-actions.pod:2646 +#: ../fish/guestfish-actions.pod:1995 ../src/guestfs-actions.pod:3139 msgid "\"meego\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1771 ../src/guestfs-actions.pod:2648 +#: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3141 msgid "MeeGo." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1773 ../src/guestfs-actions.pod:2650 +#: ../fish/guestfish-actions.pod:1999 ../src/guestfs-actions.pod:3143 +msgid "\"opensuse\"" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:3145 +msgid "OpenSUSE." +msgstr "" + +#. type: =item +#: ../fish/guestfish-actions.pod:2003 ../src/guestfs-actions.pod:3147 msgid "\"pardus\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2652 +#: ../fish/guestfish-actions.pod:2005 ../src/guestfs-actions.pod:3149 msgid "Pardus." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2654 +#: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3151 msgid "\"redhat-based\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1779 ../src/guestfs-actions.pod:2656 +#: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3153 msgid "Some Red Hat-derived distro." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1781 ../src/guestfs-actions.pod:2658 +#: ../fish/guestfish-actions.pod:2011 ../src/guestfs-actions.pod:3155 msgid "\"rhel\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1783 ../src/guestfs-actions.pod:2660 +#: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3157 msgid "Red Hat Enterprise Linux." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1785 ../src/guestfs-actions.pod:2662 +#: ../fish/guestfish-actions.pod:2015 ../src/guestfs-actions.pod:3159 msgid "\"scientificlinux\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2664 +#: ../fish/guestfish-actions.pod:2017 ../src/guestfs-actions.pod:3161 msgid "Scientific Linux." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1789 ../src/guestfs-actions.pod:2666 +#: ../fish/guestfish-actions.pod:2019 ../src/guestfs-actions.pod:3163 msgid "\"slackware\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2668 +#: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3165 msgid "Slackware." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2670 +#: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:3167 +msgid "\"ttylinux\"" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:2025 ../src/guestfs-actions.pod:3169 +msgid "ttylinux." +msgstr "" + +#. type: =item +#: ../fish/guestfish-actions.pod:2027 ../src/guestfs-actions.pod:3171 msgid "\"ubuntu\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2672 +#: ../fish/guestfish-actions.pod:2029 ../src/guestfs-actions.pod:3173 msgid "Ubuntu." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1797 ../fish/guestfish-actions.pod:1881 -#: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:2674 -#: ../src/guestfs-actions.pod:2783 ../src/guestfs-actions.pod:3158 +#: ../fish/guestfish-actions.pod:2031 ../fish/guestfish-actions.pod:2115 +#: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3175 +#: ../src/guestfs-actions.pod:3284 ../src/guestfs-actions.pod:3668 msgid "\"unknown\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1799 ../src/guestfs-actions.pod:2676 +#: ../fish/guestfish-actions.pod:2033 ../src/guestfs-actions.pod:3177 msgid "The distro could not be determined." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:2137 -#: ../src/guestfs-actions.pod:2678 ../src/guestfs-actions.pod:3150 +#: ../fish/guestfish-actions.pod:2035 ../fish/guestfish-actions.pod:2372 +#: ../src/guestfs-actions.pod:3179 ../src/guestfs-actions.pod:3652 msgid "\"windows\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1803 ../src/guestfs-actions.pod:2680 +#: ../fish/guestfish-actions.pod:2037 ../src/guestfs-actions.pod:3181 msgid "" "Windows does not have distributions. This string is returned if the OS type " "is Windows." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1808 ../fish/guestfish-actions.pod:1887 -#: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:2685 -#: ../src/guestfs-actions.pod:2789 ../src/guestfs-actions.pod:3164 +#: ../fish/guestfish-actions.pod:2042 ../fish/guestfish-actions.pod:2121 +#: ../fish/guestfish-actions.pod:2394 ../src/guestfs-actions.pod:3186 +#: ../src/guestfs-actions.pod:3290 ../src/guestfs-actions.pod:3674 msgid "" "Future versions of libguestfs may return other strings here. The caller " "should be prepared to handle any string." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1813 +#: ../fish/guestfish-actions.pod:2047 msgid "inspect-get-drive-mappings" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1815 +#: ../fish/guestfish-actions.pod:2049 #, no-wrap msgid "" " inspect-get-drive-mappings root\n" @@ -8055,7 +10929,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2701 +#: ../fish/guestfish-actions.pod:2051 ../src/guestfs-actions.pod:3202 msgid "" "This call is useful for Windows which uses a primitive system of assigning " "drive letters (like \"C:\") to partitions. This inspection API examines the " @@ -8064,7 +10938,7 @@ msgid "" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2707 +#: ../fish/guestfish-actions.pod:2057 ../src/guestfs-actions.pod:3208 #, no-wrap msgid "" " C => /dev/vda2\n" @@ -8074,7 +10948,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2711 +#: ../fish/guestfish-actions.pod:2061 ../src/guestfs-actions.pod:3212 msgid "" "Note that keys are drive letters. For Windows, the key is case insensitive " "and just contains the drive letter, without the customary colon separator " @@ -8082,7 +10956,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2715 +#: ../fish/guestfish-actions.pod:2065 ../src/guestfs-actions.pod:3216 msgid "" "In future we may support other operating systems that also used drive " "letters, but the keys for those might not be case insensitive and might be " @@ -8091,33 +10965,33 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720 +#: ../fish/guestfish-actions.pod:2070 ../src/guestfs-actions.pod:3221 msgid "" "For Windows guests, currently only hard drive mappings are returned. " "Removable disks (eg. DVD-ROMs) are ignored." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2723 +#: ../fish/guestfish-actions.pod:2073 ../src/guestfs-actions.pod:3224 msgid "" "For guests that do not use drive mappings, or if the drive mappings could " "not be determined, this returns an empty hash table." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1842 +#: ../fish/guestfish-actions.pod:2076 msgid "" "Please read L for more details. See also L, L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1846 +#: ../fish/guestfish-actions.pod:2080 msgid "inspect-get-filesystems" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1848 +#: ../fish/guestfish-actions.pod:2082 #, no-wrap msgid "" " inspect-get-filesystems root\n" @@ -8125,7 +10999,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2744 +#: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3245 msgid "" "This returns a list of all the filesystems that we think are associated with " "this operating system. This includes the root filesystem, other ordinary " @@ -8133,26 +11007,26 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749 +#: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3250 msgid "" "In the case of a multi-boot virtual machine, it is possible for a filesystem " "to be shared between operating systems." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1858 +#: ../fish/guestfish-actions.pod:2092 msgid "" "Please read L for more details. See also L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1861 +#: ../fish/guestfish-actions.pod:2095 msgid "inspect-get-format" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1863 +#: ../fish/guestfish-actions.pod:2097 #, no-wrap msgid "" " inspect-get-format root\n" @@ -8160,51 +11034,51 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2767 +#: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3268 msgid "" "This returns the format of the inspected operating system. You can use it " "to detect install images, live CDs and similar." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2770 +#: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3271 msgid "Currently defined formats are:" msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2774 +#: ../fish/guestfish-actions.pod:2106 ../src/guestfs-actions.pod:3275 msgid "\"installed\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2776 +#: ../fish/guestfish-actions.pod:2108 ../src/guestfs-actions.pod:3277 msgid "This is an installed operating system." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2778 +#: ../fish/guestfish-actions.pod:2110 ../src/guestfs-actions.pod:3279 msgid "\"installer\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2780 +#: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3281 msgid "" "The disk image being inspected is not an installed operating system, but a " "I install disk, live CD, or similar." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785 +#: ../fish/guestfish-actions.pod:2117 ../src/guestfs-actions.pod:3286 msgid "The format of this disk image is not known." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1892 +#: ../fish/guestfish-actions.pod:2126 msgid "inspect-get-hostname" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1894 +#: ../fish/guestfish-actions.pod:2128 #, no-wrap msgid "" " inspect-get-hostname root\n" @@ -8212,34 +11086,34 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1896 ../src/guestfs-actions.pod:2805 +#: ../fish/guestfish-actions.pod:2130 ../src/guestfs-actions.pod:3306 msgid "" "This function returns the hostname of the operating system as found by " "inspection of the guest's configuration files." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2808 +#: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3309 msgid "" "If the hostname could not be determined, then the string C is " "returned." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1904 +#: ../fish/guestfish-actions.pod:2138 msgid "inspect-get-icon" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1906 +#: ../fish/guestfish-actions.pod:2140 #, no-wrap msgid "" -" inspect-get-icon root [favicon:..] [highquality:..]\n" +" inspect-get-icon root [favicon:true|false] [highquality:true|false]\n" "\n" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2834 +#: ../fish/guestfish-actions.pod:2142 ../src/guestfs-actions.pod:3335 msgid "" "This function returns an icon corresponding to the inspected operating " "system. The icon is returned as a buffer containing a PNG image (re-encoded " @@ -8247,14 +11121,14 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2838 +#: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3339 msgid "" "If it was not possible to get an icon this function returns a zero-length " "(non-NULL) buffer. I." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1915 ../src/guestfs-actions.pod:2841 +#: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3342 msgid "" "Libguestfs will start by looking for a file called C or " "C and if it has the correct format, the contents of " @@ -8263,14 +11137,14 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2847 +#: ../fish/guestfish-actions.pod:2155 ../src/guestfs-actions.pod:3348 msgid "" "If finding the favicon fails, then we look in other places in the guest for " "a suitable icon." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2850 +#: ../fish/guestfish-actions.pod:2158 ../src/guestfs-actions.pod:3351 msgid "" "If the optional C boolean is true then only high quality icons " "are returned, which means only icons of high resolution with an alpha " @@ -8279,7 +11153,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2861 +#: ../fish/guestfish-actions.pod:2169 ../src/guestfs-actions.pod:3362 msgid "" "Unlike most other inspection API calls, the guest's disks must be mounted up " "before you call this, since it needs to read information from the guest " @@ -8287,7 +11161,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1941 ../src/guestfs-actions.pod:2867 +#: ../fish/guestfish-actions.pod:2175 ../src/guestfs-actions.pod:3368 msgid "" "B The icon data comes from the untrusted guest, and should be " "treated with caution. PNG files have been known to contain exploits. " @@ -8296,7 +11170,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1949 ../src/guestfs-actions.pod:2875 +#: ../fish/guestfish-actions.pod:2183 ../src/guestfs-actions.pod:3376 msgid "" "The PNG image returned can be any size. It might not be square. Libguestfs " "tries to return the largest, highest quality icon available. The " @@ -8304,7 +11178,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:2882 +#: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3383 msgid "" "Extracting icons from Windows guests requires the external C " "program from the C package, and several programs (C, " @@ -8313,19 +11187,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2889 +#: ../fish/guestfish-actions.pod:2197 ../src/guestfs-actions.pod:3390 msgid "" "Operating system icons are usually trademarks. Seek legal advice before " "using trademarks in applications." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1970 +#: ../fish/guestfish-actions.pod:2204 msgid "inspect-get-major-version" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1972 +#: ../fish/guestfish-actions.pod:2206 #, no-wrap msgid "" " inspect-get-major-version root\n" @@ -8333,13 +11207,13 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:2930 +#: ../fish/guestfish-actions.pod:2208 ../src/guestfs-actions.pod:3431 msgid "" "This returns the major version number of the inspected operating system." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1977 ../src/guestfs-actions.pod:2933 +#: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3434 msgid "" "Windows uses a consistent versioning scheme which is I reflected in the " "popular public names used by the operating system. Notably the operating " @@ -8349,18 +11223,18 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1984 ../fish/guestfish-actions.pod:1995 -#: ../src/guestfs-actions.pod:2940 ../src/guestfs-actions.pod:2957 +#: ../fish/guestfish-actions.pod:2218 ../fish/guestfish-actions.pod:2229 +#: ../src/guestfs-actions.pod:3441 ../src/guestfs-actions.pod:3458 msgid "If the version could not be determined, then C<0> is returned." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:1988 +#: ../fish/guestfish-actions.pod:2222 msgid "inspect-get-minor-version" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:1990 +#: ../fish/guestfish-actions.pod:2224 #, no-wrap msgid "" " inspect-get-minor-version root\n" @@ -8368,25 +11242,25 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:2954 +#: ../fish/guestfish-actions.pod:2226 ../src/guestfs-actions.pod:3455 msgid "" "This returns the minor version number of the inspected operating system." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:1997 +#: ../fish/guestfish-actions.pod:2231 msgid "" "Please read L for more details. See also L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2000 +#: ../fish/guestfish-actions.pod:2234 msgid "inspect-get-mountpoints" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2002 +#: ../fish/guestfish-actions.pod:2236 #, no-wrap msgid "" " inspect-get-mountpoints root\n" @@ -8394,7 +11268,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:2972 +#: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3473 msgid "" "This returns a hash of where we think the filesystems associated with this " "operating system should be mounted. Callers should note that this is at " @@ -8405,7 +11279,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:2981 +#: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3482 msgid "" "Each element in the returned hashtable has a key which is the path of the " "mountpoint (eg. C) and a value which is the filesystem that would be " @@ -8413,13 +11287,13 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986 +#: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3487 msgid "" "Non-mounted devices such as swap devices are I returned in this list." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2021 +#: ../fish/guestfish-actions.pod:2255 msgid "" "For operating systems like Windows which still use drive letters, this call " "will only return an entry for the first drive \"mounted on\" C. For " @@ -8428,19 +11302,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2027 +#: ../fish/guestfish-actions.pod:2261 msgid "" "Please read L for more details. See also L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2030 +#: ../fish/guestfish-actions.pod:2264 msgid "inspect-get-package-format" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2032 +#: ../fish/guestfish-actions.pod:2266 #, no-wrap msgid "" " inspect-get-package-format root\n" @@ -8448,7 +11322,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2034 +#: ../fish/guestfish-actions.pod:2268 msgid "" "This function and L return the package " "format and package management tool used by the inspected operating system. " @@ -8457,7 +11331,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3018 +#: ../fish/guestfish-actions.pod:2274 ../src/guestfs-actions.pod:3519 msgid "" "This returns the string C if we could not determine the package " "format I if the operating system does not have a real packaging system " @@ -8465,19 +11339,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2044 ../src/guestfs-actions.pod:3022 +#: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3523 msgid "" -"Possible strings include: C, C, C, C, C. " -"Future versions of libguestfs may return other strings." +"Possible strings include: C, C, C, C, C, " +"C. Future versions of libguestfs may return other strings." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2049 +#: ../fish/guestfish-actions.pod:2284 msgid "inspect-get-package-management" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2051 +#: ../fish/guestfish-actions.pod:2286 #, no-wrap msgid "" " inspect-get-package-management root\n" @@ -8485,7 +11359,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2053 +#: ../fish/guestfish-actions.pod:2288 msgid "" "L and this function return the package format " "and package management tool used by the inspected operating system. For " @@ -8494,7 +11368,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3044 +#: ../fish/guestfish-actions.pod:2294 ../src/guestfs-actions.pod:3546 msgid "" "This returns the string C if we could not determine the package " "management tool I if the operating system does not have a real packaging " @@ -8502,20 +11376,20 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2063 ../src/guestfs-actions.pod:3048 +#: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3550 msgid "" "Possible strings include: C, C, C (for all Debian " -"derivatives), C, C, C, C. Future versions of " -"libguestfs may return other strings." +"derivatives), C, C, C, C, C. Future " +"versions of libguestfs may return other strings." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2070 +#: ../fish/guestfish-actions.pod:2305 msgid "inspect-get-product-name" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2072 +#: ../fish/guestfish-actions.pod:2307 #, no-wrap msgid "" " inspect-get-product-name root\n" @@ -8523,7 +11397,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2074 ../src/guestfs-actions.pod:3066 +#: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3568 msgid "" "This returns the product name of the inspected operating system. The " "product name is generally some freeform string which can be displayed to the " @@ -8531,19 +11405,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071 +#: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3573 msgid "" "If the product name could not be determined, then the string C is " "returned." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2084 +#: ../fish/guestfish-actions.pod:2319 msgid "inspect-get-product-variant" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2086 +#: ../fish/guestfish-actions.pod:2321 #, no-wrap msgid "" " inspect-get-product-variant root\n" @@ -8551,12 +11425,12 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2088 ../src/guestfs-actions.pod:3087 +#: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3589 msgid "This returns the product variant of the inspected operating system." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2091 ../src/guestfs-actions.pod:3090 +#: ../fish/guestfish-actions.pod:2326 ../src/guestfs-actions.pod:3592 msgid "" "For Windows guests, this returns the contents of the Registry key C C which " @@ -8568,7 +11442,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2100 ../src/guestfs-actions.pod:3099 +#: ../fish/guestfish-actions.pod:2335 ../src/guestfs-actions.pod:3601 msgid "" "For enterprise Linux guests, in future we intend this to return the product " "variant such as C, C and so on. But this is not " @@ -8576,26 +11450,26 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2104 ../src/guestfs-actions.pod:3103 +#: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3605 msgid "" "If the product variant could not be determined, then the string C " "is returned." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2107 +#: ../fish/guestfish-actions.pod:2342 msgid "" "Please read L for more details. See also L, L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2111 +#: ../fish/guestfish-actions.pod:2346 msgid "inspect-get-roots" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2113 +#: ../fish/guestfish-actions.pod:2348 #, no-wrap msgid "" " inspect-get-roots\n" @@ -8603,7 +11477,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2115 +#: ../fish/guestfish-actions.pod:2350 msgid "" "This function is a convenient way to get the list of root devices, as " "returned from a previous call to L, but without redoing the " @@ -8611,19 +11485,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2119 +#: ../fish/guestfish-actions.pod:2354 msgid "" "This returns an empty list if either no root devices were found or the " "caller has not called L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2124 +#: ../fish/guestfish-actions.pod:2359 msgid "inspect-get-type" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2126 +#: ../fish/guestfish-actions.pod:2361 #, no-wrap msgid "" " inspect-get-type root\n" @@ -8631,49 +11505,69 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2128 ../src/guestfs-actions.pod:3141 +#: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3643 msgid "" "This returns the type of the inspected operating system. Currently defined " "types are:" msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146 +#: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3648 msgid "\"linux\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3148 +#: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3650 msgid "Any Linux-based operating system." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2139 ../src/guestfs-actions.pod:3152 +#: ../fish/guestfish-actions.pod:2374 ../src/guestfs-actions.pod:3654 msgid "Any Microsoft Windows operating system." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:2141 ../src/guestfs-actions.pod:3154 +#: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3656 msgid "\"freebsd\"" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2143 ../src/guestfs-actions.pod:3156 +#: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3658 msgid "FreeBSD." msgstr "" +#. type: =item +#: ../fish/guestfish-actions.pod:2380 ../src/guestfs-actions.pod:3660 +msgid "\"netbsd\"" +msgstr "" + #. type: textblock -#: ../fish/guestfish-actions.pod:2147 ../src/guestfs-actions.pod:3160 +#: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3662 +msgid "NetBSD." +msgstr "" + +#. type: =item +#: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3664 +msgid "\"hurd\"" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3666 +msgid "GNU/Hurd." +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3670 msgid "The operating system type could not be determined." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2156 +#: ../fish/guestfish-actions.pod:2399 msgid "inspect-get-windows-current-control-set" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2158 +#: ../fish/guestfish-actions.pod:2401 #, no-wrap msgid "" " inspect-get-windows-current-control-set root\n" @@ -8681,26 +11575,26 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3180 +#: ../fish/guestfish-actions.pod:2403 ../src/guestfs-actions.pod:3690 msgid "" "This returns the Windows CurrentControlSet of the inspected guest. The " "CurrentControlSet is a registry key name such as C." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3183 +#: ../fish/guestfish-actions.pod:2406 ../src/guestfs-actions.pod:3693 msgid "" "This call assumes that the guest is Windows and that the Registry could be " "examined by inspection. If this is not the case then an error is returned." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2169 +#: ../fish/guestfish-actions.pod:2412 msgid "inspect-get-windows-systemroot" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2171 +#: ../fish/guestfish-actions.pod:2414 #, no-wrap msgid "" " inspect-get-windows-systemroot root\n" @@ -8708,26 +11602,26 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2173 ../src/guestfs-actions.pod:3200 +#: ../fish/guestfish-actions.pod:2416 ../src/guestfs-actions.pod:3710 msgid "" "This returns the Windows systemroot of the inspected guest. The systemroot " "is a directory path such as C." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3203 +#: ../fish/guestfish-actions.pod:2419 ../src/guestfs-actions.pod:3713 msgid "" "This call assumes that the guest is Windows and that the systemroot could be " "determined by inspection. If this is not the case then an error is returned." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2182 +#: ../fish/guestfish-actions.pod:2425 msgid "inspect-is-live" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2184 +#: ../fish/guestfish-actions.pod:2427 #, no-wrap msgid "" " inspect-is-live root\n" @@ -8735,19 +11629,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2186 +#: ../fish/guestfish-actions.pod:2429 msgid "" "If L returns C (this is an install disk), " "then this returns true if a live image was detected on the disk." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2192 +#: ../fish/guestfish-actions.pod:2435 msgid "inspect-is-multipart" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2194 +#: ../fish/guestfish-actions.pod:2437 #, no-wrap msgid "" " inspect-is-multipart root\n" @@ -8755,19 +11649,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2196 +#: ../fish/guestfish-actions.pod:2439 msgid "" "If L returns C (this is an install disk), " "then this returns true if the disk is part of a set." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2202 +#: ../fish/guestfish-actions.pod:2445 msgid "inspect-is-netinst" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2204 +#: ../fish/guestfish-actions.pod:2447 #, no-wrap msgid "" " inspect-is-netinst root\n" @@ -8775,7 +11669,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2206 +#: ../fish/guestfish-actions.pod:2449 msgid "" "If L returns C (this is an install disk), " "then this returns true if the disk is a network installer, ie. not a self-" @@ -8784,12 +11678,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2214 +#: ../fish/guestfish-actions.pod:2457 msgid "inspect-list-applications" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2216 +#: ../fish/guestfish-actions.pod:2459 #, no-wrap msgid "" " inspect-list-applications root\n" @@ -8797,12 +11691,12 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2218 ../src/guestfs-actions.pod:3270 +#: ../fish/guestfish-actions.pod:2461 ../src/guestfs-actions.pod:3780 msgid "Return the list of applications installed in the operating system." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2220 +#: ../fish/guestfish-actions.pod:2463 msgid "" "I This call works differently from other parts of the inspection " "API. You have to call L, then L, " @@ -8814,91 +11708,91 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2230 ../src/guestfs-actions.pod:3282 +#: ../fish/guestfish-actions.pod:2473 ../src/guestfs-actions.pod:3792 msgid "" "This returns an empty list if the inspection code was not able to determine " "the list of applications." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3285 +#: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3795 msgid "The application structure contains the following fields:" msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3289 +#: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3799 msgid "C" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2239 ../src/guestfs-actions.pod:3291 +#: ../fish/guestfish-actions.pod:2482 ../src/guestfs-actions.pod:3801 msgid "" "The name of the application. For Red Hat-derived and Debian-derived Linux " "guests, this is the package name." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294 +#: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3804 msgid "C" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296 +#: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3806 msgid "" "The display name of the application, sometimes localized to the install " "language of the guest operating system." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299 +#: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3809 msgid "" "If unavailable this is returned as an empty string C<\"\">. Callers needing " "to display something can use C instead." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3302 +#: ../fish/guestfish-actions.pod:2493 ../src/guestfs-actions.pod:3812 msgid "C" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304 +#: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3814 msgid "" "For package managers which use epochs, this contains the epoch of the " "package (an integer). If unavailable, this is returned as C<0>." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307 +#: ../fish/guestfish-actions.pod:2498 ../src/guestfs-actions.pod:3817 msgid "C" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309 +#: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3819 msgid "" "The version string of the application or package. If unavailable this is " "returned as an empty string C<\"\">." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312 +#: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3822 msgid "C" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314 +#: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3824 msgid "" "The release string of the application or package, for package managers that " "use this. If unavailable this is returned as an empty string C<\"\">." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3318 +#: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3828 msgid "C" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2268 ../src/guestfs-actions.pod:3320 +#: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3830 msgid "" "The installation path of the application (on operating systems such as " "Windows which use installation paths). This path is in the format used by " @@ -8906,89 +11800,89 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325 +#: ../fish/guestfish-actions.pod:2516 ../src/guestfs-actions.pod:3835 msgid "If unavailable this is returned as an empty string C<\"\">." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:2275 ../src/guestfs-actions.pod:3327 +#: ../fish/guestfish-actions.pod:2518 ../src/guestfs-actions.pod:3837 msgid "C" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2277 ../src/guestfs-actions.pod:3329 +#: ../fish/guestfish-actions.pod:2520 ../src/guestfs-actions.pod:3839 msgid "" "The install path translated into a libguestfs path. If unavailable this is " "returned as an empty string C<\"\">." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332 +#: ../fish/guestfish-actions.pod:2523 ../src/guestfs-actions.pod:3842 msgid "C" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334 +#: ../fish/guestfish-actions.pod:2525 ../src/guestfs-actions.pod:3844 msgid "" "The name of the publisher of the application, for package managers that use " "this. If unavailable this is returned as an empty string C<\"\">." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:2286 ../src/guestfs-actions.pod:3338 +#: ../fish/guestfish-actions.pod:2529 ../src/guestfs-actions.pod:3848 msgid "C" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2288 ../src/guestfs-actions.pod:3340 +#: ../fish/guestfish-actions.pod:2531 ../src/guestfs-actions.pod:3850 msgid "" "The URL (eg. upstream URL) of the application. If unavailable this is " "returned as an empty string C<\"\">." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343 +#: ../fish/guestfish-actions.pod:2534 ../src/guestfs-actions.pod:3853 msgid "C" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345 +#: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3855 msgid "" "For packaging systems which support this, the name of the source package. " "If unavailable this is returned as an empty string C<\"\">." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348 +#: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3858 msgid "C" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350 +#: ../fish/guestfish-actions.pod:2541 ../src/guestfs-actions.pod:3860 msgid "" "A short (usually one line) description of the application or package. If " "unavailable this is returned as an empty string C<\"\">." msgstr "" #. type: =item -#: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353 +#: ../fish/guestfish-actions.pod:2544 ../src/guestfs-actions.pod:3863 msgid "C" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355 +#: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3865 msgid "" "A longer description of the application or package. If unavailable this is " "returned as an empty string C<\"\">." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2310 +#: ../fish/guestfish-actions.pod:2553 msgid "inspect-os" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2312 +#: ../fish/guestfish-actions.pod:2555 #, no-wrap msgid "" " inspect-os\n" @@ -8996,7 +11890,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3373 +#: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3883 msgid "" "This function uses other libguestfs functions and certain heuristics to " "inspect the disk(s) (usually disks belonging to a virtual machine), looking " @@ -9004,12 +11898,12 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3377 +#: ../fish/guestfish-actions.pod:2561 ../src/guestfs-actions.pod:3887 msgid "The list returned is empty if no operating systems were found." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3379 +#: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3889 msgid "" "If one operating system was found, then this returns a list with a single " "element, which is the name of the root filesystem of this operating system. " @@ -9019,7 +11913,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2327 +#: ../fish/guestfish-actions.pod:2570 msgid "" "You can pass the root string(s) returned to other L " "functions in order to query further information about each operating system, " @@ -9027,7 +11921,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2332 +#: ../fish/guestfish-actions.pod:2575 msgid "" "This function uses other libguestfs features such as L and L in order to mount and unmount filesystems and look at the " @@ -9036,25 +11930,25 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3397 +#: ../fish/guestfish-actions.pod:2581 ../src/guestfs-actions.pod:3907 msgid "" "This function cannot decrypt encrypted disks. The caller must do that first " "(supplying the necessary keys) if the disk is encrypted." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2344 ../fish/guestfish-actions.pod:2542 -#: ../fish/guestfish-actions.pod:2601 +#: ../fish/guestfish-actions.pod:2587 ../fish/guestfish-actions.pod:2785 +#: ../fish/guestfish-actions.pod:2850 msgid "See also L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2346 +#: ../fish/guestfish-actions.pod:2589 msgid "is-blockdev" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2348 +#: ../fish/guestfish-actions.pod:2591 #, no-wrap msgid "" " is-blockdev path\n" @@ -9062,27 +11956,27 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3417 +#: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3927 msgid "" "This returns C if and only if there is a block device with the given " "C name." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2353 ../fish/guestfish-actions.pod:2371 -#: ../fish/guestfish-actions.pod:2390 ../fish/guestfish-actions.pod:2399 -#: ../fish/guestfish-actions.pod:2409 ../fish/guestfish-actions.pod:2443 -#: ../fish/guestfish-actions.pod:2452 +#: ../fish/guestfish-actions.pod:2596 ../fish/guestfish-actions.pod:2614 +#: ../fish/guestfish-actions.pod:2633 ../fish/guestfish-actions.pod:2642 +#: ../fish/guestfish-actions.pod:2652 ../fish/guestfish-actions.pod:2686 +#: ../fish/guestfish-actions.pod:2695 msgid "See also L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2355 +#: ../fish/guestfish-actions.pod:2598 msgid "is-busy" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2357 +#: ../fish/guestfish-actions.pod:2600 #, no-wrap msgid "" " is-busy\n" @@ -9090,19 +11984,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3431 +#: ../fish/guestfish-actions.pod:2602 ../src/guestfs-actions.pod:3941 msgid "" "This returns true iff this handle is busy processing a command (in the " "C state)." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2364 +#: ../fish/guestfish-actions.pod:2607 msgid "is-chardev" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2366 +#: ../fish/guestfish-actions.pod:2609 #, no-wrap msgid "" " is-chardev path\n" @@ -9110,19 +12004,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3446 +#: ../fish/guestfish-actions.pod:2611 ../src/guestfs-actions.pod:3956 msgid "" "This returns C if and only if there is a character device with the " "given C name." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2373 +#: ../fish/guestfish-actions.pod:2616 msgid "is-config" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2375 +#: ../fish/guestfish-actions.pod:2618 #, no-wrap msgid "" " is-config\n" @@ -9130,19 +12024,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2377 ../src/guestfs-actions.pod:3460 +#: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3970 msgid "" "This returns true iff this handle is being configured (in the C " "state)." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2382 +#: ../fish/guestfish-actions.pod:2625 msgid "is-dir" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2384 +#: ../fish/guestfish-actions.pod:2627 #, no-wrap msgid "" " is-dir path\n" @@ -9150,19 +12044,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3475 +#: ../fish/guestfish-actions.pod:2629 ../src/guestfs-actions.pod:3985 msgid "" "This returns C if and only if there is a directory with the given " "C name. Note that it returns false for other objects like files." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2392 +#: ../fish/guestfish-actions.pod:2635 msgid "is-fifo" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2394 +#: ../fish/guestfish-actions.pod:2637 #, no-wrap msgid "" " is-fifo path\n" @@ -9170,19 +12064,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2396 ../src/guestfs-actions.pod:3491 +#: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4001 msgid "" "This returns C if and only if there is a FIFO (named pipe) with the " "given C name." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2401 +#: ../fish/guestfish-actions.pod:2644 msgid "is-file" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2403 +#: ../fish/guestfish-actions.pod:2646 #, no-wrap msgid "" " is-file path\n" @@ -9190,19 +12084,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2405 ../src/guestfs-actions.pod:3506 +#: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4016 msgid "" "This returns C if and only if there is a regular file with the given " "C name. Note that it returns false for other objects like directories." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2411 +#: ../fish/guestfish-actions.pod:2654 msgid "is-launching" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2413 +#: ../fish/guestfish-actions.pod:2656 #, no-wrap msgid "" " is-launching\n" @@ -9210,19 +12104,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2415 ../src/guestfs-actions.pod:3521 +#: ../fish/guestfish-actions.pod:2658 ../src/guestfs-actions.pod:4031 msgid "" "This returns true iff this handle is launching the subprocess (in the " "C state)." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2420 +#: ../fish/guestfish-actions.pod:2663 msgid "is-lv" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2422 +#: ../fish/guestfish-actions.pod:2665 #, no-wrap msgid "" " is-lv device\n" @@ -9230,19 +12124,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2424 ../src/guestfs-actions.pod:3536 +#: ../fish/guestfish-actions.pod:2667 ../src/guestfs-actions.pod:4046 msgid "" "This command tests whether C is a logical volume, and returns true " "iff this is the case." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2427 +#: ../fish/guestfish-actions.pod:2670 msgid "is-ready" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2429 +#: ../fish/guestfish-actions.pod:2672 #, no-wrap msgid "" " is-ready\n" @@ -9250,19 +12144,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3548 +#: ../fish/guestfish-actions.pod:2674 ../src/guestfs-actions.pod:4058 msgid "" "This returns true iff this handle is ready to accept commands (in the " "C state)." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2436 +#: ../fish/guestfish-actions.pod:2679 msgid "is-socket" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2438 +#: ../fish/guestfish-actions.pod:2681 #, no-wrap msgid "" " is-socket path\n" @@ -9270,19 +12164,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3563 +#: ../fish/guestfish-actions.pod:2683 ../src/guestfs-actions.pod:4073 msgid "" "This returns C if and only if there is a Unix domain socket with the " "given C name." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2445 +#: ../fish/guestfish-actions.pod:2688 msgid "is-symlink" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2447 +#: ../fish/guestfish-actions.pod:2690 #, no-wrap msgid "" " is-symlink path\n" @@ -9290,19 +12184,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3578 +#: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4088 msgid "" "This returns C if and only if there is a symbolic link with the given " "C name." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2454 +#: ../fish/guestfish-actions.pod:2697 msgid "is-zero" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2456 +#: ../fish/guestfish-actions.pod:2699 #, no-wrap msgid "" " is-zero path\n" @@ -9310,19 +12204,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3593 +#: ../fish/guestfish-actions.pod:2701 ../src/guestfs-actions.pod:4103 msgid "" "This returns true iff the file exists and the file is empty or it contains " "all zero bytes." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2461 +#: ../fish/guestfish-actions.pod:2704 msgid "is-zero-device" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2463 +#: ../fish/guestfish-actions.pod:2706 #, no-wrap msgid "" " is-zero-device device\n" @@ -9330,22 +12224,22 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3606 +#: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4116 msgid "This returns true iff the device exists and contains all zero bytes." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3608 +#: ../fish/guestfish-actions.pod:2710 ../src/guestfs-actions.pod:4118 msgid "Note that for large devices this can take a long time to run." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2469 +#: ../fish/guestfish-actions.pod:2712 msgid "kill-subprocess" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2471 +#: ../fish/guestfish-actions.pod:2714 #, no-wrap msgid "" " kill-subprocess\n" @@ -9353,22 +12247,22 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2473 ../src/guestfs-actions.pod:3619 +#: ../fish/guestfish-actions.pod:2716 ../src/guestfs-actions.pod:4129 msgid "This kills the qemu subprocess. You should never need to call this." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2475 +#: ../fish/guestfish-actions.pod:2718 msgid "launch" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2477 +#: ../fish/guestfish-actions.pod:2720 msgid "run" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2479 +#: ../fish/guestfish-actions.pod:2722 #, no-wrap msgid "" " launch\n" @@ -9376,26 +12270,26 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3630 +#: ../fish/guestfish-actions.pod:2724 ../src/guestfs-actions.pod:4140 msgid "" "Internally libguestfs is implemented by running a virtual machine using " "L." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2484 ../src/guestfs-actions.pod:3633 +#: ../fish/guestfish-actions.pod:2727 ../src/guestfs-actions.pod:4143 msgid "" "You should call this after configuring the handle (eg. adding drives) but " "before performing any actions." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2487 +#: ../fish/guestfish-actions.pod:2730 msgid "lchown" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2489 +#: ../fish/guestfish-actions.pod:2732 #, no-wrap msgid "" " lchown owner group path\n" @@ -9403,7 +12297,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2491 +#: ../fish/guestfish-actions.pod:2734 msgid "" "Change the file owner to C and group to C. This is like L but if C is a symlink then the link itself is changed, not the " @@ -9411,12 +12305,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2499 +#: ../fish/guestfish-actions.pod:2742 msgid "lgetxattr" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2501 +#: ../fish/guestfish-actions.pod:2744 #, no-wrap msgid "" " lgetxattr path name\n" @@ -9424,24 +12318,24 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3673 +#: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4183 msgid "" "Get a single extended attribute from file C named C. If C " "is a symlink, then this call returns an extended attribute from the symlink." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2517 +#: ../fish/guestfish-actions.pod:2760 msgid "See also: L, L, L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2519 +#: ../fish/guestfish-actions.pod:2762 msgid "lgetxattrs" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2521 +#: ../fish/guestfish-actions.pod:2764 #, no-wrap msgid "" " lgetxattrs path\n" @@ -9449,19 +12343,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2523 +#: ../fish/guestfish-actions.pod:2766 msgid "" "This is the same as L, but if C is a symbolic link, then " "it returns the extended attributes of the link itself." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2527 +#: ../fish/guestfish-actions.pod:2770 msgid "list-9p" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2529 +#: ../fish/guestfish-actions.pod:2772 #, no-wrap msgid "" " list-9p\n" @@ -9469,19 +12363,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2531 ../src/guestfs-actions.pod:3716 +#: ../fish/guestfish-actions.pod:2774 ../src/guestfs-actions.pod:4226 msgid "" "List all 9p filesystems attached to the guest. A list of mount tags is " "returned." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2534 +#: ../fish/guestfish-actions.pod:2777 msgid "list-devices" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2536 +#: ../fish/guestfish-actions.pod:2779 #, no-wrap msgid "" " list-devices\n" @@ -9489,22 +12383,22 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2538 ../src/guestfs-actions.pod:3730 +#: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4240 msgid "List all the block devices." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2540 ../src/guestfs-actions.pod:3732 +#: ../fish/guestfish-actions.pod:2783 ../src/guestfs-actions.pod:4242 msgid "The full block device names are returned, eg. C." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2544 +#: ../fish/guestfish-actions.pod:2787 msgid "list-dm-devices" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2546 +#: ../fish/guestfish-actions.pod:2789 #, no-wrap msgid "" " list-dm-devices\n" @@ -9512,31 +12406,31 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3747 +#: ../fish/guestfish-actions.pod:2791 ../src/guestfs-actions.pod:4257 msgid "List all device mapper devices." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2550 +#: ../fish/guestfish-actions.pod:2793 msgid "" "The returned list contains C devices, eg. ones created by a " "previous call to L." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2553 +#: ../fish/guestfish-actions.pod:2796 msgid "" "Device mapper devices which correspond to logical volumes are I " "returned in this list. Call L if you want to list logical volumes." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2557 +#: ../fish/guestfish-actions.pod:2800 msgid "list-filesystems" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2559 +#: ../fish/guestfish-actions.pod:2802 #, no-wrap msgid "" " list-filesystems\n" @@ -9544,7 +12438,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2561 ../src/guestfs-actions.pod:3767 +#: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4277 msgid "" "This inspection command looks for filesystems on partitions, block devices " "and logical volumes, returning a list of devices containing filesystems and " @@ -9552,14 +12446,14 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2565 ../src/guestfs-actions.pod:3771 +#: ../fish/guestfish-actions.pod:2808 ../src/guestfs-actions.pod:4281 msgid "" "The return value is a hash, where the keys are the devices containing " "filesystems, and the values are the filesystem types. For example:" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2569 ../src/guestfs-actions.pod:3775 +#: ../fish/guestfish-actions.pod:2812 ../src/guestfs-actions.pod:4285 #, no-wrap msgid "" " \"/dev/sda1\" => \"ntfs\"\n" @@ -9570,14 +12464,14 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780 +#: ../fish/guestfish-actions.pod:2817 ../src/guestfs-actions.pod:4290 msgid "" "The value can have the special value \"unknown\", meaning the content of the " "device is undetermined or empty. \"swap\" means a Linux swap partition." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2578 +#: ../fish/guestfish-actions.pod:2821 msgid "" "This command runs other libguestfs commands, which might include L " "and L, and therefore you should use this soon after launch and only " @@ -9585,7 +12479,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2582 +#: ../fish/guestfish-actions.pod:2825 msgid "" "Not all of the filesystems returned will be mountable. In particular, swap " "partitions are returned in the list. Also this command does not check that " @@ -9595,12 +12489,30 @@ msgid "" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2590 +#: ../fish/guestfish-actions.pod:2833 +msgid "list-md-devices" +msgstr "" + +#. type: verbatim +#: ../fish/guestfish-actions.pod:2835 +#, no-wrap +msgid "" +" list-md-devices\n" +"\n" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:2837 ../src/guestfs-actions.pod:4319 +msgid "List all Linux md devices." +msgstr "" + +#. type: =head2 +#: ../fish/guestfish-actions.pod:2839 msgid "list-partitions" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2592 +#: ../fish/guestfish-actions.pod:2841 #, no-wrap msgid "" " list-partitions\n" @@ -9608,29 +12520,29 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3809 +#: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4332 msgid "List all the partitions detected on all block devices." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3811 +#: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4334 msgid "The full partition device names are returned, eg. C" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2598 +#: ../fish/guestfish-actions.pod:2847 msgid "" "This does not return logical volumes. For that you will need to call L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2603 +#: ../fish/guestfish-actions.pod:2852 msgid "ll" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2605 +#: ../fish/guestfish-actions.pod:2854 #, no-wrap msgid "" " ll directory\n" @@ -9638,26 +12550,26 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2607 ../src/guestfs-actions.pod:3830 +#: ../fish/guestfish-actions.pod:2856 ../src/guestfs-actions.pod:4353 msgid "" "List the files in C (relative to the root directory, there is no " "cwd) in the format of 'ls -la'." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3833 +#: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4356 msgid "" "This command is mostly useful for interactive sessions. It is I " "intended that you try to parse the output string." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2613 +#: ../fish/guestfish-actions.pod:2862 msgid "ln" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2615 +#: ../fish/guestfish-actions.pod:2864 #, no-wrap msgid "" " ln target linkname\n" @@ -9665,17 +12577,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2617 ../src/guestfs-actions.pod:3848 +#: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4371 msgid "This command creates a hard link using the C command." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2619 +#: ../fish/guestfish-actions.pod:2868 msgid "ln-f" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2621 +#: ../fish/guestfish-actions.pod:2870 #, no-wrap msgid "" " ln-f target linkname\n" @@ -9683,19 +12595,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3861 +#: ../fish/guestfish-actions.pod:2872 ../src/guestfs-actions.pod:4384 msgid "" "This command creates a hard link using the C command. The I<-f> " "option removes the link (C) if it exists already." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2626 +#: ../fish/guestfish-actions.pod:2875 msgid "ln-s" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2628 +#: ../fish/guestfish-actions.pod:2877 #, no-wrap msgid "" " ln-s target linkname\n" @@ -9703,17 +12615,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3875 +#: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4398 msgid "This command creates a symbolic link using the C command." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2632 +#: ../fish/guestfish-actions.pod:2881 msgid "ln-sf" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2634 +#: ../fish/guestfish-actions.pod:2883 #, no-wrap msgid "" " ln-sf target linkname\n" @@ -9721,19 +12633,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2636 ../src/guestfs-actions.pod:3888 +#: ../fish/guestfish-actions.pod:2885 ../src/guestfs-actions.pod:4411 msgid "" "This command creates a symbolic link using the C command, The I<-f> " "option removes the link (C) if it exists already." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2639 +#: ../fish/guestfish-actions.pod:2888 msgid "lremovexattr" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2641 +#: ../fish/guestfish-actions.pod:2890 #, no-wrap msgid "" " lremovexattr xattr path\n" @@ -9741,19 +12653,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2643 +#: ../fish/guestfish-actions.pod:2892 msgid "" "This is the same as L, but if C is a symbolic link, then " "it removes an extended attribute of the link itself." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2647 +#: ../fish/guestfish-actions.pod:2896 msgid "ls" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2649 +#: ../fish/guestfish-actions.pod:2898 #, no-wrap msgid "" " ls directory\n" @@ -9761,26 +12673,26 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3916 +#: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4439 msgid "" "List the files in C (relative to the root directory, there is no " "cwd). The '.' and '..' entries are not returned, but hidden files are shown." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2655 +#: ../fish/guestfish-actions.pod:2904 msgid "" "This command is mostly useful for interactive sessions. Programs should " "probably use L instead." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2658 +#: ../fish/guestfish-actions.pod:2907 msgid "lsetxattr" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2660 +#: ../fish/guestfish-actions.pod:2909 #, no-wrap msgid "" " lsetxattr xattr val vallen path\n" @@ -9788,19 +12700,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2662 +#: ../fish/guestfish-actions.pod:2911 msgid "" "This is the same as L, but if C is a symbolic link, then it " "sets an extended attribute of the link itself." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2666 +#: ../fish/guestfish-actions.pod:2915 msgid "lstat" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2668 +#: ../fish/guestfish-actions.pod:2917 #, no-wrap msgid "" " lstat path\n" @@ -9808,30 +12720,30 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2670 ../fish/guestfish-actions.pod:4478 -#: ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:6731 +#: ../fish/guestfish-actions.pod:2919 ../fish/guestfish-actions.pod:4817 +#: ../src/guestfs-actions.pod:4475 ../src/guestfs-actions.pod:7405 msgid "Returns file information for the given C." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2672 +#: ../fish/guestfish-actions.pod:2921 msgid "" "This is the same as L except that if C is a symbolic link, then " "the link is stat-ed, not the file it refers to." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2676 ../src/guestfs-actions.pod:3958 +#: ../fish/guestfish-actions.pod:2925 ../src/guestfs-actions.pod:4481 msgid "This is the same as the C system call." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2678 +#: ../fish/guestfish-actions.pod:2927 msgid "lstatlist" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2680 +#: ../fish/guestfish-actions.pod:2929 #, no-wrap msgid "" " lstatlist path 'names ...'\n" @@ -9839,7 +12751,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2682 +#: ../fish/guestfish-actions.pod:2931 msgid "" "This call allows you to perform the L operation on multiple files, " "where all files are in the directory C. C is the list of files " @@ -9847,7 +12759,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3977 +#: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4500 msgid "" "On return you get a list of stat structs, with a one-to-one correspondence " "to the C list. If any name did not exist or could not be lstat'd, " @@ -9855,7 +12767,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2691 +#: ../fish/guestfish-actions.pod:2940 msgid "" "This call is intended for programs that want to efficiently list a directory " "contents without making many round-trips. See also L for a " @@ -9866,12 +12778,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2699 +#: ../fish/guestfish-actions.pod:2948 msgid "luks-add-key" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2701 +#: ../fish/guestfish-actions.pod:2950 #, no-wrap msgid "" " luks-add-key device keyslot\n" @@ -9879,7 +12791,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:4005 +#: ../fish/guestfish-actions.pod:2952 ../src/guestfs-actions.pod:4528 msgid "" "This command adds a new key on LUKS device C. C is any " "existing key, and is used to access the device. C is the new key to " @@ -9887,28 +12799,28 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2708 +#: ../fish/guestfish-actions.pod:2957 msgid "" "Note that if C already contains a key, then this command will " "fail. You have to use L first to remove that key." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2712 ../fish/guestfish-actions.pod:2734 -#: ../fish/guestfish-actions.pod:2747 ../fish/guestfish-actions.pod:2761 -#: ../fish/guestfish-actions.pod:2787 ../fish/guestfish-actions.pod:2797 +#: ../fish/guestfish-actions.pod:2961 ../fish/guestfish-actions.pod:2983 +#: ../fish/guestfish-actions.pod:2993 ../fish/guestfish-actions.pod:3004 +#: ../fish/guestfish-actions.pod:3030 ../fish/guestfish-actions.pod:3040 msgid "" "This command has one or more key or passphrase parameters. Guestfish will " "prompt for these separately." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2715 +#: ../fish/guestfish-actions.pod:2964 msgid "luks-close" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2717 +#: ../fish/guestfish-actions.pod:2966 #, no-wrap msgid "" " luks-close device\n" @@ -9916,7 +12828,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2719 +#: ../fish/guestfish-actions.pod:2968 msgid "" "This closes a LUKS device that was created earlier by L or L. The C parameter must be the name of the LUKS mapping " @@ -9925,12 +12837,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2725 +#: ../fish/guestfish-actions.pod:2974 msgid "luks-format" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2727 +#: ../fish/guestfish-actions.pod:2976 #, no-wrap msgid "" " luks-format device keyslot\n" @@ -9938,35 +12850,20 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2729 ../src/guestfs-actions.pod:4046 +#: ../fish/guestfish-actions.pod:2978 ../src/guestfs-actions.pod:4569 msgid "" "This command erases existing data on C and formats the device as a " "LUKS encrypted device. C is the initial key, which is added to key " "slot C. (LUKS supports 8 key slots, numbered 0-7)." msgstr "" -#. type: textblock -#: ../fish/guestfish-actions.pod:2737 ../fish/guestfish-actions.pod:2750 -#: ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:3498 -#: ../fish/guestfish-actions.pod:4024 ../fish/guestfish-actions.pod:4349 -#: ../fish/guestfish-actions.pod:4372 ../fish/guestfish-actions.pod:4394 -#: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:4053 -#: ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4219 -#: ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:6110 -#: ../src/guestfs-actions.pod:6545 ../src/guestfs-actions.pod:6575 -#: ../src/guestfs-actions.pod:6608 ../src/guestfs-actions.pod:7799 -msgid "" -"B." -msgstr "" - #. type: =head2 -#: ../fish/guestfish-actions.pod:2740 +#: ../fish/guestfish-actions.pod:2986 msgid "luks-format-cipher" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2742 +#: ../fish/guestfish-actions.pod:2988 #, no-wrap msgid "" " luks-format-cipher device keyslot cipher\n" @@ -9974,19 +12871,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2744 +#: ../fish/guestfish-actions.pod:2990 msgid "" "This command is the same as L but it also allows you to set " "the C used." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2753 +#: ../fish/guestfish-actions.pod:2996 msgid "luks-kill-slot" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2755 +#: ../fish/guestfish-actions.pod:2998 #, no-wrap msgid "" " luks-kill-slot device keyslot\n" @@ -9994,19 +12891,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2757 ../src/guestfs-actions.pod:4093 +#: ../fish/guestfish-actions.pod:3000 ../src/guestfs-actions.pod:4610 msgid "" "This command deletes the key in key slot C from the encrypted LUKS " "device C. C must be one of the I keys." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2764 +#: ../fish/guestfish-actions.pod:3007 msgid "luks-open" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2766 +#: ../fish/guestfish-actions.pod:3009 #, no-wrap msgid "" " luks-open device mapname\n" @@ -10014,26 +12911,26 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2768 ../src/guestfs-actions.pod:4113 +#: ../fish/guestfish-actions.pod:3011 ../src/guestfs-actions.pod:4630 msgid "" "This command opens a block device which has been encrypted according to the " "Linux Unified Key Setup (LUKS) standard." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2771 ../src/guestfs-actions.pod:4116 +#: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4633 msgid "C is the encrypted block device or partition." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118 +#: ../fish/guestfish-actions.pod:3016 ../src/guestfs-actions.pod:4635 msgid "" "The caller must supply one of the keys associated with the LUKS block " "device, in the C parameter." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121 +#: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4638 msgid "" "This creates a new block device called C. Reads and " "writes to this block device are decrypted from and encrypted to the " @@ -10041,24 +12938,24 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2780 +#: ../fish/guestfish-actions.pod:3023 msgid "" "If this block device contains LVM volume groups, then calling L " "followed by L will make them visible." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2784 +#: ../fish/guestfish-actions.pod:3027 msgid "Use L to list all device mapper devices." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2790 +#: ../fish/guestfish-actions.pod:3033 msgid "luks-open-ro" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2792 +#: ../fish/guestfish-actions.pod:3035 #, no-wrap msgid "" " luks-open-ro device mapname\n" @@ -10066,18 +12963,18 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2794 +#: ../fish/guestfish-actions.pod:3037 msgid "" "This is the same as L except that a read-only mapping is created." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2800 +#: ../fish/guestfish-actions.pod:3043 msgid "lvcreate" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2802 +#: ../fish/guestfish-actions.pod:3045 #, no-wrap msgid "" " lvcreate logvol volgroup mbytes\n" @@ -10085,19 +12982,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4167 +#: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4684 msgid "" "This creates an LVM logical volume called C on the volume group " "C, with C megabytes." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2807 +#: ../fish/guestfish-actions.pod:3050 msgid "lvm-canonical-lv-name" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2809 +#: ../fish/guestfish-actions.pod:3052 #, no-wrap msgid "" " lvm-canonical-lv-name lvname\n" @@ -10105,7 +13002,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2811 ../src/guestfs-actions.pod:4180 +#: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4697 msgid "" "This converts alternative naming schemes for LVs that you might find to the " "canonical name. For example, C is converted to C parameter does not refer to a " "logical volume." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2818 +#: ../fish/guestfish-actions.pod:3061 msgid "See also L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2820 +#: ../fish/guestfish-actions.pod:3063 msgid "lvm-clear-filter" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2822 +#: ../fish/guestfish-actions.pod:3065 #, no-wrap msgid "" " lvm-clear-filter\n" @@ -10138,26 +13035,26 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2824 +#: ../fish/guestfish-actions.pod:3067 msgid "" "This undoes the effect of L. LVM will be able to see every " "block device." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2858 -#: ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4244 +#: ../fish/guestfish-actions.pod:3070 ../fish/guestfish-actions.pod:3098 +#: ../src/guestfs-actions.pod:4719 ../src/guestfs-actions.pod:4758 msgid "" "This command also clears the LVM cache and performs a volume group scan." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2830 +#: ../fish/guestfish-actions.pod:3073 msgid "lvm-remove-all" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2832 +#: ../fish/guestfish-actions.pod:3075 #, no-wrap msgid "" " lvm-remove-all\n" @@ -10165,19 +13062,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2834 ../src/guestfs-actions.pod:4214 +#: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4731 msgid "" "This command removes all LVM logical volumes, volume groups and physical " "volumes." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2840 +#: ../fish/guestfish-actions.pod:3080 msgid "lvm-set-filter" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2842 +#: ../fish/guestfish-actions.pod:3082 #, no-wrap msgid "" " lvm-set-filter 'devices ...'\n" @@ -10185,7 +13082,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4230 +#: ../fish/guestfish-actions.pod:3084 ../src/guestfs-actions.pod:4744 msgid "" "This sets the LVM device filter so that LVM will only be able to \"see\" the " "block devices in the list C, and will ignore all other attached " @@ -10193,7 +13090,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4234 +#: ../fish/guestfish-actions.pod:3088 ../src/guestfs-actions.pod:4748 msgid "" "Where disk image(s) contain duplicate PVs or VGs, this command is useful to " "get LVM to ignore the duplicates, otherwise LVM can get confused. Note also " @@ -10205,24 +13102,24 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4247 +#: ../fish/guestfish-actions.pod:3101 ../src/guestfs-actions.pod:4761 msgid "You can filter whole block devices or individual partitions." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4249 +#: ../fish/guestfish-actions.pod:3103 ../src/guestfs-actions.pod:4763 msgid "" "You cannot use this if any VG is currently in use (eg. contains a mounted " "filesystem), even if you are not filtering out that VG." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2867 +#: ../fish/guestfish-actions.pod:3107 msgid "lvremove" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2869 +#: ../fish/guestfish-actions.pod:3109 #, no-wrap msgid "" " lvremove device\n" @@ -10230,26 +13127,26 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2871 ../src/guestfs-actions.pod:4263 +#: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4777 msgid "" "Remove an LVM logical volume C, where C is the path to the " "LV, such as C." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2874 ../src/guestfs-actions.pod:4266 +#: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4780 msgid "" "You can also remove all LVs in a volume group by specifying the VG name, C." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2877 +#: ../fish/guestfish-actions.pod:3117 msgid "lvrename" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2879 +#: ../fish/guestfish-actions.pod:3119 #, no-wrap msgid "" " lvrename logvol newlogvol\n" @@ -10257,17 +13154,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2881 ../src/guestfs-actions.pod:4280 +#: ../fish/guestfish-actions.pod:3121 ../src/guestfs-actions.pod:4794 msgid "Rename a logical volume C with the new name C." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2883 +#: ../fish/guestfish-actions.pod:3123 msgid "lvresize" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2885 +#: ../fish/guestfish-actions.pod:3125 #, no-wrap msgid "" " lvresize device mbytes\n" @@ -10275,19 +13172,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4293 +#: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4807 msgid "" "This resizes (expands or shrinks) an existing LVM logical volume to " "C. When reducing, data in the reduced part is lost." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2891 +#: ../fish/guestfish-actions.pod:3131 msgid "lvresize-free" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2893 +#: ../fish/guestfish-actions.pod:3133 #, no-wrap msgid "" " lvresize-free lv percent\n" @@ -10295,7 +13192,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2895 ../src/guestfs-actions.pod:4308 +#: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4822 msgid "" "This expands an existing logical volume C so that it fills C% of the " "remaining free space in the volume group. Commonly you would call this with " @@ -10304,12 +13201,12 @@ msgid "" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2901 +#: ../fish/guestfish-actions.pod:3141 msgid "lvs" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2903 +#: ../fish/guestfish-actions.pod:3143 #, no-wrap msgid "" " lvs\n" @@ -10317,31 +13214,31 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4323 +#: ../fish/guestfish-actions.pod:3145 ../src/guestfs-actions.pod:4837 msgid "" "List all the logical volumes detected. This is the equivalent of the L command." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2908 ../src/guestfs-actions.pod:4326 +#: ../fish/guestfish-actions.pod:3148 ../src/guestfs-actions.pod:4840 msgid "" "This returns a list of the logical volume device names (eg. C)." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2911 +#: ../fish/guestfish-actions.pod:3151 msgid "See also L, L." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2913 +#: ../fish/guestfish-actions.pod:3153 msgid "lvs-full" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2915 +#: ../fish/guestfish-actions.pod:3155 #, no-wrap msgid "" " lvs-full\n" @@ -10349,19 +13246,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4342 +#: ../fish/guestfish-actions.pod:3157 ../src/guestfs-actions.pod:4856 msgid "" "List all the logical volumes detected. This is the equivalent of the L command. The \"full\" version includes all fields." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2920 +#: ../fish/guestfish-actions.pod:3160 msgid "lvuuid" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2922 +#: ../fish/guestfish-actions.pod:3162 #, no-wrap msgid "" " lvuuid device\n" @@ -10369,17 +13266,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4357 +#: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4871 msgid "This command returns the UUID of the LVM LV C." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2926 +#: ../fish/guestfish-actions.pod:3166 msgid "lxattrlist" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2928 +#: ../fish/guestfish-actions.pod:3168 #, no-wrap msgid "" " lxattrlist path 'names ...'\n" @@ -10387,7 +13284,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2930 ../src/guestfs-actions.pod:4371 +#: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4885 msgid "" "This call allows you to get the extended attributes of multiple files, where " "all files are in the directory C. C is the list of files from " @@ -10395,7 +13292,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4375 +#: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4889 msgid "" "On return you get a flat list of xattr structs which must be interpreted " "sequentially. The first xattr struct always has a zero-length C. " @@ -10407,7 +13304,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2944 +#: ../fish/guestfish-actions.pod:3184 msgid "" "This call is intended for programs that want to efficiently list a directory " "contents without making many round-trips. See also L for a " @@ -10418,12 +13315,218 @@ msgid "" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2952 +#: ../fish/guestfish-actions.pod:3192 +msgid "md-create" +msgstr "" + +#. type: verbatim +#: ../fish/guestfish-actions.pod:3194 +#, no-wrap +msgid "" +" md-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] [chunk:N] [level:..]\n" +"\n" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4932 +msgid "" +"Create a Linux md (RAID) device named C on the devices in the list " +"C." +msgstr "" + +#. type: =item +#: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4939 +msgid "C" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4941 +msgid "" +"A bitmap of missing devices. If a bit is set it means that a missing device " +"is added to the array. The least significant bit corresponds to the first " +"device in the array." +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4945 +msgid "As examples:" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3211 ../src/guestfs-actions.pod:4947 +msgid "" +"If C and C then the resulting " +"array would be C<[EmissingE, \"/dev/sda\"]>." +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4950 +msgid "" +"If C and C then the resulting " +"array would be C<[\"/dev/sda\", EmissingE]>." +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4953 +msgid "This defaults to C<0> (no missing devices)." +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4955 +msgid "" +"The length of C + the number of bits set in C must " +"equal C + C." +msgstr "" + +#. type: =item +#: ../fish/guestfish-actions.pod:3222 ../src/guestfs-actions.pod:4958 +msgid "C" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:4960 +msgid "The number of active RAID devices." +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3226 ../src/guestfs-actions.pod:4962 +msgid "" +"If not set, this defaults to the length of C plus the number of " +"bits set in C." +msgstr "" + +#. type: =item +#: ../fish/guestfish-actions.pod:3229 ../src/guestfs-actions.pod:4965 +msgid "C" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3231 ../src/guestfs-actions.pod:4967 +msgid "The number of spare devices." +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4969 +msgid "If not set, this defaults to C<0>." +msgstr "" + +#. type: =item +#: ../fish/guestfish-actions.pod:3235 ../src/guestfs-actions.pod:4971 +msgid "C" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3237 ../src/guestfs-actions.pod:4973 +msgid "The chunk size in bytes." +msgstr "" + +#. type: =item +#: ../fish/guestfish-actions.pod:3239 ../fish/guestfish-actions.pod:3261 +#: ../src/guestfs-actions.pod:4975 ../src/guestfs-actions.pod:5023 +msgid "C" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3241 ../src/guestfs-actions.pod:4977 +msgid "" +"The RAID level, which can be one of: I, I, I<0>, I, " +"I, I<1>, I, I, I<4>, I, I<5>, I, I<6>, " +"I, I<10>. Some of these are synonymous, and more levels may be " +"added in future." +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4982 +msgid "If not set, this defaults to C." +msgstr "" + +#. type: =head2 +#: ../fish/guestfish-actions.pod:3252 +msgid "md-detail" +msgstr "" + +#. type: verbatim +#: ../fish/guestfish-actions.pod:3254 +#, no-wrap +msgid "" +" md-detail md\n" +"\n" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:5018 +msgid "" +"This command exposes the output of 'mdadm -DY '. The following fields " +"are usually present in the returned hash. Other fields may also be present." +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:5025 +msgid "The raid level of the MD device." +msgstr "" + +#. type: =item +#: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:5027 +msgid "C" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3267 ../src/guestfs-actions.pod:5029 +msgid "The number of underlying devices in the MD device." +msgstr "" + +#. type: =item +#: ../fish/guestfish-actions.pod:3269 ../src/guestfs-actions.pod:5031 +msgid "C" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:5033 +msgid "The metadata version used." +msgstr "" + +#. type: =item +#: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:5035 +msgid "C" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3275 ../src/guestfs-actions.pod:5037 +msgid "The UUID of the MD device." +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3279 ../src/guestfs-actions.pod:5041 +msgid "The name of the MD device." +msgstr "" + +#. type: =head2 +#: ../fish/guestfish-actions.pod:3283 +msgid "md-stop" +msgstr "" + +#. type: verbatim +#: ../fish/guestfish-actions.pod:3285 +#, no-wrap +msgid "" +" md-stop md\n" +"\n" +msgstr "" + +#. type: textblock +#: ../fish/guestfish-actions.pod:3287 ../src/guestfs-actions.pod:5057 +msgid "" +"This command deactivates the MD array named C. The device is stopped, " +"but it is not destroyed or zeroed." +msgstr "" + +#. type: =head2 +#: ../fish/guestfish-actions.pod:3290 msgid "mkdir" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2954 +#: ../fish/guestfish-actions.pod:3292 #, no-wrap msgid "" " mkdir path\n" @@ -10431,17 +13534,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2956 ../src/guestfs-actions.pod:4405 +#: ../fish/guestfish-actions.pod:3294 ../src/guestfs-actions.pod:5068 msgid "Create a directory named C." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2958 +#: ../fish/guestfish-actions.pod:3296 msgid "mkdir-mode" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2960 +#: ../fish/guestfish-actions.pod:3298 #, no-wrap msgid "" " mkdir-mode path mode\n" @@ -10449,14 +13552,14 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2962 ../src/guestfs-actions.pod:4418 +#: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:5081 msgid "" "This command creates a directory, setting the initial permissions of the " "directory to C." msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4421 +#: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5084 msgid "" "For common Linux filesystems, the actual mode which is set will be C. Non-native-Linux filesystems may interpret the mode in " @@ -10464,17 +13567,17 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2969 +#: ../fish/guestfish-actions.pod:3307 msgid "See also L, L" msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2971 +#: ../fish/guestfish-actions.pod:3309 msgid "mkdir-p" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2973 +#: ../fish/guestfish-actions.pod:3311 #, no-wrap msgid "" " mkdir-p path\n" @@ -10482,19 +13585,19 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4437 +#: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5100 msgid "" "Create a directory named C, creating any parent directories as " "necessary. This is like the C shell command." msgstr "" #. type: =head2 -#: ../fish/guestfish-actions.pod:2978 +#: ../fish/guestfish-actions.pod:3316 msgid "mkdtemp" msgstr "" #. type: verbatim -#: ../fish/guestfish-actions.pod:2980 +#: ../fish/guestfish-actions.pod:3318 #, no-wrap msgid "" " mkdtemp template\n" @@ -10502,7 +13605,7 @@ msgid "" msgstr "" #. type: textblock -#: ../fish/guestfish-actions.pod:2982 ../src/guestfs-actions.pod:4450 +#: ../fish/guestfish-actions.pod:3320 ../src/guestfs-actions.pod:5113 msgid "" "This command creates a temporary directory. The C